mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
c90bd0756c
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
25 lines
683 B
Nix
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'";
|
|
};
|
|
}
|