summary refs log tree commit diff
path: root/pkgs/development/tools/misc/chrpath
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2014-06-22 14:05:26 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-06-22 14:21:55 +0200
commit9883b5806a91c4d2512c1a2908bf1857d19b256a (patch)
tree36ae7301df95da0924d36ea50fb6e3148a9e1d34 /pkgs/development/tools/misc/chrpath
parent3ae765278f0e5d75e3d18ebac29c25780b92e9ee (diff)
downloadnixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar.gz
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar.bz2
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar.lz
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar.xz
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.tar.zst
nixpkgs-9883b5806a91c4d2512c1a2908bf1857d19b256a.zip
chrpath: new package
chrpath is a command line tool to adjust the RPATH or RUNPATH of ELF
binaries.

(Yes, it is similar to our patchelf tool.)

gpsd and Yocto/OpenEmbedded depend on chrpath (although we have
currently patched that dependency out of gpsd).
Diffstat (limited to 'pkgs/development/tools/misc/chrpath')
-rw-r--r--pkgs/development/tools/misc/chrpath/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/chrpath/default.nix b/pkgs/development/tools/misc/chrpath/default.nix
new file mode 100644
index 00000000000..4170570e08a
--- /dev/null
+++ b/pkgs/development/tools/misc/chrpath/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "chrpath-0.16";
+
+  src = fetchurl {
+    url = "https://alioth.debian.org/frs/download.php/file/3979/chrpath-0.16.tar.gz";
+    sha256 = "0yvfq891mcdkf8g18gjjkn2m5rvs8z4z4cl1vwdhx6f2p9a4q3dv";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Command line tool to adjust the RPATH or RUNPATH of ELF binaries";
+    longDescription = ''
+      chrpath changes, lists or removes the rpath or runpath setting in a
+      binary. The rpath, or runpath if it is present, is where the runtime
+      linker should look for the libraries needed for a program.
+    '';
+    homepage = https://alioth.debian.org/projects/chrpath/;
+    license = licenses.gpl2;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.bjornfor ];
+  };
+}