tailscale: build derpprobe (#364918)
[NixPkgs.git] / pkgs / development / tools / misc / patchelf / unstable.nix
blob646fbb1aff14dcc2033ed81f3a44273adba92d34
1 { lib, stdenv, autoreconfHook, fetchFromGitHub, unstableGitUpdater }:
3 stdenv.mkDerivation {
4   pname = "patchelf";
5   version = "0.18.0-unstable-2024-06-15";
7   src = fetchFromGitHub {
8     owner = "NixOS";
9     repo = "patchelf";
10     rev = "a0f54334df36770b335c051e540ba40afcbf8378";
11     sha256 = "sha256-FSoxTcRZMGHNJh8dNtKOkcUtjhmhU6yQXcZZfUPLhQM=";
12   };
14   # Drop test that fails on musl (?)
15   postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
16     substituteInPlace tests/Makefile.am \
17       --replace "set-rpath-library.sh" ""
18   '';
20   setupHook = [ ./setup-hook.sh ];
22   nativeBuildInputs = [ autoreconfHook ];
23   buildInputs = [ ];
25   doCheck = !stdenv.hostPlatform.isDarwin;
27   passthru = {
28     updateScript = unstableGitUpdater {
29       url = "https://github.com/NixOS/patchelf.git";
30     };
31   };
33   meta = with lib; {
34     homepage = "https://github.com/NixOS/patchelf";
35     license = licenses.gpl3;
36     description = "Small utility to modify the dynamic linker and RPATH of ELF executables";
37     mainProgram = "patchelf";
38     maintainers = [ ];
39     platforms = platforms.all;
40   };