core/pkgs/stdenv/tests/succeedOnFailure.nix

15 lines
218 B
Nix
Raw Permalink Normal View History

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