pdfjam-extras: init at unstable-2019-11-18

This commit is contained in:
Milan Hauth 2023-07-28 14:49:41 +02:00
parent 81e2abe470
commit a182130266
2 changed files with 38 additions and 0 deletions

View File

@ -296,6 +296,7 @@ pkgs.lib.makeScope pkgs.newScope (self: let inherit (self) callPackage; in rec {
mediawiki-dumper = callPackage ./pkgs/mwdumper/mwdumper.nix { };
pdfjam = callPackage ./pkgs/tools/typesetting/pdfjam/pdfjam.nix { };
pdfjam-extras = callPackage ./pkgs/tools/typesetting/pdfjam/pdfjam-extras.nix { };
}

View File

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, pdfjam
}:
stdenv.mkDerivation rec {
pname = "pdfjam-extras";
version = "unstable-2019-11-18";
src = fetchFromGitHub {
owner = "rrthomas";
repo = "pdfjam-extras";
rev = "622e03add59db004144c0b41722a09b3b29d6d3e";
hash = "sha256-2aSqd1A8Y53UWaOkAgfqJEGw50EM/I9VIqyYxPq5c/s=";
};
propagatedBuildInputs = [
# TODO? add pdfjam to PATH
pdfjam
];
installPhase = ''
mkdir -p $out
cp -r bin $out
sed -i '2i\export PATH=$PATH:${pdfjam}/bin' $out/bin/*
mkdir -p $out/share/man
cp -r man1 $out/share/man
'';
meta = with lib; {
description = "Some unsupported 'wrapper' scripts for pdfjam: pdfnup, pdfpun, pdfjoin, pdf90, pdf180, pdf270, pdfflip, pdfbook, pdfjam-pocketmod, pdfjam-slides3up, pdfjam-slides6up";
homepage = "https://github.com/rrthomas/pdfjam-extras";
license = licenses.gpl2Only;
maintainers = with maintainers; [ ];
};
}