mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-05 03:46:16 +02:00
23 lines
499 B
Nix
23 lines
499 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 .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
|
||
|
} // removeAttrs args ["builder" "meta"])
|
||
|
// { meta = args.meta or {}; };
|
||
|
in
|
||
|
{
|
||
|
|
||
|
failing = mkDerivation {
|
||
|
name = "failing";
|
||
|
buildCommand = ''
|
||
|
echo foo > bar
|
||
|
exit 1
|
||
|
'';
|
||
|
};
|
||
|
}
|