diff --git a/tidepool/src/packages/aux/a.nix b/tidepool/src/packages/aux/a.nix index 692adff..f640b44 100644 --- a/tidepool/src/packages/aux/a.nix +++ b/tidepool/src/packages/aux/a.nix @@ -27,23 +27,29 @@ in } ]; - builder = builders.basic; + builder = builders.foundation.basic; deps.host.host = { inherit (packages.aux) b; }; - phases = ctx: { - install = '' - echo "a with b: ${config.deps.host.host.b.platform.host}" > $out - echo >> $out - echo a=$out >> $out - echo b=$AUX_B >> $out - echo c=$AUX_C >> $out - echo >> $out - echo '${ctx}' >> $out - ''; - }; + phases = + ctx': + let + # break recursion on the derivation outPath itself + ctx = builtins.removeAttrs ctx' [ "package" ]; + in + { + install = '' + echo "a with b: ${config.deps.host.host.b.platform.host}" > $out + echo >> $out + echo a=$out >> $out + echo b=$AUX_B >> $out + echo c=$AUX_C >> $out + echo >> $out + echo '${ctx}' >> $out + ''; + }; }; }; }; diff --git a/tidepool/src/packages/aux/b.nix b/tidepool/src/packages/aux/b.nix index 141be66..92a75da 100644 --- a/tidepool/src/packages/aux/b.nix +++ b/tidepool/src/packages/aux/b.nix @@ -33,7 +33,7 @@ in custom = true; - builder = builders.basic; + builder = builders.foundation.basic; deps = { build = { diff --git a/tidepool/src/packages/aux/c.nix b/tidepool/src/packages/aux/c.nix index 96229a8..024918c 100644 --- a/tidepool/src/packages/aux/c.nix +++ b/tidepool/src/packages/aux/c.nix @@ -38,7 +38,7 @@ in custom = true; - builder = builders.basic; + builder = builders.foundation.basic; context = { "foundation:cflags" = [ "-I $AUX_C/include" ];