about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/overlays/patches/nvd-nix-2.3.patch12
-rw-r--r--third_party/overlays/tvl.nix6
2 files changed, 18 insertions, 0 deletions
diff --git a/third_party/overlays/patches/nvd-nix-2.3.patch b/third_party/overlays/patches/nvd-nix-2.3.patch
new file mode 100644
index 000000000000..e39a747942e6
--- /dev/null
+++ b/third_party/overlays/patches/nvd-nix-2.3.patch
@@ -0,0 +1,12 @@
+diff --git a/src/nvd b/src/nvd
+index 4caf646..793fc60 100755
+--- a/src/nvd
++++ b/src/nvd
+@@ -440,7 +440,6 @@ def query_closure_disk_usage_bytes(target: Path) -> Optional[int]:
+         stdout = subprocess.run(
+                 [
+                     make_nix_bin_path("nix"), "path-info",
+-                    "--extra-experimental-features", "nix-command",
+                     "--closure-size", target_str,
+                 ],
+                 stdout=PIPE,
diff --git a/third_party/overlays/tvl.nix b/third_party/overlays/tvl.nix
index 4683bce9db37..80f6f04fcf88 100644
--- a/third_party/overlays/tvl.nix
+++ b/third_party/overlays/tvl.nix
@@ -35,6 +35,12 @@ in
 
   nix_latest = super.nix;
 
+  nvd = super.nvd.overrideAttrs (old: {
+    patches = old.patches or [ ] ++ [
+      ./patches/nvd-nix-2.3.patch
+    ];
+  });
+
   home-manager = super.home-manager.overrideAttrs (_: {
     src = depot.third_party.sources.home-manager;
     version = "git-"