clpeak: 1.1.0 -> 1.1.4, refactor and adopt, update license to asl20

Upstream has switched licenses in 1.1.3 [1].

[1]: 65e5724513
This commit is contained in:
Sergei Zimmerman 2025-02-21 21:55:34 +00:00 committed by Sergei Zimmerman
parent 95f9b9ffc3
commit 051b1d262a
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -7,26 +7,18 @@
opencl-clhpp, opencl-clhpp,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "clpeak"; pname = "clpeak";
version = "1.1.0"; version = "1.1.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "krrishnarraj"; owner = "krrishnarraj";
repo = "clpeak"; repo = "clpeak";
rev = version; tag = finalAttrs.version;
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "1wkjpvn4r89c3y06rv7gfpwpqw6ljmqwz0w0mljl9y5hn1r4pkx2"; hash = "sha256-unQLZ5EExL9lU2XuYLJjASeFzDA74+TnU0CQTWyNYiQ=";
}; };
patches = [
# The cl.hpp header was removed from opencl-clhpp. This patch
# updates clpeak to use the new cp2.hpp header. The patch comes
# from the following PR and was updated to apply against more
# recent versions: https://github.com/krrishnarraj/clpeak/pull/46
./clpeak-clhpp2.diff
];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ buildInputs = [
@ -34,11 +26,11 @@ stdenv.mkDerivation rec {
opencl-clhpp opencl-clhpp
]; ];
meta = with lib; { meta = {
description = "Tool which profiles OpenCL devices to find their peak capacities"; description = "Tool which profiles OpenCL devices to find their peak capacities";
homepage = "https://github.com/krrishnarraj/clpeak/"; homepage = "https://github.com/krrishnarraj/clpeak/";
license = licenses.unlicense; license = lib.licenses.asl20;
maintainers = [ ]; maintainers = [ lib.maintainers.xokdvium ];
mainProgram = "clpeak"; mainProgram = "clpeak";
}; };
} })