4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
41 lines
950 B
Nix
41 lines
950 B
Nix
{ lib, stdenv, fetchurl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mandoc";
|
|
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 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 ];
|
|
};
|
|
}
|