mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 17:57:50 +00:00
Returns true if the parameter is not a derivation or if trying to evaluate the derivation would fail.
17 lines
455 B
Nix
17 lines
455 B
Nix
{ lib ? import <nixpkgs/lib, ... }:
|
|
let
|
|
myLib = lib.makeExtensible (self: let
|
|
callLibs = file: import file {
|
|
inherit lib;
|
|
myLib = self;
|
|
};
|
|
in {
|
|
math = callLibs ./math.nix;
|
|
config = callLibs ./config.nix;
|
|
optimizations = callLibs ./optimizations.nix;
|
|
attrsets = callLibs ./attrsets.nix;
|
|
types = callLibs ./types.nix;
|
|
debug = callLibs ./debug.nix;
|
|
derivations = callLibs ./derivations.nix;
|
|
});
|
|
in myLib
|