Skip to content
Merged
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
15 changes: 15 additions & 0 deletions pkgs/by-name/ex/extractpdfmark/gettext-0.25.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/configure.ac b/configure.ac
index 2e7d562..c8dd741 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,10 @@ AC_INIT([Extract PDFmark], [1.1.1], , [extractpdfmark],
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([src/main.cc])
AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIRS([m4])
+
+AM_GNU_GETTEXT_VERSION([0.25])
+AM_GNU_GETTEXT([external])

PACKAGE_COPYRIGHT="Copyright (C) 2016-2022 Masamichi Hosoda"
PACKAGE_LICENSE="License: GPL3+"
18 changes: 12 additions & 6 deletions pkgs/by-name/ex/extractpdfmark/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,28 @@ stdenv.mkDerivation rec {
hash = "sha256-pNc/SWAtQWMbB2+lIQkJdBYSZ97iJXK71mS59qQa7Hs=";
};

patches = [
./gettext-0.25.patch
];

strictDeps = true;

nativeBuildInputs = [
autoreconfHook
pkg-config
];

buildInputs = [
ghostscript
poppler
texlive.combined.scheme-minimal
];

postPatch = ''
touch config.rpath
'';

doCheck = true;

nativeCheckInputs = [
ghostscript
texlive.combined.scheme-minimal
];

meta = with lib; {
homepage = "https://github.com/trueroad/extractpdfmark";
description = "Extract page mode and named destinations as PDFmark from PDF";
Expand Down
Loading