mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
First attempt at adding an attribute for the libc.info glibc manual.
svn path=/nixpkgs/trunk/; revision=17868
This commit is contained in:
parent
9ea9133183
commit
9e519f0802
42
pkgs/development/libraries/glibc-2.9/info.nix
Normal file
42
pkgs/development/libraries/glibc-2.9/info.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv, fetchurl, texinfo, perl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "glibc-info-2.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://nixos.org/tarballs/glibc-2.9-20081208.tar.bz2;
|
||||
sha256 = "0zhxbgcsl97pf349m0lz8d5ljvvzrcqc23yf08d888xlk4ms8m3h";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
export PWD_P=$(type -tP pwd)
|
||||
for i in configure io/ftwtest-sh; do
|
||||
# Can't use substituteInPlace here because replace hasn't been
|
||||
# built yet in the bootstrap.
|
||||
sed -i "$i" -e "s^/bin/pwd^$PWD_P^g"
|
||||
done
|
||||
mkdir ../build
|
||||
cd ../build
|
||||
|
||||
configureScript=../$sourceRoot/configure
|
||||
'';
|
||||
|
||||
configureFlags = [ "--enable-add-ons" ];
|
||||
|
||||
buildInputs = [ texinfo perl ];
|
||||
|
||||
buildPhase = "make info";
|
||||
|
||||
# I don't know why the info is not generated in 'build'
|
||||
# Somehow building the info still does not work, because the final
|
||||
# libc.info hasn't a Top node.
|
||||
installPhase = ''
|
||||
ensureDir $out/share/info
|
||||
cp ../$sourceRoot/manual/*.info $out/share/info
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.gnu.org/software/libc/;
|
||||
description = "Locale information for the GNU C Library";
|
||||
};
|
||||
}
|
@ -3410,6 +3410,10 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
glibcInfo = import ../development/libraries/glibc-2.9/info.nix {
|
||||
inherit fetchurl stdenv texinfo perl;
|
||||
};
|
||||
|
||||
glibc_multi =
|
||||
runCommand "${glibc.name}-multi"
|
||||
{ glibc64 = glibc;
|
||||
|
Loading…
Reference in New Issue
Block a user