* 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
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{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'";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user