Merge branch 'origin/master' into stdenv-updates.

+83 -33
+1
lib/maintainers.nix
··· 59 vcunat = "Vladimír Čunát <vcunat@gmail.com>"; 60 viric = "Lluís Batlle i Rossell <viric@viric.name>"; 61 vizanto = "Danny Wilson <danny@prime.vc>"; 62 winden = "Antonio Vargas Gonzalez <windenntw@gmail.com>"; 63 z77z = "Marco Maggesi <maggesi@math.unifi.it>"; 64 zef = "Zef Hemel <zef@zef.me>";
··· 59 vcunat = "Vladimír Čunát <vcunat@gmail.com>"; 60 viric = "Lluís Batlle i Rossell <viric@viric.name>"; 61 vizanto = "Danny Wilson <danny@prime.vc>"; 62 + vlstill = "Vladimír Štill <xstill@fi.muni.cz>"; 63 winden = "Antonio Vargas Gonzalez <windenntw@gmail.com>"; 64 z77z = "Marco Maggesi <maggesi@math.unifi.it>"; 65 zef = "Zef Hemel <zef@zef.me>";
+12 -13
nixos/doc/manual/development.xml
··· 30 $ mkdir -p <replaceable>/my/sources</replaceable> 31 $ cd <replaceable>/my/sources</replaceable> 32 $ nix-env -i git 33 - $ git clone git://github.com/NixOS/nixos.git 34 $ git clone git://github.com/NixOS/nixpkgs.git 35 </screen> 36 37 This will check out the latest NixOS sources to 38 - <filename><replaceable>/my/sources</replaceable>/nixos</filename> and 39 the Nixpkgs sources to 40 <filename><replaceable>/my/sources</replaceable>/nixpkgs</filename>. 41 If you want to rebuild your system using your (modified) sources, you ··· 43 <option>-I</option> flag: 44 45 <screen> 46 - $ nixos-rebuild switch -I <replaceable>/my/sources</replaceable> 47 </screen> 48 49 </para> ··· 250 in 251 252 { 253 - imports = [ /etc/nixos/nixos/modules/services/scheduling/cron.nix ]; 254 255 options = { 256 services.locate = { ··· 307 <para> 308 309 <screen> 310 - $ nix-build /etc/nixos/nixos -A <replaceable>attr</replaceable></screen> 311 312 where <replaceable>attr</replaceable> is an attribute in 313 - <filename>/etc/nixos/nixos/default.nix</filename>. Attributes of interest include: 314 315 <variablelist> 316 ··· 344 attribute set. This attribute set allows you to have a view of the merged 345 option definitions and all its derivations. Important derivations are store 346 inside the option <option>system.build</option> and can be listed with the 347 - command <command>nix-instantiate --xml --eval-only /etc/nixos/nixos -A 348 config.system.build</command> 349 </para> 350 ··· 368 running <command>nix-build</command> to build the ISO. 369 370 <screen> 371 - $ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix 372 - $ nix-build /etc/nixos/nixos -A config.system.build.isoImage</screen> 373 374 </para> 375 ··· 413 properly: 414 415 <screen> 416 - $ export NIXOS_CONFIG=/etc/nixos/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix 417 - $ nix-build /etc/nixos/nixos -A config.system.build.nixos-install 418 $ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1 419 $ yes | mke2fs -j diskimage 420 $ mount -o loop diskimage /mnt ··· 437 <option>-initrd</option> options: 438 439 <screen> 440 - $ nix-build /etc/nixos/nixos -A config.system.build.initialRamdisk -o initrd 441 - $ nix-build /etc/nixos/nixos -A config.system.build.kernel -o kernel 442 $ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/null 443 </screen> 444
··· 30 $ mkdir -p <replaceable>/my/sources</replaceable> 31 $ cd <replaceable>/my/sources</replaceable> 32 $ nix-env -i git 33 $ git clone git://github.com/NixOS/nixpkgs.git 34 </screen> 35 36 This will check out the latest NixOS sources to 37 + <filename><replaceable>/my/sources</replaceable>/nixpkgs/nixos</filename> and 38 the Nixpkgs sources to 39 <filename><replaceable>/my/sources</replaceable>/nixpkgs</filename>. 40 If you want to rebuild your system using your (modified) sources, you ··· 42 <option>-I</option> flag: 43 44 <screen> 45 + $ nixos-rebuild switch -I <replaceable>/my/sources</replaceable>/nixpkgs 46 </screen> 47 48 </para> ··· 249 in 250 251 { 252 + imports = [ /path/to/nixpkgs/nixos/modules/services/scheduling/cron.nix ]; 253 254 options = { 255 services.locate = { ··· 306 <para> 307 308 <screen> 309 + $ nix-build /path/to/nixpkgs/nixos -A <replaceable>attr</replaceable></screen> 310 311 where <replaceable>attr</replaceable> is an attribute in 312 + <filename>/path/to/nixpkgs/nixos/default.nix</filename>. Attributes of interest include: 313 314 <variablelist> 315 ··· 343 attribute set. This attribute set allows you to have a view of the merged 344 option definitions and all its derivations. Important derivations are store 345 inside the option <option>system.build</option> and can be listed with the 346 + command <command>nix-instantiate --xml --eval-only /path/to/nixpkgs/nixos -A 347 config.system.build</command> 348 </para> 349 ··· 367 running <command>nix-build</command> to build the ISO. 368 369 <screen> 370 + $ export NIXOS_CONFIG=/path/to/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix 371 + $ nix-build /path/to/nixpkgs/nixos -A config.system.build.isoImage</screen> 372 373 </para> 374 ··· 412 properly: 413 414 <screen> 415 + $ export NIXOS_CONFIG=/path/to/nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix 416 + $ nix-build /path/to/nixpkgs/nixos -A config.system.build.nixos-install 417 $ dd if=/dev/zero of=diskimage seek=2G count=0 bs=1 418 $ yes | mke2fs -j diskimage 419 $ mount -o loop diskimage /mnt ··· 436 <option>-initrd</option> options: 437 438 <screen> 439 + $ nix-build /path/to/nixpkgs/nixos -A config.system.build.initialRamdisk -o initrd 440 + $ nix-build /path/to/nixpkgs/nixos -A config.system.build.kernel -o kernel 441 $ qemu-system-x86_64 -kernel ./kernel/bzImage -initrd ./initrd/initrd -hda /dev/null 442 </screen> 443
+4 -4
nixos/doc/manual/man-nixos-option.xml
··· 120 /mnt/data/nix-sources/nixos/modules/services/hardware/udev.nix 121 122 Defined by: 123 - /etc/nixos/nixos/modules/system/boot/kernel.nix 124 - /etc/nixos/nixos/modules/hardware/network/rt73.nix 125 - /etc/nixos/nixos/modules/hardware/network/intel-3945abg.nix 126 - /etc/nixos/nixos/modules/hardware/network/intel-2200bg.nix</screen></para> 127 128 </refsection> 129
··· 120 /mnt/data/nix-sources/nixos/modules/services/hardware/udev.nix 121 122 Defined by: 123 + /path/to/nixpkgs/nixos/modules/system/boot/kernel.nix 124 + /path/to/nixpkgs/nixos/modules/hardware/network/rt73.nix 125 + /path/to/nixpkgs/nixos/modules/hardware/network/intel-3945abg.nix 126 + /path/to/nixpkgs/nixos/modules/hardware/network/intel-2200bg.nix</screen></para> 127 128 </refsection> 129
+1 -1
nixos/doc/manual/man-nixos-rebuild.xml
··· 106 points to the output of the top-level “system” derivation. This 107 is essentially the same as doing 108 <screen> 109 - $ nix-build /etc/nixos/nixos -A system 110 </screen> 111 Note that you do not need to be <literal>root</literal> to run 112 <command>nixos-rebuild build</command>.</para>
··· 106 points to the output of the top-level “system” derivation. This 107 is essentially the same as doing 108 <screen> 109 + $ nix-build /path/to/nixpkgs/nixos -A system 110 </screen> 111 Note that you do not need to be <literal>root</literal> to run 112 <command>nixos-rebuild build</command>.</para>
+21
pkgs/applications/graphics/gpicview/default.nix
···
··· 1 + { stdenv, fetchurl, intltool, pkgconfig, gtk2 }: 2 + 3 + stdenv.mkDerivation { 4 + name = "gpicview-0.2.4"; 5 + 6 + src = fetchurl { 7 + url = "mirror://sourceforge/lxde/gpicview-0.2.4.tar.gz"; 8 + sha256 = "1svcy1c8bgk0pl12yhyv16h2fl52x5vzzcv57z6qdcv5czgvgglr"; 9 + }; 10 + 11 + meta = with stdenv.lib; { 12 + description = "A simple and fast image viewer for X"; 13 + homepage = http://lxde.sourceforge.net/gpicview/; 14 + repositories.git = git://lxde.git.sourceforge.net/gitroot/lxde/gpicview; 15 + license = licenses.gpl2; 16 + maintainers = with maintainers; [ lovek323 ]; 17 + platforms = platforms.unix; 18 + }; 19 + 20 + buildInputs = [ intltool pkgconfig gtk2 ]; 21 + }
+26 -10
pkgs/applications/misc/redshift/default.nix
··· 1 - { fetchurl, stdenv, 2 - libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python, 3 - randrproto, xcbutil, xf86vidmodeproto }: 4 5 stdenv.mkDerivation rec { 6 - pname = "redshift"; 7 - version = "1.7"; 8 - name = "${pname}-${version}"; 9 src = fetchurl { 10 - url = "http://launchpad.net/${pname}/trunk/${version}/+download/${pname}-${version}.tar.bz2"; 11 - sha256 = "1j0hs0vnlic90cf4bryn11n4ani1x2s5l8z6ll3fmrlw98ykrylv"; 12 }; 13 14 - buildInputs = [ libX11 libXrandr libXxf86vm libxcb pkgconfig python 15 - randrproto xcbutil xf86vidmodeproto ]; 16 17 meta = { 18 description = "changes the color temperature of your screen gradually";
··· 1 + { fetchurl, stdenv, libX11, libXrandr, libXxf86vm, libxcb, pkgconfig, python 2 + , randrproto, xcbutil, xf86vidmodeproto, autoconf, automake, gettext, glib 3 + , GConf, dbus, dbus_glib, makeWrapper, gtk, pygtk, pyxdg }: 4 5 stdenv.mkDerivation rec { 6 + version = "1.8"; 7 + name = "redshift-${version}"; 8 src = fetchurl { 9 + url = "https://github.com/jonls/redshift/archive/v${version}.tar.gz"; 10 + sha256 = "1srj2dwy32h71iqikb4ysv5ipclym80i9lys2ns8vjmclg7hj3vi"; 11 }; 12 13 + buildInputs = [ 14 + libX11 libXrandr libXxf86vm libxcb pkgconfig python randrproto xcbutil 15 + xf86vidmodeproto autoconf automake gettext glib GConf dbus dbus_glib 16 + makeWrapper gtk pygtk pyxdg 17 + # TODO: 18 + # geoclue 19 + ]; 20 + 21 + preConfigure = '' 22 + ./bootstrap 23 + ''; 24 + 25 + preInstall = '' 26 + substituteInPlace src/redshift-gtk/redshift-gtk python --replace "/usr/bin/env python" "${python}/bin/${python.executable}" 27 + ''; 28 + 29 + postInstall = '' 30 + wrapProgram "$out/bin/redshift-gtk" --prefix PYTHONPATH : $PYTHONPATH:${pygtk}/lib/${python.libPrefix}/site-packages/gtk-2.0:${pyxdg}/lib/${python.libPrefix}/site-packages/pyxdg:$out/lib/${python.libPrefix}/site-packages 31 + ''; 32 33 meta = { 34 description = "changes the color temperature of your screen gradually";
+2 -2
pkgs/development/compilers/ghc/head.nix
··· 1 { stdenv, fetchurl, ghc, perl, gmp, ncurses }: 2 3 stdenv.mkDerivation rec { 4 - version = "7.7.20130816"; 5 name = "ghc-${version}"; 6 7 src = fetchurl { 8 url = "http://darcs.haskell.org/ghcBuilder/uploads/tn23/${name}-src.tar.bz2"; 9 - sha256 = "0w636gfjn3xigrlj31z4hy9kv44svyifsqcshrq95qxijx396j5m"; 10 }; 11 12 buildInputs = [ ghc perl gmp ncurses ];
··· 1 { stdenv, fetchurl, ghc, perl, gmp, ncurses }: 2 3 stdenv.mkDerivation rec { 4 + version = "7.7.20130828"; 5 name = "ghc-${version}"; 6 7 src = fetchurl { 8 url = "http://darcs.haskell.org/ghcBuilder/uploads/tn23/${name}-src.tar.bz2"; 9 + sha256 = "180nkd77kz3mv4g7yq8ipx34p5q8k714l0z2527y49lghy118jzv"; 10 }; 11 12 buildInputs = [ ghc perl gmp ncurses ];
+3 -3
pkgs/os-specific/linux/microcode/intel.nix
··· 1 { stdenv, fetchurl, microcode2ucode }: 2 3 - let version = "20130808"; in 4 5 stdenv.mkDerivation { 6 name = "microcode-intel-${version}"; 7 8 src = fetchurl { 9 - url = "http://downloadmirror.intel.com/23082/eng/microcode-${version}.tgz"; 10 - sha256 = "19v0059v6dxv7ly57wgqy9nkjjnmprgwz4s94khdf213k5vikpfm"; 11 }; 12 13 buildInputs = [ microcode2ucode ];
··· 1 { stdenv, fetchurl, microcode2ucode }: 2 3 + let version = "20130906"; in 4 5 stdenv.mkDerivation { 6 name = "microcode-intel-${version}"; 7 8 src = fetchurl { 9 + url = "http://downloadmirror.intel.com/23166/eng/microcode-${version}.tgz"; 10 + sha256 = "11k327icvijadq2zkgkc3sqwzraip9cviqm25566g09523ds0svv"; 11 }; 12 13 buildInputs = [ microcode2ucode ];
+4
pkgs/top-level/all-packages.nix
··· 7810 7811 goldendict = callPackage ../applications/misc/goldendict { }; 7812 7813 grass = import ../applications/misc/grass { 7814 inherit (xlibs) libXmu libXext libXp libX11 libXt libSM libICE libXpm 7815 libXaw libXrender; ··· 9638 redshift = callPackage ../applications/misc/redshift { 9639 inherit (xorg) libX11 libXrandr libxcb randrproto libXxf86vm 9640 xf86vidmodeproto; 9641 }; 9642 9643 oxygen_gtk = callPackage ../misc/themes/gtk2/oxygen-gtk { };
··· 7810 7811 goldendict = callPackage ../applications/misc/goldendict { }; 7812 7813 + gpicview = callPackage ../applications/graphics/gpicview { }; 7814 + 7815 grass = import ../applications/misc/grass { 7816 inherit (xlibs) libXmu libXext libXp libX11 libXt libSM libICE libXpm 7817 libXaw libXrender; ··· 9640 redshift = callPackage ../applications/misc/redshift { 9641 inherit (xorg) libX11 libXrandr libxcb randrproto libXxf86vm 9642 xf86vidmodeproto; 9643 + inherit (gnome) GConf; 9644 + inherit (pythonPackages) pyxdg; 9645 }; 9646 9647 oxygen_gtk = callPackage ../misc/themes/gtk2/oxygen-gtk { };
+9
pkgs/top-level/perl-packages.nix
··· 3396 propagatedBuildInputs = [ HTTPDate ]; 3397 }; 3398 3399 FileModified = buildPerlPackage { 3400 name = "File-Modified-0.07"; 3401 src = fetchurl {
··· 3396 propagatedBuildInputs = [ HTTPDate ]; 3397 }; 3398 3399 + FileMimeInfo = buildPerlPackage { 3400 + name = "File-MimeInfo-0.20"; 3401 + src = fetchurl { 3402 + url = "http://search.cpan.org/CPAN/authors/id/M/MI/MICHIELB/File-MimeInfo-0.20.tar.gz"; 3403 + sha256 = "1738yi3a0xcbvffqymjb6cyh999q4pryalfwbkmdbjdks2y0bxz0"; 3404 + }; 3405 + propagatedBuildInputs = [ FileBaseDir FileDesktopEntry ]; 3406 + }; 3407 + 3408 FileModified = buildPerlPackage { 3409 name = "File-Modified-0.07"; 3410 src = fetchurl {