2008-11-25 02:20:41 +00:00
|
|
|
{stdenv, fetchurl, gettext}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "checkinstall-1.6.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://checkinstall.izto.org/files/source/checkinstall-1.6.1.tgz;
|
|
|
|
sha256 = "0p6gbbnk4hjwkmv8dr7c4v5wpdnanczavi7yiiivvf45zyfl8lil";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [gettext];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PREFIX=$out)
|
|
|
|
|
|
|
|
substituteInPlace checkinstall --replace /usr/local/lib/checkinstall $out/lib/checkinstall
|
|
|
|
substituteInPlace checkinstallrc-dist --replace /usr/local $out
|
|
|
|
'';
|
|
|
|
|
2008-12-10 17:12:19 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2008-11-25 02:20:41 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://checkinstall.izto.org/;
|
|
|
|
description = "A tool for automatically generating Slackware, RPM or Debian packages when doing `make install'";
|
|
|
|
};
|
|
|
|
}
|