1 { lib, stdenv, fetchurl, perl, linuxPackages_latest }:
3 stdenv.mkDerivation rec {
4 pname = "linux-manual";
5 inherit (linuxPackages_latest.kernel) version src;
7 nativeBuildInputs = [ perl ];
13 patchShebangs --build \
19 mandir=$out/share/man/man9
22 KBUILD_BUILD_TIMESTAMP=$(stat -c %Y Makefile) \
24 --exclude-dir Documentation \
27 | xargs -0 -n 256 -P $NIX_BUILD_CORES \
28 $SHELL -c '{ scripts/kernel-doc -man "$@" || :; } \
29 | scripts/split-man.pl '$mandir kernel-doc
31 test -f $mandir/kmalloc.9
35 homepage = "https://kernel.org/";
36 description = "Linux kernel API manual pages";
37 license = licenses.gpl2Only;
38 maintainers = with maintainers; [ mvs ];