blob: 3bb5c3b1d18c59bafb6ef459f9fa1672c6dba8e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "man-pages";
version = "6.7";
src = fetchurl {
url = "mirror://kernel/linux/docs/man-pages/${pname}-${version}.tar.xz";
hash = "sha256-gkA61LwXqtuST2hji3nWkwssvVUVMSSKepaId52077I=";
};
makeFlags = [
# Clobber /usr/bin/env with the one in PATH.
"SHELL=env"
"prefix=${placeholder "out"}"
];
dontBuild = true;
outputDocdev = "out";
enableParallelInstalling = true;
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
'';
meta = with lib; {
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
};
}
|