mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 12:04:40 +00:00
pahole: (??) -> v1.12, cleanup (#46913)
(roughly 2015-09-15 -> 2018-08-16)
This commit is contained in:
parent
4a77150d8b
commit
254218bffb
@ -1,20 +1,19 @@
|
|||||||
{ stdenv, fetchgit, cmake, elfutils, zlib }:
|
{ stdenv, fetchgit, cmake, elfutils, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "pahole-head";
|
name = "pahole-${version}";
|
||||||
|
version = "1.12";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = https://git.kernel.org/pub/scm/devel/pahole/pahole.git;
|
url = https://git.kernel.org/pub/scm/devel/pahole/pahole.git;
|
||||||
sha256 = "05f8a14ea6c200c20e9c6738593b38e4ced73a9cef86499ccd7af910eb9b74b3";
|
sha256 = "1a8xfwqdc2j3ydh9bk2pkvsaf3lrkbxj66vj991c7knc31ix8kpw";
|
||||||
rev = "1decb1bc4a412a0902b7b25190d755a875022d03";
|
rev = "v${version}";
|
||||||
};
|
};
|
||||||
buildInputs = [ cmake elfutils zlib ];
|
|
||||||
|
|
||||||
postInstall = ''
|
nativeBuildInputs = [ cmake ];
|
||||||
for p in $out/bin/*; do
|
buildInputs = [ elfutils zlib ];
|
||||||
rpath=`patchelf --print-rpath $p || true`:$out
|
|
||||||
patchelf --set-rpath "$rpath" $p || true
|
# Put libraries in "lib" subdirectory, not top level of $out
|
||||||
done
|
cmakeFlags = [ "-D__LIB=lib" ];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://git.kernel.org/cgit/devel/pahole/pahole.git/;
|
homepage = https://git.kernel.org/cgit/devel/pahole/pahole.git/;
|
||||||
|
Loading…
Reference in New Issue
Block a user