mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 20:11:33 +03:00
fix: check if subsystem has builders properly
This commit is contained in:
parent
b9e02b4049
commit
16d9dde731
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user