diff --git a/ci/niv-cron.nix b/ci/niv-cron.nix index fe0f0dab..652d504b 100644 --- a/ci/niv-cron.nix +++ b/ci/niv-cron.nix @@ -29,7 +29,7 @@ with lib; { chmod 0600 ~/.ssh/id_rsa for source in ${toString (attrNames sources)}; do if nix run -f . pkgs.niv -c niv update $source; then - echo $(nix eval --raw "(import ./.).sources.$source") | ${cachix}/bin/cachix push kittywitch + echo $(nix eval --raw "(import ./.).sources.$source.outPath") | ${cachix}/bin/cachix push kittywitch fi done cachix push kittywitch $(nix eval --raw -f ../. sourceCache) diff --git a/default.nix b/default.nix index 09e56af7..5678a5be 100644 --- a/default.nix +++ b/default.nix @@ -19,7 +19,7 @@ rec { runners = import ./runners.nix { inherit lib; inherit (deploy) target; }; - sourceCache = toString (lib.mapAttrsToList(sourceName: value: "${value}") (removeAttrs (import sources.nix-hexchen {}).sources [ "__functor" ])); + sourceCache = toString (lib.mapAttrsToList(sourceName: value: value.outPath) (removeAttrs (import sources.nix-hexchen {}).sources [ "__functor" ])); deploy = import ./lib/deploy.nix { inherit pkgs sources;