1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
nixpkgs/pkgs/development/tools/misc/patchelf/unstable.nix
Ihar Hrachyshka f345dc1dad Bump patchelfUnstable to 0.10
This is to reflect the bump for regular version. We are leaving
patchelfUnstable b/c in the future we may need it to get the very latest
patches to patchelf again.
2019-08-30 13:17:58 -07:00

37 lines
998 B
Nix

{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
name = "patchelf-${version}";
version = "0.10";
src = fetchurl {
url = "https://nixos.org/releases/patchelf/${name}/${name}.tar.bz2";
sha256 = "1wzwvnlyf853hw9zgqq5522bvf8gqadk8icgqa41a5n7593csw7n";
};
# Drop test that fails on musl (?)
postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace tests/Makefile.am \
--replace "set-rpath-library.sh" ""
'' +
# extend version identifier to more informative than "0.10".
''
echo -n ${version} > version
'';
setupHook = [ ./setup-hook.sh ];
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ ];
doCheck = !stdenv.isDarwin;
meta = {
homepage = https://nixos.org/patchelf.html;
license = "GPL";
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.all;
};
}