mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 20:58:41 +03:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
33 lines
782 B
Nix
33 lines
782 B
Nix
{ fetchurl, stdenv, gcj }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "pdftk-1.41";
|
|
|
|
src = fetchurl {
|
|
url = http://www.pdfhacks.com/pdftk/pdftk-1.41.tar.bz2;
|
|
sha256 = "1vdrc3179slix6lz3gdiy53z7sh2yf9026r3xi6wdarwrcpawfrf";
|
|
};
|
|
|
|
patches = [ ./gcc-4.3.patch ./gcc-4.4.patch ];
|
|
|
|
buildInputs = [ gcj ];
|
|
|
|
makeFlags = [ "-f" "Makefile.Generic" ];
|
|
|
|
preBuild = "cd pdftk";
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin $out/share/man/man1
|
|
cp pdftk $out/bin
|
|
cp ../debian/pdftk.1 $out/share/man/man1
|
|
'';
|
|
|
|
meta = {
|
|
description = "Simple tool for doing everyday things with PDF documents";
|
|
homepage = http://www.accesspdf.com/pdftk/;
|
|
license = "free";
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|