at 23.11-beta 36 lines 841 B view raw
1{ lib, stdenv, fetchFromGitHub 2, glibc, python3 3}: 4 5stdenv.mkDerivation (finalAttrs: { 6 pname = "0xtools"; 7 version = "1.2.4"; 8 9 src = fetchFromGitHub { 10 owner = "tanelpoder"; 11 repo = "0xtools"; 12 rev = "v${finalAttrs.version}"; 13 hash = "sha256-h0/HIbwb1CvFUh/NpozDUCjYGCH647lC7JhbpDCvaLk="; 14 }; 15 16 postPatch = '' 17 substituteInPlace lib/0xtools/psnproc.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})