Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline nix-derivation (and PRs), extend #289

Draft
wants to merge 57 commits into
base: master
Choose a base branch
from

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Oct 31, 2024

  • Move the derivation types to core, cut down parameters somewhat
  • Rename (the rest of) nix-derivation to hnix-store-aterm, since I want to de-center ATerm as "the canonical form", and put it on the same level as the JSON.

Depends on #288

Gabriella439 and others added 30 commits June 4, 2017 19:39
This field is not always a `FilePath`.  For example, `builder` can be
`"builtins.fetchURL`
* Expose parseDerivationWith, buildDerivationWith and textParser

* Version 1.1.0 → 1.1.1 (haskell-nix#8)
Only including instructions for Nix, since if you're using this project I think it's safe to assume you'll have Nix available.
Gabriella439 and others added 20 commits July 24, 2022 12:44
* ci: Update

switch to proper fork, use `defaultCi3`.

* Bump upper bounds of containers, deepseq, text

Allow
- containers 0.7
- deepseq 1.5
- text 2.1

* Drop travis build status badge, add new ones

* Add Functor and Bifunctor for DerivationOutput
Allows to use custom types for both sides of the map.

The main reason for this is `hnix-store` which now uses
`DSum HashAlgo Digest` which combines `hashAlgo` and `hash` fields
of the `DerivationOutput` and `OutputName` type for the keys,
which is similar to how the newtype is done in the mainline Nix.
Normalizes `inputsSrcs` and `inputsDrvs` into `inputs`.

Similar reasons as the previous commit. Allows to embed
mainline Nixes `BasicDerivation` into `Derivation` by using
`inputs` type that only provides source inputs.
…dfd361'

git-subtree-dir: nix-derivation
git-subtree-mainline: 43fc6d4
git-subtree-split: 9c51ab0
Tests don't pass, more work is needed.
@Ericson2314
Copy link
Member Author

What I've started doing is

  1. Move the derivation types to core, cut down parameters somewhat
  2. Rename (the rest of) nix-derivation to hnix-store-aterm, since I want to de-center ATerm as "the canonical form", and put it on the same level as the JSON.

- The type is now in `hnix-store-core`

- The serialization logic (the rest of `nix-derivation`) is now called `hnix-store-aterm`

Most type errors are fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants