adcd13060f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/mandoc/versions
42 lines
960 B
Nix
42 lines
960 B
Nix
{ stdenv, fetchurl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mandoc-${version}";
|
|
version = "1.14.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://mandoc.bsd.lv/snapshots/mandoc-${version}.tar.gz";
|
|
sha256 = "1xyqllxpjj1kimlipx11pzyywf5c25i4wmv0lqm7ph3gnlnb86c2";
|
|
};
|
|
|
|
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
|
|
CC=${stdenv.cc.targetPrefix}cc
|
|
'';
|
|
|
|
patches = [
|
|
./remove-broken-cc-check.patch
|
|
];
|
|
|
|
preConfigure = ''
|
|
echo $configureLocal > configure.local
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://mandoc.bsd.lv/;
|
|
description = "suite of tools compiling mdoc and man";
|
|
downloadPage = "http://mandoc.bsd.lv/snapshots/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ bb010g ramkromberg ];
|
|
};
|
|
}
|