From 6f993b8bde8201213fe2953ea663ac387de916e3 Mon Sep 17 00:00:00 2001 From: Jürgen Hahn Date: Mon, 2 Jan 2023 16:09:18 +0100 Subject: feat(tvix/derivation): add nix drv path generation to Derivation This adds a function to generate the derivation path. The computation is based on the Go implementation. Change-Id: Iae89db4976f5fd9208f0453f73688689a245cd66 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7729 Tested-by: BuildkiteCI Reviewed-by: flokli --- tvix/derivation/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/derivation/Cargo.toml') diff --git a/tvix/derivation/Cargo.toml b/tvix/derivation/Cargo.toml index 99dfbb3a104f..ec998c446508 100644 --- a/tvix/derivation/Cargo.toml +++ b/tvix/derivation/Cargo.toml @@ -8,6 +8,8 @@ edition = "2021" [dependencies] glob = "0.3.0" serde = { version = "1.0", features = ["derive"] } +sha2 = "0.10.6" +tvix-store-bin = { path = "../store" } [dev-dependencies.test-generator] # This fork of test-generator adds support for cargo workspaces, see @@ -17,3 +19,4 @@ rev = "82e799979980962aec1aa324ec6e0e4cad781f41" [dev-dependencies] serde_json = "1.0" +test-case = "2.2.2" -- cgit 1.4.1