Merge pull request #192972 from astro/oxtools

authored by Sandro and committed by GitHub a559091f d7ca7d1c

+38
+36
pkgs/os-specific/linux/oxtools/default.nix
··· 1 + { lib, stdenv, fetchFromGitHub 2 + , glibc, python3 3 + }: 4 + 5 + stdenv.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 + }
+2
pkgs/top-level/all-packages.nix
··· 24870 24870 open-vm-tools = callPackage ../applications/virtualization/open-vm-tools { }; 24871 24871 open-vm-tools-headless = open-vm-tools.override { withX = false; }; 24872 24872 24873 + oxtools = callPackage ../os-specific/linux/oxtools { }; 24874 + 24873 24875 air = callPackage ../development/tools/air { }; 24874 24876 24875 24877 delve = callPackage ../development/tools/delve { };