Compare commits

...

302 Commits

Author SHA1 Message Date
James Cook
081d5aaaba unzip: Patch for CVE-2014-81{39,40,41}.
(Cherry-picked from 173f41cf0bc618f0b2c313b1915fee8d8a6d0ee2.)
2015-01-08 11:39:37 -08:00
Vladimír Čunát
91e952ab1e qt48: bugfix update 4.8.5 -> .6
Some patches dropped, as they seemed included.

(cherry picked from commit 920a734a15)
Signed-off-by: Domen Kožar <domen@dev.si>
2014-06-09 22:31:07 +02:00
Peter Simons
163da6c26a esniper: update to version 2.30.0
(cherry picked from commit 95aa6a9afa)
2014-05-23 21:56:46 +02:00
Eelco Dolstra
a08c43c352 switch-to-configuration: Use old systemctl to stop units
Otherwise, when switching from systemd 203 to 212, you get errors like:

  Failed to stop remote-fs.target: Bad message
  Failed to stop systemd-udevd-control.socket: Bad message
  ...

(cherry picked from commit 56b4b841ae)
2014-05-06 12:58:10 +02:00
Eelco Dolstra
4df1e5b0e4 switch-to-configuration: Use systemctl's --no-legend flag
(cherry picked from commit 37e6e08cde)
2014-05-06 12:58:10 +02:00
Domen Kožar
07d6a09e3d typo 2014-04-26 10:51:45 +02:00
Eelco Dolstra
15586a1a0a setuid-wrapper: Fix broken string comparison
(cherry picked from commit fa1a46a01c)
2014-04-19 14:45:07 +02:00
Eelco Dolstra
9f1843b28c setuid-wrapper.c: Remove tabs
(cherry picked from commit a8aa9f3fd4)
2014-04-19 14:45:07 +02:00
Rob Vermaas
7702bbb111 Add script to create and upload GCE image.
(cherry picked from commit 3f15f8b703)
2014-04-14 14:39:18 +02:00
Rob Vermaas
4a5ae5b531 Re-add phantomjs 1.9.2, as we cannot upgrade phantomjs-node package, due to some dependencies that are using git, which is not yet supported in the npm2nix of 13.10 branch. 2014-04-14 10:22:21 +02:00
Domen Kožar
61c4a7a7b8 Revert "Revert unintended change to minidlna."
This reverts commit 70b398dc68.
Fixes eval.
2014-04-13 19:53:48 +02:00
James Cook
f9cc680aee Patch python32 for CVE-2014-1912.
Signed-off-by: Domen Kožar <domen@dev.si>
2014-04-13 05:21:14 +02:00
James Cook
c60ae2141d Patch python27 for CVE-2014-1912.
Signed-off-by: Domen Kožar <domen@dev.si>
2014-04-13 05:21:14 +02:00
Domen Kožar
6d9e3d09c3 python2.7: 2.7.5 -> 2.7.6
Signed-off-by: Domen Kožar <domen@dev.si>
2014-04-13 05:21:14 +02:00
Rob Vermaas
70b398dc68 Revert unintended change to minidlna. 2014-04-10 13:44:24 +02:00
Rob Vermaas
2f2ec749c4 Add logstash-forwarder.
(cherry picked from commit c3c045c59d)

Conflicts:
	pkgs/top-level/all-packages.nix
2014-04-10 13:33:06 +02:00
Rob Vermaas
b6eee2cbb2 Update dd-agent to 4.2.0
(cherry picked from commit a4ebaa61e4)

Conflicts:
	pkgs/tools/networking/dd-agent/default.nix
2014-04-09 11:59:29 +02:00
Domen Kožar
cc051089d1 nginx: 1.4.3 -> 1.4.7 2014-04-09 11:29:30 +02:00
Domen Kožar
ab163b1454 munin: 2.0.19 -> 2.0.20 2014-04-09 11:29:30 +02:00
Rok Garbas
43dfab18cd fixing munin (broken by latest version update) also switch to fetchgit
Signed-off-by: Domen Kožar <domen@dev.si>

Conflicts:
	pkgs/servers/monitoring/munin/default.nix
2014-04-09 11:29:30 +02:00
Vladimír Čunát
ae71bb8e17 libarchive: *permanently* fix patch source and hash
Unfortunately github's *.patch URIs contain version of git generating them,
which changes from time to time. It seems that *.diff doesn't suffer from that.

(cherry picked from commit c814dab2ee)

Conflicts:
	pkgs/development/libraries/libarchive/default.nix
2014-04-08 23:30:23 +02:00
Eelco Dolstra
15a465ce4c nixos-generate-config: Fix PCI/USB checks
As reported by Kirill Elagin, read_file doesn't chomp its output. So
the equality tests on PCI/USB vendor and device IDs were failing.

(cherry picked from commit caf98828bb)
2014-04-08 15:17:37 +02:00
Domen Kožar
d1f7cd9c34 openssl: 1.0.1f -> 1.0.1g
CVE-2014-0160, CVE-2014-0076

Signed-off-by: Domen Kožar <domen@dev.si>
2014-04-07 20:34:09 +02:00
Eelco Dolstra
3b1f989961 Apply patch for CVE-2014-0004 to udisks-1.0.4 2014-04-05 19:10:35 +02:00
Eelco Dolstra
d7daf1a47f Revert "udisks1: bump to fix CVE-2014-0004"
This reverts commit 0194a44d63 because
it breaks udisks on 13.10 (e.g. running "udisks --enumerate" will
print "Unit udisks.service failed to load").
2014-04-05 18:56:45 +02:00
Peter Simons
14805c170b esniper: update to version 2.29.0 2014-04-02 17:45:36 +02:00
Vladimír Čunát
a041073b4c libyaml: minor update to fix CVE-2014-2525
(cherry picked from commit 0fd5a3af0c)
2014-04-01 11:30:57 +02:00
Austin Seipp
9797a3a4b0 kernel: longterm updates
- longterm: 3.4 skipped due to iwlwifi
 - longterm: -> 3.10.35
 - longterm: -> 3.12.15
 - stable:   not present in release-13.10

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 19bc051ca1)

Conflicts:
	pkgs/os-specific/linux/kernel/linux-3.10.nix
	pkgs/os-specific/linux/kernel/linux-3.12.nix
	pkgs/os-specific/linux/kernel/linux-3.4.nix
	pkgs/os-specific/linux/kernel/linux-3.9.nix
2014-04-01 11:21:43 +02:00
Vladimír Čunát
a74081566b openssh: update, fix CVE-2014-2653 by a Debian patch
(cherry picked from commit e50a76a469)

I was lazy to do any backporting, so I took the expression from master.
It looked like there were some more CVEs fixed in between.

Conflicts:
	pkgs/tools/networking/openssh/default.nix
2014-03-29 22:21:21 +01:00
Eelco Dolstra
53c07f1d52 Allow services to specify a pre-stop script
(cherry picked from commit 14cd8bc248)
2014-03-28 20:33:17 +01:00
Eelco Dolstra
dcc18b24ed Allow overrides to work for unit options
(cherry picked from commit 8951be2d80)
2014-03-28 20:33:17 +01:00
Eelco Dolstra
eac01d26b3 Use types.lines for script/preStart/postStart/postStop
(cherry picked from commit 33cb0bbb4b)
2014-03-28 20:33:17 +01:00
Eelco Dolstra
b01b6bfb61 nscd: Fix LD_LIBRARY_PATH
This ensures that nscd can find the NSS modules.

Fixes #1248.

(cherry picked from commit 953f12995b)
2014-03-28 20:33:16 +01:00
Eelco Dolstra
0ecdd05b02 Apply better type checking to unitConfig/serviceConfig/...
In particular, complain if two modules define the same systemd option.

(cherry picked from commit 5620e69b5d)
2014-03-28 20:33:16 +01:00
Vladimír Čunát
f9faaf47ab file: update to fix CVE-2014-2270, CVE-2013-7345
(cherry picked from commit 58857096fb)

Conflicts (release contained even older version):
	pkgs/tools/misc/file/default.nix
2014-03-26 19:40:52 +01:00
Rob Vermaas
762b6343d0 Update docutils python package. 2014-03-24 18:45:17 +01:00
Shea Levy
f61905c926 Update awscli
(cherry picked from commit 271de86a94)
2014-03-24 18:43:57 +01:00
Rob Vermaas
a05e8da639 Add rsa python package. (Cherry-picked from 6a4e30d8d1) 2014-03-24 18:42:16 +01:00
Shea Levy
e39d174390 Update pythonPackages.jmespath
(cherry picked from commit 9332d9ed5c)
2014-03-24 18:38:38 +01:00
Shea Levy
5716d71ef5 Update pythonPackages.botocore
(cherry picked from commit 51d35d5028)
2014-03-24 18:38:11 +01:00
Shea Levy
2055a260c3 Add bcdoc pythonPackage
(cherry picked from commit ffc3091811)
2014-03-24 18:34:18 +01:00
Peter Simons
3da18389dc esniper: add patch to fix unrecognized e-bay log-in page 2014-03-23 22:31:22 +01:00
Eelco Dolstra
7552196127 linux: Downgrade to 3.4.82
3.4.83 breaks iwlwifi, see https://lkml.org/lkml/2014/3/12/420.
2014-03-20 15:40:24 +01:00
Eelco Dolstra
3bcfa7b4ba kdf: Disable parallel building
http://hydra.nixos.org/build/9595928
(cherry picked from commit 26a868139e)
2014-03-18 17:32:24 +01:00
Vladimír Čunát
9951478c40 ffmpeg (0.10): update, probably fixing some CVEs 2014-03-17 22:53:08 +01:00
Eelco Dolstra
43757c2b35 zabbix: Update from 2.2.1 to 2.2.2
Potentially fixes CVE-2012-0031, CVE-2012-0053, CVE-2012-0883,
CVE-2012-2687, CVE-2012-3499, CVE-2012-4558, CVE-2013-1862,
CVE-2013-1896, CVE-2013-2249, CVE-2013-1034, CVE-2013-5143.

(cherry picked from commit 2ea4ec798b)

Conflicts (auto-solved):
	pkgs/servers/monitoring/zabbix/2.2.nix
2014-03-17 22:52:15 +01:00
Peter Simons
140a7f6396 bind: update to version 9.9.5-W1 (fixes CVE-2013-6230 and CVE 2014-0591)
(cherry picked from commit b0c2354809)

Conflicts (more updates instead of just one):
	pkgs/servers/dns/bind/default.nix
2014-03-17 22:51:07 +01:00
Vladimír Čunát
919d6e7d91 mupdf: fix CVE-2014-2013 by upstream patch
(cherry picked from commit be58c4f9e4)
2014-03-17 22:50:18 +01:00
Vladimír Čunát
dc07ccb304 libav: minor updates of both branches
(cherry picked from commit 76822ea4d5)
2014-03-17 22:46:17 +01:00
Vladimír Čunát
bc4fcd41f0 gnutls: disable tests (stopped working after last CVE)
I suppose it's better to have patched untested version than the other way.
2014-03-17 22:44:30 +01:00
Vladimír Čunát
51b33065e8 gnutls on darwin: drop patch that is integrated now
(cherry picked from commit c2cd9852ac)
2014-03-17 22:34:22 +01:00
Eelco Dolstra
734fbcaf1a gnutls: Update to 3.2.12, 3.1.22
CVE-2014-0092

Unfortunately, 3.2.12 doesn't pass the tests with Guile bindings
enabled, so I've turned them off in the default build.

(cherry picked from commit 738a5321bc)

Conflicts:
	pkgs/development/libraries/gnutls/3.2.nix
	pkgs/top-level/all-packages.nix
2014-03-17 22:33:35 +01:00
Vladimír Čunát
769dd688c6 libssh: update, incl. features and CVE-2014-0017 fix
Also add pkgconfig to inputs, as it was looked for by cmake.
Dependent packages seem to build fine.

(cherry picked from commit a13200352a)
2014-03-17 22:28:33 +01:00
Vladimír Čunát
40e84741e0 ffmpeg_1: update, probably fixing some security issues 2014-03-17 22:28:06 +01:00
James Cook
b94bca8ee3 ImageMagick: update to 6.8.8-7
Fixes CVE-2014-{1947,1958,2030}.

(cherry picked from commit 5d14048867)
2014-03-17 11:40:27 +01:00
Evgeny Egorochkin
3ca9d4e033 udisks2: update from 2.1.1 to 2.1.3, potentially fixes CVE-2014-0004
(cherry picked from commit 0ffbfd38bf)
2014-03-17 11:40:06 +01:00
Vladimír Čunát
0194a44d63 udisks1: bump to fix CVE-2014-0004
Also systemd unit is now installed.
Thanks to nixpkgs monitor again, as for all my CVE commits.

(cherry picked from commit 344f2e6518)
2014-03-17 11:39:03 +01:00
Vladimír Čunát
bda0c0598e libpng: update 1.6.9 -> .10 to fix CVE-2014-0333
(cherry picked from commit f5464c2982)
2014-03-17 11:38:35 +01:00
Eelco Dolstra
5f38f0fa39 switch-to-configuration: Don't try to start masked units
(cherry picked from commit 09c14cd8aa)
2014-03-17 11:36:58 +01:00
Eelco Dolstra
35195ba686 flashplayer: Add license field
(cherry picked from commit 5a807eaedb)
2014-03-17 11:36:39 +01:00
Eelco Dolstra
d717097855 linux: Update to 3.4.83
(cherry picked from commit c0f3f6e396)
2014-03-17 11:36:19 +01:00
Bjørn Forsman
599a567b17 lighttpd: bump 1.4.34 -> 1.4.35 (security fixes)
From http://www.lighttpd.net/:

  Important changes
  -----------------
  This release contains a lot of bug fixes, many detected by scan.coverity.com
  (and more to come). The main reason for the release is a fix for an SQL
  injection (and path traversal) bug triggered by specially crafted (and
  invalid) Host: headers.

  Security fixes
  --------------
  http://download.lighttpd.net/lighttpd/security/lighttpd_sa_2014_01.txt (no CVE yet)

NOTE: We (nixpkgs) currently don't build the mod_mysql_vhost module mentioned
above.

(cherry picked from commit 37ad2a7d28)
2014-03-12 22:52:22 +01:00
Eelco Dolstra
f2b950f92d Don't depend on the text of disabled units
This prevents pulling in unnecessary dependencies.

(cherry picked from commit f198c40608)
2014-03-12 21:03:27 +01:00
Eelco Dolstra
a92cc57b8f nixUnstable: Update to 1.7pre3522_f7e077a
(cherry picked from commit 5605b256a7)
2014-03-05 23:41:49 +01:00
Eelco Dolstra
17fe14e72b nixUnstable: Update to 1.7pre3520_1017bd6
(cherry picked from commit 19350fac66)
2014-03-03 14:04:32 +01:00
Eelco Dolstra
00081d1873 google-talk-plugin: Update to 5.1.5.0
(cherry picked from commit 34874dac7a)
2014-03-03 14:04:31 +01:00
Austin Seipp
bc3f4f3ce2 kernel: stable updates
- (3.13 branch omitted, not in release-13.10)
 - 3.12 stable:   3.12.11 -> 3.12.12
 - 3.10 longterm: 3.10.29 -> 3.10.31
 - 3.4  longterm: 3.4.79  -> 3.4.81

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit a1dc5ea707)

Conflicts:
	pkgs/os-specific/linux/kernel/linux-3.10.nix
	pkgs/os-specific/linux/kernel/linux-3.12.nix
	pkgs/os-specific/linux/kernel/linux-3.4.nix
	pkgs/os-specific/linux/kernel/linux-3.9.nix
