base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / likwid / package.nix
blob8a8a492fa0f46e5ee030f56fd67e28a756f0e422
1 { lib
2 , stdenv
3 , fetchurl
4 , perl
5 , substituteAll
6 , coreutils
7 , gnugrep
8 }:
10 stdenv.mkDerivation rec {
11   pname = "likwid";
12   version = "5.3.0";
14   src = fetchurl {
15     url = "https://ftp.fau.de/pub/likwid/likwid-${version}.tar.gz";
16     hash = "sha256-wpDlVMQlMSSsKriwVuFO5NI5ZrjJ+/oQuoH3WuVDzk4=";
17   };
19   nativeBuildInputs = [ perl ];
21   hardeningDisable = [ "format" ];
23   patches = [
24     ./nosetuid.patch
25     (substituteAll {
26       src = ./cat-grep-sort-wc.patch;
27       coreutils = "${coreutils}/bin/";
28       gnugrep = "${gnugrep}/bin/";
29     })
30   ];
32   postPatch = "patchShebangs bench/ perl/";
34   makeFlags = [ "PREFIX=$(out)" ];
36   meta = with lib; {
37     homepage = "https://hpc.fau.de/research/tools/likwid/";
38     changelog = "https://github.com/RRZE-HPC/likwid/releases/tag/v${version}";
39     description = "Performance monitoring and benchmarking suite";
40     license = licenses.gpl3Only;
41     # Might work on ARM by appropriately setting COMPILER in config.mk
42     platforms = intersectLists platforms.linux platforms.x86;
43     maintainers = [ maintainers.vbgl ];
44     mainProgram = "likwid-perfctr";
45   };