]> git.scottworley.com Git - nix-pin-deps/blobdiff - nix_pin_deps.py
Release 1.1.0
[nix-pin-deps] / nix_pin_deps.py
index 6f12df84ca468d63551afb6e8b8c7f85083a88c3..0b83d5c189fed1198cd4abc67725e4f6c7b57e13 100644 (file)
@@ -1,3 +1,10 @@
+# nix-pin-deps: gc-pin dependencies of a partially-built derivation
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, version 3.
+
+
 from contextlib import contextmanager
 import json
 import os
@@ -52,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)