lol

Merge pull request #30217 from gnidorah/hotpatch

hotpatch: init at 0.2

authored by

Jörg Thalheim and committed by
GitHub
16a43e45 64a94834

+39
+37
pkgs/development/libraries/hotpatch/default.nix
··· 1 + { stdenv, fetchFromGitHub, cmake }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "hotpatch-0.2"; 5 + 6 + src = fetchFromGitHub { 7 + owner = "vikasnkumar"; 8 + repo = "hotpatch"; 9 + rev = "4b65e3f275739ea5aa798d4ad083c4cb10e29149"; 10 + sha256 = "169vdh55wsbn6fl58lpzqx64v6ifzh7krykav33x1d9hsk98qjqh"; 11 + }; 12 + 13 + enableParallelBuilding = true; 14 + doCheck = true; 15 + 16 + nativeBuildInputs = [ cmake ]; 17 + 18 + preConfigure = '' 19 + substituteInPlace test/loader.c \ 20 + --replace \"/lib64/ld-linux-x86-64.so.2 \""$(cat $NIX_CC/nix-support/dynamic-linker)" \ 21 + --replace \"/lib/ld-linux-x86-64.so.2 \""$(cat $NIX_CC/nix-support/dynamic-linker)" \ 22 + --replace \"/lib/ld-linux.so.2 \""$(cat $NIX_CC/nix-support/dynamic-linker)" \ 23 + --replace \"/lib32/ld-linux.so.2 \""$(cat $NIX_CC/nix-support/dynamic-linker)" 24 + ''; 25 + 26 + checkPhase = '' 27 + LD_LIBRARY_PATH=$(pwd)/src make test 28 + ''; 29 + 30 + meta = with stdenv.lib; { 31 + description = "Hot patching executables on Linux using .so file injection"; 32 + homepage = src.meta.homepage; 33 + license = licenses.bsd3; 34 + maintainers = [ maintainers.gnidorah ]; 35 + platforms = ["i686-linux" "x86_64-linux"]; 36 + }; 37 + }
+2
pkgs/top-level/all-packages.nix
··· 2594 2594 2595 2595 host = bind.host; 2596 2596 2597 + hotpatch = callPackage ../development/libraries/hotpatch { }; 2598 + 2597 2599 hotspot = libsForQt56.callPackage ../development/tools/analysis/hotspot { }; 2598 2600 2599 2601 hping = callPackage ../tools/networking/hping { };