From 3b4a369df9dd6ee171a7ea4448b50e2528faf850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 9 Sep 2025 19:34:14 +0200 Subject: [PATCH] AI inspired fixes --- pkgs/sops-install-secrets/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/sops-install-secrets/default.nix b/pkgs/sops-install-secrets/default.nix index a3364fd..97db2f2 100644 --- a/pkgs/sops-install-secrets/default.nix +++ b/pkgs/sops-install-secrets/default.nix @@ -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 '';