From 8f0b52892c1c5bf1d2fc232fdfd07d37c91b2eda Mon Sep 17 00:00:00 2001 From: Jeff Hykin Date: Sat, 25 May 2024 11:02:11 -0400 Subject: [PATCH] make sourceTypes json --- nodes/1_lib/source/default.nix | 2 +- nodes/1_lib/static/setup.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/nodes/1_lib/source/default.nix b/nodes/1_lib/source/default.nix index 8154242..5c7de25 100644 --- a/nodes/1_lib/source/default.nix +++ b/nodes/1_lib/source/default.nix @@ -43,7 +43,7 @@ let # constants licenses = static.setup.licenses; - sourceTypes = callLibs ./source-types.nix; + sourceTypes = static.setup.sourceTypes; systems = callLibs ./systems; # serialization diff --git a/nodes/1_lib/static/setup.json b/nodes/1_lib/static/setup.json index cb365e2..2c331a9 100644 --- a/nodes/1_lib/static/setup.json +++ b/nodes/1_lib/static/setup.json @@ -1,4 +1,22 @@ { + "sourceTypes": { + "binaryBytecode": { + "isSource": false, + "shortName": "binaryBytecode" + }, + "binaryFirmware": { + "isSource": false, + "shortName": "binaryFirmware" + }, + "binaryNativeCode": { + "isSource": false, + "shortName": "binaryNativeCode" + }, + "fromSource": { + "isSource": true, + "shortName": "fromSource" + } + }, "licenses": { "abstyles": { "deprecated": false,