nixpkgs/pkgs/stdenv/tests/succeedOnFailure.nix
2022-11-14 19:03:35 +01:00

14 lines
218 B
Nix

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