mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 14:56:15 +02:00
5722f9690c
Issue #3373.
18 lines
467 B
Nix
18 lines
467 B
Nix
rec {
|
|
shell = "@bash@";
|
|
|
|
path = "@coreutils@";
|
|
|
|
system = "@system@";
|
|
|
|
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
|
|
|
mkDerivation = args:
|
|
derivation ({
|
|
inherit system;
|
|
builder = shell;
|
|
args = ["-e" args.builder or (builtins.toFile "builder-${args.name}.sh" "if [ -e .attrs.sh ]; then source .attrs.sh; fi; eval \"$buildCommand\"")];
|
|
PATH = path;
|
|
} // removeAttrs args ["builder" "meta"])
|
|
// { meta = args.meta or {}; };
|
|
}
|