~aasg/nixexprs

ref: 4b5399b1f065b1ba2703e84ac96827ab9b47c5e7 nixexprs/lib/default.nix -rw-r--r-- 777 bytes
4b5399b1 — Aluísio Augusto Silva Gonçalves ci: Don't rely on `meta.platforms` being set 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib }:
let
  callLibs = file: import file { inherit lib; aasgLib = self; };
  self = rec {
    attrsets = callLibs ./attrsets.nix;
    inherit (attrsets)
      capitalizeAttrNames
      concatMapAttrs
      concatMapAttrs'
      concatMapAttrsToList
      copyAttrsByPath
      recurseIntoAttrsRecursive
      updateNew
      updateNewRecursive;

    declarativeEnvironments = callLibs ./declarative-env.nix;
    inherit (declarativeEnvironments) declareEnvironment baseEnvironment;

    extended = import ./extension.nix { inherit lib; };

    lists = callLibs ./lists.nix;
    inherit (lists) indexOf isSubsetOf;

    math = callLibs ./math.nix;
    inherit (math) abs pow rem;

    strings = callLibs ./strings.nix;
    inherit (strings) capitalize parseHex;
  };
in
self