about summary refs log tree commit diff
path: root/tvix/Cargo.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-11-06T09·43+0200
committerflokli <flokli@flokli.de>2023-11-07T11·27+0000
commit9f5b1213f91ea8c725f24ad3fbe59f7dd5eb86ec (patch)
tree7f8781728e0aa980cc9fb5aa703804c093df0be3 /tvix/Cargo.nix
parent14849829fd4a2906d5cd2f723226b02801897983 (diff)
feat(tvix/nix-compat): add drvfmt r/6971
This small tool formats A-Term in a more readable format. It's a lossy
conversion for non-valid UTF-8 environment values.

Change-Id: I65a51054d7faf528321bc2d9fc4425180a7813f5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9970
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/Cargo.nix')
-rw-r--r--tvix/Cargo.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/Cargo.nix b/tvix/Cargo.nix
index 0707ad58bb..1e41b08584 100644
--- a/tvix/Cargo.nix
+++ b/tvix/Cargo.nix
@@ -4195,6 +4195,13 @@ rec {
         crateName = "nix-compat";
         version = "0.1.0";
         edition = "2021";
+        crateBin = [
+          {
+            name = "drvfmt";
+            path = "src/bin/drvfmt.rs";
+            requiredFeatures = [ ];
+          }
+        ];
         # We can't filter paths with references in Nix 2.4
         # See https://github.com/NixOS/nix/issues/5410
         src =