diff options
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r-- | tvix/Cargo.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix index 886a39e428ff..084133c18669 100644 --- a/tvix/Cargo.nix +++ b/tvix/Cargo.nix @@ -73,6 +73,16 @@ rec { # File a bug if you depend on any for non-debug work! debug = internal.debugCrate { inherit packageId; }; }; + "tvix-nar" = rec { + packageId = "tvix-nar"; + build = internal.buildRustCrateWithFeatures { + packageId = "tvix-nar"; + }; + + # 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-store" = rec { packageId = "tvix-store"; build = internal.buildRustCrateWithFeatures { @@ -4374,6 +4384,18 @@ rec { ]; }; + "tvix-nar" = rec { + crateName = "tvix-nar"; + version = "0.0.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 = ./nar; } + else ./nar; + + }; "tvix-store" = rec { crateName = "tvix-store"; version = "0.1.0"; |