default.nix 1.94 KB
Newer Older
Valentin Reis's avatar
.  
Valentin Reis committed
1
{
Valentin Reis's avatar
Valentin Reis committed
2
  hostNixpkgs ? <nixpkgs>,
Valentin Reis's avatar
Valentin Reis committed
3
  pkgs         ? import ../pin.nix {
Valentin Reis's avatar
Valentin Reis committed
4
    hostPkgs = import hostNixpkgs {};
Valentin Reis's avatar
Valentin Reis committed
5 6 7
    jsonpath =../nixpkgs-18.03.json;
  },
  datamovepkgs ? import ../pin.nix {
Valentin Reis's avatar
Valentin Reis committed
8
    hostPkgs = import hostNixpkgs {};
Valentin Reis's avatar
Valentin Reis committed
9 10
    jsonpath=../datamove.json;
  },
Valentin Reis's avatar
Valentin Reis committed
11
  packagepins ? import ./pins.nix {inherit (pkgs) stdenv fetchgit fetchgitPrivate;}
Valentin Reis's avatar
.  
Valentin Reis committed
12 13 14
}:
let
  callPackage = pkgs.lib.callPackageWith pkgs;
Valentin Reis's avatar
Valentin Reis committed
15
  pythonPackages = pkgs.python27Packages;
Valentin Reis's avatar
renames  
Valentin Reis committed
16 17 18 19 20 21
  utils = with pkgs.lib; rec{
    makeSearchPath = subDir: packages:
      concatStringsSep ":" (map (path: path + "/" + subDir) packages);
    makeSearchPathOutput = output: subDir: pkgs: makeSearchPath subDir (map (pkg : "${pkg}/output") pkgs);
   makeLibraryPath = makeSearchPathOutput "lib" "lib";
  };
Valentin Reis's avatar
.  
Valentin Reis committed
22
in rec {
Valentin Reis's avatar
Valentin Reis committed
23
    libnrm = callPackage ./libnrm {};
Valentin Reis's avatar
.  
Valentin Reis committed
24 25
    nrm-containers = callPackage ./containers {
      inherit pythonPackages;
Valentin Reis's avatar
Valentin Reis committed
26
      src = packagepins.containers.nix;
Valentin Reis's avatar
.  
Valentin Reis committed
27 28 29
    };
    nrm = callPackage ./nrm {
      inherit pythonPackages nrm-containers;
Valentin Reis's avatar
Valentin Reis committed
30
      src = packagepins.nrm.bandit;
Valentin Reis's avatar
.  
Valentin Reis committed
31
    };
Valentin Reis's avatar
Valentin Reis committed
32

Valentin Reis's avatar
Valentin Reis committed
33
    applications = {
Valentin Reis's avatar
Valentin Reis committed
34
      lammps = pkgs.lammps-mpi;
Valentin Reis's avatar
renames  
Valentin Reis committed
35 36 37 38 39
      amg = callPackage applications/amg {};
      qmcpack = callPackage applications/qmcpack {};
      openmc = callPackage applications/openmc {};
      stream = callPackage applications/stream {};
      graph500 = callPackage applications/graph500 {};
40
      simple = callPackage applications/simple {inherit intel;};
Valentin Reis's avatar
Valentin Reis committed
41
    };
Valentin Reis's avatar
Valentin Reis committed
42

Valentin Reis's avatar
renames  
Valentin Reis committed
43 44
	intel = with pkgs; rec {
    inherit utils;
45
    compiler_path = "/opt/intel/compilers_and_libraries_2017.1.132/linux/";
Valentin Reis's avatar
renames  
Valentin Reis committed
46 47 48 49 50 51 52 53 54 55 56
    icc = callPackage intel/icc { inherit compiler_path; };
    mkl = callPackage intel/mkl { inherit compiler_path; };
    #WrappedICC = if (icc-native != null) then (import ../patches/cc-wrapper  {
        #inherit stdenv binutils coreutils ;
        #libc = glibc;
        #nativeTools = false;
        #nativeLibc = false;
        #cc = icc-native;
    #}) else null;
    #stdenvICC = (overrideCC stdenv WrappedICC) // {  isICC = true; };
	};
Valentin Reis's avatar
.  
Valentin Reis committed
57

Valentin Reis's avatar
renames  
Valentin Reis committed
58
}