AI inspired fixes

This commit is contained in:
Sandro Jäckel 2025-09-09 19:34:14 +02:00 committed by Jörg Thalheim
parent 692f94d84a
commit 3b4a369df9

View file

@ -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
'';