about summary refs log blame commit diff
path: root/nix/runExecline/default.nix
blob: 76fffdce7b0daa51747e3242f8174c64aff2a67d (plain) (tree)
1
2
3
4
5
6
7
8







                                               


                                          
                                                        





                                   
                              
                                         
                                            



                                    

  
                             
                           

                
{ 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;
}