Add pthread man pages from LinuxThreads.
svn path=/nixpkgs/trunk/; revision=14837
This commit is contained in:
parent
4391a3a849
commit
3d1b6f3034
47
pkgs/data/documentation/pthread-man-pages/default.nix
Normal file
47
pkgs/data/documentation/pthread-man-pages/default.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/* Pthread man pages from LinuxThreads.
|
||||||
|
|
||||||
|
Some of these pages are superseded by those in the `man-pages'
|
||||||
|
package, but not all. Like other distros (e.g., Debian's
|
||||||
|
`glibc-doc' package) we take man pages from LinuxThreads so that
|
||||||
|
we can cover pretty much all of pthreads. */
|
||||||
|
|
||||||
|
{ fetchurl, stdenv, perl }:
|
||||||
|
|
||||||
|
let version = "2.3.6";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "pthread-man-pages-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://gnu/glibc/glibc-linuxthreads-${version}.tar.bz2";
|
||||||
|
sha256 = "0f56msimlyfmragqa69jd39rb47h09l9b0agn67k1rfi8yic8fvc";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
|
unpackPhase = ''
|
||||||
|
echo "unpacking to \`${name}'"
|
||||||
|
mkdir "${name}"
|
||||||
|
cd "${name}"
|
||||||
|
tar xjvf "$src"
|
||||||
|
'';
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
ensureDir "$out/share/man/man3"
|
||||||
|
|
||||||
|
sed -i "linuxthreads/man/Makefile" \
|
||||||
|
-e "s|MANDIR *=.*$|MANDIR = $out/share/man/man3| ;
|
||||||
|
s|3thr|3|g"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preConfigure = "cd linuxthreads/man";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
chmod a-x $out/share/man/man3/*.3
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "POSIX threads (pthreads) manual pages from LinuxThreads";
|
||||||
|
homepage = http://www.gnu.org/software/libc/;
|
||||||
|
};
|
||||||
|
}
|
@ -7556,6 +7556,10 @@ let
|
|||||||
inherit fetchurl stdenv unzip;
|
inherit fetchurl stdenv unzip;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pthreadmanpages = lowPrio (import ../data/documentation/pthread-man-pages {
|
||||||
|
inherit fetchurl stdenv perl;
|
||||||
|
});
|
||||||
|
|
||||||
shared_mime_info = import ../data/misc/shared-mime-info {
|
shared_mime_info = import ../data/misc/shared-mime-info {
|
||||||
inherit fetchurl stdenv pkgconfig gettext intltool libxml2;
|
inherit fetchurl stdenv pkgconfig gettext intltool libxml2;
|
||||||
inherit (gtkLibs) glib;
|
inherit (gtkLibs) glib;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user