File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments