From 454c6dee5e6d7a48208e073d18e990c9c48896f1 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 16 Aug 2021 22:16:02 +0200 Subject: [PATCH] replace-secret: deprecate phases --- pkgs/build-support/replace-secret/replace-secret.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/replace-secret/replace-secret.nix b/pkgs/build-support/replace-secret/replace-secret.nix index e04d1aed5f70..4881ba25f5d2 100644 --- a/pkgs/build-support/replace-secret/replace-secret.nix +++ b/pkgs/build-support/replace-secret/replace-secret.nix @@ -3,13 +3,14 @@ stdenv.mkDerivation { name = "replace-secret"; buildInputs = [ python3 ]; - phases = [ "installPhase" "checkPhase" ]; + dontUnpack = true; installPhase = '' + runHook preInstall install -D ${./replace-secret.py} $out/bin/replace-secret patchShebangs $out + runHook postInstall ''; - doCheck = true; - checkPhase = '' + installCheckPhase = '' install -m 0600 ${./test/input_file} long_test $out/bin/replace-secret "replace this" ${./test/passwd} long_test $out/bin/replace-secret "and this" ${./test/rsa} long_test