diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-04-09 15:24:33 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2009-04-09 15:24:33 +0000 |
commit | eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a (patch) | |
tree | 54d4bba82530f4b74578ffcc54420a22890d0f61 /pkgs/build-support/gcc-wrapper | |
parent | 65a6c5ad9b83f83bb42474c77b32f83830949a09 (diff) | |
download | nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar.gz nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar.bz2 nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar.lz nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar.xz nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.tar.zst nixlib-eeed10ba8e1fd93e23c4c8ef4a296bbdc6df557a.zip |
* g77 -> gfortran throughout. Got rid of the separate
expressions/builders for Fortran. Tested by building Octave with gfortran 4.3. svn path=/nixpkgs/branches/stdenv-updates/; revision=14978
Diffstat (limited to 'pkgs/build-support/gcc-wrapper')
-rw-r--r-- | pkgs/build-support/gcc-wrapper/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/build-support/gcc-wrapper/default.nix b/pkgs/build-support/gcc-wrapper/default.nix index 5d15796d4be3..cbdab8b1a9aa 100644 --- a/pkgs/build-support/gcc-wrapper/default.nix +++ b/pkgs/build-support/gcc-wrapper/default.nix @@ -5,7 +5,7 @@ # stdenv.mkDerivation provides a wrapper that sets up the right environment # variables so that the compiler and the linker just "work". -{ name ? "gcc-wrapper", stdenv, nativeTools, nativeLibc, nativePrefix ? "" +{ name ? "", stdenv, nativeTools, nativeLibc, nativePrefix ? "" , gcc ? null, libc ? null, binutils ? null, shell ? "" }: @@ -13,10 +13,17 @@ assert nativeTools -> nativePrefix != ""; assert !nativeTools -> gcc != null && binutils != null; assert !nativeLibc -> libc != null; -let gccVersion = (builtins.parseDrvName gcc.name).version; in +let + + gccVersion = (builtins.parseDrvName gcc.name).version; + gccName = (builtins.parseDrvName gcc.name).name; + +in stdenv.mkDerivation { - name = name + (if gcc != null && gccVersion != "" then "-" + gccVersion else ""); + name = + (if name != "" then name else gccName + "-wrapper") + + (if gcc != null && gccVersion != "" then "-" + gccVersion else ""); builder = ./builder.sh; setupHook = ./setup-hook.sh; |