diff options
author | matthewcroughan <matt@croughan.sh> | 2022-04-09 01:05:35 +0100 |
---|---|---|
committer | matthewcroughan <matt@croughan.sh> | 2022-04-12 19:27:24 +0100 |
commit | c190b08bb7793004a4706e008a7d0f9b2be3df70 (patch) | |
tree | 6fe287957dd28c12982fb221b8357ec36820498b /lib/default.nix | |
parent | 16e5a1a19ea32f18426e554da4eb5b4e00ae1aff (diff) |
lib: add callLocklessFlake
This is essentially a copy of the function of the same name, from flake-compat. callLocklessFlake is useful when trying to utilise a flake.nix without a lock file, often for when you want to create a subflake from within a parent flake. Co-authored-by: Tom Bereknyei <tomberek@gmail.com> Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix index 1f06283790a8b..7d20acc679482 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -64,7 +64,7 @@ let hasAttr head isAttrs isBool isInt isList isString length lessThan listToAttrs pathExists readFile replaceStrings seq stringLength sub substring tail trace; - inherit (self.trivial) id const pipe concat or and bitAnd bitOr bitXor + inherit (self.trivial) id callLocklessFlake const pipe concat or and bitAnd bitOr bitXor bitNot boolToString mergeAttrs flip mapNullable inNixShell isFloat min max importJSON importTOML warn warnIf warnIfNot throwIf throwIfNot checkListOfEnum info showWarnings nixpkgsVersion version isInOldestRelease |