From 49ccc189377b693d3cba88d65c4d925f5e874269 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Wed, 22 Apr 2020 17:17:40 +0200 Subject: [PATCH] fix infinite recursion --- default.nix | 2 +- example/flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 122cef6..9d18537 100644 --- a/default.nix +++ b/default.nix @@ -25,7 +25,7 @@ let op = attrs: system: let ret = f system; - opt = attrs: key: + op = attrs: key: attrs // { ${key} = (attrs.${key} or {}) // { ${system} = ret.${key}; }; diff --git a/example/flake.nix b/example/flake.nix index d2150e5..d877b0e 100644 --- a/example/flake.nix +++ b/example/flake.nix @@ -13,7 +13,7 @@ rec { packages.hello = pkgs.hello; defaultPackage = packages.hello; - apps.hello = utils.lib.mkApp packages.hello; + apps.hello = utils.lib.mkApp { drv = packages.hello; }; defaultApp = apps.hello; } );