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:
parent
c4ff0f37ef
commit
716ccf8147
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue