commit
e42d059727
@ -1,22 +0,0 @@ |
||||
{ lib }: |
||||
|
||||
rec { |
||||
|
||||
/* imports a flake.nix without acknowledging its lock file, useful for |
||||
referencing subflakes from a parent flake. The second argument allows |
||||
specifying the inputs of this flake. |
||||
|
||||
Example: |
||||
callLocklessFlake { |
||||
path = ./directoryContainingFlake; |
||||
inputs = { inherit nixpkgs; }; |
||||
} |
||||
*/ |
||||
callLocklessFlake = { path, inputs ? { } }: |
||||
let |
||||
self = { outPath = path; } // |
||||
((import (path + "/flake.nix")).outputs (inputs // { self = self; })); |
||||
in |
||||
self; |
||||
|
||||
} |
@ -1,8 +0,0 @@ |
||||
{ |
||||
outputs = { self, subflake, callLocklessFlake }: rec { |
||||
x = (callLocklessFlake { |
||||
path = subflake; |
||||
inputs = {}; |
||||
}).subflakeOutput; |
||||
}; |
||||
} |
@ -1,5 +0,0 @@ |
||||
{ |
||||
outputs = { self }: { |
||||
subflakeOutput = 1; |
||||
}; |
||||
} |
Loading…
Reference in new issue