mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
f29e7867a9
This reverts commitaeffdeffc8
, reversing changes made to723fdeb4f1
.
26 lines
543 B
Nix
26 lines
543 B
Nix
{ busybox }:
|
|
with import ./config.nix;
|
|
let
|
|
|
|
mkDerivation = args:
|
|
derivation ({
|
|
inherit system;
|
|
builder = busybox;
|
|
args = ["sh" "-e" args.builder or (builtins.toFile "builder-${args.name}.sh" ''
|
|
if [ -e "$NIX_ATTRS_SH_FILE" ]; then source $NIX_ATTRS_SH_FILE; fi;
|
|
eval "$buildCommand"
|
|
'')];
|
|
} // removeAttrs args ["builder" "meta"])
|
|
// { meta = args.meta or {}; };
|
|
in
|
|
{
|
|
|
|
failing = mkDerivation {
|
|
name = "failing";
|
|
buildCommand = ''
|
|
echo foo > bar
|
|
exit 1
|
|
'';
|
|
};
|
|
}
|