depot/third_party/tvl/nix/runExecline/default.nix
Default email a291c8690a Project import generated by Copybara.
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
2022-05-19 16:39:52 +02:00

31 lines
684 B
Nix

{ depot, pkgs, lib, ... }:
let
runExecline = import ./runExecline.nix {
inherit (pkgs) stdenv;
inherit (depot.nix) escapeExecline getBins;
inherit pkgs lib;
};
runExeclineLocal = name: args: execline:
runExecline name
(args // {
derivationArgs = args.derivationArgs or { } // {
preferLocalBuild = true;
allowSubstitutes = false;
};
})
execline;
tests = import ./tests.nix {
inherit runExecline runExeclineLocal;
inherit (depot.nix) getBins writeScript;
inherit (pkgs) stdenv coreutils;
inherit pkgs;
};
in
{
__functor = _: runExecline;
local = runExeclineLocal;
inherit tests;
}