mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
clinfo: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -4,17 +4,21 @@
|
||||
fetchFromGitHub,
|
||||
ocl-icd,
|
||||
opencl-headers,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "clinfo";
|
||||
version = "3.1.26.09.26";
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Oblomov";
|
||||
repo = "clinfo";
|
||||
rev = finalAttrs.version;
|
||||
sha256 = "sha256-5lM/6ULfw0xwXOZU2Kvc2h1oY7JBCvbAFuVn8mRvRX8=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-5lM/6ULfw0xwXOZU2Kvc2h1oY7JBCvbAFuVn8mRvRX8=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
@@ -24,6 +28,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Print all known information about all available OpenCL platforms and devices in the system";
|
||||
homepage = "https://github.com/Oblomov/clinfo";
|
||||
|
||||
Reference in New Issue
Block a user