diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-28 11:55:54 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-28 11:55:54 +0000 |
commit | 66097104090e06c43a784193809bc8843a2ec052 (patch) | |
tree | 021d726cde3c2dec5d4341340b37589feef3b15c /pkgs/development/compilers | |
parent | b4a3f99c7812a6c8bc34979200693b7010afffcc (diff) | |
download | nixlib-66097104090e06c43a784193809bc8843a2ec052.tar nixlib-66097104090e06c43a784193809bc8843a2ec052.tar.gz nixlib-66097104090e06c43a784193809bc8843a2ec052.tar.bz2 nixlib-66097104090e06c43a784193809bc8843a2ec052.tar.lz nixlib-66097104090e06c43a784193809bc8843a2ec052.tar.xz nixlib-66097104090e06c43a784193809bc8843a2ec052.tar.zst nixlib-66097104090e06c43a784193809bc8843a2ec052.zip |
* Get rid of many instances of "args: with args;", and other coding
guidelines violations. * Updated libsamplerate to 0.1.7. svn path=/nixpkgs/trunk/; revision=22782
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/adobe-flex-sdk/default.nix | 11 | ||||
-rw-r--r-- | pkgs/development/compilers/fpc/binary.nix | 25 | ||||
-rw-r--r-- | pkgs/development/compilers/fpc/default.nix | 12 | ||||
-rw-r--r-- | pkgs/development/compilers/hugs/default.nix | 35 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/3.08.0.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/3.09.1.nix | 16 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/3.10.0.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/3.11.1.nix | 11 | ||||
-rw-r--r-- | pkgs/development/compilers/scala/default.nix | 2 |
9 files changed, 49 insertions, 67 deletions
diff --git a/pkgs/development/compilers/adobe-flex-sdk/default.nix b/pkgs/development/compilers/adobe-flex-sdk/default.nix index 9cc012d917f1..779aa48c2d06 100644 --- a/pkgs/development/compilers/adobe-flex-sdk/default.nix +++ b/pkgs/development/compilers/adobe-flex-sdk/default.nix @@ -1,4 +1,5 @@ -args: with args; +{ stdenv, fetchurl, unzip }: + stdenv.mkDerivation rec { name = "adobe-flex-sdk-4.0.0.14159-mpl"; @@ -8,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "1x12sji6g42bm1h7jndkda5vpah6vnkpc13qwq0c4xvbsh8757v5"; }; - phases="installPhase"; + phases = "installPhase"; buildInputs = [ unzip ]; @@ -32,8 +33,8 @@ stdenv.mkDerivation rec { ''; meta = { - description = "flex sdk flash / action script developement kit"; - homepage = "http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#installation"; - license = "MPLv1.1"; # Mozilla Public License Version 1.1 + description = "flex sdk flash / action script developement kit"; + homepage = "http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#installation"; + license = "MPLv1.1"; # Mozilla Public License Version 1.1 }; } diff --git a/pkgs/development/compilers/fpc/binary.nix b/pkgs/development/compilers/fpc/binary.nix index fadc73c051ef..88f0ab910672 100644 --- a/pkgs/development/compilers/fpc/binary.nix +++ b/pkgs/development/compilers/fpc/binary.nix @@ -1,19 +1,20 @@ -args: with args; +{ stdenv, fetchurl }: stdenv.mkDerivation { name = "fpc-2.4.0-binary"; - src = if stdenv.system == "i686-linux" then - fetchurl { - url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar"; - sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv"; - } - else if stdenv.system == "x86_64-linux" then - fetchurl { - url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar"; - sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z"; - } - else null; + src = + if stdenv.system == "i686-linux" then + fetchurl { + url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/i386-linux/fpc-2.4.0.i386-linux.tar"; + sha256 = "1zas9kp0b36zxqvb9i4idh2l0nb6qpmgah038l77w6las7ghh0dv"; + } + else if stdenv.system == "x86_64-linux" then + fetchurl { + url = "ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.4.0/x86_64-linux/fpc-2.4.0.x86_64-linux.tar"; + sha256 = "111d11g5ra55hjywx64ldwwflpimsy8zryvap68v0309nyd23f0z"; + } + else throw "Not supported on ${stdenv.system}."; builder = ./binary-builder.sh; diff --git a/pkgs/development/compilers/fpc/default.nix b/pkgs/development/compilers/fpc/default.nix index ce1f101b4f56..ee2aa27a621b 100644 --- a/pkgs/development/compilers/fpc/default.nix +++ b/pkgs/development/compilers/fpc/default.nix @@ -1,8 +1,6 @@ -args: +{ stdenv, fetchurl, gawk }: -if args ? startFPC && args.startFPC != null then - -with args; +let startFPC = import ./binary.nix { inherit stdenv fetchurl; }; in stdenv.mkDerivation rec { version = "2.4.0"; @@ -13,10 +11,10 @@ stdenv.mkDerivation rec { sha256 = "1m2g2bafjixbwl5b9lna5h7r56y1rcayfnbp8kyjfd1c1ymbxaxk"; }; - buildInputs = [startFPC gawk]; + buildInputs = [ startFPC gawk ]; preConfigure = - if system == "i686-linux" || system == "x86_64-linux" then '' + if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then '' sed -e "s@'/lib/ld-linux[^']*'@'''@" -i fpcsrc/compiler/systems/t_linux.pas '' else ""; @@ -38,5 +36,3 @@ stdenv.mkDerivation rec { platforms = stdenv.lib.platforms.linux; }; } - -else (import ./default.nix (args // {startFPC = (import ./binary.nix args);})) diff --git a/pkgs/development/compilers/hugs/default.nix b/pkgs/development/compilers/hugs/default.nix index 4f3bbc6294be..db712b18d3fe 100644 --- a/pkgs/development/compilers/hugs/default.nix +++ b/pkgs/development/compilers/hugs/default.nix @@ -1,24 +1,26 @@ -args: with args; +{ composableDerivation, fetchurl }: + let edf = composableDerivation.edf; wwf = composableDerivation.wwf; in + composableDerivation.composableDerivation {} { - - name="hugs98"; + name = "hugs98"; src = fetchurl { - url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz; - sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6"; + url = http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-Sep2006.tar.gz; + sha256 = "3cf4d27673564cffe691bd14032369f646233f14daf2bc37c6c6df9f062b46b6"; }; - #encode all character I/O using the byte encoding - #determined by the locale in effect at that time. To - #require that the UTF-8 encoding is always used, give - #the --enable-char-encoding=utf8 option. - #[default=autodetect] + #encode all character I/O using the byte encoding + #determined by the locale in effect at that time. To + #require that the UTF-8 encoding is always used, give + #the --enable-char-encoding=utf8 option. + #[default=autodetect] postUnpack = '' find -type f | xargs sed -i 's@/bin/cp@cp@'; ''; - configurePhase="./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags"; + + configurePhase = "./configure --prefix=\$out --enable-char-encoding=utf8 $configureFlags"; flags = edf { name = "pathCanonicalization"; feat="path-canonicalization"; } @@ -39,16 +41,13 @@ composableDerivation.composableDerivation {} { cfg = { largeBannerSupport = true; # seems to be default - - - char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; }; - utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; }; - - }; + char = { cfgOption = "--enable-char-encoding"; blocks = "utf8"; }; + utf8 = { cfgOption = "--enable-char-encoding=utf8"; blocks="char"; }; + }; meta = { license = "as-is"; # gentoo is calling it this way.. - description = "The HUGS98 Haskell <interpreter"; + description = "The HUGS 98 Haskell interpreter"; homepage = http://www.haskell.org/hugs; }; } diff --git a/pkgs/development/compilers/ocaml/3.08.0.nix b/pkgs/development/compilers/ocaml/3.08.0.nix index b2e7e131a817..4f7e9469bbf2 100644 --- a/pkgs/development/compilers/ocaml/3.08.0.nix +++ b/pkgs/development/compilers/ocaml/3.08.0.nix @@ -1,4 +1,4 @@ -args: with args; +{ stdenv, fetchurl, x11 }: stdenv.mkDerivation { name = "ocaml-3.08.0"; diff --git a/pkgs/development/compilers/ocaml/3.09.1.nix b/pkgs/development/compilers/ocaml/3.09.1.nix deleted file mode 100644 index 6e9922ccc366..000000000000 --- a/pkgs/development/compilers/ocaml/3.09.1.nix +++ /dev/null @@ -1,16 +0,0 @@ -args: with args; - -stdenv.mkDerivation { - name = "ocaml-3.09.1"; - builder = ./builder.sh; - src = fetchurl { - url = http://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.1.tar.gz; - md5 = "c73f4b093e27ba5bf13d62923f89befc"; - }; - configureScript = ./configure-3.09.1; - dontAddPrefix = "True"; - configureFlags = ["-no-tk" "-x11lib" x11]; - buildFlags = ["world" "bootstrap" "opt"]; - checkTarget = ["opt.opt"]; - buildInputs = [x11 ncurses]; -} diff --git a/pkgs/development/compilers/ocaml/3.10.0.nix b/pkgs/development/compilers/ocaml/3.10.0.nix index 8a8ddd7ee975..a77e5fdd0ac9 100644 --- a/pkgs/development/compilers/ocaml/3.10.0.nix +++ b/pkgs/development/compilers/ocaml/3.10.0.nix @@ -1,4 +1,4 @@ -args: with args; +{ stdenv, fetchurl, x11, ncurses }: stdenv.mkDerivation (rec { diff --git a/pkgs/development/compilers/ocaml/3.11.1.nix b/pkgs/development/compilers/ocaml/3.11.1.nix index c825830e43d9..e22db680577d 100644 --- a/pkgs/development/compilers/ocaml/3.11.1.nix +++ b/pkgs/development/compilers/ocaml/3.11.1.nix @@ -1,11 +1,12 @@ -args: with args; +{ stdenv, fetchurl, ncurses, x11 }: let - useX11 = (stdenv.system != "armv5tel-linux"); - useNativeCompilers = (stdenv.system != "armv5tel-linux"); + useX11 = stdenv.system != "armv5tel-linux"; + useNativeCompilers = stdenv.system != "armv5tel-linux"; inherit (stdenv.lib) optionals optionalString; in -stdenv.mkDerivation (rec { + +stdenv.mkDerivation rec { name = "ocaml-3.11.1"; @@ -49,4 +50,4 @@ stdenv.mkDerivation (rec { ''; }; -}) +} diff --git a/pkgs/development/compilers/scala/default.nix b/pkgs/development/compilers/scala/default.nix index 3f8247861190..3e11c2303111 100644 --- a/pkgs/development/compilers/scala/default.nix +++ b/pkgs/development/compilers/scala/default.nix @@ -1,4 +1,4 @@ -args: with args; +{ stdenv, fetchurl }: # at runtime, need jre or jdk |