nur/index: fix meta no longer beeing available
This commit is contained in:
parent
022e6afbf6
commit
f34c0dfe56
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ def resolve_source(pkg: Dict, repo: str, url: str) -> str:
|
|||
# TODO commit hash
|
||||
prefix = f"https://github.com/nix-community/nur-combined/tree/master/repos/{repo}"
|
||||
position = pkg["meta"].get("position", None)
|
||||
|
||||
if position is not None and position.startswith("/nix/store"):
|
||||
path_str, line = position.rsplit(":", 1)
|
||||
path = Path(path_str)
|
||||
|
|
@ -75,7 +76,7 @@ callPackage (nur.repo-sources."%s" + "/%s") {}
|
|||
f.flush()
|
||||
env = os.environ.copy()
|
||||
env.update(NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM="1")
|
||||
query_cmd = ["nix-env", "-qa", "*", "--json", "-f", str(f.name)]
|
||||
query_cmd = ["nix-env", "-qa", "*", "--meta", "--json", "-f", str(f.name)]
|
||||
try:
|
||||
out = subprocess.check_output(query_cmd, env=env)
|
||||
except subprocess.CalledProcessError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue