mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #134356 from Stunkymonkey/replace-secret-phases
replace-secret: deprecate phases
This commit is contained in:
commit
a614698169
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user