about summary refs log tree commit diff
path: root/lib/source-types.nix
blob: 8a4ab540b9da19b1a9ccbf14268bda21ed1f1ea6 (plain) (blame)
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
{ 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 = {};
}