pod2mdoc: 0.0.10 -> 0.2, fix non-BSD build (#402376)

This commit is contained in:
Sandro 2025-04-30 16:49:06 +02:00 committed by GitHub
commit d124cf4c0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,15 +4,20 @@
fetchurl,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "pod2mdoc";
version = "0.0.10";
version = "0.2";
src = fetchurl {
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${version}.tgz";
sha256 = "0nwa9zv9gmfi5ysz1wfm60kahc7nv0133n3dfc2vh2y3gj8mxr4f";
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${finalAttrs.version}.tgz";
hash = "sha256-dPH+MfYdyHauClcD7N1zwjw4EPdtt9uQGCUh9OomsPw=";
};
# use compat_ohash instead of system ohash, which is BSD-specific
postPatch = ''
substituteInPlace Makefile --replace-fail "-DHAVE_OHASH=1" "-DHAVE_OHASH=0"
'';
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/man/man1
@ -20,12 +25,14 @@ stdenv.mkDerivation rec {
install -m 0444 pod2mdoc.1 $out/share/man/man1
'';
meta = with lib; {
homepage = "http://mdocml.bsd.lv/";
enableParallelBuild = true;
meta = {
homepage = "https://mandoc.bsd.lv/pod2mdoc/";
description = "converter from POD into mdoc";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ ramkromberg ];
license = lib.licenses.isc;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ ramkromberg ];
mainProgram = "pod2mdoc";
};
}
})