nixpkgs/pkgs/stdenv/tests/succeedOnFailure.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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