nixpkgs/pkgs/stdenv/tests/succeedOnFailure.nix

15 lines
218 B
Nix
Raw Normal View History

2022-11-14 18:03:35 +00:00
{ stdenv }:
stdenv.mkDerivation {
name = "stdenv-test-succeedOnFailure";
succeedOnFailure = true;
passAsFile = [ "buildCommand" ];
buildCommand = ''
mkdir $out
echo foo > $out/foo
exit 1
'';
}