]> git.scottworley.com Git - nix-pin-deps/commitdiff
nix show-derivation → nix derivation show
authorScott Worley <scottworley@scottworley.com>
Wed, 23 Oct 2024 03:52:54 +0000 (20:52 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 23 Oct 2024 03:55:58 +0000 (20:55 -0700)
Changelog
nix_pin_deps.py

index ce08d7f0dd0b7b50d6740a0070e9bdd9723118c8..95e7ac67de3a5959235022ae459cf24802812826 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 ## [Unreleased]
+- nix show-derivation → nix derivation show
 
 
 ## [1.0.0] - 2022-05-20
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)