2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetch
|
2021-03-09 03:18:52 +00:00
|
|
|
, fetchpatch
|
2020-09-25 04:45:31 +00:00
|
|
|
, cmake
|
|
|
|
, llvm
|
|
|
|
, perl
|
|
|
|
, version
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openmp";
|
|
|
|
inherit version;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetch pname "0bh5cswgpc79awlq8j5i7hp355adaac7s6zaz0zwp6mkflxli1yi";
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fix compilation on aarch64-darwin, remove after the next release.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/llvm/llvm-project/commit/7b5254223acbf2ef9cd278070c5a84ab278d7e5f.patch";
|
|
|
|
sha256 = "sha256-A+9/IVIoazu68FK5H5CiXcOEYe1Hpp4xTx2mIw7m8Es=";
|
|
|
|
stripLen = 1;
|
|
|
|
})
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [ llvm ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Components required to build an executable OpenMP program";
|
|
|
|
homepage = "https://openmp.llvm.org/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.all;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|