Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 36 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl }: 2 3# Note: this package is used for bootstrapping fetchurl, and thus 4# cannot use fetchpatch! All mutable patches (generated by GitHub or 5# cgit) that are needed here should be included directly in Nixpkgs as 6# files. 7 8stdenv.mkDerivation rec { 9 pname = "patchelf"; 10 version = "0.15.0"; 11 12 src = fetchurl { 13 url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2"; 14 sha256 = "sha256-9ANtPuTY4ijewb7/8PbkbYpA6eVw4AaOOdd+YuLIvcI="; 15 }; 16 17 strictDeps = true; 18 19 setupHook = [ ./setup-hook.sh ]; 20 21 enableParallelBuilding = true; 22 23 # fails 8 out of 24 tests, problems when loading libc.so.6 24 doCheck = stdenv.name == "stdenv-linux" 25 # test scripts require unprefixed bintools binaries 26 # https://github.com/NixOS/patchelf/issues/417 27 && stdenv.cc.targetPrefix == ""; 28 29 meta = with lib; { 30 homepage = "https://github.com/NixOS/patchelf"; 31 license = licenses.gpl3Plus; 32 description = "A small utility to modify the dynamic linker and RPATH of ELF executables"; 33 maintainers = [ maintainers.eelco ]; 34 platforms = platforms.all; 35 }; 36}