diff options
Diffstat (limited to 'pkgs/tools/package-management/checkinstall/default.nix')
-rw-r--r-- | pkgs/tools/package-management/checkinstall/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/checkinstall/default.nix b/pkgs/tools/package-management/checkinstall/default.nix index 80f774e8e5d..f7a8321fe31 100644 --- a/pkgs/tools/package-management/checkinstall/default.nix +++ b/pkgs/tools/package-management/checkinstall/default.nix @@ -17,6 +17,22 @@ stdenv.mkDerivation { substituteInPlace checkinstallrc-dist --replace /usr/local $out ''; + postInstall = + if stdenv.isLinux then + # Clear the RPATH, otherwise installwatch.so won't work properly + # as an LD_PRELOADed library on applications that load against a + # different Glibc. + '' + patchelf --set-rpath "" $out/lib/installwatch.so + '' + else ""; + + patches = [ + # Necessary for building on x86_64, see + # http://checkinstall.izto.org/cklist/msg00256.html + ./readlink.patch + ]; + meta = { homepage = http://checkinstall.izto.org/; description = "A tool for automatically generating Slackware, RPM or Debian packages when doing `make install'"; |