2014-02-22 11:53:43 +01:00
Domen Kožar
0bb312d49e google_talk_plugin: 4.2.1.0 -> 5.1.4.0 2014-02-21 11:59:37 +01:00
William A. Kennington III
416e8d8a25 kernel: 3.12.10 -> 3.12.11 (close #1743)
(cherry picked from commit 52248aa7a2)

Conflicts (auto-solved):
	pkgs/os-specific/linux/kernel/linux-3.12.nix
2014-02-20 09:47:01 +01:00
Eelco Dolstra
d2b3552ac2 fetchurl: Ensure that ‘urls’ is a list
(cherry picked from commit 83ca2c272a)
2014-02-19 14:00:29 +01:00
Eelco Dolstra
f9ba9667ed Fix updating of the tarball mirror
(cherry picked from commit 7a51e17775)
2014-02-19 14:00:29 +01:00
Eelco Dolstra
f1f5ac92f4 Fix broken fetchurl argument 2014-02-19 13:37:15 +01:00
Rok Garbas
66f51a9103 phantomjs: update to 1.9.7
(cherry picked from commit 8741ff387d)
2014-02-17 16:46:36 +01:00
Eelco Dolstra
01873ffbd6 Add Template::Plugin::IO::All
(cherry picked from commit 42c083df41)
2014-02-14 10:58:37 +01:00
Eelco Dolstra
d6a5ea6bea zabbix: Update from 1.8.19 to 1.8.20
(cherry picked from commit da60b53242)
2014-02-14 10:55:35 +01:00
Eelco Dolstra
c13a13b2e5 Finance::Quote: Fix the Yahoo source
(cherry picked from commit ca5f99b9ea)
2014-02-14 10:54:54 +01:00
Eelco Dolstra
6fbd9b3e23 gnucash: Enable support for Finance::Quote
(cherry picked from commit 8b7e33d1946e6fb6118f97681fe665b74570fe7e)
2014-02-14 10:54:54 +01:00
Eelco Dolstra
5d674a4fbd Add Finance::Quote
(cherry picked from commit af8ae11319dbc7085e5aec0aa9c342dd44eb1e34)
2014-02-14 10:54:54 +01:00
Peter Simons
563c523848 gnucash: update to version 2.4.15
(cherry picked from commit 0a9e4d0ccc)
2014-02-14 10:54:54 +01:00
Shea Levy
66a52fe37c Revert "Add nixosSubmodule option type"
Moving recent types work to a separate branch for now

This reverts commit 2bf0067dad.
2014-02-13 12:10:33 -05:00
Shea Levy
83f6beb219 Revert "Add option type for a submodule with extra arguments"
Moving recent types work to a separate branch for now

This reverts commit 7b82c4805d.
2014-02-13 12:10:30 -05:00
Shea Levy
5ee8b59d99 Revert "Add heterogeneousAttrsOf option type"
Moving recent types work to a separate branch for now

This reverts commit 9f44491141.
2014-02-13 12:10:11 -05:00
Vladimír Čunát
8e8b35c910 libyaml: minor update 0.1.3 -> .5
The CVE patches are in the release now.

(cherry picked from commit 334a911ace)

Conflicts:
	pkgs/development/libraries/libyaml/default.nix
2014-02-12 12:41:03 +01:00
Vladimír Čunát
232e637ac9 thunderbird: simple esr bump (Nov 2013), incl. CVE
I failed to make -26 build, so this will get security fixes at least.

(cherry picked from commit 3269027235)
2014-02-12 12:40:10 +01:00
Shea Levy
9f44491141 Add heterogeneousAttrsOf option type
It is parameterized by a function that takes a name and evaluates to the
option type for the attribute of that name. Together with
submoduleWithExtraArgs, this subsumes nixosSubmodule.

(cherry picked from commit 3f70dabad3)

Conflicts:
	nixos/modules/virtualisation/containers.nix
2014-02-11 15:01:14 -05:00
Shea Levy
7b82c4805d Add option type for a submodule with extra arguments
(cherry picked from commit 8764758044)
2014-02-11 14:41:17 -05:00
Shea Levy
2bf0067dad Add nixosSubmodule option type
Since NixOS modules expect special arguments, use a hack to provide them

(cherry picked from commit ca1c5cfa8f)

Conflicts:
	nixos/modules/virtualisation/containers.nix
2014-02-11 14:40:59 -05:00
Shea Levy
1ff3338025 Pass lib to modules
Since mkOption, types, etc. are defined there, lib is really part of the interface

(cherry picked from commit 2deb26bd4a)
2014-02-11 14:40:16 -05:00
Vladimír Čunát
0a6e2344a3 linux: minor updates 3.12.10, 3.10.29, 3.4.79
(cherry picked from commit 24029ec478)
2014-02-09 09:47:57 +01:00
Vladimír Čunát
204011c187 kde410.kde_workspace: fix CVE-2013-4132 by upstream patch
(cherry picked from commit 9665c85f99)
2014-02-09 09:47:57 +01:00
Pascal Wittmann
817a49f322 andagii: fix fetch by providing a different user-agent
Close #1706.

(cherry picked from commit 0fa30be7a8)
2014-02-09 09:47:57 +01:00
Vladimír Čunát
a31cfb0051 gnutls: disable tests on i686 (no idea what's the problem) 2014-02-08 18:32:27 +01:00
Vladimír Čunát
c9f4f6d9ee spring: disable parallel building, as it breaks on Hydra
(cherry picked from commit e43018e019)
2014-02-08 09:16:37 +01:00
Vladimír Čunát
23b7fa8cde gnutls2: fix build in chroot (/usr/bin/perl doc script)
I've got no idea how this could get triggered on Hydra, 97e7ce2 ?

(cherry picked from commit 6fa5612a46)
2014-02-08 08:13:19 +01:00
Vladimír Čunát
92f362a7bb boost149: fix CVE-2013-0252 by upstream patch
Also have just one patch per line in the expression.

(cherry picked from commit 35c586e624)

Conflicts (there is&was one patch less than on master):
	pkgs/development/libraries/boost/1.49.nix
2014-02-08 08:12:35 +01:00
Vladimír Čunát
ebf9b03879 libarchive: fix CVE-2013-0211 by upstream patch
(cherry picked from commit 72740390d7)
2014-02-08 08:08:16 +01:00
Vladimír Čunát
99f8bd0edc hadoop: update, including fix for CVE-2013-2192
(cherry picked from commit 6e0cac6d6a)
2014-02-08 08:08:16 +01:00
Vladimír Čunát
d409cb8e74 gnutls31: update 3.1.12 -> .20, including CVE fixes
CVE-2013-{4466,4487}

(cherry picked from commit 1c3950dc9d)
2014-02-08 08:07:27 +01:00
Vladimír Čunát
608317a328 gnutls32: update 3.2.4 -> .10, including CVE fixes
Leave gnutls31 the default gnutls, despite the picked patch selecting gnutls32.
CVE-2013-{4466,4487}

(cherry picked from commit cb605c92d2)
2014-02-08 08:03:57 +01:00
Vladimír Čunát
326a3eed01 gnutls2: fix CVE-2013-2116 by Debian patch
(cherry picked from commit 97e7ce2344)
2014-02-08 08:02:30 +01:00
Vladimír Čunát
eb9084134b gnash: fix CVE-2012-1175 by upstream patch
(cherry picked from commit 11914108aa)
2014-02-08 08:02:29 +01:00
Vladimír Čunát
55c26615ea socat-2.*: fix CVE-2014-0019
(cherry picked from commit 2dd13fcb0b)
2014-02-08 08:02:29 +01:00
Vladimír Čunát
e54e8df0f6 kicad: disable parallel building, as it often fails
CC @viric.

(cherry picked from commit 5559d4d47e)
2014-02-08 08:02:29 +01:00
Vladimír Čunát
4e4108f1a2 gegl: fix CVE-2012-4433 via an Arch patch
(cherry picked from commit c2c50db47d)
2014-02-06 18:28:10 +01:00
Vladimír Čunát
329f4cdbcb curl: update 7.33 -> .35, including two security fixes
CVE-2013-4545
CVE-2014-0015

(cherry picked from commit befe6905e2)
2014-02-06 18:28:09 +01:00
Vladimír Čunát
09f741f2fe nixos/mesa: don't create /run/opengl-driver-32 ...
... if on 64-bit and without 32-bit drivers.

(cherry picked from commit 4284694439)

Conflicts (still in xserver.nix on release):
	nixos/modules/services/x11/mesa.nix
2014-02-06 18:27:39 +01:00
Vladimír Čunát
4734f04d70 fontconfig: stop using xml:space; vital for nixos+2.11
Since fontconfig-2.11 the xml:space attribute makes it reject
/etc/fonts/fonts.conf, so it renders garbage and eats lots of CPU.

To use anything linked to fontconfig-2.11 you need to have this patch
applied to your running NixOS. That's why I'm pushing it to master
before the fontconfig update (as soon as I found and tested the fix).

(cherry picked from commit ec985c8ffa)
2014-02-06 18:16:53 +01:00
James Cook
586cf4ee42 libyaml: Patch to fix CVE-2013-6393 (close #1658)
(cherry picked from commit 21a220900a)
2014-02-06 18:05:55 +01:00
Vladimír Čunát
3e12dc8311 flashplayer: update, fixing many security CVEs
(cherry picked from commit edb9e50ef9)
2014-02-06 18:05:03 +01:00
Evgeny Egorochkin
661dbc3656 socat: update from 1.7.2.2 to 1.7.2.3, potentially fixes CVE-2014-0019
(cherry picked from commit 0c439c3a1a)
2014-02-06 18:04:54 +01:00
Eelco Dolstra
d5ede6c5a2 ntpd: Don't answer status queries
Workaround for CVE-2013-5211:

http://support.ntp.org/bin/view/Main/SecurityNotice#DRDoS_Amplification_Attack_using
(cherry picked from commit 9e7fe29e41)
2014-02-06 18:03:11 +01:00
Eelco Dolstra
44ac502f5e ntp: Update to 4.2.6p5
(cherry picked from commit d451d12128)
2014-02-06 18:03:11 +01:00
Vladimír Čunát
2498080494 merge #1618: pull kernel module blacklists from Ubuntu
Ported from master.
2014-02-04 18:05:24 +01:00
Vladimír Čunát
2cb0f61de8 kmod-blacklist-ubuntu: fix references to binaries 2014-02-04 18:04:17 +01:00
Vladimír Čunát
ac5457f90e kmod-blacklist-ubuntu: fetch from tar.gz, not bazaar
Now the source is just a miniature archive.
2014-02-04 18:04:17 +01:00
Vladimír Čunát
a60ec2d745 pull module blacklist from Ubuntu and use it by default
People often have serious problems due to bogus modules like *fb.
2014-02-04 18:04:17 +01:00
Vladimír Čunát
3e03496dc8 libav: bugfix updates for both branches; maintain
(cherry picked from commit 3fe1656376)

Conflicts (0.8 skipped one update):
	pkgs/development/libraries/libav/default.nix
2014-02-04 17:51:33 +01:00
Vladimír Čunát
ac8563f269 pidgin: bugfix 2.10.8 -> .9
Fixes connection to some servers broken by the previous update.

(cherry picked from commit 9dd9e52c0c)
2014-02-03 15:03:28 +01:00
Vladimír Čunát
caefe5e006 pidgin: minor update 2.10.7 -> .8, including CVE-2013-6484
Also switch no newer libstartup-notification, add license and platforms.

(cherry picked from commit 5d2e884aa1)
2014-02-02 08:11:18 +01:00
Eelco Dolstra
60b914f032 linux: Update to 3.4.78
(cherry picked from commit b913a2eb81)
2014-01-31 18:04:01 +01:00
Vladimír Čunát
c707212230 linux kernel updates to 3.4.77, 3.10.28 and 3.12.9
I tested they still build on x86_64.

(cherry picked from commit a9caafa0ea)
2014-01-31 18:03:50 +01:00
Eelco Dolstra
1e7192a134 nixUnstable: Update to 1.7pre3327_0e2ca26
Also fixes disappeared tarball.

(cherry picked from commit 8ad41b92cf)
Signed-off-by: Shea Levy <shea@shealevy.com>

Conflicts:
	pkgs/tools/package-management/nix/unstable.nix
2014-01-24 12:39:00 -05:00
Rob Vermaas
6d6b40ac6a Do not assume a .rev attribute in available in src in maven-build.nix
(cherry picked from commit 13e13f279b)
2014-01-24 15:53:13 +01:00
Vladimír Čunát
37dbdc089b phonon_backend_vlc: fix build by adding pkgconfig
Commented on 86f7aec950 (commitcomment-5111284)

(cherry picked from commit 03c9791e0a)
2014-01-20 21:11:26 +01:00
Vladimír Čunát
159814da97 poppler: bugfix update 0.24.4 -> .5
Also Qt4 binding bugfix.

(cherry picked from commit d37aec1ac4)
2014-01-19 10:47:39 +01:00
Vladimír Čunát
c08926b966 wireshark: bugfix+CVE update to current old-stable
The old version also didn't build anymore on x-updates.

(cherry picked from commit 5fd97b7067)
2014-01-18 15:57:22 +01:00
zimbatm
1d27378365 Updates ruby 1.9.3 to patch-level 484. Fixes CVE-2013-4164
(cherry picked from commit 75a6ed8ddb)

Conflicts:
	pkgs/development/interpreters/ruby/ruby-19.nix
2014-01-18 15:54:09 +01:00
zimbatm
24d8467fe2 Updates ruby 2.0.0 to patch-level 353. Fixes CVE-2013-4164
(cherry picked from commit c8065de0af)

Conflicts:
	pkgs/development/interpreters/ruby/ruby-2.0.nix
2014-01-18 15:53:52 +01:00
zimbatm
8c02d9a541 Updates ruby 1.8.7 to the latest patch-level. WARNING: unsupported
ruby 1.8 should be phased out as it contains security issues and is
unsupported by the ruby core team. This is the last update available but it
doesn't fix all CVEs.

(cherry picked from commit b802a7be88)

Conflicts:
	pkgs/development/interpreters/ruby/ruby-18.nix
2014-01-18 15:53:35 +01:00
Nixpkgs Monitor
5710527c1b clamav: update from 0.97.5 to 0.97.8, potentially fixes CVE-2013-2020, CVE-2013-2021
(cherry picked from commit d5c1d33a23)
2014-01-18 15:53:07 +01:00
Nixpkgs Monitor
3c67ad6986 kde4.quasselDaemon: update from 0.9.0 to 0.9.2, potentially fixes CVE-2013-4422
(cherry picked from commit 78f33605e5)
2014-01-18 15:53:07 +01:00
Nixpkgs Monitor
86a82ac797 privoxy: update from 3.0.12 to 3.0.21, potentially fixes CVE-2013-2503
(cherry picked from commit 3837210fed)
2014-01-18 15:53:07 +01:00
Nixpkgs Monitor
b84ffbe185 torcs: update from 1.3.2 to 1.3.5, potentially fixes CVE-2012-1189
(cherry picked from commit ae7be783a2)
2014-01-18 15:53:07 +01:00
Nixpkgs Monitor
29bed82861 varnish: update from 3.0.3 to 3.0.5, potentially fixes CVE-2013-4484
(cherry picked from commit 22bd6c8efd)

Conflicts:
	pkgs/servers/varnish/default.nix
2014-01-18 15:52:57 +01:00
Nixpkgs Monitor
d766f1825c unixODBC: update from 2.3.1 to 2.3.2, potentially fixes CVE-2012-2657, CVE-2012-2658
(cherry picked from commit 407c0be935)
2014-01-18 15:51:59 +01:00
Nixpkgs Monitor
a3e3bc2fcb squid: update from 3.1.15 to 3.1.23, potentially fixes CVE-2012-5643, CVE-2013-0189
(cherry picked from commit b296f02449)
2014-01-18 15:51:59 +01:00
Nixpkgs Monitor
11024a7a8d rubygems: update from 1.8.17 to 1.8.25, potentially fixes CVE-2012-2125, CVE-2012-2126, CVE-2013-4287, CVE-2013-4363
(cherry picked from commit 56c9ae9b1d)
2014-01-18 15:51:54 +01:00
Nixpkgs Monitor
841d43fcf6 mongodb: update from 2.4.5 to 2.4.8, potentially fixes CVE-2013-2132
(cherry picked from commit 03b15f9409)
2014-01-18 15:51:48 +01:00
Nixpkgs Monitor
b66d30b086 libnetfilter_conntrack: update from 1.0.2 to 1.0.4, potentially fixes CVE-2012-2671
(cherry picked from commit d1fc8ec866)
2014-01-18 15:51:47 +01:00
Nixpkgs Monitor
8589b341e6 graphicsmagick: update from 1.3.13 to 1.3.18, potentially fixes CVE-2013-4589
(cherry picked from commit 99bf1945d1)
2014-01-18 15:51:47 +01:00
Nixpkgs Monitor
42852a7978 dropbear: update from 2013.58 to 2013.60, potentially fixes CVE-2013-4421, CVE-2013-4434
(cherry picked from commit 92de25cb55)
2014-01-18 15:51:47 +01:00
Nixpkgs Monitor
19a3d6ac96 bogofilter: update from 1.1.6 to 1.1.7, potentially fixes CVE-2012-5468
(cherry picked from commit 090d51cb37)
2014-01-18 15:51:43 +01:00
Nixpkgs Monitor
ef85a0db6b phonon_backend_vlc: update from 0.5.0 to 0.7.0, potentially fixes CVE-2012-1775, CVE-2012-1776, CVE-2012-3377
(cherry picked from commit 86f7aec950)
2014-01-18 15:51:43 +01:00
Nixpkgs Monitor
0cb5423143 libproxy: update from 0.4.7 to 0.4.11, potentially fixes CVE-2012-4504
(cherry picked from commit 22eabfcc02)
2014-01-18 15:50:24 +01:00
Nixpkgs Monitor
a8ddd17e03 smbldaptools: update from 0.9.7 to 0.9.10, potentially fixes CVE-2012-0961, CVE-2013-1051
(cherry picked from commit 36677bbe86)
2014-01-18 15:50:24 +01:00
Evgeny Egorochkin
39866806e0 pycrypto: remove version 2.5 since it's vulnerable to CVE-2012-2417, CVE-2013-1445
(cherry picked from commit c53d8c81f5)
2014-01-18 15:50:19 +01:00
Nixpkgs Monitor
d4f35526ee ii: update from 1.6 to 1.7, potentially fixes CVE-2012-2187
(cherry picked from commit aa36ddc188)
2014-01-18 15:50:18 +01:00
Nixpkgs Monitor
93f769a538 kde4.digikam: update from 3.2.0 to 3.5.0, potentially fixes CVE-2012-4514, CVE-2012-4514
(cherry picked from commit b92620f680)
2014-01-18 15:50:18 +01:00
Nixpkgs Monitor
6cd601bb50 zabbix.agent: update from 1.8.18rc1 to 1.8.19, potentially fixes CVE-2013-6824
(cherry picked from commit 156ff88ed2)
2014-01-18 15:49:56 +01:00
Nixpkgs Monitor
c3ca28a264 perlPackages.DevelSymdump: update from 2.08 to 2.11, potentially fixes CVE-2013-7069
(cherry picked from commit 7554c61e30)
2014-01-18 15:49:56 +01:00
Nixpkgs Monitor
e300b69c56 gnumeric: update from 1.12.0 to 1.12.9, potentially fixes CVE-2013-6836
(cherry picked from commit 270acdc682)
2014-01-18 15:49:56 +01:00
Nixpkgs Monitor
130168df28 squids.latest: update from 3.2.2 to 3.2.13, potentially fixes CVE-2012-5643, CVE-2013-0189, CVE-2013-1839, CVE-2013-4123
(cherry picked from commit 751e111a87)
2014-01-18 15:49:56 +01:00
Eelco Dolstra
c8aca66826 samba: Update to 3.6.22
CVE-2012-6150, CVE-2013-4408.

(cherry picked from commit 9d3d42406b)
2014-01-18 15:49:55 +01:00
Rob Vermaas
d9b2792e10 Update libmicrohttpd to 0.9.33. CVE-2013-7038, CVE-2013-7039
(cherry picked from commit 0745e34ddf)
2014-01-18 15:49:55 +01:00
Nixpkgs Monitor
426c62dfc4 libupnp: update from 1.6.6 to 1.6.19, potentially fixes CVE-2012-5958, CVE-2012-5959, CVE-2012-5960
(cherry picked from commit f85b57b2fc)
2014-01-18 15:49:55 +01:00
Nixpkgs Monitor
498616b995 lighttpd: update from 1.4.33 to 1.4.34, potentially fixes CVE-2013-4508
(cherry picked from commit 0c6ebeb734)

Conflicts:
	pkgs/servers/http/lighttpd/default.nix
2014-01-18 15:49:27 +01:00
Nixpkgs Monitor
8955a2c828 munin: update from 2.0.17 to 2.0.19, potentially fixes CVE-2013-6048, CVE-2013-6359
(cherry picked from commit 36c0702156)
2014-01-18 15:48:06 +01:00
Peter Simons
3b77a7a19b libtirpc: update from 0.2.3 to 0.2.4, potentially fixes CVE-2013-1950
(cherry picked from commit 5ea4b3f8e7)
2014-01-18 15:48:06 +01:00
Vladimír Čunát
2819bf4798 gdal: add libtiff to buildInputs as well (fix build)
so that its private deps propagate.

(cherry picked from commit 2abbce201a)
2014-01-18 11:41:04 +01:00
Vladimír Čunát
e65200fb5f fixup gtk c++ bindings (fix build, no major updates)
I re-checked the complete diff of my changes pushed recently to release,
so there are no more major updates (except for wayland/weston).

Also revert atkmm minor update, as it needed major glib update.
2014-01-18 10:27:40 +01:00
Vladimír Čunát
658fc733b5 fixup: lipng_apng patch; in mesa no vdpau by default 2014-01-17 19:59:22 +01:00
Vladimír Čunát
1ba21dbc00 dbus: minor update 1.6.14 -> .16 "fortify agility"
(cherry picked from commit 5ddbacecb5)
2014-01-16 22:45:53 +01:00
Vladimír Čunát
009e9ff0a7 mesa: add GLES 1 and 2 support by default
The libs have just a few kilobytes and no additional deps.

(cherry picked from commit 9999ac6d89)
2014-01-16 22:45:53 +01:00
Vladimír Čunát
7f4650308f perl: avoid --no-cpp-precomp on darwin, (close #1160)
Taken from https://trac.macports.org/ticket/38913
vcunat renamed the patch

Conflicts (trivial):
	pkgs/development/interpreters/perl/5.16/default.nix

(cherry picked from commit 0eeee298ef)
2014-01-16 22:45:42 +01:00
Vladimír Čunát
a254f7e747 gtk2: minor update .20 -> .22
(cherry picked from commit 2a9bdac39a)
2014-01-16 22:45:42 +01:00
Vladimír Čunát
4f36bb8347 pciutils: minor update to today's version
(cherry picked from commit d9f1ed063b)
2014-01-16 22:45:42 +01:00
Vladimír Čunát
d1644c1748 libxml2: bump 2.9.0 -> 2.9.1 (CVE-2013-1969)
And drop patch that has been merged upstream.
Close #1199.
Hack around python install problems (the rest is from bjornfor).

(cherry picked from commit 85d21a6963)

Conflicts:
	pkgs/development/libraries/libxml2/default.nix
2014-01-16 22:45:36 +01:00
Vladimír Čunát
6c5e7acfc0 upower: fix Xfce via --enable-deprecated
Also drop older libusb1 version which is no longer needed with newer upower.

(cherry picked from commit 91028bd151)

Conflicts (trivial):
	pkgs/os-specific/linux/upower/default.nix
2014-01-16 22:43:34 +01:00
Vladimír Čunát
9f8cbef001 libxml2 on FreeBSD: disable impure python detection
This might be good for all platforms,
when we do some big rebuild again.

(cherry picked from commit 9220d5b002)
2014-01-16 22:42:47 +01:00
Vladimír Čunát
44a7b2b08f vlc: minor update 2.1.0 -> .1
(cherry picked from commit ac6bc8c990)
2014-01-16 22:42:47 +01:00
Vladimír Čunát
e58f4378bd Revert "new systemd can't inhibit lid switches"
This reverts commit f9fb7b7457.
Cf. https://github.com/jcumming/nixos/commit/da2c160471f73af

(cherry picked from commit 8e0d77632e)

Conflicts (take master):
	nixos/modules/services/x11/display-managers/default.nix
2014-01-16 22:42:38 +01:00
Vladimír Čunát
6c99a00341 libvdpau: minor update 0.6 -> 0.7
(cherry picked from commit 9df6a053c3)
2014-01-16 22:42:00 +01:00
Vladimír Čunát
1037cc6a55 libusb1: update 1.0.16 -> .17
(cherry picked from commit 08085aaf0a)
2014-01-16 22:42:00 +01:00
Vladimír Čunát
92bb249d93 fixup: gtk+ typo, don't use non-existing osmesa in wine 2014-01-16 22:33:55 +01:00
Vladimír Čunát
666205d07b libssh: bugfix update + CVE-2013-0176
It seems an old DoS-only problem.

(cherry picked from commit 1812522f2a)
2014-01-16 22:30:40 +01:00
Vladimír Čunát
1b94984c1b libgsf: bugfix update 1.14.26 -> .28
(cherry picked from commit a44df6d289)
2014-01-16 22:30:40 +01:00
Vladimír Čunát
6c22f50bb0 imagemagick: minor update to 6.8.7-6
(cherry picked from commit 85b6d28862)

Conflicts (take later = master):
	pkgs/applications/graphics/ImageMagick/default.nix
2014-01-16 22:30:18 +01:00
Vladimír Čunát
9e8132f17d libunique: fix build, make the package unique
The one in gnome2 was failing to build,
but all there is likely in a desolate state anyway.

In gmpc it also seemed without any reason to have a duplicate.

(cherry picked from commit 747e757500)

Conflicts (take later = master):
	pkgs/desktops/gnome-2/default.nix
2014-01-16 22:29:12 +01:00
Vladimír Čunát
937c5981ca shared_mime_info: update 1.1 -> 1.2
(cherry picked from commit aa3e96c3e0)
2014-01-16 22:28:48 +01:00
Vladimír Čunát
4692fbae0a libnotify: minor update 0.7.5 -> .6
(cherry picked from commit 971c67a1ba)
2014-01-16 22:28:48 +01:00
Vladimír Čunát
e5880ebb02 libcroco: minor update 0.6.6 -> .8
(cherry picked from commit 0bec9c1e4f)
2014-01-16 22:28:48 +01:00
Vladimír Čunát
e228e4b2cc pixman: update to 0.32.4
(cherry picked from commit f7b39cce8c)

Conflicts (taken later = master):
	pkgs/development/libraries/pixman/default.nix
2014-01-16 22:28:24 +01:00
Vladimír Čunát
f442a35ef7 xorg xf86-video-nv: fix build via an upstream patch
(cherry picked from commit 6e5c003f42)
2014-01-16 22:27:28 +01:00
Vladimír Čunát
821cfa2c73 wayland, weston: update to 1.3.1, fix weston build
Also make Hydra build weston, so we can see the breakages in future.

(cherry picked from commit 30666ed5ad)

Conflicts (take later = master):
	pkgs/development/libraries/wayland/default.nix
2014-01-16 22:27:17 +01:00
Vladimír Čunát
5982dc2728 poppler: bugfix update 0.24.3 -> .4
(cherry picked from commit 493eaf95dd)

Conflicts (take later = master):
	pkgs/development/libraries/poppler/default.nix
2014-01-16 22:26:30 +01:00
Vladimír Čunát
0e0397ee6c libdrm: bump 2.4.50
Mainly, it fixes a critical bug for Radeon Southern Islands GPUs.

(cherry picked from commit 8dc05a8fc9)

Conflicts (take later = master):
	pkgs/development/libraries/libdrm/default.nix
2014-01-16 22:25:57 +01:00
Vladimír Čunát
d75f05f915 gtk3: bugfix update to 3.8.8
(cherry picked from commit 7a3ae83a97)

Conflicts (stay on the same branch, master is 3.10):
	pkgs/development/libraries/gtk+/3.x.nix
2014-01-16 22:24:45 +01:00
Vladimír Čunát
d85f0a19e0 fribid: fix build via using gtk2 instead of gtk3
This was caused by a gtk3 update.
I saw they depend on gtk2 instead in Arch and it fixes the build there.
CC @edwtjo

(cherry picked from commit 785befb6b2)
2014-01-16 22:22:13 +01:00
Vladimír Čunát
2ed0a66fe2 libsigcxx: bugfix update 2.2.10 -> .11, enable tests
(cherry picked from commit f9f14be632)
2014-01-16 22:22:13 +01:00
Vladimír Čunát
7142f90e6a pangomm: update, so we can drop older cairo
(cherry picked from commit 1e113b8284)
2014-01-16 22:22:13 +01:00
Vladimír Čunát
ace1166a82 atkmm: maintenance update
(cherry picked from commit a5110391dd)
2014-01-16 22:22:13 +01:00
Vladimír Čunát
3babd7a52b mu: fix build via disabling mug GUI by default
It seems it can't handle gtk-3.10.
CC @the-kenny

(cherry picked from commit 3c013cdec9)
2014-01-16 22:22:12 +01:00
Vladimír Čunát
f9594dfb5d racket: fix build via forcing -lgcc_s
(cherry picked from commit 1d62c6445f)
2014-01-16 22:22:12 +01:00
Vladimír Čunát
1461c26e1b dragonegg: fix build via update to 3.3
(cherry picked from commit 4855b0a22e)
2014-01-16 22:22:12 +01:00
Vladimír Čunát
96f3936c44 mesa: move vdpau drivers so they are found
(cherry picked from commit 458f17ae26)
2014-01-16 22:19:06 +01:00
Vladimír Čunát
dc604cead3 mesa: bugfix update 9.1.6 -> .7
(cherry picked from commit e8394e3f8c)

Conflicts (stay on 9.1 branch):
	pkgs/development/libraries/mesa/default.nix
2014-01-16 22:18:42 +01:00
Vladimír Čunát
886be2307c libpng: minor update 1.6.7 -> .8
Fixes a potential segfault.

(cherry picked from commit f4782016ed)

Conflicts (take later = master):
	pkgs/development/libraries/libpng/default.nix
2014-01-16 22:15:28 +01:00
Vladimír Čunát
d976f03c7f gdk_pixbuf: remain on the same major branch
(cherry picked from commit 51c83e927d)

Conflicts:
	pkgs/development/libraries/gdk-pixbuf/default.nix
2014-01-16 22:14:15 +01:00
Vladimír Čunát
ff50440f2e libtiff: pull (mostly) security patches from Arch
Also enable lzma support and check phase.

(cherry picked from commit a1cfb23d73)
2014-01-16 22:09:22 +01:00
Vladimír Čunát
275a81e250 qt4: fix CVE-2013-4549.patch
(cherry picked from commit a84d2267d1)
2014-01-16 22:09:22 +01:00
Vladimír Čunát
d8e6714b5e libXtst: forgotten security update
(cherry picked from commit 4f8809a091)
2014-01-16 22:09:22 +01:00
Vladimír Čunát
b97830ba4b libxslt: minor update to fix DOS security problem
(cherry picked from commit 91ead93811)
2014-01-16 22:09:22 +01:00
Vladimír Čunát
a41c8a78e1 netpbm: fix build
(cherry picked from commit c744a7e106)
2014-01-16 22:09:21 +01:00
Vladimír Čunát
6dc9713c36 netpbm: fix CVE-2005-2471
(cherry picked from commit 15a5894ab3)
2014-01-16 22:09:21 +01:00
Vladimír Čunát
e814651b01 xfce4-terminal: bugfix update 0.6.2 -> .3
(cherry picked from commit 9020582fea)
2014-01-16 22:09:21 +01:00
Vladimír Čunát
a8a2fce888 fftw: minor update and major refactoring
- Unify the "single" and "float" variants, which are the same thing.
- Enable threads and openmp wrapper by default (they are very small).
- Don't use sse on i686, as I'm quite sure we have no warrant for that.
  Cf. http://en.wikipedia.org/wiki/Pentium_Pro
- Disable static libs (big, no indication we need them).
- I tested most builds using fftw (they build OK).

(cherry picked from commit 506a304181)

Conflicts:
	pkgs/applications/graphics/gimp/plugins/default.nix
	pkgs/top-level/all-packages.nix
2014-01-16 22:09:14 +01:00
Vladimír Čunát
fa8985af3a xorg.libXfont: bugfix update, CVE-2013-6462
This lib is deprecated and almost unused, but still...

(cherry picked from commit e01af040ed)
2014-01-16 22:03:36 +01:00
Vladimír Čunát
8a1d88bb89 wineStable: maintenance update 1.6.1 -> .2, use lcms2
lcms2 is now supported according to the announcement, so I switched to it.
Tested on a steam game ;-)

(cherry picked from commit a00e382e23)

Conflicts (master taken):
	pkgs/misc/emulators/wine/stable.nix
2014-01-16 22:03:24 +01:00
Vladimír Čunát
66c89241f9 openssl: security update 1.0.1e -> f
It's supposed to fix CVE-2013-{4353,6449,6450}
http://www.openssl.org/news/openssl-1.0.1-notes.html

I just tested the build succeeds, the list of major changes seems safe.

(cherry picked from commit f1766c252f)
2014-01-16 22:02:50 +01:00
Eelco Dolstra
2065290ca0 nix: Backport bug fix to check NAR integrity
(cherry picked from commit b9dbfe7feb)
2014-01-15 11:05:18 +01:00
Eelco Dolstra
30315dc742 linux: Update to 3.4.76
(cherry picked from commit 03ad7a081c)
2014-01-15 11:04:22 +01:00
Eelco Dolstra
93cc0ec009 nss: Update to 3.15.3.1
http://www.mozilla.org/security/announce/2013/mfsa2013-117.html
(cherry picked from commit 72feb8e011)
2014-01-15 10:53:09 +01:00
Eelco Dolstra
f00b8ccbdd linux: Update to 3.4.75
(cherry picked from commit c3db56527d)
2014-01-15 10:53:09 +01:00
Shea Levy
face66737b boost: enable setting toolset
Contribution suggested/initially implemented by Martin Bravenboer

Signed-off-by: Shea Levy <shea@shealevy.com>
(cherry picked from commit cc26a4b803)
2014-01-14 07:27:09 -05:00
William A. Kennington III
acee5b6be0 apr-util: Cleanup
Add the required packages to buildInputs. Create a wrapper around
apr-1-config so that internal sed commands succeed.
2014-01-08 13:20:53 +01:00
Nixpkgs Monitor
7a9271e98f aprutil: update from 1.5.2 to 1.5.3 2014-01-08 13:20:48 +01:00
Eelco Dolstra
9f3dc64b90 apr: Update to 1.5.0 2014-01-08 13:20:34 +01:00
Peter Simons
80499c44e2 apache-httpd-2.4: revert "enable building the 'event'-based mpm worker"
Commit 0c3d910cd0 didn't have any effect.
The 'event' MPM module isn't built because our version of APR is too old.
2014-01-08 13:16:08 +01:00
Nixpkgs Monitor
dd717f2a0a libestr: update from 0.1.4 to 0.1.9 2014-01-08 10:48:58 +01:00
Rob Vermaas
dbd6793536 mkStrict used mkOverride 0 before. 2014-01-08 10:44:55 +01:00
Rob Vermaas
0560682563 Add zabbix 2.2.1 2014-01-07 13:11:57 +01:00
Shea Levy
74ec7494ba bower2nix: Bump
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-01-06 13:22:56 -05:00
Eelco Dolstra
4ea81af9d2 cacert: Update to 20131205
(cherry picked from commit 3f799e7233)
2014-01-06 14:47:44 +01:00
Eelco Dolstra
9f22c446e9 postgresql: Update to 8.4.19, 9.0.15, 9.1.11, 9.2.6
This is a critical update fixing several data corruption issues:

  http://www.postgresql.org/about/news/1492/

(cherry picked from commit 0c93c758bf)
2014-01-06 14:47:44 +01:00
Shea Levy
ce9f682eb8 Update bower2nix
Signed-off-by: Shea Levy <shea@shealevy.com>
2014-01-06 08:45:13 -05:00
Shea Levy
c0127347fa Add fetchbower function to go along with bower2nix
(cherry picked from commit e6dae5d7f4)

Signed-off-by: Shea Levy <shea@shealevy.com>

Conflicts:
	pkgs/top-level/node-packages-generated.nix
	pkgs/top-level/node-packages.json
2014-01-06 08:37:43 -05:00
Karn Kallio
68e706f66a scala: add expression for scala 2.10.x branch.
(cherry picked from commit 1e80c57274)
2014-01-03 11:13:14 -05:00
Jaka Hudoklin
8d74173029 ati-drivers: fix download
Signed-off-by: Domen Kožar <domen@dev.si>
2014-01-03 12:45:23 +01:00
Peter Simons
290e160067 Update Haskell packages.
- abstract-par: update to version 0.3.3
 - accelerate-cuda: update to version 0.14.0.0
 - accelerate-examples: update to version 0.14.0.0
 - accelerate-fft: update to version 0.14.0.0
 - accelerate-io: update to version 0.14.0.0
 - accelerate: update to version 0.14.0.0
 - active: update to version 0.1.0.10
 - alsa-core: update to version 0.5.0.1
 - alsa-pcm: update to version 0.6
 - ansi-terminal: update to version 0.6.1
 - ansi-wl-pprint: update to version 0.6.7.1
 - asn1-types: update to version 0.2.3
 - async: update to version 2.0.1.4
 - authenticate-oauth: update to version 1.4.0.8
 - base-compat: update to version 0.3.0
 - bifunctors: update to version 4.1.1
 - blaze-builder: update to version 0.3.3.2
 - blaze-html: update to version 0.6.1.2
 - blaze-markup: update to version 0.5.1.6
 - cabal2nix: update to version 1.57
 - cairo: update to version 0.12.5.0
 - cereal-conduit: update to version 0.7.2
 - cereal: update to version 0.4.0.1
 - Chart-cairo: update to version 1.1
 - Chart-gtk: update to version 1.1
 - Chart: update to version 1.1
 - circle-packing: update to version 0.1.0.3
 - classy-prelude-conduit: update to version 0.7.0
 - classy-prelude: update to version 0.7.0
 - cmdargs: update to version 0.10.7
 - conduit: update to version 1.0.9.3
 - connection: update to version 0.1.3.1
 - cpu: update to version 0.1.2
 - crypto-numbers: update to version 0.2.3
 - crypto-pubkey-types: update to version 0.4.1
 - crypto-pubkey: update to version 0.2.4
 - cuda: update to version 0.5.1.1
 - cufft: update to version 0.1.0.3
 - data-memocombinators: update to version 0.5.1
 - data-pprint: update to version 0.2.3
 - DAV: update to version 0.6
 - dbus: update to version 0.10.5
 - diagrams-cairo: update to version 1.0
 - diagrams-contrib: update to version 1.0.0.1
 - diagrams-core: update to version 1.0.0.1
 - diagrams-lib: update to version 1.0.0.1
 - diagrams-svg: update to version 1.0
 - diagrams: update to version 1.0
 - digestive-functors-heist: update to version 0.8.4.0
 - digestive-functors-snap: update to version 0.6.0.1
 - digestive-functors: update to version 0.6.2.0
 - dimensional-tf: update to version 0.2.1
 - dimensional: update to version 0.12.2
 - dlist: update to version 0.6.0.1
 - doctest: update to version 0.9.10
 - DRBG: add version 0.5.1
 - dual-tree: update to version 0.2.0.1
 - either: update to version 4.1
 - Elm: update to version 0.10.1
 - errors: update to version 1.4.4
 - fast-logger: update to version 2.1.0
 - fclabels: update to version 2.0.1
 - file-embed: update to version 0.0.6
 - force-layout: update to version 0.2.0.1
 - free: update to version 4.2
 - ghc-head: update to version 7.7.20131202
 - ghc-mod: update to version 3.1.4
 - ghc-syb-utils: update to version 0.2.1.2
 - ghc-vis: update to version 0.7.2.1
 - gio: update to version 0.12.5.0
 - git-annex: update to version 5.20131221
 - github-backup: update to version 1.20131203
 - github: update to version 0.7.3
 - glade: update to version 0.12.5.0
 - glib: update to version 0.12.5.0
 - Glob: update to version 0.7.3
 - graphviz: update to version 2999.16.0.0
 - gtk2hs-buildtools: update to version 0.12.5.1
 - gtksourceview2: update to version 0.12.5.0
 - gtk: update to version 0.12.5.0
 - hakyll: update to version 4.4.2.0
 - hamlet: update to version 1.1.7.6
 - HaRe: update to version 0.7.0.9
 - haskeline: update to version 0.7.1.1
 - haskell-src-meta: update to version 0.6.0.5
 - haskell-src: update to version 1.0.1.5
 - HDBC-odbc: update to version 2.3.1.1
 - heist: update to version 0.13.0.3
 - hexpat: update to version 0.20.5
 - HFuse: update to version 0.2.4.1
 - highlighting-kate: update to version 0.5.5.1
 - hjsmin: update to version 0.1.4.4
 - hledger-irr: update to version 0.1.1.3
 - hledger-lib: update to version 0.22
 - hledger: update to version 0.22
 - hledger-web: update to version 0.22
 - hlint: update to version 1.8.55
 - HList: update to version 0.3.0.1
 - hmatrix: update to version 0.15.2.0
 - hoogle: update to version 4.2.26
 - hslua: update to version 0.3.9
 - HsOpenSSL: update to version 0.10.4
 - hspec-expectations: update to version 0.5.0.1
 - hspec-meta: update to version 1.8.1
 - hspec: update to version 1.8.1.1
 - HsSyck: update to version 0.51
 - hsyslog: update to version 1.6
 - html-conduit: update to version 1.1.0.1
 - http-conduit: update to version 2.0.0.3
 - http-reverse-proxy: update to version 0.3.0
 - http-types: update to version 0.8.3
 - hxt: update to version 9.3.1.2
 - idris: update to version 0.9.10.1
 - intervals: update to version 0.4
 - JuicyPixels: update to version 3.1.2
 - keter: update to version 1.1.0.1
 - LambdaHack: update to version 0.2.10.6
 - language-c-quote: update to version 0.7.6
 - language-ecmascript: update to version 0.15.4
 - language-java: update to version 0.2.6
 - lens: update to version 3.10.1
 - lifted-base: update to version 0.2.1.1
 - linear: update to version 1.3.1.1
 - ListLike: update to version 4.0.2
 - mainland-pretty: update to version 0.2.7
 - markdown-unlit: update to version 0.2.0.1
 - mersenne-random-pure64: update to version 0.2.0.4
 - mime-mail: update to version 0.4.3
 - minimorph: update to version 0.1.5.0
 - MonadCatchIO-transformers: update to version 0.3.1.0
 - monad-logger: update to version 0.3.4.0
 - mongoDB: update to version 1.4.4
 - monoid-extras: update to version 0.3.2.4
 - mono-traversable: update to version 0.2.0.0
 - netwire: update to version 5.0.0
 - OpenAL: update to version 1.6.0.0
 - pandoc-citeproc: update to version 0.2
 - pandoc: update to version 1.12.2.1
 - pango: update to version 0.12.5.0
 - parseargs: update to version 0.1.5.2
 - path-pieces: update to version 0.1.3.1
 - pem: update to version 0.2.1
 - persistent-postgresql: update to version 1.3.0
 - persistent-sqlite: update to version 1.3.0
 - persistent-template: update to version 1.3.0
 - persistent: update to version 1.3.0
 - pipes-bytestring: update to version 1.0.2
 - pipes-network: update to version 0.6.1
 - pipes-parse: update to version 2.0.2
 - pipes-safe: update to version 2.0.1
 - pipes: update to version 4.0.1
 - postgresql-libpq: update to version 0.8.2.6
 - postgresql-simple: update to version 0.4.0.1
 - profunctors: update to version 4.0.2
 - reducers: update to version 3.10.1.1
 - regex-tdfa: update to version 1.1.8
 - resourcet: update to version 0.4.10
 - RSA: update to version 2.0
 - scotty: update to version 0.6.2
 - semigroups: update to version 0.12.1
 - shakespeare-css: update to version 1.0.6.6
 - shakespeare-i18n: update to version 1.0.0.5
 - shakespeare-text: update to version 1.0.0.10
 - shakespeare: update to version 1.2.0.4
 - shake: update to version 0.10.10
 - shelly: update to version 1.3.2
 - smallcheck: update to version 1.1.1
 - snap-core: update to version 0.9.5.0
 - snaplet-acid-state: update to version 0.2.6
 - snap: update to version 0.13.1.2
 - statistics: update to version 0.10.5.2
 - stm-conduit: update to version 2.1.4
 - stringsearch: update to version 0.3.6.5
 - stylish-haskell: update to version 0.5.9.0
 - svgcairo: update to version 0.12.5.0
 - system-posix-redirect: update to version 1.1.0.1
 - tabular: update to version 0.2.2.5
 - tasty-hunit: update to version 0.4.1
 - tasty-smallcheck: update to version 0.2
 - tasty: update to version 0.7
 - temporary: update to version 1.2.0.1
 - terminfo: update to version 0.3.2.6
 - texmath: update to version 0.6.5.2
 - text-icu: update to version 0.6.3.7
 - th-lift: update to version 0.6
 - th-orphans: update to version 0.8
 - threads: update to version 0.5.0.3
 - thyme: update to version 0.3.1.0
 - timeplot: update to version 1.0.23
 - unix-process-conduit: update to version 0.2.2.2
 - unix-time: update to version 0.2.2
 - uuagc: update to version 0.9.50.2
 - uu-parsinglib: update to version 2.8.1.1
 - vault: update to version 0.3.0.3
 - vector-algorithms: update to version 0.6.0.1
 - vty-ui: update to version 1.6.1
 - wai-app-static: update to version 2.0.0.2
 - wai-extra: update to version 2.0.1.2
 - wai-handler-launch: update to version 2.0.0
 - wai-logger: update to version 2.1.0
 - wai-test: update to version 2.0.0.1
 - wai: update to version 2.0.0
 - warp-tls: update to version 2.0.0.1
 - warp: update to version 2.0.1
 - wl-pprint-extras: update to version 3.5
 - wl-pprint-terminfo: update to version 3.7
 - wl-pprint-text: update to version 1.1.0.1
 - wxc: update to version 0.90.0.4
 - xdot: update to version 0.2.4.2
 - xml-conduit: update to version 1.1.0.9
 - xml-hamlet: update to version 0.4.0.6
 - xmobar: update to version 0.19
 - xss-sanitize: update to version 0.3.4.1
 - yaml: update to version 0.8.5.2
 - yesod-auth: update to version 1.2.5.2
 - yesod-bin: update to version 1.2.5.5
 - yesod-core: update to version 1.2.6.4
 - yesod-form: update to version 1.3.4.2
 - yesod-persistent: update to version 1.2.2.1
 - yesod-platform: update to version 1.2.5.3
 - yesod-routes: update to version 1.2.0.5
 - yesod-static: update to version 1.2.2.1
 - yesod: update to version 1.2.4
 - zeromq3-haskell: update to version 0.5.1
 - zip-archive: update to version 0.2
2013-12-31 12:28:50 +01:00
Rob Vermaas
d3e42ed169 Oraclejdk7: Fix hash and extracted path for jce_policy.zip. Add extra rpath. 2013-12-30 12:39:19 +01:00
Peter Simons
0c3d910cd0 apache-httpd-2.4: enable building the 'event'-based mpm worker
Adding "LoadModule mpm_event_module modules/mod_mpm_event.so" to httpd.conf
enables that worker instead of the default choice.
2013-12-29 12:53:22 +01:00
Eelco Dolstra
18ad5c3d74 initrd: Add the atkbd kernel module
Since Linux 3.4.74, atkbd gets built as a loadable module.  (Commit
315a93764c1fa8bdbe9ab867d896a0d9478b54ed, "Input: allow deselecting
serio drivers even without CONFIG_EXPERT".)  So because of this we
lost the keyboard in the initrd, which is annoying for LUKS users.

Issue #1405.
2013-12-26 11:54:22 +01:00
Shea Levy
60b046784e node-packages.nix: Use more complete patching function from master
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-24 18:43:43 -05:00
Shea Levy
4b02ef4a7f Another npm2nix bugfix
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-24 18:43:07 -05:00
Shea Levy
a0fe40fbe8 npm2nix bugfix update
Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-24 18:19:27 -05:00
Rob Vermaas
b054b8f025 Build x11vnc on linux 2013-12-24 10:49:06 +01:00
Eelco Dolstra
a133479f93 Only run systemd-inhibit for local X11 sessions 2013-12-24 10:38:43 +01:00
Eelco Dolstra
c39dd85984 Update the X11 terminal server module for systemd
Yay, we no longer need inetd!
2013-12-24 10:27:09 +01:00
Eelco Dolstra
f7e3a46478 mediawiki: Update to 1.20.8
CVE-2013-4567, CVE-2013-4568

(cherry picked from commit f5844f98ac)
2013-12-20 14:49:05 +01:00
Eelco Dolstra
3841ada865 Revert "Cache::Memory: Disable tests"
This reverts commit 2448d65cc9.

Applied to the wrong branch...
2013-12-20 14:45:40 +01:00
Eelco Dolstra
6334ee738d Revert "ncurses: Remove version 5.4"
This reverts commit 064aabe995.

Applied to the wrong branch...
2013-12-20 14:45:28 +01:00
Eelco Dolstra
2448d65cc9 Cache::Memory: Disable tests
These can time out under load.

http://hydra.nixos.org/build/7214262
2013-12-20 11:15:51 +01:00
Eelco Dolstra
064aabe995 ncurses: Remove version 5.4
It's not used anywhere, and doesn't build:

http://hydra.nixos.org/build/7204910
2013-12-20 11:14:15 +01:00
Domen Kožar
9c7c51c193 curl: 7.30.0 -> 7.33.0 (CVE-2013-4545)
(cherry picked from commit f770739290)
2013-12-19 16:52:39 +01:00
Nixpkgs Monitor
9a0a6892e3 tomcat6: update from 6.0.32 to 6.0.37, potentially fixes CVE-2012-0022, CVE-2012-2733, CVE-2012-3544, CVE-2012-3546, CVE-2012-4431, CVE-2012-4534, CVE-2012-5568, CVE-2012-5885, CVE-2012-5886, CVE-2012-5887, CVE-2013-2067
(cherry picked from commit e72352761c)
2013-12-19 16:51:30 +01:00
Nixpkgs Monitor
104f0fc28a python33Packages.pycrypto: update from 2.6 to 2.6.1, potentially fixes CVE-2013-1445
(cherry picked from commit e3f69c5dcc)
2013-12-19 16:50:11 +01:00
Nixpkgs Monitor
b577f6eef6 pyopenssl: update from 0.13 to 0.13.1, potentially fixes CVE-2013-4314
(cherry picked from commit a830c0eb9d)
2013-12-19 16:50:05 +01:00
Nixpkgs Monitor
bf13893ac5 chrony: update from 1.27 to 1.29, potentially fixes CVE-2012-4502, CVE-2012-4503
(cherry picked from commit 1db5dd4ffb)
2013-12-19 16:49:35 +01:00
Nixpkgs Monitor
e21fad62bc perlPackages.HTTPBody: update from 1.17 to 1.19, potentially fixes CVE-2013-4407
(cherry picked from commit 8264cb98ae)
2013-12-19 16:48:52 +01:00
Vladimír Čunát
87936b9e16 libxml2: bump 2.9.0 -> 2.9.1 (CVE-2013-1969)
And drop patch that has been merged upstream.
Close #1199.
Hack around python install problems (the rest is from bjornfor).

(cherry picked from commit 85d21a6963)
2013-12-19 16:47:14 +01:00
Bjørn Forsman
793197521f samba: bump 3.6.18 -> 3.6.20 (security fixes)
3.6.20 is a security release in order to address CVE-2013-4475 (ACLs are
not checked on opening an alternate data stream on a file or directory)
and CVE-2013-4476 (Private key in key.pem world readable).

And 3.6.19 had some bug fixes:
http://www.samba.org/samba/history/samba-3.6.19.html

(cherry picked from commit 6c2ee56e4b)
2013-12-19 16:46:44 +01:00
Nixpkgs Monitor
86cd523a5e rsyslog: update from 7.2.6 to 7.2.7, potentially fixes CVE-2013-4758
(cherry picked from commit 5677898e9d)
2013-12-19 16:45:56 +01:00
Nixpkgs Monitor
8c3662c82f libzip: update from 0.10 to 0.11.1, potentially fixes CVE-2012-1162, CVE-2012-1163
(cherry picked from commit dbfeebeef7)
2013-12-19 16:45:14 +01:00
Nixpkgs Monitor
a5c92cb54c libgcrypt: update from 1.5.2 to 1.5.3, potentially fixes CVE-2013-4242
(cherry picked from commit 22840f8048)
2013-12-19 16:43:23 +01:00
Eelco Dolstra
596180ae23 php: Update to 5.4.23, 5.3.28
CVE-2013-4073, CVE-2013-6420

(cherry picked from commit a2b45034b3)
2013-12-19 16:41:44 +01:00
Nixpkgs Monitor
91e6c52485 subversionClient: update from 1.7.13 to 1.7.14, potentially fixes CVE-2013-4558
(cherry picked from commit ec83369639)
2013-12-19 16:41:21 +01:00
Eelco Dolstra
3b507dd041 linux: Fix hash
(cherry picked from commit 82f39bd19e)
2013-12-17 13:28:11 +01:00
Eelco Dolstra
fbea189ddd linux: Update to 3.4.74
(cherry picked from commit acac786868)
2013-12-16 14:48:42 +01:00
Eelco Dolstra
b7e344a63e fail2ban: Fix preStart action
Creating /run/fail2ban didn't work since it didn't have write
permission to /run.  Now it does.

Reported by Thomas Bereknyei.

(cherry picked from commit 14018c2de1)
2013-12-16 14:48:15 +01:00
Eelco Dolstra
2ddc85fa93 linux: Update to 3.4.73
(cherry picked from commit f74ca42ba6)
2013-12-16 14:48:15 +01:00
Shea Levy
3eea240a34 Simplify crossLists
(cherry picked from commit 3c5971692a)

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-12 14:02:35 -05:00
Shea Levy
a146503d61 Add function to call a function with a cross-product of lists of arguments
(cherry picked from commit a42508a8ba)

Signed-off-by: Shea Levy <shea@shealevy.com>

Conflicts:
	lib/lists.nix
2013-12-12 13:11:48 -05:00
Eelco Dolstra
ae679d44a1 Revert "nvidia: Update to version 331.20"
This reverts commit 42a2b93336.  It
causes Firefox to crash.
2013-12-11 14:24:15 +01:00
Nixpkgs Monitor
006a11d26e apacheHttpd_2_4: update from 2.4.6 to 2.4.7
(cherry picked from commit 6996067dcf)
2013-12-10 13:00:15 +01:00
Nixpkgs Monitor
b20e65ffcf apacheHttpd: update from 2.2.25 to 2.2.26
(cherry picked from commit e523fdfc47)
2013-12-10 12:54:38 +01:00
Shea Levy
f9c798b79d Unpacking jce requires zip
(cherry picked from commit ac21aa9a82)

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-09 13:26:08 -05:00
Shea Levy
30dc8bfe4f Add oracle jdk 7
(cherry picked from commit 088f472fe5)

Signed-off-by: Shea Levy <shea@shealevy.com>
2013-12-09 11:47:59 -05:00
Eelco Dolstra
b44ee4f862 postgresql: Fix shutdown
Postgres was taking a long time to shutdown.  This is because we were
sending SIGINT to all processes, apparently confusing the autovacuum
launcher.  Instead it should only be sent to the main process (which
takes care of shutting down the others).

The downside is that systemd will also send the final SIGKILL only to
the main process, so other processes in the cgroup may be left behind.
There should be an option for this...

(cherry picked from commit 7809134e29)
2013-12-05 14:27:44 -05:00
William A. Kennington III
42a2b93336 nvidia: Update to version 331.20
We no longer need the patches applied for the previous version so they
are removed.

(cherry picked from commit 0eeb78d74c)

Conflicts:
	pkgs/os-specific/linux/nvidia-x11/default.nix
2013-12-02 09:26:06 -05:00
Eelco Dolstra
9ade293be3 linux: Update to 3.4.71
(cherry picked from commit 3b94410d86)
2013-12-02 08:52:35 -05:00
Eelco Dolstra
041cd5ce38 cups: Allow users in the wheel group to do admin actions
(cherry picked from commit 2cb492a847)
2013-12-02 08:52:35 -05:00
Eelco Dolstra
f758aa18df postgresql: Fix the port option
Also clarify the description of the enableTCPIP option.

(cherry picked from commit c6529ac9eb)
2013-12-02 08:52:35 -05:00
Eelco Dolstra
ad14deacc9 linux: Update to 3.4.70
(cherry picked from commit 139c5b5069)
2013-11-26 11:50:40 +01:00
Peter Simons
9a45b1b284 Merge pull request #1186 from wizeman/flashplayer
flashplayer: Update to 11.2.202.310 (fixes 4 critical security vulnerabi...
2013-11-25 22:01:05 +01:00
Shea Levy
45219b910f nss: Bump
Signed-off-by: Shea Levy <shea@shealevy.com>
(cherry picked from commit 2909634cac)
2013-11-19 15:04:05 +01:00
Shea Levy
23d475c691 nspr: Bump to 4.10.2
Signed-off-by: Shea Levy <shea@shealevy.com>
(cherry picked from commit b09f8110db)

Conflicts:
	pkgs/development/interpreters/python/wrapper.nix
2013-11-19 15:03:26 +01:00
Eelco Dolstra
a87c3a09bc firefox: Update to 25.0.1
(cherry picked from commit 678bcc6d4d)
2013-11-19 15:00:57 +01:00
Eelco Dolstra
447fce7fd5 Fix broken Conflicts options
(cherry picked from commit f8a034172a)
2013-11-19 15:00:57 +01:00
Eelco Dolstra
a06891f096 git: Update to 1.8.4.3
(cherry picked from commit e597d102d8)
2013-11-19 15:00:57 +01:00
Eelco Dolstra
912f584e37 linux: Update to 3.4.69
(cherry picked from commit 45462d0bc479a970061eb763c57a704f48c24bf1)
2013-11-13 11:21:06 +01:00
Eelco Dolstra
3b0b5494fd php: Update to 5.4.21
(cherry picked from commit 3d6728a1227f6a2c846b868ede8ebe542826f95d)
2013-11-13 11:13:21 +01:00
Eelco Dolstra
7d7a668e92 mediawiki: Update to 1.20.7
(cherry picked from commit 81a9f72d7c4e95d79a928e856cbd2179485a1502)
2013-11-13 11:09:50 +01:00
Eelco Dolstra
843780fcbc Properly handle unit names with dashes in them
We ended up with files in /etc/systemd/system called
"bigx2ddata.mount.wants" rather than "big\x2ddata.mount.wants".

(cherry picked from commit 4cada34b7f)
2013-11-12 17:00:47 +01:00
Sander van der Burg
0cc4242375 Bump disnix to latest development version 2013-11-11 11:03:25 +01:00
Eelco Dolstra
be4e850c4d openssh: Security fix
CVE-2013-4548

(cherry picked from commit 52ad0eaca5)
2013-11-08 16:43:37 +01:00
Rob Vermaas
284772cb00 Adapt S3 ami creation script to new nixpkgs structure 2013-11-08 11:40:58 +00:00
Rob Vermaas
434c0ce40b Updating EC2 EBS HVM creation script.
* Use smaller instances to generate HVM images
* Use HVM base image that has 4 ephemeral disks in device mapping
* As grub is not on the base images anymore, install it first before copying parts of its contents
2013-11-08 11:37:38 +00:00
Rob Vermaas
b77a2cd2d2 Fix test deployment in EC2 creation script 2013-11-07 16:49:17 +01:00
Rob Vermaas
361eb3a5f5 Fix EC2 creation script for latest nixops 2013-11-07 14:42:44 +00:00
Rob Vermaas
c93f57ba1c Re-introduce mkStrict function in stable branch, as some packages might still be dependent on it (e.g. nixops). Added a warning that the function is obsolete. 2013-11-07 12:32:12 +01:00
Eelco Dolstra
6249f675fb screen: Only depend on PAM on Linux
(cherry picked from commit 25ca1c30e2)
2013-11-07 12:01:17 +01:00
Eelco Dolstra
18d6725ba7 linux: Update to 3.10.18
(cherry picked from commit 5098d53db1)
2013-11-07 12:01:17 +01:00
Eelco Dolstra
30abda84a0 linux: Update to 3.4.68
(cherry picked from commit 07ccfe6af8)
2013-11-07 12:01:17 +01:00
Eelco Dolstra
c53c80595c apache-httpd: Update to 2.4.6
(cherry picked from commit 798ce14839)
2013-11-07 12:01:17 +01:00
Eelco Dolstra
af0821c20a socate: Update to 1.7.2.2, 2.0.0-b6
CVE-2013-3571

(cherry picked from commit 59cad4dc07)
2013-11-07 12:01:17 +01:00
Eelco Dolstra
43627e3354 adobe-reader: Update to 9.5.5
(cherry picked from commit b232825c07)
2013-11-07 12:01:16 +01:00
Eelco Dolstra
472180240e venus.nix: Fix broken startAt option
(cherry picked from commit 658e830674259621ae4dcba25e26c618c27eb4e0)
2013-11-02 20:43:34 +01:00
Eelco Dolstra
a6cc1e4422 Include the NixOS version in the manual
In particular, this will make it clear what version of the manual is
shown at http://nixos.org/nixos/manual/.

(cherry picked from commit 9ef07d859b)
2013-11-01 16:50:01 +01:00
Eelco Dolstra
902d0e438d Print a reminder to users to set or disable the root password
(cherry picked from commit 20093751ec)
2013-11-01 16:50:01 +01:00
Eelco Dolstra
1668c35d33 Don't set an initial null root password for Amazon / VirtualBox images
A null password allows logging into local PAM services such as "login"
(agetty) and KDM.  That's not actually a security problem for EC2
machines, since they do not have "local" logins; for VirtualBox
machines, if you local access, you can do anything anyway.  But it's
better to be on the safe side and disable password-based logins for
root.

(cherry picked from commit 4ba7dfde5b)
2013-11-01 16:50:01 +01:00
Eelco Dolstra
6bbe59e09b Mark the value for nixpkgs.system as a default
(cherry picked from commit 9668294eeb)
2013-11-01 16:50:01 +01:00
Eelco Dolstra
a6474f9022 Loosen the type of SSH key files
(cherry picked from commit 444a4fb793)
2013-11-01 16:50:01 +01:00
538 changed files with 7330 additions and 1988 deletions

View File

@@ -238,4 +238,6 @@ in rec {
in zipTwoLists' 0;
deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y;
crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f];
}

View File

@@ -12,7 +12,7 @@ rec {
and config: the nested set of all option values. */
evalModules = { modules, prefix ? [], args ? {}, check ? true }:
let
args' = args // result;
args' = args // { lib = import ./.; } // result;
closed = closeModules modules args';
# Note: the list of modules is reversed to maintain backward
# compatibility with the old module system. Not sure if this is
@@ -300,6 +300,8 @@ rec {
mkForce = mkOverride 50;
mkVMOverride = mkOverride 10; # used by nixos-rebuild build-vm
mkStrict = builtins.trace "`mkStrict' is obsolete; use `mkOverride 0' instead." (mkOverride 0);
mkFixStrictness = id; # obsolete, no-op
# FIXME: Add mkOrder back in. It's not currently used anywhere in

View File

@@ -1,45 +0,0 @@
#! /bin/sh -e
distDir=${NIX_TARBALLS_CACHE:-/tarballs}
url="$1"
file="$2"
if [ -z "$url" ]; then echo "syntax: $0 URL"; exit 0; fi
base="$(basename "$url")"
if [ -z "$base" ]; then echo "bad URL"; exit 1; fi
dstPath="$distDir/$base"
if [ -e "$dstPath" ]; then if [ -n "$VERBOSE" ]; then echo "$dstPath already exists"; fi; exit 0; fi
if [ -z "$file" ]; then
echo "downloading $url to $dstPath"
if [ -n "$DRY_RUN" ]; then exit 0; fi
declare -a res
if ! res=($(PRINT_PATH=1 nix-prefetch-url "$url")); then
exit
fi
storePath=${res[1]}
else
storePath="$file"
fi
cp $storePath "$dstPath.tmp.$$"
mv -f "$dstPath.tmp.$$" "$dstPath"
echo "hashing $dstPath"
md5=$(nix-hash --flat --type md5 "$dstPath")
ln -sfn "../$base" $distDir/md5/$md5
sha1=$(nix-hash --flat --type sha1 "$dstPath")
ln -sfn "../$base" $distDir/sha1/$sha1
sha256=$(nix-hash --flat --type sha256 "$dstPath")
ln -sfn "../$base" $distDir/sha256/$sha256
ln -sfn "../$base" $distDir/sha256/$(nix-hash --type sha256 --to-base32 "$sha256")

View File

@@ -0,0 +1,95 @@
#! /run/current-system/sw/bin/perl -w
use strict;
use XML::Simple;
use File::Basename;
use File::Path;
use File::Copy 'cp';
use IPC::Open2;
use Nix::Store;
my $myDir = dirname($0);
my $tarballsCache = $ENV{'NIX_TARBALLS_CACHE'} // "/tarballs";
my $xml = `nix-instantiate --eval-only --xml --strict '<nixpkgs/maintainers/scripts/find-tarballs.nix>'`;
die "$0: evaluation failed\n" if $? != 0;
my $data = XMLin($xml) or die;
mkpath($tarballsCache);
mkpath("$tarballsCache/md5");
mkpath("$tarballsCache/sha1");
mkpath("$tarballsCache/sha256");
foreach my $file (@{$data->{list}->{attrs}}) {
my $url = $file->{attr}->{url}->{string}->{value};
my $algo = $file->{attr}->{type}->{string}->{value};
my $hash = $file->{attr}->{hash}->{string}->{value};
if ($url !~ /^http:/ && $url !~ /^https:/ && $url !~ /^ftp:/ && $url !~ /^mirror:/) {
print STDERR "skipping $url (unsupported scheme)\n";
next;
}
$url =~ /([^\/]+)$/;
my $fn = $1;
if (!defined $fn) {
print STDERR "skipping $url (no file name)\n";
next;
}
if ($fn =~ /[&?=%]/ || $fn =~ /^\./) {
print STDERR "skipping $url (bad character in file name)\n";
next;
}
if ($fn !~ /[a-zA-Z]/) {
print STDERR "skipping $url (no letter in file name)\n";
next;
}
if ($fn !~ /[0-9]/) {
print STDERR "skipping $url (no digit in file name)\n";
next;
}
if ($fn !~ /[-_\.]/) {
print STDERR "skipping $url (no dash/dot/underscore in file name)\n";
next;
}
my $dstPath = "$tarballsCache/$fn";
next if -e $dstPath;
print "downloading $url to $dstPath...\n";
next if $ENV{DRY_RUN};
$ENV{QUIET} = 1;
$ENV{PRINT_PATH} = 1;
my $fh;
my $pid = open($fh, "-|", "nix-prefetch-url", "--type", $algo, $url, $hash) or die;
waitpid($pid, 0) or die;
if ($? != 0) {
print STDERR "failed to fetch $url: $?\n";
last if $? >> 8 == 255;
next;
}
<$fh>; my $storePath = <$fh>; chomp $storePath;
die unless -e $storePath;
cp($storePath, $dstPath) or die;
my $md5 = hashFile("md5", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/md5/$md5");
my $sha1 = hashFile("sha1", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/sha1/$sha1");
my $sha256 = hashFile("sha256", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/sha256/$sha256");
}

View File

@@ -1,27 +0,0 @@
#! /bin/sh -e
urls=$(nix-instantiate --eval-only --xml --strict '<nixpkgs/maintainers/scripts/eval-release.nix>' \
| grep -A2 'name="urls"' \
| grep '<string value=' \
| sed 's/.*"\(.*\)".*/\1/' \
| sort | uniq)
for url in $urls; do
if echo "$url" | grep -q -E "www.cs.uu.nl|nixos.org|.stratego-language.org|java.sun.com|ut2004|linuxq3a|RealPlayer|Adbe|belastingdienst|microsoft|armijn/.nix|sun.com|archive.eclipse.org"; then continue; fi
# Check the URL scheme.
if ! echo "$url" | grep -q -E "^[a-z]+://"; then echo "skipping $url (no URL scheme)"; continue; fi
# Check the basename. It should include something resembling a version.
base="$(basename "$url")"
#if ! echo "$base" | grep -q -E "[-_].*[0-9].*"; then echo "skipping $url (no version)"; continue; fi
if ! echo "$base" | grep -q -E "[a-zA-Z]"; then echo "skipping $url (no letter in name)"; continue; fi
if ! echo "$base" | grep -q -E "[0-9]"; then echo "skipping $url (no digit in name)"; continue; fi
if ! echo "$base" | grep -q -E "[-_\.]"; then echo "skipping $url (no dot/underscore in name)"; continue; fi
if echo "$base" | grep -q -E "[&?=%]"; then echo "skipping $url (bad character in name)"; continue; fi
if [ "${base:0:1}" = "." ]; then echo "skipping $url (starts with a dot)"; continue; fi
$(dirname $0)/copy-tarball.sh "$url"
done
echo DONE

View File

@@ -0,0 +1,45 @@
# This expression returns a list of all fetchurl calls used by all
# packages reachable from release.nix.
with import ../.. { };
with lib;
let
root = removeAttrs (import ../../pkgs/top-level/release.nix { }) [ "tarball" "unstable" ];
uniqueUrls = map (x: x.file) (genericClosure {
startSet = map (file: { key = file.url; inherit file; }) urls;
operator = const [ ];
});
urls = map (drv: { url = head drv.urls; hash = drv.outputHash; type = drv.outputHashAlgo; }) fetchurlDependencies;
fetchurlDependencies = filter (drv: drv.outputHash or "" != "" && drv ? urls) dependencies;
dependencies = map (x: x.value) (genericClosure {
startSet = map keyDrv (derivationsIn' root);
operator = { key, value }: map keyDrv (immediateDependenciesOf value);
});
derivationsIn' = x:
if !canEval x then []
else if isDerivation x then optional (canEval x.drvPath) x
else if isList x then concatLists (map derivationsIn' x)
else if isAttrs x then concatLists (mapAttrsToList (n: v: derivationsIn' v) x)
else [ ];
keyDrv = drv: if canEval drv.drvPath then { key = drv.drvPath; value = drv; } else { };
immediateDependenciesOf = drv:
concatLists (mapAttrsToList (n: v: derivationsIn v) (removeAttrs drv ["meta" "passthru"]));
derivationsIn = x:
if !canEval x then []
else if isDerivation x then optional (canEval x.drvPath) x
else if isList x then concatLists (map derivationsIn x)
else [ ];
canEval = val: (builtins.tryEval val).success;
in uniqueUrls

View File

@@ -1235,7 +1235,7 @@ with other kernel modules.</para>
<para>On 64-bit systems, if you want full acceleration for 32-bit
programs such as Wine, you should also set the following:
<programlisting>
service.xserver.driSupport32Bit = true;
services.xserver.driSupport32Bit = true;
</programlisting>
</para>

View File

@@ -1,6 +1,4 @@
{ pkgs, options
, revision ? "master"
}:
{ pkgs, options, version, revision }:
with pkgs.lib;
@@ -60,6 +58,7 @@ in rec {
buildCommand = ''
ln -s $sources/*.xml . # */
ln -s ${optionsDocBook} options-db.xml
echo "${version}" > version
# Check the validity of the manual sources.
xmllint --noout --nonet --xinclude --noxincludenode \

View File

@@ -5,6 +5,7 @@
<info>
<title>NixOS Manual</title>
<subtitle>Version <xi:include href="version" parse="text" /></subtitle>
<author>
<personname>

View File

@@ -0,0 +1,5 @@
{ modulesPath, ...}:
{
imports = [ "${modulesPath}/virtualisation/amazon-config.nix" ];
services.journald.rateLimitBurst = 0;
}

View File

@@ -8,15 +8,17 @@ import nixops.util
from nixops import deployment
from boto.ec2.blockdevicemapping import BlockDeviceMapping, BlockDeviceType
import boto.ec2
from nixops.statefile import StateFile, get_default_state_file
parser = argparse.ArgumentParser(description='Create an EBS-backed NixOS AMI')
parser.add_argument('--region', dest='region', required=True, help='EC2 region to create the image in')
parser.add_argument('--channel', dest='channel', default="13.10", help='Channel to use')
parser.add_argument('--keep', dest='keep', action='store_true', help='Keep NixOps machine after use')
parser.add_argument('--hvm', dest='hvm', action='store_true', help='Create HVM image')
parser.add_argument('--key', dest='key_name', action='store_true', help='Keypair used for HVM instance creation', default="rob")
args = parser.parse_args()
instance_type = "cc1.4xlarge" if args.hvm else "m1.small"
instance_type = "m3.xlarge" if args.hvm else "m1.small"
ebs_size = 8 if args.hvm else 20
@@ -37,11 +39,11 @@ f.write('''{{
'''.format(args.region, ebs_size))
f.close()
db = deployment.open_database(deployment.get_default_state_file())
db = StateFile(get_default_state_file())
try:
depl = deployment.open_deployment(db, "ebs-creator")
depl = db.open_deployment("ebs-creator")
except Exception:
depl = deployment.create_deployment(db)
depl = db.create_deployment()
depl.name = "ebs-creator"
depl.auto_response = "y"
depl.nix_exprs = [os.path.abspath("./ebs-creator.nix"), os.path.abspath("./ebs-creator-config.nix")]
@@ -64,7 +66,7 @@ m.run_command("mkdir -p /mnt")
m.run_command("mount {0} /mnt".format(device))
m.run_command("touch /mnt/.ebs")
m.run_command("mkdir -p /mnt/etc/nixos")
m.run_command("nix-channel --add http://nixos.org/channels/nixos-unstable")
m.run_command("nix-channel --add http://nixos.org/channels/nixos-{} nixos".format(args.channel))
m.run_command("nix-channel --update")
m.run_command("nixos-rebuild switch")
version = m.run_command("nixos-version", capture_stdout=True).replace('"', '').rstrip()
@@ -72,7 +74,8 @@ print >> sys.stderr, "NixOS version is {0}".format(version)
m.upload_file("./amazon-base-config.nix", "/mnt/etc/nixos/configuration.nix")
m.run_command("nixos-install")
if args.hvm:
m.run_command('cp /mnt/nix/store/*-grub-0.97*/lib/grub/i386-pc/* /mnt/boot/grub')
m.run_command('nix-env -iA nixos.pkgs.grub')
m.run_command('cp /nix/store/*-grub-0.97*/lib/grub/i386-pc/* /mnt/boot/grub')
m.run_command('sed -i "s|hd0|hd0,0|" /mnt/boot/grub/menu.lst')
m.run_command('echo "(hd1) /dev/xvdg" > device.map')
m.run_command('echo -e "root (hd1,0)\nsetup (hd1)" | grub --device-map=device.map --batch')
@@ -98,7 +101,7 @@ def check():
m.connect()
volume = m._conn.get_all_volumes([], filters={'attachment.instance-id': m.resource_id, 'attachment.device': "/dev/sdg"})[0]
if args.hvm:
instance = m._conn.run_instances( image_id="ami-6a9e4503"
instance = m._conn.run_instances( image_id="ami-5f491f36"
, instance_type=instance_type
, key_name=args.key_name
, placement=m.zone
@@ -185,7 +188,7 @@ f.write(
'''.format(args.region, ami_id, instance_type))
f.close()
test_depl = deployment.create_deployment(db)
test_depl = db.create_deployment()
test_depl.auto_response = "y"
test_depl.name = "ebs-creator-test"
test_depl.nix_exprs = [os.path.abspath("./ebs-test.nix")]

View File

@@ -1,9 +1,8 @@
#! /bin/sh -e
nixos=$(nix-instantiate --find-file nixos)
export NIXOS_CONFIG=$(dirname $(readlink -f $0))/amazon-base-config.nix
version=$(nix-instantiate --eval-only '<nixos>' -A config.system.nixosVersion | sed s/'"'//g)
version=$(nix-instantiate --eval-only '<nixpkgs/nixos>' -A config.system.nixosVersion | sed s/'"'//g)
echo "NixOS version is $version"
buildAndUploadFor() {
@@ -11,13 +10,13 @@ buildAndUploadFor() {
arch="$2"
echo "building $system image..."
nix-build '<nixos>' \
nix-build '<nixpkgs/nixos>' \
-A config.system.build.amazonImage --argstr system "$system" -o ec2-ami
ec2-bundle-image -i ./ec2-ami/nixos.img --user "$AWS_ACCOUNT" --arch "$arch" \
-c "$EC2_CERT" -k "$EC2_PRIVATE_KEY"
for region in eu-west-1 us-east-1 us-west-1 us-west-2; do
for region in eu-west-1; do
echo "uploading $system image for $region..."
name=nixos-$version-$arch-s3

View File

@@ -0,0 +1,14 @@
#! /bin/sh -e
export NIX_PATH=nixpkgs=../../../..
export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/google-compute-image.nix
export TIMESTAMP=$(date +%Y%m%d%H%M)
nix-build '<nixpkgs/nixos>' \
-A config.system.build.googleComputeImage --argstr system x86_64-linux -o gce --option extra-binary-caches http://hydra.nixos.org -j 10
img=$(echo gce/*.tar.gz)
if ! gsutil ls gs://nixos/$(basename $img); then
gsutil cp $img gs://nixos/$(basename $img)
fi
gcutil addimage $(basename $img .raw.tar.gz | sed 's|\.|-|' | sed 's|_|-|') gs://nixos/$(basename $img)

View File

@@ -188,6 +188,20 @@ in
options = [ groupOpts ];
};
security.initialRootPassword = mkOption {
type = types.str;
default = "";
example = "!";
description = ''
The (hashed) password for the root account set on initial
installation. The empty string denotes that root can login
locally without a password (but not via remote services such
as SSH, or indirectly via <command>su</command> or
<command>sudo</command>). The string <literal>!</literal>
prevents root from logging in using a password.
'';
};
};
@@ -240,7 +254,23 @@ in
# Can't use useradd, since it complains that it doesn't know us
# (bootstrap problem!).
echo "root:x:0:0:System administrator:$rootHome:${config.users.defaultUserShell}" >> /etc/passwd
echo "root::::::::" >> /etc/shadow
echo "root:${config.security.initialRootPassword}:::::::" >> /etc/shadow
fi
'';
# Print a reminder for users to set a root password.
environment.interactiveShellInit =
''
if [ "$UID" = 0 ]; then
read _l < /etc/shadow
if [ "''${_l:0:6}" = root:: ]; then
cat >&2 <<EOF
Warning: Your root account has a null password, allowing local users
to login as root. Please set a non-null password using \`passwd', or
disable password-based root logins using \`passwd -l'.
EOF
fi
unset _l
fi
'';

View File

@@ -96,9 +96,9 @@ my $videoDriver;
sub pciCheck {
my $path = shift;
my $vendor = read_file "$path/vendor";
my $device = read_file "$path/device";
my $class = read_file "$path/class";
my $vendor = read_file "$path/vendor"; chomp $vendor;
my $device = read_file "$path/device"; chomp $device;
my $class = read_file "$path/class"; chomp $class;
my $module;
if (-e "$path/driver/module") {
@@ -130,6 +130,7 @@ sub pciCheck {
# broadcom STA driver (wl.ko)
# list taken from http://www.broadcom.com/docs/linux_sta/README.txt
# FIXME: still needed?
if ($vendor eq "0x14e4" &&
($device eq "0x4311" || $device eq "0x4312" || $device eq "0x4313" ||
$device eq "0x4315" || $device eq "0x4327" || $device eq "0x4328" ||
@@ -156,6 +157,7 @@ sub pciCheck {
# Assume that all NVIDIA cards are supported by the NVIDIA driver.
# There may be exceptions (e.g. old cards).
# FIXME: do we want to enable an unfree driver here?
$videoDriver = "nvidia" if $vendor eq "0x10de" && $class =~ /^0x03/;
}
@@ -170,9 +172,9 @@ push @attrs, "services.xserver.videoDrivers = [ \"$videoDriver\" ];" if $videoDr
sub usbCheck {
my $path = shift;
my $class = read_file "$path/bInterfaceClass";
my $subclass = read_file "$path/bInterfaceSubClass";
my $protocol = read_file "$path/bInterfaceProtocol";
my $class = read_file "$path/bInterfaceClass"; chomp $class;
my $subclass = read_file "$path/bInterfaceSubClass"; chomp $subclass;
my $protocol = read_file "$path/bInterfaceProtocol"; chomp $protocol;
my $module;
if (-e "$path/driver/module") {

View File

@@ -72,6 +72,6 @@ in
};
config = {
nixpkgs.system = pkgs.stdenv.system;
nixpkgs.system = mkDefault pkgs.stdenv.system;
};
}

View File

@@ -40,7 +40,7 @@ in
};
dates = mkOption {
default = "*:0,15,30,45";
default = "*:0/15";
type = types.string;
description = ''
Specification (in the format described by
@@ -167,7 +167,7 @@ in
serviceConfig.User = "${cfg.user}";
serviceConfig.Group = "${cfg.group}";
environment.OPENSSL_X509_CERT_FILE = "/etc/ssl/certs/ca-bundle.crt";
startOn = cfg.dates;
startAt = cfg.dates;
};
};

View File

@@ -30,8 +30,8 @@ int main(int argc, char * * argv)
creating hard link `X' from some other location, along with a
false `X.real' file, to allow arbitrary programs from being
executed setuid. */
assert ((strncmp(self, wrapperDir, sizeof(wrapperDir)) == 0) &&
(self[strlen(wrapperDir)] == '/'));
assert ((strncmp(self, wrapperDir, strlen(wrapperDir)) == 0) &&
(self[strlen(wrapperDir)] == '/'));
/* Make *really* *really* sure that we were executed as `self',
and not, say, as some other setuid program. That is, our
@@ -42,12 +42,12 @@ int main(int argc, char * * argv)
assert (lstat(self, &st) != -1);
//printf("%d %d\n", st.st_uid, st.st_gid);
assert ((st.st_mode & S_ISUID) == 0 ||
(st.st_uid == geteuid()));
(st.st_uid == geteuid()));
assert ((st.st_mode & S_ISGID) == 0 ||
st.st_gid == getegid());
st.st_gid == getegid());
/* And, of course, we shouldn't be writable. */
assert (!(st.st_mode & (S_IWGRP | S_IWOTH)));
@@ -69,13 +69,13 @@ int main(int argc, char * * argv)
real[len] = 0;
close(fdSelf);
//printf("real = %s, len = %d\n", real, len);
execve(real, argv, environ);
fprintf(stderr, "%s: cannot run `%s': %s\n",
argv[0], real, strerror(errno));
exit(1);
}

View File

@@ -30,6 +30,7 @@ let
hba_file = '${pkgs.writeText "pg_hba.conf" cfg.authentication}'
ident_file = '${pkgs.writeText "pg_ident.conf" cfg.identMap}'
log_destination = 'stderr'
port = ${toString cfg.port}
${cfg.extraConfig}
'';
@@ -63,9 +64,9 @@ in
port = mkOption {
type = types.int;
default = "5432";
default = 5432;
description = ''
Port for PostgreSQL.
The port on which PostgreSQL listens.
'';
};
@@ -105,7 +106,9 @@ in
type = types.bool;
default = false;
description = ''
Whether to run PostgreSQL with -i flag to enable TCP/IP connections.
Whether PostgreSQL should listen on all network interfaces.
If disabled, the database can only be accessed via its Unix
domain socket or via TCP connections to localhost.
'';
};
@@ -203,6 +206,7 @@ in
# Shut down Postgres using SIGINT ("Fast Shutdown mode"). See
# http://www.postgresql.org/docs/current/static/server-shutdown.html
KillSignal = "SIGINT";
KillMode = "process"; # FIXME: this may cause processes to be left behind in the cgroup even after the final SIGKILL
# Give Postgres a decent amount of time to clean up after
# receiving systemd's SIGINT.

View File

@@ -23,6 +23,7 @@ let
manual = import ../../../doc/manual {
inherit pkgs;
version = config.system.nixosVersion;
revision = config.system.nixosRevision;
options = eval.options;
};

View File

@@ -15,6 +15,9 @@ let
# chroot to ${stateDir}, we have to specify it as /ntp.drift.
driftfile /ntp.drift
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
${toString (map (server: "server " + server + " iburst\n") config.services.ntp.servers)}
'';

View File

@@ -39,7 +39,7 @@ let
};
keyFiles = mkOption {
type = types.listOf types.str;
type = types.listOf types.unspecified;
default = [];
description = ''
A list of files each containing one OpenSSH public key that should be
@@ -172,7 +172,7 @@ in
};
authorizedKeysFiles = mkOption {
type = types.listOf types.str;
type = types.listOf types.unspecified;
default = [];
description = "Files from with authorized keys are read.";
};

View File

@@ -149,7 +149,7 @@ in
''
LogLevel info
SystemGroup root
SystemGroup root wheel
Listen localhost:631
Listen /var/run/cups/cups.sock

View File

@@ -106,7 +106,7 @@ in
serviceConfig =
{ ExecStart = "${pkgs.fail2ban}/bin/fail2ban-server -f";
ReadOnlyDirectories = "/";
ReadWriteDirectories = "/run/fail2ban /var/tmp";
ReadWriteDirectories = "/run /var/tmp";
CapabilityBoundingSet = "CAP_DAC_READ_SEARCH CAP_NET_ADMIN CAP_NET_RAW";
};

View File

@@ -72,11 +72,11 @@ let
# Unpack Mediawiki and put the config file in its root directory.
mediawikiRoot = pkgs.stdenv.mkDerivation rec {
name= "mediawiki-1.20.5";
name= "mediawiki-1.20.8";
src = pkgs.fetchurl {
url = "http://download.wikimedia.org/mediawiki/1.20/${name}.tar.gz";
sha256 = "0ix6khrilfdncjqnh41xjs0bd49i1q0rywycjaixjfpwj6vjbqbl";
sha256 = "0yfmh5vnfbgpvicfqh7nh4hwdk4qbc6gfniv02vchkg5al0nn7ag";
};
skins = config.skins;

View File

@@ -17,27 +17,17 @@ let
#! ${pkgs.stdenv.shell}
export XKB_BINDIR=${pkgs.xorg.xkbcomp}/bin
export XORG_DRI_DRIVER_PATH=${pkgs.mesa}/lib/dri
exec ${pkgs.xorg.xorgserver}/bin/Xvfb "$@" -xkbdir "${pkgs.xkeyboard_config}/etc/X11/xkb"
exec ${pkgs.xorg.xorgserver}/bin/Xvfb "$@" -xkbdir ${pkgs.xkeyboard_config}/etc/X11/xkb
'';
# xinetd is insanely braindamaged in that it sends stderr to
# stdout. Thus requires just about any xinetd program to be
# wrapped to redirect its stderr. Sigh.
x11vncWrapper = pkgs.writeScriptBin "x11vnc-wrapper"
''
#! ${pkgs.stdenv.shell}
export PATH=${makeSearchPath "bin" [ xvfbWrapper pkgs.gawk pkgs.which pkgs.openssl pkgs.xorg.xauth pkgs.nettools pkgs.shadow pkgs.procps pkgs.utillinux pkgs.bash ]}:$PATH
export FD_GEOM=1024x786x24
exec ${pkgs.x11vnc}/bin/x11vnc -inetd -display WAIT:1024x786:cmd=FINDCREATEDISPLAY-Xvfb.xdmcp -unixpw -ssl SAVE 2> /var/log/x11vnc.log
'';
in
in
{
config = {
services.xserver.enable = true;
services.xserver.videoDrivers = [];
# Enable KDM. Any display manager will do as long as it supports XDMCP.
services.xserver.displayManager.kdm.enable = true;
@@ -52,13 +42,38 @@ in
Xaccess=${pkgs.writeText "Xaccess" "localhost"}
'';
services.xinetd.enable = true;
services.xinetd.services = singleton
{ name = "x11vnc";
port = 5900;
unlisted = true;
user = "root";
server = "${x11vncWrapper}/bin/x11vnc-wrapper";
networking.firewall.allowedTCPPorts = [ 5900 ];
systemd.sockets.terminal-server =
{ description = "Terminal Server Socket";
wantedBy = [ "sockets.target" ];
before = [ "multi-user.target" ];
socketConfig.Accept = true;
socketConfig.ListenStream = 5900;
};
systemd.services."terminal-server@" =
{ description = "Terminal Server";
path =
[ xvfbWrapper pkgs.gawk pkgs.which pkgs.openssl pkgs.xorg.xauth
pkgs.nettools pkgs.shadow pkgs.procps pkgs.utillinux pkgs.bash
];
environment.FD_GEOM = "1024x786x24";
environment.FD_XDMCP_IF = "127.0.0.1";
#environment.FIND_DISPLAY_OUTPUT = "/tmp/foo"; # to debug the "find display" script
serviceConfig =
{ StandardInput = "socket";
StandardOutput = "socket";
StandardError = "journal";
ExecStart = "@${pkgs.x11vnc}/bin/x11vnc x11vnc -inetd -display WAIT:1024x786:cmd=FINDCREATEDISPLAY-Xvfb.xdmcp -unixpw -ssl SAVE";
# Don't kill the X server when the user quits the VNC
# connection. FIXME: the X server should run in a
# separate systemd session.
KillMode = "process";
};
};
};

View File

@@ -523,9 +523,9 @@ in
preStart =
''
rm -f /run/opengl-driver{,-32}
${optionalString (!cfg.driSupport32Bit) "ln -sf opengl-driver /run/opengl-driver-32"}
${optionalString (pkgs.stdenv.isi686) "ln -sf opengl-driver /run/opengl-driver-32"}
${# !!! The OpenGL driver depends on what's detected at runtime.
${#TODO: The OpenGL driver should depend on what's detected at runtime.
if elem "nvidia" driverNames then
''
ln -sf ${kernelPackages.nvidia_x11} /run/opengl-driver

View File

@@ -62,7 +62,7 @@ $SIG{PIPE} = "IGNORE";
sub getActiveUnits {
# FIXME: use D-Bus or whatever to query this, since parsing the
# output of list-units is likely to break.
my $lines = `@systemd@/bin/systemctl list-units --full`;
my $lines = `LANG= systemctl list-units --full --no-legend`;
my $res = {};
foreach my $line (split '\n', $lines) {
chomp $line;
@@ -123,7 +123,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
$baseName =~ s/\.[a-z]*$//;
if (-e $prevUnitFile && ($state->{state} eq "active" || $state->{state} eq "activating")) {
if (! -e $newUnitFile) {
if (! -e $newUnitFile || abs_path($newUnitFile) eq "/dev/null") {
push @unitsToStop, $unit;
}
@@ -277,7 +277,7 @@ foreach my $device (keys %$prevSwaps) {
if (scalar @unitsToStop > 0) {
@unitsToStop = unique(@unitsToStop);
print STDERR "stopping the following units: ", join(", ", sort(@unitsToStop)), "\n";
system("@systemd@/bin/systemctl", "stop", "--", @unitsToStop); # FIXME: ignore errors?
system("systemctl", "stop", "--", @unitsToStop); # FIXME: ignore errors?
}
print STDERR "NOT restarting the following units: ", join(", ", sort(@unitsToSkip)), "\n"

View File

@@ -199,7 +199,7 @@ in
"unix"
# Misc. stuff.
"pcips2" "xtkbd"
"pcips2" "xtkbd" "atkbd"
# To wait for SCSI devices to appear.
"scsi_wait_scan"
@@ -230,10 +230,8 @@ in
{ description = "Load Kernel Modules";
wantedBy = [ "sysinit.target" "multi-user.target" ];
before = [ "sysinit.target" "shutdown.target" ];
unitConfig =
{ DefaultDependencies = "no";
Conflicts = "shutdown.target";
};
conflicts = [ "shutdown.target" ];
unitConfig.DefaultDependencies = "no";
serviceConfig =
{ Type = "oneshot";
RemainAfterExit = true;

View File

@@ -68,7 +68,10 @@ with pkgs.lib;
config = {
environment.etc = singleton
environment.etc = [
{ source = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
target = "modprobe.d/ubuntu.conf";
}
{ source = pkgs.writeText "modprobe.conf"
''
${flip concatMapStrings config.boot.blacklistedKernelModules (name: ''
@@ -77,26 +80,11 @@ with pkgs.lib;
${config.boot.extraModprobeConfig}
'';
target = "modprobe.d/nixos.conf";
};
}
];
environment.systemPackages = [ config.system.sbin.modprobe pkgs.kmod ];
boot.blacklistedKernelModules =
[ # This module is for debugging and generates gigantic amounts
# of log output, so it should never be loaded automatically.
"evbug"
# This module causes ALSA to occassionally select the wrong
# default sound device, and is little more than an annoyance
# on modern machines.
"snd_pcsp"
# The cirrusfb module prevents X11 from starting. FIXME:
# Ubuntu blacklists all framebuffer devices because they're
# "buggy" and cause suspend problems. Maybe we should too?
"cirrusfb"
];
system.activationScripts.modprobe =
''
# Allow the kernel to find our wrapped modprobe (which searches

View File

@@ -14,6 +14,18 @@ let
in if errors == [] then true
else builtins.trace (concatStringsSep "\n" errors) false;
unitOption = mkOptionType {
name = "systemd option";
merge = loc: defs:
let
defs' = filterOverrides defs;
defs'' = getValues defs';
in
if isList (head defs'')
then concatLists defs''
else mergeOneOption loc defs';
};
in rec {
unitOptions = {
@@ -37,7 +49,7 @@ in rec {
requires = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Start the specified units when this unit is started, and stop
this unit when the specified units are stopped or fail.
@@ -46,7 +58,7 @@ in rec {
wants = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Start the specified units when this unit is started.
'';
@@ -54,7 +66,7 @@ in rec {
after = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
If the specified units are started at the same time as
this unit, delay this unit until they have started.
@@ -63,7 +75,7 @@ in rec {
before = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
If the specified units are started at the same time as
this unit, delay them until this unit has started.
@@ -72,7 +84,7 @@ in rec {
bindsTo = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Like requires, but in addition, if the specified units
unexpectedly disappear, this unit will be stopped as well.
@@ -81,7 +93,7 @@ in rec {
partOf = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
If the specified units are stopped or restarted, then this
unit is stopped or restarted as well.
@@ -90,7 +102,7 @@ in rec {
conflicts = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
If the specified units are started, then this unit is stopped
and vice versa.
@@ -99,20 +111,20 @@ in rec {
requiredBy = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = "Units that require (i.e. depend on and need to go down with) this unit.";
};
wantedBy = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
description = "Units that want (i.e. depend on) this unit.";
};
unitConfig = mkOption {
default = {};
example = { RequiresMountsFor = "/data"; };
type = types.attrs;
type = types.attrsOf unitOption;
description = ''
Each attribute in this set specifies an option in the
<literal>[Unit]</literal> section of the unit. See
@@ -137,7 +149,7 @@ in rec {
environment = mkOption {
default = {};
type = types.attrs;
type = types.attrs; # FIXME
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
description = "Environment variables passed to the service's processes.";
};
@@ -159,7 +171,7 @@ in rec {
{ StartLimitInterval = 10;
RestartSec = 5;
};
type = types.addCheck types.attrs checkService;
type = types.addCheck (types.attrsOf unitOption) checkService;
description = ''
Each attribute in this set specifies an option in the
<literal>[Service]</literal> section of the unit. See
@@ -169,7 +181,7 @@ in rec {
};
script = mkOption {
type = types.str;
type = types.lines;
default = "";
description = "Shell commands executed as the service's main process.";
};
@@ -181,7 +193,7 @@ in rec {
};
preStart = mkOption {
type = types.string;
type = types.lines;
default = "";
description = ''
Shell commands executed before the service's main process
@@ -190,7 +202,7 @@ in rec {
};
postStart = mkOption {
type = types.string;
type = types.lines;
default = "";
description = ''
Shell commands executed after the service's main process
@@ -198,8 +210,16 @@ in rec {
'';
};
preStop = mkOption {
type = types.lines;
default = "";
description = ''
Shell commands executed to stop the service.
'';
};
postStop = mkOption {
type = types.string;
type = types.lines;
default = "";
description = ''
Shell commands executed after the service's main process
@@ -252,7 +272,7 @@ in rec {
listenStreams = mkOption {
default = [];
type = types.listOf types.string;
type = types.listOf types.str;
example = [ "0.0.0.0:993" "/run/my-socket" ];
description = ''
For each item in this list, a <literal>ListenStream</literal>
@@ -263,7 +283,7 @@ in rec {
socketConfig = mkOption {
default = {};
example = { ListenStream = "/run/my-socket"; };
type = types.attrs;
type = types.attrsOf unitOption;
description = ''
Each attribute in this set specifies an option in the
<literal>[Socket]</literal> section of the unit. See
@@ -280,7 +300,7 @@ in rec {
timerConfig = mkOption {
default = {};
example = { OnCalendar = "Sun 14:00:00"; Unit = "foo.service"; };
type = types.attrs;
type = types.attrsOf unitOption;
description = ''
Each attribute in this set specifies an option in the
<literal>[Timer]</literal> section of the unit. See
@@ -328,7 +348,7 @@ in rec {
mountConfig = mkOption {
default = {};
example = { DirectoryMode = "0775"; };
type = types.attrs;
type = types.attrsOf unitOption;
description = ''
Each attribute in this set specifies an option in the
<literal>[Mount]</literal> section of the unit. See
@@ -352,7 +372,7 @@ in rec {
automountConfig = mkOption {
default = {};
example = { DirectoryMode = "0775"; };
type = types.attrs;
type = types.attrsOf unitOption;
description = ''
Each attribute in this set specifies an option in the
<literal>[Automount]</literal> section of the unit. See

View File

@@ -11,14 +11,18 @@ let
systemd = cfg.package;
makeUnit = name: unit:
pkgs.runCommand "unit" { inherit (unit) text; preferLocalBuild = true; }
(if unit.enable then ''
mkdir -p $out
echo -n "$text" > $out/${name}
'' else ''
mkdir -p $out
ln -s /dev/null $out/${name}
'');
if unit.enable then
pkgs.runCommand "unit" { preferLocalBuild = true; inherit (unit) text; }
''
mkdir -p $out
echo -n "$text" > $out/${name}
''
else
pkgs.runCommand "unit" { preferLocalBuild = true; }
''
mkdir -p $out
ln -s /dev/null $out/${name}
'';
upstreamUnits =
[ # Targets.
@@ -160,16 +164,48 @@ let
};
serviceConfig = { name, config, ... }: {
config = {
# Default path for systemd services. Should be quite minimal.
path =
[ pkgs.coreutils
pkgs.findutils
pkgs.gnugrep
pkgs.gnused
systemd
];
};
config = mkMerge
[ { # Default path for systemd services. Should be quite minimal.
path =
[ pkgs.coreutils
pkgs.findutils
pkgs.gnugrep
pkgs.gnused
systemd
];
environment.PATH = config.path;
}
(mkIf (config.preStart != "")
{ serviceConfig.ExecStartPre = makeJobScript "${name}-pre-start" ''
#! ${pkgs.stdenv.shell} -e
${config.preStart}
'';
})
(mkIf (config.script != "")
{ serviceConfig.ExecStart = makeJobScript "${name}-start" ''
#! ${pkgs.stdenv.shell} -e
${config.script}
'' + " " + config.scriptArgs;
})
(mkIf (config.postStart != "")
{ serviceConfig.ExecStartPost = makeJobScript "${name}-post-start" ''
#! ${pkgs.stdenv.shell} -e
${config.postStart}
'';
})
(mkIf (config.preStop != "")
{ serviceConfig.ExecStop = makeJobScript "${name}-pre-stop" ''
#! ${pkgs.stdenv.shell} -e
${config.preStop}
'';
})
(mkIf (config.postStop != "")
{ serviceConfig.ExecStopPost = makeJobScript "${name}-post-stop" ''
#! ${pkgs.stdenv.shell} -e
${config.postStop}
'';
})
];
};
mountConfig = { name, config, ... }: {
@@ -223,41 +259,10 @@ let
${attrsToSection def.unitConfig}
[Service]
Environment=PATH=${def.path}
Environment=LD_LIBRARY_PATH=
${let env = cfg.globalEnvironment // def.environment;
in concatMapStrings (n: "Environment=\"${n}=${getAttr n env}\"\n") (attrNames env)}
${optionalString (!def.restartIfChanged) "X-RestartIfChanged=false"}
${optionalString (!def.stopIfChanged) "X-StopIfChanged=false"}
${optionalString (def.preStart != "") ''
ExecStartPre=${makeJobScript "${name}-pre-start" ''
#! ${pkgs.stdenv.shell} -e
${def.preStart}
''}
''}
${optionalString (def.script != "") ''
ExecStart=${makeJobScript "${name}-start" ''
#! ${pkgs.stdenv.shell} -e
${def.script}
''} ${def.scriptArgs}
''}
${optionalString (def.postStart != "") ''
ExecStartPost=${makeJobScript "${name}-post-start" ''
#! ${pkgs.stdenv.shell} -e
${def.postStart}
''}
''}
${optionalString (def.postStop != "") ''
ExecStopPost=${makeJobScript "${name}-post-stop" ''
#! ${pkgs.stdenv.shell} -e
${def.postStop}
''}
''}
${attrsToSection def.serviceConfig}
'';
};
@@ -348,14 +353,14 @@ let
${concatStrings (mapAttrsToList (name: unit:
concatMapStrings (name2: ''
mkdir -p $out/${name2}.wants
ln -sfn ../${name} $out/${name2}.wants/
mkdir -p $out/'${name2}.wants'
ln -sfn '../${name}' $out/'${name2}.wants'/
'') unit.wantedBy) cfg.units)}
${concatStrings (mapAttrsToList (name: unit:
concatMapStrings (name2: ''
mkdir -p $out/${name2}.requires
ln -sfn ../${name} $out/${name2}.requires/
mkdir -p $out/'${name2}.requires'
ln -sfn '../${name}' $out/'${name2}.requires'/
'') unit.requiredBy) cfg.units)}
ln -s ${cfg.defaultUnit} $out/default.target

View File

@@ -55,9 +55,9 @@ in
{ description = "Setup Virtual Console";
wantedBy = [ "sysinit.target" "multi-user.target" ];
before = [ "sysinit.target" "shutdown.target" ];
conflicts = [ "shutdown.target" ];
unitConfig =
{ DefaultDependencies = "no";
Conflicts = "shutdown.target";
ConditionPathExists = "/dev/tty1";
};
serviceConfig =

View File

@@ -160,4 +160,9 @@ with pkgs.lib;
environment.systemPackages = [ pkgs.cryptsetup ];
boot.initrd.supportedFilesystems = [ "unionfs-fuse" ];
# Prevent logging in as root without a password. This doesn't really matter,
# since the only PAM services that allow logging in with a null
# password are local ones that are inaccessible on EC2 machines.
security.initialRootPassword = "!";
}

View File

@@ -107,4 +107,9 @@ with pkgs.lib;
boot.loader.grub.device = "/dev/sda";
services.virtualbox.enable = true;
# Prevent logging in as root without a password. For NixOps, we
# don't need this because the user can login via SSH, and for the
# demo images, there is a demo user account that can sudo to root.
security.initialRootPassword = "!";
}

View File

@@ -1,5 +1,5 @@
{ stdenv, fetchurl, libtool, intltool, pkgconfig, glib
, gtk, curl, mpd_clientlib, libsoup, gob2, vala
, gtk, curl, mpd_clientlib, libsoup, gob2, vala, libunique
}:
stdenv.mkDerivation rec {
@@ -15,22 +15,6 @@ stdenv.mkDerivation rec {
buildInputs = [ pkgconfig glib ];
};
libunique = stdenv.mkDerivation {
name = "libunique-1.1.6";
src = fetchurl {
url = http://ftp.gnome.org/pub/GNOME/sources/libunique/1.1/libunique-1.1.6.tar.gz;
sha256 = "2cb918dde3554228a211925ba6165a661fd782394bd74dfe15e3853dc9c573ea";
};
buildInputs = [ pkgconfig glib gtk ];
patches = [
(fetchurl {
url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/remove_G_CONST_RETURN.patch?h=packages/libunique";
sha256 = "0da2qi7cyyax4rr1p25drlhk360h8d3lapgypi5w95wj9k6bykhr";
})
];
};
src = fetchurl {
url = "http://download.sarine.nl/Programs/gmpc/11.8/gmpc-11.8.16.tar.gz";
sha256 = "0b3bnxf98i5lhjyljvgxgx9xmb6p46cn3a9cccrng14nagri9556";

View File

@@ -1,6 +1,8 @@
{ stdenv
, fetchurl
, pkgconfig
, bzip2
, fontconfig
, freetype
, ghostscript ? null
, libjpeg
@@ -16,14 +18,14 @@
}:
let
version = "6.8.6-9";
version = "6.8.8-7";
in
stdenv.mkDerivation rec {
name = "ImageMagick-${version}";
src = fetchurl {
url = "mirror://imagemagick/${name}.tar.xz";
sha256 = "1bpj8676mph5cvyjsdgf27i6yg2iw9iskk5c69mvpxkyawgjw1vg";
sha256 = "1x5jkbrlc10rx7vm344j7xrs74c80xk3n1akqx8w5c194fj56mza";
};
enableParallelBuilding = true;
@@ -42,17 +44,18 @@ stdenv.mkDerivation rec {
'';
propagatedBuildInputs =
[ bzip2 freetype libjpeg libpng libtiff libxml2 zlib librsvg
[ bzip2 fontconfig freetype libjpeg libpng libtiff libxml2 zlib librsvg
libtool jasper libX11
] ++ stdenv.lib.optional (ghostscript != null && stdenv.system != "x86_64-darwin") ghostscript;
buildInputs = [ tetex ];
buildInputs = [ tetex pkgconfig ];
postInstall = ''(cd "$out/include" && ln -s ImageMagick* ImageMagick)'';
meta = {
meta = with stdenv.lib; {
homepage = http://www.imagemagick.org/;
description = "A software suite to create, edit, compose, or convert bitmap images";
platforms = stdenv.lib.platforms.linux;
platforms = platforms.linux ++ [ "x86_64-darwin" ];
maintainers = with maintainers; [ the-kenny ];
};
}

View File

@@ -4,11 +4,11 @@ liblqr1, lensfun, pkgconfig, qjson, libkdcraw, opencv, libkexiv2, libkipi, boost
shared_desktop_ontologies, marble, mysql }:
stdenv.mkDerivation rec {
name = "digikam-3.2.0";
name = "digikam-3.5.0";
src = fetchurl {
url = "http://download.kde.org/stable/digikam/${name}.tar.bz2";
sha256 = "06j858d2nvbqh0bw6m60rh1bsws06fm5vfjpwwi3zxsf5ka08wmx";
sha256 = "0an4awlg0b8pwl6v8p5zfl3aghgnxck2pc322cyk6i6yznj2mgap";
};
nativeBuildInputs = [ cmake automoc4 pkgconfig ];

View File

@@ -2,14 +2,14 @@
, libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz
, libX11}:
let version = "1.3.13"; in
let version = "1.3.18"; in
stdenv.mkDerivation {
name = "graphicsmagick-${version}";
src = fetchurl {
url = "mirror://sourceforge/graphicsmagick/GraphicsMagick-${version}.tar.xz";
sha256 = "08lgjvhvhw3by5h4kfpl7072dbvkcpsajy5f6izq69cv61vadqs5";
sha256 = "1axh4j2jr3l92dan15b2nmx9da4l7i0rcz9b5bvfd4q742zfwj7x";
};
configureFlags = "--enable-shared";

View File

@@ -3,7 +3,7 @@
assert stdenv.system == "i686-linux";
let version = "9.5.1"; in
let version = "9.5.5"; in
stdenv.mkDerivation {
name = "adobe-reader-${version}-1";
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${version}/enu/AdbeRdr${version}-1_i486linux_enu.tar.bz2";
sha256 = "19mwhbfsivb21zmrz2hllf0kh4i225ac697y026bakyysn0vig56";
sha256 = "0h35misxrqkl5zlmmvray1bqf4ywczkm89n9qw7d9arqbg3aj3pf";
};
# !!! Adobe Reader contains copies of OpenSSL, libcurl, and libicu.

View File

@@ -8,6 +8,13 @@ stdenv.mkDerivation rec {
sha256 = "0y247nka5gkr1ajn47jrlp5rcnf6h4ff7dfsprma3h4wxqdv7a5b";
};
patches = [(fetchurl {
name = "CVE-2014-2013.patch";
url = "http://git.ghostscript.com/?p=mupdf.git;a=commitdiff_plain;"
+ "h=60dabde18d7fe12b19da8b509bdfee9cc886aafc";
sha256 = "1walj3wir9x50i6lph33bx14c8593r9xrn08gkd3v7r6d15lmjps";
})];
buildInputs = [ pkgconfig zlib freetype libjpeg jbig2dec openjpeg libX11 libXext ];
preBuild = ''

View File

@@ -1,5 +1,5 @@
{ cabal, filepath, libXrandr, mtl, parsec, regexCompat, stm, time
, utf8String, X11, X11Xft
, utf8String, wirelesstools, X11, X11Xft
}:
cabal.mkDerivation (self: {
@@ -11,8 +11,8 @@ cabal.mkDerivation (self: {
buildDepends = [
filepath mtl parsec regexCompat stm time utf8String X11 X11Xft
];
extraLibraries = [ libXrandr ];
configureFlags = "-fwith_xft";
extraLibraries = [ libXrandr wirelesstools ];
configureFlags = "-fwith_xft -fwith_iwlib";
meta = {
homepage = "http://projects.haskell.org/xmobar/";
description = "A Minimalistic Text Based Status Bar";

View File

@@ -15,12 +15,11 @@
assert stdenv.gcc ? libc && stdenv.gcc.libc != null;
let optional = stdenv.lib.optional;
in rec {
rec {
firefoxVersion = "25.0";
firefoxVersion = "25.0.1";
xulVersion = "25.0"; # this attribute is used by other packages
xulVersion = "25.0.1"; # this attribute is used by other packages
src = fetchurl {
@@ -30,7 +29,7 @@ in rec {
# Fall back to this url for versions not available at releases.mozilla.org.
"http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"
];
sha1 = "854722e283659d2b6b2eacd38f757b3c5b63a448";
sha1 = "592ebd242c4839ef0e18707a7e959d8bed2a98f3";
};
commonConfigureFlags =

View File

@@ -35,6 +35,8 @@
}:
let
# -> http://get.adobe.com/flashplayer/
version = "11.2.202.336";
src =
if stdenv.system == "x86_64-linux" then
@@ -43,10 +45,9 @@ let
# http://labs.adobe.com/technologies/flashplayer10/faq.html
throw "no x86_64 debugging version available"
else rec {
# -> http://labs.adobe.com/downloads/flashplayer10.html
version = "11.2.202.297";
inherit version;
url = "http://fpdownload.macromedia.com/get/flashplayer/pdc/${version}/install_flash_player_11_linux.x86_64.tar.gz";
sha256 = "0jfigq56p6zp61pmc4jl12p8gv2jhfmim18j1b30iikw3iv26lh8";
sha256 = "1wri6y5vllgs452dfklv23k7bp5daajnaqblkn5cb2gl28l5xcni";
}
else if stdenv.system == "i686-linux" then
if debug then {
@@ -55,9 +56,9 @@ let
url = http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz;
sha256 = "1z3649lv9sh7jnwl8d90a293nkaswagj2ynhsr4xmwiy7c0jz2lk";
} else rec {
version = "11.2.202.297";
inherit version;
url = "http://fpdownload.macromedia.com/get/flashplayer/pdc/${version}/install_flash_player_11_linux.i386.tar.gz";
sha256 = "0mpj25b2ar7gccqmw5lffdzlr3yyfalphpgwnl18s05wy1fx484y";
sha256 = "0mjxjbj75r74gqpmqzqa6vlrk2wv7r358wcqbmg132bhv8kaph85";
}
else throw "Flash Player is not supported on this platform";
@@ -87,5 +88,6 @@ stdenv.mkDerivation {
meta = {
description = "Adobe Flash Player browser plugin";
homepage = http://www.adobe.com/products/flashplayer/;
license = "unfree";
};
}

View File

@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, openssl, glib, libX11, gtk3, gettext, intltool }:
{ stdenv, fetchurl, pkgconfig, openssl, glib, libX11, gtk2, gettext, intltool }:
let version = "1.0.2"; in
stdenv.mkDerivation rec {
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "d7cd9adf04fedf50b266a5c14ddb427cbb263d3bc160ee0ade03aca9d5356e5c";
};
buildInputs = [ pkgconfig openssl libX11 gtk3 glib gettext intltool ];
buildInputs = [ pkgconfig openssl libX11 gtk2 glib gettext intltool ];
patches = [
./translation-xgettext-to-intltool.patch
./plugin-linkfix.patch

View File

@@ -45,20 +45,22 @@ in
stdenv.mkDerivation rec {
name = "google-talk-plugin-${version}";
# Use the following to determine the current upstream version:
# curl -s http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-amd64/Packages | sed -nr 's/^Version: *([^ ]+)-1$/\1/p'
version = "4.2.1.0";
# You can get the upstream version and SHA-1 hash from the following URLs:
# http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-amd64/Package
# http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-i386/Packages
version = "5.1.5.0";
src =
if stdenv.system == "x86_64-linux" then
fetchurl {
url = "${baseURL}/google-talkplugin_${version}-1_amd64.deb";
sha256 = "1g7kpz2lzzz1gri5rd3isp7cfyls6gzwcw2kc8jgrgrixq9iixfd";
sha1 = "fc830f4c7f5816f4578ec73e6d4aef059ad4a0b1";
}
else if stdenv.system == "i686-linux" then
fetchurl {
url = "${baseURL}/google-talkplugin_${version}-1_i386.deb";
sha256 = "1z0zbblzlky9nyifxmnl49v4zafpqp3l08b9v1486sinm35rf58r";
sha1 = "9b7043c3585b3479ba11aabb7b8af755a61df963";
}
else throw "Google Talk does not support your platform.";

View File

@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "hadoop-2.0.2-alpha";
name = "hadoop-2.2.0";
src = fetchurl {
url = "mirror://apache/hadoop/common/${name}/${name}.tar.gz";
sha256 = "1r7ailmqhny3pl5nb8bcblnhckszy6hb9n58kwa3s4b8qfk87gkb";
sha256 = "0r0kx8arsrvmcfy0693hpv4cz3i0razvk1xa3yhlf3ybb80a8106";
};
buildInputs = [ makeWrapper ];

View File

@@ -1,16 +1,17 @@
{ stdenv, fetchurl, openssl, curl, coreutils, gawk, bash, which }:
stdenv.mkDerivation {
name = "esniper-2.28.0";
name = "esniper-2.30.0";
src = fetchurl {
url = "mirror://sourceforge/esniper/esniper-2-28-0.tgz";
sha256 = "c2b0ccb757616b32f2d6cf54a4a5e367405fa7bcd6e6ed11835fe4f8a06a016b";
url = "mirror://sourceforge/esniper/esniper-2-30-0.tgz";
sha256 = "1p85d5qfr3f35xfj5555ck4wwk5hqkh65ivam1527p8dwcz00wpl";
};
buildInputs = [openssl curl];
# Add support for CURL_CA_BUNDLE variable.
# Fix <http://sourceforge.net/p/esniper/bugs/648/>.
patches = [ ./find-ca-bundle.patch ];
postInstall = ''

View File

@@ -21,10 +21,10 @@
} :
stdenv.mkDerivation rec {
name = "pidgin-2.10.7";
name = "pidgin-2.10.9";
src = fetchurl {
url = "mirror://sourceforge/pidgin/${name}.tar.bz2";
sha256 = "14piyx4xpc3l8286x4nh5pna2wfyn9cv0qa29br1q3d2xja2k8zb";
sha256 = "06gka47myl9f5x0flkq74ml75akkf28rx9sl8pm3wqkzazc2wdnw";
};
inherit nss ncurses;
@@ -51,8 +51,10 @@ stdenv.mkDerivation rec {
configureFlags="--with-nspr-includes=${nspr}/include/nspr --with-nspr-libs=${nspr}/lib --with-nss-includes=${nss}/include/nss --with-nss-libs=${nss}/lib --with-ncurses-headers=${ncurses}/include --disable-meanwhile --disable-nm --disable-tcl"
+ (lib.optionalString (gnutls != null) " --enable-gnutls=yes --enable-nss=no")
;
meta = {
meta = with stdenv.lib; {
description = "Pidgin IM - XMPP(Jabber), AIM/ICQ, IRC, SIP etc client";
homepage = http://pidgin.im;
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}

View File

@@ -1,11 +1,11 @@
{stdenv, fetchurl}:
stdenv.mkDerivation rec {
name = "ii-1.6";
name = "ii-1.7";
src = fetchurl {
url = "http://dl.suckless.org/tools/${name}.tar.gz";
sha256 = "0afccbcm7i9lfch5mwzs3l1ax79dg3g6rrw0z8rb7d2kn8wsckvr";
sha256 = "176cqwnn6h7w4kbfd66hzqa243l26pqp2b06bii0nmnm0rkaqwis";
};
installPhase = ''

View File

@@ -11,11 +11,11 @@ let
in with stdenv; mkDerivation rec {
name = "quassel-0.9.0";
name = "quassel-0.9.2";
src = fetchurl {
url = "http://quassel-irc.org/pub/${name}.tar.bz2";
sha256 = "09v0igjkzan3hllk47w39hkav6v1419vpxn2lfd8473kwdmf0grf";
sha256 = "1h2kzi4pgfv3qmvhxix9fffdjixs3bsya0i5c18dkh894mh02kgh";
};
buildInputs = [ cmake qt4 ]

View File

@@ -12,14 +12,14 @@
enableOfficialBranding ? false
}:
let version = "17.0.8"; in
let version = "17.0.11esr"; in
stdenv.mkDerivation {
name = "thunderbird-${version}";
src = fetchurl {
url = "ftp://ftp.mozilla.org/pub/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.bz2";
sha1 = "4bcbb33f0b3ea050e805723680b5669d80438812";
sha256 = "1m2lph8x82kgxqzlyaxr1l1x7s4qnqfzfnqck4b777914mrv1mdp";
};
#enableParallelBuilding = true;

View File

@@ -4,14 +4,14 @@
, makeDesktopItem
}:
let version = "1.8.7"; in
let version = "1.8.11"; in
stdenv.mkDerivation {
name = "wireshark-${version}";
src = fetchurl {
url = "mirror://sourceforge/wireshark/wireshark-${version}.tar.bz2";
sha256 = "0hm8zisy5dg7sfhh7rvgnpffq2qcw0syd8k5kns8j0j13sf44zjw";
sha256 = "1nwgizs9z1dalicpp2fd9pqafidy49j0v3d1rml0spfqrkbjpfpw";
};
buildInputs =

View File

@@ -1,7 +1,7 @@
{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk, libgnomeui, libofx
, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant, gettext, libbonoboui
, intltool, perl, guile, slibGuile, swig, isocodes, bzip2, makeWrapper, libglade
, libgsf, libart_lgpl
, libgsf, libart_lgpl, perlPackages
}:
/* If you experience GConf errors when running GnuCash on NixOS, see
@@ -10,34 +10,42 @@
*/
stdenv.mkDerivation rec {
name = "gnucash-2.4.13";
name = "gnucash-2.4.15";
src = fetchurl {
url = "mirror://sourceforge/gnucash/${name}.tar.bz2";
sha256 = "0j4m00a3r1hcrhkfjkx3sgi2r4id4wrc639i4s00j35rx80540pn";
sha256 = "058mgfwic6a2g7jq6iip5hv45md1qaxy25dj4lvlzjjr141wm4gx";
};
buildInputs = [
pkgconfig libxml2 gconf glib gtk libgnomeui libgtkhtml gtkhtml
libgnomeprint goffice enchant gettext intltool perl guile slibGuile
swig isocodes bzip2 makeWrapper libofx libglade libgsf libart_lgpl
perlPackages.DateManip perlPackages.FinanceQuote
];
configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx";
postInstall = ''
sed -i $out/bin/update-gnucash-gconf \
# Auto-updaters don't make sense in Nix.
rm $out/bin/gnc-fq-update
sed -i $out/bin/update-gnucash-gconf \
-e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|'
for prog in "$out/bin/"*
for prog in $(echo "$out/bin/"*)
do
# Don't wrap the gnc-fq-* scripts, since gnucash calls them as
# "perl <script>', i.e. they must be Perl scripts.
if [[ $prog =~ gnc-fq ]]; then continue; fi
wrapProgram "$prog" \
--set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \
--prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \
--prefix LD_LIBRARY_PATH ":" "${libgnomeui}/lib/libglade/2.0" \
--prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \
--prefix PERL5LIB ":" "$PERL5LIB" \
--set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
--prefix PATH ":" "${gconf}/bin" \
--suffix PATH ":" "$out/bin"
--prefix PATH ":" "$out/bin:${perl}/bin:${gconf}/bin"
done
'';

View File

@@ -4,11 +4,11 @@
}:
stdenv.mkDerivation rec {
name = "gnumeric-1.12.0";
name = "gnumeric-1.12.9";
src = fetchurl {
url = "mirror://gnome/sources/gnumeric/1.12/${name}.tar.xz";
sha256 = "037b53d909e5d1454b2afda8c4fb1e7838e260343e36d4e36245f4a5d0e04111";
sha256 = "1rv2ifw6rp0iza4fkf3bffvdkyi77dwvzdnvcbpqcyn2kxfsvlsc";
};
configureFlags = "--disable-component";

View File

@@ -2,8 +2,8 @@
cabal.mkDerivation (self: {
pname = "hledger-irr";
version = "0.1.1.2";
sha256 = "1mh1lzhnxc8ps8n5j37wrmbqafwdyap60j8rqr6xdfa2syfyq8i2";
version = "0.1.1.3";
sha256 = "0vjf478b9msmgr1nxyy8pgc9mvn61i768ypcr5gbinsnsr9kxqsm";
isLibrary = false;
isExecutable = true;
buildDepends = [ Cabal hledgerLib statistics time ];

View File

@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
sed -i -e 's,/usr/local/kicad,'$out,g common/gestfich.cpp
'';
enableParallelBuilding = true;
#enableParallelBuilding = true; # often fails on Hydra: fatal error: pcb_plot_params_lexer.h: No such file or directory
buildInputs = [ unzip cmake mesa wxGTK zlib libX11 gettext ];

View File

@@ -21,10 +21,13 @@ cabal.mkDerivation (self: {
mv contrib/darcs_completion $out/etc/bash_completion.d/darcs
'';
meta = {
homepage = "http://darcs.net/";
description = "a distributed, interactive, smart revision control system";
homepage = http://darcs.net/;
description = "A distributed, interactive, smart revision control system";
license = "GPL";
platforms = self.ghc.meta.platforms;
# FIXME: this gives an infinite recursion in the "darcs" attribute
# in all-packages.nix.
#platforms = self.ghc.meta.platforms;
platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ];
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})

View File

@@ -2,32 +2,33 @@
, caseInsensitive, clientsession, cryptoApi, cryptohash, curl
, dataDefault, dataenc, DAV, dbus, dlist, dns, editDistance
, extensibleExceptions, feed, filepath, git, gnupg1, gnutls, hamlet
, hinotify, hS3, hslogger, HTTP, httpConduit, httpTypes, HUnit
, IfElse, json, lsof, MissingH, MonadCatchIOTransformers
, monadControl, mtl, network, networkInfo, networkMulticast
, hinotify, hS3, hslogger, HTTP, httpConduit, httpTypes, IfElse
, json, lsof, MissingH, MonadCatchIOTransformers, monadControl, mtl
, network, networkConduit, networkInfo, networkMulticast
, networkProtocolXmpp, openssh, perl, QuickCheck, random, regexTdfa
, rsync, SafeSemaphore, SHA, stm, text, time, transformers
, unixCompat, utf8String, uuid, wai, waiLogger, warp, which
, xmlConduit, xmlTypes, yesod, yesodCore, yesodDefault, yesodForm
, yesodStatic
, rsync, SafeSemaphore, SHA, stm, tasty, tastyHunit
, tastyQuickcheck, text, time, transformers, unixCompat, utf8String
, uuid, wai, waiLogger, warp, which, xmlConduit, xmlTypes, yesod
, yesodCore, yesodDefault, yesodForm, yesodStatic
}:
cabal.mkDerivation (self: {
pname = "git-annex";
version = "4.20131024";
sha256 = "1a4mrx8zr5znhcy2cszv5ri9avqj7lcn467nmaj172f00vn4fd5x";
version = "5.20131221";
sha256 = "1gkb8fc0fjjn0rigajgliqy381pmkpx4ha1rx65dcw15rqnrawb3";
isLibrary = false;
isExecutable = true;
buildDepends = [
aeson async blazeBuilder bloomfilter caseInsensitive clientsession
cryptoApi cryptohash dataDefault dataenc DAV dbus dlist dns
editDistance extensibleExceptions feed filepath gnutls hamlet
hinotify hS3 hslogger HTTP httpConduit httpTypes HUnit IfElse json
hinotify hS3 hslogger HTTP httpConduit httpTypes IfElse json
MissingH MonadCatchIOTransformers monadControl mtl network
networkInfo networkMulticast networkProtocolXmpp QuickCheck random
regexTdfa SafeSemaphore SHA stm text time transformers unixCompat
utf8String uuid wai waiLogger warp xmlConduit xmlTypes yesod
yesodCore yesodDefault yesodForm yesodStatic
networkConduit networkInfo networkMulticast networkProtocolXmpp
QuickCheck random regexTdfa SafeSemaphore SHA stm tasty tastyHunit
tastyQuickcheck text time transformers unixCompat utf8String uuid
wai waiLogger warp xmlConduit xmlTypes yesod yesodCore yesodDefault
yesodForm yesodStatic
];
buildTools = [ bup curl git gnupg1 lsof openssh perl rsync which ];
configureFlags = "-fS3
@@ -41,11 +42,13 @@ cabal.mkDerivation (self: {
-fDNS
-fProduction
-fTDFA";
preConfigure = "patchShebangs .";
installPhase = "./Setup install";
checkPhase = ''
doCheck = false;
installPhase = ''
export HOME="$NIX_BUILD_TOP/tmp"
mkdir "$HOME"
./Setup install
'';
checkPhase = ''
cp dist/build/git-annex/git-annex git-annex
./git-annex test
'';

View File

@@ -10,7 +10,7 @@
let
version = "1.8.4";
version = "1.8.4.3";
svn = subversionClient.override { perlBindings = true; };
@@ -21,7 +21,7 @@ stdenv.mkDerivation {
src = fetchurl {
url = "http://git-core.googlecode.com/files/git-${version}.tar.gz";
sha256 = "156bwqqgaw65rsvbb4wih5jfg94bxyf6p16mdwf0ky3f4ln55s2i";
sha256 = "08fbdxh2cjd4hffm0nydwysh5zh6nrssbi9x01yy0n2y8rqzly0a";
};
patches = [ ./docbook2texi.patch ./symlinks-in-bin.patch ];

View File

@@ -4,8 +4,8 @@
cabal.mkDerivation (self: {
pname = "github-backup";
version = "1.20131006";
sha256 = "0yc2hszi509mc0d6245dc8cq20mjjmr8mgrd8571dy9sgda532pf";
version = "1.20131203";
sha256 = "0156g7zbqsp58g8hniqsilyc79sam7plwhn3w56wbzf8m380mwba";
isLibrary = false;
isExecutable = true;
buildDepends = [

View File

@@ -21,13 +21,13 @@ assert compressionSupport -> neon.compressionSupport;
stdenv.mkDerivation rec {
version = "1.7.13";
version = "1.7.14";
name = "subversion-${version}";
src = fetchurl {
url = "mirror://apache/subversion//${name}.tar.bz2";
sha1 = "844bb756ec505edaa12b9610832bcd21567139f1";
sha256 = "038jbcpwm083abp0rvk0fhnx65kp9mz1qvzs3f83ig8fxcvqzb64";
};
buildInputs = [ zlib apr aprutil sqlite ]

View File

@@ -10,7 +10,13 @@
assert stdenv ? glibc;
let version = "0.8.10"; in
let version = "0.8.10";
patch_CVE = fetchurl {
url = "http://git.savannah.gnu.org/cgit/gnash.git/patch/?id=bb4dc77eecb6ed1b967e3ecbce3dac6c5e6f1527";
sha256 = "1g7ymbq9vxi0mwcgs2dpyd2sf30gaam7blza0ywiwj32f5wk62v1";
name = "CVE-2012-1175.patch";
};
in
stdenv.mkDerivation rec {
name = "gnash-${version}";
@@ -21,6 +27,8 @@ stdenv.mkDerivation rec {
};
patchPhase = ''
patch -p1 < ${patch_CVE}
# Add all libs to `macros/libslist', a list of library search paths.
for lib in ${lib.concatStringsSep " "
(map (lib: "\"${lib}\"/lib")

View File

@@ -10,11 +10,11 @@
stdenv.mkDerivation rec {
name = "vlc-${version}";
version = "2.1.0";
version = "2.1.1";
src = fetchurl {
url = "http://download.videolan.org/pub/videolan/vlc/${version}/${name}.tar.xz";
sha256 = "1xs1zsjip6ljqyy5jlqf14ncda4pjx166bqvjqgcyskq66m7s5yj";
sha256 = "14mrcswz5mz976dmplbrdm3mkwjrksspvkignhbnbvrrp77r571k";
};
buildInputs =

View File

@@ -2,30 +2,32 @@
, cairo, libxcb, libXcursor, x11, udev, libdrm, mtdev
, libjpeg, pam, autoconf, automake, libtool }:
let version = "1.0.5"; in
let version = "1.3.1"; in
stdenv.mkDerivation rec {
name = "weston-${version}";
src = fetchurl {
url = "http://wayland.freedesktop.org/releases/${name}.tar.xz";
sha256 = "0g2k82pnlxl8b70ykazj7kn8xffjfsmgcgx427qdrm4083z2hgm0";
sha256 = "1isvh66irrz707r69495767n5yxp07dvy0xx6mj1mbj1n4s1657p";
};
buildInputs = [ pkgconfig wayland mesa libxkbcommon
cairo libxcb libXcursor x11 udev libdrm mtdev
libjpeg pam autoconf automake libtool ];
libjpeg pam /*autoconf automake libtool*/ ];
preConfigure = "autoreconf -vfi";
#preConfigure = "autoreconf -vfi";
# prevent install target to chown root weston-launch, which fails
configureFlags = ''
--disable-setuid-install
'';
NIX_CFLAGS_COMPILE = "-I${libdrm}/include/libdrm";
configureFlags = [
"--disable-setuid-install" # prevent install target to chown root weston-launch, which fails
];
meta = {
description = "Reference implementation of a Wayland compositor";
homepage = http://wayland.freedesktop.org/;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.linux;
};
}

View File

@@ -13,6 +13,12 @@ cabal.mkDerivation (self: {
mkdir -p $out/share/man/man1
mv $out/share/xmonad-*/man/*.1 $out/share/man/man1/
'';
patches = [
# Patch to make xmonad use XMONAD_{GHC,XMESSAGE} (if available).
./xmonad_ghc_var_0.11.patch
];
meta = {
homepage = "http://xmonad.org";
description = "A tiling window manager";

View File

@@ -0,0 +1,44 @@
--- xmonad-0.11/XMonad/Core.hs 2013-01-01 01:31:47.000000000 +0000
+++ new-xmonad/XMonad/Core.hs 2013-12-23 17:36:40.862146910 +0000
@@ -47,6 +47,7 @@
import System.Process
import System.Directory
import System.Exit
+import System.Environment (lookupEnv)
import Graphics.X11.Xlib
import Graphics.X11.Xlib.Extras (Event)
import Data.Typeable
@@ -452,6 +453,7 @@
err = base ++ ".errors"
src = base ++ ".hs"
lib = dir </> "lib"
+ ghc <- fromMaybe "ghc" <$> liftIO (lookupEnv "XMONAD_GHC")
libTs <- mapM getModTime . Prelude.filter isSource =<< allFiles lib
srcT <- getModTime src
binT <- getModTime bin
@@ -460,7 +462,7 @@
-- temporarily disable SIGCHLD ignoring:
uninstallSignalHandlers
status <- bracket (openFile err WriteMode) hClose $ \h ->
- waitForProcess =<< runProcess "ghc" ["--make", "xmonad.hs", "-i", "-ilib", "-fforce-recomp", "-v0", "-o",binn] (Just dir)
+ waitForProcess =<< runProcess ghc ["--make", "xmonad.hs", "-i", "-ilib", "-fforce-recomp", "-v0", "-o",binn] (Just dir)
Nothing Nothing Nothing (Just h)
-- re-enable SIGCHLD:
@@ -469,6 +471,7 @@
-- now, if it fails, run xmessage to let the user know:
when (status /= ExitSuccess) $ do
ghcErr <- readFile err
+ xmessage <- fromMaybe "xmessage" <$> liftIO (lookupEnv "XMONAD_XMESSAGE")
let msg = unlines $
["Error detected while loading xmonad configuration file: " ++ src]
++ lines (if null ghcErr then show status else ghcErr)
@@ -476,7 +479,7 @@
-- nb, the ordering of printing, then forking, is crucial due to
-- lazy evaluation
hPutStrLn stderr msg
- forkProcess $ executeFile "xmessage" True ["-default", "okay", msg] Nothing
+ forkProcess $ executeFile xmessage True ["-default", "okay", msg] Nothing
return ()
return (status == ExitSuccess)
else return True

View File

@@ -1,9 +1,11 @@
# generic builder for Cabal packages
{ stdenv, fetchurl, lib, pkgconfig, ghc, Cabal, jailbreakCabal, glibcLocales
, gnugrep, coreutils
, enableLibraryProfiling ? false
, enableSharedLibraries ? false
, enableSharedExecutables ? false
, enableStaticLibraries ? true
, enableCheckPhase ? stdenv.lib.versionOlder "7.4" ghc.version
}:
@@ -25,6 +27,9 @@ assert enableSharedExecutables -> versionOlder "7.4" ghc.version;
# Our GHC 6.10.x builds do not provide sharable versions of their core libraries.
assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
# Our GHC 6.10.x builds do not provide sharable versions of their core libraries.
assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
{
mkDerivation =
args : # arguments for the individual package, can modify the defaults
@@ -42,6 +47,7 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
x : (removeAttrs x internalAttrs) // {
buildInputs = filter (y : ! (y == null)) x.buildInputs;
propagatedBuildInputs = filter (y : ! (y == null)) x.propagatedBuildInputs;
propagatedUserEnvPkgs = filter (y : ! (y == null)) x.propagatedUserEnvPkgs;
doCheck = enableCheckPhase && x.doCheck;
};
@@ -92,12 +98,19 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
# have to check for its existence
propagatedBuildInputs = if self.isLibrary then self.buildDepends ++ self.extraLibraries ++ self.pkgconfigDepends else [];
# By default, also propagate all dependencies to the user environment. This is required, otherwise packages would be broken, because
# GHC also needs all dependencies to be available.
propagatedUserEnvPkgs = if self.isLibrary then self.buildDepends else [];
# library directories that have to be added to the Cabal files
extraLibDirs = [];
# build-depends Cabal field
buildDepends = [];
# target(s) passed to the cabal build phase as an argument
buildTarget = "";
# build-depends Cabal fields stated in test-suite stanzas
testDepends = [];
@@ -128,6 +141,14 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
# and run any regression test suites the package might have
doCheck = enableCheckPhase;
# abort the build if the configure phase detects that the package
# depends on multiple versions of the same build input
strictConfigurePhase = true;
# pass the '--enable-library-vanilla' flag to cabal in the
# configure stage to enable building shared libraries
inherit enableStaticLibraries;
# pass the '--enable-shared' flag to cabal in the configure
# stage to enable building shared libraries
inherit enableSharedLibraries;
@@ -140,6 +161,7 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
(enableFeature self.enableSplitObjs "split-objs")
(enableFeature enableLibraryProfiling "library-profiling")
(enableFeature self.enableSharedLibraries "shared")
(optional (versionOlder "7" ghc.version) (enableFeature self.enableStaticLibraries "library-vanilla"))
(optional (versionOlder "7.4" ghc.version) (enableFeature self.enableSharedExecutables "executable-dynamic"))
(optional (versionOlder "7" ghc.version) (enableFeature self.doCheck "tests"))
];
@@ -173,8 +195,20 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
done
done
${optionalString self.enableSharedExecutables ''
configureFlags+=" --ghc-option=-optl=-Wl,-rpath=$out/lib/${ghc.ghc.name}/${self.pname}-${self.version}";
''}
echo "configure flags: $extraConfigureFlags $configureFlags"
./Setup configure --verbose --prefix="$out" --libdir='$prefix/lib/$compiler' --libsubdir='$pkgid' $extraConfigureFlags $configureFlags
./Setup configure --verbose --prefix="$out" --libdir='$prefix/lib/$compiler' \
--libsubdir='$pkgid' $extraConfigureFlags $configureFlags 2>&1 \
${optionalString self.strictConfigurePhase ''
| ${coreutils}/bin/tee "$NIX_BUILD_TOP/cabal-configure.log"
if ${gnugrep}/bin/egrep -q '^Warning:.*depends on multiple versions' "$NIX_BUILD_TOP/cabal-configure.log"; then
echo >&2 "*** abort because of serious configure-time warning from Cabal"
exit 1
fi
''}
eval "$postConfigure"
'';
@@ -183,7 +217,7 @@ assert enableSharedLibraries -> versionOlder "6.12" ghc.version;
buildPhase = ''
eval "$preBuild"
./Setup build
./Setup build ${self.buildTarget}
export GHC_PACKAGE_PATH=$(${ghc.GHCPackages})
test -n "$noHaddock" || ./Setup haddock

View File

@@ -0,0 +1,9 @@
{ stdenv, fetch-bower, git }: name: version: target: outputHash: stdenv.mkDerivation {
name = "${name}-${version}";
realBuilder = "${fetch-bower}/bin/fetch-bower";
args = [ name version target ];
outputHashMode = "recursive";
outputHashAlgo = "sha256";
inherit outputHash;
PATH = "${git}/bin";
}

View File

@@ -66,6 +66,7 @@ in
showURLs ? false
}:
assert builtins.isList urls;
assert urls != [] -> url == "";
assert url != "" -> urls == [];

View File

@@ -78,7 +78,7 @@ stdenv.mkDerivation ( rec {
zip=$(ls target/*.zip| head -1)
releaseName=$(basename $zip .zip)
releaseName="$releaseName-r${toString src.rev}"
releaseName="$releaseName-r${toString src.rev or "0"}"
cp $zip $out/release/$releaseName.zip
echo "$releaseName" > $out/nix-support/hydra-release-name

View File

@@ -19,6 +19,7 @@ in
rec {
src = a.fetchurl {
url = sourceInfo.url;
curlOpts = "--user-agent 'Mozilla/5.0'";
sha256 = sourceInfo.hash;
};

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "cacert-20121229";
name = "cacert-20131205";
src = fetchurl {
url = "http://tarballs.nixos.org/${name}.pem.bz2";
sha256 = "031s86pqvn620zkj6w97hqgjvkp6vsvlymzz7rwvkv25zvrjsgif";
sha256 = "049cm3nrhawkh9xpfjhgis6w58zji5ppi4d9yyjzrr7mpw0a34df";
};
unpackPhase = "true";

View File

@@ -2,11 +2,11 @@
, libxml2, glib}:
stdenv.mkDerivation rec {
name = "shared-mime-info-1.1";
name = "shared-mime-info-1.2";
src = fetchurl {
url = "http://freedesktop.org/~hadess/${name}.tar.xz";
sha256 = "0v70z5b6340jsjvdhf7brczpzq766wc1lsnjg9hc57ks2m5hjk8q";
sha256 = "0y5vi0vr6rbhvfzcfg57cfskn362bpvcpca9cy598nmr87i6lld5";
};
buildInputs = [

View File

@@ -1,4 +1,4 @@
{ callPackage, self, stdenv, gettext, overrides ? {} }:
{ callPackage, self, stdenv, gettext, gvfs, libunique, overrides ? {} }:
{
__overrides = overrides;
@@ -67,7 +67,7 @@
startup_notification = callPackage ./platform/startup-notification { };
# Required for nautilus
libunique = callPackage ./platform/libunique { };
inherit (libunique);
gtkglext = callPackage ./platform/gtkglext { };

View File

@@ -1,14 +0,0 @@
{stdenv, fetchurl_gnome, pkgconfig, gtk}:
stdenv.mkDerivation rec {
name = src.pkgname;
src = fetchurl_gnome {
project = "libunique";
major = "1"; minor = "1"; patchlevel = "6";
sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk ];
}

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, pkgconfig, libxml2, glib }:
stdenv.mkDerivation rec {
name = "libcroco-0.6.6"; # 3.6.2 release
name = "libcroco-0.6.8";
src = fetchurl {
url = "mirror://gnome/sources/libcroco/0.6/${name}.tar.xz";
sha256 = "1nbb12420v1zacn6jwa1x4ixikkcqw66sg4j5dgs45nhygiarv3j";
sha256 = "0w453f3nnkbkrly7spx5lx5pf6mwynzmd5qhszprq8amij2invpa";
};
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-Bsymbolic";

View File

@@ -1,7 +1,8 @@
{ kde, kdelibs, qimageblitz, libdbusmenu_qt, xorg, shared_desktop_ontologies,
lm_sensors, pciutils, libraw1394, libusb, libxklavier, python, libqalculate,
xkeyboard_config, kdepimlibs, pam, boost, gpsd, prison, akonadi,
libjpeg, pkgconfig, libXft, libXxf86misc, kactivities, qjson, networkmanager
libjpeg, pkgconfig, libXft, libXxf86misc, kactivities, qjson, networkmanager,
fetchurl
}:
kde {
@@ -17,6 +18,12 @@ kde {
kactivities
];
patches = [(fetchurl {
url = "https://git.reviewboard.kde.org/r/111261/diff/raw/";
sha256 = "0g8qjna1s0imz7801k4iy2ap5z81izi4bncvks7z3n9agji4zf40";
name = "CVE-2013-4132.patch";
})];
nativeBuildInputs = [ pkgconfig ];
preConfigure =

View File

@@ -3,6 +3,8 @@
kde {
buildInputs = [ kdelibs ];
enableParallelBuilding = false;
meta = {
description = "KDE free disk space utility";
};

View File

@@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
p_name = "xfce4-terminal";
ver_maj = "0.6";
ver_min = "2";
ver_min = "3";
src = fetchurl {
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
sha256 = "0d9vbkvbxxhv022mwyihrabmj8y9097bp57n1a412qyji0i454ix";
sha256 = "023y0lkfijifh05yz8grimxadqpi98mrivr00sl18nirq8b4fbwi";
};
name = "${p_name}-${ver_maj}.${ver_min}";

View File

@@ -1,18 +1,18 @@
{ cabal, aeson, aesonPretty, binary, blazeHtml, blazeMarkup
, cmdargs, filepath, HTF, indents, languageEcmascript, mtl, pandoc
, parsec, text, transformers, unionFind, uniplate
, parsec, text, transformers, unionFind, unorderedContainers
}:
cabal.mkDerivation (self: {
pname = "Elm";
version = "0.10.0.1";
sha256 = "1r7z2fw9v6ngr9w4lmj1l6sc78rmxvqkqlxv4a9yc5jm80k3ar0i";
version = "0.10.1";
sha256 = "1y533vanhrxc14x304ig6q8ch6zih8yqgpfgw4h5vk5fpdmn09a2";
isLibrary = true;
isExecutable = true;
buildDepends = [
aeson aesonPretty binary blazeHtml blazeMarkup cmdargs filepath
indents languageEcmascript mtl pandoc parsec text transformers
unionFind uniplate
unionFind unorderedContainers
];
testDepends = [ HTF ];
doCheck = false;

View File

@@ -1,15 +1,15 @@
{ stdenv, fetchurl, ghc, perl, gmp, ncurses }:
{ stdenv, fetchurl, ghc, perl, gmp, ncurses, happy, alex }:
stdenv.mkDerivation rec {
version = "7.7.20130828";
version = "7.7.20131202";
name = "ghc-${version}";
src = fetchurl {
url = "http://darcs.haskell.org/ghcBuilder/uploads/tn23/${name}-src.tar.bz2";
sha256 = "180nkd77kz3mv4g7yq8ipx34p5q8k714l0z2527y49lghy118jzv";
url = "http://cryp.to/${name}.tar.xz";
sha256 = "1gnp5c3x7dbaz7s2yvkw2fmvqh5by2gpp0zlcyj8p2gv13gxi2cb";
};
buildInputs = [ ghc perl gmp ncurses ];
buildInputs = [ ghc perl gmp ncurses happy alex ];
enableParallelBuilding = true;

View File

@@ -1,16 +1,42 @@
{ stdenv, ghc, packages, buildEnv, makeWrapper }:
{ stdenv, ghc, packages, buildEnv, makeWrapper, ignoreCollisions ? false }:
assert packages != [];
# This wrapper works only with GHC 6.12 or later.
assert stdenv.lib.versionOlder "6.12" ghc.version;
# It's probably a good idea to include the library "ghc-paths" in the
# compiler environment, because we have a specially patched version of
# that package in Nix that honors these environment variables
#
# NIX_GHC
# NIX_GHCPKG
# NIX_GHC_DOCDIR
# NIX_GHC_LIBDIR
#
# instead of hard-coding the paths. The wrapper sets these variables
# appropriately to configure ghc-paths to point back to the wrapper
# instead of to the pristine GHC package, which doesn't know any of the
# additional libraries.
#
# A good way to import the environment set by the wrapper below into
# your shell is to add the following snippet to your ~/.bashrc:
#
# if [ -e ~/.nix-profile/bin/ghc ]; then
# eval $(grep export ~/.nix-profile/bin/ghc)
# fi
let
ghc761OrLater = stdenv.lib.versionOlder "7.6.1" ghc.version;
packageDBFlag = if ghc761OrLater then "--package-db" else "--package-conf";
packageDBFlag = if ghc761OrLater then "--global-package-db" else "--global-conf";
libDir = "$out/lib/ghc-${ghc.version}";
docDir = "$out/share/doc/ghc/html";
packageCfgDir = "${libDir}/package.conf.d";
isHaskellPkg = x: (x ? pname) && (x ? version);
in
if packages == [] then ghc else
buildEnv {
name = "haskell-env-${ghc.name}";
paths = stdenv.lib.filter (x: x ? ghc) (stdenv.lib.closePropagation packages) ++ [ghc];
paths = stdenv.lib.filter isHaskellPkg (stdenv.lib.closePropagation packages) ++ [ghc];
inherit ignoreCollisions;
postBuild = ''
. ${makeWrapper}/nix-support/setup-hook
@@ -20,6 +46,7 @@ buildEnv {
--add-flags '"-B$NIX_GHC_LIBDIR"' \
--set "NIX_GHC" "$out/bin/ghc" \
--set "NIX_GHCPKG" "$out/bin/ghc-pkg" \
--set "NIX_GHC_DOCDIR" "${docDir}" \
--set "NIX_GHC_LIBDIR" "${libDir}"
done
@@ -29,12 +56,13 @@ buildEnv {
--add-flags "-f $out/bin/ghc" \
--set "NIX_GHC" "$out/bin/ghc" \
--set "NIX_GHCPKG" "$out/bin/ghc-pkg" \
--set "NIX_GHC_DOCDIR" "${docDir}" \
--set "NIX_GHC_LIBDIR" "${libDir}"
done
for prg in ghc-pkg ghc-pkg-${ghc.version}; do
rm -f $out/bin/$prg
makeWrapper ${ghc}/bin/$prg $out/bin/$prg --add-flags "${packageDBFlag} ${packageCfgDir}"
makeWrapper ${ghc}/bin/$prg $out/bin/$prg --add-flags "${packageDBFlag}=${packageCfgDir}"
done
$out/bin/ghc-pkg recache

View File

@@ -1,21 +1,21 @@
{ cabal, ansiTerminal, ansiWlPprint, binary, boehmgc, Cabal
, filepath, gmp, happy, haskeline, languageJava, libffi
, llvmGeneral, llvmGeneralPure, mtl, parsec, parsers, split, text
, time, transformers, trifecta, unorderedContainers, utf8String
, vector, vectorBinaryInstances
, deepseq, filepath, gmp, happy, haskeline, languageJava, mtl
, network, parsers, split, text, time, transformers, trifecta
, unorderedContainers, utf8String, vector, vectorBinaryInstances
, xml
}:
cabal.mkDerivation (self: {
pname = "idris";
version = "0.9.9.3";
sha256 = "1l19xx0xbcwlnnh2w0rmri7wwixffzfrafpbji64nwyx1awz4iab";
version = "0.9.10.1";
sha256 = "194gbpk8fy64maj9lcwj9hkbndc3287bh9mz2jm09vd11i23iyg1";
isLibrary = false;
isExecutable = true;
buildDepends = [
ansiTerminal ansiWlPprint binary Cabal filepath haskeline
languageJava libffi llvmGeneral llvmGeneralPure mtl parsec parsers
split text time transformers trifecta unorderedContainers
utf8String vector vectorBinaryInstances
ansiTerminal ansiWlPprint binary Cabal deepseq filepath haskeline
languageJava mtl network parsers split text time transformers
trifecta unorderedContainers utf8String vector
vectorBinaryInstances xml
];
buildTools = [ happy ];
extraLibraries = [ boehmgc gmp ];

View File

@@ -0,0 +1,135 @@
{ swingSupport ? true
, stdenv
, requireFile
, unzip
, xlibs ? null
, installjdk ? true
, pluginSupport ? true
, installjce ? false
}:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
assert swingSupport -> xlibs != null;
let
/**
* The JRE libraries are in directories that depend on the CPU.
*/
architecture =
if stdenv.system == "i686-linux" then
"i386"
else if stdenv.system == "x86_64-linux" then
"amd64"
else
abort "jdk requires i686-linux or x86_64 linux";
jce =
if installjce then
requireFile {
name = "UnlimitedJCEPolicyJDK7.zip";
url = http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html;
sha256 = "7a8d790e7bd9c2f82a83baddfae765797a4a56ea603c9150c87b7cdb7800194d";
}
else
"";
in
stdenv.mkDerivation {
name =
if installjdk then "jdk-1.7.0_45" else "jre-1.7.0_45";
src =
if stdenv.system == "i686-linux" then
requireFile {
name = "jdk-7u45-linux-i586.tar.gz";
url = http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html;
sha256 = "1q0nw2rwmavcrssyigq76p1h00hm8kd3rhb5bdv7rbdcs0jxrjsa";
}
else if stdenv.system == "x86_64-linux" then
requireFile {
name = "jdk-7u45-linux-x64.tar.gz";
url = http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html;
sha256 = "06jbz536zycqkdpc7zriay0jidmj9nriqva60afsgpv93kcf9spj";
}
else
abort "jdk requires i686-linux or x86_64 linux";
buildInputs = if installjce then [ unzip ] else [];
installPhase = ''
cd ..
if test -z "$installjdk"; then
mv $sourceRoot/jre $out
else
mv $sourceRoot $out
fi
for file in $out/*
do
if test -f $file ; then
rm $file
fi
done
if test -n "$installjdk"; then
for file in $out/jre/*
do
if test -f $file ; then
rm $file
fi
done
fi
# construct the rpath
rpath=
for i in $libraries; do
rpath=$rpath''${rpath:+:}$i/lib
done
if test -z "$installjdk"; then
jrePath=$out
else
jrePath=$out/jre
fi
if test -n "${jce}"; then
unzip ${jce}
cp -v UnlimitedJCEPolicy/*.jar $jrePath/lib/security
fi
rpath=$rpath''${rpath:+:}$jrePath/lib/${architecture}/jli
rpath=$rpath''${rpath:+:}$jrePath/lib/${architecture}
# set all the dynamic linkers
find $out -type f -perm +100 \
-exec patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath "$rpath" {} \;
find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
if test -z "$pluginSupport"; then
rm -f $out/bin/javaws
if test -n "$installjdk"; then
rm -f $out/jre/bin/javaws
fi
fi
mkdir $jrePath/lib/${architecture}/plugins
ln -s $jrePath/lib/${architecture}/libnpjp2.so $jrePath/lib/${architecture}/plugins
'';
inherit installjdk pluginSupport;
/**
* libXt is only needed on amd64
*/
libraries =
[stdenv.gcc.libc] ++
(if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []);
passthru.mozillaPlugin = if installjdk then "/jre/lib/${architecture}/plugins" else "/lib/${architecture}/plugins";
meta.license = "unfree";
}

View File

@@ -1,12 +1,12 @@
{stdenv, fetchurl, llvm, gmp, mpfr, mpc}:
stdenv.mkDerivation rec {
version = "3.2";
version = "3.3";
name = "dragonegg-${version}";
src = fetchurl {
url = "http://llvm.org/releases/${version}/${name}.src.tar.gz";
sha256 = "0jfxhqy3177drlvzgp6m0kwnbfyzrd4vzidnxjhck8a7a69a26bg";
sha256 = "1kfryjaz5hxh3q6m50qjrwnyjb3smg2zyh025lhz9km3x4kshlri";
};
# The gcc the plugin will be built for (the same used building dragonegg)

View File

@@ -0,0 +1,34 @@
{ stdenv, fetchurl }:
# at runtime, need jre or jdk
stdenv.mkDerivation rec {
name = "scala-2.9.2";
src = fetchurl {
url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tgz";
sha256 = "0s1shpzw2hyz7bwxdqq19rcrzbpq4d7b0kvdvjvhy7h05x496b46";
};
installPhase = ''
mkdir -p $out
rm bin/*.bat
rm lib/scalacheck.jar
mv * $out
'';
meta = {
description = "Scala is a general purpose programming language";
longDescription = ''
Scala is a general purpose programming language designed to express
common programming patterns in a concise, elegant, and type-safe way.
It smoothly integrates features of object-oriented and functional
languages, enabling Java and other programmers to be more productive.
Code sizes are typically reduced by a factor of two to three when
compared to an equivalent Java application.
'';
homepage = http://www.scala-lang.org/;
license = "BSD";
platforms = stdenv.lib.platforms.all;
};
}

View File

@@ -1,20 +1,23 @@
{ stdenv, fetchurl }:
# at runtime, need jre or jdk
{ stdenv, fetchurl, makeWrapper, jre }:
stdenv.mkDerivation rec {
name = "scala-2.9.2";
name = "scala-2.10.3";
src = fetchurl {
url = "http://www.scala-lang.org/downloads/distrib/files/${name}.tgz";
sha256 = "0s1shpzw2hyz7bwxdqq19rcrzbpq4d7b0kvdvjvhy7h05x496b46";
url = "http://www.scala-lang.org/files/archive/${name}.tgz";
sha256 = "16ac935wydrxrvijv4ldnz4vl2xk8yb3yzb9bsi3nb9sic7fxl95";
};
buildInputs = [ jre makeWrapper ] ;
installPhase = ''
mkdir -p $out
rm bin/*.bat
rm lib/scalacheck.jar
mv * $out
for p in $(ls $out/bin/) ; do
wrapProgram $out/bin/$p --prefix PATH ":" ${jre}/bin ;
done
'';
meta = {

View File

@@ -0,0 +1,11 @@
--- a/hints/darwin.sh 2013-05-08 11:13:45.000000000 -0600
+++ b/hints/darwin.sh 2013-05-08 11:15:04.000000000 -0600
@@ -129,7 +129,7 @@
# Avoid Apple's cpp precompiler, better for extensions
if [ "X`echo | ${cc} -no-cpp-precomp -E - 2>&1 >/dev/null`" = "X" ]; then
- cppflags="${cppflags} -no-cpp-precomp"
+ #cppflags="${cppflags} -no-cpp-precomp"
# This is necessary because perl's build system doesn't
# apply cppflags to cc compile lines as it should.

View File

@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
[ # Do not look in /usr etc. for dependencies.
./no-sys-dirs.patch
]
++ stdenv.lib.optional stdenv.isDarwin ./no-libutil.patch;
++ stdenv.lib.optionals stdenv.isDarwin [ ./cpp-precomp.patch ./no-libutil.patch ] ;
# Build a thread-safe Perl with a dynamic libperls.o. We need the
# "installstyle" option to ensure that modules are put under

View File

@@ -10,7 +10,7 @@ in
composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed) version; in {
version = "5.3.27";
version = "5.3.28";
name = "php-${version}";
@@ -224,7 +224,7 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
src = fetchurl {
url = "http://nl1.php.net/get/php-${version}.tar.bz2/from/this/mirror";
sha256 = "11xj6v65m6l2lq2s2j5pq5l0iwjsnxmv1nad9hja50ivc8fb4bg1";
sha256 = "04w53nn6qacpkd1x381mzd41kqh6k8kjnbyg44yvnkqwcl69db0c";
name = "php-${version}.tar.bz2";
};

View File

@@ -9,7 +9,7 @@ in
composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed) version; in {
version = "5.4.20";
version = "5.4.23";
name = "php-${version}";
@@ -235,7 +235,7 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
"http://nl1.php.net/get/php-${version}.tar.bz2/from/this/mirror"
"http://se1.php.net/get/php-${version}.tar.bz2/from/this/mirror"
];
sha256 = "1qarcxj46rzkmql3w2dln0hxzs349ph31fxcslizxch1ig7l43nd";
sha256 = "1k4iplqqcaqkmyq10h6a5qcpkfpkd05r2kclxw9n9qdrm47hfz5f";
name = "php-${version}.tar.bz2";
};

View File

@@ -0,0 +1,57 @@
# Edited from Mercurial patch: deleted the NEWS hunk, since it didn't apply cleanly.
# It added the following line to NEWS:
# - Issue #20246: Fix buffer overflow in socket.recvfrom_into.
# HG changeset patch
# User Benjamin Peterson <benjamin@python.org>
# Date 1389671978 18000
# Node ID 87673659d8f7ba1623cd4914f09ad3d2ade034e9
# Parent 2631d33ee7fbd5f0288931ef37872218d511d2e8
complain when nbytes > buflen to fix possible buffer overflow (closes #20246)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1620,6 +1620,16 @@ class BufferIOTest(SocketConnectedTest):
_testRecvFromIntoMemoryview = _testRecvFromIntoArray
+ def testRecvFromIntoSmallBuffer(self):
+ # See issue #20246.
+ buf = bytearray(8)
+ self.assertRaises(ValueError, self.cli_conn.recvfrom_into, buf, 1024)
+
+ def _testRecvFromIntoSmallBuffer(self):
+ with test_support.check_py3k_warnings():
+ buf = buffer(MSG*2048)
+ self.serv_conn.send(buf)
+
TIPC_STYPE = 2000
TIPC_LOWER = 200
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -979,6 +979,7 @@ Eric V. Smith
Christopher Smith
Gregory P. Smith
Roy Smith
+Ryan Smith-Roberts
Rafal Smotrzyk
Dirk Soede
Paul Sokolovsky
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2742,6 +2742,10 @@ sock_recvfrom_into(PySocketSockObject *s
if (recvlen == 0) {
/* If nbytes was not specified, use the buffer's length */
recvlen = buflen;
+ } else if (recvlen > buflen) {
+ PyErr_SetString(PyExc_ValueError,
+ "nbytes is greater than the length of the buffer");
+ goto error;
}
readlen = sock_recvfrom_guts(s, buf.buf, recvlen, flags, &addr);

View File

@@ -8,11 +8,11 @@ with stdenv.lib;
let
majorVersion = "2.7";
version = "${majorVersion}.5";
version = "${majorVersion}.6";
src = fetchurl {
url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.bz2";
sha256 = "0nc091f19sllibvxm6n3qw5pflcphkwwxmz43q26lqafhra7airv";
url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.xz";
sha256 = "18gnpyh071dxa0rv3silrz92jw9qpblswzwv4gzqcwxzz20qxmhz";
};
patches =
@@ -28,6 +28,10 @@ let
# patch python to put zero timestamp into pyc
# if DETERMINISTIC_BUILD env var is set
./deterministic-build.patch
# See http://bugs.python.org/issue20246
# This will be fixed in 2.7.7.
./CVE-2014-1912.patch
];
postPatch = stdenv.lib.optionalString (stdenv.gcc.libc != null) ''

View File

@@ -0,0 +1,57 @@
# Edited from Mercurial patch: deleted the NEWS hunk, since it didn't apply cleanly.
# It added the following line to NEWS:
# - Issue #20246: Fix buffer overflow in socket.recvfrom_into.
# HG changeset patch
# User Benjamin Peterson <benjamin@python.org>
# Date 1389671978 18000
# Node ID 9c56217e5c793685eeaf0ee224848c402bdf1e4c
# Parent 2b5cd6d4d149dea6c6941b7e07ada248b29fc9f6
complain when nbytes > buflen to fix possible buffer overflow (closes #20246)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1968,6 +1968,14 @@ class BufferIOTest(SocketConnectedTest):
_testRecvFromIntoMemoryview = _testRecvFromIntoArray
+ def testRecvFromIntoSmallBuffer(self):
+ # See issue #20246.
+ buf = bytearray(8)
+ self.assertRaises(ValueError, self.cli_conn.recvfrom_into, buf, 1024)
+
+ def _testRecvFromIntoSmallBuffer(self):
+ self.serv_conn.send(MSG*2048)
+
TIPC_STYPE = 2000
TIPC_LOWER = 200
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1020,6 +1020,7 @@ Eric V. Smith
Christopher Smith
Gregory P. Smith
Roy Smith
+Ryan Smith-Roberts
Rafal Smotrzyk
Dirk Soede
Paul Sokolovsky
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2598,6 +2598,11 @@ sock_recvfrom_into(PySocketSockObject *s
if (recvlen == 0) {
/* If nbytes was not specified, use the buffer's length */
recvlen = buflen;
+ } else if (recvlen > buflen) {
+ PyBuffer_Release(&pbuf);
+ PyErr_SetString(PyExc_ValueError,
+ "nbytes is greater than the length of the buffer");
+ return NULL;
}
readlen = sock_recvfrom_guts(s, buf, recvlen, flags, &addr);

View File

@@ -32,6 +32,12 @@ stdenv.mkDerivation {
sha256 = "0pxs234g08v3lar09lvzxw4vqdpwkbqmvkv894j2w7aklskcjd6v";
};
patches =
[
# See http://bugs.python.org/issue20246
./CVE-2014-1912.patch
];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
preConfigure = ''

View File

@@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
sed -e 's@</fontconfig>@@' -i chroot-fontconfig/fonts.conf
echo "<dir>${liberation_ttf}</dir>" >> chroot-fontconfig/fonts.conf
echo "</fontconfig>" >> chroot-fontconfig/fonts.conf
export FONTCONFIG_FILE=$(pwd)/chroot-fontconfig/fonts.conf
cd src
@@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "--enable-shared" "--enable-lt=${libtool}/bin/libtool" ];
NIX_LDFLAGS = "-lgcc_s";
postInstall = ''
for p in $(ls $out/bin/) ; do
wrapProgram $out/bin/$p --prefix LD_LIBRARY_PATH ":" "${ffiSharedLibs}" ;

View File

@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
name = "ruby-${version}";
src = fetchurl {
url = "ftp://ftp.ruby-lang.org/pub/ruby/1.8/${name}.tar.gz";
sha256 = "0g2dsn8lmiqwqsp13ryzi97qxr7742v5l7v506x6wq9aiwpk42p6";
url = "http://cache.ruby-lang.org/pub/ruby/1.8/${name}.tar.bz2";
sha256 = "b4e34703137f7bfb8761c4ea474f7438d6ccf440b3d35f39cc5e4d4e239c07e3";
};
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
@@ -45,7 +45,7 @@ stdenv.mkDerivation rec {
passthru = rec {
majorVersion = "1.8";
minorVersion = "7";
patchLevel = "371";
patchLevel = "374";
libPath = "lib/ruby/${majorVersion}";
gemPath = "lib/ruby/gems/${majorVersion}";
};

View File

@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "ftp://ftp.ruby-lang.org/pub/ruby/1.9/${name}.tar.bz2";
sha256 = "0w1avj8qfskvkgvrjxxc1cxjm14bf1v60ipvcl5q3zpn9k14k2cx";
sha256 = "0fdc6e860d0023ba7b94c7a0cf1f7d32908b65b526246de9dfd5bb39d0d7922b";
};
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
@@ -62,7 +62,7 @@ stdenv.mkDerivation rec {
passthru = rec {
majorVersion = "1.9";
minorVersion = "3";
patchLevel = "429";
patchLevel = "484";
libPath = "lib/ruby/${majorVersion}";
gemPath = "lib/ruby/gems/${majorVersion}";
};

View File

@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "ftp://ftp.ruby-lang.org/pub/ruby/2.0/${name}.tar.bz2";
sha256 = "0pr9jf01cfap93xcngyd5zpns67ffjsgaxkm0qr1r464rj9d7066";
sha256 = "3de4e4d9aff4682fa4f8ed2b70bd0d746fae17452fc3d3a8e8f505ead9105ad9";
};
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
passthru = rec {
majorVersion = "2.0";
minorVersion = "0";
patchLevel = "0";
patchLevel = "353";
libPath = "lib/ruby/${majorVersion}";
gemPath = "lib/ruby/gems/${majorVersion}";
};

Some files were not shown because too many files have changed in this diff Show More