mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Apparently libtool cannot be installed separately from autoconf
and automake. Copying the files in $libtool/share/aclocal to $autoconf/share/aclocal does not work (and causes collisions when installing the tools in the user environment). The solution seems to be to install the three distributions in one single $out directory, i.e., consider them as one package. svn path=/nixpkgs/trunk/; revision=597
This commit is contained in:
parent
b4ce40af2b
commit
d5ec705667
14
pkgs/development/tools/misc/autoconf/autconf-libtool.nix
Normal file
14
pkgs/development/tools/misc/autoconf/autconf-libtool.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{stdenv, fetchurl, m4, perl, libtool}:
|
||||
derivation {
|
||||
name = "autoconf-2.58-with-libtool";
|
||||
system = stdenv.system;
|
||||
builder = ./libtoolbuilder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/autoconf/autoconf-2.58.tar.bz2;
|
||||
md5 = "db3fa3069c6554b3505799c7e1022e2b";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
m4 = m4;
|
||||
perl = perl;
|
||||
libtool = libtool;
|
||||
}
|
22
pkgs/development/tools/misc/autoconf/autoconf-libtool.nix
Normal file
22
pkgs/development/tools/misc/autoconf/autoconf-libtool.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{stdenv, fetchurl, m4, perl}:
|
||||
derivation {
|
||||
name = "autoconf-2.58-automake-1.7.9-libtool-1.5";
|
||||
system = stdenv.system;
|
||||
builder = ./libtoolbuilder.sh;
|
||||
autoconfsrc = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/autoconf/autoconf-2.58.tar.bz2;
|
||||
md5 = "db3fa3069c6554b3505799c7e1022e2b";
|
||||
};
|
||||
automakesrc = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/gnu/automake/automake-1.7.9.tar.bz2;
|
||||
md5 = "571fd0b0598eb2a27dcf68adcfddfacb";
|
||||
};
|
||||
libtoolsrc = fetchurl {
|
||||
url = http://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz;
|
||||
md5 = "0e1844f25e2ad74c3715b5776d017545";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
m4 = m4;
|
||||
perl = perl;
|
||||
}
|
||||
|
28
pkgs/development/tools/misc/autoconf/libtoolbuilder.sh
Executable file
28
pkgs/development/tools/misc/autoconf/libtoolbuilder.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$m4 $perl $out"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $autoconfsrc || exit 1
|
||||
cd autoconf-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
|
||||
buildinputs="$m4 $perl $out"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $automakesrc || exit 1
|
||||
cd automake-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
|
||||
buildinputs="$m4 $perl $out"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $libtoolsrc || exit 1
|
||||
cd libtool-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
@ -1,6 +1,6 @@
|
||||
{stdenv, fetchurl, m4, perl}:
|
||||
derivation {
|
||||
name = "autoconf-2.58";
|
||||
name = "libtool-1.5";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
|
@ -140,6 +140,13 @@
|
||||
perl = perl;
|
||||
};
|
||||
|
||||
autoconflibtool = (import ../development/tools/misc/autoconf/autoconf-libtool.nix) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
m4 = gnum4;
|
||||
perl = perl;
|
||||
};
|
||||
|
||||
automake = (import ../development/tools/misc/automake) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
@ -155,10 +162,10 @@
|
||||
};
|
||||
|
||||
autotools = {
|
||||
automake = automake;
|
||||
autoconf = autoconf;
|
||||
automake = autoconflibtool;
|
||||
autoconf = autoconflibtool;
|
||||
make = gnumake;
|
||||
libtool = libtool;
|
||||
libtool = autoconflibtool;
|
||||
};
|
||||
|
||||
pkgconfig = (import ../development/tools/misc/pkgconfig) {
|
||||
|
Loading…
Reference in New Issue
Block a user