nixpkgs/pkgs/tools/misc/mandoc/default.nix

42 lines
972 B
Nix
Raw Normal View History

2016-09-11 21:18:13 +01:00
{ stdenv, fetchurl, zlib }:
stdenv.mkDerivation rec {
name = "mandoc-${version}";
2018-08-27 02:12:59 +01:00
version = "1.14.4";
2016-09-11 21:18:13 +01:00
src = fetchurl {
2018-08-27 02:12:59 +01:00
url = "https://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz";
sha256 = "24eb72103768987dcc63b53d27fdc085796330782f44b3b40c4660b1e1ee9b9c";
2016-09-11 21:18:13 +01: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 08:21:43 +01:00
CC=${stdenv.cc.targetPrefix}cc
2016-09-11 21:18:13 +01:00
'';
2018-08-27 08:21:43 +01:00
patches = [
./remove-broken-cc-check.patch
];
2016-09-11 21:18:13 +01:00
preConfigure = ''
echo $configureLocal > configure.local
'';
meta = with stdenv.lib; {
2018-08-27 02:12:59 +01:00
homepage = https://mandoc.bsd.lv/;
2016-09-11 21:18:13 +01:00
description = "suite of tools compiling mdoc and man";
2018-08-27 02:12:59 +01:00
downloadPage = "http://mandoc.bsd.lv/snapshots/";
2016-09-11 21:18:13 +01:00
license = licenses.bsd3;
platforms = platforms.all;
2018-08-27 02:12:59 +01:00
maintainers = with maintainers; [ bb010g ramkromberg ];
2016-09-11 21:18:13 +01:00
};
}