nixpkgs/pkgs/tools/package-management/checkinstall/default.nix
Eelco Dolstra c90bd0756c * Automatically build Debian packages using checkinstall, as suggested
by Pjotr Prins a while back.  This could also be used to generate
  RPMs for packages that don't have a spec-file.

* Added checkinstall to Nixpkgs.  However we don't use our own build
  yet because with it "make install" segfaults in a Debian VM, while
  the pre-built binary does work.

svn path=/nixpkgs/trunk/; revision=13400
2008-11-25 02:20:41 +00:00

25 lines
683 B
Nix

{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
'';
meta = {
homepage = http://checkinstall.izto.org/;
description = "A tool for automatically generating Slackware, RPM or Debian packages when doing `make install'";
};
}