mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
AI inspired fixes
This commit is contained in:
parent
692f94d84a
commit
3b4a369df9
1 changed files with 3 additions and 3 deletions
|
|
@ -20,17 +20,17 @@ buildGo124Module {
|
|||
# requires root privileges for tests
|
||||
doCheck = false;
|
||||
|
||||
outputs = [ "out" ] ++ lib.lists.optionals (stdenv.isLinux) [ "unittest" ];
|
||||
outputs = [ "out" ] ++ lib.optional stdenv.isLinux "unittest";
|
||||
|
||||
postInstall =
|
||||
''
|
||||
go test -c ./pkgs/sops-install-secrets
|
||||
''
|
||||
+ lib.optionalString (stdenv.isLinux) ''
|
||||
+ lib.optionalString 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
|
||||
if command -v remove-references-to >/dev/null; then
|
||||
remove-references-to -t ${go} $unittest/bin/sops-install-secrets.test
|
||||
fi
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue