From 98afd85ef8bcc1e7955d66f581d73cc4a372dc02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 23 Jul 2020 08:20:08 +0100 Subject: [PATCH] sops-ini-gpg-key: add install check --- pkgs/sops-init-gpg-key/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/sops-init-gpg-key/default.nix b/pkgs/sops-init-gpg-key/default.nix index e6ae18e..f8f1e67 100644 --- a/pkgs/sops-init-gpg-key/default.nix +++ b/pkgs/sops-init-gpg-key/default.nix @@ -15,4 +15,9 @@ stdenv.mkDerivation { coreutils utillinux gnupg ] ++ stdenv.lib.optionals (!stdenv.isDarwin) [ unixtools.hostname ])} ''; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/sops-init-gpg-key --hostname server01 --gpghome $TMPDIR/key + ''; }