diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-05-31 00:12:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 00:12:58 +0000 |
commit | 5250c9bcbc7c8a4512be49d57ae8d4ad07e52664 (patch) | |
tree | 2c8ae850225538e2008a72530ee3cea189273d03 /lib | |
parent | 7badab08b5789bd6c357704b43d1e4612abafd2d (diff) | |
parent | ef44c71d983d65dcb01eabdb459caaa522b7d962 (diff) | |
download | nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar.gz nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar.bz2 nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar.lz nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar.xz nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.tar.zst nixlib-5250c9bcbc7c8a4512be49d57ae8d4ad07e52664.zip |
Merge master into haskell-updates
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 1 | ||||
-rw-r--r-- | lib/source-types.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index e919509e724a..791eba8a9301 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -36,6 +36,7 @@ let # constants licenses = callLibs ./licenses.nix; + sourceTypes = callLibs ./source-types.nix; systems = callLibs ./systems; # serialization diff --git a/lib/source-types.nix b/lib/source-types.nix new file mode 100644 index 000000000000..c4f263dcf464 --- /dev/null +++ b/lib/source-types.nix @@ -0,0 +1,19 @@ +{ lib }: + +let + defaultSourceType = tname: { + shortName = tname; + isSource = false; + }; +in lib.mapAttrs (tname: tset: defaultSourceType tname // tset) { + + fromSource = { + isSource = true; + }; + + binaryNativeCode = {}; + + binaryBytecode = {}; + + binaryFirmware = {}; +} |