Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
testers,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
cups,
|
|
libpng,
|
|
libjpeg,
|
|
pkg-config,
|
|
htmldoc,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "htmldoc";
|
|
version = "1.9.21";
|
|
src = fetchFromGitHub {
|
|
owner = "michaelrsweet";
|
|
repo = "htmldoc";
|
|
rev = "v${version}";
|
|
hash = "sha256-MZKXEwJdQzn49JIUm4clqKBTtjKu6tBU5Sdq6ESn1k4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [
|
|
zlib
|
|
cups
|
|
libpng
|
|
libjpeg
|
|
];
|
|
|
|
# do not generate universal binary on Darwin
|
|
# because it is not supported by Nix's clang
|
|
postPatch = ''
|
|
substituteInPlace configure --replace-fail "-arch x86_64 -arch arm64" ""
|
|
'';
|
|
|
|
passthru.tests = testers.testVersion {
|
|
package = htmldoc;
|
|
command = "htmldoc --version";
|
|
};
|
|
|
|
meta = {
|
|
description = "Converts HTML files to PostScript and PDF";
|
|
homepage = "https://michaelrsweet.github.io/htmldoc";
|
|
changelog = "https://github.com/michaelrsweet/htmldoc/releases/tag/v${version}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
|
|
longDescription = ''
|
|
HTMLDOC is a program that reads HTML source files or web pages and
|
|
generates corresponding HTML, PostScript, or PDF files with an optional
|
|
table of contents.
|
|
'';
|
|
mainProgram = "htmldoc";
|
|
};
|
|
}
|