From 485ecc03b0c11a9e865ec8d37604f7dff15313a9 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 27 Aug 2023 22:09:43 +0100 Subject: [PATCH] serviceDefn build function handles dependencies in a bit of a hacky way, we culd clean this up --- pkgs/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/default.nix b/pkgs/default.nix index 722eefb..1c52a63 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -23,7 +23,14 @@ in { checkTypes = t : p : typeChecked (builtins.toString path) t p; in { inherit parameters; - build = args : pkg (checkTypes parameters args); + build = { dependencies ? [], ... } @ args : + let + s = pkg (checkTypes parameters + (builtins.removeAttrs args ["dependencies"])); + in s.overrideAttrs (o: { + dependencies = (builtins.map (d: d.name) dependencies) ++ o.dependencies; + buildInputs = dependencies ++ o.buildInputs; + }); }; lib = { types =