This reverts commit PR #167947. Flakes aren't standardised and the `lib` namespace shouldn't be polluted with utilities that serve only experimental uses.main
parent
df37224921
commit
161776ec1e
@ -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