1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

sops-install-secrets: disable unittest for darwin

because $unittest is undefined on darwin and breaks the build/test
This commit is contained in:
Pogobanane 2023-02-01 20:15:41 +01:00
parent c4ff0f37ef
commit 716ccf8147

View file

@ -15,10 +15,13 @@ buildGoModule {
inherit pkgs;
};
outputs = [ "out" "unittest" ];
outputs = [ "out" ] ++
pkgs.lib.lists.optionals (pkgs.stdenv.isLinux) [ "unittest" ];
postInstall = ''
go test -c ./pkgs/sops-install-secrets
'' + pkgs.lib.optionalString (pkgs.stdenv.isLinux) ''
# *.test is only tested on linux. $unittest does not exist on darwin.
install -D ./sops-install-secrets.test $unittest/bin/sops-install-secrets.test
# newer versions of nixpkgs no longer require this step
if command -v remove-references-to; then