Skip to content

Commit d124cf4

Browse files
pod2mdoc: 0.0.10 -> 0.2, fix non-BSD build (#402376)
2 parents 14aa096 + 813ee96 commit d124cf4

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

pkgs/by-name/po/pod2mdoc/package.nix

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,35 @@
44
fetchurl,
55
}:
66

7-
stdenv.mkDerivation rec {
7+
stdenv.mkDerivation (finalAttrs: {
88
pname = "pod2mdoc";
9-
version = "0.0.10";
9+
version = "0.2";
1010

1111
src = fetchurl {
12-
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${version}.tgz";
13-
sha256 = "0nwa9zv9gmfi5ysz1wfm60kahc7nv0133n3dfc2vh2y3gj8mxr4f";
12+
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${finalAttrs.version}.tgz";
13+
hash = "sha256-dPH+MfYdyHauClcD7N1zwjw4EPdtt9uQGCUh9OomsPw=";
1414
};
1515

16+
# use compat_ohash instead of system ohash, which is BSD-specific
17+
postPatch = ''
18+
substituteInPlace Makefile --replace-fail "-DHAVE_OHASH=1" "-DHAVE_OHASH=0"
19+
'';
20+
1621
installPhase = ''
1722
mkdir -p $out/bin
1823
mkdir -p $out/share/man/man1
1924
install -m 0755 pod2mdoc $out/bin
2025
install -m 0444 pod2mdoc.1 $out/share/man/man1
2126
'';
2227

23-
meta = with lib; {
24-
homepage = "http://mdocml.bsd.lv/";
28+
enableParallelBuild = true;
29+
30+
meta = {
31+
homepage = "https://mandoc.bsd.lv/pod2mdoc/";
2532
description = "converter from POD into mdoc";
26-
license = licenses.isc;
27-
platforms = platforms.all;
28-
maintainers = with maintainers; [ ramkromberg ];
33+
license = lib.licenses.isc;
34+
platforms = lib.platforms.all;
35+
maintainers = with lib.maintainers; [ ramkromberg ];
2936
mainProgram = "pod2mdoc";
3037
};
31-
}
38+
})

0 commit comments

Comments
 (0)