Merge pull request #21 from nix-community/cleanup

Use nix-instantiate to find nixpkgs source
This commit is contained in:
Jörg Thalheim 2018-07-05 13:53:31 +01:00 committed by GitHub
commit aa0cac9f8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()