mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
* Octave: use the generic builder. In particular the libraries are
now stripped which makes them much smaller. * Octave: remove dependencies that are only necessary when building from CVS (bison, etc.). * Octave: don't have a dependency on gcc, since that will cause *another* gcc to be build than the one in stdenv. svn path=/nixpkgs/trunk/; revision=1262
This commit is contained in:
parent
2398d68d94
commit
4d7572e261
3 changed files with 7 additions and 27 deletions
|
@ -1,17 +0,0 @@
|
|||
set -x
|
||||
|
||||
. $stdenv/setup
|
||||
|
||||
g77orig=$(cat $g77/nix-support/orig-gcc)
|
||||
export NIX_LDFLAGS="-rpath $g77orig/lib $NIX_LDFLAGS"
|
||||
|
||||
export NIX_STRIP_DEBUG=
|
||||
export NIX_CFLAGS_COMPILE="-g $NIX_CFLAGS_COMPILE"
|
||||
|
||||
tar xvfz $src
|
||||
cd octave-*
|
||||
./autogen.sh
|
||||
./configure --prefix=$out --enable-readline
|
||||
make
|
||||
make install
|
||||
#strip -S $out/lib/*/*.a
|
|
@ -1,16 +1,14 @@
|
|||
{ stdenv, fetchurl, autoconf, gcc, g77, texinfo, bison, flex, gperf, readline, ncurses}:
|
||||
{stdenv, fetchurl, g77, readline, ncurses}:
|
||||
|
||||
assert autoconf != null && texinfo != null
|
||||
&& bison != null && flex != null && gperf != null && readline != null && ncurses != null ;
|
||||
assert readline != null && ncurses != null;
|
||||
assert g77.langF77;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "octave-2.1.57";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-2.1.57.tar.gz ;
|
||||
md5 = "a0171814e005ce6d77365e7d831eef45";
|
||||
url = ftp://ftp.octave.org/pub/octave/octave-2.1.57.tar.bz2;
|
||||
md5 = "b781f5d0cd750cb9bb3ef23523f5f339";
|
||||
};
|
||||
inherit autoconf gcc g77 texinfo bison flex gperf readline;
|
||||
buildInputs = [autoconf gcc g77 texinfo bison flex gperf readline ncurses] ;
|
||||
buildInputs = [g77 readline ncurses];
|
||||
configureFlags = "--enable-readline";
|
||||
}
|
||||
|
|
|
@ -201,8 +201,7 @@ rec {
|
|||
};
|
||||
|
||||
octave = (import ../development/interpreters/octave) {
|
||||
inherit fetchurl stdenv autoconf gcc g77 texinfo flex gperf readline ncurses;
|
||||
bison = bisonnew;
|
||||
inherit fetchurl stdenv readline ncurses g77;
|
||||
};
|
||||
|
||||
gnumake = (import ../development/tools/build-managers/gnumake) {
|
||||
|
|
Loading…
Reference in a new issue