at 23.05-pre 36 lines 815 B view raw
1{ lib, stdenv, fetchFromGitHub 2, glibc, python3 3}: 4 5stdenv.mkDerivation rec { 6 pname = "0xtools"; 7 version = "1.1.3"; 8 9 src = fetchFromGitHub { 10 owner = "tanelpoder"; 11 repo = pname; 12 rev = "v${version}"; 13 sha256 = "sha256-pe64st3yhVfZi8/sTEfH1cNjx7JpqxDmxMmodpXnqaU="; 14 }; 15 16 postPatch = '' 17 substituteInPlace lib/0xtools/proc.py \ 18 --replace /usr/include/asm/unistd_64.h ${glibc.dev}/include/asm/unistd_64.h 19 ''; 20 21 buildInputs = [ python3 ]; 22 23 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 24 25 preInstall = '' 26 mkdir -p $out/bin 27 ''; 28 29 meta = with lib; { 30 description = "Utilities for analyzing application performance"; 31 homepage = "https://0x.tools"; 32 license = licenses.gpl2Plus; 33 maintainers = with maintainers; [ astro ]; 34 platforms = [ "x86_64-linux" ]; 35 }; 36}