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