about summary refs log blame commit diff
path: root/tests/config.nix
blob: 76388fdd5b955807ef8d10769d0f5034059f535a (plain) (tree)
1
2
3
4
5
6
7
8
9

                             
     


                   
 
                                  
 
                                              
 

                      

                      
                                                                                            
                  

                                             
 
with import <nix/config.nix>;

rec {
  inherit shell;

  path = coreutils;

  system = builtins.currentSystem;

  shared = builtins.getEnv "_NIX_TEST_SHARED";

  mkDerivation = args:
    derivation ({
      inherit system;
      builder = shell;
      args = ["-e" args.builder or (builtins.toFile "builder.sh" "eval \"$buildCommand\"")];
      PATH = path;
    } // removeAttrs args ["builder" "meta"])
    // { meta = args.meta or {}; };
}