about summary refs log tree commit diff
path: root/tvix/tools/turbofetch/default.nix
diff options
context:
space:
mode:
authoredef <edef@edef.eu>2023-11-04T10·09+0000
committeredef <edef@edef.eu>2023-11-10T19·05+0000
commitbdda10a2f54974053b1d78b801469f076e90a6da (patch)
treeda10ab5e9f64b624fec66a9a0f1aaa94947afd59 /tvix/tools/turbofetch/default.nix
parent9cd2e920653914d4ef7bec525614d101f3fdd207 (diff)
feat(tvix/tools/turbofetch): init r/6979
Change-Id: I2efa6f94f57e812c52371256a4e62d1d54ff5057
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9925
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/tools/turbofetch/default.nix')
-rw-r--r--tvix/tools/turbofetch/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/tools/turbofetch/default.nix b/tvix/tools/turbofetch/default.nix
new file mode 100644
index 000000000000..b7b6a052d76a
--- /dev/null
+++ b/tvix/tools/turbofetch/default.nix
@@ -0,0 +1,12 @@
+{ lib, pkgs, ... }:
+
+(pkgs.callPackage ./Cargo.nix {
+  defaultCrateOverrides = pkgs.defaultCrateOverrides // {
+    ring = prev: {
+      # TODO(edef): implement CARGO_MANIFEST_LINKS in crate2nix
+      CARGO_MANIFEST_LINKS = ''ring_core_${lib.replaceStrings ["."] ["_"] prev.version}'';
+    };
+  };
+}).rootCrate.build.override {
+  runTests = true;
+}