diff options
author | Mathnerd314 <mathnerd314.gph+hs@gmail.com> | 2015-09-14 22:27:19 -0600 |
---|---|---|
committer | Mathnerd314 <mathnerd314.gph+hs@gmail.com> | 2015-09-14 22:27:19 -0600 |
commit | eb7404d97a7e46df1f598a74982ca06e08033a45 (patch) | |
tree | 6b5752df7032ba1efc535cf884db4891f20dd786 /pkgs/development | |
parent | 7fb1c7efcfa34a4af9f5de5fbde9e12d15017a90 (diff) | |
download | nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar.gz nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar.bz2 nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar.lz nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar.xz nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.tar.zst nixpkgs-eb7404d97a7e46df1f598a74982ca06e08033a45.zip |
all-packages: Use callPackage where possible
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/compilers/gcl/default.nix | 14 | ||||
-rw-r--r-- | pkgs/development/interpreters/ruby/rubygems.nix | 4 | ||||
-rw-r--r-- | pkgs/development/libraries/box2d/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/libraries/ncbi/default.nix | 10 | ||||
-rw-r--r-- | pkgs/development/libraries/unixODBCDrivers/default.nix | 10 | ||||
-rw-r--r-- | pkgs/development/python-modules/irclib/default.nix | 8 | ||||
-rw-r--r-- | pkgs/development/python-modules/libsexy/default.nix | 6 | ||||
-rw-r--r-- | pkgs/development/python-modules/xmpppy/default.nix | 8 |
8 files changed, 34 insertions, 32 deletions
diff --git a/pkgs/development/compilers/gcl/default.nix b/pkgs/development/compilers/gcl/default.nix index f1844a1a632..a8a803c2a7d 100644 --- a/pkgs/development/compilers/gcl/default.nix +++ b/pkgs/development/compilers/gcl/default.nix @@ -1,11 +1,13 @@ -a : -let +a @ { mpfr, m4, binutils, fetchcvs, emacs, zlib, which +, texinfo, libX11, xproto, inputproto, libXi +, libXext, xextproto, libXt, libXaw, libXmu, stdenv, ... } : +let buildInputs = with a; [ mpfr m4 binutils emacs gmp - libX11 xproto inputproto libXi + libX11 xproto inputproto libXi libXext xextproto libXt libXaw libXmu zlib which texinfo texLive - ]; + ]; in ( @@ -40,7 +42,7 @@ rec { '') ["minInit" "doUnpack" "addInputs"]; /* doConfigure should be removed if not needed */ - phaseNames = ["setVars" "doUnpack" "preBuild" + phaseNames = ["setVars" "doUnpack" "preBuild" "doConfigure" "doMakeInstall"]; }) // { meta = { @@ -48,7 +50,7 @@ rec { maintainers = [ a.lib.maintainers.raskin ]; - platforms = with a.lib.platforms; + platforms = with a.lib.platforms; linux; }; } diff --git a/pkgs/development/interpreters/ruby/rubygems.nix b/pkgs/development/interpreters/ruby/rubygems.nix index 773a752ffef..f4942b84091 100644 --- a/pkgs/development/interpreters/ruby/rubygems.nix +++ b/pkgs/development/interpreters/ruby/rubygems.nix @@ -1,4 +1,4 @@ -args : with args; +args @ { makeWrapper, ruby, ... }: with args; rec { name = "rubygems-" + version; @@ -23,7 +23,7 @@ rec { /* doConfigure should be specified separately */ phaseNames = ["doPatch" "doInstall"]; - + meta = { description = "Ruby gems package collection"; longDescription = '' diff --git a/pkgs/development/libraries/box2d/default.nix b/pkgs/development/libraries/box2d/default.nix index 74875e41783..10a7ca54952 100644 --- a/pkgs/development/libraries/box2d/default.nix +++ b/pkgs/development/libraries/box2d/default.nix @@ -3,9 +3,9 @@ x@{builderDefsPackage , inputproto, libXi, fetchsvn, pkgconfig , ...}: builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ +(a : +let + helperArgNames = ["stdenv" "fetchsvn" "builderDefsPackage"] ++ []; buildInputs = map (n: builtins.getAttr n x) diff --git a/pkgs/development/libraries/ncbi/default.nix b/pkgs/development/libraries/ncbi/default.nix index a74cd81854e..cbc9b857763 100644 --- a/pkgs/development/libraries/ncbi/default.nix +++ b/pkgs/development/libraries/ncbi/default.nix @@ -1,11 +1,11 @@ -a : -let +a @ { tcsh, mesa, lesstif, libX11, libXaw, xproto, libXt, libSM, libICE, libXmu, libXext, ... }: +let fetchurl = a.fetchurl; - version = "20090809"; + version = "20090809"; buildInputs = with a; [ - tcsh libX11 libXaw lesstif xproto mesa libXt - libSM libICE libXmu libXext + tcsh libX11 libXaw lesstif xproto mesa libXt + libSM libICE libXmu libXext ]; in rec { diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index 74a14231801..d3a2debbd12 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -1,4 +1,4 @@ -args : with args; +{fetchurl, stdenv, unixODBC, glibc, libtool, openssl, zlib, postgresql, mysql, sqlite}: # each attr contains the name deriv referencing the derivation and ini which # evaluates to a string which can be appended to the global unix odbc ini file # to register the driver @@ -9,7 +9,7 @@ args : with args; deriv = stdenv.mkDerivation { name = "unix-odbc-pg-odbcng-0.90.101"; buildInputs = [ unixODBC glibc libtool postgresql ]; - # added -ltdl to resolve missing references `dlsym' `dlerror' `dlopen' `dlclose' + # added -ltdl to resolve missing references `dlsym' `dlerror' `dlopen' `dlclose' preConfigure=" export CPPFLAGS=-I${unixODBC}/include export LDFLAGS='-L${unixODBC}/lib -lltdl' @@ -37,7 +37,7 @@ args : with args; export CPPFLAGS=-I${unixODBC}/include export LDFLAGS='-L${unixODBC}/lib -lltdl' "; - # added -ltdl to resolve missing references `dlsym' `dlerror' `dlopen' `dlclose' + # added -ltdl to resolve missing references `dlsym' `dlerror' `dlopen' `dlclose' src = fetchurl { url = "http://ftp.postgresql.org/pub/odbc/versions/src/${name}.tar.gz"; sha256 = "0mh10chkmlppidnmvgbp47v5jnphsrls28zwbvyk2crcn8gdx9q1"; @@ -48,7 +48,7 @@ args : with args; license = "LGPL"; }; }; - ini = + ini = "[PostgreSQL]\n" + "Description = official PostgreSQL driver for Linux & Win32\n" + "Driver = ${deriv}/lib/psqlodbcw.so\n" + @@ -97,7 +97,7 @@ args : with args; mv "$out"/*.la "$out/lib" ''; - meta = { + meta = { description = "ODBC driver for SQLite"; homepage = http://www.ch-werner.de/sqliteodbc; license = stdenv.lib.licenses.bsd2; diff --git a/pkgs/development/python-modules/irclib/default.nix b/pkgs/development/python-modules/irclib/default.nix index 3e0eda34b17..4fdf93e126b 100644 --- a/pkgs/development/python-modules/irclib/default.nix +++ b/pkgs/development/python-modules/irclib/default.nix @@ -1,8 +1,8 @@ -a : -let +a @ {python, ...} : +let fetchurl = a.fetchurl; - version = a.lib.attrByPath ["version"] "0.4.8" a; + version = a.lib.attrByPath ["version"] "0.4.8" a; buildInputs = with a; [ python ]; @@ -24,7 +24,7 @@ rec { /* doConfigure should be removed if not needed */ phaseNames = ["doPatch" "installPythonPackage"]; - + name = "python-irclib-" + version; meta = { description = "Python IRC library"; diff --git a/pkgs/development/python-modules/libsexy/default.nix b/pkgs/development/python-modules/libsexy/default.nix index fa00a7040a0..5e0d391a338 100644 --- a/pkgs/development/python-modules/libsexy/default.nix +++ b/pkgs/development/python-modules/libsexy/default.nix @@ -1,8 +1,8 @@ -a : -let +a @ { python, libsexy, pkgconfig, libxml2, pygtk, pango, gtk, glib, ... } : +let fetchurl = a.fetchurl; - version = a.lib.attrByPath ["version"] "0.1.9" a; + version = a.lib.attrByPath ["version"] "0.1.9" a; buildInputs = with a; [ pkgconfig pygtk ]; diff --git a/pkgs/development/python-modules/xmpppy/default.nix b/pkgs/development/python-modules/xmpppy/default.nix index 57b35ad91ed..46e81c58845 100644 --- a/pkgs/development/python-modules/xmpppy/default.nix +++ b/pkgs/development/python-modules/xmpppy/default.nix @@ -1,8 +1,8 @@ -a : -let +a @ {python, setuptools, ... } : +let fetchurl = a.fetchurl; - version = a.lib.attrByPath ["version"] "0.5.0rc1" a; + version = a.lib.attrByPath ["version"] "0.5.0rc1" a; buildInputs = with a; [ python setuptools ]; @@ -22,7 +22,7 @@ rec { mkdir -p $out/bin $out/lib $out/share $(toPythonPath $out) export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out) '') ["defEnsureDir" "addInputs"]; - + name = "xmpp.py-" + version; meta = { description = "XMPP python library"; |