File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,16 @@ def __init__(self):
26
26
def scan (self , nixref ):
27
27
"""
28
28
Scan nixpkgs meta-info using nixpkgs version pinned in nixref;
29
- nixref can be a nix store path or flakeref .
29
+ nixref can be a nix store path, flakeref or dynamical attribute set .
30
30
"""
31
31
nixpkgs_path = nixref_to_nixpkgs_path (nixref )
32
32
if not nixpkgs_path :
33
- return
33
+ # try format which is understood by nix-env: https://ianthehenry.com/posts/how-to-learn-nix/chipping-away-at-flakes/
34
+ # { ... }: (builtins.getFlake "ownpkgs-special-unstable").outputs.legacyPackages.${builtins.currentSystem}
35
+ # NIX_PATH="nixpkgs=$HOME/.nix-defexpr/flakgs/default.nix"
36
+ nixpkgs_path = pathlib .Path (nixref )
37
+ if not nixpkgs_path .exists ():
38
+ return
34
39
if not nixpkgs_path .exists ():
35
40
LOG .warning ("Nixpkgs not in nix store: %s" , nixpkgs_path .as_posix ())
36
41
return
You can’t perform that action at this time.
0 commit comments