Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions pkgs/applications/misc/paperjam/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchgit,
qpdf,
libpaper,
asciidoc,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "paperjam";
version = "1.2";

src = fetchgit {
url = "git://git.ucw.cz/paperjam.git";
#rev = "v${finalAttrs.version}";
# this is v1.2 + build fix
rev = "65444824e308470f49b5e4f98fd1763b7da3bd24";
hash = "sha256-AMoSiHDKbnVtmNR07sniXruVKH7p/Pl5aey4SF8aMWA=";
};

buildInputs = [
qpdf
libpaper
asciidoc
];

makeFlags = [
"PREFIX=$(out)"
# prevent real build date which is impure
"BUILD_DATE=\\<unknown\\>"
"BUILD_COMMIT=${finalAttrs.src.rev}"
];

meta = {
homepage = "https://mj.ucw.cz/sw/paperjam/";
description = "A program for transforming PDF files";
longDescription = ''
PaperJam is a program for transforming PDF files. It can re-arrange
pages, scale and rotate them, put multiple pages on a single sheet, draw
cropmarks, and many other tricks.
'';
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ vojta001 ];
platforms = lib.platforms.all;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not building on Darwin. The OfBorg logs accuse the lack of iconv.

};
})
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11582,6 +11582,8 @@ with pkgs;

pamtester = callPackage ../tools/security/pamtester { };

paperjam = callPackage ../applications/misc/paperjam { };

paperless-ngx = callPackage ../applications/office/paperless-ngx { };

paperoni = callPackage ../tools/text/paperoni { };
Expand Down