]> git.scottworley.com Git - nix-pin-deps/blobdiff - nix_pin_deps.py
nix show-derivation → nix derivation show
[nix-pin-deps] / nix_pin_deps.py
index 297f7c17822f5e57e64f23876a77ad78ecc3889d..0b83d5c189fed1198cd4abc67725e4f6c7b57e13 100644 (file)
@@ -59,7 +59,7 @@ def getDrvInfo(drv: str) -> Any:
     with log(f"Loading {drv}..."):
         with subprocess.Popen(
                 ["nix", "--experimental-features", "nix-command",
-                    "show-derivation", "/nix/store/" + drv],
+                    "derivation", "show", f"/nix/store/{drv}^*"],
                 stdout=subprocess.PIPE) as process:
             assert process.stdout
             info = json.load(process.stdout)