2020-09-30 03:42:59 +00:00
|
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
runExecline = import ./runExecline.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit (depot.nix) escapeExecline getBins;
|
|
|
|
inherit pkgs lib;
|
|
|
|
};
|
|
|
|
|
2022-05-19 14:39:52 +00:00
|
|
|
runExeclineLocal = name: args: execline:
|
|
|
|
runExecline name
|
|
|
|
(args // {
|
|
|
|
derivationArgs = args.derivationArgs or { } // {
|
|
|
|
preferLocalBuild = true;
|
|
|
|
allowSubstitutes = false;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
execline;
|
|
|
|
|
2020-09-30 03:42:59 +00:00
|
|
|
tests = import ./tests.nix {
|
2022-05-19 14:39:52 +00:00
|
|
|
inherit runExecline runExeclineLocal;
|
2020-09-30 03:42:59 +00:00
|
|
|
inherit (depot.nix) getBins writeScript;
|
|
|
|
inherit (pkgs) stdenv coreutils;
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
|
|
|
|
2022-05-19 14:39:52 +00:00
|
|
|
in
|
|
|
|
{
|
2020-09-30 03:42:59 +00:00
|
|
|
__functor = _: runExecline;
|
2022-05-19 14:39:52 +00:00
|
|
|
local = runExeclineLocal;
|
2020-09-30 03:42:59 +00:00
|
|
|
inherit tests;
|
|
|
|
}
|