-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This function was added to nixpkgs in NixOS/nixpkgs#167947 by Artturin. And later reverted because it's for unstable flakes. So let's add it here, since a lot of projects are already importing flake-utils.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
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; }; | ||
} | ||
*/ | ||
{ path, inputs ? { } }: | ||
let | ||
self = { outPath = path; } // | ||
((import (path + "/flake.nix")).outputs (inputs // { self = self; })); | ||
in | ||
self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters