2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "man-pages";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "5.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/docs/man-pages/${pname}-${version}.tar.xz";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "sha256-YU2uPv59/UgJhnY6KiqBeSFQMqWkUmwL5eiZol8Ja4s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
# conflict with shadow-utils
|
|
|
|
rm $out/share/man/man5/passwd.5 \
|
|
|
|
$out/share/man/man3/getspnam.3
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
# The manpath executable looks up manpages from PATH. And this package won't
|
|
|
|
# appear in PATH unless it has a /bin folder
|
|
|
|
mkdir -p $out/bin
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
outputDocdev = "out";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Linux development manual pages";
|
|
|
|
homepage = "https://www.kernel.org/doc/man-pages/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
priority = 30; # if a package comes with its own man page, prefer it
|
|
|
|
};
|
|
|
|
}
|