nixpkgs/lib/source-types.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
283 B
Nix
Raw Normal View History

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