nixos-lib/lib/default.nix
Antoine Viallon 8f4c49f955
[Lib/Derivations] init with isBroken helper
Returns true if the parameter is not a derivation or if trying to
evaluate the derivation would fail.
2024-05-02 16:16:52 +02:00

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