mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
58 lines
1.0 KiB
Nix
58 lines
1.0 KiB
Nix
{
|
|
autoreconfHook,
|
|
fetchFromGitHub,
|
|
ghostscript,
|
|
lib,
|
|
pkg-config,
|
|
poppler,
|
|
stdenv,
|
|
texliveMinimal,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "extractpdfmark";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trueroad";
|
|
repo = "extractpdfmark";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-pNc/SWAtQWMbB2+lIQkJdBYSZ97iJXK71mS59qQa7Hs=";
|
|
};
|
|
|
|
patches = [
|
|
./gettext-0.25.patch
|
|
];
|
|
|
|
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
|
NIX_LDFLAGS = "-liconv";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
poppler
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [
|
|
ghostscript
|
|
texliveMinimal
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/trueroad/extractpdfmark";
|
|
description = "Extract page mode and named destinations as PDFmark from PDF";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ lib.maintainers.samueltardieu ];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "extractpdfmark";
|
|
};
|
|
})
|