fix: check if subsystem has builders properly

This commit is contained in:
Yusuf Bera Ertan 2022-09-25 22:28:17 +03:00
parent b9e02b4049
commit 16d9dde731
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA
3 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,7 @@ in let
findBuilder = dreamLock: let
subsystem = dreamLock._generic.subsystem;
in
if ! framework.buildersBySubsystem.${subsystem} ? default
if ! framework.buildersBySubsystem ? ${subsystem}
then throw "Could not find any builder for subsystem '${subsystem}'"
else framework.buildersBySubsystem.${subsystem}.default;

View File

@ -9,6 +9,7 @@
nodejs = "granular-nodejs";
python = "simple-python";
php = "granular-php";
haskell = "simple-haskell";
};
loader = b: b // {build = callPackageDream b.build {};};
funcs = config.functions.subsystem-loading;