depot/third_party/nixpkgs/pkgs/stdenv/tests/succeedOnFailure.nix

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
'';
}