Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / compilers / llvm / 11 / openmp.nix
blobc99358cd2878091b3b2f945dcc148d01e7e8d0df
1 { lib
2 , stdenv
3 , fetch
4 , fetchpatch
5 , cmake
6 , llvm
7 , perl
8 , version
9 }:
11 stdenv.mkDerivation rec {
12   pname = "openmp";
13   inherit version;
15   src = fetch pname "0bh5cswgpc79awlq8j5i7hp355adaac7s6zaz0zwp6mkflxli1yi";
17   patches = [
18     # Fix compilation on aarch64-darwin, remove after the next release.
19     (fetchpatch {
20       url = "https://github.com/llvm/llvm-project/commit/7b5254223acbf2ef9cd278070c5a84ab278d7e5f.patch";
21       sha256 = "sha256-A+9/IVIoazu68FK5H5CiXcOEYe1Hpp4xTx2mIw7m8Es=";
22       stripLen = 1;
23     })
24   ];
26   nativeBuildInputs = [ cmake perl ];
27   buildInputs = [ llvm ];
29   meta = {
30     description = "Components required to build an executable OpenMP program";
31     homepage    = "https://openmp.llvm.org/";
32     license     = lib.licenses.mit;
33     platforms   = lib.platforms.all;
34   };