2020-06-28 03:14:11 +02:00
|
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
runExecline = import ./runExecline.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit (depot.nix) escapeExecline getBins;
|
|
|
|
inherit pkgs lib;
|
|
|
|
};
|
|
|
|
|
2021-01-01 18:43:42 +01:00
|
|
|
runExeclineLocal = name: args: execline:
|
|
|
|
runExecline name
|
|
|
|
(args // {
|
|
|
|
derivationArgs = args.derivationArgs or { } // {
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
execline;
|
|
|
|
|
2020-06-28 03:14:11 +02:00
|
|
|
tests = import ./tests.nix {
|
2021-01-01 18:43:42 +01:00
|
|
|
inherit runExecline runExeclineLocal;
|
2020-06-28 04:52:08 +02:00
|
|
|
inherit (depot.nix) getBins writeScript;
|
2020-06-28 03:14:11 +02:00
|
|
|
inherit (pkgs) stdenv coreutils;
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
__functor = _: runExecline;
|
2021-01-01 18:43:42 +01:00
|
|
|
local = runExeclineLocal;
|
2020-06-28 03:14:11 +02:00
|
|
|
inherit tests;
|
|
|
|
}
|