bscpkgs/default.nix
2020-06-25 15:13:20 +02:00

90 lines
2.0 KiB
Nix

{ pkgs ? import <nixpkgs> {} }:
let
inherit (pkgs.lib) callPackageWith;
inherit (pkgs.lib) callPackagesWith;
callPackage = callPackageWith (pkgs // self.bsc);
callPackages = callPackagesWith (pkgs // self.bsc);
self.bsc = rec {
# Custom OpenMPI with mpi_cxx enabled for TAMPI
openmpi = callPackage ./bsc/openmpi/default.nix {
enableCxx = true;
};
# Load the default implementation
#mpi = pkgs.mpich;
#mpi = pkgs.openmpi;
mpi = openmpi; # Our OpenMPI variant
# Load the default compiler
#stdenv = pkgs.gcc7Stdenv;
#stdenv = pkgs.gcc9Stdenv;
#stdenv = pkgs.gcc10Stdenv;
stdenv = pkgs.clangStdenv;
binutils = pkgs.binutils;
coreutils = pkgs.coreutils;
fftw = callPackage ./bsc/fftw/default.nix {
mpi = mpi;
};
extrae = callPackage ./bsc/extrae/default.nix {
mpi = mpi;
};
tampi = callPackage ./bsc/tampi/default.nix {
mpi = mpi;
};
nanos6 = callPackage ./bsc/nanos6/default.nix {
extrae = extrae;
};
nanos6-git = callPackage ./bsc/nanos6/git.nix {
extrae = extrae;
};
dummy = callPackage ./bsc/dummy/default.nix {
};
chroot = callPackage ./test/chroot.nix {
};
clang-ompss2-unwrapped = callPackage ./bsc/llvm-ompss2/clang.nix {
stdenv = pkgs.llvmPackages_10.stdenv;
};
clang-ompss2 = callPackage bsc/llvm-ompss2/default.nix {
nanos6 = nanos6-git;
inherit clang-ompss2-unwrapped;
};
stdenv-nanos6 = pkgs.clangStdenv.override {
cc = clang-ompss2;
};
test-clang-ompss2 = callPackage ./test/compilers/clang-ompss2.nix {
stdenv = stdenv-nanos6;
nanos6 = nanos6-git;
inherit clang-ompss2;
};
cpic = callPackage ./bsc/cpic/default.nix {
stdenv = stdenv-nanos6;
nanos6 = nanos6-git;
inherit mpi tampi;
};
inherit (callPackage ./bsc/nix {
storeDir = "/nix/store";
stateDir = "/nix/var";
boehmgc = pkgs.boehmgc.override { enableLargeConfig = true; };
})
nix;
};
in pkgs // self