mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
20 lines
383 B
Nix
20 lines
383 B
Nix
with import <nix/config.nix>;
|
|
|
|
rec {
|
|
inherit shell;
|
|
|
|
path = coreutils;
|
|
|
|
system = builtins.currentSystem;
|
|
|
|
shared = builtins.getEnv "_NIX_TEST_SHARED";
|
|
|
|
mkDerivation = args:
|
|
derivation ({
|
|
inherit system;
|
|
builder = shell;
|
|
args = ["-e" args.builder];
|
|
PATH = path;
|
|
} // removeAttrs args ["builder" "meta"])
|
|
// { meta = args.meta or {}; };
|
|
}
|