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";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "6.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kernel/linux/docs/man-pages/${pname}-${version}.tar.xz";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-ucawpCD4ORSL4EsvwTqFaSMTco1U1HxpyKE4N5Zl0iY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=${placeholder "out"}"
|
|
|
|
];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputDocdev = "out";
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
enableParallelInstalling = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
postInstall = ''
|
|
|
|
# The manpath executable looks up manpages from PATH. And this package won't
|
|
|
|
# appear in PATH unless it has a /bin folder. Without the change
|
|
|
|
# 'nix-shell -p man-pages' does not pull in the search paths.
|
|
|
|
# See 'man 5 manpath' for the lookup order.
|
|
|
|
mkdir -p $out/bin
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|