summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-05-24 10:57:41 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-05-24 10:57:41 +0000
commitf7f938a1d15277fa11a2cbf75fe9c7d4344f25c3 (patch)
tree7f0728120b23ae097a4259c62839037bd84aebad
parent62620f0411b4ada733ae4e701416997140053762 (diff)
big breaking change: renaming lib.getAttr to lib.attrByPath
getAttr was ambiguous. It's also a builtin function fix svn path=/nixpkgs/trunk/; revision=15692
-rw-r--r--pkgs/applications/audio/snd/default.nix2
-rw-r--r--pkgs/applications/editors/eclipse/default.nix34
-rw-r--r--pkgs/applications/editors/eclipse/plugins/spoofax/default.nix6
-rw-r--r--pkgs/applications/graphics/hugin/default.nix7
-rw-r--r--pkgs/applications/graphics/xaos/default.nix2
-rw-r--r--pkgs/applications/graphics/xscreensaver/default.nix2
-rw-r--r--pkgs/applications/networking/browsers/midori/default.nix2
-rw-r--r--pkgs/applications/networking/browsers/mozilla-plugins/mozplugger/default.nix2
-rw-r--r--pkgs/applications/networking/instant-messengers/carrier/2.4.2.nix2
-rw-r--r--pkgs/applications/networking/instant-messengers/carrier/2.5.0.nix2
-rw-r--r--pkgs/applications/networking/instant-messengers/gajim/default.nix2
-rw-r--r--pkgs/applications/science/geometry/drgeo/default.nix2
-rw-r--r--pkgs/applications/virtualization/xen/default.nix2
-rw-r--r--pkgs/applications/window-managers/stumpwm/default.nix2
-rw-r--r--pkgs/build-support/builder-defs/builder-defs.nix68
-rw-r--r--pkgs/build-support/builder-defs/template-composing-builder.nix2
-rw-r--r--pkgs/build-support/checker/default.nix4
-rw-r--r--pkgs/build-support/deb-package/default.nix4
-rw-r--r--pkgs/build-support/gcc-wrapper/default.nix2
-rw-r--r--pkgs/data/fonts/arkpandora/default.nix2
-rw-r--r--pkgs/desktops/superkaramba/default.nix2
-rw-r--r--pkgs/development/interpreters/io/default.nix2
-rw-r--r--pkgs/development/interpreters/plt-scheme/default.nix2
-rw-r--r--pkgs/development/libraries/botan/default.nix2
-rw-r--r--pkgs/development/libraries/chipmunk/default.nix2
-rw-r--r--pkgs/development/libraries/cl-ppcre/default.nix2
-rw-r--r--pkgs/development/libraries/libcv/default.nix2
-rw-r--r--pkgs/development/libraries/libvncserver/default.nix2
-rw-r--r--pkgs/development/libraries/ode/default.nix2
-rw-r--r--pkgs/development/libraries/webkit/default.nix2
-rw-r--r--pkgs/development/python-modules/dbus/default.nix2
-rw-r--r--pkgs/development/python-modules/irclib/default.nix2
-rw-r--r--pkgs/development/python-modules/libsexy/default.nix2
-rw-r--r--pkgs/development/python-modules/pyopenssl/default.nix2
-rw-r--r--pkgs/development/python-modules/xmpppy/default.nix2
-rw-r--r--pkgs/development/tools/documentation/docutils/default.nix2
-rw-r--r--pkgs/games/extremetuxracer/default.nix2
-rw-r--r--pkgs/games/gnuchess/default.nix2
-rw-r--r--pkgs/games/lincity/default.nix4
-rw-r--r--pkgs/games/nethack/default.nix2
-rw-r--r--pkgs/games/sgt-puzzles/default.nix2
-rw-r--r--pkgs/games/tuxracer/default.nix2
-rw-r--r--pkgs/games/xboard/default.nix2
-rw-r--r--pkgs/games/xmoto/default.nix2
-rw-r--r--pkgs/games/xsokoban/default.nix2
-rw-r--r--pkgs/games/zangband/default.nix2
-rw-r--r--pkgs/lib/attrsets.nix15
-rw-r--r--pkgs/lib/misc.nix8
-rw-r--r--pkgs/lib/options.nix6
-rw-r--r--pkgs/os-specific/linux/atheros/r3693.nix2
-rw-r--r--pkgs/os-specific/linux/atheros/r3837.nix4
-rw-r--r--pkgs/os-specific/linux/atheros/r3867.nix4
-rw-r--r--pkgs/os-specific/linux/btrfsprogs/default.nix2
-rw-r--r--pkgs/os-specific/linux/fbterm/default.nix2
-rw-r--r--pkgs/servers/http/nginx/default.nix2
-rw-r--r--pkgs/servers/xmpp/pyIRCt/default.nix2
-rw-r--r--pkgs/tools/X11/xnee/default.nix2
-rw-r--r--pkgs/tools/graphics/cuneiform/default.nix2
-rw-r--r--pkgs/tools/graphics/dmtx/default.nix2
-rw-r--r--pkgs/tools/graphics/qrdecode/default.nix2
-rw-r--r--pkgs/tools/graphics/qrencode/default.nix2
-rw-r--r--pkgs/tools/networking/ppp/default.nix2
-rw-r--r--pkgs/tools/networking/rp-pppoe/default.nix2
-rw-r--r--pkgs/tools/security/bmrsa/11.nix2
-rw-r--r--pkgs/top-level/all-packages.nix25
65 files changed, 153 insertions, 140 deletions
diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix
index 5cab85b993c7..8d937afeec7e 100644
--- a/pkgs/applications/audio/snd/default.nix
+++ b/pkgs/applications/audio/snd/default.nix
@@ -4,7 +4,7 @@ let
fetchurl = args.fetchurl;
fullDepEntry = args.fullDepEntry;
- version = lib.getAttr ["version"] "9.4" args;
+ version = lib.attrByPath ["version"] "9.4" args;
buildInputs = with args; [gtk glib pkgconfig
libXpm gmp gettext libX11 fftw]
++ (lib.optional (args ? ruby) args.ruby)
diff --git a/pkgs/applications/editors/eclipse/default.nix b/pkgs/applications/editors/eclipse/default.nix
index 1cbfff919868..97b582075c40 100644
--- a/pkgs/applications/editors/eclipse/default.nix
+++ b/pkgs/applications/editors/eclipse/default.nix
@@ -9,25 +9,29 @@
# Why use a local copy? This way it's easier to use the update manager to get plugins :-)
-{fetchurl, stdenv, jdk, gtk, glib, libXtst, plugins ? []}:
+{fetchurl, stdenv, jdk, gtk, glib, libXtst, makeOverridable, plugins ? [], unzip}:
-let {
- body =
+let eclipseFun =
+ makeOverridable ({name, bindist} :
stdenv.mkDerivation {
- name = "eclipse-sdk-3.5M6";
+ inherit name;
builder = ./builder.sh;
src = bindist;
- buildInputs = [];
+ buildInputs = [ unzip /* unzip required by eclipseCDT */ ];
inherit jdk plugins;
libraries = [gtk glib libXtst];
- };
+ }); in
- bindist =
- if (stdenv.system == "x86_64-linux") then fetchurl {
- url = ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-x86_64.tar.gz;
- sha256 = "10p4idp5rcdf7xqwfk3kvmjxhi8x1v835m0y4pn9q4nhfb5643pi";
- } else fetchurl {
- url = ftp://mirror.micromata.de/eclipse/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk.tar.gz;
- sha256 = "1z8j26b632ydhqrmwgbcqgiq7f1a542jam06z2h62mcbqazrcyah";
- };
-}
+ eclipseFun {
+ # you can override these settings usnig .override {...}
+ name = "eclipse-sdk-3.5M6";
+
+ bindist =
+ if (stdenv.system == "x86_64-linux") then fetchurl {
+ url = ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk-x86_64.tar.gz;
+ sha256 = "10p4idp5rcdf7xqwfk3kvmjxhi8x1v835m0y4pn9q4nhfb5643pi";
+ } else fetchurl {
+ url = ftp://mirror.micromata.de/eclipse/eclipse/downloads/drops/S-3.5M6-200903130100/eclipse-SDK-3.5M6-linux-gtk.tar.gz;
+ sha256 = "1z8j26b632ydhqrmwgbcqgiq7f1a542jam06z2h62mcbqazrcyah";
+ };
+ }
diff --git a/pkgs/applications/editors/eclipse/plugins/spoofax/default.nix b/pkgs/applications/editors/eclipse/plugins/spoofax/default.nix
deleted file mode 100644
index 649619e487e8..000000000000
--- a/pkgs/applications/editors/eclipse/plugins/spoofax/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{stdenv, fetchurl}:
-
-fetchurl {
- url = http://www.ii.uib.no/~karltk/spoofax/plugins/org.spoofax.editor_0.3.11.jar;
- md5 = "c36941afcb0e538e16fafd594eae128e";
-}
diff --git a/pkgs/applications/graphics/hugin/default.nix b/pkgs/applications/graphics/hugin/default.nix
index 9f74f1702fce..c0ce7f15c90b 100644
--- a/pkgs/applications/graphics/hugin/default.nix
+++ b/pkgs/applications/graphics/hugin/default.nix
@@ -1,4 +1,5 @@
-{stdenv, fetchurl, panotools, cmake, wxGTK, libtiff, libpng, openexr, boost, pkgconfig, exiv2, gettext, ilmbase }:
+{stdenv, fetchurl, panotools, cmake, wxGTK, libtiff, libpng, openexr, boost,
+ pkgconfig, exiv2, gettext, ilmbase, enblendenfuse, autopanosiftc }:
stdenv.mkDerivation {
name = "hugin-0.7.0";
@@ -35,6 +36,10 @@ stdenv.mkDerivation {
eval -- "cmake .. $cmakeFlags"
set +x
'';
+ postInstall = ''
+ ensureDir $out/nix-support
+ echo ${enblendenfuse} ${autopanosiftc} > $out/nix-support/$out/nix-support/propagated-user-env-packages
+ '';
meta = {
homepage = http://hugin.sourceforge.net/;
diff --git a/pkgs/applications/graphics/xaos/default.nix b/pkgs/applications/graphics/xaos/default.nix
index 226dcb8d918e..adf64cdb0d37 100644
--- a/pkgs/applications/graphics/xaos/default.nix
+++ b/pkgs/applications/graphics/xaos/default.nix
@@ -2,7 +2,7 @@ a :
let
fetchurl = a.fetchurl;
- version = a.lib.getAttr ["version"] "3.4" a;
+ version = a.lib.attrByPath ["version"] "3.4" a;
buildInputs = with a; [
aalib gsl libpng libX11 xproto libXext xextproto
libXt zlib gettext intltool perl
diff --git a/pkgs/applications/graphics/xscreensaver/default.nix b/pkgs/applications/graphics/xscreensaver/default.nix
index fb09838d260b..3c335994a76b 100644
--- a/pkgs/applications/graphics/xscreensaver/default.nix
+++ b/pkgs/applications/graphics/xscreensaver/default.nix
@@ -1,5 +1,5 @@
args : with args; let localDefs = builderDefs.passthru.function (args // rec {
- version = lib.getAttr ["version"] "5.07" args;
+ version = lib.attrByPath ["version"] "5.07" args;
src = /* put a fetchurl here */
fetchurl {
url = "http://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz";
diff --git a/pkgs/applications/networking/browsers/midori/default.nix b/pkgs/applications/networking/browsers/midori/default.nix
index fd2b90805f5f..24ba853f058d 100644
--- a/pkgs/applications/networking/browsers/midori/default.nix
+++ b/pkgs/applications/networking/browsers/midori/default.nix
@@ -5,7 +5,7 @@ let
doPatchShebangs = args.doPatchShebangs;
makeManyWrappers = args.makeManyWrappers;
- version = lib.getAttr ["version"] "0.0.21" args;
+ version = lib.attrByPath ["version"] "0.0.21" args;
buildInputs = with args; [
intltool python imagemagick gtk glib webkit libxml2
gtksourceview pkgconfig which gettext makeWrapper
diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/mozplugger/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/mozplugger/default.nix
index ee8ff18bd5da..890021b33d6e 100644
--- a/pkgs/applications/networking/browsers/mozilla-plugins/mozplugger/default.nix
+++ b/pkgs/applications/networking/browsers/mozilla-plugins/mozplugger/default.nix
@@ -2,7 +2,7 @@ a :
let
fetchurl = a.fetchurl;
- version = a.lib.getAttr ["version"] "1.12.0" a;
+ version = a.lib.attrByPath ["version"] "1.12.0" a;
buildInputs = with a; [
firefox libX11 xproto
];
diff --git a/pkgs/applications/networking/instant-messengers/carrier/2.4.2.nix b/pkgs/applications/networking/instant-messengers/carrier/2.4.2.nix
index b6d8c7feecb2..7728f7abcfc5 100644
--- a/pkgs/applications/networking/instant-messengers/carrier/2.4.2.nix
+++ b/pkgs/applications/networking/instant-messengers/carrier/2.4.2.nix
@@ -5,7 +5,7 @@ args : with args;
(to use a fresher pidgin build)
*/
let
- externalPurple2 = (lib.getAttr ["purple2Source"] null args) != null;
+ externalPurple2 = lib.attrByPath ["purple2Source"] null args) != null;
in
rec {
src = fetchurl {
diff --git a/pkgs/applications/networking/instant-messengers/carrier/2.5.0.nix b/pkgs/applications/networking/instant-messengers/carrier/2.5.0.nix
index 848045d4a24d..257d3d09f71b 100644
--- a/pkgs/applications/networking/instant-messengers/carrier/2.5.0.nix
+++ b/pkgs/applications/networking/instant-messengers/carrier/2.5.0.nix
@@ -5,7 +5,7 @@ args : with args;
(to use a fresher pidgin build)
*/
let
- externalPurple2 = (lib.getAttr ["purple2Source"] null args) != null;
+ externalPurple2 = (lib.attrByPath ["purple2Source"] null args) != null;
in
rec {
src = fetchurl {
diff --git a/pkgs/applications/networking/instant-messengers/gajim/default.nix b/pkgs/applications/networking/instant-messengers/gajim/default.nix
index b8263ff0b153..f5b1d344574b 100644
--- a/pkgs/applications/networking/instant-messengers/gajim/default.nix
+++ b/pkgs/applications/networking/instant-messengers/gajim/default.nix
@@ -2,7 +2,7 @@ a :
let
fetchurl = a.fetchurl;
- version = a.lib.getAttr ["version"] "0.12.1" a;
+ version = a.lib.attrByPath ["version"] "0.12.1" a;
buildInputs = with a; [
python pyGtkGlade gtk perl intltool dbus gettext
pkgconfig makeWrapper libglade pyopenssl libXScrnSaver
diff --git a/pkgs/applications/science/geometry/drgeo/default.nix b/pkgs/applications/science/geometry/drgeo/default.nix
index 8f0bcd086545..ff52d3667652 100644
--- a/pkgs/applications/science/geometry/drgeo/default.nix
+++ b/pkgs/applications/science/geometry/drgeo/default.nix
@@ -1,5 +1,5 @@
args : with args;
-let version = lib.getAttr ["version"] "1.1.0" args; in
+let version = lib.attrByPath ["version"] "1.1.0" args; in
rec {
src = fetchurl {
url = http://downloads.sourceforge.net/ofset/drgeo-1.1.0.tar.gz;
diff --git a/pkgs/applications/virtualization/xen/default.nix b/pkgs/applications/virtualization/xen/default.nix
index b039412499df..46625436798a 100644
--- a/pkgs/applications/virtualization/xen/default.nix
+++ b/pkgs/applications/virtualization/xen/default.nix
@@ -4,7 +4,7 @@ let
fetchurl = args.fetchurl;
fullDepEntry = args.fullDepEntry;
- version = lib.getAttr ["version"] "3.3.0" args;
+ version = lib.attrByPath ["version"] "3.3.0" args;
_buildInputs = with args; [
python e2fsprogs gnutls pkgconfig libjpeg
ncurses SDL libvncserver zlib graphviz ghostscript
diff --git a/pkgs/applications/window-managers/stumpwm/default.nix b/pkgs/applications/window-managers/stumpwm/default.nix
index 6bf0955354af..12d0acb367a4 100644
--- a/pkgs/applications/window-managers/stumpwm/default.nix
+++ b/pkgs/applications/window-managers/stumpwm/default.nix
@@ -6,7 +6,7 @@ let
fullDepEntry = args.fullDepEntry;
buildInputs = lib.attrVals ["clisp" "texinfo"] args;
- version = lib.getAttr ["version"] "0.9.4.1" args;
+ version = lib.attrByPath ["version"] "0.9.4.1" args;
pkgName = "stumpwm";
in
diff --git a/pkgs/build-support/builder-defs/builder-defs.nix b/pkgs/build-support/builder-defs/builder-defs.nix
index b7d5130a44a2..2956fa478bfe 100644
--- a/pkgs/build-support/builder-defs/builder-defs.nix
+++ b/pkgs/build-support/builder-defs/builder-defs.nix
@@ -3,14 +3,14 @@ args: with args; with stringsWithDeps; with lib;
{
inherit writeScript;
- src = getAttr ["src"] "" args;
+ src = attrByPath ["src"] "" args;
- addSbinPath = getAttr ["addSbinPath"] false args;
+ addSbinPath = attrByPath ["addSbinPath"] false args;
forceShare = if args ? forceShare then args.forceShare else ["man" "doc" "info"];
forceCopy = ["COPYING" "LICENSE" "DISTRIBUTION" "LEGAL"
"README" "AUTHORS" "ChangeLog" "CHANGES" "LICENCE" "COPYRIGHT"] ++
- (optional (getAttr ["forceCopyDoc"] true args) "doc");
+ (optional (attrByPath ["forceCopyDoc"] true args) "doc");
hasSuffixHack = a: b: hasSuffix (a+(substring 0 0 b)) ((substring 0 0 a)+b);
@@ -234,7 +234,7 @@ args: with args; with stringsWithDeps; with lib;
(if args ? goSrcDir then args.goSrcDir else "")
) ["minInit"];
- configureCommand = getAttr ["configureCommand"] "./configure" args;
+ configureCommand = attrByPath ["configureCommand"] "./configure" args;
doConfigure = fullDepEntry ("
${configureCommand} --prefix=\"\$prefix\" ${toString configureFlags}
@@ -276,8 +276,8 @@ args: with args; with stringsWithDeps; with lib;
'') ["minInit" "addInputs" "doUnpack"];
doMakeInstall = fullDepEntry ("
- make ${toString (getAttr ["makeFlags"] "" args)} "+
- "${toString (getAttr ["installFlags"] "" args)} install") ["doMake"];
+ make ${toString (attrByPath ["makeFlags"] "" args)} "+
+ "${toString (attrByPath ["installFlags"] "" args)} install") ["doMake"];
doForceShare = fullDepEntry ("
ensureDir \"\$prefix/share\"
@@ -302,7 +302,7 @@ args: with args; with stringsWithDeps; with lib;
patchFlags = if args ? patchFlags then args.patchFlags else "-p1";
- patches = getAttr ["patches"] [] args;
+ patches = attrByPath ["patches"] [] args;
toPatchCommand = s: "cat ${s} | patch ${toString patchFlags}";
@@ -326,7 +326,7 @@ args: with args; with stringsWithDeps; with lib;
(${envAdderList env}
echo '\"'\"${cmd}-orig\"'\"' '\"'\\\$@'\"' \n) > \"${cmd}\"";
- doWrap = cmd: fullDepEntry (wrapEnv cmd (getAttr ["wrappedEnv"] [] args)) ["minInit"];
+ doWrap = cmd: fullDepEntry (wrapEnv cmd (attrByPath ["wrappedEnv"] [] args)) ["minInit"];
makeManyWrappers = wildcard : wrapperFlags : fullDepEntry (''
for i in ${wildcard}; do
@@ -347,7 +347,7 @@ args: with args; with stringsWithDeps; with lib;
doPropagate = fullDepEntry ("
ensureDir \$out/nix-support
- echo '${toString (getAttr ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
+ echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
") ["minInit" "defEnsureDir"];
/*debug = x:(__trace x x);
@@ -356,37 +356,37 @@ args: with args; with stringsWithDeps; with lib;
replaceScriptVar = file: name: value: "sed -e 's`^${name}=.*`${name}='\\''${value}'\\''`' -i ${file}";
replaceInScript = file: l: concatStringsSep "\n" ((pairMap (replaceScriptVar file) l));
replaceScripts = l: concatStringsSep "\n" (pairMap replaceInScript l);
- doReplaceScripts = fullDepEntry (replaceScripts (getAttr ["shellReplacements"] [] args)) ["minInit"];
+ doReplaceScripts = fullDepEntry (replaceScripts (attrByPath ["shellReplacements"] [] args)) ["minInit"];
makeNest = x: if x == defNest.text then x else "startNest\n" + x + "\nstopNest\n";
textClosure = a: steps: textClosureMap makeNest a (["defNest"] ++ steps);