diff options
author | Troels Henriksen <athas@sigkill.dk> | 2019-06-08 23:45:42 +0200 |
---|---|---|
committer | Lassulus <github@lassul.us> | 2019-06-15 10:50:34 +0200 |
commit | 0b8efd8724e59964bad01060935ce291288761c9 (patch) | |
tree | 61f0818d95fde02486e14fe187a9e5174202b72b /pkgs/tools/system/clinfo | |
parent | 9bd6c5d817a47f9be45107d0cec6f60b45c53190 (diff) |
clinfo: init at 2.2.18.04.06
Diffstat (limited to 'pkgs/tools/system/clinfo')
-rw-r--r-- | pkgs/tools/system/clinfo/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/system/clinfo/default.nix b/pkgs/tools/system/clinfo/default.nix new file mode 100644 index 000000000000..cc59aa5121c6 --- /dev/null +++ b/pkgs/tools/system/clinfo/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, ocl-icd, opencl-headers }: + +stdenv.mkDerivation rec { + pname = "clinfo"; + version = "2.2.18.04.06"; + + src = fetchFromGitHub { + owner = "Oblomov"; + repo = "clinfo"; + rev = "${version}"; + sha256 = "0y2q0lz5yzxy970b7w7340vp4fl25vndahsyvvrywcrn51ipgplx"; + }; + + buildInputs = [ ocl-icd opencl-headers ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + meta = with stdenv.lib; { + description = "Print all known information about all available OpenCL platforms and devices in the system"; + homepage = https://github.com/Oblomov/clinfo; + license = licenses.cc0; + platforms = platforms.linux; + maintainers = with maintainers; [ athas ]; + }; +} |