core/pkgs/stdenv/tests/succeedOnFailure.nix
2024-05-13 11:34:52 -04:00

15 lines
218 B
Nix

{ stdenv }:
stdenv.mkDerivation {
name = "stdenv-test-succeedOnFailure";
succeedOnFailure = true;
passAsFile = [ "buildCommand" ];
buildCommand = ''
mkdir $out
echo foo > $out/foo
exit 1
'';
}