3
0
Fork 0
forked from mirrors/nixpkgs

linux-manual: init at 5.14.14

This commit is contained in:
Mikael Voss 2021-09-28 02:30:33 +02:00
parent 44403b728b
commit fb4c3dec25
No known key found for this signature in database
GPG key ID: D991B1833C467B03
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib, stdenv, fetchurl, perl, linuxPackages_latest }:
stdenv.mkDerivation rec {
pname = "linux-manual";
inherit (linuxPackages_latest.kernel) version src;
nativeBuildInputs = [ perl ];
dontConfigure = true;
dontBuild = true;
postPatch = ''
patchShebangs --build \
scripts/kernel-doc \
scripts/split-man.pl
'';
installPhase = ''
mandir=$out/share/man/man9
mkdir -p $mandir
KBUILD_BUILD_TIMESTAMP=$(stat -c %Y Makefile) \
grep -F -l -Z \
--exclude-dir Documentation \
--exclude-dir tools \
-R '/**' \
| xargs -0 -n 256 -P $NIX_BUILD_CORES \
$SHELL -c '{ scripts/kernel-doc -man "$@" || :; } \
| scripts/split-man.pl '$mandir kernel-doc
test -f $mandir/kmalloc.9
'';
meta = with lib; {
homepage = "https://kernel.org/";
description = "Linux kernel API manual pages";
license = licenses.gpl2Only;
maintainers = with maintainers; [ mvs ];
};
}

View file

@ -23081,6 +23081,8 @@ with pkgs;
line-awesome = callPackage ../data/fonts/line-awesome { };
linux-manual = callPackage ../data/documentation/linux-manual { };
lmmath = callPackage ../data/fonts/lmmath {};
lmodern = callPackage ../data/fonts/lmodern { };