14910f5943
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
29 lines
929 B
Nix
29 lines
929 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
# files.
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "patchelf";
|
|
version = "0.14.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-oBfsPSFSoZ/ZacDYez+LQ+MqZuT/q9yHZ6VgYrmuwnA=";
|
|
};
|
|
|
|
setupHook = [ ./setup-hook.sh ];
|
|
|
|
# fails 8 out of 24 tests, problems when loading libc.so.6
|
|
doCheck = stdenv.name == "stdenv-linux";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/NixOS/patchelf";
|
|
license = licenses.gpl3;
|
|
description = "A small utility to modify the dynamic linker and RPATH of ELF executables";
|
|
maintainers = [ maintainers.eelco ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|