Merge pull request #21 from nix-community/cleanup
Use nix-instantiate to find nixpkgs source
This commit is contained in:
commit
aa0cac9f8a
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ def prefetch(name: str, url: ParseResult,
|
|||
|
||||
|
||||
def nixpkgs_path() -> str:
|
||||
cmd = ["nix", "eval", "(<nixpkgs>)"]
|
||||
cmd = ["nix-instantiate", "--find-file", "nixpkgs"]
|
||||
return subprocess.check_output(cmd).decode("utf-8").strip()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue