mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
26 lines
430 B
Nix
26 lines
430 B
Nix
|
{ lib }:
|
||
|
|
||
|
lib.mapAttrs (tname: tset: let
|
||
|
defaultSourceType = {
|
||
|
shortName = tname;
|
||
|
isSource = false;
|
||
|
};
|
||
|
|
||
|
mkSourceType = sourceTypeDeclaration: let
|
||
|
applyDefaults = sourceType: defaultSourceType // sourceType;
|
||
|
in lib.pipe sourceTypeDeclaration [
|
||
|
applyDefaults
|
||
|
];
|
||
|
in mkSourceType tset) {
|
||
|
|
||
|
fromSource = {
|
||
|
isSource = true;
|
||
|
};
|
||
|
|
||
|
binaryNativeCode = {};
|
||
|
|
||
|
binaryBytecode = {};
|
||
|
|
||
|
binaryFirmware = {};
|
||
|
}
|