Similar to runCommandLocal, this turns off substitutions and prefers building locally. Change-Id: I823b34c7fc54990b54a82324172c299aeffdbf41 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2309 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de> Reviewed-by: lukegb <lukegb@tvl.fyi>
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			683 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			683 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;
 | 
						|
}
 |