depot/pkgs/by-name/co/coz/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

56 lines
990 B
Nix

{
lib,
docutils,
fetchFromGitHub,
libelfin,
ncurses,
pkg-config,
python3Packages,
makeWrapper,
}:
python3Packages.buildPythonApplication rec {
pname = "coz";
version = "0.2.2";
pyproject = false; # Built with make
src = fetchFromGitHub {
owner = "plasma-umass";
repo = "coz";
rev = version;
hash = "sha256-tvFXInxjodB0jEgEKgnOGapiVPomBG1hvrhYtG2X5jI=";
};
nativeBuildInputs = [
pkg-config
ncurses
docutils
];
buildInputs = [
ncurses
libelfin
];
dependencies = [ python3Packages.docutils ];
makeFlags = [ "prefix=${placeholder "out"}" ];
strictDeps = true;
# fix executable includes
postInstall = ''
chmod -x $out/include/coz.h
'';
meta = {
homepage = "https://github.com/plasma-umass/coz";
description = "Profiler based on casual profiling";
mainProgram = "coz";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [
zimbatm
aleksana
];
};
}