nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, llvm_meta
4, fetch
5, cmake
6, llvm
7, targetLlvm
8, perl
9, version
10}:
11
12stdenv.mkDerivation {
13 pname = "openmp";
14 inherit version;
15
16 src = fetch "openmp" "0b3jlxhqbpyd1nqkpxjfggm5d9va5qpyf7d4i5y7n4a1mlydv19y";
17
18 nativeBuildInputs = [ cmake perl ];
19 buildInputs = [
20 (if stdenv.buildPlatform == stdenv.hostPlatform then llvm else targetLlvm)
21 ];
22
23 meta = llvm_meta // {
24 homepage = "https://openmp.llvm.org/";
25 description = "Support for the OpenMP language";
26 longDescription = ''
27 The OpenMP subproject of LLVM contains the components required to build an
28 executable OpenMP program that are outside the compiler itself.
29 Contains the code for the runtime library against which code compiled by
30 "clang -fopenmp" must be linked before it can run and the library that
31 supports offload to target devices.
32 '';
33 # "All of the code is dual licensed under the MIT license and the UIUC
34 # License (a BSD-like license)":
35 license = with lib.licenses; [ mit ncsa ];
36 };
37}