all-packages: Use callPackage where possible
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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
|
||||
];
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user