nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "man-pages";
5 version = "5.13";
6
7 src = fetchurl {
8 url = "mirror://kernel/linux/docs/man-pages/${pname}-${version}.tar.xz";
9 sha256 = "sha256-YU2uPv59/UgJhnY6KiqBeSFQMqWkUmwL5eiZol8Ja4s=";
10 };
11
12 makeFlags = [ "prefix=$(out)" ];
13 postInstall = ''
14 # conflict with shadow-utils
15 rm $out/share/man/man5/passwd.5 \
16 $out/share/man/man3/getspnam.3
17
18 # The manpath executable looks up manpages from PATH. And this package won't
19 # appear in PATH unless it has a /bin folder
20 mkdir -p $out/bin
21 '';
22 outputDocdev = "out";
23
24 meta = with lib; {
25 description = "Linux development manual pages";
26 homepage = "https://www.kernel.org/doc/man-pages/";
27 license = licenses.gpl2Plus;
28 platforms = with platforms; unix;
29 priority = 30; # if a package comes with its own man page, prefer it
30 };
31}