Compare commits

..

866 Commits

Author SHA1 Message Date
Nikolay Amiantov
dda40aa8d1 Revert "liferea: 1.10.18 -> 1.12-rc2"
This reverts commit 73d9d2d577.

It was pushed here accidentially, I've meant 17.03.
2017-03-04 01:15:25 +03:00
Nikolay Amiantov
73d9d2d577 liferea: 1.10.18 -> 1.12-rc2
It's a release candidate but it works with new WebKitGTK and we don't build old
one anymore because of vulnerabilities.

(cherry picked from commit 4a6ba21bdd)
2017-03-04 01:05:37 +03:00
Domen Kožar
5f94adc918 nixos: fix terminal-server, fixes #21834
(cherry picked from commit e5dcce837a)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-01-12 16:42:52 +01:00
Tim Steinbach
294648246d linux: 4.4.30 -> 4.4.31
(cherry picked from commit 579f5fd9dd)
2016-11-12 12:39:53 +03:00
Aneesh Agrawal
d4e38c02dc openssh: Patch CVE-2016-8858
Also add myself as a maintainer.

(cherry picked from commit 7374105a96)
2016-11-12 12:39:53 +03:00
Graham Christensen
3bf5398aeb openssh: apply patch to fix https://bugzilla.redhat.com/show_bug.cgi?id=1380296
(cherry picked from commit 83a8cb1dc2)
2016-11-12 12:39:53 +03:00
Benjamin Staffin
385c74483f openssh: update gssapi patch, fix the build
(cherry picked from commit 43dcb662e7)
2016-11-12 12:39:53 +03:00
Aneesh Agrawal
9366a9bc9f openssh: 7.2p2 -> 7.3p1 (#17493)
Also remove patch for CVE-2015-8325 that has been fixed upstream.
(cherry picked from commit f6eae2efab)
2016-11-12 12:39:52 +03:00
Aneesh Agrawal
759faee13c openssh: update homepage link
Unfortunately, the site is not available over HTTPS.

(cherry picked from commit 2dd09b634e)
2016-11-12 12:39:52 +03:00
Eelco Dolstra
5a090dd515 debian: 8.5 -> 8.6
(cherry picked from commit f081a1aaf4)
2016-11-08 18:04:35 +01:00
Eelco Dolstra
dba154a11a linux: 4.4.26 -> 4.4.30 (close #20226)
(cherry picked from commit ef1a188e07)
2016-11-07 16:51:52 +01:00
Graham Christensen
0973d27ddb tre: add patch for CVE-2016-8859
(cherry picked from commit cd67a0aada)
2016-11-02 12:00:21 +01:00
Eelco Dolstra
c1c0484041 initrd: Include i8042 kernel module
For some reason, between Linux 4.4.19 and 4.4.20, the atkbd and libps2
kernel modules lost their dependency on i8042 in modules.dep, causing
i8042 not to be included in the initrd. This breaks keyboard in the
initrd, in turn breaking LUKS.

This only happens on the 16.03 branch; on 16.09, it appears i8042 is
pulled into the initrd anyway (through some other dependency,
presumably). But let's include it explicitly.

http://hydra.nixos.org/build/40468431
(cherry picked from commit e6088f77be)
2016-10-21 14:30:20 +02:00
Eelco Dolstra
4bd888fb59 linux: 4.4.25 -> 4.4.26
(cherry picked from commit 76a57d83b5)
2016-10-20 13:39:40 +02:00
Eelco Dolstra
31e0e38c26 linux: 4.4.24 -> 4.4.25
(cherry picked from commit 13f43c7ebc)
2016-10-20 13:39:07 +02:00
Tim Steinbach
3af2088b3c linux: 4.4.23 -> 4.4.24 (#19346)
(cherry picked from commit a699eb4798)
2016-10-20 13:38:59 +02:00
Eelco Dolstra
44557795ae linux: 4.4.22 -> 4.4.23
(cherry picked from commit 613a12a8bd)
2016-10-20 13:38:47 +02:00
Franz Pletz
bc6ae16dbb linux: 4.4.20 -> 4.4.22
(cherry picked from commit c83f8a536a)
2016-10-20 13:38:34 +02:00
Vladimír Čunát
a8210cfcd6 intltool: fix #19487 patch download
It's strange.  Maybe they prune the history.

(cherry picked from commit e4d3254101)
2016-10-13 21:56:43 +02:00
Jon Banafato
fa2e6fec02 gnome-maps: add webkitgtk to buildInputs
Per #17143 on GitHub, `gnome-maps` currently fails due to missing
Webkit2. Adding `webkitgtk` to `buildInputs` fixes the issue.

(cherry picked from commit ecd41c19b8)

[Bjørn: orig commit was for GNOME 3.20, I backported it to 3.18 (trivial).]
2016-10-02 20:23:36 +02:00
Thomas Tuegel
9851ca2cb0 dropbox: 11.4.20 -> 11.4.21
(cherry picked from commit ad6b2a68a7)
2016-09-30 14:45:33 -05:00
Tim Steinbach
1abec08343 openvpn: 2.3.10 -> 2.3.12
(cherry picked from commit 244aee5cd1)
2016-09-29 23:22:57 +02:00
Thomas Tuegel
46cfd78b5a spotify: unpack into temporary directory to fix output permissions
(cherry picked from commit f2806a09c4)
2016-09-27 13:50:26 -05:00
Thomas Tuegel
62754725d5 spotify: 1.0.37.152 -> 1.0.38.171
(cherry picked from commit 8e83bb4220)
2016-09-27 13:50:18 -05:00
Peter Simons
29c970988e bind: update to version 9.10.4-P3 to fix CVE-2016-2776
Dropped libressl.patch in the process since this code appears to be
included in newer versions of BIND.
2016-09-27 19:36:19 +02:00
Thomas Tuegel
fb0bab3e8e dropbox: 10.4.26 -> 11.4.20
(cherry picked from commit 240552cba1)
2016-09-26 15:48:51 -05:00
Thomas Tuegel
9dbad47115 dropbox: 10.4.25 -> 10.4.26
(cherry picked from commit 41e0146136)
2016-09-25 10:44:00 -05:00
Vladimír Čunát
3d432d39f0 Merge #18905: ffmpeg: 2.8.6 -> 2.8.8
It contains security fixes.

(cherry picked from commit c3d1caf97b)
2016-09-24 17:42:09 +02:00
Graham Christensen
8a61594f5a lighttpd: 1.4.40 -> 1.4.41
(cherry picked from commit 33be079486)
2016-09-24 11:32:47 +02:00
Bjørn Forsman
91ca9c05f9 lighttpd: 1.4.39 -> 1.4.40
Major bug-fix release; hundreds of issues resolved in issue tracker.

https://www.lighttpd.net/2016/7/16/1.4.40/
(cherry picked from commit 2173e6b49a)
2016-09-24 11:31:14 +02:00
Franz Pletz
b593d62ab8 lighttpd: 1.4.37 -> 1.4.39
(cherry picked from commit 669cd2adbf)
2016-09-24 11:31:05 +02:00
Frederik Rietdijk
43e690f35c pythonPackages.tornado: fix tests, closes #14634
The test runner would import all modules to check whether they might
have tests.

On a Linux system it would load the Tornado module that depends on
kqueue, which is BSD only, and fail.

(cherry picked from commit 6876eab511)
2016-09-22 09:52:28 +02:00
Tom Hunger
70c459e9e4 tornado: disable tests, see #14634
(cherry picked from commit 5b782924c1)
2016-09-22 09:52:17 +02:00
Vladimír Čunát
92c6a44b9e treewide: change $IN_NIX_SHELL handling
... to be compatible with https://github.com/NixOS/nix/pull/933
while not breaking compatibility with current nix.

(cherry picked from commit d4de02c46e)
2016-09-20 14:32:41 +02:00
aszlig
9f765f928b nixos/networking: Use type lines for localCommands
Using types.str doesn't work if you want to mkBefore/mkAfter across
different module definitions, because it only allows for one definition
for the same priority.

This is especially useful if you deploy Hetzner machines via NixOps,
because the physical specification already defines localCommands.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 97801380b0)
2016-09-20 13:34:44 +02:00
Peter Simons
613eb006e2 nbd: update to version 3.14
(cherry picked from commit 545040811b)
2016-09-19 15:46:54 +02:00
Franz Pletz
b8f7f0e8ab php70: 7.0.10 -> 7.0.11 (security)
See https://secure.php.net/ChangeLog-7.php#7.0.11.

(cherry picked from commit a32281639e)
2016-09-15 14:02:02 +02:00
Herwig Hochleitner
745e18df16 dropbox: 9.4.49 -> 10.4.25
(cherry picked from commit 85fdf8665f)
2016-09-14 12:21:49 -05:00
taku0
42d08c2882 flashplayer: 11.2.202.632 -> 11.2.202.635
(cherry picked from commit 8b6e522bf8)
2016-09-14 17:22:40 +02:00
Franz Pletz
70b9bf3f77 perlPackages.WWWCurl: fix build due to curl 5.10.3
The define CURL_STRICTER is only set if CURL_NO_OLDIES is set, but that breaks
compatibility with this package. Defining CURL_STRICTER is enough to fix the
build.

(cherry picked from commit 46790f360d)
2016-09-14 10:24:13 +02:00
Franz Pletz
ed27ce5a46 curl: 7.50.1 -> 7.50.3, fix CVE-2016-7167
(cherry picked from commit 4ecd0e7434)
2016-09-14 09:02:02 +02:00
Sander van der Burg
36d8acec2b disnix: 0.6 -> 0.6.1
(cherry picked from commit 77b9abf78c)
2016-09-13 19:48:33 +00:00
Sander van der Burg
178282adae dysnomia: bump to version 0.6.1
(cherry picked from commit 2edb28ffc5)
2016-09-13 19:43:49 +00:00
Eelco Dolstra
e302218576 Use builtins.partition if available
(cherry picked from commit 822e1ddd89)
2016-09-12 23:37:29 +02:00
Eelco Dolstra
03fea35ebe enableParallelBuild -> enableParallelBuilding
(cherry picked from commit 02ee9d83d0)
2016-09-12 23:35:41 +02:00
Eelco Dolstra
883f2912e6 chatzilla: 0.9.91 -> 0.9.92
(cherry picked from commit 445a39a23b)
2016-09-12 23:34:55 +02:00
Eelco Dolstra
851c0fd22c nix: Enable install check
Looks like this got disabled accidentally in
ec5b66eb4a.

(cherry picked from commit 6a9fb8b9e0)
2016-09-12 23:34:40 +02:00
Eelco Dolstra
7455231091 linux: 4.4.19 -> 4.4.20
(cherry picked from commit bc7e4e390a)
2016-09-12 23:30:26 +02:00
Eelco Dolstra
0db7608676 nix: 1.11.3 -> 1.11.4
(cherry picked from commit f2ddf2a9be)
2016-09-12 23:29:46 +02:00
Vladimír Čunát
0b5d170c33 nix: maintenance 1.11.2 -> 1.11.3
Fixes #17804.

(cherry picked from commit 3996aa8953)
2016-09-12 23:27:41 +02:00
Kirill Boltaev
a8e0739e0a gnome2.gnome_settings_daemon: add libSM to fix build
(cherry picked from commit 125188b0dc651fc81709fd7bf380a57cf39b260c)
2016-09-12 03:10:52 +03:00
Kirill Boltaev
c283bb5fac gnome2.at_spi: disable hardening to fix build
(cherry picked from commit 8b96b391db)
2016-09-12 03:08:18 +03:00
Kirill Boltaev
9c0634b886 gnome2.gnome_control_center: add libSM to fix build
(cherry picked from commit e3033d87b3)
2016-09-12 03:08:07 +03:00
Kirill Boltaev
36b0a8a5c6 gtkmathview: mark as broken
(cherry picked from commit 43a8ce0f5e)
2016-09-12 03:08:06 +03:00
Kirill Boltaev
b38af9c899 gnome2.gnome_session: mark as broken
(cherry picked from commit 605ddb1047)
2016-09-12 03:08:04 +03:00
Matt Billenstein
fcf24d378c mongodb: 3.2.1 -> 3.2.9
[Bjørn: add missing hash update.]

(cherry picked from commit a83f70c249)
2016-09-09 16:09:31 +02:00
Bjørn Forsman
28fc7e76cd plantuml: 8037 -> 8047
(cherry picked from commit daf068c33b)
2016-09-08 23:21:54 +02:00
Raymond Gauthier
dac192879b plantuml: 8012 -> 8037
Updated to latest stable version.

(cherry picked from commit 5e9a344e62)
2016-09-08 23:21:50 +02:00
Eelco Dolstra
efe2d64b33 charybdis: Fix eval
http://hydra.nixos.org/build/40042712
2016-09-07 10:41:26 +02:00
Franz Pletz
d98383328c charybdis: 3.5.1 -> 3.5.3 (security)
Fixes CVE-2016-7143 (certificate fingerprint spoofing through crafted
SASL messages).

(cherry picked from commit 5f6557d437)
2016-09-07 08:17:25 +02:00
Franz Pletz
f2109ae52c graphicsmagick: 1.3.24 -> 1.3.25 (security)
Includes some security fixes, see

  http://www.graphicsmagick.org/NEWS.html#september-5-2016

(cherry picked from commit 5929399527)
2016-09-07 07:10:32 +02:00
Rob Vermaas
b7d79b9e01 Update maintainers alias to github name. 2016-09-06 09:39:29 +00:00
Alexander Ried
6ac7ffd9d7 tomcat5: remove since it's end of life (#18341)
Source is not available anymore.
(cherry picked from commit 36e8df19e1)
2016-09-06 04:05:10 +02:00
Graham Christensen
b6b0fcbccc Merge pull request #18329 from grahamc/broadcom-sta
Backport broadcom-sta fixes from master to release-16.03
2016-09-05 21:27:01 -04:00
Graham Christensen
d8bade9460 Merge pull request #18330 from grahamc/nvidia-x11
nvidia-x11 fixes from master to release-16.03
2016-09-05 21:25:31 -04:00
aszlig
8daf7e99af broadcom_sta: Add patch to fix NULL pointer deref
The patch is from the following Gentoo bug:

https://bugs.gentoo.org/show_bug.cgi?id=523326#c24

Built successfully against Linux 3.18.36, 4.4.16 and 4.7.0.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @phreedom, @vcunat
(cherry picked from commit fef4b62657)
2016-09-05 17:32:51 -04:00
aszlig
cbdd371988 broadcom_sta: Reindent file, no code changes
Let's make sure we indent using two spaces, because the unpackPhase was
indented using four spaces.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 8f08399671)
2016-09-05 17:32:49 -04:00
aszlig
531a73d4d0 broadcom_sta: Add patch for supporting Linux 4.7
Patch is from Arch Linux at:

https://aur.archlinux.org/cgit/aur.git/tree/?h=broadcom-wl

I've tested building against 3.18.36, 4.4.16 and 4.7.0.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @phreedom, @vcunat
(cherry picked from commit 4d3545f2a5)
2016-09-05 17:32:47 -04:00
aszlig
5fb7b4b2aa broadcom_sta: 6.30.223.248 -> 6.30.223.271
The patch for kernel version 3.18 is already applied upstream, so we
don't need it any longer.

Without i686-build-failure.patch, the build for i686-linux fails because
it references rdtscl(), which is no longer available in Linux 4.3.0.

Patch for missing rdtscl() is from Arch Linux:

https://aur.archlinux.org/cgit/aur.git/tree/002-rdtscl.patch?h=broadcom-wl-ck

I've tested building against 32 and 64 bit Linux versions 3.18.36,
4.4.16 and 4.7.0.

The hashes were verified using the ones from the AUR (using the 16 bit
hashes of course):

$ nix-hash --type sha256 --to-base16 1kaqa2dw3nb8k23ffvx46g8jj3wdhz8xa6jp1v3wb35cjfr712sg
4f8b70b293ac8cc5c70e571ad5d1878d0f29d133a46fe7869868d9c19b5058cd
$ nix-hash --type sha256 --to-base16 1gj485qqr190idilacpxwgqyw21il03zph2rddizgj7fbd6pfyaz
5f79774d5beec8f7636b59c0fb07a03108eef1e3fd3245638b20858c714144be

AUR hashes can be found at:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=broadcom-wl&id=9d6f10b1b7745fbf5d140ac749e2253caf70daa8#n26

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @phreedom, @vcunat
(cherry picked from commit bd7ce1581d)
2016-09-05 17:32:44 -04:00
Frederik Rietdijk
fa9432161e nvidia-x11: fix driSupport32Bit
(cherry picked from commit 8eb4b3af10)
2016-09-05 17:31:56 -04:00
Karn Kallio
5a147f7d82 nvidia-x11: advance to 365.35 and patch kernel 4.7.
(cherry picked from commit 5d11dac8bb)
2016-09-05 17:31:49 -04:00
Shea Levy
cbb1774631 Backport proofgeneral_HEAD 2016-09-05 11:46:17 -04:00
Bjørn Forsman
c84026f7a9 owncloud-client: 2.2.1 -> 2.2.3
Changelog: https://owncloud.org/changelog/desktop/
(cherry picked from commit 5120af001f)
2016-09-05 08:14:14 +02:00
Cast
d13aad6d53 owncloud: 2.1.1 -> 2.2.1
(cherry picked from commit 0efb130d50)
2016-09-05 08:14:00 +02:00
Mayeu - Cast
4967be3d22 owncloud-client: Fix "libocsync.so.0 not found" error
Close #15130

(cherry picked from commit 61b4f1463c)
2016-09-05 08:13:48 +02:00
Micxjo Funkcio
6a4afcded0 owncloudclient: 1.7.1 -> 2.1.1
(cherry picked from commit 23fad46b76)

[Bjørn: unbreaks build (fixes #17016).]
2016-09-05 08:10:13 +02:00
Peter Hoeg
18821680f6 dropbox: 8.4.21 -> 9.4.49
(cherry picked from commit d0ef7140e9)
2016-09-03 16:57:41 +02:00
Thomas Tuegel
46d9f15f4a spotify: 1.0.36 -> 1.0.37
(cherry picked from commit 7bc711e0a7)

The old version is no longer available.
2016-09-02 08:53:54 -05:00
Michael Raskin
546618ccaa libreoffice: 5.1.2.2 -> 5.1.5.2 (fixes CVE-2016-4324) 2016-09-01 10:06:54 +02:00
Tuomas Tynkkynen
8fe93051f6 nilfs-utils: Set dontPatchELF due to broken RPATH by patchelf
(cherry picked from commit 96004b9d8c)
2016-09-01 01:49:52 +03:00
Robin Gloster
17b51929df linux_4_6: fix by removing upstreamed patch
(cherry picked from commit 1e806458dc)

fixes #18157
2016-08-31 14:45:25 +02:00
Thomas Tuegel
31c0cc5531 Merge pull request #18106 from peterhoeg/db_stable
dropbox: 3.20.1 -> 8.4.21
2016-08-31 07:33:25 -05:00
Eelco Dolstra
fe242af45c thunderbird: 45.2.0 -> 45.3.0
(cherry picked from commit 25c9f2729e)
2016-08-31 14:14:09 +02:00
Eelco Dolstra
6c40d62ae2 firefox: 48.0 -> 48.0.2
(cherry picked from commit c2fb3490c9)
2016-08-31 14:06:12 +02:00
Domen Kožar
34175e7d69 sct: backport #17163 2016-08-31 11:56:24 +02:00
Peter Hoeg
90430d4a13 dropbox: 3.20.1 -> 8.4.21 2016-08-30 11:00:19 +08:00
Frederik Rietdijk
7bcf764af8 mendeley: add missing liborc
(cherry picked from commit aca4801f53)
2016-08-29 10:36:53 +02:00
Frederik Rietdijk
4321379991 liborc: init at 0.4.16
(cherry picked from commit 5da0b34591)
2016-08-29 10:36:45 +02:00
Frederik Rietdijk
fa39eb12d0 mendeley: 1.16.1 -> 1.16.2
(cherry picked from commit d87b415dec)
2016-08-29 10:05:32 +02:00
Rahul Gopinath
697e631973 mendeley: fix sha
(cherry picked from commit 1df37fe7a8)
2016-08-29 10:05:20 +02:00
Bjørn Forsman
f36e610413 borgbackup: 1.0.6 -> 1.0.7
(cherry picked from commit 1ba0ef1c73)
2016-08-28 10:51:09 +02:00
Tobias Geerinckx-Rice
d5dd4a6711 borgbackup: 1.0.5 -> 1.0.6
(cherry picked from commit 0e003d39bc)
2016-08-28 10:49:26 +02:00
Nikolay Amiantov
576be66c64 svox: init at 2016-01-25 2016-08-27 00:45:48 +03:00
Nikolay Amiantov
6bb7c96519 mumble: 1.2.10 -> 1.2.15
(cherry picked from commit 6900fdc84b)
2016-08-26 23:30:43 +02:00
Nikolay Amiantov
a91e5c630c mumble: fix speechd support
(cherry picked from commit 5489bc4109)
2016-08-26 23:30:43 +02:00
Nikolay Amiantov
047df60ba7 speechd: 0.7.1 -> 0.8.3
Make it actually useful -- support sound output and several voice modules

(cherry picked from commit f3435096e2)
2016-08-26 23:30:43 +02:00
Franz Pletz
f209ff7757 linux: 4.4.18 -> 4.4.19
(cherry picked from commit aacf6651c1)
2016-08-26 14:48:53 +02:00
Franz Pletz
372a953f31 linux: 4.1.30 -> 4.1.31
(cherry picked from commit 90251478ec)
2016-08-26 14:48:51 +02:00
Franz Pletz
023b486d55 linux: 3.18.36 -> 3.18.40
(cherry picked from commit 377c851395)
2016-08-26 14:48:49 +02:00
Franz Pletz
edf8e8caa4 linux: 3.14.73 -> 3.14.77
(cherry picked from commit dc37edb36c)
2016-08-26 14:48:48 +02:00
Franz Pletz
427e2bb516 linux: 3.12.61 -> 3.12.62
(cherry picked from commit 458d477215)
2016-08-26 14:48:42 +02:00
Vladimír Čunát
15dd86b92e texlive: sync package versions from current master
Fixes #17907, hopefully. The likelihood of fixing a setup
seems better than the likelihood of breaking it.
2016-08-25 22:41:25 +02:00
Vladimír Čunát
4f8cfadb6e Merge #17928: openssl: fix CVE-2016-2177
(cherry picked from commit 801692c3dd)
2016-08-25 22:31:46 +02:00
Lluís Batlle i Rossell
8911ef5132 fossil: update to 1.35
(cherry picked from commit 3aa8f23aec)

Fixing minimal conflicts.
2016-08-25 18:13:55 +02:00
Kevin Marsh
2983880d18 pythonPackages.django_1_9: 1.9.5 -> 1.9.9
(cherry picked from commit c9b29d4e5f)
2016-08-25 18:10:41 +02:00
Kevin Marsh
9bcf8bd223 pythonPackages.django_1_8: 1.8.12 -> 1.8.14
(cherry picked from commit dfb7d6c223)
2016-08-25 18:10:30 +02:00
Franz Pletz
7bc02d0c7f apacheHttpd: 2.4.20 -> 2.4.23 (security)
Fixes CVE-2016-4979.

(cherry picked from commit 4cb7272537)
2016-08-25 03:12:34 +02:00
Tim Steinbach
c5cbda2414 linux: 4.7.1 -> 4.7.2
(cherry picked from commit 175028582c)
2016-08-21 10:15:15 -04:00
Joachim F
5c40862598 Merge pull request #17849 from a1russell/idea
Idea: 2016.1.2 -> 2016.2
2016-08-20 12:04:19 +02:00
Peter Hoeg
03f9a518f0 spotify: 1.0.34.146 -> 1.0.36.120
(cherry picked from commit cb6d258738)
2016-08-19 18:09:02 +02:00
Thomas Tuegel
c7a3fef5a0 spotify: 1.0.33.106 -> 1.0.34.146
(cherry picked from commit 8dc53d76d5)
2016-08-19 18:08:51 +02:00
Vladimír Čunát
3a25b26b2e gnutls*: drop the parallel-build hack
... as it didn't work, apparently: 024cb9ee

(cherry picked from commit 6d75fd1476)
2016-08-19 17:08:13 +02:00
Vladimír Čunát
4dc0b15d94 gnutls33: maintenance 3.3.18 -> 3.3.24
(cherry picked from commit 1441366fdd)
2016-08-19 17:07:33 +02:00
Vladimír Čunát
677910da30 gnutls: security 3.4.13 -> 3.4.14
http://gnutls.org/security.html#GNUTLS-SA-2016-2
(no CVE seems assigned ATM)

(cherry picked from commit cd07a6b4dd)
2016-08-19 17:07:30 +02:00
Edward Tjörnhammar
81ce50f02f idea.idea-{community,ultimate}: 2016.1.3 -> 2016.2
(cherry picked from commit 6423ded1bc)
2016-08-19 09:20:32 -05:00
José Romildo Malaquias
2b573e92d5 idea.idea-{community,ultimate}: 2016.1.2 -> 2016.1.3
(cherry picked from commit a6fd3e8680)
(cherry picked from commit 1f77d3cd09)
2016-08-19 09:19:22 -05:00
Rob Vermaas
9994c07ef7 Update TexLive hashes. 2016-08-18 22:19:19 +00:00
Gabriel Ebner
018c04c7ac libewf: fix build with gcc 5
Fixes #15289.

(cherry picked from commit 75d1e986a7)
2016-08-18 22:11:27 +02:00
Rob Vermaas
4396e8f8a3 Set GIT_SSL_CAINFO for fetch-bower 2016-08-18 19:58:45 +00:00
Ricardo M. Correia
a53bb3ceb1 zfs: print the output of the zpool command (if any) when it succeeds
(cherry picked from commit 1cf9bcaa3f)
2016-08-18 17:39:51 +02:00
Svein Ove Aas
5688c39af5 zfs: Keep trying root import until it works
Works around #11003.

(cherry picked from commit 98b213a110)

Reason: several people cannot boot with ZFS on NVMe
2016-08-18 17:38:55 +02:00
Rok Garbas
81a8ce8668 Merge pull request #17816 from lancelotsix/CVE-2016-6313_on_16.03
Update gnupg and libgcrypt on release-16.03 (fixes CVE-2016-6313)
2016-08-18 12:59:46 +02:00
Lancelot SIX
f026bbcba2 gnupg1orig: 1.4.20 -> 1.4.21
Fixes CVE-2016-6313.

See http://lists.gnu.org/archive/html/info-gnu/2016-08/msg00008.html
2016-08-18 11:57:42 +02:00
Lancelot SIX
9cad85016e libgcrypt: 1.6.5 -> 1.6.6
Fixes CVE-2016-6313.

See http://lists.gnu.org/archive/html/info-gnu/2016-08/msg00008.html
2016-08-18 11:57:26 +02:00
Lancelot SIX
5ae1b21df5 libgcrypt_1_5: 1.5.4 -> 1.5.6
Fixes CVE-2016-6313.

See http://lists.gnu.org/archive/html/info-gnu/2016-08/msg00008.html
2016-08-18 11:57:00 +02:00
Lluís Batlle i Rossell
5237768d62 Updating mlt to 6.2.0
(cherry picked from commit 93d8ab8007)

I checked with kdenlive people, and they say that we should always use the
latest mlt possible; that it should not be any problem, and provide only
improvements.

(cherry picked from commit 9f9cac34d3)
2016-08-18 11:22:43 +02:00
Lluís Batlle i Rossell
a898588dd6 Fixing build of shotcut, after cherrypicks from master. 2016-08-18 09:53:29 +02:00
Lluís Batlle i Rossell
f3edc3cd8c More dependencies to shotcut
(cherry picked from commit e31951cb88)
2016-08-18 09:49:08 +02:00
Lluís Batlle i Rossell
aae489527a Shotcut builds, but wants jack1 libs on start.
(cherry picked from commit 5b3c885b35)
2016-08-18 09:48:59 +02:00
Lluís Batlle i Rossell
4e2a6fd288 Removing old traces of broken=true in shotcut 2016-08-18 09:47:45 +02:00
Robert Helgesson
14975c8db8 redstore: fix build under recent glibc
Previously the build would fail due to, e.g., `getaddrinfo` not being
defined.

(cherry picked from commit a4ae7b87f0)
2016-08-17 22:35:04 +02:00
Franz Pletz
bd148edee2 linux: 4.7 -> 4.7.1
(cherry picked from commit 2571438988)
2016-08-17 05:47:21 +02:00
Franz Pletz
37554cb0fd linux: 4.6.6 -> 4.6.7
Fixes CVE-2016-5696.

(cherry picked from commit 7a4407461b)
2016-08-17 05:47:14 +02:00
Franz Pletz
5215a29740 linux: 4.4.17 -> 4.4.18
Fixes CVE-2016-5696.

(cherry picked from commit da95fb368c)
2016-08-17 05:46:51 +02:00
Franz Pletz
a7be831b43 linux: 4.1.27 -> 4.1.30
Fixes CVE-2016-5696.

(cherry picked from commit 2104d28bcd)
2016-08-17 05:46:51 +02:00
Franz Pletz
106e2c1362 postgresql: security updates for all versions
Fixes CVE-2016-5423 and CVE-2016-5424.

See https://www.postgresql.org/about/news/1688/.

(cherry picked from commit 2709079569)
2016-08-16 18:39:20 +02:00
jokogr
baf46b99e3 syncthing: 0.14.3 -> 0.14.4 (#17723) (#17776)
(cherry picked from commit 6172662676)
2016-08-16 14:52:24 +02:00
Nikolay Amiantov
f6a4aa0697 audacity: 2.1.1 -> 2.1.2
(cherry picked from commit 3c4f861200)
2016-08-16 10:27:02 +02:00
Eelco Dolstra
33b8e724ad systemd: Apply upstream bug fix
https://github.com/systemd/systemd/pull/2695
2016-08-15 19:29:44 +02:00
Shea Levy
9906378e77 long-shebang: 1.0.1 -> 1.1.0
(cherry picked from commit 7069047f2e)
2016-08-14 12:33:55 -04:00
Shea Levy
a686013321 long-shebang: 1.0.0 -> 1.0.1
(cherry picked from commit 670801a56a)
2016-08-14 10:58:59 -04:00
obadz
154263c07e Revert "linux kernel 4.4: fix race during build"
Removes patch. Was fixed upstream.

This reverts commit 4788ec1372.
2016-08-12 16:45:13 +01:00
Franz Pletz
985f9ffa59 linux: fix build, remove upstreamed patches
(cherry picked from commit 263fff0ab8)
2016-08-12 17:09:11 +02:00
Domen Kožar
dfa909e74d add Fedora 24
(cherry picked from commit b9e009b5b5)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-08-12 16:44:57 +02:00
obadz
96924b9f28 Revert "ecryptfs: fix kernel bug introduced in 4.4.14"
The Linux 4.4.17 release fixes the underlying issue

This reverts commit fad9a8841b.

(cherry picked from commit 18947c9e36)
2016-08-12 10:56:04 +01:00
Eelco Dolstra
189781a5ad firefox: 47.0.1 -> 48.0
(cherry picked from commit 8877b93649)
2016-08-12 11:30:23 +02:00
Eelco Dolstra
65b384d9bd nss: 3.24 -> 3.26
(cherry picked from commit 6aabe2e4bb)
2016-08-12 11:25:21 +02:00
rnhmjoj
d2bcccfaf0 nss: 3.23 -> 3.24
(cherry picked from commit f2842da8b2)
2016-08-12 11:25:16 +02:00
Eelco Dolstra
7d5a5e146e linux: 4.4.16 -> 4.4.17
(cherry picked from commit e26ac7afd4)
2016-08-12 11:24:45 +02:00
Eelco Dolstra
56c10200ae linux: 4.4.16 -> 4.4.16
(cherry picked from commit 42f8df10a2)
2016-08-12 11:24:41 +02:00
Frederik Rietdijk
3234a4a26f Merge pull request #17556 from jokogr/upgrade/syncthing-16.03
syncthing:  0.12.25 -> 0.14.3  (backport to 16.03)
2016-08-11 09:21:18 +02:00
Joachim Fasting
96097f1ed3 geis: refactor & fix build
- Pass -Wno-error=pedantic to work around ISO C violations
- Build with X11 unconditionally (also rely on pkgconfig for
  detection, --enable-x11 does not work)
- Build against evemu

(cherry picked from commit 3f5d7c7e04)
2016-08-10 19:07:13 +02:00
Rahul Gopinath
ead5d86b86 gnunet: cleanup patching
Do not use loop and sed since sed can take a list of files.

(cherry picked from commit af074c0972)
2016-08-10 18:47:21 +02:00
Rahul Gopinath
3d3a84da43 gnunet: ensure that zlib is actually linked
Fixes #14969

(cherry picked from commit b31ab67a81)
2016-08-10 18:47:15 +02:00
Eelco Dolstra
d502d02dbd Revert "command-not-found: disable module until it's fixed again"
This reverts commit 9ea8f6ad7d.
2016-08-10 18:12:03 +02:00
Domen Kožar
896e54c535 flatten: drastically improve performance, see #17626
(cherry picked from commit ebffa9fd06)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-08-10 17:59:17 +02:00
Eelco Dolstra
7bcd3a9788 Merge pull request #17627 from dguibert/dg/virtualbox-5.0.26
virtualbox: 5.0.20 -> 5.0.26
2016-08-10 12:23:42 +02:00
David Guibert
0471d403df virtualbox: 5.0.20 -> 5.0.26 2016-08-10 12:15:31 +02:00
Franz Pletz
17f6219f38 simp_le: apply patch to update TOS hash
Fixes #17455.

Also see https://github.com/kuba/simp_le/issues/114.

(cherry picked from commit e55aa50175)
2016-08-09 22:14:34 +02:00
Markus Mueller
d6f1895039 ldap module: fix activationScripts declaration
(cherry picked from commit 19ee3baa32)

Closes #11361
2016-08-09 17:36:56 +01:00
Robert Helgesson
cf62a27a32 wsmancli: fix compilation
Without this the package build fails with a linking error. Fixes #14872.

(cherry picked from commit 28f17215b9)
2016-08-07 19:31:15 +02:00
Lluís Batlle i Rossell
1ec1a7c71f Adding kdenlive for kde-5 (15.12).
Merging the branch where I added it, which has some steps
forward/backward.

The changes for master (applications-16.04) are slightly different,
and although I tried to port it there, kdenlive just crashes on start.
Someone should port it there.
2016-08-07 14:25:50 +02:00
Lluís Batlle i Rossell
da1bf5fc71 Making kdenlive find kinit in PATH 2016-08-07 14:21:08 +02:00
Lluís Batlle i Rossell
008f88ae6f Adding the mlt version that matches kdenlive 15.12. 2016-08-07 14:04:44 +02:00
Vladimír Čunát
4c09ea7e3d mesa: vdpau symlinks, broken after 1a52fdc
Fixes #17559. /cc @edolstra.
Using *relative* symlinks doesn't break when moving the files.

(cherry picked from commit 73e1242172)
2016-08-07 11:38:56 +02:00
Lluís Batlle i Rossell
29ebb13afb Revert "Updating mlt to 6.2.0"
This reverts commit 93d8ab8007.
2016-08-06 21:32:08 +02:00
Lluís Batlle i Rossell
06b1f2f3aa More pieces to kdenlive (copied from archlinux) 2016-08-06 17:47:25 +02:00
Peter Hoeg
ac34f8f977 syncthing: 0.14.2 -> 0.14.3 2016-08-06 16:09:22 +03:00
jokogr
22bb834b59 syncthing: 0.14.0 -> 0.14.2 (#17274)
* Update syncthing from 0.14.0 to 0.14.2
* Use fetchFromGitHub instead of fetchgit
* Add joko to package maintainers
2016-08-06 16:09:22 +03:00
Ioannis Koutras
73d54728ca maintainers.nix: add joko 2016-08-06 16:09:22 +03:00
Peter Hoeg
9b3ff00a6f syncthing: 0.13.10 -> 0.14.0 (#17110) 2016-08-06 16:09:22 +03:00
kc1212
0d5c67db6b syncthing: 0.13.9 -> 0.13.10 (#16912) 2016-08-06 16:09:21 +03:00
kc1212
d825227d2c syncthing: 0.13.7 -> 0.13.9 (#16558) 2016-08-06 16:09:21 +03:00
Ioannis Koutras
4c86791195 maintainers.nix: add peterhoeg 2016-08-06 16:09:21 +03:00
Lluís Batlle i Rossell
e17bc0b871 Adding kdenlive for kde5 2016-08-06 14:57:59 +02:00
Lluís Batlle i Rossell
93d8ab8007 Updating mlt to 6.2.0 2016-08-06 14:57:26 +02:00
Peter Hoeg
cbf29a669f syncthing: 0.13.4 -> 0.13.7 2016-08-06 13:41:20 +03:00
Paul Hendry
27f197ca6f syncthing: 0.12.25 -> 0.13.4 (#15730)
Cherry-picked from 8ea1f2d36c

* Rename v0.12.25 package from 'syncthing' to 'syncthing012'
* Remove syncthing011
2016-08-06 13:39:43 +03:00
Franz Pletz
9cb194cfa4 collectd: 5.5.1 -> 5.5.2 (security)
Fixes CVE-2016-6254.

(cherry picked from commit a3f6ca6d17)
2016-08-05 04:10:33 +02:00
Benjamin Staffin
fe8aefa5ed Update google-chrome versions
The previous download links were all broken.

Stable: 51.0.2704.103 -> 52.0.2743.116
Beta:   52.0.2743.41  -> 53.0.2785.34
Dev:    53.0.2767.4   -> 54.0.2816.0
(cherry picked from commit 78e5e61bbe)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-08-04 19:42:53 +02:00
Rob Vermaas
25e68f79e6 Update spotify 2016-08-04 09:12:21 +00:00
Langston Barrett
44b1d6bff3 mopidy service: add default value for configuration (#17385)
Mopidy will start if the configuration is empty.

Fixes #17381.
(cherry picked from commit a28273df32)
2016-08-01 14:54:32 +02:00
Shea Levy
be56795a59 Add dell-530cdn printer driver
(cherry picked from commit 52b787b0cd)
2016-08-01 08:33:14 -04:00
Shea Levy
36bc5257e3 Add long-shebang tool
(cherry picked from commit 03a8f723bd)
2016-07-31 13:12:04 -04:00
artuuge
f5bcd93ea7 epson-escpr: 1.6.4 -> 1.6.5
(cherry picked from commit 03912a2761)
2016-07-29 17:07:37 -04:00
artuuge
392c19f281 update epson-escpr meta
(cherry picked from commit edfb2e7ccb)
2016-07-29 17:07:29 -04:00
artuuge
8ab4500ab4 epson-escpr: 1.6.3 -> 1.6.4
(cherry picked from commit 7ddd6fc1c3)
2016-07-29 17:07:20 -04:00
Rob Vermaas
1425a1f964 dd-agent: support jmx, needs a separate daemon nowadays. 2016-07-29 12:41:35 +00:00
Kranium Gikos Mendoza
b062b52729 pwsafe: 0.95 -> 0.99
(cherry picked from commit cf08d94d18)

pwsafe never built successfully on 16.03; this patch fixes that.
2016-07-28 14:19:05 +02:00
Franz Pletz
f2d4ee1674 php: 5.5.37 -> 5.5.38, 5.6.23 -> 5.6.24 (security)
https://secure.php.net/ChangeLog-5.php#5.5.38
https://secure.php.net/ChangeLog-5.php#5.6.24

(cherry picked from commit 63784b8021)
2016-07-28 06:24:20 +02:00
Teo Klestrup Röijezon
2fb54132c0 oidentd: Set C dialect to gnu89 (broken by GCC 5)
(cherry picked from commit 2d4af4b979)
2016-07-27 15:14:50 +02:00
Robert Helgesson
41c016ee7c autorandr: avoid use of xxd
Use the Python fallback instead of bringing in a dependency on Vim.

(cherry picked from commit 8a82798f97)
2016-07-27 13:27:17 +02:00
Graham Christensen
5deb702e96 autorandr: 4f5e2401ef -> 20150127
wertarbyte has allowed his project to languish, and phillipberdt
has taken it over and is merging pull requests

(cherry picked from commit 7bd2052436)
2016-07-27 13:26:40 +02:00
Lluís Batlle i Rossell
ccd1f37ffe Fix psutils licence.
(cherry picked from commit e412f2199a)
2016-07-27 10:30:42 +02:00
Lluís Batlle i Rossell
d7dca678a9 Adding psutils.
Have we lived without psnup so many years? Incredible.

(cherry picked from commit 03f368ca93)
2016-07-27 10:30:42 +02:00
Kranium Gikos Mendoza
8541088132 vtun: add debian gcc5 fix
(cherry picked from commit 16cc4dd3a3)

See https://hydra.nixos.org/build/35637382/log/raw
2016-07-26 21:58:45 +02:00
Rahul Gopinath
81154eeb07 zandronum: fix build
Fixes #15994

(cherry picked from commit 97dd3b3e62)

See https://hydra.nixos.org/build/37882372/log/raw
2016-07-26 21:47:36 +02:00
Proglodyte
c267320219 v8: fix 4.5.107 build
Similar to #14272, but fixes 4.5 build rather than generic.
- Ignores errors due to strict-overflow warnings
- Strips clang-only '-Wno-format-pedantic' flag out since this build
  uses gcc

(cherry picked from commit 16bd51fc0d)

Fixes https://hydra.nixos.org/build/37879354/nixlog/1/raw
2016-07-26 21:44:47 +02:00
Joachim Fasting
e8395ec41d grsecurity: also disable build of 4.1 packages (16.03)
I failed to realize that 4.1 had not been disabled already
and so this was not included in efb897f221
2016-07-26 21:07:10 +02:00
Vladimír Čunát
ced94a57fb Merge #17141: libidn: security 1.32 -> 1.33
(cherry picked from commit fa1012a294)
2016-07-26 21:00:30 +02:00
Bjørn Forsman
5109827b50 git: fix gitweb.cgi breakage due to missing CGI.pm
CGI.pm was removed from Perl core in v5.22, breaking the gitweb.cgi
script and thus NixOS' services.lighttpd.gitweb. Nixpkgs switched to
Perl 5.22 with a85ba820a4 ("perl: Make 5.22 the default").

Fix it by bringing in the Perl CGI module (and dependency HTMLParser).
The closure size of "nix-build -A git" increase by 1 MiB, to 201 MiB.

(cherry picked from commit e7ef33c50a)
2016-07-26 15:21:13 +02:00
Joachim F
c78f7c4874 Merge pull request #17255 from joachifm/release-16.03-drop-grsec
grsecurity: drop support on 16.03
2016-07-26 10:35:53 +02:00
Vladimír Čunát
f19ce017e6 tiptop: init at 2.3
(cherry picked from commit 375ae11a34)
2016-07-26 11:57:07 +02:00
Joachim Fasting
efb897f221 grsecurity: drop support on 16.03
I'm unable to provide reasonable support for grsecurity on the 16.03 release
branch.  Mark as broken to more accurately reflect the current state of
affairs.  Also disable the grsecurity test.

If sombody wishes to maintain grsecurity on 16.03, please revert this commit.

Closes https://github.com/NixOS/nixpkgs/issues/17061
2016-07-25 19:33:24 +02:00
obadz
ba40b32de2 ecryptfs: fix kernel bug introduced in 4.4.14
Introduced by mainline commit 2f36db7
Patch is from http://www.spinics.net/lists/stable/msg137350.html
Fixes #16766

(cherry picked from commit fad9a8841b)
2016-07-25 14:05:55 +01:00
obadz
932eeb7c0e ecryptfs: cherry-pick test from 4 commits
ecryptfs: add nixos/tests/ecryptfs.nix
(cherry picked from commit ab6fc29719)

ecryptfs: test bug from #16766
(cherry picked from commit d781bf94c1)

ecryptfs: add test to release (#16910)
Would have caught regression #16766
(cherry picked from commit f76a8fbbac)

ecryptfs: add test to release-combined.nix
(cherry picked from commit de80d0544c)
2016-07-25 14:05:55 +01:00
Shea Levy
6d520cec5c Linux 4.7
(cherry picked from commit ac93e9f2c8)
2016-07-24 18:35:08 -04:00
Robert Helgesson
20a83abdcf stellarium: 0.14.2 -> 0.14.3
(cherry picked from commit 1012508356)
2016-07-24 17:40:38 +02:00
Robert Helgesson
31a1303387 stellarium: wrap binary using wrapQtProgram
Fixes #13582 where Stellarium segfaults when starting.

(cherry picked from commit 1bedecb4f9)
2016-07-24 17:40:37 +02:00
Peter Simons
faba44816e stellarium: update to 0.14.2
This patch also fixes https://github.com/NixOS/nixpkgs/issues/13582.

(cherry picked from commit 288d01fe2b)
2016-07-24 17:40:36 +02:00
Michael Raskin
c9be718b43 cvc4: fix the build by skipping line markers in cpp expansions during configure, helps the configure script to find Boost version
(cherry picked from commit 016d523d82)
2016-07-24 16:56:49 +02:00
Ronny Pfannschmidt
3811a6b8a8 gnome-disk-utility: wrapGAppsHook
(cherry picked from commit be7043e01a)
2016-07-24 12:52:34 +02:00
Ronny Pfannschmidt
01328d4a32 gnome-keyring: wrapGAppsHook
(cherry picked from commit ebda96638a)
2016-07-24 12:52:33 +02:00
Ronny Pfannschmidt
58ad6b9236 gnome-online-accounts: use wrapGAppsHook
(cherry picked from commit e6ba55dcf5)
2016-07-24 12:52:33 +02:00
Tobias Geerinckx-Rice
502de3d6e3 dropbear: 2016.73 -> 2016.74
Security fixes:
- Message printout was vulnerable to format string injection
- dropbearconvert import of OpenSSH keys could run arbitrary code
  as the local dropbearconvert user when parsing malicious key
  files
- dbclient could run arbitrary code as the local dbclient user if
  particular -m or -c arguments are provided
- dbclient or dropbear server could expose process memory to the
  running user if compiled with DEBUG_TRACE and running with -v

Fixes:
- Fix port forwarding failure when connecting to domains that have
  both IPv4 and IPv6 addresses. The bug was introduced in 2015.68
- Fix 100% CPU use while waiting for rekey to complete

(cherry picked from commit 7c84bd121a)
2016-07-23 21:35:13 +02:00
Tobias Geerinckx-Rice
c326a1975a dropbear: 2016.72 -> 2016.73
Changes: https://matt.ucc.asn.au/dropbear/CHANGES.
(cherry picked from commit a685456213)
2016-07-23 21:35:00 +02:00
Tobias Geerinckx-Rice
425c5124b5 dropbear: 2015.71 -> 2016.72
Bugfix release:
- Validate X11 forwarding input. Could allow bypass of
  authorized_keys command= restrictions.

(cherry picked from commit e834a7c05b)
2016-07-23 21:34:52 +02:00
Rok Garbas
7c435c925a mysql: 5.5.49 -> 5.5.50 for CVEs (#17160)
Problems include buffer overflows, null pointer dereferences, and
other bugfixes.

 - CVE-2016-3477
 - CVE-2016-3521
 - CVE-2016-3615
 - CVE-2016-5440

Details:
https://dev.mysql.com/doc/relnotes/mysql/5.5/en/news-5-5-50.html

backporting @grahamc's work to release-16.03
2016-07-23 18:00:04 +02:00
Tim Steinbach
63f78d9bf3 kernel: 4.6.3 -> 4.6.4 (#16875)
(cherry picked from commit 47da65923b)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-07-23 15:00:18 +02:00
Tobias Geerinckx-Rice
2568ee3d73 lrzip: 0.621 -> 0.630
Changes: http://ck-hack.blogspot.com/2016/06/lrzip-0630.html
(cherry picked from commit 1212d921c1)
2016-07-22 10:06:22 +02:00
Lluís Batlle i Rossell
757901bc6d perf: depend on libiberty to get c++ demangling.
(cherry picked from commit dd02b6f118)
2016-07-21 17:28:07 +02:00
Franz Pletz
349a2a1b01 php: 7.0.8 -> 7.0.9 (security)
https://secure.php.net/ChangeLog-7.php#7.0.9

(cherry picked from commit 77a9ab33a6)
2016-07-21 14:13:12 +02:00
Eelco Dolstra
5a687613c2 Remove nixos.tests.boot.biosUsb.* as release blockers
These have a high random failure rate, blocking channel updates. Issue

(cherry picked from commit a78ecb0d33)
2016-07-21 11:46:03 +02:00
Lluís Batlle i Rossell
3beaca99cb vm/rpm/rpm-closure.pl: make it deterministic
Some recent perl version introduced "keys" to return the keys
in random order. As some of the packages are solved by "provides" and
based on the order, this randomness affects what packages get into the
closure.

This problem may be in other nix perl scripts.

(cherry picked from commit 202ebf794c)
2016-07-21 09:52:57 +02:00
Sheena Artrip
9a2e73c586 gnome-shell: add missing python3 deps for gnome-shell-extension-tool (#16433)
Fix #14651
2016-07-21 01:21:07 +02:00
taku0
6328769bda oraclejdk: 8u91, 8u92 -> 8u101, 8u102 (#17125)
(cherry picked from commit afcf3176ec)
2016-07-20 18:00:44 +02:00
Lluís Batlle i Rossell
24353b91f9 Adding intel-gpu-tools to xorg.
(cherry picked from commit 13fc6e56fe)
2016-07-20 12:45:46 +02:00
Eelco Dolstra
d74e23efa9 gnutls: Disable parallel building
This can fail randomly with

    CC       systemkey.o
  In file included from systemkey.c:47:0:
  systemkey-args.h:1:1: error: unterminated comment
   /*   -*- buffer-read-only: t -*- vi: set ro:

which is presumably caused by a race with the generation step above:

  autogen systemkey-args.def

http://hydra.nixos.org/build/37878764#tabs-buildsteps
(cherry picked from commit 024cb9eecd)
2016-07-20 11:56:40 +02:00
Bjørn Forsman
b9fa0cf83c nixos/ddclient: add warning about password being world readable
Closes #16885.

(cherry picked from commit 78eac466b0)
2016-07-19 16:53:11 +02:00
Rob Vermaas
9909d31602 nixops: update to 1.4 2016-07-19 14:33:15 +00:00
Eelco Dolstra
94eec8fe77 gnutls: Disable test suite
The 3.4.x test suite contains a certificate that expired June 29,
leading to:

FAIL: name-constraints
======================
...
Chain verification output: Not verified. The certificate is NOT trusted. The certificate chain uses expired certificate.
2016-07-19 15:20:45 +02:00
Michiel Leenaars
a6b7474964 gnutls: 3.4.11 -> 3.4.13
(cherry picked from commit 325dafe82b)
2016-07-19 15:12:32 +02:00
Michiel Leenaars
c73d3b13c2 gnutls: 3.4.6 -> 3.4.11
(cherry picked from commit 4ea23ca277)
2016-07-19 15:12:27 +02:00
Matthew Justin Bauer
ebb204732e virtualbox: fix virtualbox guest additions (#16964)
(cherry picked from commit 802a700373)
2016-07-19 13:56:37 +02:00
Franz Pletz
1daaf68e38 imagemagick: fix hashes
See #16958.

(cherry picked from commit b1ff7f83ef)
2016-07-19 13:56:11 +02:00
Ram Kromberg
19e8d07f4e imagemagick: 6.9.3-9 -> 6.9.5-2 (#16958)
(cherry picked from commit 9ff51cc3c4)
2016-07-19 13:56:11 +02:00
Frederik Rietdijk
13138d5fea Python 2.7.11 -> 2.7.12
(cherry picked from commit b49bedd75b)
2016-07-19 11:53:53 +02:00
Eelco Dolstra
9146390f64 python-2.7: Don't use ldconfig and speed up uuid load
(cherry picked from commit de1b4e71c1)
2016-07-19 11:53:38 +02:00
Peter Jones
f231b2b3f7 slic3r: Add LWP for "Send to printer"
This patch adds a dependency on the LWP perl module so that Slic3r can
make HTTP connections to Octoprint and send G-code to a remote printer.

(cherry picked from commit f303a072c0)
2016-07-18 21:26:28 +02:00
Joachim Fasting
ec0889d393 grsecurity_base_linux_4_5: fix build
The hiddev CVE patch, added in
10ba79450b
breaks the grsecurity kernel build.  For now, the simplest solution is to set
kernel patches applied to the grsec base kernel explicitly rather than
inheriting patches from linux_4_5.

Fixes https://github.com/NixOS/nixpkgs/issues/17061
2016-07-18 21:10:36 +02:00
Stephen Whitmore
3a8765a323 youtube-dl: 2016.07.09.2 -> 2016.07.17
(cherry picked from commit d8516b0fe3)
2016-07-18 19:40:17 +02:00
Vladimír Čunát
175ba559f7 gimp: security 2.8.16 -> 2.8.18
Fixes CVE-2016-4994 and some bugs:
http://www.gimp.org/news/2016/07/14/gimp-2-8-18-released/

(cherry picked from commit 540f4a8eab)
2016-07-17 21:55:17 +02:00
Vladimír Čunát
904a6fabdc Merge #16970: webkitgtk24x: 2.4.9 -> 2.4.11
(cherry picked from commit d167bedb67)
2.4.10 introduced lots of security fixes.
2016-07-17 20:25:06 +02:00
Márton Boros
a0c4a3a714 youtube-dl: 2016.07.03.1 -> 2016.07.09.2
(cherry picked from commit 129c17b222)
2016-07-16 12:38:59 +02:00
mimadrid
1513e65b66 youtube-dl: 2016.06.27 -> 2016.07.03.1
(cherry picked from commit aaa023c858)
2016-07-16 12:38:48 +02:00
mimadrid
9ae9de9b56 youtube-dl: 2016.06.19.1 -> 2016.06.27
(cherry picked from commit 654b978fa3)
2016-07-16 12:38:42 +02:00
wrb
c561fe49a6 youtube-dl: 2016.05.21.2 -> 2016.06.19.1 (#16338)
(cherry picked from commit 22a7f3a849)
2016-07-16 12:38:36 +02:00
wrb
0e98bd31ef youtube-dl: 2016.04.19 -> 2016.05.21.2
(cherry picked from commit c27eec296a)
2016-07-16 12:38:30 +02:00
Joachim Schiele
e040c01aab youtube-dl: version bump to 2016.04.19
(cherry picked from commit a021b6a617)
2016-07-16 12:38:23 +02:00
Joachim Fasting
1e70aaaffe youtube-dl: 2016.02.13 -> 2016.04.06
(cherry picked from commit 6111d5b480)
2016-07-16 12:38:11 +02:00
Bjørn Forsman
00dfa5b4e5 nixos/systemd: disable timer units with service
A disabled systemd service with a "startAt" attribute, like this:

  systemd.services.foo-service = {
    enable = false;
    startAt = "*-*-* 05:15:00";
    ...
  };

will cause the following errors in the system journal:

  systemd[1]: foo-service.timer: Refusing to start, unit to trigger not loaded.
  systemd[1]: Failed to start foo-service.timer.

Fix it by not generating the corresponding timer unit when the service
is disabled.

(cherry picked from commit 2eb8aab42c)
2016-07-16 09:41:52 +02:00
Bjørn Forsman
bd1d9ffa91 nixos/swap: support for resizing swapfile
Currently NixOS creates the swapfile (with the specified size) only if
it doesn't already exist. Changing the swapfile size afterwards will not
have any effect.

This commit changes that so the swapfile will be recreated whenever
swapDevices.*.size is changed (or more precisely, whenever the actual
file size differs from the configured one), allowing both growing and
shrinking the swapfile.

The service unit has "restartIfChanged = false", so we don't have to
worry about the swapfile being in use at the time this code is run (you
have to reboot for swapfile changes).

fallocate doesn't shrink files, use truncate for that. truncate can also
be used to grow files, but it creates "holes" in the file which doesn't
work with swapfiles.

(cherry picked from commit b30852ed41)
2016-07-16 09:41:52 +02:00
Bjørn Forsman
08f4bc4c34 nixos/grub: change state file device separator from ':' to ','
':' is currently used as separator in /boot/grub/state for the list of
devices GRUB should be installed to. The problem is that ':' itself may
appear in a device path:

  /dev/disk/by-id/usb-SanDisk_Cruzer_20043512300546C0B317-0:0

With such a path, NixOS will install GRUB *every* time, because it
thinks the configuration differs from the state file (due to the wrong
list split). Fix it by using ',' as separator.

For existing systems with GRUB installed on multiple devices, this
change means that GRUB will be installed one extra time.

(cherry picked from commit aeb516c741)
2016-07-16 09:41:52 +02:00
Bjørn Forsman
3480e79657 avahi: 0.6.31 -> 0.6.32
Bugfix release, backwards compatible:

  https://github.com/lathiat/avahi/releases/tag/v0.6.32

* Update src URL to github (the latest release is only available there).
* Change "$(mkdir_p)" to "$(MKDIR_P)" in the patch to keep it working
  (apply'able).

(cherry picked from commit 79ed40cd69)
2016-07-16 09:41:52 +02:00
mimadrid
ff2c69e1fd strace: 4.11 -> 4.12
(cherry picked from commit a3581f802e)
2016-07-16 09:41:52 +02:00
Rastus Vernon
5424a1dd0e cryptsetup: update project homepage
The project was moved from code.google.com to gitlab.com.

(cherry picked from commit 77d9966d93)
2016-07-16 09:41:52 +02:00
Bjørn Forsman
368214c636 pencil: mark as broken
Currently pencil won't start, due to incompatible firefox version:

  $ pencil
  Error: Platform version '47.0.1' is not compatible with
  minVersion >= 36.0

See https://github.com/prikhi/pencil/issues/840.

(cherry picked from commit 5b6e3a3ed1)
2016-07-16 00:50:03 +02:00
Bjørn Forsman
1ff47d2bfb pencil: unbreak build by using 'firefox-unwrapped' as 'xulrunner'
The xulrunner build itself is broken at the moment.

(cherry picked from commit 15072e8986)
2016-07-16 00:49:35 +02:00
Franz Pletz
92d3da8108 wxPython: Fix missing libgobject-2.0.so
This fixes the following error when trying to run wxPython applications:

    libgobject-2.0.so.0: cannot open shared object file: No such file or directory

This only applies to 16.03. The master branch is not affected.
2016-07-15 23:25:28 +02:00
Bjørn Forsman
bd66409a01 switch-to-configuration: use absolute path to systemd-escape
Fixes issue when upgrading from very old NixOS systems that don't have
systemd-escape in $PATH:

  $ sudo nixos-rebuild switch
  ...
  building the system configuration...
  updating GRUB 2 menu...
  Can't exec "systemd-escape": No such file or directory at /nix/var/nix/profiles/system/bin/switch-to-configuration line 264.
  Unable to escape /!

(cherry picked from commit 9050077cff)
2016-07-15 13:40:03 +02:00
Frederik Rietdijk
fc83837a9c pythonPackages.aws_shell: use futures 3.0, not 2.2
(cherry picked from commit 8fa6930d84)
2016-07-15 11:16:42 +02:00
Frederik Rietdijk
07283cf2b2 pythonPackages.boto3: enable tests, fixes #14985
I've modified #14985 by @adnelson to take into account the update in
b68f09a520

(cherry picked from commit 8729bd8bb9)
2016-07-15 11:16:42 +02:00
Tobias Geerinckx-Rice
119866cf73 pythonPackages.boto3: 1.2.2 -> 1.3.1
(cherry picked from commit b68f09a520)
2016-07-15 11:16:42 +02:00
Eelco Dolstra
7f021bcc38 awscli: 1.10.38 -> 1.10.46
(cherry picked from commit 0fa00cce01)
2016-07-15 11:16:42 +02:00
Patrick Mahoney
20e5938c36 awscli: 1.10.1 -> 1.10.18
And awscli dependencies:

botocore: 1.3.23 -> 1.4.9
s3transfer: init at 0.0.1
(cherry picked from commit f14bf70db4)
2016-07-15 11:16:42 +02:00
Ram Kromberg
0b40a93388 flashplayer: 11.2.202.626 -> 11.2.202.632
(cherry picked from commit 6046702e5e)
2016-07-14 22:27:27 +03:00
Ram Kromberg
d7450443c4 ansible: 1.9.4 -> 1.9.6
(cherry picked from commit e9ddfe3d4c)
2016-07-14 11:09:34 +02:00
Eelco Dolstra
f0210311aa Update 16.03 AMIs
(cherry picked from commit 9aa3e78ab2)
2016-07-13 10:40:29 +02:00
Eelco Dolstra
acfbf1c7d6 Add AMIs in ap-northeast-2 and ap-south-1
(cherry picked from commit 94cc18e9aa)
2016-07-13 10:40:00 +02:00
Eelco Dolstra
2daacfa887 Copy AMIs in parallel
(cherry picked from commit 1e9b8bfb31)
2016-07-13 10:39:57 +02:00
Eelco Dolstra
fbd04a7d97 Create AMIs with Enhanced Networking
Fixes #15956.

(cherry picked from commit 02db7d9821)
2016-07-13 10:39:54 +02:00
obadz
0452a46957 ec2/create-amis.sh: specify the approriate size on snapshots
Should help with #15148

(cherry picked from commit 364a4373cf)
2016-07-13 10:39:50 +02:00
Franz Pletz
10ba79450b linux: Add patch to fix CVE-2016-5829 (#16824)
Fixed for all available 4.x series kernels.

From CVE-2016-5829:

  Multiple heap-based buffer overflows in the hiddev_ioctl_usage function
  in drivers/hid/usbhid/hiddev.c in the Linux kernel through 4.6.3 allow
  local users to cause a denial of service or possibly have unspecified
  other impact via a crafted (1) HIDIOCGUSAGES or (2) HIDIOCSUSAGES ioctl
  call.
(cherry picked from commit dde259dfb5)
2016-07-12 21:01:58 +02:00
Ricardo Ardissone
7545ed3744 subversion: fix apr-1 linking
(cherry picked from commit 025ccbccd7)
2016-07-12 18:08:55 +02:00
Robert Helgesson
6207f049cd handbrake: depend on hicolor_icon_theme
This avoids conflicts on `share/icons/hicolor/icon-theme.cache`.

(cherry picked from commit c071831b8b)
2016-07-12 17:26:22 +02:00
Robert Helgesson
fc144cb62c brasero: depend on hicolor_icon_theme
This avoids conflicts on `share/icons/hicolor/icon-theme.cache`.

(cherry picked from commit 02600dacf8)
2016-07-12 17:26:22 +02:00
mimadrid
73e28bc9b7 filezilla: 3.18.0 -> 3.19.0
(cherry picked from commit 15d28334a7)
2016-07-11 22:24:42 +02:00
mimadrid
cc0d5dd458 filezilla: 3.17.0.1 -> 3.18.0
(cherry picked from commit d7695b790f)
2016-07-11 22:24:33 +02:00
mimadrid
0707378780 libfilezilla: 0.5.1 -> 0.5.3
(cherry picked from commit baab0ff6d3)
2016-07-11 22:24:26 +02:00
Pascal Wittmann
f8da4daeb0 filezilla: 3.17.0 -> 3.17.0.1
(cherry picked from commit 34f4515051)
2016-07-11 22:24:20 +02:00
Pascal Wittmann
b12aae2a53 libfilezilla: 0.5.0 -> 0.5.1
(cherry picked from commit 8ce8226655)
2016-07-11 22:24:14 +02:00
Pascal Wittmann
6b7d187ee6 filezilla: 3.16.1 -> 3.17.0
(cherry picked from commit c03d7f2819)
2016-07-11 22:24:08 +02:00
Pascal Wittmann
98fa5068b3 libfilezilla: 0.4.0.1 -> 0.5.0
(cherry picked from commit 8d7e44745d)
2016-07-11 22:24:01 +02:00
Pascal Wittmann
473754295c filezilla: 3.16.0 -> 3.16.1
(cherry picked from commit de8cc270c1)
2016-07-11 22:23:54 +02:00
Pascal Wittmann
b2846708ea filezilla: 3.15.0.2 -> 3.16.0
(cherry picked from commit ba7b5ad530)
2016-07-11 22:23:46 +02:00
Pascal Wittmann
db8505c1cc libfilezilla: 0.4.0 -> 0.4.0.1
(cherry picked from commit b56c1982bd)
2016-07-11 22:23:33 +02:00
Eelco Dolstra
b8c98b4aa9 linux: Enable paravirtualized spinlocks
This prevents ticket-lock storms on Xen. See
https://blog.xenproject.org/2012/05/11/benchmarking-the-new-pv-ticketlock-implementation/.

Extracted from 7b9c493d60.
2016-07-11 15:17:44 +02:00
Eelco Dolstra
5788d8ed05 linux: Bump NR_CPUS
The default limit (64) is too low for systems like EC2 x1.* instances
or Xeon Phis, so let's increase it.

(cherry picked from commit 1cd7dbc00b)
2016-07-11 15:17:44 +02:00
Eelco Dolstra
ab4e3c7b80 amazon-image.nix: Add the ena driver
This is necessary for Enhanced Networking on x1.* instances.

(cherry picked from commit 56badfee94)
2016-07-11 15:17:44 +02:00
Eelco Dolstra
025a255ea6 ena: Init at 20160629
This adds the Amazon Elastic Network Adapter kernel module required by
EC2 x1.* instances.

(cherry picked from commit 8710672225)
2016-07-11 15:17:44 +02:00
Eelco Dolstra
0229827a15 amazon-image.nix: Add the ixgbevf driver
(cherry picked from commit 3adb769776)
2016-07-11 15:17:44 +02:00
Eelco Dolstra
e501f19620 ixgbevf: Init at 3.2.2
This driver is necessary for Enhanced Networking on most EC2 instance
types.

(cherry picked from commit 04eb7492dc)
2016-07-11 15:17:44 +02:00
Domen Kožar
984e559cdd nix-repl: 2015-09-07 -> 2016-02-28
(cherry picked from commit 5789f5875f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-07-11 14:01:14 +02:00
Frederik Rietdijk
466303bbe4 python 3.4.4 -> 3.4.5
(cherry picked from commit f04b018111)
2016-07-10 19:19:31 +02:00
Frederik Rietdijk
1cb6bf00b9 python 3.5.1 -> 3.5.2
(cherry picked from commit 52bc8d203f)
2016-07-10 19:06:09 +02:00
Franz Pletz
f57c4b5aac ntp: 4.2.8p6 -> 4.2.8p8 (security)
Fixes CVE-2016-4953, CVE-2016-4954, CVE-2016-4955, CVE-2016-4956.

(cherry picked from commit bdf4c0d21f)
2016-07-10 10:55:08 +02:00
Franz Pletz
e37f347e55 dnsmasq: 2.75 -> 2.76 (security)
Fixes CVE-2015-8899.

(cherry picked from commit 033e593a4f)
2016-07-10 10:55:04 +02:00
Franz Pletz
9d15fdda5e graphicsmagick: 1.3.21 -> 1.3.24 (security)
Fixes CVE-2016-3716, CVE-2016-3717, CVE-2016-2317, CVE-2016-2318,
CVE-2016-5118, CVE-2016-3714, CVE-2016-3715, CVE-2016-3718.

(cherry picked from commit 22c1416192)
2016-07-10 10:54:50 +02:00
Franz Pletz
a130d36e40 vlc: 2.2.2 -> 2.2.4 (security)
Fixes CVE-2016-5108.

(cherry picked from commit 64ab827873)
2016-07-10 10:54:13 +02:00
Franz Pletz
4a9de9cb26 plib: add patch to fix CVE-2011-4620
(cherry picked from commit 9c9abc4c94)
2016-07-10 10:53:42 +02:00
Franz Pletz
e1a506a2f8 wireshark: 2.0.3 -> 2.0.4 (security)
Fixes a few security problems:
  https://www.wireshark.org/docs/relnotes/wireshark-2.0.4.html

(cherry picked from commit a950c154c1)
2016-07-10 10:53:39 +02:00
Franz Pletz
ef6c951d70 libusbmuxd, libimobiledevice: Fix CVE-2016-5104
(cherry picked from commit 77f2fff41d)
2016-07-10 10:53:37 +02:00
Franz Pletz
fdd3f94a97 libvirt: add patch to fix CVE-2016-5008 2016-07-10 10:16:58 +02:00
Vladimír Čunát
f06e94b8b8 gd: use 2.0.* from Debian to fix security 2016-07-10 10:11:27 +02:00
Vladimír Čunát
8e327a08e4 Revert "gd: major+security update 2.0.35 -> 2.2.2"
This reverts commit f48d21551b.
I give up this way; I will try to apply patches instead.
2016-07-10 10:11:27 +02:00
Franz Pletz
98c99b2e0c xercesc: 3.1.3 -> 3.1.4 (security)
Fixes CVE-2016-4463.

(cherry picked from commit 7e9c1a30b3)
2016-07-09 23:30:37 +02:00
Vladimír Čunát
f48d21551b gd: major+security update 2.0.35 -> 2.2.2
Fixes CVE-2015-8874 and CVE-2016-5767 in 2.2.1 -> 2.2.2
Hopefully any breakages will be build-time only.
2016-07-09 17:34:15 +02:00
Robert Helgesson
16e753e54d ddclient service: use environment.etc
The ddclient daemon requires that the configuration file is only
accessible by the ddclient user. This since it typically contains login
information.

(cherry picked from commit 9f4775dbb5)
2016-07-09 14:56:28 +02:00
Franz Pletz
19cf2e9270 Add missing matainer ralith, fix evaluation
Caused by 466e7feece.
2016-07-09 14:17:58 +02:00
Tobias Geerinckx-Rice
6ac1abc6f0 borgbackup: 1.0.4 -> 1.0.5
This update slipped in between 1.0.4 and me pushing 276448a. Upstream says:

This is a critical bugfix release - upgrading to it is strongly recommended!
Please read https://github.com/borgbackup/borg/blob/1.0.5/docs/changes.rst.

(cherry picked from commit 3970c6da5e)
2016-07-09 13:17:44 +02:00
Tobias Geerinckx-Rice
db59a2a8ad borgbackup: 1.0.3 -> 1.0.4
Take Pypi's hint and switch to GitHub.

(cherry picked from commit 276448a477)
2016-07-09 13:17:27 +02:00
roblabla
466e7feece matrix-synapse: update 0.12.0 -> 0.16.1-r1
Fixes critical security issue:

  https://matrix.org/blog/2016/07/08/critical-security-vulnerability-in-synapse-0-12-to-0-16-1-inclusive/

See #16798.

(cherry picked from commit be21e16652)
(cherry picked from commit 091a911bcd)
(cherry picked from commit 26da79230b)
(cherry picked from commit 65005fe302)
(cherry picked from commit f77af9aa5e)
2016-07-09 03:45:40 +02:00
Anders Lundstedt
6320299e16 nixos: fix avahi connectivity for shairport-sync module
The shairport-sync service currently fails to start with the error

shairport avahi_entry_group_new failed

This problem seems to have been introduced by

cdd7310a50

After some trial and error I concluded that the attached commit is a minimal
fix.

(cherry picked from commit 5f3c4bd11e)
2016-07-08 18:11:48 +02:00
Franz Pletz
89d1d487b5 thunderbird-bin: Fix cherry pick fail
Fixes version bump in 094c6ceff0 due to
missing backport of changes to thunderbird-bin on master.

See #16659.

(cherry picked from commit eb4e6b821b)
2016-07-08 17:40:22 +02:00
Vladimír Čunát
eb764fdd44 pythonPackages.breathe: init at 4.2.0
(cherry-picked from b732af00bb)
2016-07-08 15:02:29 +02:00
Ram Kromberg
c2050a492c libpng: 1.2.55 > 1.2.56 CVE-2015-8540 (#16793)
(cherry picked from commit 56791034f6)
2016-07-08 10:55:55 +02:00
taku0
094c6ceff0 thunderbird-bin: 45.1.1 -> 45.2.0 (#16659)
(cherry picked from commit 4774abecb6)
2016-07-08 10:55:28 +02:00
Neil Mayhew
f13e916223 symbola: fix hash mismatch due to new upstream release
Upstream releases are made in-place, ie they update the same URL
rather than creating a new one.

(cherry picked from commit 7a8de0fdcf)
2016-07-07 16:16:09 +02:00
Franz Pletz
67544d2a9f php: fix hashes for 5.5 and 5.6
(cherry picked from commit 5c59a30191)
2016-07-07 14:29:56 +02:00
Franz Pletz
3d4d093b6e php55: 5.5.36 -> 5.5.37 (security)
See https://secure.php.net/ChangeLog-5.php#5.5.37.

(cherry picked from commit d6680b73c3)
2016-07-07 14:29:52 +02:00
Franz Pletz
554782ebc6 php56: 5.6.22 -> 5.6.23 (security)
See https://secure.php.net/ChangeLog-5.php#5.6.23.

(cherry picked from commit 56bbc4cc61)
2016-07-07 14:29:23 +02:00
Alexey Shmalko
0546a4aa57 guake: add gconf to propagatedUserEnvPkgs
This fixes #15978.

(cherry picked from commit 2bd7855c46)
2016-07-06 01:22:21 +03:00
Joachim Fasting
26c327c35d seabios: 1.7.5.2 -> 1.9.2
Also fixes the build

(cherry picked from commit b148be7ff9)
2016-07-05 16:17:36 +02:00
Al Zohali
057421e8e2 nix.requireSignedBinaryCaches: description fix
(cherry picked from commit a227bd4e3b)

[Bjørn: The description says the default is "disabled" (wrong).]
2016-07-05 13:11:13 +02:00
Vincent Laporte
17a777c8ed zim: 0.63 -> 0.65
(cherry picked from commit 13c6b9ba85)

[Bjørn: Without this commit, zim fails to start:
"ERROR: Failed running: $PWD/zim", where $PWD is the (expanded) current
working directory. Fix by making sys.argv[0] an absolute path to zim.]
2016-07-05 10:29:42 +02:00
Lancelot SIX
cc3bae4b92 Merge pull request #16595 from lancelotsix/update_mysql55_url
pkgs.mysql55: update download URL
2016-07-04 22:45:32 +02:00
Tobias Geerinckx-Rice
068d53cb5c geolite-legacy: 2016-06-30 -> 2016-07-04
(cherry picked from commit 17de009046)
2016-07-04 22:18:54 +02:00
Eelco Dolstra
86662a57a5 firefox-esr: Fix build
http://hydra.nixos.org/build/36668046
(cherry picked from commit 0967b0d303)
2016-07-04 14:33:42 +02:00
Eelco Dolstra
b0e30ba444 firefox-esr: 45.1.1 -> 45.2.0
(cherry picked from commit 0c832dceb2)
2016-07-04 14:33:24 +02:00
Eelco Dolstra
3e67bd11d8 firefox: 47.0 -> 47.0.1
(cherry picked from commit 653be3c802)
2016-07-04 14:32:10 +02:00
Franz Pletz
1e1d6ecc1d linux_4_3: Remove, not maintained anymore
(cherry picked from commit 7e9affa7ee)
2016-07-03 09:03:39 +02:00
Franz Pletz
8087fb594e linux: 3.10.101 -> 3.10.102
(cherry picked from commit eed51eccef)
2016-07-03 08:43:48 +02:00
Franz Pletz
de0a27422b linux: 3.12.57 -> 3.12.61
(cherry picked from commit b7e0b118d9)
2016-07-03 08:43:37 +02:00
Franz Pletz
473a643326 linux: 3.14.65 -> 3.14.73
(cherry picked from commit 0387eddb51)
2016-07-03 08:43:24 +02:00
Franz Pletz
0a8eccc471 linux: 3.18.29 -> 3.18.36
(cherry picked from commit 6165af4db2)
2016-07-03 08:43:16 +02:00
Franz Pletz
553900fc7e linux: 4.1.25 -> 4.1.27
(cherry picked from commit 5806b185bd)
2016-07-03 08:43:06 +02:00
Franz Pletz
257fcdd764 linux: 4.4.13 -> 4.4.14
(cherry picked from commit 4a942499b4)
Includes fixes for CVE-2016-{4997,4998}.
2016-07-03 08:42:01 +02:00
Frederik Rietdijk
6317da4000 pythonPackages.setuptools: fix for use in buildEnv
pythonPath needs to be set for it to be included in buildEnv.
This will also fix tox.

(cherry picked from commit def310df45)
2016-07-02 23:45:57 +02:00
mimadrid
708143853e thunderbird: 45.1.0 -> 45.2.0
(cherry picked from commit 0dfaa1e8bd)
It fixes some security problems:
https://www.mozilla.org/en-US/security/advisories/mfsa2016-49/
2016-07-02 17:07:35 +02:00
Rickard Nilsson
953fe5c24a libvirt: Fix libsystemd dependency
(cherry picked from commit 8404d626ad)
2016-07-01 20:20:46 +02:00
Rickard Nilsson
ad2137eeb0 libvirt and pythonPackages.libvirt: 1.3.3 -> 1.3.5
(cherry picked from commit b43268bfeb)
2016-07-01 20:18:14 +02:00
Franz Pletz
eb57c2c9af libvirt: enable zfs on linux
(cherry picked from commit 26964c2fb5)
2016-07-01 20:16:08 +02:00
Alexander Ried
e5b91151e7 libvirt: add comment about updating
(cherry picked from commit e898c4f1d5)
2016-07-01 20:14:55 +02:00
Franz Pletz
3fe1d396bd libvirt: 1.3.2 -> 1.3.3
(cherry picked from commit 862875f9cd)
2016-07-01 20:14:49 +02:00
Rickard Nilsson
3f49faa6aa nixos/libvirtd: Don't use the --daemon flag now that we use the 'notify' service type
(cherry picked from commit 7d67a4da99)
2016-07-01 19:10:21 +02:00
Rickard Nilsson
462d3747b1 nixos/elasticsearch: Set a group on the user
This fixed a problem I had when running ElasticSearch in an LXC
container, and it doesn't hurt using a dedicated group instead of
nogroup anyway.

(cherry picked from commit 9facb7078b)
2016-07-01 19:10:16 +02:00
Rickard Nilsson
adc5760bb2 nixos/libvirt: Syntactic-only refactoring
(cherry picked from commit a0c0f63811)
2016-07-01 19:09:56 +02:00
Rickard Nilsson
bb52e1449d nixos/libvirt: Add virtlogd and virtlockd systemd sockets and services
(cherry picked from commit 301b4e9018)
2016-07-01 19:09:48 +02:00
Rickard Nilsson
b9397df732 nixos/libvirt: Adapt libvirtd.service to upstream sources
(cherry picked from commit 1b54e48561)
2016-07-01 19:09:44 +02:00
Rickard Nilsson
0a16a4e5b1 nixos/libvirt: Remove non-functional service libvirt-guests
It doesn't have a start script, so it hasn't worked at all in
a long time.

(cherry picked from commit 37f4889851)
2016-07-01 19:09:17 +02:00
Frederik Rietdijk
b1aa70a78c python: fix modules in buildEnv, closes #16646
Python 2.7 on Nix is stripped of some modules, which can be added when
needed. This was broken with python.buildEnv.
2016-07-01 16:25:21 +02:00
Frederik Rietdijk
240f55fab6 Python: fix the wheel package 2016-07-01 14:33:28 +02:00
Bjørn Forsman
b5a905beac nixos/update-users-groups.pl: print UIDs and GIDs
Instead of showing this output from "nixos-rebuild switch":

  warning: not applying GID change of group ‘munin’
  warning: not applying UID change of user ‘ntp’

print this:

  warning: not applying GID change of group ‘munin’ (95 -> 102)
  warning: not applying UID change of user ‘ntp’ (3 -> 179)

This makes it possible for users to take action and fixup the UIDs/GIDs
that NixOS won't touch.

(cherry picked from commit 6e528893a8)
2016-07-01 14:23:32 +02:00
Peter Simons
eb4cfc545e ghc-8.0.1.nix: cosmetic
(cherry picked from commit 94b6127f8e)
2016-07-01 10:28:18 +02:00
Nikolay Amiantov
c0fc272230 haskell.packages.ghc801.ghc: upstream tarball updated
(cherry picked from commit c366ab933d)
2016-07-01 10:28:17 +02:00
Nikolay Amiantov
e2c04f25f6 haskell.packages.ghc801: 8.0.0.20160421 -> 8.0.1
(cherry picked from commit 3098547ebc)
2016-07-01 10:28:17 +02:00
Peter Simons
d615935dab ghc: update 8.0.x version to rc4
(cherry picked from commit bdaf650336)
2016-07-01 10:28:17 +02:00
Peter Simons
66b0b2817d ghc: update 8.0.x pre-release from rc2 to rc3
(cherry picked from commit 2422ae0838)
2016-07-01 10:28:17 +02:00
Bjørn Forsman
7bcd427ca9 nixos/gnome-desktop: enable colord service
Fixes this (line wrapped):

  $ gnome-control-center
  [... click on the "Color" item ...]
  (gnome-control-center:3977): color-cc-panel-WARNING **: \
    The name org.freedesktop.ColorManager was not provided by any .service files

With this patch applied, the above warnings are not printed and the GUI
shows some devices that can be managed (my printer and display). Without
this patch the GUI is empty (non-functional).

(cups will also complain in the journal with a similar message when
doing print jobs, without this patch.)

(cherry picked from commit 66ee7a4c46)
2016-07-01 07:34:40 +02:00
Nikolay Amiantov
be4e63004f colord service: init
(cherry picked from commit 4e58b33dee)

[Bjørn: Add ./services/x11/colord.nix to module-list.nix, was missing in
the above commit. (It was added as part of 776845bbeb
("xiccd: init at 0.2.2") though.)
]
2016-07-01 07:34:19 +02:00
Nikolay Amiantov
d445ad758a colord: fix udev rules, add sane support
(cherry picked from commit cf9ddb27d6)
2016-07-01 07:24:23 +02:00
Tobias Geerinckx-Rice
f4aa57ac91 libpsl: list 2016-02-25 -> 2016-06-30
(cherry picked from commit dccac25d5f)
2016-06-30 17:20:26 +02:00
Tobias Geerinckx-Rice
956e33169a geolite-legacy: 2016-06-20 -> 2016-06-30
(cherry picked from commit d6871a2c7a)
2016-06-30 15:41:26 +02:00
Bjørn Forsman
48ded04143 xpra: 0.17.3 -> 0.17.4 (important fixes)
(cherry picked from commit c5b7a9ffeb)
2016-06-30 15:27:29 +02:00
Bjørn Forsman
f2a7816225 xpra: fix some runtime issues
* Add missing modules (fixes warnings and errors).
* Step 1 to unbreak starting Xvfb by making xpra invoke it with
  valid log dir ($HOME/.xpra). Without this fix, it is invoked with
  ~/.xpra, which Xvfb doesn't know how to interpret and uses it
  literally (fail). Step 2 will be fixing an Xvfb permission issue:
  "xf86OpenConsole: Cannot open virtual console 1 (Permission denied)".
* Use XPRA_INSTALL_PREFIX to make it find its icons.

(cherry picked from commit 6d48539fdb)
2016-06-30 15:27:29 +02:00
Bjørn Forsman
37134a4f6b pythonPackages.lz4: init at 0.8.2
Needed for xpra (better compression => better performance).

(cherry picked from commit d71ef00b9d)
2016-06-30 15:27:29 +02:00
Bjørn Forsman
00e58f6557 xpra: 0.17.0 -> 0.17.3
(cherry picked from commit ce8c1ab5e0)
2016-06-30 15:27:29 +02:00
Bjørn Forsman
7efdca8d3d xpra: add missing python 'rencode' module
Fixes this:

  $ xpra [...]
  2016-06-23 17:40:03,407 Warning: rencode import failed:
  2016-06-23 17:40:03,407  No module named rencode
  [...]

(cherry picked from commit 34363d77b0)
2016-06-30 15:27:28 +02:00
David Guibert
ba017747b0 xpra: 0.16.2 -> 0.17.0
(cherry picked from commit 8601f69072)

[Bjørn: 0.16.x is unsupported. Better switch to 0.17.x, like upstream
suggests.]
2016-06-30 15:27:17 +02:00
Emery Hemingway
019c6a15b5 qtox: 1.3.0 -> 1.4.1
(cherry picked from commit c544cbca42)
2016-06-30 09:22:48 +02:00
Edward Tjörnhammar
62e738fb10 qtox: 1.2.4 -> 1.3.0
(cherry picked from commit 7da494b8ae)
2016-06-30 09:22:39 +02:00
Lancelot SIX
47395a0bf1 pkgs.mysql55: update download URL
Point to the archive URL since the 5.5.48 release is not available
anymore on the main URL.
2016-06-29 14:10:19 +02:00
Domen Kožar
1da05dfe43 fix eval 2016-06-29 10:45:19 +02:00
Ruslan Babayev
431b2bbc83 dpdk: pktgen: odp-dpdk: upgrades (#16586)
* dpdk: sync with master

* dpdk: separate configure phase

* pktgen: 3.0.00 -> 3.0.04

* pktgen: add withGtk build option

* odp-dpdk: init at 1.10.1.0

Signed-off-by: Ruslan Babayev <ruslan@babayev.com>
2016-06-29 10:33:29 +02:00
Shea Levy
1e159c7b2c Backport src 1.11 2016-06-28 10:26:42 -04:00
Rickard Nilsson
ff10a7dd40 spotify: 1.0.32.94 -> 1.0.32.96
(cherry picked from commit 58e732978f)
2016-06-28 15:54:16 +02:00
Joachim Fasting
8bf31d7d27 torbrowser: 6.0.1 -> 6.0.2
(cherry picked from commit 9675384c7b)
2016-06-25 14:32:45 +02:00
Joachim Fasting
52e07c5b91 torbrowser: 6.0 -> 6.0.1
(cherry picked from commit 8fc6ca75a9)
2016-06-25 14:32:44 +02:00
Joachim Fasting
00d22e311c torbrowser: explicitly set paths to torrc-defaults and tor
This patch fixes an issue introduced by b897f825942b63ab790cad9ed66c8a79cbb3fc2d
where the bundled tor fails to run.

The error message claims that it cannot communicate with tor, but what actually
happens is that tor never runs at all, because it is invoked with a non-existent
rc file.  Specifying an absolute path to the torrc-defaults file fixes the
problem.  For good measure, we specify an absolute path to the tor executable
itself as well; we want as little autodetection logic as possible.

Note that users of torbrowser *must* remove the existing `~/.torbrowser4` folder
for this to take effect, otherwise torbrowser will continue to use extension
data from the previous release (this is why some existing users were able to
successfully use the new torbrowser version, see
https://github.com/NixOS/nixpkgs/pull/15854).

(cherry picked from commit 961164a8a7)
2016-06-25 14:32:44 +02:00
Mayeu - Cast
e38910e456 torbrowser: 5.5.5 -> 6.0 (#15854)
(cherry picked from commit 4e20fa47e0)
2016-06-25 14:32:43 +02:00
Alexander Ried
eb840acd0b expat: 2.1.1 -> 2.2.0, /cc 16477
Security patches have been integrated upstream, and
(vcunat:) and apparently it includes more security fixes.

(cherry picked from commit 964fd18676)
2016-06-25 09:23:06 +02:00
Tim Steinbach
0202cf7b2e kernel: 4.6.2 -> 4.6.3
(cherry picked from commit 125ffff089)
2016-06-24 20:19:17 -04:00
Nikolay Amiantov
fcd0923564 nixos-install: fix SSL certificate error
(cherry picked from commit 1193790b95)
2016-06-24 19:18:34 +03:00
Michael Raskin
22bb7e8c0b Firefox: 46.0.1 -> 47.0
(cherry picked from commit d88aa14c6e)
Reason: the update includes security fixes.
2016-06-24 08:50:55 -07:00
Vladimír Čunát
f1492d05dd libpng: 1.6.20 -> 1.6.21
(cherry picked from commit 41d3aa5cd2)
Reason: needed to update Firefox to 47.0.
2016-06-24 08:50:48 -07:00
Kyle McKean
0067fa0538 collectd: add snmp support
(cherry picked from commit 544d9a7620)
2016-06-23 16:55:43 +02:00
Vincent Laporte
e1570f766f coq: 8.5 -> 8.5pl1
(cherry picked from commit a036fda544)
2016-06-22 19:09:18 -04:00
Eric Sagnes
d5c61f3e15 php: add meta.platforms 2016-06-22 20:00:14 +01:00
Christopher Lübbemeier
9b4dad2e9a spotify: 1.0.28.89 -> 1.0.32.94 2016-06-22 19:54:48 +01:00
Bjørn Forsman
5c8d9bacd0 nixos/gnome-desktop: fix adding printers with GNOME Control Center
...by adding system-config-printer to services.dbus.packages (if
services.printing.enable is true).

Without this patch, trying to add a printer will result in a little dialog
saying "Failed to add new printer" and gnome-control-center will print this to
the terminal (line wrapped):

(gnome-control-center:3546): printers-cc-panel-WARNING **: \
  GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: \
  The name org.fedoraproject.Config.Printing was not provided by any .service files

system-config-printer supplies the "org.fedoraproject.Config.Printing" dbus
service, thus fixing the problem.

(cherry picked from commit a156a8ab1a)
2016-06-22 14:23:07 +02:00
Bjørn Forsman
83c050aa40 system-config-printer: unbreak dbus service (again)
The service file refers to /usr/bin/... instead of a Nix store path.
Fix it.

The original fix was wrongly removed in commit 03353ce6ff
("system-config-printer: 1.3.12 -> 1 5.7"). We can remove this fixup on
the _next_ upstream release.

(cherry picked from commit b741df943f)
2016-06-22 14:23:07 +02:00
Bjørn Forsman
67d0dd7717 autorevision: init at 1.14
A shell script for extracting revision information useful in
release/build scripting from repositories.

(cherry picked from commit 6536804848)
2016-06-21 15:24:37 +02:00
Joachim Fasting
3b12b30086 Merge pull request #16373 from jb55/fix/wkhtmltopdf-16.03
wkhtmltopdf: fix openssl bug (#15443)
2016-06-21 03:20:09 +02:00
Eric Merritt
ea170eddd5 wget: apply patch for cve-2016-4971 vulnerability
Patch pulled from: https://bugzilla.redhat.com/show_bug.cgi?id=1343666

Backport of #16368.
2016-06-20 22:13:41 +02:00
William Casarin
0472af9f72 wkhtmltopdf: fix openssl bug (#15443)
(cherry picked from commit cac460f6c4)
2016-06-20 09:57:58 -07:00
Scott R. Parish
4b6a974af9 chromium: Update to latest stable, beta, and dev channels
stable 51.0.2704.63 => 51.0.2704.103
beta   51.0.2704.63 => 52.0.2743.41
dev    52.0.2743.10 => 53.0.2767.4

This addresses 15 security fixes, including:

 * High   CVE-2015-1696: Cross-origin bypass in Extension bindings. Credit to
                         anonymous.
 * High   CVE-2015-1697: Cross-origin bypass in Blink. Credit to Mariusz
                         Mlynski.
 * Medium CVE-2016-1698: Information leak in Extension bindings. Credit to
                         Rob Wu.
 * Medium CVE-2016-1699: Parameter sanitization failure in DevTools. Credit
                         to Gregory Panakkal.
 * Medium CVE-2016-1700: Use-after-free in Extensions. Credit to Rob Wu.
 * Medium CVE-2016-1701: Use-after-free in Autofill. Credit to Rob Wu.
 * Medium CVE-2016-1702: Out-of-bounds read in Skia. Credit to cloudfuzzer.

See: http://googlechromereleases.blogspot.com/2016/06/stable-channel-update.html
(cherry picked from commit 1f1f0f049b)
Reason: 18 Security fixes for the stable channel.
2016-06-20 18:49:18 +02:00
Bjørn Forsman
cff5f2ea34 microscheme: 0.9.2 -> 0.9.3
(cherry picked from commit 099d3dc43b)
2016-06-20 16:31:18 +02:00
Tobias Geerinckx-Rice
7348540422 geolite-legacy: 2016-06-13 -> 2016-06-20
(cherry picked from commit 5dd3dbdec4)
2016-06-20 16:03:08 +02:00
Anders Papitto
c204b0d233 gdb: 7.11 -> 7.11.1
(cherry picked from commit e97e6061f7)
2016-06-20 14:41:21 +02:00
Eelco Dolstra
1330016a32 linux: 4.4.12 -> 4.4.13
(cherry picked from commit 453086a15f)
2016-06-20 14:40:50 +02:00
Eelco Dolstra
a274dba845 debian: 7.10 -> 7.11, 8.4 -> 8.5
(cherry picked from commit 5fc64c4baa)
2016-06-20 14:40:44 +02:00
Edward Tjörnhammar
a96c3088f8 jonprl: corrected sha change
(cherry picked from commit f027aa2059)
2016-06-19 10:46:45 +02:00
michael bishop
e53d74d6fc haskell docs: now that hydra pushes directly to S3, it cant function as a binary cache
(cherry picked from commit 410aad942f)
2016-06-19 09:02:42 +02:00
Lluís Batlle i Rossell
256ebc4de1 Update ffmpeg-full to 3.0.2
(cherry picked from commit 3a61de4e69)
2016-06-18 15:50:59 +02:00
Lluís Batlle i Rossell
15235f5ae3 x265: enable parallel build
(cherry picked from commit 726ed32bfd)
2016-06-18 15:50:59 +02:00
Anthony Cowley
3d5ef21601 x265: 1.7 -> 1.9
Unblocks #13822

(cherry picked from commit 6bc1aed873)
2016-06-18 15:50:59 +02:00
Lluís Batlle i Rossell
f827da0136 Update x264 to a recent snapshot (1,5 years update)
(cherry picked from commit 3078537b6a)
2016-06-18 15:50:59 +02:00
Anthony Cowley
19f3e09c06 ffmpeg-full: 2.8.5 -> 3.0
Also changes the homepage URL to https.

(cherry picked from commit 2f6f3c7b55)
2016-06-18 15:50:59 +02:00
Sander van der Burg
af412f29c8 disnix-module: split dysnomia's functionality into a separate module so that it can be used without Disnix and remove the hacky/obsolete avahi publisher
(cherry picked from commit 8fccaa9011)
2016-06-17 09:26:20 +00:00
Robert Helgesson
ea672e3bb8 perl-IO-Socket-SSL: fix default path to SSL certs
(cherry picked from commit 98096004ce)
2016-06-17 11:04:32 +02:00
Robert Helgesson
4ac7425f18 perl-IO-Socket-SSL: 2.020 -> 2.027
(cherry picked from commit e612954896)
2016-06-17 11:04:32 +02:00
Sander van der Burg
ca97cce179 DisnixWebService: 0.5 -> 0.6
(cherry picked from commit fcf72b82ae)
2016-06-17 08:17:35 +00:00
Sander van der Burg
98fda7148e disnixos: 0.4.1 -> 0.5
(cherry picked from commit 16bbfe893b)
2016-06-16 22:17:42 +00:00
Sander van der Burg
50ce587b93 disnix: 0.5 -> 0.6
(cherry picked from commit b4315e523f)
2016-06-16 21:03:30 +00:00
Sander van der Burg
18b0e0e25a dysnomia: 0.5.1 -> 0.6
(cherry picked from commit c5faa7c83d)
2016-06-16 15:47:04 +00:00
Cole Mickens
e3c29b27d8 mitmproxy: change source url
(cherry picked from commit e9b55a03d3)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-06-16 14:24:53 +01:00
taku0
8218d00c42 flashplayer: 11.2.202.621 -> 11.2.202.626
(cherry picked from commit c802f56639)

https://helpx.adobe.com/security/products/flash-player/apsa16-03.html
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4171
2016-06-16 15:10:54 +02:00
Vladimír Čunát
31a2117c61 texlive: add xindy binary
Fixes #16207.

(cherry picked from commit 7a6ec0a0ee)
It seems very unlikely to break anything.
2016-06-16 12:57:59 +02:00
Tobias Geerinckx-Rice
2f1174b6d0 tzdata: 2015g -> 2016e 2016-06-14 19:25:59 +02:00
Tobias Geerinckx-Rice
2f430d2eae geolite-legacy: 2016-06-08 -> 2016-06-13
(cherry picked from commit 156a14d153)
2016-06-14 19:06:44 +02:00
zimbatm
7d4dcf04d4 virtualbox: give full url for downloading the ext (#15869)
The user only has to agree on the terms and conditions before
downloading the file. We might as well give him access to the full URL
by default.
(cherry picked from commit a6593a16f7)
2016-06-13 22:38:29 +02:00
Michael Raskin
b984ab19ae virtualboxGuestAdditions: update hash for virtualbox 5.0.20
(cherry picked from commit fde921578a)
2016-06-13 22:38:15 +02:00
Michael Raskin
76ebea5f53 virtualbox: 5.0.14 -> 5.0.20
(cherry picked from commit 4f5e4ad69c)
2016-06-13 22:38:05 +02:00
Herwig Hochleitner
f9e2b4cc15 virtualbox: 5.0.12 -> 5.0.14
(cherry picked from commit bd3ca11e0d)
2016-06-13 22:37:05 +02:00
Rob Vermaas
fd60751ce0 Fix hash for Debian 8.4 Jessie 2016-06-13 12:20:33 +00:00
Rob Vermaas
eab6c3a636 nlopt: remove broken attribute, build works fine. 2016-06-13 10:46:01 +00:00
Shea Levy
9e959ce644 linux 4.6.1 -> 4.6.2
(cherry picked from commit 4fbafb2395)
2016-06-10 09:30:22 -04:00
taku0
6daa706c06 firefox-bin: 46.0.1 -> 47.0
(cherry picked from commit 697437c8e7)
2016-06-09 22:32:01 +02:00
taku0
cde6bb63c0 firefox-bin: fixed missing icon
(cherry picked from commit 07a83f226e)
2016-06-09 22:32:00 +02:00
taku0
d77e65360e firefox-bin: 45.0.2 -> 46.0.1
(cherry picked from commit 90f5be3133)
2016-06-09 22:31:59 +02:00
Vladimír Čunát
4959bd75db io: fix evaluation by adding maintainers.vrthra 2016-06-09 20:51:32 +02:00
Joachim Fasting
0e0bb8a173 grsecurity: simplify preConfigure
(cherry picked from commit 39db90eaf6)
2016-06-09 15:08:26 +02:00
Joachim Fasting
f1d7572a5f build-support/grsecurity: simplify the grsecurityOverrider
Adding inputs required by gcc plugins to the ambient environment is sufficient.

(cherry picked from commit 27035365ec)

Fixes the build error: https://hydra.nixos.org/build/36725847/nixlog/1/raw
2016-06-09 15:08:26 +02:00
Vladimír Čunát
d6c4dc1094 Merge #16045: kernel: 4.6.0 -> 4.6.1
(cherry picked from commit 20c2ce4954)
2016-06-09 15:02:58 +02:00
Vladimír Čunát
e61983e6a5 Merge #16044: kernel: 4.1.20 -> 4.1.25
(cherry picked from commit c0895be3ee)
2016-06-09 15:02:53 +02:00
Vladimír Čunát
8eb439701e Merge #16043: kernel: 4.4.11 -> 4.4.12
(cherry picked from commit f9310c2eee)
2016-06-09 15:02:40 +02:00
Rahul Gopinath
dd06c4e52b io: 2013.12.04 -> 2015.11.11
Updating IO language to latest version

(cherry picked from commit c860de987d)

This also fixes the build
2016-06-09 14:17:52 +02:00
Eelco Dolstra
72b4009367 php56: update to 5.6.22 2016-06-09 11:58:43 +02:00
Tobias Geerinckx-Rice
1207ac1aaf geolite-legacy: 2016-06-06 -> 2016-06-08 2016-06-08 19:55:13 +02:00
Eelco Dolstra
55b2e62cd0 mesa: Use symlinks instead of hard links for the DRI/vdpau drivers
This reduces the size of the drivers output from 193 MiB to 44 MiB.

(cherry picked from commit 1a52fdc3c6)
2016-06-07 19:38:21 +02:00
Domen Kožar
f199be0faf Merge pull request #15963 from abuibrahim/release-16.03
pktgen: build with the same CFLAGS as dpdk
2016-06-07 14:28:57 +01:00
Matthias Beyer
3e3f2d9f55 postgresql: 9.5.1 -> 9.5.3, potentially fixes CVE-2016-2193, CVE-2016-3065
(cherry picked from commit 0ac6b862ac)
2016-06-07 15:09:08 +02:00
Joachim Fasting
184fcf6f99 grsecurity: 4.5.5-201605291201 -> 4.5.6-201606051644
(cherry picked from commit 72899d92d0)
2016-06-07 15:08:32 +02:00
Joachim Fasting
7336a66637 grsecurity: 4.5.5-201605211442 -> 4.5.5-201605291201
(cherry picked from commit bfefc54bc5)
2016-06-07 15:08:31 +02:00
Joachim Fasting
c5e10541fb Merge pull request #16028 from grahamc/patch-1
gemconfig: rmagick requires which as of 2.15.4 (16.03)
2016-06-07 14:35:59 +02:00
Graham Christensen
55d6354b1b gemconfig: rmagick requires which as of 2.15.4 (16.03) 2016-06-06 15:58:48 -05:00
Tobias Geerinckx-Rice
a24903b558 geolite-legacy: 2016-02-25 -> 2016-06-06 2016-06-06 16:23:09 +02:00
Vladimír Čunát
8d8fd460e1 libexttextcat: homepage has moved
(cherry picked from commit ab5a5f760f)
2016-06-06 11:10:54 +02:00
koral
87fe38fd0e rmlint: 2.4.2 -> 2.4.4
(cherry picked from commit 92471cbc8f)
2016-06-05 17:41:01 +02:00
koral
3104d1a871 moreutils: 0.58 -> 0.59
(cherry picked from commit 179f5e9500)
2016-06-05 17:21:26 +02:00
Ruslan Babayev
82fe7aca1e pktgen: build with the same CFLAGS as dpdk 2016-06-03 11:04:22 -07:00
Eelco Dolstra
3111985677 Explicitly specify the subsystem for /dev/vboxguest
Otherwise systemd gets confused and forgets about device units after
reloading.

https://github.com/NixOS/nixops/issues/391
https://github.com/systemd/systemd/issues/3423
(cherry picked from commit 7c19b395eb)
2016-06-03 00:43:50 +02:00
Graham Christensen
44079251e1 nvidia-x11: 361.42 -> 361.45.11 (close #15885)
(cherry picked from commit 180417f385)
2016-06-03 00:19:27 +02:00
Bjørn Forsman
bc64569195 sam-ba: init at 2.16
Programming tools for Atmel SAM3/7/9 ARM-based microcontrollers.

(I've only runtime tested the 64-bit binary, not the 32-bit one.)

(cherry picked from commit fbde3a7452,
plus removing ".lib" from "stdenv.cc.cc.lib" to be compatible with
release-16.03.)
2016-06-02 12:57:49 +02:00
Domen Kožar
63b97855f1 Merge pull request #15907 from abuibrahim/release-16.03
Release 16.03
2016-06-01 23:54:59 +01:00
Ruslan Babayev
179a099704 add DPDK pktgen 2016-06-01 14:04:00 -07:00
Ruslan Babayev
a0912e7093 dpdk: make primary output usable as RTE_SDK 2016-06-01 00:37:04 -07:00
Ruslan Babayev
f0006ff228 dpdk: separate kernel modules 2016-05-31 22:31:53 -07:00
Ruslan Babayev
d1934f6741 dpdk: move apps to examples output 2016-05-31 22:27:36 -07:00
Ruslan Babayev
d08fa96079 dpdk: install examples to bin 2016-05-31 22:25:13 -07:00
Ruslan Babayev
3780426629 dpdk: add pkgconfig to buildInputs
This unbreaks vm_power_mgr example.
2016-05-31 22:24:12 -07:00
Tuomas Tynkkynen
d9a80ed0a5 NixOS installer tests: Add a test using Gummiboot
Issue #14956

(cherry picked from commit 1feed61164)
2016-05-31 17:04:24 +02:00
Bjørn Forsman
009fa8e588 zbar: fix camera support (enables 'zbarcam' tool)
Add Debian patches (with fetchpatch) to make things work. Among other
things, the patches port the application from V4L to V4L2.

This increases the closure size from 729 MiB to 730 MiB.

(cherry picked from commit 65ccda5b96)
2016-05-31 09:32:48 +02:00
aszlig
00682602ae Merge pull request #15762 (Chromium update)
This is the original pull request plus some commits from me to bring all
channels to the latest versions, because the fixed security
vulnerabilites might not be fixed in the dev version we had before.

I've tested the whole changeset on my Hydra at:

https://headcounter.org/hydra/eval/322006

Thanks to @srp for the initial commit and thus implicitly also for the
security notice.

Cc: @abbradar
(backported from commit b5f95a5303)
Reason: Lots of security fixes (see e2d067d)
2016-05-28 21:26:35 +02:00
Eelco Dolstra
15e7e6e561 Term::ReadLine::Gnu: Fix finding libncursesw
Fixes

  Cannot do `initialize' in Term::ReadLine::Gnu at /nix/store/8kld1l6cn75lh0csw8wq6zbccallkr73-nixos-test-driver/bin/.nixos-test-driver-wrapped line 115.

when running NixOS VM tests interactively.

(cherry picked from commit 012313f253)
2016-05-27 13:42:04 +02:00
Eelco Dolstra
a80c23228f Improve types.listOf error message
If an option value is not a list, you now get

  The option value `bla' in `file.nix' is not a list.

rather than

  value is a string while a list was expected, at .../nixpkgs/lib/lists.nix:49:56

(cherry picked from commit b056948c00)
2016-05-27 13:41:45 +02:00
Eelco Dolstra
08ab2e49f8 thunderbird: 45.0 -> 45.1.0
(cherry picked from commit fa1b9ec1e6)
2016-05-27 13:41:19 +02:00
Eelco Dolstra
a4c9f82bdc nixos-generate-config: Enable strictness
(cherry picked from commit c6ab4ab206)
2016-05-27 13:41:09 +02:00
Eelco Dolstra
4701211bf8 Fix failure to start old containers
The existence of $root/var/lib/private/host-notify as a socket
prevented a bind mount:

  container foo[8083]: Failed to create mount point /var/lib/containers/foo/var/lib/private/host-notify: No such device or address

(cherry picked from commit b37d6d8996)
2016-05-27 13:40:50 +02:00
Eelco Dolstra
0559af6262 KDE test: Bump kdm start timeout
Hopefully this will fix random failures like
http://hydra.nixos.org/build/36249079.

(cherry picked from commit b786b00023)
2016-05-27 13:39:56 +02:00
Joachim Fasting
31ad93861a Merge pull request #15727 from bendlas/update-dropbox-stable
dropbox: [nixos-stable] use qt55, fixes #15703
2016-05-27 13:01:32 +02:00
Vladimír Čunát
16e9b2d121 nixpkgs manual: fix #15735: correct dash rendering
(cherry picked from commit 88a6ce17ef)
2016-05-27 10:41:55 +02:00
Joachim Fasting
b73a9c1f66 Merge pull request #15708 from grahamc/facetimehd-16.03
Backport facetimehd updates to 16.03
2016-05-27 00:49:15 +02:00
Marius Bakke
17aa9bdd97 openvswitch: 2.3.1 -> 2.3.3 (CVE-2016-2074) (#15724) 2016-05-26 22:00:29 +02:00
Graham Christensen
5f26258fc1 facetimehd, facetimehd-firmware: Add grahamc as a maintainer
(cherry picked from commit f993e6543a)
2016-05-26 14:14:17 -05:00
Graham Christensen
c192196ce7 facetimehd: Document updating the facetimehd-firmware
(cherry picked from commit 24a87685e2)
2016-05-26 14:13:25 -05:00
Graham Christensen
de802776d2 facetimehd-firmware: 1.43 -> 1.43_4
(cherry picked from commit 27bf0d203d)
2016-05-26 14:13:22 -05:00
David Tulig
415a07e126 syncthing: 0.12.23 -> 0.12.25 (#15723)
fixes #15633

(cherry picked from commit ddf264536c)
2016-05-26 21:04:31 +02:00
Herwig Hochleitner
aa3b85e370 dropbox: use qt55, fixes #15703 2016-05-26 19:57:09 +02:00
Franz Pletz
796f7fbba2 php: 5.5.35 -> 5.5.36, 7.0.6 -> 7.0.7 (security)
See:

  * https://secure.php.net/ChangeLog-5.php#5.5.36
  * https://secure.php.net/ChangeLog-7.php#7.0.7

(cherry picked from commit 93c010ddad)
2016-05-26 18:45:19 +02:00
Franz Pletz
e124e7d9b8 libndp: 1.5 -> 1.6 (security)
Fix CVE-2016-3698.

See https://lwn.net/Articles/688591/.

(cherry picked from commit 28395e85da)
2016-05-26 17:26:14 +02:00
Vladimír Čunát
cc3d2344a4 grsecurity_base_linux_4_5: get all patches
This in particular includes qat_common_Makefile to fix parallel make.

(cherry picked from commit 058c71498e)
2016-05-26 16:36:44 +02:00
Vladimír Čunát
e2f484f780 Revert "root: enable parallel building"
This reverts commit 2991fdca52.
Hydra builds often report missing various files.

(cherry picked from commit ee1a10ee6b)
2016-05-26 16:29:31 +02:00
Bjørn Forsman
3fa87b52cd shutter: init at 0.93.1
Screenshot and annotation tool.

The application may complain about missing GConf dbus service[1], but it
still works (and remembers its settings, AFAICT).

[1]: The error message is (line wrapped):
  GConf Error: Failed to contact configuration server; the most
  common cause is a missing or misconfigured D-Bus session bus daemon. See
  http://projects.gnome.org/gconf/ for information. (Details -  1: GetIOR
  failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
  org.gnome.GConf was not provided by any .service files)

(cherry picked from commit 0b3b45c5a7)
2016-05-26 14:58:21 +02:00
Bjørn Forsman
cc8368af7c perlPackages: add dependencies needed by 'shutter' application
shutter is a screenshot and annotation GUI tool, coming to Nix soon.
This commit adds its needed perl dependencies:

  Gnome2, Gnome2Canvas, Gnome2VFS, Gnome2Wnck, GooCanvas,
  Gtk2AppIndicator, Gtk2ImageView, Gtk2Unique, ProcSimple

All expressions are created with nix-generate-from-cpan and manual
tweaks to (propagated)buildInputs and meta.license.

(cherry picked from commit 444afc43ac)
2016-05-26 14:58:21 +02:00
Bjørn Forsman
719b9a3187 goocanvas: 0.10 -> 1.0 (fixes build)
I'm not updating to the 2.x version yet, because the only dependee of
this package is 'shutter' (which I'm about to package) and it doesn't
support 2.x.

(cherry picked from commit b9f30bdc20)
2016-05-26 14:58:21 +02:00
Vladimír Čunát
1b5e492e0f libxml2: fixup validation problems with 2.9.4
... by reverting an upstream commit
/cc #15697.

I should make some distro pay me for digging into such things :-)

(cherry picked from commit 3069606108)
2016-05-26 13:51:25 +02:00
Peter Simons
b8b4585a78 haskell-split: disable test suite to fix the build 2016-05-26 12:40:06 +02:00
Kranium Gikos Mendoza
9fe9a1a95b facetimehd: git-20160127 -> git-20160503
Fixes issues with kernels newer than 4.4.

(cherry picked from commit bc93957bb5)
2016-05-25 15:13:47 -05:00
Bjørn Forsman
ebf0815d9d qscreenshot: init at 1.0
Create and edit screenshots.

(cherry picked from commit 41fa133548)
2016-05-25 19:03:21 +02:00
Graham Christensen
809aa9ca22 libxml2: 2.9.3 -> 2.9.4 for three CVEs (close #15697)
- CVE-2016-4447: libxml2: Heap-based buffer underreads due to xmlParseName
   https://bugzilla.redhat.com/show_bug.cgi?id=1338686

 - CVE-2016-4448 libxml2: Format string vulnerability
   https://bugzilla.redhat.com/show_bug.cgi?id=1338700

 - CVE-2016-4449 libxml2: Inappropriate fetch of entities content
   https://bugzilla.redhat.com/show_bug.cgi?id=1338701

and many other fixed issues, available at http://www.xmlsoft.org/news.html

(cherry picked from commit 772851ff46)
2016-05-25 18:30:33 +02:00
Eelco Dolstra
b8d73243f5 nixos.tests.swraid: Drop mdadm -W
This command is racy because it will return a non-zero exit code if
the array is already clean. This caused numerous random failures. It
should be unnecessary anyway. (Maybe in the past we needed this
because of #15226.)

http://hydra.nixos.org/job/nixos/release-16.03/nixos.tests.installer.swraid.i686-linux
(cherry picked from commit 3e7b510281)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-24 20:03:27 +01:00
Eelco Dolstra
1d65b59fa2 test-driver: Fix "unit X is inactive and there are no pending jobs"
This was causing many random test failures.

(cherry picked from commit ad29b72686)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-24 20:01:52 +01:00
Joachim Fasting
2da70691d6 top-level/release.nix: remove xf86videomodesetting
See c7d92f9485

(cherry picked from commit 7817d0901d)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-24 17:59:03 +01:00
Domen Kožar
37e7e86ddd snabbswitch: use prePatch phase so we can still apply patches 2016-05-24 17:37:08 +01:00
Eelco Dolstra
18e067ac80 xf86-video-modesetting: Remove
This driver is part of xorg-server now, so we were using an outdated
version.

(cherry picked from commit c7d92f9485)
2016-05-24 15:34:30 +02:00
Domen Kožar
a96ca6491a add CentOS 7.1
(cherry picked from commit 56714859f4)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-24 11:36:03 +01:00
Domen Kožar
2cf5dcd99a add OpenSuse 13.2 2016-05-24 11:04:53 +01:00
Domen Kožar
9d5fde9c5a debian7: change hash due to 7.10 release 2016-05-24 10:41:13 +01:00
Taeradan
34a7a5ce98 fail2ban service: add iproute to PATH
iproute is required for blocking via null routes; without it, rules
based on routes.conf will fail.

Closes #15638

(cherry picked from commit 77028b1e8d)
2016-05-23 22:38:53 +02:00
Bjørn Forsman
25077350b7 wireshark: 2.0.2 -> 2.0.3
(cherry picked from commit d809ef47cb)

Fixes security issues:
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4084
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4083
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4082
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4080
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4079
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4078
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4077
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4076
  * https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-4006
2016-05-23 20:30:33 +02:00
Domen Kožar
91cc776f0a setuid-wrappers: remove config.system.path from the closure
The motivation is using sudo in chroot nix builds, a somewhat
special edge case I have and pulling system path into chroot
yields to some very nasty bug like
https://github.com/NixOS/nixpkgs/issues/15581

Previously:

$ cat /var/setuid-wrappers/sudo.real
/nix/store/3sm04dzh0994r86xqxy52jjc0lqnkn65-system-path/bin/sudo

After the change:

$ cat /var/setuid-wrappers/sudo.real
/nix/store/4g9sxbzy8maxf1v217ikp69c0c3q12as-sudo-1.8.15/bin/sudo
2016-05-23 13:50:50 +01:00
Eelco Dolstra
8688c1774d xf86-video-intel: 2015-11-14 -> 2016-05-22
This fixes compositing in KDE on a Intel HD Graphics 530 for me.

(cherry picked from commit a0f89ee509)
2016-05-22 23:20:17 +02:00
Eelco Dolstra
d35b0bae59 xkeyboard-config: 2.16 -> 2.17
(cherry picked from commit 600cd79f1e)
2016-05-22 23:20:03 +02:00
Eelco Dolstra
5679647b18 linux: 4.4.10 -> 4.4.11
(cherry picked from commit 3ee6b22dc3)
2016-05-22 23:19:52 +02:00
Joachim Fasting
7e5aca7e37 grsecurity: 4.5.5-201605202102 -> 4.5.5-201605211442
(cherry picked from commit 5a357d9731)
2016-05-22 20:13:38 +02:00
Joachim Fasting
d7e4b2328d grsecurity: 4.5.4-201605131918 -> 4.5.5-201605202102
(cherry picked from commit cdf2ffda9d)
2016-05-22 20:13:38 +02:00
Joachim Fasting
c93dd27168 linux: 4.5.4 -> 4.5.5
(cherry picked from commit 79481bd68f)
2016-05-22 20:13:37 +02:00
Franz Pletz
0a76452a07 linux: 4.5.3 -> 4.5.4
(cherry picked from commit 006f6d9437)
2016-05-22 20:13:36 +02:00
Tim Steinbach
b3b73d8d1f kernel: 4.5.2 -> 4.5.3
(cherry picked from commit 02d94d335a)
2016-05-22 20:13:36 +02:00
Bjørn Forsman
0f9e365e0f wildmidi: 0.3.8 -> 0.3.9
(cherry picked from commit 1cc4e03a7c)
2016-05-22 18:19:17 +02:00
Nick Novitski
9e41ad381f neovim: fix Man command
(cherry picked from commit 15c6fa023f)
2016-05-22 17:35:23 +02:00
Bjørn Forsman
a59d84038f qmmp: 0.8.4 -> 0.9.9
The 0.x versions is for Qt 4, whereas the new 1.x is for Qt 5. We'll
update to the Qt 5 version later. Upstream currently makes simultaneous
releases of both Qt 4 and 5 branches.

(cherry picked from commit cc41cb30e3)
2016-05-22 16:35:56 +02:00
Bjørn Forsman
aff03ae142 evtest: fixup source hash for release-16.03
Cherry-picking directly from master is now unsafe (ref. parent commit),
because fetchgit on master branch creates different hashes than on
release-16.03. (And I didn't notice until building on a *different*
machine, because on my first machine, the source was already
downloaded...)
2016-05-22 00:30:58 +02:00
Bjørn Forsman
6353f87b2a evtest: 1.32 -> 1.33
(cherry picked from commit b51986b8d1)
2016-05-21 23:30:06 +02:00
Svend Sorensen
65dcba37b7 librecad: 2.0.9 -> 2.0.10
(cherry picked from commit ddcf5d3941)
2016-05-21 22:37:23 +02:00
ne0phyte
ff2cb156ec librecad: 2.0.8 -> 2.0.9
(cherry picked from commit 1532ce35b8)
2016-05-21 22:37:23 +02:00
Arnold Krille
0b0f759b93 unbound service: do not initialize root cert
When enableRootTrustAnchor is set to false, there is really no point in
initializing the root key before starting unbound.

Fixes #15605.

(cherry picked from commit bf0e745597)
2016-05-21 22:27:55 +02:00
Tobias Geerinckx-Rice
7f9d53813d borgbackup: 1.0.2 -> 1.0.3
Changes: https://github.com/borgbackup/borg/blob/1.0.3/docs/changes.rst

(cherry picked from commit b1f6a10e1e)
2016-05-21 22:21:50 +02:00
Bjørn Forsman
652659adae john: use gcc 4.9 instead of 5 (unbreaks build)
Fixes this build error:

  dynamic_fmt.o: In function `DynamicFunc__crypt_md5_to_input_raw_Overwrite_NoLen':
  .../john-1.8.0-jumbo-1/src/dynamic_fmt.c:4989: undefined reference to `MD5_body_for_thread'

Upstream issue:

  https://github.com/magnumripper/JohnTheRipper/issues/1093

(cherry picked from commit d5656873d7)
2016-05-21 22:18:22 +02:00
Alexander Ried
e2deaf77c1 releasenotes: fix opengl.extraPackages option name
Should be merged into master and release-16.03 I guess
(cherry picked from commit 31fa7eda70)
2016-05-21 16:35:31 +02:00
Rickard Nilsson
d1226f311c openldap: 2.4.42 -> 2.4.44
(cherry picked from commit efe33d6e87)
Signed-off-by: Domen Kožar <domen@dev.si>

CVE-2015-6908
2016-05-20 19:06:23 +01:00
Lluís Batlle i Rossell
0dae829da7 Allow not rebasing in cygwin stdenv.
This changes cygwin stdenv, but I don't think it will hurt much people.

This allows mkDerivation to get "dontRebase=true" to skip the usual cygwin
rebase. This is required, if we are using this stdenv to build DLLs for win32
inside x86_64-cygwin, because /bin/rebase crashes at finding an arch mismatch.
Additionally, we don't need any rebase for libraries built by visual studio and
meant for visual studio (my use case).

I'm using nix in x86_64-cygwin to build libraries with visual studio, both for
x86_64 and x86.

(cherry picked from commit f6f5c185ca)
2016-05-20 17:25:56 +02:00
Nikolay Amiantov
4d97547bc3 buildFHSUserEnv: don't run bash in login mode for .env
Fixes https://github.com/NixOS/nixpkgs/issues/12406 for `.env`

(cherry picked from commit ca38376566)
2016-05-20 14:21:00 +03:00
Robert Helgesson
56060a2081 expat: patch CVE-2015-1283 and CVE-2016-0718 (close #15561)
Note, CVE-2015-1283 is already patched in expat version 2.1.1 but, as
explained in the patch, the fix was insufficient.

(cherry picked from commit 34cf7934c3)
2016-05-20 09:45:14 +02:00
Vladimír Čunát
38793f09b2 mesa: maintenance update 11.1.2 -> 11.1.4
It's probably the last one in this branch.
2016-05-20 09:44:38 +02:00
Joachim Fasting
6e0dddf9c5 Merge pull request #15566 from bendlas/update-dropbox-stable
[nixos-stable] dropbox: 3.12.6 -> 3.20.1
2016-05-20 06:22:07 +02:00
Domen Kožar
9ea8f6ad7d command-not-found: disable module until it's fixed again
See https://github.com/NixOS/nixos-channel-scripts/issues/4

(cherry picked from commit 2a3c0ca3d5)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-19 20:17:02 +01:00
Domen Kožar
c4622d53a1 dpdk: predefined instruction set, build in parallel, use external deps 2016-05-19 19:37:11 +01:00
Domen Kožar
9c0ed7fa21 snabb: build in parallel
(cherry picked from commit 76aa0ba664)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-19 15:05:56 +01:00
Bjørn Forsman
bf9903cdb8 gnome-terminal: enable GNOME Shell search provider (for 3.18)
[This is a re-application of the patch that was originally written for
GNOME 3.16. It was lost during the transition to GNOME 3.18.]

Silly ./configure, it looks for dbus file from gnome-shell in the
installation tree of the package it is configuring. Fix by copying the
needed file from gnome-shell before ./configure is run.

This change makes gnome-shell a build time dependency (not runtime).

(cherry picked from commit ca717d0d65)
2016-05-19 13:59:54 +02:00
Vladimír Čunát
ed6a1e01c5 Merge #15541: expat: 2.1.0 -> 2.1.1 (security)
Tested it builds, including some reverse dependencies,
and it certainly didn't cause a mass build breakage on master.
2016-05-19 08:45:11 +02:00
Bjørn Forsman
168b688150 qtcreator: 3.6.0 -> 3.6.1 (bugfixes)
Changelog:
http://code.qt.io/cgit/qt-creator/qt-creator.git/tree/dist/changes-3.6.1.md?h=3.6
(cherry picked from commit b06ecd7f85)
2016-05-18 23:03:38 +02:00
Pascal Wittmann
d3c3177c90 subversion: fix evaluation 2016-05-18 21:56:09 +02:00
Pascal Wittmann
43e8b6d5bd subversion: 1.9.3 -> 1.9.4 (fixes CVE-2016-2168, CVE-2016-2167) 2016-05-18 21:33:55 +02:00
Pascal Wittmann
44353501f6 subversion: 1.8.15 -> 1.8.16 (fixes CVE-2016-2168, CVE-2016-2167) 2016-05-18 21:33:07 +02:00
Robert Helgesson
f23048d0e4 expat: 2.1.0 -> 2.1.1
Also remove CVE patch merged upstream and enable tests.

(Cherry-picked from 6658077815 by falsifian.)
2016-05-18 08:53:47 -07:00
Eelco Dolstra
6ae66651ad linux: 4.4.9 -> 4.4.10
(cherry picked from commit 7a8ea6138e)
2016-05-18 11:42:42 +02:00
Tim Steinbach
c92b8f6a53 kernel: 4.4.8 -> 4.4.9 (#15276)
(cherry picked from commit f53850bf21)
2016-05-18 11:42:38 +02:00
Tobias Geerinckx-Rice
d9af74cac8 mcelog: 136 -> 137
(cherry picked from commit 806ce6323e)
2016-05-17 16:02:52 +02:00
Tobias Geerinckx-Rice
a9c465bdcd mcelog: 135 -> 136
Adds support to decode MSCOD values for Skylake server.

(cherry picked from commit d99df88efe)
2016-05-17 16:02:38 +02:00
Tobias Geerinckx-Rice
d4581ee724 mcelog: 134 -> 135
(cherry picked from commit d5207802fa)
2016-05-17 16:02:21 +02:00
Tobias Geerinckx-Rice
4b977a2656 mcelog: 133 -> 134
trigger: Avoid warning from earlier merge
(cherry picked from commit c0a35241f0)
2016-05-17 16:02:13 +02:00
Tobias Geerinckx-Rice
5921de6cf3 mcelog: 132 -> 133
Bugfix: no longer hangs on unknown errors in non-daemon mode.
(cherry picked from commit 7951dd531e)
2016-05-17 16:02:04 +02:00
Bjørn Forsman
5438cb191c saleae-logic: 1.1.15 -> 1.2.9
Changelog:
http://support.saleae.com/hc/en-us/articles/210245593-Saleae-Logic-Beta-Software-Changelog

(Yes, the changelog title contains the word 'beta', but as of version
1.2.9 the beta branding is removed from the software as the beta branch
was merged to master.)

This software update is required for newer logic analysers (e.g. Logic
Pro 8). (The original Logic is still supported, although it's difficult
to find info about it on their website.)

v1.2.9 grew new dependencies: libxcb, zlib, pciutils, xkeyboardconfig.

The LD_PRELOAD library hack, used to divert writes from
$out/Settings/settings.xml to $HOME/.saleae-logic-settings.xml, has been
updated. The new software writes more paths
($out/{Settings,Errors,Databases,Calibration}) and uses a few extra
library calls to access those paths
(open,openat,stat,access,unlink,...). So instead of single file
redirect, the library now redirects accesses to all those directories,
mirrored in $HOME/.saleae-logic/. (Existing
$HOME/.saleae-logic-settings.xml files will be automatically migrated to
$HOME/.saleae-logic/Settings/settings.xml.)

(cherry picked from commit 314b1fbf0c)

[release-16.03 backport note: s/stdenv.cc.cc.lib/stdenv.cc.cc/ to fix
error: attribute ‘lib’ missing, at .../saleae-logic/default.nix:19:65]
2016-05-17 15:08:36 +02:00
Vladimír Čunát
15941ff8f2 fetchurl mirrors: fix gnupg URLs
Some mirrors were missing /gcrypt. Now they should be consistent.
Fixes 15510. Closes 15511.

(cherry picked from commit af364c0f77)
2016-05-17 11:38:15 +02:00
Shea Levy
01f5711485 notmuch: Backport 0.22 2016-05-16 15:20:39 -04:00
Shea Levy
6c23e7e59a gsasl: Maintain, fix gssapi support
(cherry picked from commit da998cffcd)
2016-05-16 14:10:38 -04:00
Shea Levy
059fc4505d linux-4.6: Fix copy-paste error.
Thanks to @NeQuissimus for the spot

(cherry picked from commit 1ea263ef03)
2016-05-16 13:53:32 -04:00
Shea Levy
102a5d663c Linux 4.6
(cherry picked from commit 0373eb86f1)
2016-05-16 12:03:01 -04:00
Joachim Fasting
22a6aaa7ed kernelPatches.grsecurity: 4.5.4-201605122039 -> 4.5.4-201605131918
Also revert to using the grsecurity-scrape mirror; relying on upstream
just isn't viable. Lately, updates have been so frequent that a new
version is released before Hydra even gets around to building the
previous one.

(cherry picked from commit 6194e9d801)
2016-05-15 11:07:29 +02:00
Joachim Fasting
efa24fbae9 kernelPatches.grsecurity_4_5: 4.5.4-201605112030 -> 4.5.4-201605122039
(cherry picked from commit 7fdce2feb0)
2016-05-15 11:07:19 +02:00
Joachim Fasting
890949a2f0 grsecurity_4_5: 4.5.3-201605080858 -> 4.5.4-201605112030
(cherry picked from commit 10aaca8c1f)
2016-05-15 11:07:06 +02:00
Joachim Fasting
5f6dbe1a5a grsecurity: add option to disable chroot caps restriction
The chroot caps restriction disallows chroot'ed processes from running
any command that requires `CAP_SYS_ADMIN`, breaking `nixos-rebuild`. See
e.g., https://github.com/NixOS/nixpkgs/issues/15293

This significantly weakens chroot protections, but to break
nixos-rebuild out of the box is too severe.

(cherry picked from commit d4d7bfe07b)
2016-05-15 11:06:50 +02:00
Joachim Fasting
149d9acf4f kernelPatches.grsecurity_4_5: 201605060852 -> 201605080858
(cherry picked from commit 52477b0a0b)
2016-05-15 11:06:35 +02:00
Joachim Fasting
4ac9b33fa4 linuxPackages_grsec_4_5: 3.1-4.5.2-201604290633 -> 3.1-4.5.3-201605060852
(cherry picked from commit 27061905bd)
2016-05-15 11:06:04 +02:00
Joachim Fasting
bddaf83203 grsecurity: drop support for 4.4 kernels
From now on, only the testing branch of grsecurity will be supported.
Additionally, use only patches from upstream.

It's impossible to provide meaningful support for grsecurity stable.
First, because building and testing \(m \times n \times z) [1], packages
is infeasible.  Second, because stable patches are only available from
upstream for-pay, making us reliant on third-parties for patches. In
addition to creating yet more work for the maintainers, using stable
patches provided by a third-party goes against the wishes of upstream.

nixpkgs provides the tools necessary to build grsecurity kernels for any
version the user chooses, however, provided they pay for, or otherwise
acquire, the patch themselves.

Eventually, we'll want to remove the now obsolete top-level attributes,
but leave them in for now to smoothe migration (they have been removed
from top-level/release.nix, though, because it makes no sense to have
them there).

[1]: where \(m\) is the number of grsecurity flavors, \(n\) is the
number of kernel versions, and z is the size of the `linuxPackages` set

(cherry picked from commit 0bd31bce10)
2016-05-15 11:05:42 +02:00
Joachim Fasting
e8faaf0996 grsecurity module: fix grsec-lock unit ordering
Requirement without ordering implies parallel execution; it is crucial
that sysctl tunables are finalized before the lock is engaged, however.

(cherry picked from commit 60a27781d6)
2016-05-15 11:05:16 +02:00
Joachim Fasting
2884d35e98 grsecurity: ensure that PaX ELF markings are enabled
The upstream default is to enable only xattr markings, breaking the
paxmarks facility.

(cherry picked from commit a69501a936)
2016-05-15 11:05:02 +02:00
Joachim Fasting
1e97d62dfd linuxPackages_grsec_4_5: init at 3.1-4.5.2-201604290633
(cherry picked from commit fecb56fc3f)
2016-05-15 11:04:11 +02:00
Joachim Fasting
b799be8305 dirmngr: 1.0.3 -> 1.1.1
Fixes the build.

This package is probably ripe for removal by now, as dirmngr was incorporated
into gnupg a couple of years ago:
https://lists.gnupg.org/pipermail/gnupg-announce/2014q4/000358.html

(cherry picked from commit 201f6600cb)
2016-05-15 10:36:01 +02:00
Joachim Fasting
2ae983dda5 libksba: 1.3.3 -> 1.3.4
Contains a fix for https://access.redhat.com/security/cve/CVE-2016-4574

(cherry picked from commit 7e4db700dc)
2016-05-15 10:35:49 +02:00
aszlig
5454a88346 chromium: Update to latest beta and dev channels
Overview of the updated versions:

beta: 50.0.2661.49 -> 51.0.2704.47
dev:  51.0.2693.2  -> 52.0.2729.3

It has been a while since we had a major Chromium update that compiled
and worked without troubles, but version 52 builds and the VM tests are
successful as well:

https://headcounter.org/hydra/eval/320335

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit ad2c8d3510)
Reason: 50.0.2661.102 fixes a bunch of security vulnerabilities and
        we want to have them fixed in beta/dev as well.
2016-05-15 05:20:05 +02:00
Scott R. Parish
5dbabdd2a9 chromium: Update stable to 50.0.2661.102 for multiple security fixes
This addresses the following security fixes:

 * High   CVE-2016-1667: Same origin bypass in DOM. Credit to
                         Mariusz Mlynski.
 * High   CVE-2016-1668: Same origin bypass in Blink V8 bindings. Credit
                         to Mariusz Mlynski.
 * High   CVE-2016-1669: Buffer overflow in V8. Credit to Choongwoo Han.
 * Medium CVE-2016-1670: Race condition in loader. Credit to anonymous.
 * Medium CVE-2016-1671: Directory traversal using the file scheme on
                         Android. Credit to Jann Horn.

See: http://googlechromereleases.blogspot.com/2016/05/stable-channel-update.html

Signed-off-by: Scott R. Parish <srparish@gmail.com>
Tested-by: aszlig <aszlig@redmoonstudios.org>
Closes: #15446
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 5ebf20db0f)
2016-05-15 05:19:10 +02:00
Nikolay Amiantov
342435cc57 firefox: upstream moved to ffmpeg from gstreamer
Sadly, they don't support using system library yet (or I was unattentive).
2016-05-15 01:12:12 +03:00
Vladimír Čunát
607f4aea53 Merge #15447: glibc security updates
(cherry picked from commit 45a14c873b)
2016-05-14 21:38:57 +02:00
Chris Martin
db49414fe3 idea.webstorm: 10.0.4 -> 10.0.5
(cherry picked from commit ff48229c42)
2016-05-13 16:02:56 +02:00
Chris Martin
de0aaaa2e7 idea.phpstorm: 10.0.1 -> 10.0.4
(cherry picked from commit ee511456fc)
2016-05-13 16:02:56 +02:00
Chris Martin
a3b52aadd6 idea.pycharm-professional: 2016.1.2 -> 2016.1.3
(cherry picked from commit 8cf2a2dbeb)
2016-05-13 16:02:55 +02:00
Chris Martin
d045c5379a idea.pycharm-community: 2016.1.2 -> 2016.1.3
(cherry picked from commit 89f46ab3e3)
2016-05-13 16:02:55 +02:00
Chris Martin
ef4ad6f467 idea.ruby-mine: 7.1.2 -> 7.1.5
(cherry picked from commit 22b8bb4bd0)
2016-05-13 16:02:55 +02:00
Chris Martin
528113039d idea.idea-ultimate: 2016.1.1 -> 2016.1.2
(cherry picked from commit 69448be776)
2016-05-13 16:02:54 +02:00
Chris Martin
4ef2b9f770 idea.idea15-ultimate: 15.0.5 -> 15.0.6
(cherry picked from commit ac076eeb20)
2016-05-13 16:02:54 +02:00
Chris Martin
80aa3b2594 idea.idea-community: 2016.1.1 -> 2016.1.2
(cherry picked from commit 4217743b94)
2016-05-13 16:02:54 +02:00
Chris Martin
eb94b7cdf5 idea.idea14-community: 14.1.6 -> 14.1.7
(cherry picked from commit 149ba81f79)
2016-05-13 16:02:53 +02:00
Chris Martin
2b7584da96 idea.clion: 1.2.4 -> 1.2.5
(cherry picked from commit 9fe577bdc0)
2016-05-13 16:02:53 +02:00
Chris Martin
9683f06fb2 idea.android-studio: 2.0.0.20 -> 2.1.1.0
(cherry picked from commit 7d0570a253)
2016-05-13 16:02:43 +02:00
Edward Tjörnhammar
dee9b879ca Merge pull request #15321 from a1russell/idea
idea.idea14-ultimate: init at 14.1.7
2016-05-13 15:53:14 +02:00
taku0
f98d57b46d flashplayer: 11.2.202.616 -> 11.2.202.621
(cherry picked from commit cade2f36e5)
2016-05-12 16:26:09 +03:00
Eelco Dolstra
aab59c028a pythonPackages.psutil: Drop busybox dependency
This broke the build on OS X. And we're not even running the tests
anyway.

(cherry picked from commit 742e72eded)
2016-05-12 14:42:08 +02:00
Bjørn Forsman
d3456dc1e4 sigrok: update whole suite to latest (2016-01)
Release announcement, 2016-01-30:
https://www.sigrok.org/blog/major-sigrok-releases-libsigrok-libsigrokdecode-sigrok-cli-pulseview

I first tried updating the projects in separate commits. But later I
found cyclic dependencies, that would break git bisect, so I ended up
squashing the commits:

* libsigrok: 0.3.0 -> 0.4.0
  Enable building libsigrokcxx.so, the C++ bindings for libsigrok, by
  adding doxygen, glibmm and python as build deps. This is needed for
  Pulseview >= 0.3.0. Also update the firmware (sigrok-firmware-fx2lafw)
  while at it.

* libsigrokdecode: 0.3.0 -> 0.4.0

* sigrok-cli: 0.5.0 -> 0.6.0

* pulseview: 0.2.0 -> 0.3.0
  New dependency: glibmm (due to libsigrokcxx.pc from libsigrok).

Note that collectd is incompatible with the new libsigrok release, so
I let it use the old one (0.3.0).

(cherry picked from commit 300e495101)
2016-05-11 22:25:47 +02:00
Bjørn Forsman
c8269df1b5 libserialport: 0.1.0 -> 0.1.1
(cherry picked from commit f768098e3e)
2016-05-11 22:25:45 +02:00
Adam Russell
a4f13a8bae idea.idea14-ultimate: init at 14.1.7 2016-05-11 13:43:20 -05:00
Eelco Dolstra
600efba242 google-talk-plugin: 5.4.2.0 -> 5.41.0.0
(cherry picked from commit 86c45ba50d)
2016-05-11 20:18:53 +02:00
Bjørn Forsman
92099db6f7 hashcat: 0.49 -> 2.00
The current URL is broken, upstream has moved the download from .../files/ to
.../files_legacy/. But after fixing that, starting hashcat results in:

  $ ./result/bin/hashcat
  ERROR: this copy of hashcat is outdated. Get a more recent version.

So just update to latest.

New releases are on github, the license is now MIT and there are build
system changes.

(cherry picked from commit 800042b310)
2016-05-11 19:17:36 +02:00
Franz Pletz
eae3eef2c1 msmtp: 1.6.2 -> 1.6.4
(cherry picked from commit d7338bf9d7)
2016-05-11 10:25:22 -04:00
Carles Pagès
995ddb04a3 makeImageFromDebDist: accept additional parameters for vm, as in rpm version.
(cherry picked from commit e7ab828da1)
2016-05-11 16:24:41 +02:00
Shea Levy
1906eb9cd5 Add kerberos mappings for MIT exchange server
(cherry picked from commit 67d430096f)
2016-05-11 09:09:34 -04:00
Rob Vermaas
2c5ad36cff Add scikitlearn to binary cache. 2016-05-11 10:35:51 +00:00
Shea Levy
b10f61bc1b Backport offlineimap-6.7 2016-05-10 18:10:39 -04:00
Shea Levy
e2cd6d6931 Fix license attr
(cherry picked from commit 6f12b7aec4)
2016-05-10 17:43:16 -04:00
Shea Levy
042b69374d Add kerberos pythonPackage
(cherry picked from commit f298ebb957)
2016-05-10 17:32:32 -04:00
Herwig Hochleitner
4f2a7a9eba [nixos-stable] dropbox: 3.12.6 -> 3.20.1 2016-05-10 19:32:18 +02:00
Rob Vermaas
713c240563 Adding pythonPackags.pandas to binary cache. Python packages are
not part of nixpkgs/nixos jobsets in 16.03+ since ccd1029f58. Until
it gets added again, adding some python packages that take really
long to build.
2016-05-10 15:15:12 +00:00
Tuomas Tynkkynen
4cdf5b4279 otter: Mark broken
Build hangs an hits the hydra time limit:
http://hydra.nixos.org/build/34897110

(cherry picked from commit ca0e724266)
2016-05-10 15:50:23 +02:00
Eelco Dolstra
091ca4e97c firefox: Revert to SHA-256 hashes
Using SHA-512 causes problems for users upgrading from NixOS 15.09.

Fixes #15349.
2016-05-10 15:31:52 +02:00
Tobias Geerinckx-Rice
659212aea7 thunderbird: 38.7.1 -> 45.0
Changes: https://www.mozilla.org/en-US/thunderbird/45.0/releasenotes/
(cherry picked from commit 2dc8975bc4)
2016-05-10 11:10:53 +02:00
Bjørn Forsman
1c1efaad6e moreutils: add meta.platforms (= all)
(cherry picked from commit 977cd5de36)
2016-05-09 20:35:40 +02:00
Eelco Dolstra
53d34e016f thunderbird: 38.7.0 -> 38.7.1
(cherry picked from commit ca983ec20c)
2016-05-09 19:43:20 +02:00
Eelco Dolstra
d2fcb5afb7 Add mirror://mozilla scheme
(cherry picked from commit cb37ab146b)
2016-05-09 19:42:30 +02:00
Eelco Dolstra
2eb3eafedf Fix some URLs that lacked a URI scheme
(cherry picked from commit 7ce5d43c63)
2016-05-09 19:40:51 +02:00
Eelco Dolstra
efd03d53ca copy-tarballs.pl: Add --exclude flag
(cherry picked from commit 4f4ba0d3f4)
2016-05-09 19:40:47 +02:00
Eelco Dolstra
a5d71c175c firefox-esr: 45.0.2 -> 45.1.1
(cherry picked from commit de22402f85)
2016-05-09 19:40:42 +02:00
Eelco Dolstra
a8f1c55157 firefox: 46.0 -> 46.0.1
(cherry picked from commit 02d01dc7c5)
2016-05-09 19:40:38 +02:00
Eelco Dolstra
592dd23efc aws-sdk-cpp: 0.9.6 -> 0.10.6
(cherry picked from commit 11e252e5a0)
2016-05-09 19:40:17 +02:00
Eelco Dolstra
96e204b064 firefox: Don't use out-dated system sqlite 2016-05-09 19:39:46 +02:00
Eelco Dolstra
4d496ea6b0 firefox: 45.0.2 -> 46.0
Still using GTK+ 2 for now, since apparently building with GTK+ 3
still requires GTK+ 2, increasing the closure size. (#15008)

(cherry picked from commit 930d243ea4)
2016-05-09 19:39:21 +02:00
Eelco Dolstra
7efca53da4 Update EC2 AMIs to 16.03.659.011ea84
This includes the binutils mass rebuild.

(cherry picked from commit ecfc523d32)
2016-05-09 19:39:12 +02:00
Tobias Geerinckx-Rice
44eeb747ac borgbackup: 1.0.1 -> 1.0.2
Changes: https://github.com/borgbackup/borg/blob/1.0.2/docs/changes.rst
(cherry picked from commit 6e261865a4)
2016-05-09 14:55:40 +02:00
Tobias Geerinckx-Rice
984dc3ef6c borgbackup: 1.0.0 -> 1.0.1
Changes: https://github.com/borgbackup/borg/blob/1.0.1/docs/changes.rst
(cherry picked from commit f019db633f)
2016-05-09 14:55:34 +02:00
Tobias Geerinckx-Rice
7c406f347f borgbackup: 0.30.0 -> 1.0.0
Major upgrade, be sure to read the release notes:
https://github.com/borgbackup/borg/blob/1.0.0/docs/changes.rst

(cherry picked from commit b747253700)
2016-05-09 14:55:25 +02:00
Lluís Batlle i Rossell
1cfa84a52d Making vm's interactive shell handle the terminal well.
(cherry picked from commit e21dd19168)
2016-05-09 14:30:07 +02:00
Lluís Batlle i Rossell
6e4a8bea9e Making vm's qemu cache=unsafe. Faster.
I don't think it's unsafe, if it's meant for nix expressions.

(cherry picked from commit ab93f8c137)
2016-05-09 14:30:02 +02:00
Lluís Batlle i Rossell
8fd1ed7621 vm: allow overriding QEMU_OPTS / memSize for images.
It's nice to be able to create disk images with -smp 4
in qemu.

(cherry picked from commit 635c99ce87)
2016-05-09 14:29:56 +02:00
Lluís Batlle i Rossell
b1ffcd19d1 Adding libuuid (libblkid) to lvm2.
It wants it to detect if there are filesystems present in block devices, in
case of pvcreate. Otherwise it complaints "lvm built without blkid support" and
lacks the feature of detecting/wiping.

(cherry picked from commit 2f35e223b1)

I fixed an easy conflict.
2016-05-09 14:29:34 +02:00
Lluís Batlle i Rossell
165781b529 Fixing nfsd service, wait on local-fs.
Otherwise, mountd was started exporting directories before local-fs was ready,
and it failed to start nfsd on missing fs.

(cherry picked from commit 9f6afb7d78)
2016-05-09 14:26:49 +02:00
Lluís Batlle i Rossell
74139a6b58 Fixing stunt-rally 2.6 (adding newer bullet)
(cherry picked from commit f0c503593f)

There were some weird conflicts.
2016-05-08 16:25:49 +02:00
Lluís Batlle i Rossell
aa296f3913 Adding vmlinux to linux kernel 'dev' derivation.
It takes some extra 13MB (and in dev, not out), but allows perf to show kernel
symbols when profiling. I think it is worth it.

In my NixOS, I refer to it in the system derivation, for easy telling to perf
through /run/booted-system/vmlinux:

  system.extraSystemBuilderCmds = ''
    ln -s ${config.boot.kernelPackages.kernel.dev}/vmlinux $out/vmlinux
  '';

(cherry picked from commit 53a4582552)
2016-05-07 23:32:55 +02:00
Nikolay Amiantov
1527011d5f dropbox: meta.licenses -> meta.license
(cherry picked from commit 62c41cc539)
2016-05-07 15:17:43 +03:00
Nikolay Amiantov
f4d610867a dropbox: mark as unfree
(cherry picked from commit 41ced9f100)
2016-05-07 15:17:42 +03:00
Thomas Tuegel
fcd2a001ef quassel: 0.12.3 -> 0.12.4
Security update for CVE-2016-4414 (denial of service).

(cherry picked from commit f2ec142847)
2016-05-07 07:00:39 -05:00
zimbatm
bbd47710de quassel: fix sources
Fixes changes after #14080 where the updated hash was missing.

Put the source in a common file so there is only one place to update.

(cherry picked from commit 23b9d037de)

Backported from master to facilitate future updates.
2016-05-07 07:00:39 -05:00
Nikolay Amiantov
54b7bdac59 Merge pull request #15284 from sheenobu/bspwm/socket_patch/1603
bspwm: backport of socket unlink fix to 0.9
2016-05-07 15:50:50 +04:00
Sheena Artrip
15a51fcfdb bspwm: backport of socket unlink fix to 0.9 2016-05-07 04:31:06 -04:00
aszlig
65f4e9d4c5 Merge branch 'stage1-dont-kill-kthreads'
Merges pull request #15275:

    This addresses #15226 and fixes killing of processes before
    switching from the initrd to the real root.

    Right now, the pkill that is issued not only kills user space
    processes but also sends a SIGKILL to kernel threads as well.
    Usually these threads ignore signals, but some of these processes do
    handle signals, like for example the md module, which happened in
    #15226.

    It also adds a small check for the swraid installer test and a
    standalone test which checks on just that problem, so in the future
    this shouldn't happen again.

This has been acked by @edolstra on IRC.

The reason I'm merging this to 16.03 is that this branch fixes #15226
and thus also fixes mdraid setups out there.

Tested using the boot-stage1.nix NixOS test against release-16.03.
2016-05-06 22:11:10 +02:00
aszlig
6228949157 nixos/tests/boot-stage1: Add myself to maintainers
As @edolstra pointed out that the kernel module might be painful to
maintain. I strongly disagree because it's only a small module and it's
good to have such a canary in the tests no matter how the bootup process
looks like, so I'm going the masochistic route and try to maintain it.

If it *really* becomes too much maintenance burden, we can still drop or
disable kcanary.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-05-06 22:06:34 +02:00
aszlig
43da2f3209 nixos/release-combined: Add boot-stage1 test
We don't want to push out a channel update whenever this test fails,
because that might have unexpected and confused side effects and it
*really* means that stage 1 of our boot up is broken.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-05-06 22:06:34 +02:00
aszlig
45b7d41fa7 nixos/tests: Add a test for boot stage 1
We already have a small regression test for #15226 within the swraid
installer test. Unfortunately, we only check there whether the md
kthread got signalled but not whether other rampaging processes are
still alive that *should* have been killed.

So in order to do this we provide multiple canary processes which are
checked after the system has booted up:

 * canary1: It's a simple forking daemon which just sleeps until it's
            going to be killed. Of course we expect this process to not
            be alive anymore after boot up.
 * canary2: Similar to canary1, but tries to mimick a kthread to make
            sure that it's going to be properly killed at the end of
            stage 1.
 * canary3: Like canary2, but this time using a @ in front of its
            command name to actually prevent it from being killed.
 * kcanary: This one is a real kthread and it runs until killed, which
            shouldn't be the case.

Tested with and without 67223ee and everything works as expected, at
least on my machine.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-05-06 22:06:34 +02:00
aszlig
74b41a7385 nixos/tests/installer/swraid: Check for safemode
This is a regression test for #15226, so that the test will fail once we
accidentally kill one or more of the md kthreads (aka: if safe mode is
enabled).

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-05-06 22:06:34 +02:00
aszlig
cc98c4e105 nixos/stage-1: Don't kill kernel threads
Unfortunately, pkill doesn't distinguish between kernel and user space
processes, so we need to make sure we don't accidentally kill kernel
threads.

Normally, a kernel thread ignores all signals, but there are a few that
do. A quick grep on the kernel source tree (as of kernel 4.6.0) shows
the following source files which use allow_signal():

  drivers/isdn/mISDN/l1oip_core.c
  drivers/md/md.c
  drivers/misc/mic/cosm/cosm_scif_server.c
  drivers/misc/mic/cosm_client/cosm_scif_client.c
  drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
  drivers/staging/rtl8188eu/core/rtw_cmd.c
  drivers/staging/rtl8712/rtl8712_cmd.c
  drivers/target/iscsi/iscsi_target.c
  drivers/target/iscsi/iscsi_target_login.c
  drivers/target/iscsi/iscsi_target_nego.c
  drivers/usb/atm/usbatm.c
  drivers/usb/gadget/function/f_mass_storage.c
  fs/jffs2/background.c
  fs/lockd/clntlock.c
  fs/lockd/svc.c
  fs/nfs/nfs4state.c
  fs/nfsd/nfssvc.c

While not all of these are necessarily kthreads and some functionality
may still be unimpeded, it's still quite harmful and can cause
unexpected side-effects, especially because some of these kthreads are
storage-related (which we obviously don't want to kill during bootup).

During discussion at #15226, @dezgeg suggested the following
implementation:

for pid in $(pgrep -v -f '@'); do
    if [ "$(cat /proc/$pid/cmdline)" != "" ]; then
        kill -9 "$pid"
    fi
done

This has a few downsides:

 * User space processes which use an empty string in their command line
   won't be killed.
 * It results in errors during bootup because some shell-related
   processes are already terminated (maybe it's pgrep itself, haven't
   checked).
 * The @ is searched within the full command line, not just at the
   beginning of the string. Of course, we already had this until now, so
   it's not a problem of his implementation.

I posted an alternative implementation which doesn't suffer from the
first point, but even that one wasn't sufficient:

for pid in $(pgrep -v -f '^@'); do
    readlink "/proc/$pid/exe" &> /dev/null || continue
    echo "$pid"
done | xargs kill -9

This one spawns a subshell, which would be included in the processes to
kill and actually kills itself during the process.

So what we have now is even checking whether the shell process itself is
in the list to kill and avoids killing it just to be sure.

Also, we don't spawn a subshell anymore and use /proc/$pid/exe to
distinguish between user space and kernel processes like in the comments
of the following StackOverflow answer:

http://stackoverflow.com/a/12231039

We don't need to take care of terminating processes, because what we
actually want IS to terminate the processes.

The only point where this (and any previous) approach falls short if we
have processes that act like fork bombs, because they might spawn
additional processes between the pgrep and the killing. We can only
address this with process/control groups and this still won't save us
because the root user can escape from that as well.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Fixes: #15226
2016-05-06 22:06:34 +02:00
Joachim Fasting
24e394d447 bittorrentSync20: 2.3.6 -> 2.3.7
(cherry picked from commit e4bd66c8f0)

For a list of changes post 2.x (mostly fixes & minor improvements), see
http://help.getsync.com/hc/en-us/articles/206216855-Sync-2-x-change-log
2016-05-06 08:33:53 +02:00
Joachim Fasting
f10759fb19 bittorrentSync14: 1.4.110 -> 1.4.111
(cherry picked from commit 6d2625a940)
2016-05-06 08:33:30 +02:00
Joachim Fasting
011de8e341 bittorrentSync20: 2.3.3 -> 2.3.6 (#15147)
Note that this changes the domain from getsyncapp.com (no longer valid)
to getsync.com.
(cherry picked from commit a7886c9189)
2016-05-06 08:33:25 +02:00
obadz
b82cef091a linux kernel 4.4: fix race during build
Patch drivers/crypto/qat/qat_common/Makefile so that qat_asym_algs.o
explicitly depends on headers qat_rsaprivkey-asn1.h and qat_rsapubkey-asn1.h

(cherry picked from commit 4788ec1372)
This should fix evaluation of 4.5 kernel. I forgot to pick this one.
2016-05-05 13:41:56 +02:00
Vladimír Čunát
1c161afba8 linux kernel 4.5: fix race during build
This is just 4788ec1372 but for 4.5 instead of 4.4.
Example failure: http://hydra.nixos.org/build/35194276

(cherry picked from commit 323825f967)
2016-05-05 12:18:08 +02:00
José Romildo Malaquias
69420c5242 imlib2: 1.4.8 -> 1.4.9
(cherry picked from commit 3e401a8d01)

Contains fixes for CVE-2011-5326, CVE-2016-3993, CVE-2016-3994, CVE-2016-4024
2016-05-04 06:48:45 +02:00
Franz Pletz
853fe4ceeb libressl: 2.2.6 -> 2.2.7, 2.3.3 -> 2.3.4
Fix multiple vulnerabilities in libcrypto relating to ASN.1 and encoding.

http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.2.7-relnotes.txt
http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.4-relnotes.txt
(cherry picked from commit 6d55b2e9c0)
2016-05-04 01:28:01 +02:00
Franz Pletz
99e8c374ab gitlab: 8.5.7 -> 8.5.12
(cherry picked from commit 2acea21155)
2016-05-04 01:26:50 +02:00
Franz Pletz
26d9b997f2 imagemagick: Disable insecure coders (ImageTragick)
See:

  * https://imagetragick.com/
  * https://www.imagemagick.org/discourse-server/viewtopic.php?f=4&t=29588

(cherry picked from commit 69c14985d0)
2016-05-04 01:26:47 +02:00
Franz Pletz
1b48d611f0 imagemagick: 6.9.3-8 -> 6.9.3-9
(cherry picked from commit 05eae0242d)
2016-05-04 01:26:42 +02:00
Hannu Hartikainen
bd65ff6157 silver-searcher: add alias "ag" (2nd attempt)
(Now 'self' is removed, to fix eval on release-16.03.)

(cherry picked from commit e3e502e37a)
2016-05-03 23:54:40 +02:00
Lluís Batlle i Rossell
6a142de011 Adding blktrace
Tool to get traces of operations in block devices on linux.

(cherry picked from commit 94520a25ad)
2016-05-03 23:46:05 +02:00
Franz Pletz
82ca7f75d6 redshift service: run as user service
Fixes #14882.

(cherry picked from commit 882391a162)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-05-03 22:33:27 +01:00
Bjørn Forsman
45156b4057 jenkins service: improve curl call in postStart
* Perform HTTP HEAD request instead of full GET (lighter weight)
* Don't log output of curl to the journal (it's noise/debug)
* Use explicit http:// URL scheme
* Reduce poll interval from 10s to 2s (respond to state changes
  quicker). Probably not relevant on boot (lots of services compete for
  the CPU), but online service restarts/reloads should be quicker.
* Pass --fail to curl (should be more robust against false positives)
* Use 4 space indent for shell code.

(cherry picked from commit 78b6e8c319)
2016-05-03 23:19:16 +02:00
Bjørn Forsman
b786bfd8a3 jenkins service: remove unneeded (and brittle) part of postStart
The current postStart code holds Jenkins off the "started" state until
Jenkins becomes idle. But it should be enough to wait until Jenkins
start handling HTTP requests to consider it "started".

More reasons why the current approach is bad and we should remove it,
from @coreyoconnor in
https://github.com/NixOS/nixpkgs/issues/14991#issuecomment-216572571:

  1. Repeatedly curling for a specific human-readable string to
  determine "Active" is fragile. For instance, what happens when jenkins
  is localized?

  2. The time jenkins takes to initializes is variable. This (at least
  used to) depend on the number of jobs and any plugin upgrades requested.

  3. Jenkins can be requested to restart from the UI. Which will not
  affect the status of the service. This means that the service being
  "active" does not imply jenkins is initialized. Downstream services
  cannot assume jenkins is initialized if the service is active. Might
  as well accept that and remove the initialized test from service
  startup.

Fixes #14991.

(cherry picked from commit 51e5beca42)
2016-05-03 23:18:49 +02:00
Eelco Dolstra
ef4354ed47 Revert "silver-searcher: add alias "ag""
This reverts commit 6a87c8278f. It
breaks Nixpkgs evaluation:

http://hydra.nixos.org/build/35152628
2016-05-03 17:09:46 +02:00
Nathan Zadoks
e48108a671 openssl: 1.0.1s -> 1.0.1t, 1.0.2g -> 1.0.2h
CVE-2016-2108, high severity: Memory corruption in the ASN.1 encoder
CVE-2016-2107, high severity: Padding oracle in AES-NI CBC MAC check
CVE-2016-2105, low severity: EVP_EncodeUpdate overflow
CVE-2016-2106, low severity: EVP_EncryptUpdate overflow
CVE-2016-2109, low severity: ASN.1 BIO excessive memory allocation
CVE-2016-2176, low severity: EBCDIC overread

(cherry picked from commit bdafc6df04)
2016-05-03 17:06:30 +02:00
Edward Tjörnhammar
d444f80a67 idea.idea-{community,ultimate}: 2016.1 -> 2016.1.1
(cherry picked from commit 066b5cb11a)
2016-05-03 11:06:20 +02:00
Jascha Geerds
5ef3d295fa idea.pycharm: 5.0.3 -> 2016.1.2
(cherry picked from commit cf224573d6)
2016-05-03 11:06:19 +02:00
Chris Martin
538325fa13 idea.idea15-ultimate: init at 15.0.5
(cherry picked from commit 19abd55420)
2016-05-03 11:06:19 +02:00
Edward Tjörnhammar
e7203e849c idea.idea-{community,ultimate}: 15.0.4 -> 2016.1
(cherry picked from commit 5bb0aa3bac)
2016-05-03 11:06:19 +02:00
Hannu Hartikainen
6a87c8278f silver-searcher: add alias "ag"
(cherry picked from commit e3e502e37a)
2016-05-03 10:54:03 +02:00
Edward Tjörnhammar
69ec0b84fc kodi: 16.0 -> 16.1 2016-05-03 07:13:21 +02:00
Edward Tjörnhammar
86eba313d2 kodiPlugins.svtplay: 4.0.23 -> 4.0.24 2016-05-03 07:13:21 +02:00
Simon Vandel Sillesen
5e99cb7b37 kodiPlusings.pvr-hts: fix loading of plugin
The plugin was looking for pvr.hts.so.2.2.13, so as only pvr.hts.so was copied, the plugin would not load. This symlinks all variants of the name to the addons folder.
2016-05-03 07:13:20 +02:00
Edward Tjörnhammar
c6d47d58d2 kodiPlugins.svtplay: 4.0.21 -> 4.0.23 2016-05-03 07:13:20 +02:00
Edward Tjörnhammar
698839dacd kodiPlugins.steam-launcher: 3.1.1 -> 3.1.4 2016-05-03 07:13:20 +02:00
Edward Tjörnhammar
605dad66c8 kodiPlugins.salts: 2.0.6 -> 2.0.19 2016-05-03 07:13:20 +02:00
Edward Tjörnhammar
70f8e48774 kodiPlugins.hyper-launcher.{plugin,service}: init at 1.2.0 2016-05-03 07:13:20 +02:00
Edward Tjörnhammar
3e2ed47f86 kodiPlugins.pdfreader: init at 1.0.2 2016-05-03 07:13:19 +02:00
Edward Tjörnhammar
f2637409ca kodiPlugins: sort collection alphabetically 2016-05-03 07:13:10 +02:00
Shea Levy
65145c529f krb5: 1.14 -> 1.14.2 (security updates)
(cherry picked from commit edb0b7e36f)
2016-05-02 14:19:46 -04:00
Tobias Geerinckx-Rice
dde31766dd stress-ng: 0.05.00 -> 0.05.25
(cherry picked from commit d51a55366e)
2016-05-02 16:29:34 +02:00
Louis Taylor
149d1c6dfe kernel: 4.5.1 -> 4.5.2
(cherry picked from commit 90cdfb5414)
2016-05-02 11:25:58 +02:00
Tim Steinbach
ef69b9faca kernel: 4.5 -> 4.5.1 (#14691)
(cherry picked from commit af4d84544f)
2016-05-02 11:25:58 +02:00
Louis Taylor
006c8b35cf linux: add 4.5
(cherry picked from commit 8bdee80d39)
2016-05-02 11:25:57 +02:00
Lluís Batlle i Rossell
143fdbc8d4 Enabling vaapi by default on mpv.
vdpau is enabled; why vaapi not?
2016-05-02 11:25:57 +02:00
Joachim Fasting
15d0025919 Merge pull request #15143 from Beauhurst/php_updates_r16.03
PHP security updates (r16.03 backport)
2016-05-02 01:55:20 +02:00
Robert Scott
38cb63fa33 php: 5.5.34 -> 5.4.35 2016-05-01 20:36:00 +00:00
Robert Scott
ad33a4e258 php: 5.6.20 -> 5.6.21 2016-05-01 20:36:00 +00:00
Sheena Artrip
e843b35e39 Added sheenobu as maintainer
(cherry picked from commit 15f46547d9)
2016-05-01 13:46:25 +02:00
Joachim Fasting
2597f52e51 Merge pull request #15114 from Beauhurst/squid_r16.03
Squid security fixes (16.03 backport)
2016-04-30 19:19:35 +02:00
Robert Scott
6cf2f5d8e8 squid: 3.2.13 -> 3.2.14 (though many CVEs still have no fix on this branch!) 2016-04-30 16:48:58 +00:00
Robert Scott
13513e731e squid: 3.4.11 -> 3.4.14 (though many CVEs still have no fix on this branch!) 2016-04-30 16:09:40 +00:00
Robert Scott
eb17cacf36 squid: 3.5.15 -> 3.5.17 (resolving CVE-2016-3947, CVE-2016-3948, CVE-2016-4051, CVE-2016-4052, CVE-2016-4053, CVE-2016-4054)
squid supplies patches for advisories, but patches for the above advisories applied together don't compile, hence the version bump for stable
2016-04-30 14:24:42 +00:00
Brad Ediger
e9351babed spotify: 1.0.27 -> 1.0.28
(cherry picked from commit 0da43bdc1d)

Backported because the old version is not available for download anymore.
2016-04-30 00:27:51 +02:00
Sheena Artrip
accca28dfd spotify: add sheenobu as maintainer
(cherry picked from commit 45b19e1908)

0da43bdc1d depends on this.
2016-04-30 00:27:00 +02:00
Tobias Geerinckx-Rice
ba705adfc3 claws-mail: rename from (and alias to) clawsMail
(cherry picked from commit 730d488a12)
2016-04-29 22:59:00 +02:00
Domen Kožar
d84ef15f1f vmTools.diskImages: add ubuntu 16.04
(cherry picked from commit 8a3b70791c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-29 12:35:03 +01:00
Tuomas Tynkkynen
3b196dbb6f utillinux: Restore utillinuxCurses alias
This got removed by eead3bc536. Reintroduce the alias to avoid
breaking users' configurations.

(cherry picked from commit 676019bd85)
2016-04-29 10:10:20 +02:00
Rommel M. Martinez
bf1f79384e consoletools: copy utils to bin
(cherry picked from commit a6ce78130b)

Without this, `make install` puts stuff in `$out/usr/local`
2016-04-29 06:32:32 +02:00
Joachim Fasting
94137534be torbrowser: fix argument handling in wrapper
With $@ unquoted, the wrapper would always just pass "" to firefox

(cherry picked from commit 4741627bcf)
2016-04-28 23:50:00 +02:00
Joachim Fasting
5ccb23ff86 torbrowser: 5.5.4 -> 5.5.5
(cherry picked from commit 38ea8c6c30)
2016-04-28 23:50:00 +02:00
Vladimír Čunát
fcbb56accc fixup the previous cherry-pick
Thanks to @obadz for noticing promptly.
2016-04-28 18:50:44 +02:00
obadz
b1c19d6e00 qt4: add a toplevel entry for the version skype uses
Otherwise, it won't get built by hydra

abbradar: use `self` as needed for overrides.
(cherry picked from commit 98a7f819d9)
2016-04-28 18:35:21 +02:00
Eelco Dolstra
a240110dc8 acme.nix: Fix unit descriptions
Unit descriptions should be capitalized, and timer units don't have
to describe that they're timers.

(cherry picked from commit 0c5e837b66)
2016-04-28 13:59:17 +02:00
Eelco Dolstra
fa941ebacb copy-tarballs.pl: Use substituters to obtain tarballs
(cherry picked from commit 35bd7708d5)
2016-04-28 13:58:55 +02:00
Eelco Dolstra
9723a7df51 texlive-new: Export source tarballs via an attribute
This allows them to be found by find-tarballs.nix (which can only see
fetchurl dependencies if they are attributes, not if they're part of a
string context).

(cherry picked from commit be8fc33164)
2016-04-28 13:58:47 +02:00
Eelco Dolstra
a906b4be43 linux: 4.4.7 -> 4.4.8
(cherry picked from commit 454eefa63b)
2016-04-28 13:58:19 +02:00
Bjørn Forsman
0170599d55 jenkins service: bring back $SSL_CERT_FILE
A continuation of commit 23489b34c0
("Bring back $SSL_CERT_FILE"). Quoting that commit message:

  Commit 9f358f809d removed
  $SSL_CERT_FILE, which is fine for binaries linking against the current
  OpenSSL package, but not old binaries (e.g. those installed via
  nix-env). So let's keep $SSL_CERT_FILE for a while longer.

The above patch is only applied to 'release-16.03', so do the same for
this one.
2016-04-27 20:34:00 +02:00
Rob Vermaas
011ea84707 Fix nlopt build.
(cherry picked from commit 6c8fbed541)
2016-04-27 09:32:12 +00:00
Rob Vermaas
8914bb774b Add openblas 0.2.17 to make octave 4.0.1 work. 2016-04-27 09:31:47 +00:00
David Guibert
0c12babcfd kerberos_server: fix evaluation (closes #14928)
(cherry picked from commit 23e3cbeca4)
2016-04-25 16:05:45 +02:00
Sheena Artrip
47f2bf34f7 virtualbox: obey NIX_BUILD_CORES for make invocation, backport to 16.03 (#14964) 2016-04-25 07:14:11 +01:00
Joachim Fasting
dd1fa18646 rsync: fix version typo
Typo introduced at c3b4dd920b50d6fd7625ada250d042b47fbd0217; went
undetected because the checksum was not changed.

Reported by m4t__ on IRC

(cherry picked from commit 68691d31b1)
2016-04-25 02:04:52 +02:00
Robert Helgesson
a5e9fe0c6c perl-Guard: 1.022 -> 1.023
Fixes build with Perl 5.22.

(cherry picked from commit 5895b38c29)
2016-04-24 18:20:27 +02:00
Robert Helgesson
8cba91997f perl-Exception-Base: 0.25 -> 0.2501
Fixes build under Perl 5.22.

(cherry picked from commit 46e5412cfd)
2016-04-24 18:20:27 +02:00
Tuomas Tynkkynen
15530f9d48 dar: 2.5.2 -> 2.5.3
While at it, add xz support and enable parallel build.

(cherry picked from commit a3466e300d)
2016-04-24 13:36:59 +02:00
Joachim Fasting
a122cccd37 Merge pull request #14932 from grahamc/graceful-facetimehd-module-unload-16.03
Backport: replace module_init_tools with kmod, and graceful facetimehd module unloading to 16.03
2016-04-23 20:17:31 +02:00
Graham Christensen
b6c51f3e79 facetimehd: Only unload module if it is loaded
The pre-sleep service exits if any command fails. Unloading facetimehd
without it being loaded blocks subsequent commands from running.

Note: `modprobe -r` works a bit better when unloading unused modules,
and is preferrable to `rmmod`. However, the facetimehd module does not
support suspending. In this case, it seems preferable to forcefully
unload the module. `modprobe` does not support a `--force` flag when
removing, so we are left with `rmmod`.

See:
 - https://github.com/NixOS/nixpkgs/pull/14883
 - https://github.com/patjak/bcwc_pcie/wiki#known-issues
2016-04-23 11:59:00 -05:00
Tuomas Tynkkynen
aad8f223d8 module_init_tools: Remove
It is deprecated doesn't handle compressed modules, unlike its modern
counterpart kmod.

Add a compatibility alias to kmod for now in case someone is depending
on this in their scripts.
2016-04-23 11:58:17 -05:00
Tuomas Tynkkynen
37ad310ceb qemu-img: Fix module paths
They are compressed nowadays.

Not sure if these are really needed since nobody noticed they were
broken, but anyway...
2016-04-23 11:54:54 -05:00
Tuomas Tynkkynen
809a13010a treewide: Replace module_init_tools -> kmod
The former is deprecated and doesn't handle compressed kernel modules,
so all current usages of it are broken.

(cherry picked from commit 01854a850a)
2016-04-23 11:54:34 -05:00
Joachim Fasting
5740226f88 Revert "Merge pull request #14926 from grahamc/graceful-facetimehd-module-unload-16.03"
This reverts commit 71916459a3, reversing
changes made to 9d1662c6c9.

I noticed too late that this does not use kmod, like its counterpart on master.
See https://github.com/NixOS/nixpkgs/issues/14885
2016-04-23 18:24:18 +02:00
Joachim Fasting
71916459a3 Merge pull request #14926 from grahamc/graceful-facetimehd-module-unload-16.03
facetimehd: Only unload module if it is loaded (16.03)
2016-04-23 18:05:10 +02:00
Graham Christensen
52ecfe2da2 facetimehd: Only unload module if it is loaded
The pre-sleep service exits if any command fails. Unloading facetimehd
without it being loaded blocks subsequent commands from running.

Note: `modprobe -r` works a bit better when unloading unused modules,
and is preferrable to `rmmod`. However, the facetimehd module does not
support suspending. In this case, it seems preferable to forcefully
unload the module. `modprobe` does not support a `--force` flag when
removing, so we are left with `rmmod`.

See:
 - https://github.com/NixOS/nixpkgs/pull/14883
 - https://github.com/patjak/bcwc_pcie/wiki#known-issues
2016-04-23 09:31:40 -05:00
Domen Kožar
9d1662c6c9 make all boot tests release critical #14902 2016-04-23 13:12:17 +01:00
danbst
b991fc6e88 tortoisehg: 3.7.1 -> 3.7.3, refactor
update tortoisehg to 3.7.3 and remove source patch in build expression.
setup.py in TortoiseHG computes wrong paths in `build` phase
(upstream bug https://bitbucket.org/tortoisehg/thg/issues/4483/problems-with-setuppy-on-posix-systems).
So we skip this phase and perform install manually (the `build` phase is still performed as subcommand).

(cherry picked from commit 2fce49d3e8)
2016-04-22 19:14:44 +02:00
Dan Connolly
f9f4988bf3 tortoisehg: 3.6 -> 3.7.1, fixes package
fixes #13507

On June 8 (e8655ee) tortoisehg changed the way
it computes the `/usr/share` directory in a way that
invalidated the assumptions behind the use
of substituteInPlace in postUnpack.

(cherry picked from commit a4ce0e233b)
2016-04-22 19:14:43 +02:00
Domen Kožar
8bdc9ba2ad eval
(cherry picked from commit 8262cd0244)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-20 23:39:02 +01:00
Domen Kožar
a56a9d1b59 linuxPackages.dpdk: fix build 2016-04-20 23:09:30 +01:00
Dmitry Kalinkin
4e75fd5ceb root: fix NixOS build, build with lzma from nix, update homepage url
(cherry picked from commit f2200369e5)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-20 22:59:07 +01:00
Dmitry Kalinkin
b6d61b18aa root: 5.34.15 -> 6.04.16
(cherry picked from commit b8b368ef7c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-20 22:59:07 +01:00
Joachim Fasting
e86e97b6d9 Merge #14851: oraclejdk: 8u77 -> 8u91, 8u92
(cherry picked from commit 1636d18050)
2016-04-20 18:16:01 +02:00
Domen Kožar
55830cfb33 add linuxPackages.dpdk: libs and drivers for fast packet processing
(cherry picked from commit e6899cc80c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-20 16:14:19 +01:00
Joachim Fasting
94d5586c3a kernel-headers: mark broken for grsecurity kernels
Extracting headers from a grsecurity patched kernel triggers additional
build steps that require gcc plugins.  For this to work, we'd need to
add gmp, libmpfr, and libmpc to the build inputs as well as run `make
prepare` before installing the headers (lest the build fail due to
missing files).

Out-of-tree modules use kernel.dev and user space should use the Linux
API headers used to build libc, not headers extracted from random
kernels, so fixing this for grsecurity is pointless.

(cherry picked from commit 893186f4fd)
2016-04-19 22:52:26 +02:00
Michael Raskin
77e694fb08 libreoffice: 5.1.0.3 -> 5.1.2.2; still building, but the previous version in master was broken anyway and these problems are now fixed
(cherry picked from commit b338187e71)

Closes NixOS/nixpkgs#14799
2016-04-19 16:07:28 +02:00
Tom Hinton
5fc8d32ed2 Patch virtinst to refer to ${libvirt}/bin/virsh (#14818)
Also amend to resolve virt-viewer from $PATH, as this is considered an
optional dependency by upstream (per the error messages).
2016-04-19 10:12:53 +01:00
Thomas Tuegel
9d52c8d439 kde5.kcolorchooser: init at 15.12.3
(cherry picked from commit c37c5d4b52)
2016-04-18 16:29:35 -05:00
joachifm
6c89eed306 Merge pull request #14765 from jraygauthier/jrg/brother_printer_fixes_nixos1603
brgenml1cupswrapper: init at 3.1.0-1 + fix regression and improvements
2016-04-18 22:25:05 +02:00
Jos van den Oever
815460df40 davmail: 4.7.1 -> 4.7.2 2016-04-18 17:19:21 +02:00
Lluís Batlle i Rossell
c212183a99 Fixing ogre-paged build.
I update to a tree maintained by rigsofrods people.

(cherry picked from commit ecedf80a52)
2016-04-18 15:19:28 +02:00
Lluís Batlle i Rossell
b5b52a95b1 Fixing back ogre.
The merge of rigs of rods broke this.
2016-04-18 15:19:28 +02:00
Tim Steinbach
49401f708b kernel: 4.4.6 -> 4.4.7 (#14690)
(cherry picked from commit ccc3080857)
2016-04-18 14:21:55 +02:00
Lluís Batlle i Rossell
62c6f988e5 Adding back rigs of rods.
The result is similar to master "3868f02b173f44c735d9b904c687cdf4b8fdc64e".
Should be equivalent.
2016-04-18 14:18:30 +02:00
Raymond Gauthier
2acc814b15 brgenml1cupswrapper: fix regression and improvements
`cp`, `grep`, `chmod`, `sed` executables
no longer found when upgrading from nixos
15.09 to 16.03. Fixed by use of wrapper
script that brings these executables into
`PATH`.

Also fix lpd binaries on 64 bits machines
by use of `callPackage_i686`.
2016-04-18 06:45:57 -04:00
Raymond Gauthier
35fdddd136 brgenml1cupswrapper: init at 3.1.0-1
Brother generic cups wrapper over lpr driver
`brgenml1lpr` init at same version.
2016-04-18 06:45:48 -04:00
Raymond Gauthier
9c2d09201b maintainers.nix: add jraygauthier 2016-04-18 06:45:30 -04:00
Lluís Batlle i Rossell
cd7a5b4478 Removing content-pack download from rigsofrods.
The content packs from 0.37 don't seem to work. We should get one from 0.4, but
there are license problems, I think.
2016-04-18 11:56:43 +02:00
joachifm
4ac4b35948 Merge pull request #14735 from sheenobu/sipsak_fixbuild_gnu89_1603
sipsak: fix build by using --std=gnu89, backport to 16.03
2016-04-16 20:30:37 +02:00
Tobias Geerinckx-Rice
d8b3905a3d debian-devscripts: 2.16.1 -> 2.16.2
(cherry picked from commit ec8484734b)
2016-04-16 20:16:23 +02:00
Tuomas Tynkkynen
a9321b4e4f perlPackages.CGIPSGI: fix build
(cherry picked from commit ad8947ab1d)
2016-04-16 20:07:52 +02:00
Tuomas Tynkkynen
81493ac214 perlPackages.CGIEmulatePSGI: fix build
(cherry picked from commit 0aa19c5d87)
2016-04-16 20:07:52 +02:00
Tuomas Tynkkynen
2a48aef4f4 perlPackages.HTMLMason: fix build
(cherry picked from commit 18245ab18b)
2016-04-16 20:07:52 +02:00
Tuomas Tynkkynen
5d3ce8d177 perlPackages.{libfile,}strip-nondeterminism: 0.014 -> 0.016
Fixes build due to missing tarball.

(cherry picked from commit 2fdb9dcd9b)
2016-04-16 20:07:51 +02:00
Tuomas Tynkkynen
d2e0144945 perlPackages.FileBaseDir: fix build
(cherry picked from commit 9483bf606b)
2016-04-16 20:07:51 +02:00
Tuomas Tynkkynen
e7433c4961 perlPackages.TextTrim: fix build
(cherry picked from commit deb5366a9f)
2016-04-16 20:07:51 +02:00
Tuomas Tynkkynen
2782c1b325 perlPackages.CatalystControllerHTMLFormFu: fix build
(cherry picked from commit 81fc6fc7be)
2016-04-16 20:07:51 +02:00
Tuomas Tynkkynen
6b9f2f46ca perlPackages.TestWWWMechanizeCGI: fix build
(cherry picked from commit b577c309f0)
2016-04-16 20:07:51 +02:00
Tuomas Tynkkynen
aa8b552123 perlPackages.DateTimeFormatMySQL: fix build
(cherry picked from commit 0461c1eeef)
2016-04-16 20:07:50 +02:00
Tuomas Tynkkynen
3575c29135 perlPackages.DateTimeFormatISO8601: fix build
(cherry picked from commit 3dc2e7877e)
2016-04-16 20:07:50 +02:00
Tuomas Tynkkynen
48a1f20705 perlPackages.HTMLFormFu: fix build
(cherry picked from commit 773f27525a)
2016-04-16 20:07:50 +02:00
Tuomas Tynkkynen
669e165442 perlPackages.NetOAuth: fix build
(cherry picked from commit a20e80a816)
2016-04-16 20:07:50 +02:00
Tuomas Tynkkynen
fbc1e14ccd perlPackages.NetTwitterLite: fix build
(cherry picked from commit 7da9f71bf7)
2016-04-16 20:07:49 +02:00
Robert Helgesson
aa2180f0f6 perl-CPAN: depend on ModuleBuild
Also fix license field and minor other cleanups.

(cherry picked from commit a8272280d7)
2016-04-16 20:07:49 +02:00
Sheena Artrip
0520f58246 sipsak: fix build by using --std=gnu89, backport to 16.03 2016-04-16 13:53:25 -04:00
Vladimír Čunát
6ff0fabcd1 Merge #14757: openssh: fix CVE-2015-8325
(cherry picked from commit 4b9e9703d4)
2016-04-16 08:32:43 +02:00
Lluís Batlle i Rossell
067c15ea9e Make rigsofrods build the latest code.
I add angelscript 2.22 too, as it makes RoR happy.
2016-04-16 00:59:45 +02:00
Lluís Batlle i Rossell
9615d3a5be Fixing mygui build.
It wanted to find libboost_system
2016-04-15 20:34:53 +02:00
Lluís Batlle i Rossell
c6f4b4ab6d Fixnig ogre build in gcc 5. 2016-04-15 20:19:36 +02:00
Lluís Batlle i Rossell
40266527a8 Revert "rigsofrods: remove dead package"
This reverts commit 69e7948ffe.
2016-04-15 20:09:41 +02:00
Joachim Fasting
37148e6af4 electrum: 2.6.3 -> 2.6.4
(cherry picked from commit 9340014c58)

Upstream will not hesitate to ignore support requests filed against
anything other than the latest release.
2016-04-15 18:08:14 +02:00
joachifm
7e5838792c Merge pull request #14689 from grahamc/spotify-16.03
backport to 16.03: spotify: 1.0.26.125.g64dc8bc6-14 -> 1.0.27.71.g0a26e3b2-9
2016-04-14 15:43:50 +02:00
Ricardo M. Correia
e45ea6ddb7 nixos.locate: fix update-locatedb service failure
It was failing with a `Read-only filesystem` failure due to the systemd
service option `ReadWriteDirectories` not being correctly configured.

Fixes #14132

(cherry picked from commit f5951c55f7)
2016-04-14 15:38:53 +02:00
Sheena Artrip
07e216686e spotify: 1.0.26.125.g64dc8bc6-14 -> 1.0.27.71.g0a26e3b2-9
(cherry picked from commit 50e8994973)
2016-04-14 08:08:39 -05:00
taku0
ed6ff1be10 thunderbird-bin: 38.7.2 -> 45.0
(cherry picked from commit eb5c4fdadf)
2016-04-14 14:47:03 +02:00
Christoph Hrdinka
eac9571fb4 pcsx2: disable advance SIMD instructions
By setting `-DDISABLE_ADVANCE_SIMD=TRUE` pcsx2 will be compiled with predefined
SIMD flags instead of `-march=native`. This makes the resulting binary more
portable. Further this seems to be needed to make pcsx2 compile with gcc5.

(cherry picked from commit cc1cef3abc)
2016-04-14 14:18:21 +02:00
Eelco Dolstra
75ecb56930 firefox-esr: 45.0.1esr -> 45.0.2esr
Also, switch to upstream SHA-512 hashes.

(cherry picked from commit 18a6403c59)
2016-04-14 13:23:53 +02:00
Franz Pletz
b345526120 firefox: 45.0.1 -> 45.0.2
(cherry picked from commit 84edf81d71)
2016-04-14 13:23:44 +02:00
Eelco Dolstra
f21658dfca Add a regression test for #14623
(cherry picked from commit a42698d2a4)
2016-04-14 13:20:32 +02:00
Eelco Dolstra
b6de72513f Fix X11 tests broken by the removal of -ac
Probably missed a few. Also adding xauth to the system path (it was
already in the closure).

(cherry picked from commit 9153d8ed64)
2016-04-14 13:20:25 +02:00
Eelco Dolstra
659c41a7d5 X server: Enable local access control
For the last ten years we have been passing -ac to the X server, which
is very bad idea.

Fixes #14623.

(cherry picked from commit 1541fa351b)
2016-04-14 13:20:22 +02:00
Eelco Dolstra
e8f2870044 cudatoolkit: Don't barf on GCC > 4.9
Blender appears to build/run fine with GCC 5.3.

(cherry picked from commit bd4720a7d6)
2016-04-14 13:19:42 +02:00
Eelco Dolstra
ebd611f76c blender: 2.77 -> 2.77a
(cherry picked from commit 9fa5c5d461)
2016-04-14 13:19:38 +02:00
Eelco Dolstra
e0f77f7217 Restore default core limit of 0:infinity
Continuation of 79c3c16dcb. Systemd 229
sets the default RLIMIT_CORE to infinity, causing systems to be
littered with core dumps when systemd.coredump.enable is disabled.

This restores the 15.09 soft limit of 0 and hard limit of infinity.

(cherry picked from commit 840f3230a2)
2016-04-14 13:19:25 +02:00
Eelco Dolstra
c813fc2d50 fetchurl: Support SHA-512 hashes
(cherry picked from commit 3ecbe604ef)
2016-04-14 13:19:06 +02:00
Sergey Sofeychuk
57e423f17b imgur-screenshot: 1.5.4 -> 1.7.1
(cherry picked from commit 9a11aafb91)
2016-04-14 05:18:45 +03:00
Tristan Helmich
8add11ee76 samba4Full: 4.3.6 -> 4.3.8 (#14661)
Fixes the following security issues:
 * CVE-2015-5370 (Multiple errors in DCE-RPC code)
 * CVE-2016-2110 (Man in the middle attacks possible with NTLMSSP)
 * CVE-2016-2111 (NETLOGON Spoofing Vulnerability)
 * CVE-2016-2112 (LDAP client and server don't enforce integrity)
 * CVE-2016-2113 (Missing TLS certificate validation)
 * CVE-2016-2114 ("server signing = mandatory" not enforced)
 * CVE-2016-2115 (SMB IPC traffic is not integrity protected)
 * CVE-2016-2118 (SAMR and LSA man in the middle attacks possible)

See http://badlock.org/ for details.

(cherry picked from commit 192dc27dc3)
2016-04-13 18:01:07 +02:00
Taylor "Nekroze" Lawson
e409886147 Updated unifi-controller package to 4.8.15
Previous version (4.8.14) is no longer available to download.
(cherry picked from commit 5330df8984)
2016-04-13 02:54:33 +02:00
Joachim Fasting
027e666b34 Revert "Merge pull request #14262 from peterhoeg/flexget"
This reverts commit c8b6c37792, reversing
changes made to 91a3e47895.

Sorry, I did not notice that this was opened against the wrong branch ...
2016-04-13 02:53:28 +02:00
taku0
8d90560e2d firefox-bin: 45.0.1 -> 45.0.2 (#14626)
(cherry picked from commit c98cca3614)
2016-04-13 02:51:43 +02:00
taku0
9c304461dc firefox-bin: 45.0 -> 45.0.1
(cherry picked from commit 9aa6ca99e4)
2016-04-13 02:51:43 +02:00
taku0
1a2349c328 firefox-bin: 44.0.2 -> 45.0
(cherry picked from commit 153468aa5e)
2016-04-13 02:51:43 +02:00
joachifm
c8b6c37792 Merge pull request #14262 from peterhoeg/flexget
flexget: create nixos service module
2016-04-13 02:44:37 +02:00
joachifm
91a3e47895 Merge pull request #14641 from grahamc/slack-16.03
Backport Slack to 16.03
2016-04-13 01:34:30 +02:00
Tim Steinbach
03cd6abaa8 slack: Fix 2.0.3
(cherry picked from commit b6c80ee36c)
2016-04-12 18:19:39 -05:00
Tim Steinbach
609a09578f slack: 2.0.1 -> 2.0.3
(cherry picked from commit 0dfcc687be)
2016-04-12 18:19:29 -05:00
Greyson Fischer
3ad206abfb slack: init at 2.0.1
(cherry picked from commit 7fe888e521)
2016-04-12 18:19:22 -05:00
Tuomas Tynkkynen
7c0caab184 Merge pull request #14633 from layus/vlc-fix-stable
vlc: fixes the two windows issue with qt5
2016-04-13 00:43:40 +03:00
Guillaume Maudoux
d3c950bf09 vlc: fixes the two windows issue with qt5
Fix a bug with vlc displaying video in a separate window.

(cherry picked from commit 43cf5d3369)
Reason: qt5.vlc is also broken on stable.
2016-04-12 23:30:30 +02:00
Nikolay Amiantov
510eb45314 wine: use gcc49 for 64-bit builds
(cherry picked from commit 24835df322)
2016-04-12 21:32:55 +03:00
Nikolay Amiantov
63909c944d wrapCCMulti: split from gcc_multi
(cherry picked from commit 391c3e505e)
2016-04-12 21:31:28 +03:00
Nikolay Amiantov
f717a5b531 wine: fix outputs and pulseaudio support
(cherry picked from commit b109f33d64)
2016-04-12 18:44:44 +03:00
Robert Scott
1dd14cc044 django: 1.9.4 -> 1.9.5 2016-04-12 12:26:19 +02:00
Robert Scott
bc2efefc5a django: 1.8.11 -> 1.8.12 2016-04-12 12:26:07 +02:00
Eelco Dolstra
0904efa11d find-tarballs.nix: Handle stdenv bootstrap fetchurl
(cherry picked from commit f1f79505fc)
2016-04-12 11:22:10 +02:00
Vladimír Čunát
0864adcc33 vlc: lower priority of qt5 versions
/cc #14610

(cherry picked from commit 4709bdcb71)
Having `nix-env -i vlc` install something else than `pkgs.vlc`
(nondeterministically) was bad.
2016-04-12 10:16:21 +02:00
Vladimír Čunát
4ffe3f9593 nixos-generate-config: lower priority of nix.maxJobs
Fixes #6429.

(cherry picked from commit 5c04313451)
2016-04-12 08:10:31 +02:00
Nikolay Amiantov
4b667665c2 imgurbash: fix for new imgur API 2016-04-12 04:16:34 +03:00
Aaron Son
ed2d804d5d gradle: Fix gradle-2.12 on Linux to find libstdc++.so reference in native library.
(cherry picked from commit bbfad5111a)
2016-04-11 22:32:07 +02:00
Tim Steinbach
766d696c68 gradle: 2.11 -> 2.12
(cherry picked from commit aa4af87501)
2016-04-11 22:32:07 +02:00
risicle
e8c4cab725 PHP security updates (r16.03 backport) (#14590)
* php55: 5.5.33 -> 5.5.34

* php: 5.6.19 -> 5.6.20
2016-04-11 12:08:22 +01:00
joachifm
2e594a50cf Merge pull request #14580 from LumiGuide/fix-php
php: re-enable mysql support
2016-04-11 11:01:36 +02:00
Tomasz Kontusz
a8ffc875a5 partimage: correct the patch SHA256
It was using a hash for the file itself, instead of the one for a sanitized patch.

(cherry picked from commit 789c281a62)
2016-04-11 02:08:12 +03:00
Bas van Dijk
6a0702b5f7 php: re-enable mysql support
Commit 464b56f fixes issue #14351
2016-04-10 20:34:13 +02:00
Joachim Fasting
84ffd46322 mupen64plus: build with gcc49
Works around failure with gcc5, see
https://hydra.nixos.org/build/34273319/nixlog/1/raw
Not a real fix, but a working build is better than nothing ...

I have tested that the program at least runs: it fails to load a few
plugins, tho, have no idea to what extent that affects use
  Couldn't load plugin 'ricevideo.so':
  /nix/store/...-mupen64plus-1.5/share/mupen64plus/plugins/ricevideo.so:
  undefined symbol: glCombinerInputNV
  Couldn't load plugin 'glN64.so':
  /nix/store/...-mupen64plus-1.5/share/mupen64plus/plugins/glN64.so:
  undefined symbol: glCombinerInputNV

(cherry picked from commit 9a55b76db1)
2016-04-10 15:56:02 +02:00
Micxjo Funkcio
acd39d653f botanUnstable: 1.11.28 -> 1.11.29 (security)
This release contains fixes for
  * CVE-2016-2849
  * CVE-2016-2850

(cherry picked from commit 3c2e932450)
2016-04-10 12:12:37 +02:00
Micxjo Funkcio
85ffe0cb45 libsndfile: 1.0.25 -> 1.0.26 (security)
This release contains fixes for
  * CVE-2014-9496
  * CVE-2014-9756
  * CVE-2015-7805

(cherry picked from commit 75c033969b)
2016-04-10 12:12:23 +02:00
Vladimír Čunát
3e1a5d957f Merge #14541: nvidia-x11: 358.16 -> 361.42 2016-04-10 11:56:02 +02:00
Micxjo Funkcio
279b1818c0 pcre: patch CVE-2016-1283
This fixes CVE-2016-1283, which allows remote attackers to cause
a denial of service (heap-based buffer overflow) or possibly
have unspecified other impact via a crafted regular expression.

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-1283
(cherry picked from commit 1e2fe7e07d)
2016-04-10 04:22:11 +03:00
Marius Bakke
236fc23aae p7zip: 9.38 -> 15.14.1
(cherry picked from commit 5d15c0f5fd)

The delta contains a fix for CVE-2015-1038 which affects p7zip since 0.9.20 (fix
occurs in 15.10)
2016-04-09 19:00:23 +02:00
Joachim Fasting
97f6277819 manual: delete dangling pointer to real-world NixOS configs
At some point we probably want to replace this with a curated list
of configurations or even an upstreamed repository of examples, but
for now this is just noise.

Fixes NixOS/nixpkgs#14522

(cherry picked from commit 678e1955b1)
2016-04-09 18:17:18 +02:00
Eelco Dolstra
1de085f998 nvidia-x11: 358.16 -> 361.42
This fixes the segfault reported in #13942 caused by missing
libEGL.so.0 and libEGL_nvidia.so.0 symlinks.

(cherry picked from commit f3b43b8a4488d50663052a24b02abd77fc668502)
2016-04-08 15:02:01 -05:00
Eelco Dolstra
aef0efc389 httpd.service: Support reload
This is useful when ACME has generated a new TLS certificate.

(cherry picked from commit 133e6e1ea6)
2016-04-08 19:42:15 +02:00
Eelco Dolstra
71b8ddc4f4 Revert "gcc: Use the pre-C++11 ABI by default"
This reverts commit 83011723af. This
never worked because gcc's setup hook is never actually sourced. I
could fix this but since nobody complained, we probably don't need it.

(cherry picked from commit 60f07e8e10)
2016-04-08 19:34:11 +02:00
Evgeny Egorochkin
464b56fd31 binutils: cherry-pick a patch from master; this fixes build failure for akonadi; see https://sourceware.org/bugzilla/show_bug.cgi?id=19698
Fixes #14512

(cherry picked from commit 5982591afc)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-08 18:32:41 +01:00
Nikolay Amiantov
152c67dfb4 flashplayer: cleanup, add comment to maintainers
(cherry picked from commit d45ac41e87)
2016-04-08 18:23:07 +02:00
taku0
7403dde875 flashplayer: fix build on 32-bit platform
(cherry picked from commit 28232c3746)
2016-04-08 18:23:07 +02:00
taku0
01fbc3b4ba flashplayer: 11.2.202.577 -> 11.2.202.616
(cherry picked from commit 03e74fb117)

Security fix for APSB16-10.
2016-04-08 18:22:12 +02:00
Graham Christensen
3c534c83ce mercurial: 3.7.1 -> 3.7.3 for multiple CVEs
CVE-2016-3068

    Blake Burkhart discovered that Mercurial allows URLs for Git
    subrepositories that could result in arbitrary code execution on
    clone.

CVE-2016-3069

    Blake Burkhart discovered that Mercurial allows arbitrary code
    execution when converting Git repositories with specially
    crafted names.

CVE-2016-3630

    It was discovered that Mercurial does not properly perform bounds-
    checking in its binary delta decoder, which may be exploitable for
    remote code execution via clone, push or pull.

(cherry picked from commit f9099deb8e)
2016-04-08 15:18:11 +02:00
Micxjo Funkcio
3c5b61c851 optipng: 0.7.5 -> 0.7.6 (CVE-2016-2191)
(cherry picked from commit eda65083e8)
2016-04-08 11:02:26 +02:00
Nikolay Amiantov
5cce08c86e steam: add xdg_utils to chrootenv
(cherry picked from commit c4bbfdb478)
2016-04-08 03:13:59 +03:00
taku0
3a0b02c880 thunderbird-bin: 38.7.1 -> 38.7.2
(cherry picked from commit 8be8b6c713)

Works around potential security problems with the graphite font
shaping library.
See https://www.mozilla.org/en-US/thunderbird/38.7.2/releasenotes/
2016-04-07 23:09:11 +02:00
Wout Mertens
ac4a8e2e58 Merge pull request #14521 from jb55/fix/wkhtmltopdf
wkhtmltopdf: 0.12.2.4 -> 0.12.3.2, fix broken build on 16.03
2016-04-07 22:02:44 +02:00
Domen Kožar
22bd9c12fe Revert "kernelHeaders: fix build with libmpc"
This reverts commit b0adde8f8a.

Doesn't fix the issue for grsec kernels.
2016-04-07 11:34:48 +01:00
Lluís Batlle i Rossell
516f47efef Making trac/ldap handle httpd 2.4.
The option authzldapauthoritative had been removed in 2.4
2016-04-07 11:38:06 +02:00
Frederik Rietdijk
99a0db0586 mendeley: 1.16 -> 1.16.1 2016-04-07 09:35:47 +02:00
William Casarin
56ff791a54 wkhtmltopdf: 0.12.2.4 -> 0.12.3.2
Fixes #14422
2016-04-07 00:20:41 -07:00
Eelco Dolstra
cbeef98664 Add 16.03 AMIs
(cherry picked from commit ab2855b975)
2016-04-06 18:43:57 +02:00
Eelco Dolstra
b2ca64f52b Move the EC2 AMI registry from the NixOps repo
NixOps has infrequent releases, so it's not the best place for keeping
the list of current AMIs. Putting them in Nixpkgs means that AMI
updates will be delivered as part of the NixOS channels.

(cherry picked from commit 4e356cefd7)
2016-04-06 18:43:14 +02:00
Eelco Dolstra
a550dcac7f Update AMI creation script
(cherry picked from commit 69c746d06b)
2016-04-06 18:40:53 +02:00
Eelco Dolstra
1e462c6ba0 mpv: 0.15.0 -> 0.16.0
(cherry picked from commit 9c2a49e76a)
2016-04-06 18:40:48 +02:00
Domen Kožar
567b65d165 nixos tests: increase timeout for udevadm settle, see #13559 2016-04-06 12:56:51 +01:00
Domen Kožar
22094324fb linuxHeaders: add platforms
(cherry picked from commit c850203487)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-06 12:43:07 +01:00
Domen Kožar
b0adde8f8a kernelHeaders: fix build with libmpc
(cherry picked from commit e9842ea8d7)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-06 12:43:06 +01:00
Domen Kožar
94036474c2 phantomjs2: 2.0.0 -> 2.1.1 (fix build) 2016-04-06 12:29:45 +01:00
Damien Cassou
18eb994dd0 pharo-no-spur: 2015.08.06 -> 2016.02.18
(cherry picked from commit 21cb5fcf78)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-06 10:45:28 +01:00
Damien Cassou
4207e29b0d pharo-spur: 2016.02.15 -> 2016.04.04
(cherry picked from commit e1ab998776)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-04-06 10:45:28 +01:00
Roger Qiu
8777eb989a nixos/stage-1: Removed logCommands conditional for resetting the file descriptors after completion of logging
(cherry picked from commit 53e8e93939)
2016-04-05 23:55:59 +02:00
Markus Wotringer
0a5e7f3ba7 conkeror: 1.0pre-20150730 -> 1.0pre-20160130
(cherry picked from commit 90624dcf89)

See https://github.com/NixOS/nixpkgs/issues/14448
2016-04-05 23:55:25 +02:00
Nikolay Amiantov
a5d3fdc726 dspam service: run after postgresql to prevent segfaults
(cherry picked from commit ea5c7d553c)
2016-04-05 18:01:49 +03:00
Nikolay Amiantov
b2be13433d uwsgi service: use python.buildEnv, fix PATH
(cherry picked from commit 25754a5fc2)
2016-04-05 17:58:47 +03:00
Nikolay Amiantov
4b167d2c79 paprefs: propagate GConf dbus service
(cherry picked from commit 822665f066)
2016-04-05 17:58:30 +03:00
Vladimír Čunát
c8350dd33d vmTools: update debian jessie 8.3 -> 8.4
Their in-place updates break download hashes...

(cherry picked from commit aa670eb503)
2016-04-05 14:34:01 +02:00
Damien Cassou
54cab9cafe emacs25pre: 25.0.50-1b5630e -> 25.0.92
(cherry picked from commit 9b52caaa0c)
2016-04-05 10:49:50 +02:00
Christoph Ruegge
73e0cc9b8e emacs25pre: call autogen.sh before configuring
(cherry picked from commit c251f82de9)
2016-04-05 10:49:50 +02:00
Vladimír Čunát
e154450871 nixpkgs manual introduction: improve
- make line wrapping more consistent (overlong lines)
- don't stress the manual is *only* for contributors,
  as it does contain some user-guide parts, including the intro itself
- since March our Hydra publishes binaries immediately,
  not waiting for channel update

(cherry picked from commit 2bbae9696a)
2016-04-05 10:06:30 +02:00
Daniel Peebles
8fe066a16a Merge pull request #14451 from NeQuissimus/readme1603
README: 15.09 -> 16.03
(cherry picked from commit cf39ca1950)
2016-04-05 10:06:30 +02:00
obadz
a4f36d49a5 citrix-receiver: fix patchelf error during installPhase
Due to recent change in patchelf, it's now necessary to run chmod u+w
prior to running patchelf itself. Fixes #14440 for citrix-receiver
2016-04-04 15:52:17 +01:00
Eelco Dolstra
002d151ebe php: Disable mysql support
It's broken (#14351). Disabling to allow PHP to load.
2016-04-04 15:24:01 +02:00
Eelco Dolstra
ad0b2cfb7c Revert "initrd: Use modprobe from busybox"
This reverts commit 45c218f893.

Busybox's modprobe causes numerous "Unknown symbol" errors in the
kernel log, even though the modules do appear to load correctly.
2016-04-04 15:24:01 +02:00
Tomasz Kontusz
04a9e43f97 mini-httpd: add -ansi to CFLAGS
(cherry picked from commit 36135033b6)

Fixes gcc5 build
2016-04-04 12:55:49 +02:00
Nicolas B. Pierron
3420ac1b2e Fix typo in service.syncthing.dataDir description.
(cherry picked from commit 411408f74c)
2016-04-04 12:42:06 +02:00
Tomasz Kontusz
575450370c gnaural: build with gcc49
(cherry picked from commit 4a75df9395)
2016-04-04 12:19:54 +02:00
=
32d29b7897 libtorrentRasterbar: 1.0.6 -> 1.0.9
(cherry picked from commit 9d8d875918)
Fixes https://bbs.archlinux.org/viewtopic.php?id=206627 (affecting deluge)
2016-04-04 12:18:17 +02:00
David Guibert
3f96280da0 skype: build qt4 with the 32bits clangStdenv
This allows to build skype without errors like this:
clang++ -Wl,-O1 -o libmng libmng.o     -lmng
/nix/store/1d2abmmqvindckyq51nq9kd1yisiv54j-binutils-2.26/bin/ld: skipping incompatible /nix/store/72nklasrjg774iwxxnpyxwkzxz2j37v5-libmng-2.0.2/lib/libmng.so when searching for -lmng
/nix/store/1d2abmmqvindckyq51nq9kd1yisiv54j-binutils-2.26/bin/ld: cannot find -lmng
/nix/store/1d2abmmqvindckyq51nq9kd1yisiv54j-binutils-2.26/bin/ld: skipping incompatible /nix/store/n0y8pv4kaff7vnq7rmzwrd654gqaj0ki-glibc-2.23/lib/libm.so when searching for -lm
/nix/store/1d2abmmqvindckyq51nq9kd1yisiv54j-binutils-2.26/bin/ld: skipping incompatible /nix/store/n0y8pv4kaff7vnq7rmzwrd654gqaj0ki-glibc-2.23/lib/libm.a when searching for -lm
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

(cherry picked from commit 7f69d5ed8c)
2016-04-02 19:53:05 +03:00
Rastus Vernon
ae4d57f2e7 nixos manual: recommend use of dd for writing the image
Unetbootin works by altering the image and placing a boot loader on it.
For this reason, it cannot work with UEFI and the installation guides
for other distributions (incl. Debian and Fedora) recommend against
using it.

Since dd writes the image verbatim to the drive, and not just the files,
it is not necessary to change the label after using it for UEFI
installations.

vcunat: tiny changes to the PR. Close #14139.
(cherry picked from commit d6998b0674)
2016-04-02 17:43:13 +02:00
Eric Sagnes
6666a901f1 fcitx-engines.mozc: build protobuf dependency using clang
(cherry picked from commit a5285ae477)
2016-04-02 10:09:51 +02:00
Gabriel Ebner
111132d097 ibus-engines.mozc: build protobuf dependency using clang.
Fixes #14261.

(cherry picked from commit e5c4d29f79)
2016-04-02 10:09:46 +02:00
Franz Pletz
3fbea87f2f imlib2: 1.4.6 -> 1.4.8 (security)
Fixes:

 * CVE-2014-9762
 * CVE-2014-9763
 * CVE-2014-9764

(cherry picked from commit 94396b8d91)
2016-04-02 00:08:34 +02:00
Théophane Hufschmitt
f8a5d1e3ea moreutils : 0.57 -> 0.58
(cherry picked from commit 93856f36a2)

Source URL for 0.57 is 404; fixes NixOS/nixpkgs#14374
2016-04-01 19:21:13 +02:00
Christian Albrecht
2c5df45dad zsh: fix configureFlags #14256
commit 97332d3 introduced non expanding $out/etc/zprofile in zshs compiled in PATH.
this commit reverts the change so that $out is expanded at configure time.

(cherry picked from commit 9c6a69230d)

Fixes #14256.
2016-04-01 18:31:20 +02:00
Domen Kožar
089a5889ce Merge pull request #14368 from ttuegel/kde5-release-16.03
release-16.03: note KDE 5 upgrades in release notes
2016-04-01 15:19:35 +01:00
Eelco Dolstra
6e90d2f83a ssh: Fix support for ssh-dss host keys
(cherry picked from commit 3fb1708427)
2016-04-01 16:04:15 +02:00
Thomas Tuegel
e90ef1b4c3 release-16.03: note KDE 5 upgrades in release notes 2016-04-01 08:57:21 -05:00
Eelco Dolstra
8a8e3cec76 firefox-esr: Fix name
The Firefox wrapped called itself "firefox" rather than "firefox-esr".

Also eliminate a use of splitString which is evil and should never be
used.

(cherry picked from commit 2f0195003e)
2016-04-01 13:53:37 +02:00
Lluís Batlle i Rossell
d9f5e80b9f Updating trigger-rally to 0.6.3
(cherry picked from commit f07b934c8a)
2016-04-01 11:16:31 +02:00
Lluís Batlle i Rossell
90fb3bf286 Updating giv to latest from git (>0.9.25).
We were using a version years old.

I picked the git version instead of the last release because the git version
has fixes not released for almost one year.

(cherry picked from commit f38d620d59)
2016-04-01 10:13:27 +02:00
Frederik Rietdijk
c4d75ae5be spotify: 1.0.26.125.g64dc8bc6-14 -> 1.0.26.125.g64dc8bc6-15 2016-04-01 08:36:46 +02:00
Vladimír Čunát
41eee441ef gnucash-2.6: hack around test failures
They were most likely triggered by #909.
Tested only against 16.03 due to webkitgtk problems on master.

(cherry picked from commit 0689ff1574)
2016-04-01 07:48:53 +02:00
Domen Kožar
ecf6ca477c changelog: correct path to gitit nixos module
(cherry picked from commit d8abfc87c6)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-03-31 23:49:48 +01:00
Domen Kožar
b01eedaeec nixos-generate-config.pl: correct path for broadcom-43xx 2016-03-31 23:46:54 +01:00
makefu
9733045d05 graphite: fix carbonCache graphiteWeb graphiteApi
This commit implements the changes necessary to start up a graphite carbon Cache
with twisted and start the corresponding graphiteWeb service.
Dependencies need to be included via python buildEnv to include all recursive
implicit dependencies.

Additionally cairo is a requirement of graphiteWeb and pycairo is not a standard
python package (buildPythonPackage) and therefore cannot be included via
buildEnv. It also needs cairo in the Library PATH.

(cherry picked from commit 626bfce3b8)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-03-31 23:40:00 +01:00
Domen Kožar
216c840ca8 changelog: note binutils upgrade 2016-03-31 23:39:01 +01:00
Domen Kožar
279557e6d2 changelog: note release date 2016-03-31 23:08:49 +01:00
Peter Hoeg
d80126bb93 flexget nixos module: run the service and specify configuration
This module adds support for defining a flexget service.

Due to flexget insisting on being able to write all over where it finds
its configuration file, we use a ExecStartPre hook to copy the generated
configuration file into place under the user's home. It's fairly ugly
and I'm very open to suggestions
2016-03-27 17:41:46 +08:00
501 changed files with 13936 additions and 8705 deletions

View File

@@ -14,12 +14,12 @@ build daemon as so-called channels. To get channel information via git, add
```
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. `nixos-15.09` for the latest
custom changes on top of one of the channels, e.g. `nixos-16.03` for the latest
release and `nixos-unstable` for the latest successful build of master:
```
% git remote update channels
% git rebase channels/nixos-15.09
% git rebase channels/nixos-16.03
```
For pull-requests, please rebase onto nixpkgs `master`.
@@ -33,9 +33,9 @@ For pull-requests, please rebase onto nixpkgs `master`.
* [Manual (NixOS)](https://nixos.org/nixos/manual/)
* [Nix Wiki](https://nixos.org/wiki/)
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for 15.09 release](https://hydra.nixos.org/jobset/nixos/release-15.09)
* [Continuous package builds for 16.03 release](https://hydra.nixos.org/jobset/nixos/release-16.03)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for 15.09 release](https://hydra.nixos.org/job/nixos/release-15.09/tested#tabs-constituents)
* [Tests for 16.03 release](https://hydra.nixos.org/job/nixos/release-16.03/tested#tabs-constituents)
Communication:

View File

@@ -27,6 +27,7 @@ stdenv.mkDerivation {
in ''
{
pandoc '${inputFile}' -w docbook ${optionalString useChapters "--chapters"} \
--smart \
| sed -e 's|<ulink url=|<link xlink:href=|' \
-e 's|</ulink>|</link>|' \
-e 's|<sect. id=|<section xml:id=|' \

View File

@@ -636,7 +636,7 @@ then you have to download and re-install `foo` and all its dependents from
scratch:
# nix-store -q --referrers /nix/store/*-haskell-text-1.2.0.4 \
| xargs -L 1 nix-store --repair-path --option binary-caches http://hydra.nixos.org
| xargs -L 1 nix-store --repair-path
If you're using additional Hydra servers other than `hydra.nixos.org`, then it
might be necessary to purge the local caches that store data from those

View File

@@ -6,13 +6,14 @@ date: 2015-11-25
# Introduction
The Nix Packages collection (Nixpkgs) is a set of over 30,000 packages for the
[Nix package manager](http://nixos.org/nix/), released under a [permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING).
Packages are available for several architectures, and can be used with the Nix package manager
on most GNU/Linux distributions as well as NixOS.
The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the
[Nix package manager](http://nixos.org/nix/), released under a
[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING).
Packages are available for several platforms, and can be used with the Nix
package manager on most GNU/Linux distributions as well as NixOS.
This manual describes how to write packages for the Nix Packages collection
(Nixpkgs). Thus its for packagers and developers who want to add packages to
This manual primarily describes how to write packages for the Nix Packages collection
(Nixpkgs). Thus its mainly for packagers and developers who want to add packages to
Nixpkgs. If you like to learn more about the Nix package manager and the Nix
expression language, then you are kindly referred to the [Nix manual](http://nixos.org/nix/manual/).
@@ -20,29 +21,33 @@ expression language, then you are kindly referred to the [Nix manual](http://nix
Nix expressions describe how to build packages from source and are collected in
the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the
collection are Nix expressions for [NixOS modules](http://nixos.org/nixos/manual/index.html#sec-writing-modules). With
these expressions the Nix package manager can build binary packages.
collection are Nix expressions for
[NixOS modules](http://nixos.org/nixos/manual/index.html#sec-writing-modules).
With these expressions the Nix package manager can build binary packages.
Packages, including the Nix packages collection, are distributed through
[channels](http://nixos.org/nix/manual/#sec-channels). The collection is
distributed for users of Nix on non-NixOS distributions through the channel
`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g.
`nixos-15.09`, which includes all packages and modules for the stable NixOS
15.09. The channels of the stable NixOS releases are generally only given
`nixos-16.03`, which includes all packages and modules for the stable NixOS
16.03. The purpose of stable NixOS releases are generally only given
security updates. More up to date packages and modules are available via the
`nixos-unstable` channel.
Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs
repository, although both do lag the `master` branch by generally [a couple of days](http://howoldis.herokuapp.com/). Updates to a channel are distributed as
soon as all tests for that channel pass, e.g. [this table](http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
repository, although both do lag the `master` branch by generally
[a couple of days](http://howoldis.herokuapp.com/). Updates to a channel are
distributed as soon as all tests for that channel pass, e.g.
[this table](http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
shows the status of tests for the `nixpkgs` channel.
The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/),
which also builds binary packages from the Nix expressions in Nixpkgs. As soon
as a channel is updated, the binaries are made available via a [binary cache](https://cache.nixos.org). Until the channel updates, binaries that have
already been built, are available via [Hydra's binary cache](https://hydra.nixos.org).
which also builds binary packages from the Nix expressions in Nixpkgs for
`x86_64-linux`, `i686-linux` and `x86_64-darwin`.
The binaries are made available via a [binary cache](https://cache.nixos.org).
The current Nix expressions of the channels are available in the
[`nixpkgs-channels`](https://github.com/NixOS/nixpkgs-channels) repository,
which has branches corresponding to the available channels. There is also the
Nixpkgs Monitor which keeps track of updates and security vulnerabilities.
[Nixpkgs Monitor](http://monitor.nixos.org) which keeps track of updates
and security vulnerabilities.

View File

@@ -67,7 +67,7 @@ rec {
# == [1 2 3 4 5]' and `flatten 1 == [1]'.
flatten = x:
if isList x
then foldl' (x: y: x ++ (flatten y)) [] x
then concatMap (y: flatten y) x
else [x];
@@ -139,12 +139,12 @@ rec {
# Partition the elements of a list in two lists, `right' and
# `wrong', depending on the evaluation of a predicate.
partition = pred:
partition = builtins.partition or (pred:
fold (h: t:
if pred h
then { right = [h] ++ t.right; wrong = t.wrong; }
else { right = t.right; wrong = [h] ++ t.wrong; }
) { right = []; wrong = []; };
) { right = []; wrong = []; });
zipListsWith =

View File

@@ -10,6 +10,7 @@
aaronschif = "Aaron Schif <aaronschif@gmail.com>";
abaldeau = "Andreas Baldeau <andreas@baldeau.net>";
abbradar = "Nikolay Amiantov <ab@fmap.me>";
abuibrahim = "Ruslan Babayev <ruslan@babayev.com>";
adev = "Adrien Devresse <adev@adev.name>";
aespinosa = "Allan Espinosa <allan.espinosa@outlook.com>";
aflatter = "Alexander Flatter <flatter@fastmail.fm>";
@@ -32,6 +33,7 @@
ardumont = "Antoine R. Dumont <eniotna.t@gmail.com>";
aristid = "Aristid Breitkreuz <aristidb@gmail.com>";
arobyn = "Alexei Robyn <shados@shados.net>";
artuuge = "Artur E. Ruuge <artuuge@gmail.com>";
asppsa = "Alastair Pharo <asppsa@gmail.com>";
astsmtl = "Alexander Tsamutali <astsmtl@yandex.ru>";
aszlig = "aszlig <aszlig@redmoonstudios.org>";
@@ -136,6 +138,7 @@
globin = "Robin Gloster <mail@glob.in>";
goibhniu = "Cillian de Róiste <cillian.deroiste@gmail.com>";
Gonzih = "Max Gonzih <gonzih@gmail.com>";
grahamc = "Graham Christensen <graham@grahamc.com>";
gridaphobe = "Eric Seidel <eric@seidel.io>";
guibert = "David Guibert <david.guibert@gmail.com>";
havvy = "Ryan Scheel <ryan.havvy@gmail.com>";
@@ -163,7 +166,9 @@
joamaki = "Jussi Maki <joamaki@gmail.com>";
joelmo = "Joel Moberg <joel.moberg@gmail.com>";
joelteon = "Joel Taylor <me@joelt.io>";
joko = "Ioannis Koutras <ioannis.koutras@gmail.com>";
jpbernardy = "Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>";
jraygauthier = "Raymond Gauthier <jraygauthier@gmail.com>";
jwiegley = "John Wiegley <johnw@newartisans.com>";
jwilberding = "Jordan Wilberding <jwilberding@afiniate.com>";
jzellner = "Jeff Zellner <jeffz@eml.cc>";
@@ -249,6 +254,7 @@
palo = "Ingolf Wanger <palipalo9@googlemail.com>";
pashev = "Igor Pashev <pashev.igor@gmail.com>";
pesterhazy = "Paulus Esterhazy <pesterhazy@gmail.com>";
peterhoeg = "Peter Hoeg <peter@hoeg.com>";
philandstuff = "Philip Potter <philip.g.potter@gmail.com>";
phile314 = "Philipp Hausmann <nix@314.ch>";
Phlogistique = "Noé Rubinstein <noe.rubinstein@gmail.com>";
@@ -264,12 +270,15 @@
pmiddend = "Philipp Middendorf <pmidden@secure.mailbox.org>";
prikhi = "Pavan Rikhi <pavan.rikhi@gmail.com>";
profpatsch = "Profpatsch <mail@profpatsch.de>";
proglodyte = "Proglodyte <proglodyte23@gmail.com>";
pshendry = "Paul Hendry <paul@pshendry.com>";
psibi = "Sibi <sibi@psibi.in>";
pSub = "Pascal Wittmann <mail@pascal-wittmann.de>";
puffnfresh = "Brian McKenna <brian@brianmckenna.org>";
pxc = "Patrick Callahan <patrick.callahan@latitudeengineering.com>";
qknight = "Joachim Schiele <js@lastlog.de>";
ragge = "Ragnar Dahlen <r.dahlen@gmail.com>";
ralith = "Benjamin Saunders <ben.e.saunders@gmail.com>";
raskin = "Michael Raskin <7c6f434c@mail.ru>";
redbaron = "Maxim Ivanov <ivanov.maxim@gmail.com>";
refnil = "Martin Lavoie <broemartino@gmail.com>";
@@ -278,7 +287,7 @@
rick68 = "Wei-Ming Yang <rick68@gmail.com>";
rickynils = "Rickard Nilsson <rickynils@gmail.com>";
rnhmjoj = "Michele Guerini Rocco <micheleguerinirocco@me.com>";
rob = "Rob Vermaas <rob.vermaas@gmail.com>";
rbvermaa = "Rob Vermaas <rob.vermaas@gmail.com>";
robberer = "Longrin Wischnewski <robberer@freakmail.de>";
robbinch = "Robbin C. <robbinch33@gmail.com>";
robgssp = "Rob Glossop <robgssp@gmail.com>";
@@ -295,6 +304,7 @@
schmitthenner = "Fabian Schmitthenner <development@schmitthenner.eu>";
schristo = "Scott Christopher <schristopher@konputa.com>";
sepi = "Raffael Mancini <raffael@mancini.lu>";
sheenobu = "Sheena Artrip <sheena.artrip@gmail.com>";
sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>";
shell = "Shell Turner <cam.turn@gmail.com>";
shlevy = "Shea Levy <shea@shealevy.com>";
@@ -347,6 +357,7 @@
vlstill = "Vladimír Štill <xstill@fi.muni.cz>";
vmandela = "Venkateswara Rao Mandela <venkat.mandela@gmail.com>";
vozz = "Oliver Hunt <oliver.huntuk@gmail.com>";
vrthra = "Rahul Gopinath <rahul@gopinath.org>";
wedens = "wedens <kirill.wedens@gmail.com>";
willtim = "Tim Philip Williams <tim.williams.public@gmail.com>";
winden = "Antonio Vargas Gonzalez <windenntw@gmail.com>";

View File

@@ -69,7 +69,7 @@ rec {
+ (if pathExists suffixFile then readFile suffixFile else "pre-git");
# Whether we're being called by nix-shell.
inNixShell = builtins.getEnv "IN_NIX_SHELL" == "1";
inNixShell = builtins.getEnv "IN_NIX_SHELL" != "";
# Return minimum/maximum of two numbers.
min = x: y: if x < y then x else y;

View File

@@ -114,13 +114,17 @@ rec {
name = "list of ${elemType.name}s";
check = isList;
merge = loc: defs:
map (x: x.value) (filter (x: x ? value) (concatLists (imap (n: def: imap (m: def':
(mergeDefinitions
(loc ++ ["[definition ${toString n}-entry ${toString m}]"])
elemType
[{ inherit (def) file; value = def'; }]
).optionalValue
) def.value) defs)));
map (x: x.value) (filter (x: x ? value) (concatLists (imap (n: def:
if isList def.value then
imap (m: def':
(mergeDefinitions
(loc ++ ["[definition ${toString n}-entry ${toString m}]"])
elemType
[{ inherit (def) file; value = def'; }]
).optionalValue
) def.value
else
throw "The option value `${showOption loc}' in `${def.file}' is not a list.") defs)));
getSubOptions = prefix: elemType.getSubOptions (prefix ++ ["*"]);
getSubModules = elemType.getSubModules;
substSubModules = m: listOf (elemType.substSubModules m);

View File

@@ -5,7 +5,7 @@
# content-addressed cache used by fetchurl as a fallback for when
# upstream tarballs disappear or change. Usage:
#
# 1) To upload a single file:
# 1) To upload one or more files:
#
# $ copy-tarballs.pl --file /path/to/tarball.tar.gz
#
@@ -22,9 +22,38 @@ use JSON;
use Net::Amazon::S3;
use Nix::Store;
isValidPath("/nix/store/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo"); # FIXME: forces Nix::Store initialisation
sub usage {
die "Syntax: $0 [--dry-run] [--exclude REGEXP] [--expr EXPR | --file FILES...]\n";
}
my $dryRun = 0;
my $expr;
my @fileNames;
my $exclude;
while (@ARGV) {
my $flag = shift @ARGV;
if ($flag eq "--expr") {
$expr = shift @ARGV or die "--expr requires an argument";
} elsif ($flag eq "--file") {
@fileNames = @ARGV;
last;
} elsif ($flag eq "--dry-run") {
$dryRun = 1;
} elsif ($flag eq "--exclude") {
$exclude = shift @ARGV or die "--exclude requires an argument";
} else {
usage();
}
}
# S3 setup.
my $aws_access_key_id = $ENV{'AWS_ACCESS_KEY_ID'} or die;
my $aws_secret_access_key = $ENV{'AWS_SECRET_ACCESS_KEY'} or die;
my $aws_access_key_id = $ENV{'AWS_ACCESS_KEY_ID'} or die "AWS_ACCESS_KEY_ID not set\n";
my $aws_secret_access_key = $ENV{'AWS_SECRET_ACCESS_KEY'} or die "AWS_SECRET_ACCESS_KEY not set\n";
my $s3 = Net::Amazon::S3->new(
{ aws_access_key_id => $aws_access_key_id,
@@ -34,12 +63,15 @@ my $s3 = Net::Amazon::S3->new(
my $bucket = $s3->bucket("nixpkgs-tarballs") or die;
my $cacheFile = "/tmp/copy-tarballs-cache";
my $doWrite = 0;
my $cacheFile = ($ENV{"HOME"} or die "\$HOME is not set") . "/.cache/nix/copy-tarballs";
my %cache;
$cache{$_} = 1 foreach read_file($cacheFile, err_mode => 'quiet', chomp => 1);
$doWrite = 1;
END() {
write_file($cacheFile, map { "$_\n" } keys %cache);
File::Path::mkpath(dirname($cacheFile), 0, 0755);
write_file($cacheFile, map { "$_\n" } keys %cache) if $doWrite;
}
sub alreadyMirrored {
@@ -84,11 +116,9 @@ sub uploadFile {
$cache{$mainKey} = 1;
}
my $op = shift @ARGV;
if ($op eq "--file") {
if (scalar @fileNames) {
my $res = 0;
foreach my $fn (@ARGV) {
foreach my $fn (@fileNames) {
eval {
if (alreadyMirrored("sha512", hashFile("sha512", 0, $fn))) {
print STDERR "$fn is already mirrored\n";
@@ -97,17 +127,16 @@ if ($op eq "--file") {
}
};
if ($@) {
warn "$@\n";
warn "$@";
$res = 1;
}
}
exit $res;
}
elsif ($op eq "--expr") {
elsif (defined $expr) {
# Evaluate find-tarballs.nix.
my $expr = $ARGV[0] // die "$0: --expr requires a Nix expression\n";
my $pid = open(JSON, "-|", "nix-instantiate", "--eval", "--json", "--strict",
"<nixpkgs/maintainers/scripts/find-tarballs.nix>",
"--arg", "expr", $expr);
@@ -123,10 +152,11 @@ elsif ($op eq "--expr") {
# Check every fetchurl call discovered by find-tarballs.nix.
my $mirrored = 0;
my $have = 0;
foreach my $fetch (@{$fetches}) {
foreach my $fetch (sort { $a->{url} cmp $b->{url} } @{$fetches}) {
my $url = $fetch->{url};
my $algo = $fetch->{type};
my $hash = $fetch->{hash};
my $name = $fetch->{name};
if (defined $ENV{DEBUG}) {
print "$url $algo $hash\n";
@@ -138,26 +168,44 @@ elsif ($op eq "--expr") {
next;
}
next if defined $exclude && $url =~ /$exclude/;
if (alreadyMirrored($algo, $hash)) {
$have++;
next;
}
print STDERR "mirroring $url...\n";
my $storePath = makeFixedOutputPath(0, $algo, $hash, $name);
next if $ENV{DRY_RUN};
print STDERR "mirroring $url ($storePath)...\n";
# Download the file using nix-prefetch-url.
$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";
if ($dryRun) {
$mirrored++;
next;
}
<$fh>; my $storePath = <$fh>; chomp $storePath;
# Substitute the output.
if (!isValidPath($storePath)) {
system("nix-store", "-r", $storePath);
}
# Otherwise download the file using nix-prefetch-url.
if (!isValidPath($storePath)) {
$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";
next;
}
<$fh>; my $storePath2 = <$fh>; chomp $storePath2;
if ($storePath ne $storePath2) {
warn "strange: $storePath != $storePath2\n";
next;
}
}
uploadFile($storePath, $url);
$mirrored++;
@@ -167,5 +215,5 @@ elsif ($op eq "--expr") {
}
else {
die "Syntax: $0 --file FILENAMES... | --expr EXPR\n";
usage();
}

View File

@@ -14,12 +14,12 @@ let
operator = const [ ];
});
urls = map (drv: { url = head drv.urls; hash = drv.outputHash; type = drv.outputHashAlgo; }) fetchurlDependencies;
urls = map (drv: { url = head (drv.urls or [ drv.url ]); hash = drv.outputHash; type = drv.outputHashAlgo; name = drv.name; }) fetchurlDependencies;
fetchurlDependencies =
filter
(drv: drv.outputHash or "" != "" && drv.outputHashMode or "flat" == "flat"
&& drv.postFetch or "" == "" && drv ? urls)
&& drv.postFetch or "" == "" && (drv ? url || drv ? urls))
dependencies;
dependencies = map (x: x.value) (genericClosure {

View File

@@ -7,10 +7,18 @@
<title>Booting from a USB Drive</title>
<para>For systems without CD drive, the NixOS live CD can be booted from
a USB stick. For non-UEFI installations,
<link xlink:href="http://unetbootin.sourceforge.net/">unetbootin</link>
will work. For UEFI installations, you should mount the ISO, copy its contents
verbatim to your drive, then either:
a USB stick. You can use the <command>dd</command> utility to write the image:
<command>dd if=<replaceable>path-to-image</replaceable>
of=<replaceable>/dev/sdb</replaceable></command>. Be careful about specifying the
correct drive; you can use the <command>lsblk</command> command to get a list of
block devices.</para>
<para>The <command>dd</command> utility will write the image verbatim to the drive,
making it the recommended option for both UEFI and non-UEFI installations. For
non-UEFI installations, you can alternatively use
<link xlink:href="http://unetbootin.sourceforge.net/">unetbootin</link>. If you
cannot use <command>dd</command> for a UEFI installation, you can also mount the
ISO, copy its contents verbatim to your drive, then either:
<itemizedlist>
<listitem>

View File

@@ -157,10 +157,6 @@ $ nano /mnt/etc/nixos/configuration.nix
<command>nixos-generate-config</command> will figure out the
required modules.</para></note>
<para>Examples of real-world NixOS configuration files can be
found at <link
xlink:href="https://nixos.org/repos/nix/configurations/trunk/"/>.</para>
</listitem>
<listitem><para>Do the installation:

View File

@@ -4,7 +4,7 @@
version="5.0"
xml:id="sec-release-16.03">
<title>Release 16.03 (“Emu”, 2016/03/??)</title>
<title>Release 16.03 (“Emu”, 2016/03/31)</title>
<para>In addition to numerous new and upgraded packages, this release
has the following highlights:</para>
@@ -33,6 +33,10 @@ has the following highlights:</para>
<para>Glibc 2.23 (was 2.21).</para>
</listitem>
<listitem>
<para>Binutils 2.26 (was 2.23.1). See #909</para>
</listitem>
<listitem>
<para>Improved support for ensuring <link
xlink:href="https://reproducible-builds.org/">bitwise reproducible
@@ -52,6 +56,11 @@ has the following highlights:</para>
<para>Perl 5.22.</para>
</listitem>
<listitem>
<para>KDE Plasma 5.5.5 (was 5.3.2) and Applications 15.12.3 (was
15.04.3), based on KDE Frameworks 5.19 (was 5.12).</para>
</listitem>
</itemizedlist>
<para>The following new services were added since the last release:
@@ -161,7 +170,7 @@ following incompatible changes:</para>
<programlisting><![CDATA[
{
imports = [ <nixos/modules/services/misc/gitit.nix> ];
imports = [ <nixpkgs/nixos/modules/services/misc/gitit.nix> ];
}
]]></programlisting>
@@ -275,7 +284,7 @@ fileSystems."/example" = {
<listitem>
<para><literal>services.xserver.vaapiDrivers</literal> has been removed. Use
<literal>services.hardware.opengl.extraPackages{,32}</literal> instead. You can
<literal>hardware.opengl.extraPackages{,32}</literal> instead. You can
also specify VDPAU drivers there.</para>
</listitem>
@@ -344,7 +353,7 @@ $TTL 1800
<para>
<literal>service.syncthing.dataDir</literal> options now has to point
to exact folder where syncthing is writing to. Example configuration should
loook something like:
look something like:
</para>
<programlisting>
services.syncthing = {

View File

@@ -382,9 +382,17 @@ sub waitForUnit {
my $state = $info->{ActiveState};
die "unit $unit reached state $state\n" if $state eq "failed";
if ($state eq "inactive") {
# If there are no pending jobs, then assume this unit
# will never reach active state.
my ($status, $jobs) = $self->execute("systemctl list-jobs --full 2>&1");
die "unit $unit is inactive and there are no pending jobs\n"
if $jobs =~ /No jobs/; # FIXME: fragile
if ($jobs =~ /No jobs/) { # FIXME: fragile
# Handle the case where the unit may have started
# between the previous getUnitInfo() and
# list-jobs.
my $info2 = $self->getUnitInfo($unit);
die "unit $unit is inactive and there are no pending jobs\n"
if $info2->{ActiveState} eq $state;
}
}
return 1 if $state eq "active";
};
@@ -543,7 +551,7 @@ sub waitForX {
retry sub {
my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'session opened'");
return 0 if $status != 0;
($status, $out) = $self->execute("xwininfo -root > /dev/null 2>&1");
($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
return 1 if $status == 0;
}
});

View File

@@ -8,14 +8,18 @@ echo "keeping state in $stateDir"
mkdir -p $stateDir
version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g)
echo "NixOS version is $version"
major=${version:0:5}
echo "NixOS version is $version ($major)"
rm -f ec2-amis.nix
types="hvm pv"
stores="ebs s3"
regions="eu-west-1 eu-central-1 us-east-1 us-west-1 us-west-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2 sa-east-1 ap-south-1"
for type in hvm pv; do
for type in $types; do
link=$stateDir/$type
imageFile=$link/nixos.img
imageFile=$link/nixos.qcow2
system=x86_64-linux
arch=x86_64
@@ -30,7 +34,7 @@ for type in hvm pv; do
--arg configuration "{ imports = [ <nixpkgs/nixos/maintainers/scripts/ec2/amazon-image.nix> ]; ec2.hvm = $hvmFlag; }"
fi
for store in ebs s3; do
for store in $stores; do
bucket=nixos-amis
bucketDir="$version-$type-$store"
@@ -38,7 +42,7 @@ for type in hvm pv; do
prevAmi=
prevRegion=
for region in eu-west-1 eu-central-1 us-east-1 us-west-1 us-west-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 sa-east-1; do
for region in $regions; do
name=nixos-$version-$arch-$type-$store
description="NixOS $system $version ($type-$store)"
@@ -50,10 +54,11 @@ for type in hvm pv; do
echo "doing $name in $region..."
if [ -n "$prevAmi" ]; then
ami=$(ec2-copy-image \
ami=$(aws ec2 copy-image \
--region "$region" \
--source-region "$prevRegion" --source-ami-id "$prevAmi" \
--name "$name" --description "$description" | cut -f 2)
--source-region "$prevRegion" --source-image-id "$prevAmi" \
--name "$name" --description "$description" | json -q .ImageId)
if [ "$ami" = null ]; then break; fi
else
if [ $store = s3 ]; then
@@ -61,12 +66,19 @@ for type in hvm pv; do
# Bundle the image.
imageDir=$stateDir/$type-bundled
# Convert the image to raw format.
rawFile=$stateDir/$type.raw
if ! [ -e $rawFile ]; then
qemu-img convert -f qcow2 -O raw $imageFile $rawFile.tmp
mv $rawFile.tmp $rawFile
fi
if ! [ -d $imageDir ]; then
rm -rf $imageDir.tmp
mkdir -p $imageDir.tmp
ec2-bundle-image \
-d $imageDir.tmp \
-i $imageFile --arch $arch \
-i $rawFile --arch $arch \
--user "$AWS_ACCOUNT" -c "$EC2_CERT" -k "$EC2_PRIVATE_KEY"
mv $imageDir.tmp $imageDir
fi
@@ -75,14 +87,14 @@ for type in hvm pv; do
if ! [ -e $imageDir/uploaded ]; then
echo "uploading bundle to S3..."
ec2-upload-bundle \
-m $imageDir/nixos.img.manifest.xml \
-m $imageDir/$type.raw.manifest.xml \
-b "$bucket/$bucketDir" \
-a "$EC2_ACCESS_KEY" -s "$EC2_SECRET_KEY" \
-a "$AWS_ACCESS_KEY_ID" -s "$AWS_SECRET_ACCESS_KEY" \
--location EU
touch $imageDir/uploaded
fi
extraFlags="$bucket/$bucketDir/nixos.img.manifest.xml"
extraFlags="--image-location $bucket/$bucketDir/$type.raw.manifest.xml"
else
@@ -90,10 +102,15 @@ for type in hvm pv; do
# to upload a huge raw image.
vhdFile=$stateDir/$type.vhd
if ! [ -e $vhdFile ]; then
qemu-img convert -O vpc $imageFile $vhdFile.tmp
qemu-img convert -f qcow2 -O vpc $imageFile $vhdFile.tmp
mv $vhdFile.tmp $vhdFile
fi
vhdFileLogicalBytes="$(qemu-img info "$vhdFile" | grep ^virtual\ size: | cut -f 2 -d \( | cut -f 1 -d \ )"
vhdFileLogicalGigaBytes=$(((vhdFileLogicalBytes-1)/1024/1024/1024+1)) # Round to the next GB
echo "Disk size is $vhdFileLogicalBytes bytes. Will be registered as $vhdFileLogicalGigaBytes GB."
taskId=$(cat $stateDir/$region.$type.task-id 2> /dev/null || true)
volId=$(cat $stateDir/$region.$type.vol-id 2> /dev/null || true)
snapId=$(cat $stateDir/$region.$type.snap-id 2> /dev/null || true)
@@ -102,7 +119,8 @@ for type in hvm pv; do
if [ -z "$snapId" -a -z "$volId" -a -z "$taskId" ]; then
echo "importing $vhdFile..."
taskId=$(ec2-import-volume $vhdFile --no-upload -f vhd \
-o "$EC2_ACCESS_KEY" -w "$EC2_SECRET_KEY" \
-O "$AWS_ACCESS_KEY_ID" -W "$AWS_SECRET_ACCESS_KEY" \
-o "$AWS_ACCESS_KEY_ID" -w "$AWS_SECRET_ACCESS_KEY" \
--region "$region" -z "${region}a" \
--bucket "$bucket" --prefix "$bucketDir/" \
| tee /dev/stderr \
@@ -112,15 +130,16 @@ for type in hvm pv; do
if [ -z "$snapId" -a -z "$volId" ]; then
ec2-resume-import $vhdFile -t "$taskId" --region "$region" \
-o "$EC2_ACCESS_KEY" -w "$EC2_SECRET_KEY"
-O "$AWS_ACCESS_KEY_ID" -W "$AWS_SECRET_ACCESS_KEY" \
-o "$AWS_ACCESS_KEY_ID" -w "$AWS_SECRET_ACCESS_KEY"
fi
# Wait for the volume creation to finish.
if [ -z "$snapId" -a -z "$volId" ]; then
echo "waiting for import to finish..."
while true; do
volId=$(ec2-describe-conversion-tasks "$taskId" --region "$region" | sed 's/.*VolumeId.*\(vol-[0-9a-f]\+\).*/\1/ ; t ; d')
if [ -n "$volId" ]; then break; fi
volId=$(aws ec2 describe-conversion-tasks --conversion-task-ids "$taskId" --region "$region" | jq -r .ConversionTasks[0].ImportVolume.Volume.Id)
if [ "$volId" != null ]; then break; fi
sleep 10
done
@@ -130,22 +149,24 @@ for type in hvm pv; do
# Delete the import task.
if [ -n "$volId" -a -n "$taskId" ]; then
echo "removing import task..."
ec2-delete-disk-image -t "$taskId" --region "$region" -o "$EC2_ACCESS_KEY" -w "$EC2_SECRET_KEY" || true
ec2-delete-disk-image -t "$taskId" --region "$region" \
-O "$AWS_ACCESS_KEY_ID" -W "$AWS_SECRET_ACCESS_KEY" \
-o "$AWS_ACCESS_KEY_ID" -w "$AWS_SECRET_ACCESS_KEY" || true
rm -f $stateDir/$region.$type.task-id
fi
# Create a snapshot.
if [ -z "$snapId" ]; then
echo "creating snapshot..."
snapId=$(ec2-create-snapshot "$volId" --region "$region" | cut -f 2)
snapId=$(aws ec2 create-snapshot --volume-id "$volId" --region "$region" --description "$description" | jq -r .SnapshotId)
if [ "$snapId" = null ]; then exit 1; fi
echo -n "$snapId" > $stateDir/$region.$type.snap-id
ec2-create-tags "$snapId" -t "Name=$description" --region "$region"
fi
# Wait for the snapshot to finish.
echo "waiting for snapshot to finish..."
while true; do
status=$(ec2-describe-snapshots "$snapId" --region "$region" | head -n1 | cut -f 4)
status=$(aws ec2 describe-snapshots --snapshot-ids "$snapId" --region "$region" | jq -r .Snapshots[0].State)
if [ "$status" = completed ]; then break; fi
sleep 10
done
@@ -153,35 +174,50 @@ for type in hvm pv; do
# Delete the volume.
if [ -n "$volId" ]; then
echo "deleting volume..."
ec2-delete-volume "$volId" --region "$region" || true
aws ec2 delete-volume --volume-id "$volId" --region "$region" || true
rm -f $stateDir/$region.$type.vol-id
fi
extraFlags="-b /dev/sda1=$snapId:20:true:gp2"
blockDeviceMappings="DeviceName=/dev/sda1,Ebs={SnapshotId=$snapId,VolumeSize=$vhdFileLogicalGigaBytes,DeleteOnTermination=true,VolumeType=gp2}"
extraFlags=""
if [ $type = pv ]; then
extraFlags+=" --root-device-name=/dev/sda1"
extraFlags+=" --root-device-name /dev/sda1"
else
extraFlags+=" --root-device-name /dev/sda1"
extraFlags+=" --sriov-net-support simple"
extraFlags+=" --ena-support"
fi
extraFlags+=" -b /dev/sdb=ephemeral0 -b /dev/sdc=ephemeral1 -b /dev/sdd=ephemeral2 -b /dev/sde=ephemeral3"
blockDeviceMappings+=" DeviceName=/dev/sdb,VirtualName=ephemeral0"
blockDeviceMappings+=" DeviceName=/dev/sdc,VirtualName=ephemeral1"
blockDeviceMappings+=" DeviceName=/dev/sdd,VirtualName=ephemeral2"
blockDeviceMappings+=" DeviceName=/dev/sde,VirtualName=ephemeral3"
fi
if [ $type = hvm ]; then
extraFlags+=" --sriov-net-support simple"
extraFlags+=" --ena-support"
fi
# Register the AMI.
if [ $type = pv ]; then
kernel=$(ec2-describe-images -o amazon --filter "manifest-location=*pv-grub-hd0_1.04-$arch*" --region "$region" | cut -f 2)
[ -n "$kernel" ]
kernel=$(aws ec2 describe-images --owner amazon --filters "Name=name,Values=pv-grub-hd0_1.04-$arch.gz" | jq -r .Images[0].ImageId)
if [ "$kernel" = null ]; then break; fi
echo "using PV-GRUB kernel $kernel"
extraFlags+=" --virtualization-type paravirtual --kernel $kernel"
else
extraFlags+=" --virtualization-type hvm"
fi
ami=$(ec2-register \
-n "$name" \
-d "$description" \
ami=$(aws ec2 register-image \
--name "$name" \
--description "$description" \
--region "$region" \
--architecture "$arch" \
$extraFlags | cut -f 2)
--block-device-mappings $blockDeviceMappings \
$extraFlags | jq -r .ImageId)
if [ "$ami" = null ]; then break; fi
fi
echo -n "$ami" > $amiFile
@@ -191,25 +227,47 @@ for type in hvm pv; do
ami=$(cat $amiFile)
fi
if [ -z "$NO_WAIT" -o -z "$prevAmi" ]; then
echo "waiting for AMI..."
while true; do
status=$(ec2-describe-images "$ami" --region "$region" | head -n1 | cut -f 5)
if [ "$status" = available ]; then break; fi
sleep 10
done
ec2-modify-image-attribute \
--region "$region" "$ami" -l -a all
fi
echo "region = $region, type = $type, store = $store, ami = $ami"
if [ -z "$prevAmi" ]; then
prevAmi="$ami"
prevRegion="$region"
fi
echo " \"15.09\".$region.$type-$store = \"$ami\";" >> ec2-amis.nix
done
done
done
for type in $types; do
link=$stateDir/$type
system=x86_64-linux
arch=x86_64
for store in $stores; do
for region in $regions; do
name=nixos-$version-$arch-$type-$store
amiFile=$stateDir/$region.$type.$store.ami-id
ami=$(cat $amiFile)
echo "region = $region, type = $type, store = $store, ami = $ami"
echo -n "waiting for AMI..."
while true; do
status=$(aws ec2 describe-images --image-ids "$ami" --region "$region" | jq -r .Images[0].State)
if [ "$status" = available ]; then break; fi
sleep 10
echo -n '.'
done
echo
# Make the image public.
aws ec2 modify-image-attribute \
--image-id "$ami" --region "$region" --launch-permission 'Add={Group=all}'
echo " \"$major\".$region.$type-$store = \"$ami\";" >> ec2-amis.nix
done
done

View File

@@ -173,6 +173,8 @@ in
${cfg.domainRealm} = ${cfg.defaultRealm}
.mit.edu = ATHENA.MIT.EDU
mit.edu = ATHENA.MIT.EDU
.exchange.mit.edu = EXCHANGE.MIT.EDU
exchange.mit.edu = EXCHANGE.MIT.EDU
.media.mit.edu = MEDIA-LAB.MIT.EDU
media.mit.edu = MEDIA-LAB.MIT.EDU
.csail.mit.edu = CSAIL.MIT.EDU

View File

@@ -192,7 +192,7 @@ in
system.activationScripts = mkIf insertLdapPassword {
ldap = stringAfter [ "etc" "groups" "users" ] ''
if test -f "${cfg.bind.password}" ; then
echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig} - > /etc/ldap.conf.bindpw
echo "bindpw "$(cat ${cfg.bind.password})"" | cat ${ldapConfig.source} - > /etc/ldap.conf.bindpw
mv -fT /etc/ldap.conf.bindpw /etc/ldap.conf
chmod 600 /etc/ldap.conf
fi

View File

@@ -30,8 +30,7 @@ let
description = ''
If this option is set, device is interpreted as the
path of a swapfile that will be created automatically
with the indicated size (in megabytes) if it doesn't
exist.
with the indicated size (in megabytes).
'';
};
@@ -132,9 +131,13 @@ in
script =
''
${optionalString (sw.size != null) ''
if [ ! -e "${sw.device}" ]; then
currentSize=$(( $(stat -c "%s" "${sw.device}" 2>/dev/null || echo 0) / 1024 / 1024 ))
if [ "${toString sw.size}" != "$currentSize" ]; then
fallocate -l ${toString sw.size}M "${sw.device}" ||
dd if=/dev/zero of="${sw.device}" bs=1M count=${toString sw.size}
if [ "${toString sw.size}" -lt "$currentSize" ]; then
truncate --size "${toString sw.size}M" "${sw.device}"
fi
chmod 0600 ${sw.device}
${optionalString (!sw.randomEncryption) "mkswap ${sw.realDevice}"}
fi

View File

@@ -103,7 +103,7 @@ foreach my $g (@{$spec->{groups}}) {
if (defined $existing) {
$g->{gid} = $existing->{gid} if !defined $g->{gid};
if ($g->{gid} != $existing->{gid}) {
warn "warning: not applying GID change of group $name\n";
warn "warning: not applying GID change of group $name ($existing->{gid} -> $g->{gid})\n";
$g->{gid} = $existing->{gid};
}
$g->{password} = $existing->{password}; # do we want this?
@@ -163,7 +163,7 @@ foreach my $u (@{$spec->{users}}) {
if (defined $existing) {
$u->{uid} = $existing->{uid} if !defined $u->{uid};
if ($u->{uid} != $existing->{uid}) {
warn "warning: not applying UID change of user $name\n";
warn "warning: not applying UID change of user $name ($existing->{uid} -> $u->{uid})\n";
$u->{uid} = $existing->{uid};
}
} else {

View File

@@ -31,13 +31,13 @@ in
# unload module during suspend/hibernate as it crashes the whole system
powerManagement.powerDownCommands = ''
${pkgs.module_init_tools}/bin/rmmod -f facetimehd
${pkgs.kmod}/bin/lsmod | ${pkgs.gnugrep}/bin/grep -q "^facetimehd" && ${pkgs.kmod}/bin/rmmod -f -v facetimehd
'';
# and load it back on resume
powerManagement.resumeCommands = ''
export MODULE_DIR=/run/current-system/kernel-modules/lib/modules
${pkgs.module_init_tools}/bin/modprobe -v facetimehd
${pkgs.kmod}/bin/modprobe -v facetimehd
'';
};

View File

@@ -1,5 +1,6 @@
#! @perl@
use strict;
use Cwd 'abs_path';
use File::Spec;
use File::Path;
@@ -69,6 +70,7 @@ for (my $n = 0; $n < scalar @ARGV; $n++) {
my @attrs = ();
my @kernelModules = ();
my @initrdKernelModules = ();
my @initrdAvailableKernelModules = ();
my @modulePackages = ();
my @imports;
@@ -165,7 +167,7 @@ sub pciCheck {
) )
{
# we need e.g. brcmfmac43602-pcie.bin
push @imports, "<nixos/modules/hardware/network/broadcom-43xx.nix>";
push @imports, "<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>";
}
# Can't rely on $module here, since the module may not be loaded
@@ -379,7 +381,7 @@ EOF
# Is this a btrfs filesystem?
if ($fsType eq "btrfs") {
my ($status, @id_info) = runCommand("btrfs subvol show $rootDir$mountPoint");
if ($status != 0 || join("", @msg) =~ /ERROR:/) {
if ($status != 0 || join("", @id_info) =~ /ERROR:/) {
die "Failed to retrieve subvolume info for $mountPoint\n";
}
my @ids = join("", @id_info) =~ m/Subvolume ID:[ \t\n]*([^ \t\n]*)/;
@@ -440,7 +442,7 @@ sub toNixList {
sub multiLineList {
my $indent = shift;
return " [ ]" if !@_;
$res = "\n${indent}[ ";
my $res = "\n${indent}[ ";
my $first = 1;
foreach my $s (@_) {
$res .= "$indent " if !$first;
@@ -474,7 +476,7 @@ my $hwConfig = <<EOF;
boot.kernelModules = [$kernelModules ];
boot.extraModulePackages = [$modulePackages ];
$fsAndSwap
nix.maxJobs = $cpus;
nix.maxJobs = lib.mkDefault $cpus;
${\join "", (map { " $_\n" } (uniq @attrs))}}
EOF
@@ -494,7 +496,7 @@ if ($showHardwareConfig) {
if ($force || ! -e $fn) {
print STDERR "writing $fn...\n";
my $bootloaderConfig = "";
my $bootLoaderConfig = "";
if (-e "/sys/firmware/efi/efivars") {
$bootLoaderConfig = <<EOF;
# Use the gummiboot efi boot loader.
@@ -568,7 +570,7 @@ $bootLoaderConfig
# };
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "@nixosRelease@";
system.stateVersion = "${\(qw(@nixosRelease@))}";
}
EOF

View File

@@ -91,12 +91,10 @@ ln -s /run $mountPoint/var/run
rm -f $mountPoint/etc/{resolv.conf,hosts}
cp -Lf /etc/resolv.conf /etc/hosts $mountPoint/etc/
if [ -e "$SSL_CERT_FILE" ]; then
cp -Lf "$SSL_CERT_FILE" "$mountPoint/tmp/ca-cert.crt"
export SSL_CERT_FILE=/tmp/ca-cert.crt
# For Nix 1.7
export CURL_CA_BUNDLE=/tmp/ca-cert.crt
fi
cp -Lf "@cacert@" "$mountPoint/tmp/ca-cert.crt"
export SSL_CERT_FILE=/tmp/ca-cert.crt
# For Nix 1.7
export CURL_CA_BUNDLE=/tmp/ca-cert.crt
if [ -n "$runChroot" ]; then
if ! [ -L $mountPoint/nix/var/nix/profiles/system ]; then

View File

@@ -23,6 +23,7 @@ let
inherit (pkgs) perl pathsFromGraph;
nix = config.nix.package;
cacert = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
nixClosure = pkgs.runCommand "closure"
{ exportReferencesGraph = ["refs" config.nix.package]; }

View File

@@ -354,7 +354,7 @@
quassel = 89;
amule = 90;
minidlna = 91;
#elasticsearch = 92; # unused
elasticsearch = 92;
#tcpcryptd = 93; # unused
connman = 94;
firebird = 95;

View File

@@ -88,7 +88,7 @@ in {
serviceConfig.PrivateNetwork = "yes";
serviceConfig.NoNewPrivileges = "yes";
serviceConfig.ReadOnlyDirectories = "/";
serviceConfig.ReadWriteDirectories = cfg.output;
serviceConfig.ReadWriteDirectories = dirOf cfg.output;
};
systemd.timers.update-locatedb = mkIf cfg.enable

View File

@@ -208,6 +208,7 @@
./services/misc/confd.nix
./services/misc/devmon.nix
./services/misc/dictd.nix
./services/misc/dysnomia.nix
./services/misc/disnix.nix
./services/misc/docker-registry.nix
./services/misc/etcd.nix
@@ -436,6 +437,7 @@
./services/web-servers/varnish/default.nix
./services/web-servers/winstone.nix
./services/web-servers/zope2.nix
./services/x11/colord.nix
./services/x11/unclutter.nix
./services/x11/desktop-managers/default.nix
./services/x11/display-managers/auto.nix

View File

@@ -189,6 +189,7 @@ in
# Allow DSA keys for now. (These were deprecated in OpenSSH 7.0.)
PubkeyAcceptedKeyTypes +ssh-dss
HostKeyAlgorithms +ssh-dss
${cfg.extraConfig}
'';

View File

@@ -152,7 +152,7 @@ in
in nameValuePair
("acme-${cert}")
({
description = "ACME cert renewal for ${cert} using simp_le";
description = "Renew ACME Certificate for ${cert}";
after = [ "network.target" ];
serviceConfig = {
Type = "oneshot";
@@ -192,7 +192,7 @@ in
systemd.timers = flip mapAttrs' cfg.certs (cert: data: nameValuePair
("acme-${cert}")
({
description = "timer for ACME cert renewal of ${cert}";
description = "Renew ACME Certificate for ${cert}";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = cfg.renewInterval;

View File

@@ -126,6 +126,19 @@ in
'';
};
denyChrootCaps = mkOption {
type = types.bool;
default = false;
description = ''
Whether to lower capabilities of all processes within a chroot,
preventing commands that require <literal>CAP_SYS_ADMIN</literal>.
This protection is disabled by default because it breaks
<literal>nixos-rebuild</literal>. Whenever possible, it is
highly recommended to enable this protection.
'';
};
denyUSB = mkOption {
type = types.bool;
default = false;
@@ -234,7 +247,8 @@ in
systemd.services.grsec-lock = mkIf cfg.config.sysctl {
description = "grsecurity sysctl-lock Service";
requires = [ "systemd-sysctl.service" ];
wants = [ "systemd-sysctl.service" ];
after = [ "systemd-sysctl.service" ];
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = "yes";

View File

@@ -96,7 +96,7 @@ in
}:
''
if ! source=${if source != "" then source else "$(PATH=$SETUID_PATH type -tP ${program})"}; then
if ! source=${if source != "" then source else "$(readlink -f $(PATH=$SETUID_PATH type -tP ${program}))"}; then
# If we can't find the program, fall back to the
# system profile.
source=/nix/var/nix/profiles/default/bin/${program}

View File

@@ -47,6 +47,7 @@ in {
};
configuration = mkOption {
default = "";
type = types.lines;
description = ''
The configuration that Mopidy should use.

View File

@@ -92,12 +92,11 @@ in {
type = with types; attrsOf str;
description = ''
Additional environment variables to be passed to the jenkins process.
As a base environment, jenkins receives NIX_PATH from
<option>environment.sessionVariables</option>, NIX_REMOTE is set to
"daemon" and JENKINS_HOME is set to the value of
<option>services.jenkins.home</option>.
This option has precedence and can be used to override those
mentioned variables.
As a base environment, jenkins receives NIX_PATH, SSL_CERT_FILE and
GIT_SSL_CAINFO from <option>environment.sessionVariables</option>,
NIX_REMOTE is set to "daemon" and JENKINS_HOME is set to
the value of <option>services.jenkins.home</option>. This option has
precedence and can be used to override those mentioned variables.
'';
};
@@ -137,7 +136,11 @@ in {
environment =
let
selectedSessionVars =
lib.filterAttrs (n: v: builtins.elem n [ "NIX_PATH" ])
lib.filterAttrs (n: v: builtins.elem n
[ "NIX_PATH"
"SSL_CERT_FILE"
"GIT_SSL_CAINFO"
])
config.environment.sessionVariables;
in
selectedSessionVars //
@@ -161,16 +164,8 @@ in {
'';
postStart = ''
until ${pkgs.curl}/bin/curl -s -L ${cfg.listenAddress}:${toString cfg.port}${cfg.prefix} ; do
sleep 10
done
while true ; do
index=`${pkgs.curl}/bin/curl -s -L ${cfg.listenAddress}:${toString cfg.port}${cfg.prefix}`
if [[ !("$index" =~ 'Please wait while Jenkins is restarting' ||
"$index" =~ 'Please wait while Jenkins is getting ready to work') ]]; then
exit 0
fi
sleep 30
until ${pkgs.curl}/bin/curl -s -L --fail --head http://${cfg.listenAddress}:${toString cfg.port}${cfg.prefix} >/dev/null; do
sleep 2
done
'';

View File

@@ -104,6 +104,7 @@ in {
systemd.services.dspam = {
description = "dspam spam filtering daemon";
wantedBy = [ "multi-user.target" ];
after = [ "postgresql.service" ];
restartTriggers = [ cfgfile ];
serviceConfig = {
@@ -114,7 +115,7 @@ in {
RuntimeDirectoryMode = optional (cfg.domainSocket == defaultSock) "0750";
PermissionsStartOnly = true;
# DSPAM segfaults on just about every error
Restart = "on-failure";
Restart = "on-abort";
RestartSec = "1s";
};

View File

@@ -36,49 +36,32 @@ in
default = false;
description = "Whether to enable the DisnixWebService interface running on Apache Tomcat";
};
publishInfrastructure = {
enable = mkOption {
default = false;
description = "Whether to publish capabilities/properties of this machine in as attributes in the infrastructure option";
};
enableAuthentication = mkOption {
default = false;
description = "Whether to publish authentication credentials through the infrastructure attribute (not recommended in combination with Avahi)";
};
};
infrastructure = mkOption {
default = {};
description = "List of name value pairs containing properties for the infrastructure model";
};
publishAvahi = mkOption {
default = false;
description = "Whether to publish capabilities/properties as a Disnix service through Avahi";
package = mkOption {
type = types.path;
description = "The Disnix package";
default = pkgs.disnix;
};
};
};
###### implementation
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.disnix pkgs.dysnomia ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService;
dysnomia.enable = true;
environment.systemPackages = [ pkgs.disnix ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService;
services.dbus.enable = true;
services.dbus.packages = [ pkgs.disnix ];
services.avahi.enable = cfg.publishAvahi;
services.tomcat.enable = cfg.useWebServiceInterface;
services.tomcat.extraGroups = [ "disnix" ];
services.tomcat.javaOpts = "${optionalString cfg.useWebServiceInterface "-Djava.library.path=${pkgs.libmatthew_java}/lib/jni"} ";
services.tomcat.sharedLibs = optional cfg.useWebServiceInterface "${pkgs.DisnixWebService}/share/java/DisnixConnection.jar"
++ optional cfg.useWebServiceInterface "${pkgs.dbus_java}/share/java/dbus.jar";
++ optional cfg.useWebServiceInterface "${pkgs.dbus_java}/share/java/dbus.jar";
services.tomcat.webapps = optional cfg.useWebServiceInterface pkgs.DisnixWebService;
users.extraGroups = singleton
@@ -86,38 +69,6 @@ in
gid = config.ids.gids.disnix;
};
services.disnix.infrastructure =
optionalAttrs (cfg.publishInfrastructure.enable)
( { hostname = config.networking.hostName;
#targetHost = config.deployment.targetHost;
system = if config.nixpkgs.system == "" then builtins.currentSystem else config.nixpkgs.system;
supportedTypes = (import "${pkgs.stdenv.mkDerivation {
name = "supportedtypes";
buildCommand = ''
( echo -n "[ "
cd ${dysnomia}/libexec/dysnomia
for i in *
do
echo -n "\"$i\" "
done
echo -n " ]") > $out
'';
}}");
}
#// optionalAttrs (cfg.useWebServiceInterface) { targetEPR = "http://${config.deployment.targetHost}:8080/DisnixWebService/services/DisnixWebService"; }
// optionalAttrs (config.services.httpd.enable) { documentRoot = config.services.httpd.documentRoot; }
// optionalAttrs (config.services.mysql.enable) { mysqlPort = config.services.mysql.port; }
// optionalAttrs (config.services.tomcat.enable) { tomcatPort = 8080; }
// optionalAttrs (config.services.svnserve.enable) { svnBaseDir = config.services.svnserve.svnBaseDir; }
// optionalAttrs (config.services.ejabberd.enable) { ejabberdUser = config.services.ejabberd.user; }
// optionalAttrs (cfg.publishInfrastructure.enableAuthentication) (
optionalAttrs (config.services.mysql.enable) { mysqlUsername = "root"; mysqlPassword = readFile config.services.mysql.rootPassword; })
)
;
services.disnix.publishInfrastructure.enable = cfg.publishAvahi;
systemd.services = {
disnix = {
description = "Disnix server";
@@ -133,46 +84,17 @@ in
restartIfChanged = false;
path = [ pkgs.nix pkgs.disnix dysnomia "/run/current-system/sw" ];
path = [ config.nix.package cfg.package config.dysnomia.package "/run/current-system/sw" ];
environment = {
HOME = "/root";
};
preStart = ''
mkdir -p /etc/systemd-mutable/system
if [ ! -f /etc/systemd-mutable/system/dysnomia.target ]
then
( echo "[Unit]"
echo "Description=Services that are activated and deactivated by Dysnomia"
echo "After=final.target"
) > /etc/systemd-mutable/system/dysnomia.target
fi
'';
script = "disnix-service";
}
// (if config.environment.variables ? DYSNOMIA_CONTAINERS_PATH then { inherit (config.environment.variables) DYSNOMIA_CONTAINERS_PATH; } else {})
// (if config.environment.variables ? DYSNOMIA_MODULES_PATH then { inherit (config.environment.variables) DYSNOMIA_MODULES_PATH; } else {});
serviceConfig.ExecStart = "${cfg.package}/bin/disnix-service";
};
} // optionalAttrs cfg.publishAvahi {
disnixAvahi = {
description = "Disnix Avahi publisher";
wants = [ "avahi-daemon.service" ];
wantedBy = [ "multi-user.target" ];
script = ''
${pkgs.avahi}/bin/avahi-publish-service disnix-${config.networking.hostName} _disnix._tcp 22 \
"mem=$(grep 'MemTotal:' /proc/meminfo | sed -e 's/kB//' -e 's/MemTotal://' -e 's/ //g')" \
${concatMapStrings (infrastructureAttrName:
let infrastructureAttrValue = getAttr infrastructureAttrName (cfg.infrastructure);
in
if isInt infrastructureAttrValue then
''${infrastructureAttrName}=${toString infrastructureAttrValue} \
''
else
''${infrastructureAttrName}=\"${infrastructureAttrValue}\" \
''
) (attrNames (cfg.infrastructure))}
'';
};
};
};
}

View File

@@ -0,0 +1,217 @@
{pkgs, lib, config, ...}:
with lib;
let
cfg = config.dysnomia;
printProperties = properties:
concatMapStrings (propertyName:
let
property = properties."${propertyName}";
in
if isList property then "${propertyName}=(${lib.concatMapStrings (elem: "\"${toString elem}\" ") (properties."${propertyName}")})\n"
else "${propertyName}=\"${toString property}\"\n"
) (builtins.attrNames properties);
properties = pkgs.stdenv.mkDerivation {
name = "dysnomia-properties";
buildCommand = ''
cat > $out << "EOF"
${printProperties cfg.properties}
EOF
'';
};
containersDir = pkgs.stdenv.mkDerivation {
name = "dysnomia-containers";
buildCommand = ''
mkdir -p $out
cd $out
${concatMapStrings (containerName:
let
containerProperties = cfg.containers."${containerName}";
in
''
cat > ${containerName} <<EOF
${printProperties containerProperties}
type=${containerName}
EOF
''
) (builtins.attrNames cfg.containers)}
'';
};
linkMutableComponents = {containerName}:
''
mkdir ${containerName}
${concatMapStrings (componentName:
let
component = cfg.components."${containerName}"."${componentName}";
in
"ln -s ${component} ${containerName}/${componentName}\n"
) (builtins.attrNames (cfg.components."${containerName}" or {}))}
'';
componentsDir = pkgs.stdenv.mkDerivation {
name = "dysnomia-components";
buildCommand = ''
mkdir -p $out
cd $out
${concatMapStrings (containerName:
let
components = cfg.components."${containerName}";
in
linkMutableComponents { inherit containerName; }
) (builtins.attrNames cfg.components)}
'';
};
in
{
options = {
dysnomia = {
enable = mkOption {
type = types.bool;
default = false;
description = "Whether to enable Dysnomia";
};
enableAuthentication = mkOption {
type = types.bool;
default = false;
description = "Whether to publish privacy-sensitive authentication credentials";
};
package = mkOption {
type = types.path;
description = "The Dysnomia package";
};
properties = mkOption {
description = "An attribute set in which each attribute represents a machine property. Optionally, these values can be shell substitutions.";
default = {};
};
containers = mkOption {
description = "An attribute set in which each key represents a container and each value an attribute set providing its configuration properties";
default = {};
};
components = mkOption {
description = "An atttribute set in which each key represents a container and each value an attribute set in which each key represents a component and each value a derivation constructing its initial state";
default = {};
};
extraContainerProperties = mkOption {
description = "An attribute set providing additional container settings in addition to the default properties";
default = {};
};
extraContainerPaths = mkOption {
description = "A list of paths containing additional container configurations that are added to the search folders";
default = [];
};
extraModulePaths = mkOption {
description = "A list of paths containing additional modules that are added to the search folders";
default = [];
};
};
};
config = mkIf cfg.enable {
environment.etc = {
"dysnomia/containers" = {
source = containersDir;
};
"dysnomia/components" = {
source = componentsDir;
};
"dysnomia/properties" = {
source = properties;
};
};
environment.variables = {
DYSNOMIA_STATEDIR = "/var/state/dysnomia-nixos";
DYSNOMIA_CONTAINERS_PATH = "${lib.concatMapStrings (containerPath: "${containerPath}:") cfg.extraContainerPaths}/etc/dysnomia/containers";
DYSNOMIA_MODULES_PATH = "${lib.concatMapStrings (modulePath: "${modulePath}:") cfg.extraModulePaths}/etc/dysnomia/modules";
};
environment.systemPackages = [ cfg.package ];
dysnomia.package = pkgs.dysnomia.override (origArgs: {
enableApacheWebApplication = config.services.httpd.enable;
enableAxis2WebService = config.services.tomcat.axis2.enable;
enableEjabberdDump = config.services.ejabberd.enable;
enableMySQLDatabase = config.services.mysql.enable;
enablePostgreSQLDatabase = config.services.postgresql.enable;
enableSubversionRepository = config.services.svnserve.enable;
enableTomcatWebApplication = config.services.tomcat.enable;
enableMongoDatabase = config.services.mongodb.enable;
});
dysnomia.properties = {
hostname = config.networking.hostName;
system = if config.nixpkgs.system == "" then builtins.currentSystem else config.nixpkgs.system;
supportedTypes = (import "${pkgs.stdenv.mkDerivation {
name = "supportedtypes";
buildCommand = ''
( echo -n "[ "
cd ${cfg.package}/libexec/dysnomia
for i in *
do
echo -n "\"$i\" "
done
echo -n " ]") > $out
'';
}}");
};
dysnomia.containers = lib.recursiveUpdate ({
process = {};
wrapper = {};
}
// lib.optionalAttrs (config.services.httpd.enable) { apache-webapplication = {
documentRoot = config.services.httpd.documentRoot;
}; }
// lib.optionalAttrs (config.services.tomcat.axis2.enable) { axis2-webservice = {}; }
// lib.optionalAttrs (config.services.ejabberd.enable) { ejabberd-dump = {
ejabberdUser = config.services.ejabberd.user;
}; }
// lib.optionalAttrs (config.services.mysql.enable) { mysql-database = {
mysqlPort = config.services.mysql.port;
} // lib.optionalAttrs cfg.enableAuthentication {
mysqlUsername = "root";
mysqlPassword = builtins.readFile (config.services.mysql.rootPassword);
};
}
// lib.optionalAttrs (config.services.postgresql.enable && cfg.enableAuthentication) { postgresql-database = {
postgresqlUsername = "root";
}; }
// lib.optionalAttrs (config.services.tomcat.enable) { tomcat-webapplication = {
tomcatPort = 8080;
}; }
// lib.optionalAttrs (config.services.mongodb.enable) { mongo-database = {}; }
// lib.optionalAttrs (config.services.svnserve.enable) { subversion-repository = {
svnBaseDir = config.services.svnserve.svnBaseDir;
}; }) cfg.extraContainerProperties;
system.activationScripts.dysnomia = ''
mkdir -p /etc/systemd-mutable/system
if [ ! -f /etc/systemd-mutable/system/dysnomia.target ]
then
( echo "[Unit]"
echo "Description=Services that are activated and deactivated by Dysnomia"
echo "After=final.target"
) > /etc/systemd-mutable/system/dysnomia.target
fi
'';
};
}

View File

@@ -5,17 +5,31 @@ with lib;
let
cfg = config.services.matrix-synapse;
logConfigFile = pkgs.writeText "log_config.yaml" cfg.logConfig;
mkResource = r: ''{names: ${builtins.toJSON r.names}, compress: ${if r.compress then "true" else "false"}}'';
mkListener = l: ''{port: ${toString l.port}, bind_address: "${l.bind_address}", type: ${l.type}, tls: ${if l.tls then "true" else "false"}, x_forwarded: ${if l.x_forwarded then "true" else "false"}, resources: [${concatStringsSep "," (map mkResource l.resources)}]}'';
configFile = pkgs.writeText "homeserver.yaml" ''
tls_certificate_path: "${cfg.tls_certificate_path}"
${optionalString (cfg.tls_private_key_path != null) ''
tls_private_key_path: "${cfg.tls_private_key_path}"
''}
tls_dh_params_path: "${cfg.tls_dh_params_path}"
no_tls: ${if cfg.no_tls then "true" else "false"}
${optionalString (cfg.bind_port != null) ''
bind_port: ${toString cfg.bind_port}
''}
${optionalString (cfg.unsecure_port != null) ''
unsecure_port: ${toString cfg.unsecure_port}
''}
${optionalString (cfg.bind_host != null) ''
bind_host: "${cfg.bind_host}"
''}
server_name: "${cfg.server_name}"
pid_file: "/var/run/matrix-synapse.pid"
web_client: ${if cfg.web_client then "true" else "false"}
${optionalString (cfg.public_baseurl != null) ''
public_baseurl: "${cfg.public_baseurl}"
''}
listeners: [${concatStringsSep "," (map mkListener cfg.listeners)}]
database: {
name: "${cfg.database_type}",
args: {
@@ -24,21 +38,41 @@ database: {
)}
}
}
event_cache_size: "${cfg.event_cache_size}"
verbose: ${cfg.verbose}
log_file: "/var/log/matrix-synapse/homeserver.log"
log_config: "${logConfigFile}"
rc_messages_per_second: ${cfg.rc_messages_per_second}
rc_message_burst_count: ${cfg.rc_message_burst_count}
federation_rc_window_size: ${cfg.federation_rc_window_size}
federation_rc_sleep_limit: ${cfg.federation_rc_sleep_limit}
federation_rc_sleep_delay: ${cfg.federation_rc_sleep_delay}
federation_rc_reject_limit: ${cfg.federation_rc_reject_limit}
federation_rc_concurrent: ${cfg.federation_rc_concurrent}
media_store_path: "/var/lib/matrix-synapse/media"
uploads_path: "/var/lib/matrix-synapse/uploads"
max_upload_size: "${cfg.max_upload_size}"
max_image_pixels: "${cfg.max_image_pixels}"
dynamic_thumbnails: ${if cfg.dynamic_thumbnails then "true" else "false"}
url_preview_enabled: False
recaptcha_private_key: "${cfg.recaptcha_private_key}"
recaptcha_public_key: "${cfg.recaptcha_public_key}"
enable_registration_captcha: ${if cfg.enable_registration_captcha then "true" else "false"}
turn_uris: ${if (length cfg.turn_uris) == 0 then "[]" else ("\n" + (concatStringsSep "\n" (map (s: "- " + s) cfg.turn_uris)))}
turn_uris: ${builtins.toJSON cfg.turn_uris}
turn_shared_secret: "${cfg.turn_shared_secret}"
enable_registration: ${if cfg.enable_registration then "true" else "false"}
${optionalString (cfg.registration_shared_secret != "") ''
${optionalString (cfg.registration_shared_secret != null) ''
registration_shared_secret: "${cfg.registration_shared_secret}"
''}
recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
turn_user_lifetime: "${cfg.turn_user_lifetime}"
user_creation_max_duration: ${cfg.user_creation_max_duration}
bcrypt_rounds: ${cfg.bcrypt_rounds}
allow_guest_access: {if cfg.allow_guest_access then "true" else "false"}
enable_metrics: ${if cfg.enable_metrics then "true" else "false"}
report_stats: ${if cfg.report_stats then "true" else "false"}
signing_key_path: "/var/lib/matrix-synapse/homeserver.signing.key"
key_refresh_interval: "${cfg.key_refresh_interval}"
perspectives:
servers: {
${concatStringsSep "},\n" (mapAttrsToList (n: v: ''
@@ -52,6 +86,8 @@ perspectives:
'') cfg.servers)}
}
}
app_service_config_files: ${builtins.toJSON cfg.app_service_config_files}
${cfg.extraConfig}
'';
in {
@@ -73,53 +109,65 @@ in {
Don't bind to the https port
'';
};
tls_certificate_path = mkOption {
type = types.path;
default = "/var/lib/matrix-synapse/homeserver.tls.crt";
description = ''
PEM encoded X509 certificate for TLS
'';
};
tls_private_key_path = mkOption {
type = types.path;
default = "/var/lib/matrix-synapse/homeserver.tls.key";
description = ''
PEM encoded private key for TLS
'';
};
tls_dh_params_path = mkOption {
type = types.path;
default = "/var/lib/matrix-synapse/homeserver.tls.dh";
description = ''
PEM dh parameters for ephemeral keys
'';
};
bind_port = mkOption {
type = types.int;
default = 8448;
type = types.nullOr types.int;
default = null;
example = 8448;
description = ''
DEPRECATED: Use listeners instead.
The port to listen for HTTPS requests on.
For when matrix traffic is sent directly to synapse.
'';
};
unsecure_port = mkOption {
type = types.int;
default = 8008;
type = types.nullOr types.int;
default = null;
example = 8008;
description = ''
DEPRECATED: Use listeners instead.
The port to listen for HTTP requests on.
For when matrix traffic passes through loadbalancer that unwraps TLS.
'';
};
bind_host = mkOption {
type = types.str;
default = "";
type = types.nullOr types.str;
default = null;
description = ''
DEPRECATED: Use listeners instead.
Local interface to listen on.
The empty string will cause synapse to listen on all interfaces.
'';
};
tls_certificate_path = mkOption {
type = types.str;
default = "/var/lib/matrix-synapse/homeserver.tls.crt";
description = ''
PEM encoded X509 certificate for TLS.
You can replace the self-signed certificate that synapse
autogenerates on launch with your own SSL certificate + key pair
if you like. Any required intermediary certificates can be
appended after the primary certificate in hierarchical order.
'';
};
tls_private_key_path = mkOption {
type = types.nullOr types.str;
default = "/var/lib/matrix-synapse/homeserver.tls.key";
example = null;
description = ''
PEM encoded private key for TLS. Specify null if synapse is not
speaking TLS directly.
'';
};
tls_dh_params_path = mkOption {
type = types.str;
default = "/var/lib/matrix-synapse/homeserver.tls.dh";
description = ''
PEM dh parameters for ephemeral keys
'';
};
server_name = mkOption {
type = types.str;
example = "example.com";
description = ''
The domain name of the server, with optional explicit port.
This is used by remote servers to connect to this server,
@@ -134,6 +182,145 @@ in {
Whether to serve a web client from the HTTP/HTTPS root resource.
'';
};
public_baseurl = mkOption {
type = types.nullOr types.str;
default = null;
example = "https://example.com:8448/";
description = ''
The public-facing base URL for the client API (not including _matrix/...)
'';
};
listeners = mkOption {
type = types.listOf (types.submodule {
options = {
port = mkOption {
type = types.int;
example = 8448;
description = ''
The port to listen for HTTP(S) requests on.
'';
};
bind_address = mkOption {
type = types.str;
default = "";
example = "203.0.113.42";
description = ''
Local interface to listen on.
The empty string will cause synapse to listen on all interfaces.
'';
};
type = mkOption {
type = types.str;
default = "http";
description = ''
Type of listener.
'';
};
tls = mkOption {
type = types.bool;
default = true;
description = ''
Whether to listen for HTTPS connections rather than HTTP.
'';
};
x_forwarded = mkOption {
type = types.bool;
default = false;
description = ''
Use the X-Forwarded-For (XFF) header as the client IP and not the
actual client IP.
'';
};
resources = mkOption {
type = types.listOf (types.submodule {
options = {
names = mkOption {
type = types.listOf types.str;
description = ''
List of resources to host on this listener.
'';
example = ["client" "webclient" "federation"];
};
compress = mkOption {
type = types.bool;
description = ''
Should synapse compress HTTP responses to clients that support it?
This should be disabled if running synapse behind a load balancer
that can do automatic compression.
'';
};
};
});
description = ''
List of HTTP resources to serve on this listener.
'';
};
};
});
default = [{
port = 8448;
bind_address = "";
type = "http";
tls = true;
x_forwarded = false;
resources = [
{ names = ["client" "webclient"]; compress = true; }
{ names = ["federation"]; compress = false; }
];
}];
description = ''
List of ports that Synapse should listen on, their purpose and their configuration.
'';
};
verbose = mkOption {
type = types.str;
default = "0";
description = "Logging verbosity level.";
};
rc_messages_per_second = mkOption {
type = types.str;
default = "0.2";
description = "Number of messages a client can send per second";
};
rc_message_burst_count = mkOption {
type = types.str;
default = "10.0";
description = "Number of message a client can send before being throttled";
};
federation_rc_window_size = mkOption {
type = types.str;
default = "1000";
description = "The federation window size in milliseconds";
};
federation_rc_sleep_limit = mkOption {
type = types.str;
default = "10";
description = ''
The number of federation requests from a single server in a window
before the server will delay processing the request.
'';
};
federation_rc_sleep_delay = mkOption {
type = types.str;
default = "500";
description = ''
The duration in milliseconds to delay processing events from
remote servers by if they go over the sleep limit.
'';
};
federation_rc_reject_limit = mkOption {
type = types.str;
default = "50";
description = ''
The maximum number of concurrent federation requests allowed
from a single server
'';
};
federation_rc_concurrent = mkOption {
type = types.str;
default = "3";
description = "The number of federation requests to concurrently process from a single server";
};
database_type = mkOption {
type = types.enum [ "sqlite3" "psycopg2" ];
default = "sqlite3";
@@ -150,6 +337,11 @@ in {
Arguments to pass to the engine.
'';
};
event_cache_size = mkOption {
type = types.str;
default = "10K";
description = "Number of events to cache in memory.";
};
recaptcha_private_key = mkOption {
type = types.str;
default = "";
@@ -187,6 +379,11 @@ in {
The shared secret used to compute passwords for the TURN server
'';
};
turn_user_lifetime = mkOption {
type = types.str;
default = "1h";
description = "How long generated TURN credentials last";
};
enable_registration = mkOption {
type = types.bool;
default = false;
@@ -195,8 +392,8 @@ in {
'';
};
registration_shared_secret = mkOption {
type = types.str;
default = "";
type = types.nullOr types.str;
default = null;
description = ''
If set, allows registration by anyone who also has the shared
secret, even if registration is otherwise disabled.
@@ -216,7 +413,7 @@ in {
'';
};
servers = mkOption {
type = types.attrs;
type = types.attrsOf (types.attrsOf types.str);
default = {
"matrix.org" = {
"ed25519:auto" = "Noi6WqcDj0QmPxCNQqgezwTlBKrfqehY1u2FyWP9uYw";
@@ -226,6 +423,69 @@ in {
The trusted servers to download signing keys from.
'';
};
max_upload_size = mkOption {
type = types.str;
default = "10M";
description = "The largest allowed upload size in bytes";
};
max_image_pixels = mkOption {
type = types.str;
default = "32M";
description = "Maximum number of pixels that will be thumbnailed";
};
dynamic_thumbnails = mkOption {
type = types.bool;
default = false;
description = ''
Whether to generate new thumbnails on the fly to precisely match
the resolution requested by the client. If true then whenever
a new resolution is requested by the client the server will
generate a new thumbnail. If false the server will pick a thumbnail
from a precalculated list.
'';
};
user_creation_max_duration = mkOption {
type = types.str;
default = "1209600000";
description = ''
Sets the expiry for the short term user creation in
milliseconds. The default value is two weeks.
'';
};
bcrypt_rounds = mkOption {
type = types.str;
default = "12";
description = ''
Set the number of bcrypt rounds used to generate password hash.
Larger numbers increase the work factor needed to generate the hash.
'';
};
allow_guest_access = mkOption {
type = types.bool;
default = false;
description = ''
Allows users to register as guests without a password/email/etc, and
participate in rooms hosted on this server which have been made
accessible to anonymous users.
'';
};
key_refresh_interval = mkOption {
type = types.str;
default = "1d";
description = ''
How long key response published by this server is valid for.
Used to set the valid_until_ts in /key/v2 APIs.
Determines how quickly servers will query to check which keys
are still valid.
'';
};
app_service_config_files = mkOption {
type = types.listOf types.path;
default = [ ];
description = ''
A list of application service config file to use
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";
@@ -265,7 +525,7 @@ in {
mkdir -p /var/lib/matrix-synapse
chmod 700 /var/lib/matrix-synapse
chown -R matrix-synapse:matrix-synapse /var/lib/matrix-synapse
${cfg.package}/bin/homeserver --config-path ${configFile} --generate-keys
${cfg.package}/bin/homeserver --config-path ${configFile} --keys-directory /var/lib/matrix-synapse/ --generate-keys
'';
serviceConfig = {
Type = "simple";

View File

@@ -257,13 +257,11 @@ in
type = types.bool;
default = true;
description = ''
If enabled, Nix will only download binaries from binary
caches if they are cryptographically signed with any of the
keys listed in
<option>nix.binaryCachePublicKeys</option>. If disabled (the
default), signatures are neither required nor checked, so
it's strongly recommended that you use only trustworthy
caches and https to prevent man-in-the-middle attacks.
If enabled (the default), Nix will only download binaries from binary caches if
they are cryptographically signed with any of the keys listed in
<option>nix.binaryCachePublicKeys</option>. If disabled, signatures are neither
required nor checked, so it's strongly recommended that you use only
trustworthy caches and https to prevent man-in-the-middle attacks.
'';
};

View File

@@ -72,6 +72,7 @@ let
postgresqlConfig = pkgs.writeText "postgres.yaml" cfg.postgresqlConfig;
nginxConfig = pkgs.writeText "nginx.yaml" cfg.nginxConfig;
mongoConfig = pkgs.writeText "mongo.yaml" cfg.mongoConfig;
jmxConfig = pkgs.writeText "jmx.yaml" cfg.jmxConfig;
etcfiles =
[ { source = ddConf;
@@ -94,6 +95,10 @@ let
(optional (cfg.mongoConfig != null)
{ source = mongoConfig;
target = "dd-agent/conf.d/mongo.yaml";
}) ++
(optional (cfg.jmxConfig != null)
{ source = jmxConfig;
target = "dd-agent/conf.d/jmx.yaml";
});
in {
@@ -141,6 +146,13 @@ in {
default = null;
type = types.uniq (types.nullOr types.string);
};
jmxConfig = mkOption {
description = "JMX integration configuration";
default = null;
type = types.uniq (types.nullOr types.string);
};
};
config = mkIf cfg.enable {
@@ -167,7 +179,7 @@ in {
Restart = "always";
RestartSec = 2;
};
restartTriggers = [ pkgs.dd-agent ddConf diskConfig networkConfig postgresqlConfig nginxConfig mongoConfig ];
restartTriggers = [ pkgs.dd-agent ddConf diskConfig networkConfig postgresqlConfig nginxConfig mongoConfig jmxConfig ];
};
systemd.services.dogstatsd = {
@@ -183,7 +195,21 @@ in {
Restart = "always";
RestartSec = 2;
};
restartTriggers = [ pkgs.dd-agent ddConf diskConfig networkConfig postgresqlConfig nginxConfig mongoConfig ];
restartTriggers = [ pkgs.dd-agent ddConf diskConfig networkConfig postgresqlConfig nginxConfig mongoConfig jmxConfig ];
};
systemd.services.dd-jmxfetch = lib.mkIf (cfg.jmxConfig != null) {
description = "Datadog JMX Fetcher";
path = [ pkgs."dd-agent" pkgs.python pkgs.sysstat pkgs.procps pkgs.jdk ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.dd-agent}/bin/dd-jmxfetch";
User = "datadog";
Group = "datadog";
Restart = "always";
RestartSec = 2;
};
restartTriggers = [ pkgs.dd-agent ddConf diskConfig networkConfig postgresqlConfig nginxConfig mongoConfig jmxConfig ];
};
environment.etc = etcfiles;

View File

@@ -51,7 +51,13 @@ let
'';
carbonEnv = {
PYTHONPATH = "${pkgs.python27Packages.carbon}/lib/python2.7/site-packages";
PYTHONPATH = let
cenv = pkgs.python.buildEnv.override {
extraLibs = [ pkgs.python27Packages.carbon ];
};
cenvPack = "${cenv}/${pkgs.python.sitePackages}";
# opt/graphite/lib contains twisted.plugins.carbon-cache
in "${cenvPack}/opt/graphite/lib:${cenvPack}";
GRAPHITE_ROOT = dataDir;
GRAPHITE_CONF_DIR = configDir;
GRAPHITE_STORAGE_DIR = dataDir;
@@ -445,10 +451,21 @@ in {
after = [ "network-interfaces.target" ];
path = [ pkgs.perl ];
environment = {
PYTHONPATH = "${pkgs.python27Packages.graphite_web}/lib/python2.7/site-packages";
PYTHONPATH = let
penv = pkgs.python.buildEnv.override {
extraLibs = [
pkgs.python27Packages.graphite_web
pkgs.python27Packages.pysqlite
];
};
penvPack = "${penv}/${pkgs.python.sitePackages}";
# opt/graphite/webapp contains graphite/settings.py
# explicitly adding pycairo in path because it cannot be imported via buildEnv
in "${penvPack}/opt/graphite/webapp:${penvPack}:${pkgs.pycairo}/${pkgs.python.sitePackages}";
DJANGO_SETTINGS_MODULE = "graphite.settings";
GRAPHITE_CONF_DIR = configDir;
GRAPHITE_STORAGE_DIR = dataDir;
LD_LIBRARY_PATH = "${pkgs.cairo}/lib";
};
serviceConfig = {
ExecStart = ''
@@ -486,9 +503,11 @@ in {
wantedBy = [ "multi-user.target" ];
after = [ "network-interfaces.target" ];
environment = {
PYTHONPATH =
"${cfg.api.package}/lib/python2.7/site-packages:" +
concatMapStringsSep ":" (f: f + "/lib/python2.7/site-packages") cfg.api.finders;
PYTHONPATH = let
aenv = pkgs.python.buildEnv.override {
extraLibs = [ cfg.api.package pkgs.cairo ] ++ cfg.api.finders;
};
in "${aenv}/${pkgs.python.sitePackages}";
GRAPHITE_API_CONFIG = graphiteApiConfig;
LD_LIBRARY_PATH = "${pkgs.cairo}/lib";
};

View File

@@ -126,7 +126,7 @@ in
{ description = "NFSv3 Mount Daemon";
requires = [ "rpcbind.service" ];
after = [ "rpcbind.service" ];
after = [ "rpcbind.service" "local-fs.target" ];
path = [ pkgs.nfs-utils pkgs.sysvtools pkgs.utillinux ];

View File

@@ -80,7 +80,7 @@ in
preStart = ''
mkdir -p -m 0755 /afs
mkdir -m 0700 -p ${cfg.cacheDirectory}
${pkgs.module_init_tools}/sbin/insmod ${openafsPkgs}/lib/openafs/libafs-*.ko || true
${pkgs.kmod}/sbin/insmod ${openafsPkgs}/lib/openafs/libafs-*.ko || true
${openafsPkgs}/sbin/afsd -confdir ${afsConfig} -cachedir ${cfg.cacheDirectory} ${if cfg.sparse then "-dynroot-sparse" else "-dynroot"} -fakestat -afsdb
${openafsPkgs}/bin/fs setcrypt ${if cfg.crypt then "on" else "off"}
'';
@@ -92,7 +92,7 @@ in
preStop = ''
${pkgs.utillinux}/bin/umount /afs
${openafsPkgs}/sbin/afsd -shutdown
${pkgs.module_init_tools}/sbin/rmmod libafs
${pkgs.kmod}/sbin/rmmod libafs
'';
};
};

View File

@@ -7,22 +7,8 @@ let
stateDir = "/var/spool/ddclient";
ddclientUser = "ddclient";
ddclientFlags = "-foreground -verbose -noquiet -file ${ddclientCfg}";
ddclientFlags = "-foreground -verbose -noquiet -file /etc/ddclient.conf";
ddclientPIDFile = "${stateDir}/ddclient.pid";
ddclientCfg = pkgs.writeText "ddclient.conf" ''
daemon=600
cache=${stateDir}/ddclient.cache
pid=${ddclientPIDFile}
use=${config.services.ddclient.use}
login=${config.services.ddclient.username}
password=${config.services.ddclient.password}
protocol=${config.services.ddclient.protocol}
server=${config.services.ddclient.server}
ssl=${if config.services.ddclient.ssl then "yes" else "no"}
wildcard=YES
${config.services.ddclient.domain}
${config.services.ddclient.extraConfig}
'';
in
@@ -62,7 +48,7 @@ in
default = "";
type = str;
description = ''
Password.
Password. WARNING: The password becomes world readable in the Nix store.
'';
};
@@ -122,10 +108,30 @@ in
home = stateDir;
};
environment.etc."ddclient.conf" = {
uid = config.ids.uids.ddclient;
mode = "0600";
text = ''
daemon=600
cache=${stateDir}/ddclient.cache
pid=${ddclientPIDFile}
use=${config.services.ddclient.use}
login=${config.services.ddclient.username}
password=${config.services.ddclient.password}
protocol=${config.services.ddclient.protocol}
server=${config.services.ddclient.server}
ssl=${if config.services.ddclient.ssl then "yes" else "no"}
wildcard=YES
${config.services.ddclient.domain}
${config.services.ddclient.extraConfig}
'';
};
systemd.services.ddclient = {
description = "Dynamic DNS Client";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
restartTriggers = [ config.environment.etc."ddclient.conf".source ];
serviceConfig = {
# Uncomment this if too many problems occur:

View File

@@ -52,6 +52,8 @@ in
config = mkIf config.services.shairport-sync.enable {
services.avahi.enable = true;
services.avahi.publish.enable = true;
services.avahi.publish.userServices = true;
users.extraUsers = singleton
{ name = cfg.user;

View File

@@ -106,8 +106,10 @@ in
preStart = ''
mkdir -m 0755 -p ${stateDir}/dev/
cp ${confFile} ${stateDir}/unbound.conf
${optionalString cfg.enableRootTrustAnchor ''
${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile}
chown unbound ${stateDir} ${rootTrustAnchorFile}
''}
touch ${stateDir}/dev/random
${pkgs.utillinux}/bin/mount --bind -n /dev/random ${stateDir}/dev/random
'';

View File

@@ -156,11 +156,14 @@ in {
environment.systemPackages = [ cfg.package ];
users.extraUsers = singleton {
name = "elasticsearch";
uid = config.ids.uids.elasticsearch;
description = "Elasticsearch daemon user";
home = cfg.dataDir;
users = {
groups.elasticsearch.gid = config.ids.gids.elasticsearch;
users.elasticsearch = {
uid = config.ids.uids.elasticsearch;
description = "Elasticsearch daemon user";
home = cfg.dataDir;
group = "elasticsearch";
};
};
};
}

View File

@@ -101,7 +101,7 @@ in
after = [ "network.target" ];
restartTriggers = [ fail2banConf jailConf ];
path = [ pkgs.fail2ban pkgs.iptables ];
path = [ pkgs.fail2ban pkgs.iptables pkgs.iproute ];
preStart =
''

View File

@@ -4,7 +4,7 @@ let
inherit (lib) mkOption mkIf singleton;
inherit (pkgs) heimdal;
inherit (pkgs) heimdalFull;
stateDir = "/var/heimdal";
in
@@ -33,7 +33,7 @@ in
config = mkIf config.services.kerberos_server.enable {
environment.systemPackages = [ heimdal ];
environment.systemPackages = [ heimdalFull ];
services.xinetd.enable = true;
services.xinetd.services = lib.singleton
@@ -42,7 +42,7 @@ in
protocol = "tcp";
user = "root";
server = "${pkgs.tcp_wrappers}/sbin/tcpd";
serverArgs = "${pkgs.heimdal}/sbin/kadmind";
serverArgs = "${pkgs.heimdalFull}/sbin/kadmind";
};
systemd.services.kdc = {
@@ -51,13 +51,13 @@ in
preStart = ''
mkdir -m 0755 -p ${stateDir}
'';
script = "${heimdal}/sbin/kdc";
script = "${heimdalFull}/sbin/kdc";
};
systemd.services.kpasswdd = {
description = "Kerberos Domain Controller daemon";
wantedBy = [ "multi-user.target" ];
script = "${heimdal}/sbin/kpasswdd";
script = "${heimdalFull}/sbin/kpasswdd";
};
};

View File

@@ -685,6 +685,7 @@ in
serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf}";
serviceConfig.ExecStop = "${httpd}/bin/httpd -f ${httpdConf} -k graceful-stop";
serviceConfig.ExecReload = "${httpd}/bin/httpd -f ${httpdConf} -k graceful";
serviceConfig.Type = "forking";
serviceConfig.PIDFile = "${mainCfg.stateDir}/httpd.pid";
serviceConfig.Restart = "always";

View File

@@ -5,14 +5,19 @@ with lib;
let
# Build a Subversion instance with Apache modules and Swig/Python bindings.
subversion = pkgs.subversion.override (origArgs: {
subversion = pkgs.subversion.override {
bdbSupport = true;
httpServer = true;
pythonBindings = true;
});
apacheHttpd = httpd;
};
pythonLib = p: "${p}/";
httpd = serverInfo.serverConfig.package;
versionPre24 = versionOlder httpd.version "2.4";
in
{
@@ -82,7 +87,7 @@ in
AuthName "${config.ldapAuthentication.name}"
AuthBasicProvider "ldap"
AuthLDAPURL "${config.ldapAuthentication.url}"
authzldapauthoritative Off
${if versionPre24 then "authzldapauthoritative Off" else ""}
require valid-user
</LocationMatch>
'' else ""}

View File

@@ -32,17 +32,27 @@ let
self = pythonPackages;
};
json = builtins.toJSON {
penv = python.buildEnv.override {
extraLibs = (c.pythonPackages or (self: [])) pythonPackages;
};
uwsgiCfg = {
uwsgi =
if c.type == "normal"
then {
inherit plugins;
} // removeAttrs c [ "type" "pythonPackages" ]
// optionalAttrs (python != null) {
pythonpath = "@PYTHONPATH@";
env = (c.env or {}) // {
PATH = optionalString (c ? env.PATH) "${c.env.PATH}:" + "@PATH@";
};
pythonpath = "${penv}/${python.sitePackages}";
env =
# Argh, uwsgi expects list of key-values there instead of a dictionary.
let env' = c.env or [];
getPath =
x: if hasPrefix "PATH=" x
then substring (stringLength "PATH=") (stringLength x) x
else null;
oldPaths = filter (x: x != null) (map getPath env');
in env' ++ [ "PATH=${optionalString (oldPaths != []) "${last oldPaths}:"}${penv}/bin" ];
}
else if c.type == "emperor"
then {
@@ -55,35 +65,7 @@ let
else throw "`type` attribute in UWSGI configuration should be either 'normal' or 'emperor'";
};
in
if python == null || c.type != "normal"
then pkgs.writeTextDir "${name}.json" json
else pkgs.stdenv.mkDerivation {
name = "uwsgi-config";
inherit json;
passAsFile = [ "json" ];
nativeBuildInputs = [ pythonPackages.wrapPython ];
pythonInputs = (c.pythonPackages or (self: [])) pythonPackages;
buildCommand = ''
mkdir $out
declare -A pythonPathsSeen=()
program_PYTHONPATH=
program_PATH=
if [ -n "$pythonInputs" ]; then
for i in $pythonInputs; do
_addToPythonPath $i
done
fi
# A hack to replace "@PYTHONPATH@" with a JSON list
if [ -n "$program_PYTHONPATH" ]; then
program_PYTHONPATH="\"''${program_PYTHONPATH//:/\",\"}\""
fi
substitute $jsonPath $out/${name}.json \
--replace '"@PYTHONPATH@"' "[$program_PYTHONPATH]" \
--subst-var-by PATH "$program_PATH"
'';
};
in pkgs.writeTextDir "${name}.json" (builtins.toJSON uwsgiCfg);
in {

View File

@@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.colord;
in {
options = {
services.colord = {
enable = mkEnableOption "colord, the color management daemon";
};
};
config = mkIf cfg.enable {
services.dbus.packages = [ pkgs.colord ];
services.udev.packages = [ pkgs.colord ];
environment.systemPackages = [ pkgs.colord ];
systemd.services.colord = {
description = "Manage, Install and Generate Color Profiles";
serviceConfig = {
Type = "dbus";
BusName = "org.freedesktop.ColorManager";
ExecStart = "${pkgs.colord}/libexec/colord";
PrivateTmp = true;
};
};
};
}

View File

@@ -99,6 +99,8 @@ in {
services.telepathy.enable = mkDefault true;
networking.networkmanager.enable = mkDefault true;
services.upower.enable = config.powerManagement.enable;
services.dbus.packages = mkIf config.services.printing.enable [ pkgs.system-config-printer ];
services.colord.enable = mkDefault true;
hardware.bluetooth.enable = mkDefault true;
fonts.fonts = [ pkgs.dejavu_fonts pkgs.cantarell_fonts ];

View File

@@ -94,11 +94,9 @@ in {
};
config = mkIf cfg.enable {
systemd.services.redshift = {
systemd.user.services.redshift = {
description = "Redshift colour temperature adjuster";
requires = [ "display-manager.service" ];
after = [ "display-manager.service" ];
wantedBy = [ "graphical.target" ];
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = ''
${cfg.package}/bin/redshift \
@@ -107,10 +105,10 @@ in {
-b ${toString cfg.brightness.day}:${toString cfg.brightness.night} \
${lib.strings.concatStringsSep " " cfg.extraOptions}
'';
RestartSec = 3;
RestartSec = 3;
Restart = "always";
};
environment = { DISPLAY = ":0"; };
serviceConfig.Restart = "always";
};
};

View File

@@ -41,7 +41,7 @@ with lib;
{ description = "Terminal Server";
path =
[ pkgs.xorgserver pkgs.gawk pkgs.which pkgs.openssl pkgs.xorg.xauth
[ pkgs.xorg.xorgserver pkgs.gawk pkgs.which pkgs.openssl pkgs.xorg.xauth
pkgs.nettools pkgs.shadow pkgs.procps pkgs.utillinux pkgs.bash
];

View File

@@ -16,6 +16,7 @@ let
virtualbox = { modules = [ kernelPackages.virtualboxGuestAdditions ]; driverName = "vboxvideo"; };
ati = { modules = with pkgs.xorg; [ xf86videoati glamoregl ]; };
intel = { modules = with pkgs.xorg; [ xf86videointel glamoregl ]; };
modesetting = { modules = []; };
};
fontsForXServer =
@@ -478,6 +479,7 @@ in
xorg.xsetroot
xorg.xinput
xorg.xprop
xorg.xauth
pkgs.xterm
pkgs.xdg_utils
]
@@ -525,8 +527,7 @@ in
};
services.xserver.displayManager.xserverArgs =
[ "-ac"
"-terminate"
[ "-terminate"
"-config ${configFile}"
"-xkbdir" "${cfg.xkbDir}"
] ++ optional (cfg.display != null) ":${toString cfg.display}"

View File

@@ -261,7 +261,7 @@ while (my ($unit, $state) = each %{$activePrev}) {
sub pathToUnitName {
my ($path) = @_;
open my $cmd, "-|", "systemd-escape", "--suffix=mount", "-p", $path
open my $cmd, "-|", "@systemd@/bin/systemd-escape", "--suffix=mount", "-p", $path
or die "Unable to escape $path!\n";
my $escaped = join "", <$cmd>;
chomp $escaped;

View File

@@ -50,6 +50,11 @@ with lib;
(mkIf (!config.systemd.coredump.enable) {
boot.kernel.sysctl."kernel.core_pattern" = mkDefault "core";
systemd.extraConfig =
''
DefaultLimitCORE=0:infinity
'';
})
];

View File

@@ -200,8 +200,8 @@ in
"hid_generic" "hid_lenovo"
"hid_apple" "hid_logitech_dj" "hid_lenovo_tpkbd" "hid_roccat"
# Misc. stuff.
"pcips2" "atkbd"
# Misc. keyboard stuff.
"pcips2" "atkbd" "i8042"
# To wait for SCSI devices to appear.
"scsi_wait_scan"

View File

@@ -501,7 +501,7 @@ sub getEfiTarget {
my @deviceTargets = getDeviceTargets();
my $efiTarget = getEfiTarget();
my $prevGrubState = readGrubState();
my @prevDeviceTargets = split/:/, $prevGrubState->devices;
my @prevDeviceTargets = split/,/, $prevGrubState->devices;
my $devicesDiffer = scalar (List::Compare->new( '-u', '-a', \@deviceTargets, \@prevDeviceTargets)->get_symmetric_difference());
my $nameDiffer = get("fullName") ne $prevGrubState->name;
@@ -549,7 +549,7 @@ if ($requireNewInstall != 0) {
print FILE get("fullName"), "\n" or die;
print FILE get("fullVersion"), "\n" or die;
print FILE $efiTarget, "\n" or die;
print FILE join( ":", @deviceTargets ), "\n" or die;
print FILE join( ",", @deviceTargets ), "\n" or die;
print FILE $efiSysMountPoint, "\n" or die;
close FILE or die;
}

View File

@@ -434,16 +434,23 @@ udevadm control --exit
# Reset the logging file descriptors.
# Do this just before pkill, which will kill the tee process.
if test -n "@logCommands@"
then
exec 1>&$logOutFd 2>&$logErrFd
eval "exec $logOutFd>&- $logErrFd>&-"
fi
exec 1>&$logOutFd 2>&$logErrFd
eval "exec $logOutFd>&- $logErrFd>&-"
# Kill any remaining processes, just to be sure we're not taking any
# with us into stage 2. But keep storage daemons like unionfs-fuse.
pkill -9 -v -f '@'
#
# Storage daemons are distinguished by an @ in front of their command line:
# https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/
local pidsToKill="$(pgrep -v -f '^@')"
for pid in $pidsToKill; do
# Make sure we don't kill kernel processes, see #15226 and:
# http://stackoverflow.com/questions/12213445/identifying-kernel-threads
readlink "/proc/$pid/exe" &> /dev/null || continue
# Try to avoid killing ourselves.
[ $pid -eq $$ ] && continue
kill -9 "$pid"
done
if test -n "$debug1mounts"; then fail; fi

View File

@@ -67,6 +67,10 @@ let
copy_bin_and_libs $BIN
done
# Copy modprobe.
copy_bin_and_libs ${pkgs.kmod}/bin/kmod
ln -sf kmod $out/bin/modprobe
# Copy resize2fs if needed.
${optionalString (any (fs: fs.autoResize) (attrValues config.fileSystems)) ''
# We need mke2fs in the initrd.

View File

@@ -747,7 +747,7 @@ in
{ wantedBy = [ "timers.target" ];
timerConfig.OnCalendar = service.startAt;
})
(filterAttrs (name: service: service.startAt != "") cfg.services);
(filterAttrs (name: service: service.enable && service.startAt != "") cfg.services);
# Generate timer units for all services that have a startAt value.
systemd.user.timers =

View File

@@ -228,8 +228,18 @@ in
esac
done
''] ++ (map (pool: ''
echo "importing root ZFS pool \"${pool}\"..."
zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE "${pool}"
echo -n "importing root ZFS pool \"${pool}\"..."
trial=0
until msg="$(zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE '${pool}' 2>&1)"; do
sleep 0.25
echo -n .
trial=$(($trial + 1))
if [[ $trial -eq 60 ]]; then
break
fi
done
echo
if [[ -n "$msg" ]]; then echo "$msg"; fi
'') rootPools));
};

View File

@@ -391,7 +391,7 @@ in
};
networking.localCommands = mkOption {
type = types.str;
type = types.lines;
default = "";
example = "text=anything; echo You can put $text here.";
description = ''

View File

@@ -113,6 +113,14 @@ let kernel = config.boot.kernelPackages.kernel; in
# Make it easy to log in as root when running the test interactively.
users.extraUsers.root.initialHashedPassword = mkOverride 150 "";
# Bump kdm's X server start timeout to account for heavily loaded
# VM host systems.
services.xserver.displayManager.kdm.extraConfig =
''
[X-:*-Core]
ServerTimeout=240
'';
};
}

View File

@@ -20,7 +20,12 @@ let cfg = config.ec2; in
autoResize = true;
};
boot.extraModulePackages =
[ config.boot.kernelPackages.ixgbevf
config.boot.kernelPackages.ena
];
boot.initrd.kernelModules = [ "xen-blkfront" "xen-netfront" ];
boot.initrd.availableKernelModules = [ "ixgbevf" "ena" ];
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
# Prevent the nouveau kernel module from being loaded, as it

View File

@@ -299,7 +299,7 @@ in
fi
''}
rm -f $root/var/lib/private/host-notify
# Run systemd-nspawn without startup notification (we'll
# wait for the container systemd to signal readiness).

View File

@@ -0,0 +1,137 @@
{
"14.04".ap-northeast-1.hvm-ebs = "ami-71c6f470";
"14.04".ap-northeast-1.pv-ebs = "ami-4dcbf84c";
"14.04".ap-northeast-1.pv-s3 = "ami-8fc4f68e";
"14.04".ap-southeast-1.hvm-ebs = "ami-da280888";
"14.04".ap-southeast-1.pv-ebs = "ami-7a9dbc28";
"14.04".ap-southeast-1.pv-s3 = "ami-c4290996";
"14.04".ap-southeast-2.hvm-ebs = "ami-ab523e91";
"14.04".ap-southeast-2.pv-ebs = "ami-6769055d";
"14.04".ap-southeast-2.pv-s3 = "ami-15533f2f";
"14.04".eu-central-1.hvm-ebs = "ami-ba0234a7";
"14.04".eu-west-1.hvm-ebs = "ami-96cb63e1";
"14.04".eu-west-1.pv-ebs = "ami-b48c25c3";
"14.04".eu-west-1.pv-s3 = "ami-06cd6571";
"14.04".sa-east-1.hvm-ebs = "ami-01b90e1c";
"14.04".sa-east-1.pv-ebs = "ami-69e35474";
"14.04".sa-east-1.pv-s3 = "ami-61b90e7c";
"14.04".us-east-1.hvm-ebs = "ami-58ba3a30";
"14.04".us-east-1.pv-ebs = "ami-9e0583f6";
"14.04".us-east-1.pv-s3 = "ami-9cbe3ef4";
"14.04".us-west-1.hvm-ebs = "ami-0bc3d74e";
"14.04".us-west-1.pv-ebs = "ami-8b1703ce";
"14.04".us-west-1.pv-s3 = "ami-27ccd862";
"14.04".us-west-2.hvm-ebs = "ami-3bf1bf0b";
"14.04".us-west-2.pv-ebs = "ami-259bd515";
"14.04".us-west-2.pv-s3 = "ami-07094037";
"14.12".ap-northeast-1.hvm-ebs = "ami-24435f25";
"14.12".ap-northeast-1.pv-ebs = "ami-b0425eb1";
"14.12".ap-northeast-1.pv-s3 = "ami-fed3c6ff";
"14.12".ap-southeast-1.hvm-ebs = "ami-6c765d3e";
"14.12".ap-southeast-1.pv-ebs = "ami-6a765d38";
"14.12".ap-southeast-1.pv-s3 = "ami-d1bf9183";
"14.12".ap-southeast-2.hvm-ebs = "ami-af86f395";
"14.12".ap-southeast-2.pv-ebs = "ami-b386f389";
"14.12".ap-southeast-2.pv-s3 = "ami-69c5ae53";
"14.12".eu-central-1.hvm-ebs = "ami-4a497a57";
"14.12".eu-central-1.pv-ebs = "ami-4c497a51";
"14.12".eu-central-1.pv-s3 = "ami-60f2c27d";
"14.12".eu-west-1.hvm-ebs = "ami-d126a5a6";
"14.12".eu-west-1.pv-ebs = "ami-0126a576";
"14.12".eu-west-1.pv-s3 = "ami-deda5fa9";
"14.12".sa-east-1.hvm-ebs = "ami-2d239e30";
"14.12".sa-east-1.pv-ebs = "ami-35239e28";
"14.12".sa-east-1.pv-s3 = "ami-81e3519c";
"14.12".us-east-1.hvm-ebs = "ami-0c463a64";
"14.12".us-east-1.pv-ebs = "ami-ac473bc4";
"14.12".us-east-1.pv-s3 = "ami-00e18a68";
"14.12".us-west-1.hvm-ebs = "ami-ca534a8f";
"14.12".us-west-1.pv-ebs = "ami-3e534a7b";
"14.12".us-west-1.pv-s3 = "ami-2905196c";
"14.12".us-west-2.hvm-ebs = "ami-fb9dc3cb";
"14.12".us-west-2.pv-ebs = "ami-899dc3b9";
"14.12".us-west-2.pv-s3 = "ami-cb7f2dfb";
"15.09".ap-northeast-1.hvm-ebs = "ami-58cac236";
"15.09".ap-northeast-1.hvm-s3 = "ami-39c8c057";
"15.09".ap-northeast-1.pv-ebs = "ami-5ac9c134";
"15.09".ap-northeast-1.pv-s3 = "ami-03cec66d";
"15.09".ap-southeast-1.hvm-ebs = "ami-2fc2094c";
"15.09".ap-southeast-1.hvm-s3 = "ami-9ec308fd";
"15.09".ap-southeast-1.pv-ebs = "ami-95c00bf6";
"15.09".ap-southeast-1.pv-s3 = "ami-bfc00bdc";
"15.09".ap-southeast-2.hvm-ebs = "ami-996c4cfa";
"15.09".ap-southeast-2.hvm-s3 = "ami-3f6e4e5c";
"15.09".ap-southeast-2.pv-ebs = "ami-066d4d65";
"15.09".ap-southeast-2.pv-s3 = "ami-cc6e4eaf";
"15.09".eu-central-1.hvm-ebs = "ami-3f8c6b50";
"15.09".eu-central-1.hvm-s3 = "ami-5b836434";
"15.09".eu-central-1.pv-ebs = "ami-118c6b7e";
"15.09".eu-central-1.pv-s3 = "ami-2c977043";
"15.09".eu-west-1.hvm-ebs = "ami-9cf04aef";
"15.09".eu-west-1.hvm-s3 = "ami-2bea5058";
"15.09".eu-west-1.pv-ebs = "ami-c9e852ba";
"15.09".eu-west-1.pv-s3 = "ami-c6f64cb5";
"15.09".sa-east-1.hvm-ebs = "ami-6e52df02";
"15.09".sa-east-1.hvm-s3 = "ami-1852df74";
"15.09".sa-east-1.pv-ebs = "ami-4368e52f";
"15.09".sa-east-1.pv-s3 = "ami-f15ad79d";
"15.09".us-east-1.hvm-ebs = "ami-84a6a0ee";
"15.09".us-east-1.hvm-s3 = "ami-06a7a16c";
"15.09".us-east-1.pv-ebs = "ami-a4a1a7ce";
"15.09".us-east-1.pv-s3 = "ami-5ba8ae31";
"15.09".us-west-1.hvm-ebs = "ami-22c8bb42";
"15.09".us-west-1.hvm-s3 = "ami-a2ccbfc2";
"15.09".us-west-1.pv-ebs = "ami-10cebd70";
"15.09".us-west-1.pv-s3 = "ami-fa30429a";
"15.09".us-west-2.hvm-ebs = "ami-ce57b9ae";
"15.09".us-west-2.hvm-s3 = "ami-2956b849";
"15.09".us-west-2.pv-ebs = "ami-005fb160";
"15.09".us-west-2.pv-s3 = "ami-cd55bbad";
"16.03".ap-northeast-1.hvm-ebs = "ami-40619d21";
"16.03".ap-northeast-1.hvm-s3 = "ami-ce629eaf";
"16.03".ap-northeast-1.pv-ebs = "ami-ef639f8e";
"16.03".ap-northeast-1.pv-s3 = "ami-a1609cc0";
"16.03".ap-northeast-2.hvm-ebs = "ami-deca00b0";
"16.03".ap-northeast-2.hvm-s3 = "ami-a3b77dcd";
"16.03".ap-northeast-2.pv-ebs = "ami-7bcb0115";
"16.03".ap-northeast-2.pv-s3 = "ami-a2b77dcc";
"16.03".ap-south-1.hvm-ebs = "ami-0dff9562";
"16.03".ap-south-1.hvm-s3 = "ami-13f69c7c";
"16.03".ap-south-1.pv-ebs = "ami-0ef39961";
"16.03".ap-south-1.pv-s3 = "ami-e0c8a28f";
"16.03".ap-southeast-1.hvm-ebs = "ami-5e964a3d";
"16.03".ap-southeast-1.hvm-s3 = "ami-4d964a2e";
"16.03".ap-southeast-1.pv-ebs = "ami-ec9b478f";
"16.03".ap-southeast-1.pv-s3 = "ami-999b47fa";
"16.03".ap-southeast-2.hvm-ebs = "ami-9f7359fc";
"16.03".ap-southeast-2.hvm-s3 = "ami-987359fb";
"16.03".ap-southeast-2.pv-ebs = "ami-a2705ac1";
"16.03".ap-southeast-2.pv-s3 = "ami-a3705ac0";
"16.03".eu-central-1.hvm-ebs = "ami-17a45178";
"16.03".eu-central-1.hvm-s3 = "ami-f9a55096";
"16.03".eu-central-1.pv-ebs = "ami-c8a550a7";
"16.03".eu-central-1.pv-s3 = "ami-6ea45101";
"16.03".eu-west-1.hvm-ebs = "ami-b5b3d5c6";
"16.03".eu-west-1.hvm-s3 = "ami-c986e0ba";
"16.03".eu-west-1.pv-ebs = "ami-b083e5c3";
"16.03".eu-west-1.pv-s3 = "ami-3c83e54f";
"16.03".sa-east-1.hvm-ebs = "ami-f6eb7f9a";
"16.03".sa-east-1.hvm-s3 = "ami-93e773ff";
"16.03".sa-east-1.pv-ebs = "ami-cbb82ca7";
"16.03".sa-east-1.pv-s3 = "ami-abb82cc7";
"16.03".us-east-1.hvm-ebs = "ami-c123a3d6";
"16.03".us-east-1.hvm-s3 = "ami-bc25a5ab";
"16.03".us-east-1.pv-ebs = "ami-bd25a5aa";
"16.03".us-east-1.pv-s3 = "ami-a325a5b4";
"16.03".us-west-1.hvm-ebs = "ami-748bcd14";
"16.03".us-west-1.hvm-s3 = "ami-a68dcbc6";
"16.03".us-west-1.pv-ebs = "ami-048acc64";
"16.03".us-west-1.pv-s3 = "ami-208dcb40";
"16.03".us-west-2.hvm-ebs = "ami-8263a0e2";
"16.03".us-west-2.hvm-s3 = "ami-925c9ff2";
"16.03".us-west-2.pv-ebs = "ami-5e61a23e";
"16.03".us-west-2.pv-s3 = "ami-734c8f13";
}

View File

@@ -1,5 +1,3 @@
# Systemd services for libvirtd.
{ config, lib, pkgs, ... }:
with lib;
@@ -16,71 +14,59 @@ let
${cfg.extraConfig}
'';
in
in {
{
###### interface
options = {
virtualisation.libvirtd.enable =
mkOption {
type = types.bool;
default = false;
description =
''
This option enables libvirtd, a daemon that manages
virtual machines. Users in the "libvirtd" group can interact with
the daemon (e.g. to start or stop VMs) using the
<command>virsh</command> command line tool, among others.
'';
};
virtualisation.libvirtd.enable = mkOption {
type = types.bool;
default = false;
description = ''
This option enables libvirtd, a daemon that manages
virtual machines. Users in the "libvirtd" group can interact with
the daemon (e.g. to start or stop VMs) using the
<command>virsh</command> command line tool, among others.
'';
};
virtualisation.libvirtd.enableKVM =
mkOption {
type = types.bool;
default = true;
description =
''
This option enables support for QEMU/KVM in libvirtd.
'';
};
virtualisation.libvirtd.enableKVM = mkOption {
type = types.bool;
default = true;
description = ''
This option enables support for QEMU/KVM in libvirtd.
'';
};
virtualisation.libvirtd.extraConfig =
mkOption {
type = types.lines;
default = "";
description =
''
Extra contents appended to the libvirtd configuration file,
libvirtd.conf.
'';
};
virtualisation.libvirtd.extraConfig = mkOption {
type = types.lines;
default = "";
description = ''
Extra contents appended to the libvirtd configuration file,
libvirtd.conf.
'';
};
virtualisation.libvirtd.extraOptions =
mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--verbose" ];
description =
''
Extra command line arguments passed to libvirtd on startup.
'';
};
virtualisation.libvirtd.onShutdown =
mkOption {
type = types.enum ["shutdown" "suspend" ];
default = "suspend";
description =
''
When shutting down / restarting the host what method should
be used to gracefully halt the guests. Setting to "shutdown"
will cause an ACPI shutdown of each guest. "suspend" will
attempt to save the state of the guests ready to restore on boot.
'';
};
virtualisation.libvirtd.extraOptions = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--verbose" ];
description = ''
Extra command line arguments passed to libvirtd on startup.
'';
};
virtualisation.libvirtd.onShutdown = mkOption {
type = types.enum ["shutdown" "suspend" ];
default = "suspend";
description = ''
When shutting down / restarting the host what method should
be used to gracefully halt the guests. Setting to "shutdown"
will cause an ACPI shutdown of each guest. "suspend" will
attempt to save the state of the guests ready to restore on boot.
'';
};
};
@@ -95,103 +81,87 @@ in
boot.kernelModules = [ "tun" ];
systemd.services.libvirtd =
{ description = "Libvirt Virtual Machine Management Daemon";
users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd;
wantedBy = [ "multi-user.target" ];
after = [ "systemd-udev-settle.service" ]
++ optional vswitch.enable "vswitchd.service";
path = [
pkgs.bridge-utils
pkgs.dmidecode
pkgs.dnsmasq
pkgs.ebtables
]
++ optional cfg.enableKVM pkgs.qemu_kvm
++ optional vswitch.enable vswitch.package;
preStart =
''
mkdir -p /var/log/libvirt/qemu -m 755
rm -f /var/run/libvirtd.pid
mkdir -p /var/lib/libvirt
mkdir -p /var/lib/libvirt/dnsmasq
chmod 755 /var/lib/libvirt
chmod 755 /var/lib/libvirt/dnsmasq
# Copy default libvirt network config .xml files to /var/lib
# Files modified by the user will not be overwritten
for i in $(cd ${pkgs.libvirt}/var/lib && echo \
libvirt/qemu/networks/*.xml libvirt/qemu/networks/autostart/*.xml \
libvirt/nwfilter/*.xml );
do
mkdir -p /var/lib/$(dirname $i) -m 755
cp -npd ${pkgs.libvirt}/var/lib/$i /var/lib/$i
done
# libvirtd puts the full path of the emulator binary in the machine
# config file. But this path can unfortunately be garbage collected
# while still being used by the virtual machine. So update the
# emulator path on each startup to something valid (re-scan $PATH).
for file in /etc/libvirt/qemu/*.xml /etc/libvirt/lxc/*.xml; do
test -f "$file" || continue
# get (old) emulator path from config file
emulator=$(grep "^[[:space:]]*<emulator>" "$file" | sed 's,^[[:space:]]*<emulator>\(.*\)</emulator>.*,\1,')
# get a (definitely) working emulator path by re-scanning $PATH
new_emulator=$(PATH=${pkgs.libvirt}/libexec:$PATH command -v $(basename "$emulator"))
# write back
sed -i "s,^[[:space:]]*<emulator>.*, <emulator>$new_emulator</emulator> <!-- WARNING: emulator dirname is auto-updated by the nixos libvirtd module -->," "$file"
done
''; # */
serviceConfig.ExecStart = ''@${pkgs.libvirt}/sbin/libvirtd libvirtd --config "${configFile}" --daemon ${concatStringsSep " " cfg.extraOptions}'';
serviceConfig.Type = "forking";
serviceConfig.KillMode = "process"; # when stopping, leave the VMs alone
# Wait until libvirtd is ready to accept requests.
postStart =
''
for ((i = 0; i < 60; i++)); do
if ${pkgs.libvirt}/bin/virsh list > /dev/null; then exit 0; fi
sleep 1
done
exit 1 # !!! seems to be ignored
'';
};
systemd.services."libvirt-guests" = {
description = "Libvirt Virtual Machines";
systemd.services.libvirtd = {
description = "Libvirt Virtual Machine Management Daemon";
wantedBy = [ "multi-user.target" ];
wants = [ "libvirtd.service" ];
after = [ "libvirtd.service" ];
after = [ "systemd-udev-settle.service" ]
++ optional vswitch.enable "vswitchd.service";
restartIfChanged = false;
path = with pkgs; [ gettext libvirt gawk ];
path = [
pkgs.bridge-utils
pkgs.dmidecode
pkgs.dnsmasq
pkgs.ebtables
]
++ optional cfg.enableKVM pkgs.qemu_kvm
++ optional vswitch.enable vswitch.package;
preStart = ''
mkdir -p /var/lock/subsys -m 755
${pkgs.libvirt}/etc/rc.d/init.d/libvirt-guests start || true
'';
mkdir -p /var/log/libvirt/qemu -m 755
rm -f /var/run/libvirtd.pid
postStop = ''
export PATH=${pkgs.gettext}/bin:$PATH
export ON_SHUTDOWN=${cfg.onShutdown}
${pkgs.libvirt}/etc/rc.d/init.d/libvirt-guests stop
'';
mkdir -p /var/lib/libvirt
mkdir -p /var/lib/libvirt/dnsmasq
chmod 755 /var/lib/libvirt
chmod 755 /var/lib/libvirt/dnsmasq
# Copy default libvirt network config .xml files to /var/lib
# Files modified by the user will not be overwritten
for i in $(cd ${pkgs.libvirt}/var/lib && echo \
libvirt/qemu/networks/*.xml libvirt/qemu/networks/autostart/*.xml \
libvirt/nwfilter/*.xml );
do
mkdir -p /var/lib/$(dirname $i) -m 755
cp -npd ${pkgs.libvirt}/var/lib/$i /var/lib/$i
done
# libvirtd puts the full path of the emulator binary in the machine
# config file. But this path can unfortunately be garbage collected
# while still being used by the virtual machine. So update the
# emulator path on each startup to something valid (re-scan $PATH).
for file in /etc/libvirt/qemu/*.xml /etc/libvirt/lxc/*.xml; do
test -f "$file" || continue
# get (old) emulator path from config file
emulator=$(grep "^[[:space:]]*<emulator>" "$file" | sed 's,^[[:space:]]*<emulator>\(.*\)</emulator>.*,\1,')
# get a (definitely) working emulator path by re-scanning $PATH
new_emulator=$(PATH=${pkgs.libvirt}/libexec:$PATH command -v $(basename "$emulator"))
# write back
sed -i "s,^[[:space:]]*<emulator>.*, <emulator>$new_emulator</emulator> <!-- WARNING: emulator dirname is auto-updated by the nixos libvirtd module -->," "$file"
done
''; # */
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = ''@${pkgs.libvirt}/sbin/libvirtd libvirtd --config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
Type = "notify";
KillMode = "process"; # when stopping, leave the VMs alone
Restart = "on-failure";
};
};
users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd;
systemd.sockets.virtlogd = {
description = "Virtual machine log manager socket";
wantedBy = [ "sockets.target" ];
listenStreams = [ "/run/libvirt/virtlogd-sock" ];
};
systemd.services.virtlogd = {
description = "Virtual machine log manager";
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlogd virtlogd";
};
systemd.sockets.virtlockd = {
description = "Virtual machine lock manager socket";
wantedBy = [ "sockets.target" ];
listenStreams = [ "/run/libvirt/virtlockd-sock" ];
};
systemd.services.virtlockd = {
description = "Virtual machine lock manager";
serviceConfig.ExecStart = "@${pkgs.libvirt}/sbin/virtlockd virtlockd";
};
};
}

View File

@@ -149,11 +149,11 @@ let
${pkgs.mtools}/bin/mlabel -i /dev/vda2 ::boot
# Mount /boot; load necessary modules first.
${pkgs.module_init_tools}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/nls/nls_cp437.ko || true
${pkgs.module_init_tools}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/nls/nls_iso8859-1.ko || true
${pkgs.module_init_tools}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/fat/fat.ko || true
${pkgs.module_init_tools}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/fat/vfat.ko || true
${pkgs.module_init_tools}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/efivarfs/efivarfs.ko || true
${pkgs.kmod}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/nls/nls_cp437.ko.xz || true
${pkgs.kmod}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/nls/nls_iso8859-1.ko.xz || true
${pkgs.kmod}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/fat/fat.ko.xz || true
${pkgs.kmod}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/fat/vfat.ko.xz || true
${pkgs.kmod}/sbin/insmod ${pkgs.linux}/lib/modules/*/kernel/fs/efivarfs/efivarfs.ko.xz || true
mkdir /boot
mount /dev/vda2 /boot

View File

@@ -49,7 +49,7 @@ in
serviceConfig.ExecStart = "@${kernel.virtualboxGuestAdditions}/bin/VBoxService VBoxService --foreground";
};
services.xserver.videoDrivers = mkOverride 50 [ "virtualbox" ];
services.xserver.videoDrivers = mkOverride 50 [ "virtualbox" "modesetting" ];
services.xserver.config =
''
@@ -77,7 +77,7 @@ in
KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666"
# Allow systemd dependencies on vboxguest.
KERNEL=="vboxguest", TAG+="systemd"
SUBSYSTEM=="misc", KERNEL=="vboxguest", TAG+="systemd"
'';
};

View File

@@ -64,6 +64,11 @@ in rec {
(all nixos.tests.installer.btrfsSubvols)
(all nixos.tests.installer.btrfsSubvolDefault)
(all nixos.tests.boot.biosCdrom)
#(all nixos.tests.boot.biosUsb) # disabled due to issue #15690
(all nixos.tests.boot.uefiCdrom)
(all nixos.tests.boot.uefiUsb)
(all nixos.tests.boot-stage1)
(all nixos.tests.ecryptfs)
(all nixos.tests.ipv6)
(all nixos.tests.kde4)
#(all nixos.tests.lightdm)

View File

@@ -196,12 +196,14 @@ in rec {
tests.bittorrent = callTest tests/bittorrent.nix {};
tests.blivet = callTest tests/blivet.nix {};
tests.boot = callSubTests tests/boot.nix {};
tests.boot-stage1 = callTest tests/boot-stage1.nix {};
tests.cadvisor = hydraJob (import tests/cadvisor.nix { system = "x86_64-linux"; });
tests.chromium = callSubTests tests/chromium.nix {};
tests.cjdns = callTest tests/cjdns.nix {};
tests.containers = callTest tests/containers.nix {};
tests.docker = hydraJob (import tests/docker.nix { system = "x86_64-linux"; });
tests.dockerRegistry = hydraJob (import tests/docker-registry.nix { system = "x86_64-linux"; });
tests.ecryptfs = callTest tests/ecryptfs.nix {};
tests.etcd = hydraJob (import tests/etcd.nix { system = "x86_64-linux"; });
tests.ec2-nixops = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-nixops;
tests.ec2-config = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-config;
@@ -211,7 +213,6 @@ in rec {
#tests.gitlab = callTest tests/gitlab.nix {};
tests.gnome3 = callTest tests/gnome3.nix {};
tests.gnome3-gdm = callTest tests/gnome3-gdm.nix {};
tests.grsecurity = callTest tests/grsecurity.nix {};
tests.i3wm = callTest tests/i3wm.nix {};
tests.installer = callSubTests tests/installer.nix {};
tests.influxdb = callTest tests/influxdb.nix {};

View File

@@ -25,7 +25,7 @@ in
{
name = "bittorrent";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ iElectric eelco chaoflow rob wkennington ];
maintainers = [ iElectric eelco chaoflow rbvermaa wkennington ];
};
nodes =

155
nixos/tests/boot-stage1.nix Normal file
View File

@@ -0,0 +1,155 @@
import ./make-test.nix ({ pkgs, ... }: {
name = "boot-stage1";
machine = { config, pkgs, lib, ... }: {
boot.extraModulePackages = let
compileKernelModule = name: source: pkgs.runCommand name rec {
inherit source;
kdev = config.boot.kernelPackages.kernel.dev;
kver = config.boot.kernelPackages.kernel.modDirVersion;
ksrc = "${kdev}/lib/modules/${kver}/build";
} ''
echo "obj-m += $name.o" > Makefile
echo "$source" > "$name.c"
make -C "$ksrc" M=$(pwd) modules
install -vD "$name.ko" "$out/lib/modules/$kver/$name.ko"
'';
# This spawns a kthread which just waits until it gets a signal and
# terminates if that is the case. We want to make sure that nothing during
# the boot process kills any kthread by accident, like what happened in
# issue #15226.
kcanary = compileKernelModule "kcanary" ''
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/sched.h>
struct task_struct *canaryTask;
static int kcanary(void *nothing)
{
allow_signal(SIGINT);
allow_signal(SIGTERM);
allow_signal(SIGKILL);
while (!kthread_should_stop()) {
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout_interruptible(msecs_to_jiffies(100));
if (signal_pending(current)) break;
}
return 0;
}
static int kcanaryInit(void)
{
kthread_run(&kcanary, NULL, "kcanary");
return 0;
}
static void kcanaryExit(void)
{
kthread_stop(canaryTask);
}
module_init(kcanaryInit);
module_exit(kcanaryExit);
'';
in lib.singleton kcanary;
boot.initrd.kernelModules = [ "kcanary" ];
boot.initrd.extraUtilsCommands = let
compile = name: source: pkgs.runCommand name { inherit source; } ''
mkdir -p "$out/bin"
echo "$source" | gcc -Wall -o "$out/bin/$name" -xc -
'';
daemonize = name: source: compile name ''
#include <stdio.h>
#include <unistd.h>
void runSource(void) {
${source}
}
int main(void) {
if (fork() > 0) return 0;
setsid();
runSource();
return 1;
}
'';
mkCmdlineCanary = { name, cmdline ? "", source ? "" }: (daemonize name ''
char *argv[] = {"${cmdline}", NULL};
execvp("${name}-child", argv);
'') // {
child = compile "${name}-child" ''
#include <stdio.h>
#include <unistd.h>
int main(void) {
${source}
while (1) sleep(1);
return 1;
}
'';
};
copyCanaries = with lib; concatMapStrings (canary: ''
${optionalString (canary ? child) ''
copy_bin_and_libs "${canary.child}/bin/${canary.child.name}"
''}
copy_bin_and_libs "${canary}/bin/${canary.name}"
'');
in copyCanaries [
# Simple canary process which just sleeps forever and should be killed by
# stage 2.
(daemonize "canary1" "while (1) sleep(1);")
# We want this canary process to try mimicking a kthread using a cmdline
# with a zero length so we can make sure that the process is properly
# killed in stage 1.
(mkCmdlineCanary {
name = "canary2";
source = ''
FILE *f;
f = fopen("/run/canary2.pid", "w");
fprintf(f, "%d\n", getpid());
fclose(f);
'';
})
# This canary process mimicks a storage daemon, which we do NOT want to be
# killed before going into stage 2. For more on root storage daemons, see:
# https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/
(mkCmdlineCanary {
name = "canary3";
cmdline = "@canary3";
})
];
boot.initrd.postMountCommands = ''
canary1
canary2
canary3
# Make sure the pidfile of canary 2 is created so that we still can get
# its former pid after the killing spree starts next within stage 1.
while [ ! -s /run/canary2.pid ]; do sleep 0.1; done
'';
};
testScript = ''
$machine->waitForUnit("multi-user.target");
$machine->succeed('test -s /run/canary2.pid');
$machine->fail('pgrep -a canary1');
$machine->fail('kill -0 $(< /run/canary2.pid)');
$machine->succeed('pgrep -a -f \'^@canary3$\''');
$machine->succeed('pgrep -a -f \'^kcanary$\''');
'';
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ aszlig ];
})

View File

@@ -1,9 +1,14 @@
{ lib, ... }:
{ users.extraUsers = lib.singleton
{ users.extraUsers.alice =
{ isNormalUser = true;
name = "alice";
description = "Alice Foobar";
password = "foobar";
};
users.extraUsers.bob =
{ isNormalUser = true;
description = "Bob Foobar";
password = "foobar";
};
}

81
nixos/tests/ecryptfs.nix Normal file
View File

@@ -0,0 +1,81 @@
import ./make-test.nix ({ pkgs, ... }:
{
name = "ecryptfs";
machine = { config, pkgs, ... }: {
imports = [ ./common/user-account.nix ];
boot.kernelModules = [ "ecryptfs" ];
security.pam.enableEcryptfs = true;
environment.systemPackages = with pkgs; [ keyutils ];
};
testScript = ''
$machine->waitForUnit("default.target");
# Set alice up with a password and a home
$machine->succeed("(echo foobar; echo foobar) | passwd alice");
$machine->succeed("chown -R alice.users ~alice");
# Migrate alice's home
my $out = $machine->succeed("echo foobar | ecryptfs-migrate-home -u alice");
$machine->log("ecryptfs-migrate-home said: $out");
# Log alice in (ecryptfs passwhrase is wrapped during first login)
$machine->sleep(2); # urgh: wait for username prompt
$machine->sendChars("alice\n");
$machine->sleep(1);
$machine->sendChars("foobar\n");
$machine->sleep(2);
$machine->sendChars("logout\n");
$machine->sleep(2);
# Why do I need to do this??
$machine->succeed("su alice -c ecryptfs-umount-private");
$machine->sleep(1);
$machine->fail("mount | grep ecryptfs"); # check that encrypted home is not mounted
# Show contents of the user keyring
my $out = $machine->succeed("su - alice -c 'keyctl list \@u'");
$machine->log("keyctl unlink said: " . $out);
# Log alice again
$machine->sendChars("alice\n");
$machine->sleep(1);
$machine->sendChars("foobar\n");
$machine->sleep(2);
# Create some files in encrypted home
$machine->succeed("su alice -c 'touch ~alice/a'");
$machine->succeed("su alice -c 'echo c > ~alice/b'");
# Logout
$machine->sendChars("logout\n");
$machine->sleep(2);
# Why do I need to do this??
$machine->succeed("su alice -c ecryptfs-umount-private");
$machine->sleep(1);
# Check that the filesystem is not accessible
$machine->fail("mount | grep ecryptfs");
$machine->succeed("su alice -c 'test \! -f ~alice/a'");
$machine->succeed("su alice -c 'test \! -f ~alice/b'");
# Log alice once more
$machine->sendChars("alice\n");
$machine->sleep(1);
$machine->sendChars("foobar\n");
$machine->sleep(2);
# Check that the files are there
$machine->sleep(1);
$machine->succeed("su alice -c 'test -f ~alice/a'");
$machine->succeed("su alice -c 'test -f ~alice/b'");
$machine->succeed(qq%test "\$(cat ~alice/b)" = "c"%);
# Catch https://github.com/NixOS/nixpkgs/issues/16766
$machine->succeed("su alice -c 'ls -lh ~alice/'");
$machine->sendChars("logout\n");
'';
})

View File

@@ -32,6 +32,7 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/Terminal/);
$machine->sleep(20);
$machine->screenshot("screen");

View File

@@ -27,6 +27,7 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
$machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/Terminal/);
$machine->mustSucceed("timeout 900 bash -c 'journalctl -f|grep -m 1 \"GNOME Shell started\"'");
$machine->sleep(10);

View File

@@ -13,6 +13,8 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = { nodes, ... }: ''
$machine->waitForX;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/first configuration/);
$machine->sleep(1);
$machine->screenshot("started");

View File

@@ -5,9 +5,11 @@ with import ../lib/qemu-flags.nix;
with pkgs.lib;
let
# increase timeout due to IO on build machines
udevsettleCmd = "udevadm settle --timeout=600";
# The configuration to install.
makeConfig = { grubVersion, grubDevice, grubIdentifier
makeConfig = { bootLoader, grubVersion, grubDevice, grubIdentifier
, extraConfig, forceGrubReinstallCount ? 0
}:
pkgs.writeText "configuration.nix" ''
@@ -18,15 +20,21 @@ let
<nixpkgs/nixos/modules/testing/test-instrumentation.nix>
];
boot.loader.grub.version = ${toString grubVersion};
${optionalString (grubVersion == 1) ''
boot.loader.grub.splashImage = null;
''}
boot.loader.grub.device = "${grubDevice}";
boot.loader.grub.extraConfig = "serial; terminal_output.serial";
boot.loader.grub.fsIdentifier = "${grubIdentifier}";
${optionalString (bootLoader == "grub") ''
boot.loader.grub.version = ${toString grubVersion};
${optionalString (grubVersion == 1) ''
boot.loader.grub.splashImage = null;
''}
boot.loader.grub.device = "${grubDevice}";
boot.loader.grub.extraConfig = "serial; terminal_output.serial";
boot.loader.grub.fsIdentifier = "${grubIdentifier}";
boot.loader.grub.configurationLimit = 100 + ${toString forceGrubReinstallCount};
boot.loader.grub.configurationLimit = 100 + ${toString forceGrubReinstallCount};
''}
${optionalString (bootLoader == "gummiboot") ''
boot.loader.gummiboot.enable = true;
''}
hardware.enableAllFirmware = lib.mkForce false;
@@ -42,7 +50,7 @@ let
# disk, and then reboot from the hard disk. It's parameterized with
# a test script fragment `createPartitions', which must create
# partitions and filesystems.
testScriptFun = { createPartitions, grubVersion, grubDevice
testScriptFun = { bootLoader, createPartitions, grubVersion, grubDevice
, grubIdentifier, preBootCommands, extraConfig
}:
let
@@ -50,7 +58,8 @@ let
qemuFlags =
(if system == "x86_64-linux" then "-m 768 " else "-m 512 ") +
(optionalString (system == "x86_64-linux") "-cpu kvm64 ");
hdFlags = ''hda => "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", '';
hdFlags = ''hda => "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", ''
+ optionalString (bootLoader == "gummiboot") ''bios => "${pkgs.OVMF}/FV/OVMF.fd", '';
in
''
$machine->start;
@@ -62,7 +71,7 @@ let
$machine->waitForUnit("nixos-manual");
# Wait for hard disks to appear in /dev
$machine->succeed("udevadm settle");
$machine->succeed("${udevsettleCmd}");
# Partition the disk.
${createPartitions}
@@ -73,7 +82,7 @@ let
$machine->succeed("cat /mnt/etc/nixos/hardware-configuration.nix >&2");
$machine->copyFileFromHost(
"${ makeConfig { inherit grubVersion grubDevice grubIdentifier extraConfig; } }",
"${ makeConfig { inherit bootLoader grubVersion grubDevice grubIdentifier extraConfig; } }",
"/mnt/etc/nixos/configuration.nix");
# Perform the installation.
@@ -97,7 +106,11 @@ let
# Did /boot get mounted?
$machine->waitForUnit("local-fs.target");
$machine->succeed("test -e /boot/grub");
${if bootLoader == "grub" then
''$machine->succeed("test -e /boot/grub");''
else
''$machine->succeed("test -e /boot/loader/loader.conf");''
}
# Check whether /root has correct permissions.
$machine->succeed("stat -c '%a' /root") =~ /700/ or die;
@@ -114,7 +127,7 @@ let
# We need to a writable nix-store on next boot.
$machine->copyFileFromHost(
"${ makeConfig { inherit grubVersion grubDevice grubIdentifier extraConfig; forceGrubReinstallCount = 1; } }",
"${ makeConfig { inherit bootLoader grubVersion grubDevice grubIdentifier extraConfig; forceGrubReinstallCount = 1; } }",
"/etc/nixos/configuration.nix");
# Check whether nixos-rebuild works.
@@ -132,7 +145,7 @@ let
${preBootCommands}
$machine->waitForUnit("multi-user.target");
$machine->copyFileFromHost(
"${ makeConfig { inherit grubVersion grubDevice grubIdentifier extraConfig; forceGrubReinstallCount = 2; } }",
"${ makeConfig { inherit bootLoader grubVersion grubDevice grubIdentifier extraConfig; forceGrubReinstallCount = 2; } }",
"/etc/nixos/configuration.nix");
$machine->succeed("nixos-rebuild boot >&2");
$machine->shutdown;
@@ -148,8 +161,9 @@ let
makeInstallerTest = name:
{ createPartitions, preBootCommands ? "", extraConfig ? ""
, grubVersion ? 2, grubDevice ? "/dev/vda"
, grubIdentifier ? "uuid", enableOCR ? false, meta ? {}
, bootLoader ? "grub" # either "grub" or "gummiboot"
, grubVersion ? 2, grubDevice ? "/dev/vda", grubIdentifier ? "uuid"
, enableOCR ? false, meta ? {}
}:
makeTest {
inherit enableOCR;
@@ -183,6 +197,8 @@ let
virtualisation.qemu.diskInterface =
if grubVersion == 1 then "scsi" else "virtio";
boot.loader.gummiboot.enable = mkIf (bootLoader == "gummiboot") true;
hardware.enableAllFirmware = mkForce false;
# The test cannot access the network, so any packages we
@@ -198,8 +214,8 @@ let
pkgs.perlPackages.XMLLibXML
pkgs.perlPackages.ListCompare
]
++ optional (grubVersion == 1) pkgs.grub
++ optionals (grubVersion == 2) [ pkgs.grub2 pkgs.grub2_efi ];
++ optional (bootLoader == "grub" && grubVersion == 1) pkgs.grub
++ optionals (bootLoader == "grub" && grubVersion == 2) [ pkgs.grub2 pkgs.grub2_efi ];
nix.binaryCaches = mkForce [ ];
};
@@ -207,8 +223,8 @@ let
};
testScript = testScriptFun {
inherit createPartitions preBootCommands grubVersion
grubDevice grubIdentifier extraConfig;
inherit bootLoader createPartitions preBootCommands
grubVersion grubDevice grubIdentifier extraConfig;
};
};
@@ -227,7 +243,7 @@ in {
"parted /dev/vda mklabel msdos",
"parted /dev/vda -- mkpart primary linux-swap 1M 1024M",
"parted /dev/vda -- mkpart primary ext2 1024M -1s",
"udevadm settle",
"${udevsettleCmd}",
"mkswap /dev/vda1 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/vda2",
@@ -236,6 +252,29 @@ in {
'';
};
# Simple GPT/UEFI configuration using Gummiboot with 3 partitions: ESP, swap & root filesystem
simpleUefiGummiboot = makeInstallerTest "simpleUefiGummiboot"
{ createPartitions =
''
$machine->succeed(
"parted /dev/vda mklabel gpt",
"parted -s /dev/vda -- mkpart ESP fat32 1M 50MiB", # /boot
"parted -s /dev/vda -- set 1 boot on",
"parted -s /dev/vda -- mkpart primary linux-swap 50MiB 1024MiB",
"parted -s /dev/vda -- mkpart primary ext2 1024MiB -1MiB", # /
"udevadm settle",
"mkswap /dev/vda2 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/vda3",
"mount LABEL=nixos /mnt",
"mkfs.vfat -n BOOT /dev/vda1",
"mkdir -p /mnt/boot",
"mount LABEL=BOOT /mnt/boot",
);
'';
bootLoader = "gummiboot";
};
# Same as the previous, but now with a separate /boot partition.
separateBoot = makeInstallerTest "separateBoot"
{ createPartitions =
@@ -245,7 +284,7 @@ in {
"parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
"parted /dev/vda -- mkpart primary linux-swap 50MB 1024M",
"parted /dev/vda -- mkpart primary ext2 1024M -1s", # /
"udevadm settle",
"${udevsettleCmd}",
"mkswap /dev/vda2 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/vda3",
@@ -266,7 +305,7 @@ in {
"parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
"parted /dev/vda -- mkpart primary linux-swap 50MB 1024M",
"parted /dev/vda -- mkpart primary ext2 1024M -1s", # /
"udevadm settle",
"${udevsettleCmd}",
"mkswap /dev/vda2 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/vda3",
@@ -289,7 +328,7 @@ in {
"parted /dev/vda -- set 1 lvm on",
"parted /dev/vda -- mkpart primary 2048M -1s", # PV2
"parted /dev/vda -- set 2 lvm on",
"udevadm settle",
"${udevsettleCmd}",
"pvcreate /dev/vda1 /dev/vda2",
"vgcreate MyVolGroup /dev/vda1 /dev/vda2",
"lvcreate --size 1G --name swap MyVolGroup",
@@ -310,7 +349,7 @@ in {
"parted /dev/vda -- mkpart primary ext2 1M 50MB", # /boot
"parted /dev/vda -- mkpart primary linux-swap 50M 1024M",
"parted /dev/vda -- mkpart primary 1024M -1s", # LUKS
"udevadm settle",
"${udevsettleCmd}",
"mkswap /dev/vda2 -L swap",
"swapon -L swap",
"modprobe dm_mod dm_crypt",
@@ -352,12 +391,12 @@ in {
. " mkpart logical 1603M 3103M" # md0 (root), second device
. " mkpart logical 3104M 3360M" # md1 (swap), first device
. " mkpart logical 3361M 3617M", # md1 (swap), second device
"udevadm settle",
"${udevsettleCmd}",
"ls -l /dev/vda* >&2",
"cat /proc/partitions >&2",
"mdadm --create --force /dev/md0 --metadata 1.2 --level=raid1 --raid-devices=2 /dev/vda5 /dev/vda6",
"mdadm --create --force /dev/md1 --metadata 1.2 --level=raid1 --raid-devices=2 /dev/vda7 /dev/vda8",
"udevadm settle",
"${udevsettleCmd}",
"mkswap -f /dev/md1 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/md0",
@@ -365,11 +404,13 @@ in {
"mkfs.ext3 -L boot /dev/vda1",
"mkdir /mnt/boot",
"mount LABEL=boot /mnt/boot",
"udevadm settle",
"mdadm -W /dev/md0", # wait for sync to finish; booting off an unsynced device tends to fail
"mdadm -W /dev/md1",
"${udevsettleCmd}",
);
'';
preBootCommands = ''
$machine->start;
$machine->fail("dmesg | grep 'immediate safe mode'");
'';
};
# Test a basic install using GRUB 1.
@@ -380,7 +421,7 @@ in {
"parted /dev/sda mklabel msdos",
"parted /dev/sda -- mkpart primary linux-swap 1M 1024M",
"parted /dev/sda -- mkpart primary ext2 1024M -1s",
"udevadm settle",
"${udevsettleCmd}",
"mkswap /dev/sda1 -L swap",
"swapon -L swap",
"mkfs.ext3 -L nixos /dev/sda2",

View File

@@ -41,11 +41,13 @@ import ./make-test.nix ({ pkgs, ... }: {
pkgs.kde4.kdenetwork
pkgs.kde4.kdetoys
pkgs.kde4.kdewebdev
pkgs.xorg.xmessage
];
};
testScript = ''
testScript = ''
$machine->waitUntilSucceeds("pgrep plasma-desktop");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/plasma-desktop/);
# Check that logging in has given the user ownership of devices.
@@ -62,7 +64,7 @@ import ./make-test.nix ({ pkgs, ... }: {
$machine->sleep(10);
$machine->screenshot("screen");
$machine->screenshot("screen");
'';
})

View File

@@ -22,6 +22,8 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->waitForText(qr/${user.description}/);
$machine->screenshot("lightdm");
$machine->sendChars("${user.password}\n");
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow("^IceWM ");
'';
})

View File

@@ -10,7 +10,7 @@ import ./make-test.nix ({ pkgs, withFirewall, ... }:
{
name = "nat${if withFirewall then "WithFirewall" else "Standalone"}";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ eelco chaoflow rob wkennington ];
maintainers = [ eelco chaoflow rbvermaa wkennington ];
};
nodes =

View File

@@ -24,6 +24,8 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = { nodes, ... }: ''
startAll;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow("^IceWM ");
'';
})

View File

@@ -23,6 +23,8 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = { nodes, ... }: ''
startAll;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow("^IceWM ");
'';
})

View File

@@ -15,11 +15,15 @@ import ./make-test.nix ({ pkgs, ...} : {
services.xserver.displayManager.auto.user = "alice";
services.xserver.desktopManager.xfce.enable = true;
environment.systemPackages = [ pkgs.xorg.xmessage ];
};
testScript =
''
$machine->waitForX;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/xfce4-panel/);
$machine->sleep(10);
@@ -30,5 +34,9 @@ import ./make-test.nix ({ pkgs, ...} : {
$machine->waitForWindow(qr/Terminal/);
$machine->sleep(10);
$machine->screenshot("screen");
# Ensure that the X server does proper access control.
$machine->mustFail("su - bob -c 'DISPLAY=:0.0 xmessage Foo'");
$machine->mustFail("su - bob -c 'DISPLAY=:0 xmessage Foo'");
'';
})

View File

@@ -1,15 +1,15 @@
{ stdenv, fetchurl, wxGTK, pkgconfig, gettext, gtk, glib, zlib, perl, intltool,
{ stdenv, fetchurl, wxGTK30, pkgconfig, gettext, gtk, glib, zlib, perl, intltool,
libogg, libvorbis, libmad, alsaLib, libsndfile, soxr, flac, lame, fetchpatch,
expat, libid3tag, ffmpeg, soundtouch /*, portaudio - given up fighting their portaudio.patch */
}:
stdenv.mkDerivation rec {
version = "2.1.1";
version = "2.1.2";
name = "audacity-${version}";
src = fetchurl {
url = "https://github.com/audacity/audacity/archive/Audacity-${version}.tar.gz";
sha256 = "15c5ff7ac1c0b19b08f4bdcb0f4988743da2f9ed3fab41d6f07600e67cb9ddb6";
sha256 = "1ggr6g0mk36rqj7ahsg8b0b1r9kphwajzvxgn43md263rm87n04h";
};
patches = [(fetchpatch {
name = "new-ffmpeg.patch";
@@ -25,11 +25,11 @@ stdenv.mkDerivation rec {
rm -r lib-src-rm/
'';
configureFlags = "--with-libsamplerate";
configureFlags = [ "--with-libsamplerate" ];
buildInputs = [
pkgconfig gettext wxGTK gtk expat alsaLib
libsndfile soxr libid3tag
pkgconfig gettext wxGTK30 expat alsaLib
libsndfile soxr libid3tag gtk
ffmpeg libmad lame libvorbis flac soundtouch
]; #ToDo: detach sbsms

View File

@@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, libpulseaudio, gtkmm, libglademm
, dbus_glib, gconfmm, intltool }:
, dbus_glib, GConf, gconfmm, intltool }:
stdenv.mkDerivation rec {
name = "paprefs-0.9.10";
@@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig intltool ];
propagatedUserEnvPkgs = [ GConf ];
configureFlags = [ "--disable-lynx" ];
meta = with stdenv.lib; {

View File

@@ -28,11 +28,11 @@
# handle that.
stdenv.mkDerivation rec {
name = "qmmp-0.8.4";
name = "qmmp-0.9.9";
src = fetchurl {
url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
sha256 = "1ld69xypyak3lzwmfvzbxsyd4fl841aaq0gmkfa7jpavbdlggydf";
sha256 = "1wv4kbjq50xflhrl1jjf1hm3rrw599xkd72dwm4rscm0sdvzhnc1";
};
buildInputs =

View File

@@ -1,11 +1,12 @@
{ fetchurl, stdenv, dpkg, xorg, alsaLib, makeWrapper, openssl_1_0_1, freetype
{ fetchurl, stdenv, dpkg, xorg, alsaLib, makeWrapper, openssl, freetype
, glib, pango, cairo, atk, gdk_pixbuf, gtk, cups, nspr, nss, libpng, GConf
, libgcrypt, udev, fontconfig, dbus, expat, ffmpeg_0_10, curl, zlib, gnome }:
assert stdenv.system == "x86_64-linux";
let
version = "1.0.26.125.g64dc8bc6-14";
# Please update the stable branch!
version = "1.0.38.171.g5e1cd7b2-22";
deps = [
alsaLib
@@ -50,26 +51,33 @@ stdenv.mkDerivation {
src =
fetchurl {
url = "http://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
sha256 = "09wanpml2a6k8asfc0pd56n7fia37amgsplsan1qdh6dwdzr3rv5";
sha256 = "0mhrbcw92g11czwcclnbwz1pk1jgap4xlya7dqsrcyb50azmv450";
};
buildInputs = [ dpkg makeWrapper ];
unpackPhase = "true";
unpackPhase = ''
runHook preUnpack
dpkg-deb -x $src .
runHook postUnpack
'';
configurePhase = "runHook preConfigure; runHook postConfigure";
buildPhase = "runHook preBuild; runHook postBuild";
installPhase =
''
runHook preInstall
libdir=$out/lib/spotify
mkdir -p $libdir
dpkg-deb -x $src $out
mv $out/usr/* $out/
rm -rf $out/usr
mv ./usr/* $out/
# Work around Spotify referring to a specific minor version of
# OpenSSL.
ln -s ${openssl_1_0_1}/lib/libssl.so $libdir/libssl.so.1.0.0
ln -s ${openssl_1_0_1}/lib/libcrypto.so $libdir/libcrypto.so.1.0.0
ln -s ${openssl}/lib/libssl.so $libdir/libssl.so.1.0.0
ln -s ${openssl}/lib/libcrypto.so $libdir/libcrypto.so.1.0.0
ln -s ${nspr}/lib/libnspr4.so $libdir/libnspr4.so
ln -s ${nspr}/lib/libplc4.so $libdir/libplc4.so
@@ -95,6 +103,8 @@ stdenv.mkDerivation {
ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
"$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
done
runHook postInstall
'';
dontStrip = true;
@@ -104,6 +114,6 @@ stdenv.mkDerivation {
homepage = https://www.spotify.com/;
description = "Play music from the Spotify music service";
license = stdenv.lib.licenses.unfree;
maintainers = with stdenv.lib.maintainers; [ eelco ftrvxmtrx ];
maintainers = with stdenv.lib.maintainers; [ eelco ftrvxmtrx sheenobu ];
};
}

View File

@@ -0,0 +1,43 @@
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
name = "svox-${version}";
version = "2016-01-25";
src = fetchgit {
url = "https://android.googlesource.com/platform/external/svox";
rev = "dfb9937746b1828d093faf3b1494f9dc403f392d";
sha256 = "1gkfj5avikzmr2vv8bhf83n15jcbz4phz5j13l0qnh3gjzh4f1bk";
};
postPatch = ''
cd pico
'';
buildPhase = ''
cd lib
for i in *.c; do
$CC -O2 -fPIC -c -o ''${i%.c}.o $i
done
$CC -shared -o libttspico.so *.o
cd ..
'';
installPhase = ''
install -Dm755 lib/libttspico.so $out/lib/libttspico.so
mkdir -p $out/include
cp lib/*.h $out/include
mkdir -p $out/share/pico/lang
cp lang/*.bin $out/share/pico/lang
'';
NIX_CFLAGS_COMPILE = [ "-include stdint.h" ];
meta = with stdenv.lib; {
description = "Text-to-speech engine";
homepage = https://android.googlesource.com/platform/external/svox;
platforms = platforms.linux;
license = licenses.asl20;
maintainers = with maintainers; [ abbradar ];
};
}

View File

@@ -5,6 +5,8 @@ source $stdenv/setup
# *our* versions, not the ones found in the system, as it would do by default.
# On other platforms, this appears to be unnecessary.
preConfigure() {
./autogen.sh
for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in; do
substituteInPlace $i --replace /bin/pwd pwd
done

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchgit, ncurses, xlibsWrapper, libXaw, libXpm, Xaw3d
{ stdenv, lib, fetchurl, ncurses, xlibsWrapper, libXaw, libXpm, Xaw3d
, pkgconfig, gettext, libXft, dbus, libpng, libjpeg, libungif
, libtiff, librsvg, texinfo, gconf, libxml2, imagemagick, gnutls
, alsaLib, cairo, acl, gpm, AppKit, Foundation, libobjc
, alsaLib, cairo, acl, gpm, AppKit, CoreWLAN, Kerberos, GSS, ImageIO
, autoconf, automake
, withX ? !stdenv.isDarwin
, withGTK3 ? false, gtk3 ? null
@@ -23,17 +23,16 @@ let
in
stdenv.mkDerivation rec {
name = "emacs-25.0.50-1b5630e";
name = "emacs-25.0.92";
builder = ./builder.sh;
src = fetchgit {
url = "git://git.savannah.gnu.org/emacs.git";
rev = "1b5630eb47d3f4bade09708c958ab006b83b3fc0";
sha256 = "0n3qbri84akmy7ad1pbv89j4jn4x9pnkz0p4nbhh6m1c37cbz58l";
src = fetchurl {
url = "ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.92.tar.xz";
sha256 = "13jnj1js2l90k4yk219r3z67fff90r6mniprsp0sgip2kaak75y2";
};
patches = stdenv.lib.optionals stdenv.isDarwin [
patches = lib.optionals stdenv.isDarwin [
./at-fdcwd.patch
];
@@ -52,11 +51,7 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional (withX && withGTK3) gtk3
++ stdenv.lib.optional (stdenv.isDarwin && withX) cairo;
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit Foundation libobjc
];
NIX_LDFLAGS = stdenv.lib.optional stdenv.isDarwin
"/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation";
propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit GSS ImageIO ];
configureFlags =
if stdenv.isDarwin
@@ -81,18 +76,16 @@ stdenv.mkDerivation rec {
mv nextstep/Emacs.app $out/Applications
'';
doCheck = !stdenv.isDarwin;
# https://github.com/NixOS/nixpkgs/issues/13573
doCheck = false;
meta = with stdenv.lib; {
description = "GNU Emacs 25 (pre), the extensible, customizable text editor";
homepage = http://www.gnu.org/software/emacs/;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ chaoflow lovek323 simons the-kenny ];
maintainers = with maintainers; [ chaoflow lovek323 simons the-kenny jwiegley ];
platforms = platforms.all;
# So that Exuberant ctags is preferred
priority = 1;
longDescription = ''
GNU Emacs is an extensible, customizable text editorand more. At its
core is an interpreter for Emacs Lisp, a dialect of the Lisp

View File

@@ -0,0 +1,52 @@
{ stdenv, fetchgit, emacs, texinfo, texLive, perl, which, automake, enableDoc ? false }:
stdenv.mkDerivation (rec {
name = "ProofGeneral-HEAD";
src = fetchgit {
url = "https://github.com/ProofGeneral/PG.git";
rev = "64ca55b1593fff8cfffab89c51d7e92c1a68dc27";
sha256 = "1gz13fagxf0w2zgp7qd0w328qiv97295jwq7ra8vj61pdfi8xklj";
};
buildInputs = [ emacs texinfo perl which ] ++ stdenv.lib.optional enableDoc texLive;
prePatch =
'' sed -i "Makefile" \
-e "s|^\(\(DEST_\)\?PREFIX\)=.*$|\1=$out|g ; \
s|/sbin/install-info|install-info|g"
sed -i "bin/proofgeneral" -e's/which/type -p/g'
# @image{ProofGeneral} fails, so remove it.
sed -i '94d' doc/PG-adapting.texi
sed -i '96d' doc/ProofGeneral.texi
'';
patches = [ ./pg.patch ];
preBuild = ''
make clean;
'';
installPhase =
if enableDoc
then
# Copy `texinfo.tex' in the right place so that `texi2pdf' works.
'' cp -v "${automake}/share/"automake-*/texinfo.tex doc
make install install-doc
''
else "make install";
meta = {
description = "Proof General, an Emacs front-end for proof assistants";
longDescription = ''
Proof General is a generic front-end for proof assistants (also known as
interactive theorem provers), based on the customizable text editor Emacs.
'';
homepage = http://proofgeneral.inf.ed.ac.uk;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix; # arbitrary choice
};
})

View File

@@ -146,124 +146,148 @@ in
{
android-studio = buildAndroidStudio rec {
android-studio = let buildNumber = "143.2821654"; in buildAndroidStudio rec {
name = "android-studio-${version}";
version = "2.0.0.0";
build = "143.2443734";
version = "2.1.1.0";
build = "AI-${buildNumber}";
description = "Android development environment based on IntelliJ IDEA";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}" +
"/android-studio-ide-${build}-linux.zip";
sha256 = "0j6bi87hb5jxjwfhfya64s673vdkdslsqc6sqa4zl97sabvafk2w";
"/android-studio-ide-${buildNumber}-linux.zip";
sha256 = "1zxxzyhny7j4vzlydrhwz3g8l8zcml84mhkcf5ckx8xr50j3m101";
};
};
clion = buildClion rec {
name = "clion-${version}";
version = "1.2.4";
build = "143.1186";
version = "1.2.5";
build = "CL-143.2370.46";
description = "C/C++ IDE. New. Intelligent. Cross-platform";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/cpp/${name}.tar.gz";
sha256 = "0asjgfshbximjk6i57fz3d2ykby5qw5x6nhw91cpzrzszc59dmm2";
sha256 = "0ll1rcnnbd1if6x5rp3qw35lvp5zdzmvyg9n1lha89i34xiw36jp";
};
};
idea14-community = buildIdea rec {
name = "idea-community-${version}";
version = "14.1.6";
build = "IC-141.3056.4";
version = "14.1.7";
build = "IC-141.3058.30";
description = "Integrated Development Environment (IDE) by Jetbrains, community edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz";
sha256 = "157969b37sbafby1r1gva2xm3a3y0dgj7pisgxmk8k1d5rgncvil";
sha256 = "1i4mdjm9dd6zvxlpdgd3bqg45ir0cfc9hl55cdc0hg5qwbz683fz";
};
};
idea-community = buildIdea rec {
name = "idea-community-${version}";
version = "15.0.4";
build = "IC-143.2287";
version = "2016.2";
build = "IC-162.1121";
description = "Integrated Development Environment (IDE) by Jetbrains, community edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz";
sha256 = "05kah5cx7x3rlaaxkvbbm7g8jvy9hc38q4jv7j5r9rkxd38fslvn";
sha256 = "164x4l0q31zpc1jh3js1xx9y6afrzsshmnkx1mwhmq8qmvzc4w32";
};
};
idea14-ultimate = buildIdea rec {
name = "idea-ultimate-${version}";
version = "14.1.7";
build = "IU-141.3058.30";
description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz";
sha256 = "a2259249f6e7bf14ba17b0af90a18d24d9b4670af60d24f0bb51af2f62500fc2";
};
};
idea15-ultimate = buildIdea rec {
name = "idea-ultimate-${version}";
version = "15.0.6";
build = "IU-143.2370.31";
description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz";
sha256 = "012aap2qn0jx4x34bdv9ivrsr86vvf683srb5vpj27hc4l6rw6ll";
};
};
idea-ultimate = buildIdea rec {
name = "idea-ultimate-${version}";
version = "15.0.4";
build = "IU-143.2287";
version = "2016.2";
build = "IU-162.1121";
description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz";
sha256 = "0416y7krrak1q5pb8axskdamy06nfxmn4hj7421j8jaz0nc50dn4";
sha256 = "10hiqh6ccmai2cnc5p72vqjcz9kzmmcpn0hy5v514h4mq6vs4zk4";
};
};
ruby-mine = buildRubyMine rec {
name = "ruby-mine-${version}";
version = "7.1.2";
build = "141.1119";
version = "7.1.5";
build = "RM-141.3058.29";
description = "The Most Intelligent Ruby and Rails IDE";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz";
sha256 = "1gz14lv5jhnrnshp7lkx3wgrdf0y60abs4q78yhv2x9dc6ld1gmj";
sha256 = "04fcxj1xlap9mxmwf051s926p2darlj5kwl4lms2gy5d8b2lhd5l";
};
};
pycharm-community = buildPycharm rec {
name = "pycharm-community-${version}";
version = "5.0.3";
build = "143.1559.1";
version = "2016.1.3";
build = "PC-145.971.25";
description = "PyCharm Community Edition";
license = stdenv.lib.licenses.asl20;
src = fetchurl {
url = "https://download.jetbrains.com/python/${name}.tar.gz";
sha256 = "1xb3qxhl8ln488v0hmjqkzpyypm7wh941c7syi4cs7plbdp6w4c2";
sha256 = "1ks7crrfnhzkdxban2hh2pnr986vqwmac5zybmb1ighcyamhdi4q";
};
};
pycharm-professional = buildPycharm rec {
name = "pycharm-professional-${version}";
version = "5.0.3";
build = "143.1559.1";
version = "2016.1.3";
build = "PY-145.971.25";
description = "PyCharm Professional Edition";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/python/${name}.tar.gz";
sha256 = "1v2g9867nn3id1zfbg4zwj0c0z9d72rl9c1dz6vs2c4j0y4gy9xl";
sha256 = "1rn0i5qbvfjbl4v571ngmyslispibcq5ab0fb7xjl38vr1y417f2";
};
};
phpstorm = buildPhpStorm rec {
name = "phpstorm-${version}";
version = "10.0.1";
build = "PS-143.382";
version = "10.0.4";
build = "PS-143.2370.33";
description = "Professional IDE for Web and PHP developers";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz";
sha256 = "12bqil8pxzmbv8a7pxn2529ph2x7szr3wvkvgxaisydm463kpdk8";
sha256 = "0fi042zvjpg5pn2mnhj3bbrdkl1b9vmhpf2l6ca4nr0rhjjv7dsm";
};
};
webstorm = buildWebStorm rec {
name = "webstorm-${version}";
version = "10.0.4";
build = "141.1550";
version = "10.0.5";
build = "WS-141.3058.35";
description = "Professional IDE for Web and JavaScript development";
license = stdenv.lib.licenses.unfree;
src = fetchurl {
url = "https://download.jetbrains.com/webstorm/WebStorm-${version}.tar.gz";
sha256 = "171i544ssvjnbr1vq6ncxlj38swsygacavsa427qa4s5wzyvdipj";
sha256 = "0a5s6f99wyql5pgjl94pf4ljdbviik3b8dbr1s6b7c6jn1gk62ic";
};
};

View File

@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, cmake, gettext, glib, libmsgpack, libtermkey
, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, ncurses, perl
, pkgconfig, unibilium, makeWrapper, vimUtils
, libtool, libuv, lpeg, lua, luajit, luaMessagePack, luabitop, man, ncurses
, perl, pkgconfig, unibilium, makeWrapper, vimUtils
, withPython ? true, pythonPackages, extraPythonPackages ? []
, withPython3 ? true, python3Packages, extraPython3Packages ? []
@@ -96,7 +96,10 @@ let
LUA_CPATH="${lpeg}/lib/lua/${lua.luaversion}/?.so;${luabitop}/lib/lua/5.2/?.so";
LUA_PATH="${luaMessagePack}/share/lua/5.1/?.lua";
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
preConfigure = ''
substituteInPlace runtime/autoload/man.vim \
--replace /usr/bin/man ${man}/bin/man
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH=${jemalloc}/lib
substituteInPlace src/nvim/CMakeLists.txt --replace " util" ""
'';

View File

@@ -13,7 +13,7 @@ in
stdenv.mkDerivation rec {
name = "imagemagick-${version}";
version = "6.9.2-0";
version = "6.9.5-2";
src = fetchurl {
urls = [
@@ -21,9 +21,11 @@ stdenv.mkDerivation rec {
# the original source above removes tarballs quickly
"http://distfiles.macports.org/ImageMagick/ImageMagick-${version}.tar.xz"
];
sha256 = "17ir8bw1j7g7srqmsz3rx780sgnc21zfn0kwyj78iazrywldx8h7";
sha256 = "09h3rpr1jnzd7ipy5d16r2gi0bwg4hk5khwzv4cyhv1xzs8pk7pj";
};
patches = [ ./imagetragick.patch ];
outputs = [ "out" "doc" ];
enableParallelBuilding = true;

View File

@@ -0,0 +1,8 @@
--- a/config/policy.xml
+++ b/config/policy.xml
67a68,72
> <policy domain="coder" rights="none" pattern="EPHEMERAL" />
> <policy domain="coder" rights="none" pattern="URL" />
> <policy domain="coder" rights="none" pattern="HTTPS" />
> <policy domain="coder" rights="none" pattern="MVG" />
> <policy domain="coder" rights="none" pattern="MSL" />

View File

@@ -4,7 +4,8 @@
, python, pygtk, libart_lgpl, libexif, gettext, xorg, wrapPython }:
stdenv.mkDerivation rec {
name = "gimp-2.8.16";
name = "gimp-${version}";
version = "2.8.18";
# This declarations for `gimp-with-plugins` wrapper,
# (used for determining $out/lib/gimp/${majorVersion}/ paths)
@@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "http://download.gimp.org/pub/gimp/v2.8/${name}.tar.bz2";
sha256 = "1dsgazia9hmab8cw3iis7s69dvqyfj5wga7ds7w2q5mms1xqbqwm";
sha256 = "0halh6sl3d2j9gahyabj6h6r3yyldcy7sfb4qrfazpkqqr3j5p9r";
};
buildInputs =

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