Files
nixpkgs/lib/source-types.nix
2026-04-02 20:42:34 -07:00

23 lines
308 B
Nix

{ lib }:
let
defaultSourceType = tname: {
shortName = tname;
isSource = false;
};
in
lib.mapAttrs (tname: tset: defaultSourceType tname // tset) {
fromSource = {
isSource = true;
};
binaryNativeCode = { };
binaryBytecode = { };
binaryFirmware = { };
obfuscatedCode = { };
}