nixpkgs/pkgs/os-specific/linux/oxtools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
841 B
Nix
Raw Normal View History

2022-09-25 23:41:04 +00:00
{ lib, stdenv, fetchFromGitHub
, glibc, python3
}:
2023-09-24 06:34:10 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-09-25 23:41:04 +00:00
pname = "0xtools";
2023-09-24 06:34:10 +00:00
version = "1.2.4";
2022-09-25 23:41:04 +00:00
src = fetchFromGitHub {
owner = "tanelpoder";
2023-09-24 06:34:10 +00:00
repo = "0xtools";
rev = "v${finalAttrs.version}";
hash = "sha256-h0/HIbwb1CvFUh/NpozDUCjYGCH647lC7JhbpDCvaLk=";
2022-09-25 23:41:04 +00:00
};
postPatch = ''
2023-09-24 06:34:10 +00:00
substituteInPlace lib/0xtools/psnproc.py \
2022-09-25 23:41:04 +00:00
--replace /usr/include/asm/unistd_64.h ${glibc.dev}/include/asm/unistd_64.h
'';
buildInputs = [ python3 ];
makeFlags = [ "PREFIX=${placeholder "out"}" ];
preInstall = ''
mkdir -p $out/bin
'';
meta = with lib; {
description = "Utilities for analyzing application performance";
homepage = "https://0x.tools";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ astro ];
platforms = [ "x86_64-linux" ];
};
2023-09-24 06:34:10 +00:00
})