Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / sycl-info / default.nix
blob9d86017e084eae3d51840d815eaadeff9902b5e8
1 { lib, stdenv
2 , fetchFromGitHub
3 , installShellFiles
4 , cmake
5 , ninja
6 , ocl-icd
7 , opencl-headers
8 , lyra
9 , nlohmann_json
10 , ronn
11 , doctest
14 stdenv.mkDerivation rec {
15   pname = "sycl-info";
16   version = "unstable-2019-11-19";
18   src = fetchFromGitHub {
19     owner = "codeplaysoftware";
20     repo = "sycl-info";
21     rev = "b47d498ee2d6b77ec21972de5882e8e12efecd6c";
22     sha256 = "0fy0y1rcfb11p3vijd8wym6xkaicav49pv2bv2l18rma929n1m1m";
23   };
25   buildInputs = [
26     nlohmann_json
27     ronn
28     opencl-headers
29     ocl-icd
30     doctest
31     lyra
32   ];
34   nativeBuildInputs = [
35     cmake
36     ninja
37   ];
39   cmakeFlags = [
40     "-DBUILD_TESTING=ON"
41     "-DBUILD_DOCS=ON"
42     "-DBUILD_SHARED_LIBS=ON"
43     "-DLYRA_INCLUDE_DIRS=${lib.getDev lyra}/include"
44   ];
46   # Required for ronn to compile the manpage.
47   RUBYOPT = "-KU -E utf-8:utf-8";
49   meta = with lib;
50     {
51       homepage = "https://github.com/codeplaysoftware/sycl-info";
52       description = "Tool to show information about available SYCL implementations";
53       platforms = platforms.linux;
54       license = licenses.asl20;
55       maintainers = with maintainers; [ davidtwco ];
56     };