fix(3p/overlays/tvl): fix nvd with Nix 2.3
If more of these issues crop up, we should consider making a patch for our Nix fork that ignores the --experimental-features flag. Change-Id: If146804f2c9f9375f2035985a6fd99f72b0fdcc7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7165 Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
57cf952ea9
commit
2de80c8c33
2 changed files with 18 additions and 0 deletions
12
third_party/overlays/patches/nvd-nix-2.3.patch
vendored
Normal file
12
third_party/overlays/patches/nvd-nix-2.3.patch
vendored
Normal file
|
@ -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,
|
6
third_party/overlays/tvl.nix
vendored
6
third_party/overlays/tvl.nix
vendored
|
@ -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-"
|
||||
|
|
Loading…
Reference in a new issue