mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-27 06:37:01 +03:00
v1/lock: fix nix deprecation warning
This commit is contained in:
parent
4532520021
commit
0b425bedc4
@ -113,7 +113,7 @@
|
||||
exit(1)
|
||||
# At this point the derivation was built successfully and we can just read
|
||||
# the hash from the drv file.
|
||||
show_derivation = ["${config.deps.nix}/bin/nix", "show-derivation", drv_path] # noqa: E501
|
||||
show_derivation = ["${config.deps.nix}/bin/nix", "derivation show", drv_path] # noqa: E501
|
||||
result = subprocess.run(show_derivation, stdout=subprocess.PIPE, text=True)
|
||||
drv = json.loads(result.stdout)
|
||||
checksum = drv[drv_path]["outputs"]["out"]["hash"]
|
||||
|
Loading…
Reference in New Issue
Block a user