diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-01-20 03:32:25 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-01-20 03:37:51 +0300 |
commit | 1db8ab66e3d9911ca7f3d7c59e8c31a67bacf3f2 (patch) | |
tree | 8a4cbc9405ae6a6c6afa32498f56762eed3b0e4d /pkgs/tools/system | |
parent | cc68ab1ae2c38adf3f71f178c4931a16e1a79ce9 (diff) |
opencl-info: init at 2014-02-21
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r-- | pkgs/tools/system/opencl-info/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/system/opencl-info/default.nix b/pkgs/tools/system/opencl-info/default.nix new file mode 100644 index 0000000000000..b4d9f699b05b0 --- /dev/null +++ b/pkgs/tools/system/opencl-info/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, opencl-clhpp, ocl-icd }: + +stdenv.mkDerivation { + name = "opencl-info-2014-02-21"; + + src = fetchFromGitHub { + owner = "marchv"; + repo = "opencl-info"; + rev = "3e53d001a98978feb865650cf0e93b045400c0d7"; + sha256 = "114lxgnjg40ivjjszkv4n3f3yq2lbrvywryvbazf20kqmdz7315l"; + }; + + buildInputs = [ opencl-clhpp ocl-icd ]; + + NIX_LDFLAGS = [ "-lOpenCL" ]; + + installPhase = '' + install -Dm755 opencl-info $out/bin/opencl-info + ''; + + meta = with stdenv.lib; { + description = "A tool to dump OpenCL platform/device information"; + homepage = "https://github.com/marchv/opencl-info"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar ]; + }; +} |