bscpkgs/bsc/llvm-ompss2/default.nix

39 lines
741 B
Nix
Raw Normal View History

2020-06-09 18:21:02 +02:00
{
stdenv
, fetchgit
, cmake
, lld
2020-06-10 19:35:11 +02:00
, bash
, python3
, perl
, clang
, which
2020-06-09 18:21:02 +02:00
}:
stdenv.mkDerivation rec {
version = "10.0.0";
name = "llvm-ompss2-${version}";
enableParallelBuilding = true;
2020-06-10 19:35:11 +02:00
buildInputs = [ which clang bash python3 perl cmake lld ];
#preConfigure = ''
# ls
# cmakeFlagsArray=(
# "-DCMAKE_C_COMPILER=mpicc"
# "-DCMAKE_CXX_COMPILER=mpic++"
# )
#'';
# FIXME: The setup script installs into /build/source/llvm-install
configurePhase = ''
mkdir llvm-build
cd llvm-build
env bash ../utils/OmpSs/setup-cmake.sh
2020-06-09 18:21:02 +02:00
'';
2020-06-10 19:35:11 +02:00
src = builtins.fetchGit {
url = "git@bscpm02.bsc.es:llvm-ompss/llvm-mono.git";
rev = "38e2e6aac04d40b6b2823751ce25f6b414f52263";
ref = "master";
};
2020-06-09 18:21:02 +02:00
}