mirror of
https://github.com/milahu/nur-packages.git
synced 2024-10-05 23:27:32 +03:00
pdfjam-extras: init at unstable-2019-11-18
This commit is contained in:
parent
81e2abe470
commit
a182130266
@ -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 { };
|
||||
|
||||
}
|
||||
|
||||
|
37
pkgs/tools/typesetting/pdfjam/pdfjam-extras.nix
Normal file
37
pkgs/tools/typesetting/pdfjam/pdfjam-extras.nix
Normal 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; [ ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user