Unverified Commit 051b1d26 authored by Sergei Zimmerman's avatar Sergei Zimmerman Committed by Sergei Zimmerman
Browse files

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

parent 95f9b9ff
Loading
Loading
Loading
Loading
+8 −16
Original line number Diff line number Diff line
@@ -7,26 +7,18 @@
  opencl-clhpp,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "clpeak";
  version = "1.1.0";
  version = "1.1.4";

  src = fetchFromGitHub {
    owner = "krrishnarraj";
    repo = "clpeak";
    rev = version;
    tag = finalAttrs.version;
    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 ];

  buildInputs = [
@@ -34,11 +26,11 @@ stdenv.mkDerivation rec {
    opencl-clhpp
  ];

  meta = with lib; {
  meta = {
    description = "Tool which profiles OpenCL devices to find their peak capacities";
    homepage = "https://github.com/krrishnarraj/clpeak/";
    license = licenses.unlicense;
    maintainers = [ ];
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.xokdvium ];
    mainProgram = "clpeak";
  };
}
})