mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
pod2mdoc: 0.0.10 -> 0.2, fix non-BSD build (#402376)
This commit is contained in:
commit
d124cf4c0c
1 changed files with 17 additions and 10 deletions
|
@ -4,15 +4,20 @@
|
||||||
fetchurl,
|
fetchurl,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "pod2mdoc";
|
pname = "pod2mdoc";
|
||||||
version = "0.0.10";
|
version = "0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${version}.tgz";
|
url = "http://mdocml.bsd.lv/pod2mdoc/snapshots/pod2mdoc-${finalAttrs.version}.tgz";
|
||||||
sha256 = "0nwa9zv9gmfi5ysz1wfm60kahc7nv0133n3dfc2vh2y3gj8mxr4f";
|
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 = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/share/man/man1
|
mkdir -p $out/share/man/man1
|
||||||
|
@ -20,12 +25,14 @@ stdenv.mkDerivation rec {
|
||||||
install -m 0444 pod2mdoc.1 $out/share/man/man1
|
install -m 0444 pod2mdoc.1 $out/share/man/man1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
enableParallelBuild = true;
|
||||||
homepage = "http://mdocml.bsd.lv/";
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://mandoc.bsd.lv/pod2mdoc/";
|
||||||
description = "converter from POD into mdoc";
|
description = "converter from POD into mdoc";
|
||||||
license = licenses.isc;
|
license = lib.licenses.isc;
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.all;
|
||||||
maintainers = with maintainers; [ ramkromberg ];
|
maintainers = with lib.maintainers; [ ramkromberg ];
|
||||||
mainProgram = "pod2mdoc";
|
mainProgram = "pod2mdoc";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue