Skip to content

Instantly share code, notes, and snippets.

@ttuegel
Created September 13, 2015 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttuegel/11e34a8cb8c72cb2bb20 to your computer and use it in GitHub Desktop.
Save ttuegel/11e34a8cb8c72cb2bb20 to your computer and use it in GitHub Desktop.
patchelf.nix
with (import <nixpkgs> {}).pkgs;
stdenv.mkDerivation rec {
name = "patchelf-0.9-pre";
src = fetchgit {
url = https://github.com/NixOS/patchelf.git;
rev = "63296c4e18381216f740670916608f9ef159672e";
sha256 = "b6b2b4891773ea9d36f1891082812a157b7a6097827594419fe4a4343aa403a1";
};
nativeBuildInputs = [ autoconf automake ];
preConfigure = ''./bootstrap.sh'';
meta = {
homepage = http://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;
};
}
@ttuegel
Copy link
Author

ttuegel commented Sep 13, 2015

Save to a file and install with nix-env -i -f patchelf.nix (or the filename you used).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment