2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib }:
|
2016-09-11 20:18:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mandoc";
|
2021-09-19 17:49:11 +00:00
|
|
|
version = "1.14.6";
|
2016-09-11 20:18:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-08-27 01:12:59 +00:00
|
|
|
url = "https://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz";
|
2021-09-19 17:49:11 +00:00
|
|
|
sha256 = "8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c";
|
2016-09-11 20:18:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
configureLocal = ''
|
|
|
|
HAVE_WCHAR=1
|
|
|
|
MANPATH_DEFAULT="/run/current-system/sw/share/man"
|
|
|
|
OSNAME="NixOS"
|
|
|
|
PREFIX="$out"
|
|
|
|
LD_OHASH="-lutil"
|
2018-08-27 07:21:43 +00:00
|
|
|
CC=${stdenv.cc.targetPrefix}cc
|
2016-09-11 20:18:13 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
echo $configureLocal > configure.local
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://mandoc.bsd.lv/";
|
2016-09-11 20:18:13 +00:00
|
|
|
description = "suite of tools compiling mdoc and man";
|
2018-08-27 01:12:59 +00:00
|
|
|
downloadPage = "http://mandoc.bsd.lv/snapshots/";
|
2016-09-11 20:18:13 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2018-08-27 01:12:59 +00:00
|
|
|
maintainers = with maintainers; [ bb010g ramkromberg ];
|
2016-09-11 20:18:13 +00:00
|
|
|
};
|
|
|
|
}
|