You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
529 B
23 lines
529 B
2 years ago
|
{ 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;
|
||
|
|
||
|
}
|