Files
nixpkgs/pkgs/by-name/li/likwid/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
perl,
replaceVars,
coreutils,
gnugrep,
}:
stdenv.mkDerivation rec {
pname = "likwid";
version = "5.4.1";
src = fetchurl {
url = "https://ftp.fau.de/pub/likwid/likwid-${version}.tar.gz";
hash = "sha256-V3OFFFXbukieLjc1kx5RVHN3zReWyYKlrIjQ8imcCBE=";
};
nativeBuildInputs = [ perl ];
hardeningDisable = [ "format" ];
patches = [
./nosetuid.patch
(replaceVars ./cat-grep-sort-wc.patch {
coreutils = "${coreutils}/bin/";
gnugrep = "${gnugrep}/bin/";
})
];
postPatch = "patchShebangs bench/ perl/";
makeFlags = [ "PREFIX=$(out)" ];
meta = {
homepage = "https://hpc.fau.de/research/tools/likwid/";
changelog = "https://github.com/RRZE-HPC/likwid/releases/tag/v${version}";
description = "Performance monitoring and benchmarking suite";
license = lib.licenses.gpl3Only;
# Might work on ARM by appropriately setting COMPILER in config.mk
platforms = lib.intersectLists lib.platforms.linux lib.platforms.x86;
maintainers = [ lib.maintainers.vbgl ];
mainProgram = "likwid-perfctr";
};
}