nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, patchelf }:
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.13.1";
11
12 src = fetchurl {
13 url = "https://github.com/NixOS/${pname}/releases/download/${version}/${pname}-${version}.tar.bz2";
14 sha256 = "sha256-OeiuzNdJXVTfCU0rSnwIAQ/3d3A2+q8k8o4Hd30VmOI=";
15 };
16
17 setupHook = [ ./setup-hook.sh ];
18
19 # fails 8 out of 24 tests, problems when loading libc.so.6
20 doCheck = stdenv.name == "stdenv-linux";
21
22 inherit (patchelf) meta;
23}