diff options
author | Florian Klink <flokli@flokli.de> | 2023-01-31T13·45+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-01-31T15·16+0000 |
commit | 2d24c5f260945216ca01371d4120f5d53f08b2cd (patch) | |
tree | 5053bbffefd5a41241ab6ea27fafc290e44e665f /tvix/Cargo.nix | |
parent | 9e809e21ccb1768567fc2516c5526ad0cdd56df0 (diff) |
refactor(tvix/nix-compat): absorb //tvix/derivation r/5791
Put this in its src/derivation. Change-Id: Ic047ab1c2da555a833ee454e10ef60c77537b617 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7967 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r-- | tvix/Cargo.nix | 88 |
1 files changed, 17 insertions, 71 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index aa9fa9dbf84b..70c022ddcedd 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -63,16 +63,6 @@ rec { # File a bug if you depend on any for non-debug work! debug = internal.debugCrate { inherit packageId; }; }; - "tvix-derivation" = rec { - packageId = "tvix-derivation"; - build = internal.buildRustCrateWithFeatures { - packageId = "tvix-derivation"; - }; - - # Debug support which might change between releases. - # File a bug if you depend on any for non-debug work! - debug = internal.debugCrate { inherit packageId; }; - }; "tvix-eval" = rec { packageId = "tvix-eval"; build = internal.buildRustCrateWithFeatures { @@ -3759,6 +3749,11 @@ rec { packageId = "glob"; } { + name = "serde"; + packageId = "serde"; + features = [ "derive" ]; + } + { name = "sha2"; packageId = "sha2 0.10.6"; } @@ -3769,9 +3764,17 @@ rec { ]; devDependencies = [ { + name = "serde_json"; + packageId = "serde_json"; + } + { name = "test-case"; packageId = "test-case"; } + { + name = "test-generator"; + packageId = "test-generator"; + } ]; }; @@ -7772,6 +7775,10 @@ rec { packageId = "dirs"; } { + name = "nix-compat"; + packageId = "nix-compat"; + } + { name = "rustyline"; packageId = "rustyline"; } @@ -7788,73 +7795,12 @@ rec { packageId = "thiserror"; } { - name = "tvix-derivation"; - packageId = "tvix-derivation"; - } - { name = "tvix-eval"; packageId = "tvix-eval"; } ]; }; - "tvix-derivation" = rec { - crateName = "tvix-derivation"; - version = "0.1.0"; - edition = "2021"; - # We can't filter paths with references in Nix 2.4 - # See https://github.com/NixOS/nix/issues/5410 - src = - if (lib.versionOlder builtins.nixVersion "2.4pre20211007") - then lib.cleanSourceWith { filter = sourceFilter; src = ./derivation; } - else ./derivation; - dependencies = [ - { - name = "anyhow"; - packageId = "anyhow"; - } - { - name = "data-encoding"; - packageId = "data-encoding"; - } - { - name = "glob"; - packageId = "glob"; - } - { - name = "nix-compat"; - packageId = "nix-compat"; - } - { - name = "serde"; - packageId = "serde"; - features = [ "derive" ]; - } - { - name = "sha2"; - packageId = "sha2 0.10.6"; - } - { - name = "thiserror"; - packageId = "thiserror"; - } - ]; - devDependencies = [ - { - name = "serde_json"; - packageId = "serde_json"; - } - { - name = "test-case"; - packageId = "test-case"; - } - { - name = "test-generator"; - packageId = "test-generator"; - } - ]; - - }; "tvix-eval" = rec { crateName = "tvix-eval"; version = "0.1.0"; |