Compare commits

...

882 Commits

Author SHA1 Message Date
Susan Potter
f22817d8d2 kibana: fix 4.6.0 for i686
(cherry picked from commit c3e57f3095)
2016-10-01 22:37:10 -04:00
Tuomas Tynkkynen
ca6dbe9ed6 openjpeg_2_0: Fix hash
(cherry picked from commit 82c0aa7d85)
2016-10-02 00:46:56 +03:00
Michael Alan Dorman
8d8796141b Fix borgbackup dependency on lz4
(cherry picked from commit 739b058779)
2016-10-02 00:25:38 +03:00
aszlig
5526517da9 nixos/lib/testing: Fix unsetting $xchg
Regression introduced by 4dcb685af9.

Unsetting the environment variable shortly before using it is not going
to end up very well, so let's just filter out the variable from the
output of export and unset it shortly afterwards.

This fixes the runInMachine NixOS test.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit b4e2b6bc6a)
2016-10-01 21:26:43 +03:00
Domen Kožar
eaa160cd35 fix manual syntax 2016-10-01 14:55:15 +02:00
Domen Kožar
557b2625d7 Document new NixOS services 2016-10-01 14:45:07 +02:00
Domen Kožar
db6a20b1a1 document #16779 2016-10-01 14:45:07 +02:00
Domen Kožar
140f82a8d9 Revert "mesa_drivers: work around #16779"
This reverts commit 4cf7839305.

Breaks kde5 test. http://hydra.nixos.org/build/41374761
2016-10-01 14:45:07 +02:00
Tuomas Tynkkynen
6014df7ea9 perlPackages.DBIxClass: Add upstream patch to fix build
Apply an upstream commit destined for next release like Debian is doing:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835731

Should fix http://hydra.nixos.org/build/40815848

(cherry picked from commit c08a84186f)
2016-10-01 13:50:25 +02:00
Jörg Thalheim
5447c50198 Merge pull request #18735 from vdemeester/add-go17-to-16-09
go_1_7: 1.7 -> 1.7.1 on release 16.09
2016-10-01 01:27:17 +02:00
Thomas Tuegel
34008984f0 dropbox: 11.4.20 -> 11.4.21 2016-09-30 14:44:58 -05:00
Eelco Dolstra
651274de33 Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-09-30 21:36:20 +02:00
Jörg Thalheim
fcd02ec20e containers: fix dynamic hash lookup
we want the content of attribute as a key:
b9df84cd4f broke this

(cherry picked from commit d6ce2e4bcb)
2016-09-30 21:33:26 +02:00
Eelco Dolstra
7b762ea29e Add a simple test for Samba
(cherry picked from commit 328c2f0081)
2016-09-30 21:31:11 +02:00
Eelco Dolstra
0b37191f76 samba: Use startup notification
This ensures synchronous unit start.

(cherry picked from commit e993506d4c)
2016-09-30 21:31:07 +02:00
Eelco Dolstra
3a44d9e548 samba: Use bundled tdb and ldb
(cherry picked from commit 3b89a6e020)
2016-09-30 21:31:04 +02:00
Vladimír Čunát
8d6cea8fd6 samba4: fix crashes by bundling tevent
See #19013 for details and discussion.

(cherry picked from commit e9687611b6)
2016-09-30 21:30:55 +02:00
Eelco Dolstra
05705774e2 samba: 4.3.8 -> 4.3.11
(cherry picked from commit 50e2161ee1)
2016-09-30 21:29:15 +02:00
Eelco Dolstra
38bab1470c ldb: 1.1.26 -> 1.1.27
Also, strip the modules to prevent a dependency on gcc.

(cherry picked from commit c3bc8b2996)
2016-09-30 21:29:11 +02:00
Eelco Dolstra
44df9f6f81 tevent: 0.9.28 -> 0.9.30
(cherry picked from commit dbb9e2e847)
2016-09-30 21:29:05 +02:00
Eelco Dolstra
04fa74bb54 tdb: 1.3.8 -> 1.3.11
(cherry picked from commit 8b7f83a146)
2016-09-30 21:29:01 +02:00
Eelco Dolstra
6adfb5fccb talloc: 2.1.5 -> 2.1.8
(cherry picked from commit 498af0bbb4)
2016-09-30 21:28:53 +02:00
Eelco Dolstra
7c9b9ae7e2 Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-09-30 21:28:44 +02:00
Nikolay Amiantov
9587a856ba switch-to-configuration: fix restart of socket activated services
This fixes two bugs:

* When socket activation is detected, the service itself is added to stop-start list instead of its sockets.
* When service is marked to restart instead of stop (`StopIfChanged = no`) we don't need to restart sockets.

(cherry picked from commit d37458ad06)
2016-09-30 18:33:37 +03:00
Nikolay Amiantov
5598db747f systemd-journald service: restart instead of stop and start
Also restart when configuration is changed.

(cherry picked from commit ff0b8b2225)
2016-09-30 18:33:18 +03:00
Eelco Dolstra
314826acde linux: 4.4.22 -> 4.4.23
(cherry picked from commit 613a12a8bd)
2016-09-30 17:29:28 +02:00
Eelco Dolstra
baf9c40afb Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-09-30 17:29:09 +02:00
Eelco Dolstra
256b6b2ae1 Fix "undefined variable ‘device’" using autoFormat
(cherry picked from commit 7e8eb6a7c3)
2016-09-30 17:27:19 +02:00
Eelco Dolstra
085742dc0c AnyEvent::CacheDNS: Disable tests
This doesn't work in a sandbox because it accesses the network.

(cherry picked from commit 590c164858)
2016-09-30 17:27:12 +02:00
Rob Vermaas
acf91fd6ef dd-agent: D'oh, removing duplicate requests dep. 2016-09-30 13:23:49 +00:00
Shea Levy
e5bd75f3e6 supplicant: Make the device pull in the supplicant service.
The udev rule should do this. Not sure why it doesn't.

Fixes #19029.

(cherry picked from commit b692e06686)
2016-09-30 09:23:03 -04:00
Peter Simons
7e8aeb4e38 Update Haskell package set to LTS 7.1 from 'master'.
This update was generated by hackage2nix v2.0.2-9-gc0b597f from Hackage revision
9ca479bb22.
2016-09-30 15:21:52 +02:00
Rob Vermaas
a6493ce4bd Fix dd-agent 2016-09-30 13:15:07 +00:00
Peter Simons
6549f1ab9d Document removal of LTS Haskell package sets in 16.09 release notes.
This patch closes https://github.com/NixOS/nixpkgs/issues/14897.
2016-09-30 14:54:09 +02:00
rushmorem
49497b647f torcs: 1.3.5 -> 1.3.7
This change also wraps `torcs` with `mesa` to fix the runtime
crush due to this dependancy which was missing.

(cherry picked from commit d332b914ce)
2016-09-30 14:25:34 +02:00
Graham Christensen
b3be1c7e48 Revert "lightdm: obbey services.xserver.{window/desktop}Manager.default"
This reverts commit 6a12ff4cbd.

See: https://github.com/NixOS/nixpkgs/pull/19054
Closes #19054
2016-09-30 08:18:49 -04:00
Eelco Dolstra
b6c9c0258b Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-09-30 13:01:38 +02:00
Domen Kožar
51cf16f4b4 changelog for #18011 2016-09-30 12:48:09 +02:00
Domen Kožar
14c16f2fdb changelog for #18365 2016-09-30 12:47:00 +02:00
Domen Kožar
1eaad0150c changelog for hydra package/module 2016-09-30 12:22:11 +02:00
Domen Kožar
b3a5bc5f57 changelog for #9523 2016-09-30 12:21:15 +02:00
Domen Kožar
e293a85e24 changelog for #14148 2016-09-30 12:19:52 +02:00
Domen Kožar
1ff2b10f28 changelog for gnupg bump, fixes #18293 2016-09-30 12:00:33 +02:00
Eelco Dolstra
f32c4bfecd Add stdenvNoCC
This is a standard environment that doesn't contain a C/C++
compiler. This is mostly to prevent trivial builders like runCommand
and substituteAll from pulling in gcc for simple configuration changes
on NixOS.

(cherry picked from commit 0cb16a6955)
2016-09-30 11:39:20 +02:00
Eelco Dolstra
9ea5e25cd8 kde4: Get rid of some Nepomuk cruft by default
(cherry picked from commit 020e88704a)
2016-09-30 11:37:18 +02:00
Eelco Dolstra
5ba3965c54 kde4: Allow disabling dependency on MariaDB
This reduces the runtime closure of a KDE4 system by ~172 MiB.

(cherry picked from commit c2495261a8)
2016-09-30 11:37:13 +02:00
Eelco Dolstra
0d065c7a36 kde4: Eliminate dev outputs from the closure
Obviously there are more improvements that can be done here,
especially moving headers to .dev, but that's not entirely trivial and
probably not worth it since kde4 is old.

(cherry picked from commit d65af13533)
2016-09-30 11:37:05 +02:00
Eelco Dolstra
d04c31c18e qt-4: Use multiple outputs
This is a pretty modest use of multiple outputs - mainly to eliminate
-dev outputs from Qt's closure.

(cherry picked from commit a5ee4d2c78)
2016-09-30 11:36:37 +02:00
Eelco Dolstra
9b66beccd7 gst-plugins-base: Use multiple outputs
(cherry picked from commit 5df3ec85d8)
2016-09-30 11:36:27 +02:00
Vladimír Čunát
456c3e8062 llvm-3.9: move shared libLLVM to a separate output
Fixes #18840: too large closure of mesa_drivers.

Tested atop 16.09:
 - clang compiles a hello-world app;
 - mesa seems to link OK;
 - ispc builds.

Size comparison:
 - 80 MB of full llvm-3.7 on 16.03;
 - 200 MB of full llvm-3.9 on 16.09 before this patch;
 - 50 MB of libLLVM after this commit.

(cherry picked from commit d2965a7d85)
2016-09-30 11:36:05 +02:00
Eelco Dolstra
9f613a0570 xinput: Remove libXfixes.dev from the closure
(cherry picked from commit b6f3e08019)
2016-09-30 11:35:38 +02:00
Eelco Dolstra
bba2caaaae gstreamer: Use multiple outputs
(cherry picked from commit 7c31bc7e89)
2016-09-30 11:35:25 +02:00
Eelco Dolstra
2933a64bba virtuoso: Use multiple outputs
(cherry picked from commit 39181d4418)
2016-09-30 11:35:03 +02:00
Eelco Dolstra
043e9010d3 polkit_qt4: Use multiple outputs
(cherry picked from commit 711b536934)
2016-09-30 11:34:50 +02:00
Eelco Dolstra
18f7bc8dfd mesa_noglu: Replace some more hard links with symlinks
By deduplicating libXvMC*.so and {r600,radionsi}_drv_video.so, this
reduces the size of the drivers output from 63.3 MiB to 49.8 MiB.

(cherry picked from commit 28a659974a)
2016-09-30 11:34:36 +02:00
Eelco Dolstra
80cc3c3bd8 cmake-2.8: Fix build
The use of multiple outputs in libarchive broke it. Since this is an
ancient version of cmake, let's fix it by just using
--no-system-libarchive.

(cherry picked from commit e03d1ababa)
2016-09-30 11:34:21 +02:00
Eelco Dolstra
e895f7f9c2 libdrm: Don't depend on udev
The configure script checks for it, but the only use (in
libkms/Makefile.am) is commented out.

(cherry picked from commit 5d8c547460)
2016-09-30 11:34:08 +02:00
Eelco Dolstra
70ccb4efd6 lz4: Don't install static library
(cherry picked from commit b87d5abafd)
2016-09-30 11:34:02 +02:00
Eelco Dolstra
1d46ace683 audit: Move z/OS plugin to a separate output
This prevents the NixOS base system from pulling in openldap,
cyris-sasl, and libkrb5.

(cherry picked from commit ff7368e944)
2016-09-30 11:33:59 +02:00
Eelco Dolstra
8be2039463 libmicrohttpd: Move out info docs
Putting the micro back in libmicrohttpd.

(cherry picked from commit 8c27103d32)
2016-09-30 11:33:55 +02:00
Eelco Dolstra
27f5bd0a52 DBD::SQLite: 1.48 -> 1.50
(cherry picked from commit d94c072f8e)
2016-09-30 11:33:52 +02:00
Eelco Dolstra
2490fada28 libedit: 20150325-3.1 -> 20160903-3.1
Also, use a separate "dev" output. This is mostly to remove
ncurses.dev from openssh's runtime closure.

(cherry picked from commit 2583c70e91)
2016-09-30 11:33:35 +02:00
Eelco Dolstra
8b91d0e630 libshout: Use multiple outputs
(cherry picked from commit 56400e34d4)
2016-09-30 11:32:31 +02:00
Eelco Dolstra
5ad53fa7ed libqalculate: 0.9.9 -> 0.9.10
Also, use multiple outputs.

(cherry picked from commit 05d34c9d2c)
2016-09-30 11:32:22 +02:00
Eelco Dolstra
2a7cbefdb1 libksba: Use multiple outputs
(cherry picked from commit dc8ebab12f)
2016-09-30 11:32:16 +02:00
Eelco Dolstra
396c3ff34b libtunepimp: Use multiple outputs
(cherry picked from commit cc8b44b103)
2016-09-30 11:32:11 +02:00
Eelco Dolstra
2bc8f13a7c libofa: Use multiple outputs
(cherry picked from commit f84806d84f)
2016-09-30 11:32:05 +02:00
Eelco Dolstra
dc48723697 libarchive: Use multiple outputs
(cherry picked from commit 37f2679e73)
2016-09-30 11:31:48 +02:00
Eelco Dolstra
f6822c4d30 libraw: Use multiple outputs
(cherry picked from commit 8b31b91a22)
2016-09-30 11:28:45 +02:00
Peter Hoeg
f7215c9b5b dbus: add socket activation but do not enable it
The following changes are included:

1) install user unit files from upstream dbus
2) use absolute paths to config for --system and --session instances
3) make socket activation of user units configurable

There has been a number of PRs to address this, so this one does the
bare minimum, which is to make the functionality available and
configurable but defaults to off.

Related PRs:
 - #18382
 - #18222
2016-09-30 11:26:54 +02:00
Eelco Dolstra
7500894082 Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-09-30 11:26:26 +02:00
Eelco Dolstra
564be60dad systemd: Apply various upstream bug fixes
This includes the fix for the assertion failure in
https://github.com/systemd/systemd/issues/4234.

(cherry picked from commit 8b09ba32d3)
2016-09-30 11:26:10 +02:00
Eelco Dolstra
b323744837 Some release notes updates
(cherry picked from commit a9166d143d)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-30 11:25:24 +02:00
Tuomas Tynkkynen
f714cda163 usbredir: Fix 32-bit build
Avoid these warnings from being errors:

usbredirhost.c: In function 'usbredirhost_can_write_iso_package':
usbredirhost.c:1023:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
             DEBUG("START dropping isoc packets %lu buffer > %lu hi threshold",
                   ^
usbredirhost.c:1023:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
             DEBUG("START dropping isoc packets %lu buffer > %lu hi threshold",
                   ^
usbredirhost.c:1028:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
             DEBUG("STOP dropping isoc packets %lu buffer < %lu low threshold",
                   ^
usbredirhost.c:1028:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
             DEBUG("STOP dropping isoc packets %lu buffer < %lu low threshold",
                   ^
usbredirhost.c: In function 'usbredirhost_set_iso_threshold':
usbredirhost.c:1162:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
     DEBUG("higher threshold is %lu bytes | lower threshold is %lu bytes",
           ^
usbredirhost.c:1162:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
     DEBUG("higher threshold is %lu bytes | lower threshold is %lu bytes",

I think in all of these cases, the incorrect format modifier just causes
wrong debug prints on i686.

(cherry picked from commit b3af42011b)
2016-09-30 12:22:20 +03:00
Tuomas Tynkkynen
5abb36baa0 freerdp: Switch main attribute to freerdpUnstable
Not much point having it as a broken package. Fixes eval error of KDE4
test.

(cherry picked from commit bd05f4ff6d)
2016-09-30 12:01:30 +03:00
Lancelot SIX
f3f0a604fa pythonPackages.django_1_8: 1.8.14 -> 1.8.15
This is a security release.

It fixes CVE-2016-7401.

See https://www.djangoproject.com/weblog/2016/sep/26/security-releases/
for upstream announcement.

(cherry picked from commit 7e37d4bbf8)
2016-09-29 23:54:59 +02:00
Lancelot SIX
8368831543 pythonPackages.django_1_9: 1.9.9 -> 1.9.10
This is a security release.

It fixes CVE-2016-7401.

See https://www.djangoproject.com/weblog/2016/sep/26/security-releases/
for upstream announcement.

(cherry picked from commit dd553b6ef5)
2016-09-29 23:54:59 +02:00
Franz Pletz
bf041b3e9b cryptopp: 5.6.2 -> 5.6.4
Fix CVE-2016-3995. #18856

Remove broken flag. #19040

cc #19009

(cherry picked from commit eb6a1c9238)
2016-09-29 23:43:03 +02:00
Tuomas Tynkkynen
8111a89835 nixos-install: Bug fix for root password not being asked
Since some changes to the setuid wrappers, there is a symlink involved
and it doesn't resolve correctly inside the chroot. Do the check inside
the chroot to make it work again.

(cherry picked from commit a34ec1517f)
2016-09-29 23:21:21 +03:00
Eelco Dolstra
f0dbca03b8 pam_usb: Fix evaluation
(cherry picked from commit fe9e5f9f55)
2016-09-29 20:38:43 +02:00
Eelco Dolstra
3851322da2 cudatoolkit: Fix building dependent packages
- Set a cmake flag to allow cmake to find CUDA automatically.

- Pass -D_FORCE_INLINES to work around

    /nix/store/8sl4jfs3nq0pkq4gg655s3axrxdx7z29-glibc-2.24-dev/include/string.h: In function 'void* __mempcpy_inline(void*, const void*, size_t)':
    /nix/store/8sl4jfs3nq0pkq4gg655s3axrxdx7z29-glibc-2.24-dev/include/string.h:650:42: error: 'memcpy' was not declared in this scope

  https://github.com/BVLC/caffe/issues/4046

This fixes OpenSubdiv and Blender.

(cherry picked from commit 5ade8fff79)
2016-09-29 20:38:43 +02:00
Eelco Dolstra
1f6fd508ed opensubdiv: 3.0.4 -> 3.0.5
(cherry picked from commit 09f58645ca)
2016-09-29 20:38:43 +02:00
Eelco Dolstra
d5a47a77b6 nix: Enable install check
Looks like this got disabled accidentally in
ec5b66eb4a.

(cherry picked from commit 6a9fb8b9e0)
2016-09-29 20:38:43 +02:00
Eelco Dolstra
7d67325976 runInMachine: Unset another variable
Thanks @cstrahan.

(cherry picked from commit 4dcb685af9)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
d97b17b136 gdrivefs: 0.14.3 -> 0.14.8
(cherry picked from commit 5d670ed65c)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
569d531e60 runInMachine: Support passAsFile
We need to rewrite attributes passed via files to their location in
/tmp/xchg in the VM. Otherwise functions like runCommand don't work.

(cherry picked from commit 75baee8523)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
392374235b minio-client: Init at 20160821
(cherry picked from commit 039ac38d1e)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
68ce118c55 minio: Init at 20160821
(cherry picked from commit 2597562d42)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
2cda536ea5 go: Remove unused version
(cherry picked from commit 587348743c)
2016-09-29 20:38:42 +02:00
Eelco Dolstra
e574e7201f firewall: Order before sysinit
Suggested by @aszlig.

(cherry picked from commit e090701e2d)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
773dfd7a3a Fix starting the firewall
Probably as a result of 992c514a20, it
was not being started anymore.

My understanding of systemd.special(7) (section "Special passive
system units") is that the firewall should want network-pre.target,
rather than the other way around (not very intuitive...). This in
itself does not cause the firewall to be wanted, which is why the
wanted-by relationship with multi-user.target is necessary.

http://hydra.nixos.org/build/39965589
(cherry picked from commit abdc5961c3)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
fed1753bae Make the NFSv4 tests release-critical
We can probably drop NFSv3...

(cherry picked from commit d8625f6d25)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
546a5c6225 nfs module: Fix dependency on statd and idmapd
http://hydra.nixos.org/build/40038016
(cherry picked from commit 58b028f9ee)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
af2d57a8b6 nfs module: Improve descriptions
(cherry picked from commit 015c984537)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
14df509f3e openresolv: 3.7.0 -> 3.8.1
(cherry picked from commit d0857bb1e6)
2016-09-29 20:38:41 +02:00
Eelco Dolstra
5f9ef33800 Enable the runuser command from util-linux
Fixes #14701.

(cherry picked from commit 98102ebd92)
2016-09-29 20:38:40 +02:00
Eelco Dolstra
48874b5a9e Fix infinite recursion introduced by f3c32cb2c1
(cherry picked from commit 520cb14f16)
2016-09-29 20:38:40 +02:00
Eelco Dolstra
6f78babb2f Make the default fonts conditional on services.xserver.enable
We were pulling in 44 MiB of fonts in the default configuration, which
is a bit excessive for headless configurations like EC2
instances. Note that dejavu_minimal ensures that remote X11-forwarded
applications still have a basic font regardless.

(cherry picked from commit 5b5c2fb9c0)
2016-09-29 20:38:40 +02:00
Eelco Dolstra
3c97ddc01d Let services.openssh.forwardX11 imply programs.ssh.setXAuthLocation
(cherry picked from commit f3c32cb2c1)
2016-09-29 20:38:40 +02:00
Eelco Dolstra
77bc2bb60a shadow: Separate man output
This removes ~2 MiB from the minimal config.

(cherry picked from commit e8315cb1ca)
2016-09-29 20:38:40 +02:00
Eelco Dolstra
e7d3fe5018 Make it possible to disable "info"
(cherry picked from commit ab49ebe6fa)
2016-09-29 20:30:26 +02:00
Eelco Dolstra
83c40dd971 modules/profiles/minimal.nix: Disable "man"
(cherry picked from commit 5e5df88457)
2016-09-29 20:30:21 +02:00
Eelco Dolstra
705bba2000 no-x-libs.nix: Ensure that dbus doesn't use X11
It appears that packageOverrides no longer overrides aliases, so
aliases like

  dbus_tools = self.dbus.out;
  dbus_daemon = self.dbus.daemon;

now use the old, non-overriden version of dbus. That seems like a
pretty serious regression in general, but for this particular problem,
I've fixed it by replacing dbus_daemon by dbus.daemon and dbus_tools
by dbus.

(cherry picked from commit ba70ce28ae)
2016-09-29 20:30:05 +02:00
Eelco Dolstra
397764035e mariadb: Don't install mysqlbug
This causes a dependency on gcc.

(cherry picked from commit 33da338bde)
2016-09-29 20:29:42 +02:00
Eelco Dolstra
eb8e1d16b5 google-talk-plugin: Use mesa_noglu instead of mesa
(cherry picked from commit 62f055af47)
2016-09-29 20:25:02 +02:00
Eelco Dolstra
29e57d8d3f glxinfo: Drop dependency on mesa-noglu.dev and glu.dev
(cherry picked from commit 9354e0e518)
2016-09-29 20:24:14 +02:00
Eelco Dolstra
451a468d34 Move useSetUID to pam_usb, the only place where it's used
(cherry picked from commit c5ddb7dd56)
2016-09-29 20:23:57 +02:00
Eelco Dolstra
1077c83cd0 Add a warning about using requireFile
(cherry picked from commit 030e20f759)
2016-09-29 20:23:54 +02:00
Eelco Dolstra
97953b455c subversion: Remove openssl.dev from the runtime closure
(cherry picked from commit 81447b6a59)
2016-09-29 20:19:19 +02:00
Eelco Dolstra
642e5bd611 xscreensaver: Drop runtime dependency on mesa_noglu.dev and glu.dev
(cherry picked from commit cd901eac5f)
2016-09-29 20:19:02 +02:00
Eelco Dolstra
962738a045 apr-util: Drop dependency on openssl.dev in out
(cherry picked from commit 6abfb2bd64)
2016-09-29 20:18:24 +02:00
Eelco Dolstra
0f1d8f63da Fix unknown licenses
(cherry picked from commit 85c070e85a)
2016-09-29 20:18:03 +02:00
Eelco Dolstra
fdd68a73ab Net::Amazon::S3: 0.60 -> 0.80
(cherry picked from commit 6776882b30)
2016-09-29 20:17:57 +02:00
Joachim Fasting
8cc072d601 nixos/ids: remove unused connman uid
The static connman uid is not referenced anywhere in NixOS.

(cherry picked from commit 66f50a7631)
2016-09-29 20:17:41 +02:00
Eelco Dolstra
7db7d27e99 nixos-container: Syntax fixes
Get rid of the "or null" stuff. Also change 'cfg . "foo"' to 'cfg.foo'.

Also fixed what appears to be an actual bug: in postStartScript,
cfg.attribute (where attribute is a function argument) should be
cfg.${attribute}.

(cherry picked from commit b9df84cd4f)
2016-09-29 20:15:14 +02:00
Eelco Dolstra
9614a32f73 virtualbox: Drop dontPatchELF hack
However, this also requires ad8f31df7f
to get rid of gcc_multi.out in the closure.

(cherry picked from commit ddd41a509a)
2016-09-29 20:14:35 +02:00
Eelco Dolstra
85d4480e3e strigi: Fix libraries being installed in $out/$out/lib
Since we don't strip binaries in $out/$out, this was causing strigi to
have a dependency on gcc in its closure.

(cherry picked from commit 3143f39e5a)
2016-09-29 20:14:22 +02:00
Eelco Dolstra
068018b672 cmake-2_8 -> cmake_2_8
(cherry picked from commit 1dd3ece50e)
2016-09-29 20:14:08 +02:00
Eelco Dolstra
54ed5a3226 google-talk-plugin: Prevent a dependency on gcc
(cherry picked from commit da3e6d6eda)
2016-09-29 20:13:46 +02:00
Eelco Dolstra
5eba6ee3cf toDerivation: Provide "out" and "outputName" attributes
(cherry picked from commit 1c043e0749)
2016-09-29 20:13:35 +02:00
Graham Christensen
608b3edfc7 Merge pull request #19056 from grahamc/java7-1609
oraclejdk7: mark as broken since it is end of life (16.09)
2016-09-29 08:51:31 -04:00
Graham Christensen
e452ef563d freerdp: Mark stable as broken
re: https://github.com/NixOS/nixpkgs/issues/19075 #19075
re: https://lwn.net/Vulnerabilities/702121/
re: https://lwn.net/Vulnerabilities/604034/

Other distributions seem to have switched to Unstable instead.

(cherry picked from commit 4c0b07ce1e)
2016-09-29 08:00:46 -04:00
Graham Christensen
851efbb1f9 mesos: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit 337eb4d027)
2016-09-28 16:50:39 -04:00
Graham Christensen
1484177133 openstack-neutron: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit 86c9b471a6)
2016-09-28 16:50:39 -04:00
Graham Christensen
e2649d6a82 opera: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit d92fe31e04)
2016-09-28 16:50:38 -04:00
Graham Christensen
7767b18506 moodle: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit e2688e072d)
2016-09-28 16:50:38 -04:00
Graham Christensen
655017d5ca asterisk: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit 990c2be008)
2016-09-28 16:50:38 -04:00
Graham Christensen
41fbcc2400 cryptopp: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit 32ed834387)
2016-09-28 16:50:38 -04:00
Graham Christensen
f90e982321 redmine: mark as broken
https://github.com/NixOS/nixpkgs/issues/18856
(cherry picked from commit f9c9c1dac8)
2016-09-28 16:50:37 -04:00
Graham Christensen
e43481d9bb oraclejdk7: mark as broken since it is end of life 2016-09-28 16:42:02 -04:00
Vladimír Čunát
e8dedc887a samba3: apply security patches from upstream
/cc #18856.

(cherry picked from commit f85dd8161d)
2016-09-28 21:02:05 +02:00
Vladimír Čunát
31f93601d5 Merge branch 'release-16.09' into staging-16.09 2016-09-28 20:26:20 +02:00
Eelco Dolstra
7fe41bb791 samba: 4.3.8 -> 4.3.11
(cherry picked from commit 50e2161ee1)
Picked only the update part. It contains multiple vulnerability fixes.
/cc #18856.
2016-09-28 20:19:41 +02:00
Joachim Fasting
d77b9f293f grsecurity: 4.7.4-201609211951 -> 4.7.5-201609261522
(cherry picked from commit 98a9d815e0)
2016-09-28 20:03:20 +02:00
Viktor Stanchev
6f21a368b8 factorio: 0.13.13 -> 0.13.20
(cherry picked from commit 4ed934313f)
Upstream removes older versions.
2016-09-28 20:02:57 +02:00
Vladimír Čunát
4cf7839305 mesa_drivers: work around #16779
This works around missing newer wayland symbols when running
some older packages on a system with updated opengl drivers.
We have no good solution yet, unfortunately. This commit might
break packages that rely on new wayland features, but those
should be a minority.

(cherry picked from commit 7a003eb9d5)
2016-09-28 19:56:16 +02:00
Graham Christensen
5a75cbf3b4 linux-3.10: fix build by upstream patch
(cherry picked from commit ff5cf3abff)
It actually only fixes i686.
2016-09-28 19:19:18 +02:00
Vladimír Čunát
5e86b8a1dd nixos system path: add rsync back
I was used anyway, and we did this on master
(I don't think 16.09 should be "ahead of" master). See:
https://github.com/NixOS/nixpkgs/commit/0aa75206705afc
2016-09-28 18:14:48 +02:00
Vladimír Čunát
6b79dbb763 libxslt: drop patch already included in release
I didn't test building on MinGW, but this commit can't make it worse.

(cherry picked from commit 06d8dd3ed4)
2016-09-28 11:28:14 -04:00
Jörg Thalheim
115dbef7b6 libxslt: 1.1.28 -> 1.1.29
(cherry picked from commit dafd585f9d)
2016-09-28 11:28:12 -04:00
Jörg Thalheim
d9e2cd551d zsh: do not export HISTFILE, HISTSIZE, SAVEHIST
Every interactive zsh sources /etc/zshrc (see STARTUP/SHUTDOWN FILES in zshautll(1))
Therefor every interactive zsh process will respect the content of these variables.
Using `export` will also lead to child processes inheriting this value.
This leads to problems, if other interactive shells are spawned such as bash,
because they use an incomptabible history format (without timestamps).
There seems to be also cases, where the local HISTSIZE in ~/.zshrc is
not sourced but /etc/zshrc, which leads to history truncation in other shells.

(cherry picked from commit 9049ab1a3b)
2016-09-28 15:37:18 +01:00
Graham Christensen
70b42e2a37 moinmoin: 1.9.7 -> 1.9.8
(cherry picked from commit 63d08188c1)
2016-09-28 10:24:19 -04:00
Franz Pletz
2e422e28ed libressl_2_4: 2.4.2 -> 2.4.3
(cherry picked from commit f749a16662)
2016-09-28 15:16:20 +02:00
Franz Pletz
10b6ea98c6 libressl_2_3: 2.3.7 -> 2.3.8
(cherry picked from commit 6b8aed6649)
2016-09-28 15:16:20 +02:00
Vladimír Čunát
e7ccb0cc54 libsepol: temporary fixup after flex security update
/cc #18909.

(cherry picked from commit 3e1afeaa5b)
2016-09-28 11:13:18 +02:00
Franz Pletz
da5eb83903 dhcp: 4.3.3 -> 4.3.4
Uses shipped version of libbind now.

Fix CVE-2016-2774 & CVE-2015-8605.

cc #18856

(cherry picked from commit d5adf2cc0b)
2016-09-28 11:04:24 +02:00
Franz Pletz
a4a7685843 bind: enable seccomp on linux
(cherry picked from commit 96b1d15e0c)
2016-09-28 11:04:23 +02:00
Graham Christensen
5d6f10d38f tomcat7: 7.0.70 -> 7.0.72 for CVE-2016-5388 (HTTPoxy)
(cherry picked from commit 387cb2db9a)
2016-09-27 21:11:59 -04:00
danbst
096cad80cd tomcat: add danbst as maintainer
(cherry picked from commit a01d4ee3f4)
2016-09-27 21:11:59 -04:00
danbst
3d0cd8e694 tomcat: 7.0.68 -> 7.0.70, 8.0.32 -> 8.0.37, init 8.5.5, init 9.0.0.M10
(cherry picked from commit 8511ddc89a)
2016-09-27 21:11:58 -04:00
danbst
ede58ee5f9 tomcat: split default webapps to separate output (~6M)
(cherry picked from commit 0c2d943529)
2016-09-27 21:11:58 -04:00
danbst
edf1db7bf6 tomcat: cleanup package with callPackages
(cherry picked from commit 39ad7a9e60)
2016-09-27 21:11:58 -04:00
Graham Christensen
bca531a34f rpm: 4.12.0 -> 4.13.0-rc1 for CVEs
Null pointer deref & out of bound reads. See: https://lwn.net/Vulnerabilities/685287/

Fedora is shipping the rc1 as well.

re: https://github.com/NixOS/nixpkgs/pull/18975
(cherry picked from commit dad5651bd4)
2016-09-27 21:07:53 -04:00
Franz Pletz
9ae2d38770 pidgin: 2.10.11 -> 2.11.0
Fix CVE-2016-1000030 & CVE-2016-2379.

cc #18856.

(cherry picked from commit b5ab13a5ff)
2016-09-28 02:28:50 +02:00
Franz Pletz
10490dad1f farstream: 0.2.4 -> 0.2.8
(cherry picked from commit 137827bacb)
2016-09-28 02:28:32 +02:00
Nikolay Amiantov
d361cad721 steam-runtime: add libXxf86vm
(cherry picked from commit 334abbc323)
2016-09-28 01:28:31 +03:00
Graham Christensen
99e643ecc1 mediawiki: 1.23.13 -> 1.27.1
(cherry picked from commit 8504237863)
2016-09-27 16:33:40 -04:00
Graham Christensen
ba6b8fbb76 jasper: Apply patches for CVES
(cherry picked from commit 3a59a84715)
2016-09-27 15:26:39 -04:00
Rickard Nilsson
7ed2dcde38 grafana: 3.1.0 -> 3.1.1
(cherry picked from commit e551b3a524)
2016-09-27 21:03:23 +02:00
Thomas Tuegel
6c34d85fb4 spotify: unpack into temporary directory to fix output permissions
(cherry picked from commit f2806a09c4)
2016-09-27 13:49:15 -05:00
Thomas Tuegel
96f4683bb8 spotify: 1.0.37.152 -> 1.0.38.171
(cherry picked from commit 8e83bb4220)
2016-09-27 13:49:14 -05:00
Frederik Rietdijk
0e6a509683 sabnzbd: fixup
Forgot to remove the colon when changing from --prefix to --set.

(cherry picked from commit f3d7afa86d)
2016-09-27 19:51:09 +02:00
Peter Simons
0f9ec23a68 bind: cosmetic fix for Emacs' syntax highlighting
(cherry picked from commit 8aaf610d4d)
2016-09-27 19:31:46 +02:00
Peter Simons
23389ce2cb bind: update to version 9.10.4-P3 to fix CVE-2016-2776
(cherry picked from commit 7a5ff282aa)
2016-09-27 19:31:44 +02:00
Frederik Rietdijk
1aaa664d38 sabnzbd: 0.7.20 -> 1.1.0
(cherry picked from commit a1f6a1a938)
2016-09-27 19:02:46 +02:00
Franz Pletz
8f872dc8bc gitlab: 8.11.2 -> 8.12.1
(cherry picked from commit 77779323c5)
2016-09-27 18:41:31 +02:00
Kamil Chmielewski
23e34fb71b go2nix: 1.1.0 -> 1.1.1
(cherry picked from commit badd0ce218)
2016-09-27 17:20:32 +02:00
Franz Pletz
609a5000ff jdkdistro: remove oraclejdk6, not maintained anymore
(cherry picked from commit 0ccb59b562)
2016-09-27 08:24:45 -04:00
Graham Christensen
7cd52ef8cb firebird: 2.5.2.26540-0 -> 2.5.6.27020-0
(cherry picked from commit ecec041474)
2016-09-27 08:14:35 -04:00
Graham Christensen
181167447a libusbredir: 0.7 -> 0.7.1
(cherry picked from commit 0a9d07c66b)
2016-09-27 08:14:35 -04:00
Graham Christensen
1668caa4ea spice-protocol: 0.12.10 -> 0.12.12
(cherry picked from commit 1e7d220961)
2016-09-27 08:14:34 -04:00
Graham Christensen
92b3fa4d53 spice-gtk: 0.29 -> 0.32
(cherry picked from commit 6d1638e697)
2016-09-27 08:14:29 -04:00
Graham Christensen
e50143091e spice-vdagent: 0.16.0 -> 0.17.0
(cherry picked from commit 0d20194889)
2016-09-27 07:43:45 -04:00
Graham Christensen
db55b7dd9c spice: 0.12.6 -> 0.12.8
(cherry picked from commit 4e9f2ef854)
2016-09-27 07:43:41 -04:00
Peter Simons
2d463a3ec5 Merge pull request #18992 from abuibrahim/release-16.09
haskellPackages.cheapskate: fix dependencies for ghc-7.10.x
2016-09-27 10:54:32 +02:00
Ruslan Babayev
faa710dbaa haskellPackages.cheapskate: fix dependencies for ghc-7.10.x 2016-09-26 18:20:28 -07:00
Graham Christensen
c32d890924 wordpress: 4.3.1 -> 4.6.1 + add a test
(cherry picked from commit 4671806183)
2016-09-26 19:36:42 -04:00
Graham Christensen
9cc75ca2b4 libupnp: 1.6.19 -> 1.6.20 for CVE-2016-6255
(cherry picked from commit 60a004cf0c)
2016-09-26 17:26:10 -04:00
Thomas Tuegel
3518fa1ea9 dropbox: 10.4.26 -> 11.4.20
(cherry picked from commit 240552cba1)
2016-09-26 15:46:52 -05:00
Graham Christensen
500be7290c qemu: 2.6.1 -> 2.7.0
(cherry picked from commit 5e25995295)
2016-09-26 10:45:39 -04:00
Graham Christensen
8ebdbdcc5d webkitgtk: 2.12.4 -> 2.12.5
(cherry picked from commit 56903afbf1)
2016-09-26 10:44:56 -04:00
Graham Christensen
fcb41707f1 libdwarf: 20121130 -> 20160613
(cherry picked from commit 8a484d778e)
2016-09-26 09:59:09 -04:00
Franz Pletz
a26de01965 mupdf: fix build, add security patch
Broken due to 42b08b743c.

PIC is enabled by default by our hardening flags.

(cherry picked from commit fa184ee6fd)
2016-09-26 15:56:56 +02:00
Thomas Tuegel
918a45ca6c Merge branch 'emacs-packages'
Fixes #18976. Removes all the old Emacs packages that are obsolete with
the new generated packages.
2016-09-26 08:47:43 -05:00
Franz Pletz
743bccfabd openssl: 1.0.2i -> 1.0.2j, 1.1.0a -> 1.1.0b
https://www.openssl.org/news/secadv/20160926.txt
(cherry picked from commit 4d75c71f38)
2016-09-26 15:02:26 +02:00
Graham Christensen
cb221d84a0 mplayer: 1.1.1 -> 1.3.0
(cherry picked from commit f5057d6ba9)
2016-09-26 08:18:10 -04:00
Matthew Bauer
564e096ddf mplayer: fix on darwin
(cherry picked from commit 85f2c3ebc9)
2016-09-26 08:18:10 -04:00
Jörg Thalheim
e27b80f77c lcms: fix cve-2013-4276
(cherry picked from commit 6c230676cd)
2016-09-26 08:11:05 -04:00
Jörg Thalheim
91b31a09ad busybox: 1.23.2 -> 1.24.2
fixes https://lwn.net/Vulnerabilities/696815/

(cherry picked from commit 74876b0cad)
2016-09-26 12:25:02 +01:00
Graham Christensen
04faec690c file-roller: 3.20.2 -> 3.20.3
(cherry picked from commit b006135d93)
2016-09-26 07:24:17 -04:00
Graham Christensen
bad5a4ec63 openjpeg: 2.1.0 -> 2.1.1 for critical bugfixes and no ABI break
(cherry picked from commit 42b08b743c)
2016-09-26 07:23:16 -04:00
schneefux
a86eda3d23 owncloud: update minor versions, init 9.1.1
(cherry picked from commit 94966d1086)
2016-09-25 20:42:16 -04:00
Frederik Rietdijk
c45fc1371e pythonPackages.breathe: disable for Python 3.x
(cherry picked from commit a441efcccc)
2016-09-25 22:02:57 +02:00
Susan Potter
7cb7c5654b kibana: 4.5.2 -> 4.6.0 (#18277)
Includes supporting binary src for x86_64-linux, x86_64-darwin, and
i686-linux which were previously unsupported and failed grossly before.
(cherry picked from commit 46ff1c385f)
2016-09-25 21:40:54 +02:00
Tim Steinbach
d24dc8c1d2 kernel-common: Add ZBUD, move ZSMALLOC into module space
(cherry picked from commit 77e1be36b9)
2016-09-25 22:38:26 +03:00
aszlig
135d6f2aa6 chromium: Fix wrong/missing hash for beta channel
The hash provided in commit 072917ea5d is
faulty, either because the upstream tarball has changed or because it
was wrong in the first place, no matter what happened we can't really
verify if we don't have the tarball with the old hash.

To double-check I've verified the hash against the one from Gentoo[1],
which has the following SHA256:

b46c26a9e773b2c620acd2f96d69408f14a279aefaedfefed002ecf898a1ecf2

After being converted into base 32 the hash does match with ours.

Note that I haven't tested building all Chromium channels (yet), but we
can fix upcoming issues later because right now it doesn't build anyway
because of the failing hash check.

[1]: https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/Manifest?id=2de0f5e4ffeb46a478c589b21d5bbcfd5736e57b

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 0c2683cc11)
2016-09-25 21:36:15 +02:00
Ram Kromberg
8a02c035a9 giflib: 5.1.0 -> 5.1.4 (#18911)
(cherry picked from commit ff76c7d3ca)
2016-09-25 21:35:12 +02:00
Graham Christensen
d0357d5754 fcgi: Patch to protect against stack smashing
(cherry picked from commit da6b9f47e9)
2016-09-25 14:34:07 -04:00
Franz Pletz
908007466c libfpx: 1.3.1-4 -> 1.3.1-7
(cherry picked from commit 0bf841843c)
2016-09-25 17:47:18 +02:00
Thomas Tuegel
d5d56806ce dropbox: 10.4.25 -> 10.4.26
(cherry picked from commit 41e0146136)
2016-09-25 10:43:14 -05:00
Franz Pletz
ab76618924 fuseiso: fix CVE-2015-8836 & CVE-2015-8837
(cherry picked from commit 668572753c)
2016-09-25 17:39:00 +02:00
Joachim Fasting
5fc3e32c44 spl: fix eval
xref: 30ae939142
(cherry picked from commit e1395365ea)
2016-09-25 16:53:08 +02:00
Aneesh Agrawal
38eac14061 jq: Fix CVE-2015-8863 and CVE-2016-4074 (#18908)
jq has not had a release since v1.5 in August 2015, so backport both of
these patches (the fix for CVE-2015-8863 is in the current master, while
the fix for CVE-2016-4074 is not yet in master).
(cherry picked from commit bfbca9dacd)
2016-09-25 15:15:51 +02:00
Franz Pletz
f0c5eb5bbd linuxPackages.spl: don't mark as broken on kernel >= 4.7
Compatibility added in c8c688b0c9.

(cherry picked from commit 30ae939142)
2016-09-25 14:56:53 +02:00
Franz Pletz
7cd53afee3 linuxPackages.jool: 3.4.4 -> 3.4.5
(cherry picked from commit 6e063a49b1)
2016-09-25 14:24:18 +02:00
Franz Pletz
5f00e952a4 linuxPackages.zfs: 0.6.5.7 -> 0.6.5.8
Adds compatibility for 4.7 & 4.8 Linux kernels.

(cherry picked from commit c8c688b0c9)
2016-09-25 14:24:18 +02:00
Franz Pletz
06fd031d35 linux: 4.7.4 -> 4.7.5
(cherry picked from commit 3a4a425728)
2016-09-25 14:24:17 +02:00
Franz Pletz
58c9032106 linux: 4.4.20 -> 4.4.22
(cherry picked from commit c83f8a536a)
2016-09-25 14:24:17 +02:00
Franz Pletz
dcda10ce16 linux: 4.1.31 -> 4.1.33
(cherry picked from commit fdf239fb83)
2016-09-25 14:24:17 +02:00
Franz Pletz
31568f1bac linux: 3.18.40 -> 3.18.42
(cherry picked from commit 17402fc4a3)
2016-09-25 14:24:16 +02:00
Franz Pletz
50290c5cdb kernelPatches: remove unneeded patches
(cherry picked from commit 31ff655e46)
2016-09-25 14:24:16 +02:00
Franz Pletz
c95e120dc9 linux: 3.12.62 -> 3.12.63
(cherry picked from commit 01f465c82b)
2016-09-25 14:24:16 +02:00
Franz Pletz
e2b5b744b1 linux: 3.10.102 -> 3.10.103
(cherry picked from commit b1029abe56)
2016-09-25 14:24:15 +02:00
Franz Pletz
f7c817a3ab linux_4_6: remove, not maintained anymore
(cherry picked from commit e8cd27dd8a)
2016-09-25 14:23:52 +02:00
Vladimír Čunát
89f6c01adc Merge #18925: nettle: 3.1.1 -> 3.2
It fixes bugs in crypto calculations.

(cherry picked from commit 265a4752f6)
2016-09-25 13:39:49 +02:00
Vladimír Čunát
052eaed013 Merge #18909: flex: 2.6.0 -> 2.6.1
It contains security fixes.

(cherry picked from commit aaa29843c3)
2016-09-25 13:39:44 +02:00
Vladimír Čunát
66ed92d63b Merge branch 'release-16.09' into staging-16.09 2016-09-25 13:39:18 +02:00
Graham Christensen
ad3d15c0b6 davfs2: 1.5.2 -> 1.5.3
(cherry picked from commit 70bf407cf8)
2016-09-25 07:35:45 -04:00
Graham Christensen
3d089ae7c2 mailman: 2.1.18 -> 2.1.23
(cherry picked from commit f7f4930912)
2016-09-25 07:19:07 -04:00
Graham Christensen
e1e16af610 ikiwiki: 3.20150614 -> 3.20160905
(cherry picked from commit 5e043ffa45)
2016-09-25 07:18:45 -04:00
Rok Garbas
210ebb529b pypi2nix: 1.4.0 -> 1.5.0 2016-09-25 04:50:58 +02:00
Jörg Thalheim
dd4d0b1c1e monit: 5.10 -> 5.19.0
monit disables SSLv23 now by default, see

- https://mmonit.com/monit/changes/
- https://lwn.net/Vulnerabilities/691497/

cc #18916

(cherry picked from commit 6b34a62ef8)
2016-09-25 02:09:13 +02:00
Franz Pletz
0ce6bbd127 chromium: update to latest channel releases (security)
Fixes at least:

  - CVE-2016-1667
  - CVE-2016-1668
  - CVE-2016-1669
  - CVE-2016-1670
  - CVE-2016-5170
  - CVE-2016-5171
  - CVE-2016-5172
  - CVE-2016-5173
  - CVE-2016-5174
  - CVE-2016-5175
  - CVE-2016-7395

cc #18856

(cherry picked from commit 072917ea5d)
2016-09-24 22:07:09 +02:00
Franz Pletz
142ee90ef7 librsvg: 2.40.9 -> 2.40.16 (security)
Fixes CVE-2015-7558 & CVE-2016-6163.

cc #18856

(cherry picked from commit ee8fed4697)
2016-09-24 22:07:08 +02:00
Franz Pletz
a6f58636d2 pcre: 8.38 -> 8.39 (security)
Fixes:

  - CVE-2014-9769
  - CVE-2015-2327
  - CVE-2015-2328
  - CVE-2015-8382
  - CVE-2016-3191

cc #18856

(cherry picked from commit 6244be2d0a)
2016-09-24 21:54:08 +02:00
Vladimír Čunát
0cba714395 wayland: resurrect version 1.9.0
It'll likely be useful because of #16779, at least for some users.
Most of the change sneaked in c68850c6b already, by mistake.

(cherry picked from commit 0593ad2b16)
2016-09-24 19:38:09 +02:00
Vladimír Čunát
39f77eb8de nixos opengl: use mesa_drivers.out
...instead of mesa_noglu.out. Closures of systems remain unchanged,
as both are in (and the .out output is very small anyway).
This is to make sure that we use lib*GL* that aren't slowed down by grsecurity.

(cherry picked from commit c68850c6be)
2016-09-24 19:22:13 +02:00
Vladimír Čunát
c4469edac1 Merge #18905: ffmpeg: 2.8.7 -> 2.8.8
It contains security fixes.

(cherry picked from commit c3d1caf97b)
2016-09-24 17:40:49 +02:00
Franz Pletz
e891f0d16d imagemagick: 6.9.5-2 -> 6.9.5-10
Fixes lots of CVEs, including the recent:

  * CVE-2016-4562, CVE-2016-4563, CVE-2016-4564
  * CVE-2016-5687
  * CVE-2016-5010
  * CVE-2016-5688
  * CVE-2016-5689, CVE-2016-5690, CVE-2016-5691
  * CVE-2016-5841 and CVE-2016-5842
  * CVE-2016-6491
  * CVE-2016-6520

cc #18856

(cherry picked from commit fa6c6dae76)
2016-09-24 17:00:53 +02:00
Joachim Fasting
fa6208fe6b grsecurity: 4.7.4-201609152234 -> 201609211951
(cherry picked from commit 64816cd972)
2016-09-24 16:17:46 +02:00
Joachim Fasting
fc8c728f99 tor: 0.2.8.7 -> 0.2.8.8
Fixes two crashing bugs, nothing else of note.

(cherry picked from commit f0c85376b2)
2016-09-24 16:17:34 +02:00
Wei-Ming Yang
fc1d57a4cf murmur service: welcome -> welcometext
fixed incorrect option name `welcome` to `welcometext`.

joachifm added a rename for backwards compat.

Closes https://github.com/NixOS/nixpkgs/pull/18570

(cherry picked from commit e330807e1f)
2016-09-24 16:17:05 +02:00
Franz Pletz
b762216a3d a2ps: fix CVE-2001-1593 & CVE-2014-0466
(cherry picked from commit c39195d699)
2016-09-24 15:36:28 +02:00
Graham Christensen
40ced8bf5d mysql_jdbc: 5.1.38 -> 5.1.39
(cherry picked from commit 0e00ab37f8)
2016-09-24 09:23:28 -04:00
Nikolay Amiantov
7e98bfd752 stage-1 module: remove check that swap device has a label
All swap device option sets "have" a label, it's just that sometimes it's
undefined. Because we set a `device` attribute when we have a label anyway it's
ok to just check device prefix.

Fixes #18891.

(cherry picked from commit a63ca1bf3d)
2016-09-24 13:09:29 +03:00
Nikolay Amiantov
cbaf36b5ed quake3: refactor wrapper, fix pak collisions
(cherry picked from commit e80b22369d)
2016-09-24 12:50:24 +03:00
Graham Christensen
4d4aaef3a4 lighttpd: 1.4.40 -> 1.4.41
(cherry picked from commit 33be079486)
2016-09-24 11:25:45 +02:00
Aneesh Agrawal
2a082e112a as31: Apply Debian patch for CVE-2012-0808 (#18904)
(cherry picked from commit 9f7d9def4c)
2016-09-23 22:31:10 -04:00
Franz Pletz
8de2edfbf3 asterisk: fix source url
(cherry picked from commit 53c660dbc8)
2016-09-24 03:01:28 +02:00
Franz Pletz
55a1fb157a jansson: 2.7 -> 2.8
Fixes CVE-2016-4425.

cc #18856

(cherry picked from commit fc0f3ebb20)
2016-09-24 03:01:27 +02:00
Franz Pletz
5a86378784 brogue: disable fortify hardening to fix runtime error
See #18888.

(cherry picked from commit 89a5f7de83)
2016-09-24 02:10:43 +02:00
Profpatsch
f77edcc879 brogue: fix crash by stackprotector hardening (#18888)
(cherry picked from commit 67bec77c68)
2016-09-24 02:07:12 +02:00
Franz Pletz
4dbb81b375 bedup: 0.10 -> 0.10.1, fix eval
bedup is not available for Python 2, our current default.

(cherry picked from commit 06395c6baf)
2016-09-24 02:04:36 +02:00
Tim Steinbach
38a00fc5ff openjdk7: 1.7.0-91 -> 1.7.0-111
(cherry picked from commit 83a893c38a)
2016-09-23 19:59:13 -04:00
Tim Steinbach
21a3733fd1 bind: 9.10.4 -> 9.10.4-P2 (#18880)
(cherry picked from commit dbbff67754)
2016-09-24 01:56:47 +02:00
Alexander Ried
6261c79992 perlPackages.WWWCurl: fix broken build after curl update
upstream bugreport:
https://rt.cpan.org/Public/Bug/Display.html?id=117793

patch also taken from there

(cherry picked from commit 123f81b866)
2016-09-23 18:59:25 -04:00
Tim Steinbach
0af39741ca mariadb: 10.1.16 -> 10.1.17
(cherry picked from commit e525217269)
2016-09-23 17:59:06 -04:00
Tim Steinbach
88600788e4 mysql55: 5.5.50 -> 5.5.52
(cherry picked from commit 85b6923ba9)
2016-09-23 17:39:01 -04:00
Thomas Tuegel
4d26875e56 firefox-bin: update hashes 2016-09-23 14:47:41 -05:00
Thomas Tuegel
9e09814de5 emacs25: 25.1-rc2 -> 25.1
Backport Emacs 25.1 from master.
2016-09-23 14:47:41 -05:00
rushmorem
d25bf0cde4 vault: 0.6.0 -> 0.6.1
(cherry picked from commit c2cae61392)
2016-09-23 20:06:43 +02:00
Tim Steinbach
7b07641631 curl: 7.50.1 -> 7.50.3
(cherry picked from commit cda53e434e)
2016-09-23 13:08:36 -04:00
Tim Steinbach
6d011049f0 openvpn: 2.3.11 -> 2.3.12
(cherry picked from commit 244aee5cd1)
2016-09-23 12:31:54 -04:00
Joachim Fasting
0c443bcc6f kernelPatches: remove legacy grsecurity attrs
(cherry picked from commit e2659de1b2)
2016-09-23 15:15:01 +02:00
Herwig Hochleitner
d90c2abbde connman: 1.32 -> 1.33
(cherry picked from commit cc60ee187a)

This is a bugfix release.
2016-09-23 15:15:00 +02:00
taku0
4e40bc4d1e firefox-bin: 48.0.2 -> 49.0
(cherry picked from commit 25ff8637f4)
2016-09-23 15:14:54 +02:00
Graham Christensen
1968e793ce php5: 5.6.25 -> 5.6.26 for CVEs (http://www.php.net/ChangeLog-5.php\#5.6.26)
(cherry picked from commit f01e56e576)
2016-09-23 07:17:14 -04:00
rushmorem
1300d9895b cockroachdb: build only on x86_64-linux
CockroachDB is failing to build on `x86_64-darwin` according to
Hydra. I don't have a Mac or Windows machine to debug the builds
on so I can't support those.

(cherry picked from commit 65198a9082)
2016-09-23 12:35:36 +02:00
Tuomas Tynkkynen
2ecfa7e58d retroshare06: Disable parallel build
http://hydra.nixos.org/build/40998820/nixlog/1/raw
(cherry picked from commit 6bca04c57b)
2016-09-23 12:45:51 +03:00
Tuomas Tynkkynen
2a67ff421a pythonPackages.cryptography: 1.5 -> 1.5.1, fixes build
(cherry picked from commit 8c1f927258)
2016-09-23 04:43:20 +03:00
Eelco Dolstra
a8300e1b67 debian: 8.5 -> 8.6
(cherry picked from commit f081a1aaf4)
2016-09-22 15:54:53 +02:00
Eelco Dolstra
f155746efd openssl: 1.0.1t -> 1.0.1u, 1.0.2h -> 1.0.2i, 1.1.0 -> 1.1.0a
https://www.openssl.org/news/secadv/20160922.txt
(cherry picked from commit ac03df96ba)
2016-09-22 15:54:53 +02:00
Domen Kožar
3faa03f87f fix eval (no idea why this fails) 2016-09-22 11:15:53 +02:00
Domen Kožar
bbde6639bc virtualboxGuestAdditions: mark broken also for chromium 2016-09-22 09:55:53 +02:00
Eric Sagnes
a64de3e17c mongodb service: switch configuration format to YAML
Configuration format has changed from MongoDB 2.6 to
YAML and MongoDB 2.4 is EOL since March 2016.

(cherry picked from commit 5cd565e507)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-22 09:52:43 +02:00
Eric Sagnes
faf6fef954 pump.io test: adapt mongodb extraConf to YAML
(cherry picked from commit 9132088dab)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-22 09:52:37 +02:00
Rodney Lorrimar
9dcd6f54f5 mongodb: Fix default storage engine on i686
MongoDB will refuse to start on i686 because the default database engine
"wiredTiger" doesn't support it. To reduce user annoyance, the default
engine should be changed to the pre-3.0 engine "mmapv1".

Fedora have also patched it:
http://pkgs.fedoraproject.org/cgit/rpms/mongodb.git/commit/?id=b64d6b3337bffdeea0b7fa530ea02b977c364e08

(cherry picked from commit 6d7b77df0a)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-22 09:52:26 +02:00
Rodney Lorrimar
d81746d5d5 mongodb service: add test case
(cherry picked from commit 795a6e7610)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-22 09:52:21 +02:00
Alexander V. Nikolaev
80a9ec383e irssi: 1.8.19 -> 1.8.20 (security)
https://irssi.org/security/irssi_sa_2016.txt
  CVE-2016-7044
  CVE-2016-7045

(cherry picked from commit b3ada0bce9)
2016-09-22 03:43:22 +03:00
rushmorem
4a2a45ab36 coredns: init at 001
(cherry picked from commit b93b37cf0a)
2016-09-22 01:18:11 +02:00
rushmorem
f38ead173d glide: 0.10.2 -> 0.12.2
(cherry picked from commit 89c8b6c379)
2016-09-21 22:00:15 +02:00
rushmorem
e01717aea2 caddy: 0.9.1 -> 0.9.2
(cherry picked from commit a52aa1c940)
2016-09-21 19:14:31 +02:00
rushmorem
14516eafd2 cockroachdb: limit platforms to those supported upstream
(cherry picked from commit c3979068ca)
2016-09-21 17:05:07 +02:00
rushmorem
1130a77a77 cockroachdb: specify build tag
(cherry picked from commit c346789a92)
2016-09-21 17:04:19 +02:00
Eelco Dolstra
c96cb0374b firefox: 48.0.2 -> 49.0
(cherry picked from commit 99138dc356)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-21 13:30:15 +02:00
Eelco Dolstra
207bda347c firefox-esr: 45.3.0 -> 45.4.0
(cherry picked from commit 5bfd092f07)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-21 13:30:13 +02:00
Domen Kožar
bc06f19efb ena: mark as broken on chromiumos 2016-09-21 12:04:05 +02:00
Domen Kožar
4821fa2d19 virtualboxGuestAdditions: mark as broken on grsecurity 2016-09-21 12:03:37 +02:00
Domen Kožar
b9d81859f3 /var/empty: silently ignore errors (if on tmpfs) #18781
(cherry picked from commit 80437576f9)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-21 10:29:40 +02:00
Eric Sagnes
c02b9b93f6 cadvisor test: fix (#18671)
* influxdb module: add postStart

* cadvisor module: increase TimeoutStartSec

Under high load, the cadvisor module can take longer than the default 90
seconds to start. This change should hopefully fix the test on Hydra.

(cherry picked from commit 2d2c311304)
2016-09-20 22:00:48 +02:00
Thomas Tuegel
d917fb8fff nixos/tests/kde5: fix test name
(cherry picked from commit d7d74a1922)
2016-09-20 14:54:24 -05:00
Hoang Xuan Phu
17404a8da4 kde5.applications: 16.08.0 -> 16.08.1
(cherry picked from commit 0bffb9e9e9)

This version bump contains bug fixes.
2016-09-20 14:54:23 -05:00
Lancelot SIX
894fb7b8c3 xorriso: 1.4.4 -> 1.4.6
See http://lists.gnu.org/archive/html/info-gnu/2016-09/msg00010.html
for release announcement

[Bjørn: remove "pkgs." from commit message subject.]

(cherry picked from commit ea1afcd9f4)
2016-09-20 20:08:01 +02:00
zimbatm
5387f325d6 buildRubyGem: fixes gemspec UTF-8 loading issue
If a gemspec has UTF-8 characters in it, ruby will fail loading it with

    invalid multibyte char (US-ASCII)

This change forces the encoding to be correct, we assume everyone now
uses UTF-8.

(cherry picked from commit 62df82efcf)
2016-09-20 18:23:49 +01:00
Robin Gloster
fdec46d115 gitlab module: enable postgres pg_trgm extension
(cherry picked from commit 0fa64b718f)
2016-09-20 17:45:54 +02:00
rushmorem
18e12537d0 cockroachdb: init at beta-20160915
(cherry picked from commit dc8da48032)
2016-09-20 15:47:24 +02:00
Domen Kožar
d316ec2375 Merge pull request #18786 from exi/amdapp-sdk-full-fix
amdapp-sdk: fix build for gcc 5
2016-09-20 14:11:35 +02:00
Reno Reckling
1dcd93c1de amdapp-sdk: fix build for gcc 5 2016-09-20 14:50:22 +03:00
aszlig
4d076b3681 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:33:44 +02:00
rushmorem
c590cd7d31 glock: init at 20160816
(cherry picked from commit 391ea6f748)
2016-09-20 11:12:49 +02:00
Scott R. Parish
95879e204f rngd: update modalias to match cpu type
It looks like the cpu type part of modalias might have changed, my
systems (4.4.20 and 4.7.2) show something like the following:

```
cpu:type:x86,ven0000fam0006mod003F:feature:,0000,0001,0002,0003,0004,0005,0006,0007,0008,0009,000B,000C,000D,000E,000F,0010,0011,0013,0017,0018,0019,001A,001C,002B,0034,003B,003D,0068,006F,0070,0072,0074,0075,0076,007D,0080,0081,0089,008C,008D,0091,0093,0094,0095,0096,0097,0098,0099,009A,009B,009C,009D,009E,009F,00C0,00C5,0120,0123,0125,0127,0128,0129,012A,0140
```

Update the rngd modalias rule to match this so udev properly has
systemd start rngd.

(cherry picked from commit a560223119)
2016-09-19 19:07:19 -04:00
Joachim F
05f5ded134 Merge pull request #18639 from abuibrahim/release-16.09
pktgen: 3.0.04 -> 3.0.13 (#18477)
2016-09-19 22:32:13 +02:00
Peter Simons
1636325a67 nbd: update to version 3.14
(cherry picked from commit 545040811b)
2016-09-19 15:47:32 +02:00
Karn Kallio
4395af62ac Add MySQL Connector C++, a mysql server client library.
(cherry picked from commit 07c6d61af0)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-19 10:41:31 +02:00
Karn Kallio
59328f3a8c mysqlworkbench : fix build and update to latest version 6.3.7
(cherry picked from commit 07154a77e7)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-19 10:41:31 +02:00
Karn Kallio
9c94798996 libctemplate : update URL for downloading source
(cherry picked from commit 16227c728d)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-19 10:41:31 +02:00
Karn Kallio
4e72d95dae mysql: Add version 5.7.x of Oracle mysql for building mysql workbench.
(cherry picked from commit b9334743ee)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-19 10:41:31 +02:00
Karn Kallio
8f73fe29e5 Add vsqlite, a C++ wrapper library for sqlite.
(cherry picked from commit e11287ce3f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-19 10:41:30 +02:00
Kirill Boltaev
e62a5e1b32 pktgen: disable parallel building
(cherry picked from commit d2bbc631ff)
2016-09-19 05:45:45 +03:00
Robin Gloster
03f7d949c8 krb5: 1.14.2 -> 1.14.3
fixes CVE-2016-3120

(cherry picked from commit 452f182356)
2016-09-18 23:48:45 +02:00
Vladimír Čunát
1a40bd0d32 firefox*: fix notifications
Fixes #18712. Now firefox uses the notification daemon, if available.

Unfortunately, the same approach didn't work for thunderbird; I don't
know why.

(cherry picked from commit f27a970f2d)
2016-09-18 23:23:35 +02:00
Jaka Hudoklin
d677be61e1 go-md2man: init at 1.0.6
(cherry picked from commit ea2270aa7c)
2016-09-18 22:44:30 +02:00
Jaka Hudoklin
69451eb662 docker module: updates
- logDriver option, use journald for logging by default
- keep storage driver intact by default, as docker has sane defaults
- do not choose storage driver in tests, docker will choose by itself
- use dockerd binary as "docker daemon" command is deprecated and will be
  removed
- add overlay2 to list of storage drivers

(cherry picked from commit 5d9c62541a)
2016-09-18 22:43:53 +02:00
Jaka Hudoklin
fab1292996 docker: 1.10.3 -> 1.12.1
(cherry picked from commit 0a518618a2)
2016-09-18 22:43:53 +02:00
Jaka Hudoklin
2954930c7f containerd: init at 0.2.3
(cherry picked from commit e927620885)
2016-09-18 22:43:53 +02:00
Jaka Hudoklin
c9d9212d29 runc: init at 2016-06-15
(cherry picked from commit 71782da103)
2016-09-18 22:43:53 +02:00
Vladimír Čunát
19dab295f0 hunspellWithDicts: fix bad meta.outputsToInstall
https://github.com/NixOS/nixpkgs/issues/15036#issuecomment-247874297
(cherry picked from commit 4007e5b807)
2016-09-18 22:40:55 +02:00
Vladimír Čunát
d5ecf9ef52 Merge branch 'staging-16.09' into release-16.09 2016-09-18 21:45:46 +02:00
Jaka Hudoklin
26cd1be5b2 go_1_7: 1.7 -> 1.7.1 2016-09-18 18:51:06 +02:00
obadz
7617e7eb74 grub: add boot.loader.grub.efiInstallAsRemovable
Closes #16374

(cherry picked from commit 1c9ac8aabc)

grub: clarify efiInstallAsRemovable docstring

(cherry picked from commit eda4f5d409)

grub: fix manual build

(cherry picked from commit 93974eb98b)
2016-09-18 14:42:18 +01:00
Joachim Fasting
b59a9daf63 grsecurity: 4.7.3-201609072139 -> 4.7.4-201609152234
(cherry picked from commit d082a7c0fd)
2016-09-18 13:56:53 +02:00
Joachim Fasting
5f961da65e linux_4_7: 4.7.3 -> 4.7.4
(cherry picked from commit 2050f12f4e)
2016-09-18 13:56:47 +02:00
Shea Levy
beb349339d darwin.cctools: Fix build on linux
(cherry picked from commit 11f4921cdf)
2016-09-17 08:45:31 -04:00
Franz Pletz
7de410c0d3 16.09 changelog: add changes to reverse path filter
See #17325.

(cherry picked from commit 0a4d60622c)
2016-09-17 14:21:10 +02:00
Nikolay Amiantov
1824c2b3cc 16.09 changelog: add mention of special filesystems changes
(cherry picked from commit bf5d2bc215)
2016-09-17 14:21:10 +02:00
Kranium Gikos Mendoza
28f65b0b91 antiword: move sed to prePatch. fixes #18627
[Bjørn: change patchPhase -> prePatch (we must not override patchPhase).]

(cherry picked from commit d9a4d942ab)
2016-09-17 12:12:41 +02:00
rushmorem
a161450bfb gringo: remove from all-packages.nix
Package had been removed previously. I accidentally left it in while
cherry picking commit 6b8275eaf9.
2016-09-17 02:16:49 +02:00
Vladimír Čunát
aac97b1c7f linux*: remove 3.14, as it's no longer maintained
(cherry picked from commit 6a9e765e27)
2016-09-17 02:14:17 +02:00
rushmorem
afa22b01d3 goa: init at 1.0.0
(cherry picked from commit 6b8275eaf9)
2016-09-17 02:11:13 +02:00
Vladimír Čunát
e1cc923a74 mesa: 12.0.2 -> 12.0.3
> This is an emergency release addressing a number of regressions
> across all devices using the i965 driver.

(cherry picked from commit ca0e798e50)
2016-09-16 22:45:53 +02:00
Vladimír Čunát
c0febd02c2 gtk2: move gtk-update-icon-cache to gtk2.out
... to be useful for regeneration when building nixos environments.
Fixes #18536 (hopefully).

(cherry picked from commit aa0fa19373)
2016-09-16 22:45:25 +02:00
Vladimír Čunát
68c4464ff4 Merge #16391: texlive: 2015 -> 2016
Mirroring isn't finalized, but we'll have to fix that on the go.

(Picked from a merge contained in master: bd6e40c27d)
2016-09-16 22:45:24 +02:00
Vladimír Čunát
041ae6c961 xorg: expression cleanup
The generating script needed to be updated not to overwrite the
hardening changes back.

(cherry picked from commit 772d14d8c2)
2016-09-16 22:42:29 +02:00
Vladimír Čunát
e982ea739b xf86-input-evdev: bugfix 2.10.2 -> 2.10.3
(cherry picked from commit 16ed17d6c8)
2016-09-16 22:42:27 +02:00
Vladimír Čunát
01fa907b96 xf86-video-{ati,amdgpu}: maintenance updates
(cherry picked from commit 8aad4e8602)
2016-09-16 22:42:25 +02:00
Peter Simons
86a46f4c39 ghc-8.0.1: Revert "cosmetic fix to the Nix expression to unbreak syntax highlighting"
This reverts commit 29a53017a4, which broke filterdiff according to
https://github.com/NixOS/nixpkgs/issues/18665#issuecomment-247626588.

(cherry picked from commit d1b34967fe)
2016-09-16 20:47:38 +02:00
Ruslan Babayev
acc0bf3d15 pktgen: 3.0.04 -> 3.0.13 (#18477)
(cherry picked from commit 7b51c79ccd)
2016-09-16 11:21:44 -07:00
obadz
8741f0e36e stun: 0.96 -> 0.97
(cherry picked from commit 4876c7362b)
2016-09-16 16:18:11 +01:00
sternenseemann
24a7e80e69 torbrowser: 6.0.4 -> 6.0.5
(cherry picked from commit 7d20f1b5b7)

Fixes important security issues, see https://blog.torproject.org/blog/tor-browser-605-released
2016-09-16 16:37:20 +02:00
obadz
6a12ff4cbd lightdm: obbey services.xserver.{window/desktop}Manager.default
(cherry picked from commit 29caa185a7)
2016-09-16 15:04:32 +01:00
obadz
16f3f9c569 xfce: install networkmanager applet when networkmanager is enabled
(cherry picked from commit a20c2ce4b8)
2016-09-16 15:04:31 +01:00
Domen Kožar
3f4d94a4c2 lttng-modules: broken on chromiumos 2016-09-16 11:12:19 +02:00
Eric Sagnes
0c7ba15970 cadvisor: fix test
(cherry picked from commit db387a6f0d)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-16 11:08:40 +02:00
Eric Sagnes
ca37645567 cadvisor: 0.10.1 -> 0.23.8
(cherry picked from commit fe54db9027)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-16 11:08:36 +02:00
Lancelot SIX
5e81d453df pythonPackages.mathics: Fix install
This fixes the broken test nixos/tests/mathics.nix

(cherry picked from commit 9d83af68d8)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-16 11:08:21 +02:00
Matthew O'Gorman
f77caf97e7 mosquitto: add websockets support.
(cherry picked from commit 6a01fc2b7c)
2016-09-16 10:45:08 +02:00
Benjamin Staffin
e951d39250 Merge pull request #18621 from benley/openssh-gssapi-patch-16.09
openssh: update gssapi patch, fix the build
2016-09-16 03:37:44 -04:00
Kamil Chmielewski
9ab3dc25ce buildGoPackage: deps.json -> deps.nix in NIXON
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541

* update docs to describe `deps.nix`
* include goDeps in nix-shell GOPATH
* NixOS 16.09 rel notes about replacing goPackages

(cherry picked from commit 914e0e594c)

Conflicts:
  pkgs/servers/etcd/deps.json
2016-09-16 00:08:44 +01:00
Rodney Lorrimar
35a87e41d5 nodePackages.bower2nix: 3.0.1 -> 3.1.1
(cherry picked from commit 131b8d4edb)
2016-09-15 15:07:11 -04:00
Rodney Lorrimar
0227c99c15 nodePackages.bower2nix: Add back PATH wrapping
bower2nix and fetch-bower need git in the PATH to operate. This wrapping
got lost with the nodePackages updates.

(Fixes #18454)

(cherry picked from commit 952c477f90)
2016-09-15 15:07:07 -04:00
Joachim F
c000c2fa71 opensmtpd: 5.9.2p1 -> 6.0.0p1 (#18629)
Also change to https src.url.

Changelog at https://www.opensmtpd.org/announces/release-6.0.0.txt

In particular, note that
- logging format has been reworked so scripts that consume opensmtpd
  logs may need updating
- dhparams option has been removed
(cherry picked from commit 2db487e6bf)
2016-09-15 16:35:46 +01:00
Franz Pletz
ad6255e273 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 13:58:07 +02:00
Herwig Hochleitner
a320b84bf4 androidenv: update packages
build-tools      25.1.7 -> 25.2.2
sdk-tools        23.0.1 -> 24.0.2
platform-tools   24 -> 24.0.2

(cherry picked from commit 685786b7d7)
2016-09-15 09:03:37 +00:00
Domen Kožar
934bca551b Merge remote-tracking branch 'origin/staging-16.09' into release-16.09
It's finished building with acceptable error rate:

http://hydra.nixos.org/eval/1292828
2016-09-15 08:44:27 +02:00
J Phani Mahesh
8a6679f87b git: 2.9.3 -> 2.10.0
(cherry picked from commit 2b86ccbf32)
2016-09-15 08:40:04 +02:00
Franz Pletz
4fbb7f9107 multipath-tools: 0.5.0 -> 0.6.2, fixes build
Was broken due to 78178d5854.

(cherry picked from commit c513e2ab39)
2016-09-15 08:08:25 +03:00
Benjamin Staffin
0443792f96 openssh: update gssapi patch, fix the build
(cherry picked from commit 43dcb662e7)
2016-09-15 01:05:15 -04:00
Chris Martin
9886174e03 Update libtiff URLs (#18611)
* libtiff: remove dead source url

* libgeotiff: update url

(cherry picked from commit 56904d7c42)
2016-09-15 00:32:50 +01:00
Domen Kožar
f39246836e Merge pull request #18604 from exi/fix-avahi-test
avahi: Let the Avahi vm test wait until avahi is really up.
2016-09-14 22:27:09 +02:00
Reno Reckling
89cfb73551 Let the Avahi test wait until avahi is really up.
network.target does not imply that avahi is up.
2016-09-14 23:21:32 +03:00
rushmorem
f4ccd93770 lizardfs: 3.10.0 -> 3.10.2
(cherry picked from commit c34d83eb36)
2016-09-14 19:53:37 +02:00
Vladimír Čunát
da97605477 libmaxminddb: init at 1.2.0
(cherry picked from commit 92f0d709e9)
2016-09-14 19:25:50 +02:00
Thomas Tuegel
c8880dd87a Merge pull request #18589 from bendlas/update-dropbox-stable
dropbox: 9.4.49 -> 10.4.25 [release-16.09]
2016-09-14 12:22:20 -05:00
Herwig Hochleitner
88dcf95f24 pypy: 5.4.0 -> 5.4.1
(cherry picked from commit 1172c6be9b)
2016-09-14 19:02:40 +02:00
Herwig Hochleitner
cb62713dbb dropbox: 9.4.49 -> 10.4.25 2016-09-14 18:23:15 +02:00
taku0
1132a6cfb6 flashplayer: 11.2.202.632 -> 11.2.202.635
(cherry picked from commit 8b6e522bf8)
2016-09-14 17:28:14 +02:00
Eelco Dolstra
545c60d0d6 linux: 4.4.19 -> 4.4.20
(cherry picked from commit bc7e4e390a)
2016-09-14 14:22:05 +02:00
Tim Steinbach
8c264ec3ad kernel: 4.7.2 -> 4.7.3
(cherry picked from commit 4829cd7f65)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
30ad0477be dbus: 1.10.8. -> 1.10.10
NEWS seem safe, and there are only "fixes" in there.

(cherry picked from commit 741527adef)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
aefddb173f texlive: add links to ht* tools, in particular htlatex
This should fix #18480.

(cherry picked from commit 20c6f5c560)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
c70f0329bf mesa: use llvm-3.9 instead of 3.8
(cherry picked from commit 040b941b4c)
No problems reported so far, and we've got a couple weeks to stabilize
anyway. It seems required to support some new GPUs, #17991.
2016-09-14 14:22:05 +02:00
Vladimír Čunát
3a83556340 mesa: maintenance 12.0.1 -> 12.0.2
(cherry picked from commit 13bf68cc6a)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
b208cb47a7 pango: maintenance 1.40.1 -> 1.40.2
(cherry picked from commit f63668b75e)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
5b9972e30b gtk2: maintenance 2.24.30 -> 2.24.31
(cherry picked from commit d03a746b88)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
0593c2b80f ffmpeg_2: 2.8.6 -> 2.8.7
(cherry picked from commit 853e230fca)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
52f6dabe92 orc: bug-fix 0.4.25 -> 0.4.26
(cherry picked from commit f5a157fa3e)
2016-09-14 14:22:05 +02:00
mimadrid
84544cd941 shared-mime-info: 1.5 -> 1.7
(cherry picked from commit 478c63d469)
This seems unlikely to introduce problems.
2016-09-14 14:22:05 +02:00
Franz Pletz
f3c2760076 glibc: enable stackprotection hardening
Enables previously manually disabled stackprotector and stackguard
randomization.

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511811:

    If glibc is built with the --enable-stackguard-randomization option,
    each application gets a random canary value (at runtime) from /dev/urandom.
    If --enable-stackguard-randomization is absent, applications get a static
    canary value of "0xff0a0000". This is very unfortunate, because the
    attacker may be able to bypass the stack protection mechanism, by placing
    those 4 bytes in the canary word, before the actual canary check is
    performed (for example in memcpy-based buffer overflows).

(cherry picked from commit 3ba99f83a7)
2016-09-14 14:22:05 +02:00
Vladimír Čunát
45d6deb8d7 texlive: allow using pkgs.nix with empty hashes
... to enable saving space in git history.
2016-09-14 14:22:04 +02:00
Vladimír Čunát
040388bda6 texlive: fixup some packages missing from scheme-full
Hopefully they're all now.
2016-09-14 14:22:04 +02:00
Vladimír Čunát
048ec6ef10 texlive.bin.src: eradicate the last tug.org download
They're just unstable.
2016-09-14 14:22:04 +02:00
Vladimír Čunát
6867e84c93 texlive: rename the directory texlive-new -> texlive 2016-09-14 14:22:04 +02:00
Vladimír Čunát
77f7562e4f texlive.xindy: fixup after 2016 update
It's unfortunate that our `substituteInPlace` passes some kinds of
errors in silence.
2016-09-14 14:22:04 +02:00
Vladimír Čunát
d4e4b65855 texlive: use a cuni.cz mirror temporarily
... to avoid testers getting hash mismatches.
2016-09-14 14:22:04 +02:00
Vladimír Čunát
30b2c93de8 texlive: fixup some bin/ links, e.g. xe(la)tex 2016-09-14 14:22:04 +02:00
Vladimír Čunát
e56d208cc6 dblatex: fixup build with texlive-2016
https://github.com/NixOS/nixpkgs/pull/16391#issuecomment-227405183
2016-09-14 14:22:04 +02:00
Vladimír Čunát
79c2330f7e texlive: 2015 -> 2016
Note: only basic testing has been done so far; also see FIXME items.

AMENDed to reduce git history size significantly:
 - fix 2015->2016 bugs in fixedHashes.nix
 - purge all sha512 from pkgs.nix
2016-09-14 14:22:04 +02:00
Tuomas Tynkkynen
98906306aa python-systemd: Fix build
(cherry picked from commit 65146185d4)
2016-09-14 12:05:34 +03:00
Tuomas Tynkkynen
2d9abc98d1 lib.chooseDevOutputs: Use lib.getDev
Reduces duplication, plus is actually needed for Go packages (at least
go-repo-root).

(cherry picked from commit e0b5eef4e7)
2016-09-14 12:05:34 +03:00
Tuomas Tynkkynen
9d95233aa2 e2fsprogs: Split 'dev'
(cherry picked from commit c922c20cff)
2016-09-14 12:05:34 +03:00
Tuomas Tynkkynen
119e8e1b20 util-linux: Split 'dev'
(cherry picked from commit 35ec0e72e3)
2016-09-14 12:05:34 +03:00
Tuomas Tynkkynen
3c7b851e5a udev: Remove hacky alias
It's not clear to me what this is achieving, plus for some reason this
is causing an evaluation error in hyperterm. So let's hope it's not
really needed...

(cherry picked from commit 06b2ff50b9)
2016-09-14 12:05:34 +03:00
Eelco Dolstra
d1e1b43a31 systemd: Separate lib output
This moves libsystemd.so and libudev.so into systemd.lib, and gets rid
of libudev (which just contained a copy of libudev.so and the udev
headers). It thus reduces the closure size of all packages that
(indirectly) depend on libsystemd, of which there are quite a few (for
instance, PulseAudio and dbus). For example, it reduces the closure of
Blender from 430.8 to 400.8 MiB.

(cherry picked from commit 78178d5854)
2016-09-14 12:05:34 +03:00
Eelco Dolstra
19034b0541 utillinuxMinimal: Make more minimal
This removes locales, bash completion and crap like that. This cuts
6.5 MiB from the NixOS system closure (which unfortunately contains
two copies of util-linux, because of the need to break a dependency
cycle with systemd).

(cherry picked from commit 8295089e6a)
2016-09-14 12:05:34 +03:00
Franz Pletz
aadcffcd75 curl3: remove vulnerable curl version
(cherry picked from commit ee4c4768a4)
2016-09-14 09:03:45 +02:00
Franz Pletz
4e7d52ea75 gsb: remove, depends on vulnerable curl3
(cherry picked from commit 296c671454)
2016-09-14 09:03:44 +02:00
aszlig
7f0e4a8d23 Merge pull request #18567 (VirtualBox 5.1.6)
This introduces VirtualBox version 5.1.6 along with a few refactored
stuff, notably:

  * Kernel modules and user space applications are now separate
    derivations.
  * If config.pulseaudio doesn't exist in nixpkgs config, the default is
    now to build with PulseAudio modules.
  * A new updater to keep VirtualBox up to date.

All subtests in nixos/tests/virtualbox.nix succeed on my machine and
VirtualBox was reported to be working by @DamienCassou (although with
unrelated audio problems for another fix/branch) and @calbrecht.

(cherry picked from commit 1781e95577)
2016-09-14 02:30:34 +02:00
Vladimír Čunát
2c9eb1216e xorg.xf86-input-libinput: 0.19.0 -> 0.19.1
It fixes a typo in API (!).
https://lists.x.org/archives/xorg-announce/2016-September/002705.html

(cherry picked from commit 3efebb1680)
2016-09-14 00:06:29 +02:00
Aristid Breitkreuz
874619e011 ispc: attempt to make build more robust and hydra-compatible 2016-09-13 22:59:37 +02:00
Aristid Breitkreuz
abefbb2b3e ispc: extend test suite 2016-09-13 22:59:30 +02:00
Sander van der Burg
d0ee595386 nodePackages: regenerate with node2nix-1.1.0. The new node2nix supports postInstall hooks that have been used to fix npm2nix
(cherry picked from commit 2b144fcfb0)
2016-09-13 20:57:52 +00:00
Domen Kožar
43c92b48ea Merge pull request #18568 from exi/fix-tomcat-vm-test
tomcat: remove tomcat vm test timing issues
2016-09-13 22:44:33 +02:00
Reno Reckling
090f1f0722 Remove tomcat vm test timing issues 2016-09-13 22:56:27 +03:00
Sander van der Burg
0b61b07335 disnix: 0.6 -> 0.6.1
(cherry picked from commit 77b9abf78c)
2016-09-13 19:48:05 +00:00
Sander van der Burg
e96a9aa1af dysnomia: bump to version 0.6.1
(cherry picked from commit 2edb28ffc5)
2016-09-13 19:42:38 +00:00
Domen Kožar
cc841a4841 Disable nixos.tests.panamax
https://github.com/NixOS/nixpkgs/issues/18209#issuecomment-246763699
(cherry picked from commit a5de1cd8b5)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-13 20:41:57 +02:00
Domen Kožar
a73d5551de Merge pull request #18565 from exi/fix-mumble-vm-test
mumble: make mumble vm test more robust
2016-09-13 19:41:37 +02:00
Reno Reckling
7baf620218 make mumble vm test more robust
This test should have a more robust retry loop
and handles wrong focus on all windows.
2016-09-13 20:26:32 +03:00
Domen Kožar
feef017564 fstar: disable tests https://github.com/FStarLang/FStar/issues/676 2016-09-13 16:11:37 +02:00
Domen Kožar
eb25ce7fbf nova: more transient errored test cases 2016-09-13 16:08:43 +02:00
Domen Kožar
b6ed924d21 fix eval
(cherry picked from commit 2ff10415bc)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-13 10:55:23 +02:00
Domen Kožar
635b48d373 xburst-tools: doesn't build on 32bit linux 2016-09-13 10:37:39 +02:00
Domen Kožar
8479962862 pijul: build only on 64bit platforms 2016-09-13 10:33:52 +02:00
Domen Kožar
8134c7a34b glance: disable tests 2016-09-13 10:02:23 +02:00
Domen Kožar
d272bcfe24 nova: remove transient error test 2016-09-13 09:55:00 +02:00
Charles Strahan
42a34a713d redis-desktop-manager: fix build (#18543)
We need to run the pre/post configure hooks.
(cherry picked from commit 3e7bb6579b)

Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-13 09:45:47 +02:00
Domen Kožar
2adbd13f95 pypeg2: disable tests on py3k 2016-09-13 09:42:38 +02:00
Nikolay Amiantov
9640439038 displaylink service: init
(cherry picked from commit bc493ccfcc)
2016-09-13 02:00:35 +03:00
Nikolay Amiantov
0782b65059 linuxPackages.displaylink: init at 1.1.62
(cherry picked from commit fbf6a97b04)
2016-09-13 02:00:28 +03:00
Luca Bruno
c63e97c34a Merge pull request #18545 from exi/fix-mumble-vm-test
mumble: fix failing vm tests
2016-09-12 22:24:34 +01:00
Reno Reckling
e087b0d12f mumble: fix failing vm tests
modify tests to not fail if the event handlers are
registered too slowly or if the wrong window is in focus
2016-09-13 00:07:48 +03:00
Domen Kožar
f11be0f067 Merge pull request #18539 from exi/kmymoney-patch-note
kmymoney: add test patch note
2016-09-12 17:00:59 +02:00
Reno Reckling
96bb13a439 kmymoney: add test patch note
Add a note about when to remove the 32bit test fix patch.
2016-09-12 17:55:24 +03:00
Frederik Rietdijk
49c43dbfe9 mendeley: 1.16.2 -> 1.16.3
(cherry picked from commit 44dc13aad6)
2016-09-12 14:21:07 +02:00
Domen Kožar
cb27e0b9ba Merge pull request #18534 from exi/vm/kmymoney-test-fix
kmymoney: fix build on 32bit machines
2016-09-12 13:36:26 +02:00
exi
f4618e14b9 Fix kmymoney test build failure on 32bit 2016-09-12 13:58:54 +03:00
Bjørn Forsman
df15fb0552 android-studio: enable Android emulator support
These changes are needed to be able to run the system emulator (QEMU)
from Android Studio. In addition to the added dependencies,
$LD_LIBRARY_PATH had to be changed from --set to --prefix, so that libGL
is found (on NixOS).

(cherry picked from commit 3e5fe418f8)
2016-09-12 11:04:45 +02:00
Domen Kožar
dccf8c5f27 qgis: fix build 2016-09-11 21:19:53 +02:00
Joachim Fasting
aabc475b50 grsecurity: 4.7.2-201608312326 -> 4.7.3-201609072139
(cherry picked from commit 91674b75d3)
2016-09-11 16:38:07 +02:00
Tuomas Tynkkynen
9f703ba237 release-lib: Remove unused allowTexliveBuilds option
This is dead code since the old monolithic TeXLive was dropped in
da421bc75f.

(cherry picked from commit 628c86c51a)
2016-09-11 01:16:05 +03:00
Tuomas Tynkkynen
cac93c92af vlc_npapi: Fix hash
(cherry picked from commit ffddcc8807)
2016-09-11 00:22:21 +03:00
Christian Gram Kalhauge
ac6ec1d876 Make the implementation clean
(cherry picked from commit 1a08805358)
2016-09-10 22:15:28 +02:00
Christian Gram Kalhauge
f920e4fae5 Change if to optionalString
(cherry picked from commit 9bca29d4ef)
2016-09-10 22:15:27 +02:00
Christian Gram Kalhauge
b32f8b144e Reduce computation time for non-darwin users
(cherry picked from commit de5a2ee034)
2016-09-10 22:15:26 +02:00
Christian Gram Kalhauge
87ab5fa503 Fix DLYD problem with haskell libraries on Darwin
This commit fixes a problem that occurs with externally linked haskell
libraries on Darwin. It does this by adding the libraries to the
--extra-lib-dirs flag and the DYLD_LIBRARY_PATH environment variable.

(cherry picked from commit 475c8bfb7d)
2016-09-10 22:15:26 +02:00
Frederik Rietdijk
961b15951e julia-git: mark as broken for i686
(cherry picked from commit 3c42ff35ce)
2016-09-10 19:00:30 +02:00
Frederik Rietdijk
1198584b3c julia: mark as broken for i686
(cherry picked from commit f6c2afc423)
2016-09-10 19:00:30 +02:00
Joachim Fasting
95fe69ef38 purePackages.glpk: fix build
Add gmp.dev to the include path to help glpk find gmp.h.

https://github.com/NixOS/nixpkgs/issues/18209
(cherry picked from commit 16769a6b4a)
2016-09-10 17:42:52 +02:00
Jascha Geerds
f0d1ac6062 tmuxp: Add pytest-rerunfailures to dependencies
(cherry picked from commit 6fc67944bf8a9841b649c8d36f852ce65bbae0e1)
2016-09-10 12:25:29 +02:00
Jascha Geerds
074013bca5 pytest-rerunfailures: init at 2.0.1
(cherry picked from commit 6ddf8f31d3998e464c10fdb59385bf79cf08ef09)
2016-09-10 12:25:29 +02:00
Josef Kemetmueller
ff25c5e21a python3.x: Patch extra stack size on darwin
Compiling python with "-Wl,-stack_size,1000000" causes problems when
compiling for example pygobject3. pygobject3 uses "python3.x-config
--ldflags" during installation and then fails when
"-Wl,-stack_size,1000000" is present. Maybe we should investigate
removing this during the build of pyobject3, but this stack_size flag is
also not used on the popular darwin homebrew-core channel for python3.5,
so it seems safe to remove it.

(cherry picked from commit b7819e38c4)
2016-09-10 11:31:56 +02:00
Josef Kemetmueller
81d95ed12d pygobject3: Add missing dependencies (for darwin)
The packages "which" and "ncurses" are needed for building pygobject3
(on darwin) during the checkPhase. The ncurses library is necessary only
because python3.5 is currently built using "-lncurses" and pygobject3
wants the same libraries that python3.5 was compiled with. (Because it
uses "python3.5-config --ldflags" during the build)

(cherry picked from commit 717c76716f)
2016-09-10 11:31:47 +02:00
Josef Kemetmueller
4dbdb89925 pyqt: Fix darwin build
(cherry picked from commit d12de90e1c)
2016-09-10 11:31:30 +02:00
Vladimír Čunát
676531d575 libav: 11.7 -> 11.8
(cherry picked from commit 9c0b11e7cd)
2016-09-10 11:27:20 +02:00
Jaka Hudoklin
11cac9d6e2 pythonPackages.docker_compose: 1.6.2 -> 1.8.0
(cherry picked from commit dcf8c63fd4)
2016-09-10 11:15:57 +02:00
Jaka Hudoklin
d5a1841821 pythonPackages.docker: 1.7.2 -> 1.9.0
(cherry picked from commit 5ba271421b)
2016-09-10 11:15:57 +02:00
Jaka Hudoklin
29202ae51b pythonPackages.ipaddress: 1.0.15 -> 1.0.16
(cherry picked from commit d456ec5c76)
2016-09-10 11:15:57 +02:00
Domen Kožar
d171c59926 Remove test leftover from docker-registry 2016-09-10 10:49:34 +02:00
Thomas Tuegel
58674bc221 openblas: 0.2.17 -> 0.2.19
(cherry picked from commit d94abcb157)
2016-09-09 19:44:18 -05:00
michael bishop
69dde54420 toxvpn: 20160606 -> 2016-09-09
Closes #18459

(cherry picked from commit 2d6443aa71)
2016-09-10 00:46:22 +01:00
Vladimír Čunát
b42e72be4b pythonPackages.qscintilla: fixup build
It's the same as fcc76325ef.

(cherry picked from commit 31c719cf8e)
2016-09-10 01:10:19 +02:00
Vladimír Čunát
ac11b2a1ac gccgo-4.8: remove
I see no use to keep it. I doesn't build since April,
and noone has bothered to fixup the multiple-output problem.

(cherry picked from commit f348e6ff5a)
2016-09-10 00:53:45 +02:00
Vladimír Čunát
36ef583e47 gcc45, gnat, ghdl: fix up the builds
Some parts are slightly puzzling, but it seems to work and it didn't
seem economical to put more effort into it.

(cherry picked from commit 001bde3df0)
2016-09-10 00:33:20 +02:00
Vladimír Čunát
05eef3fc60 Merge #18434: slack: 2.1.0 -> 2.1.2
(cherry picked from commit c0555991b2)
2016-09-09 21:47:39 +02:00
Domen Kožar
8f1876858e Remove docker-registry as it's deprecated #18209
(cherry picked from commit fed3501b07)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-09 18:52:02 +02:00
Russell O'Connor
dbcee4f172 duplicity: add dependency on rsync
When using the rsync:// protocol, duplicity expects to find the rsync binary in the path.
Without rsync in the path, duplicity fails with the following error

    Attempt 1 failed. AttributeError: 'NoneType' object has no attribute 'rfind'

Adding rsync to the path enables the rsync:// protocol to work correctly.

(cherry picked from commit 8df0bb7aac)
2016-09-09 18:38:59 +02:00
Thomas Tuegel
701f02a6ee nixos/tests/kde5: rename from sddm-kde5 and run by default 2016-09-09 10:11:41 -05:00
Thomas Tuegel
1f510dc7cd nixos/tests/sddm-kde5: don't run tests through krunner 2016-09-09 10:11:41 -05:00
Domen Kožar
d56bf31655 renpy: fix build after multiple outputs 2016-09-09 16:44:58 +02:00
Kamil Chmielewski
55f91c2e25 python27Packages.cairocffi: FIX test_scaled_font
workaround for https://github.com/Kozea/cairocffi/issues/88

(cherry picked from commit 9e18b81ded)
Signed-off-by: Domen Kožar <domen@dev.si>
(cherry picked from commit e4d62926d6)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-09 16:17:44 +02:00
Matt Billenstein
d59886e798 mongodb: 3.2.1 -> 3.2.9
[Bjørn: add missing hash update.]

(cherry picked from commit a83f70c249)
2016-09-09 16:08:45 +02:00
Domen Kožar
ace7bbb06c pypeg2: 2.15.1 -> 2.15.2 (fix build) 2016-09-09 16:04:32 +02:00
Domen Kožar
ac46759f7a pythonPackages.libtmux: fix build 2016-09-09 16:04:32 +02:00
José Romildo Malaquias
3ab9be268f feh: avoid using xlibsWrapper
(cherry picked from commit 8f6af86d5e)
2016-09-09 15:35:26 +02:00
José Romildo Malaquias
4bd3905c67 feh: perlPackages needed only at build time
(cherry picked from commit 91e4e31847)
2016-09-09 15:35:25 +02:00
José Romildo Malaquias
9d651174a8 feh: 2.16.1 -> 2.17.1
(cherry picked from commit 82dba95079)
2016-09-09 15:35:24 +02:00
Peter Pickford
36e67af6ba eclipse-plugin-rustdt: init at 0.6.2
[Bjørn: sort alphabetially in plugins.nix, capitalize meta.description,
add space around assignment operator, indent multi-line string.]

(cherry picked from commit efb5206701)
2016-09-09 15:18:45 +02:00
Lengyel Balázs
2a5c14ba02 Linux-kernel: Workaround for https://github.com/NixOS/nixpkgs/issues/18451
remove after upstream gets fixed

(cherry picked from commit 127924954b)
2016-09-09 06:30:34 -04:00
Moritz Ulrich
039a4fa3a3 mars: Fix build caused by missing GL/glu.h import 2016-09-09 11:29:31 +02:00
Joachim Fasting
bb09a038df busybox: fix static build
The static build fails with undefined references to __memcpy_chk when
the fortify hardening is enabled.

(cherry picked from commit 099584a27c)
2016-09-09 04:51:18 +02:00
Bjørn Forsman
58afe19066 plantuml: 8037 -> 8047
(cherry picked from commit daf068c33b)
2016-09-08 23:20:23 +02:00
Jörg Thalheim
074d527e71 bcc: install documentation not as an executable
in bcc/tools documentation was wrapped as an executable

(cherry picked from commit e2991cc70b)
2016-09-08 22:50:06 +02:00
Jörg Thalheim
e1981dee75 bcc: git-2016-05-18 -> git-2016-08-30
(cherry picked from commit c58f6e62de)
2016-09-08 22:50:06 +02:00
Robert Helgesson
5bd8c5d85f josm: 10786 -> 10966
(cherry picked from commit 348ee0ae18)
2016-09-08 21:02:05 +02:00
Robert Helgesson
5671ed55a8 josm: 9979 -> 10786
(cherry picked from commit 1f45a852d3)
2016-09-08 21:01:54 +02:00
Rahul Gopinath
3d8fca40f2 mono: init at 4.6
(cherry picked from commit 3ddf76c00a)
2016-09-08 20:23:52 +02:00
Bjørn Forsman
760c2affb4 sablotron: update source URL
The current URL no longer works, switch to a sourceforge mirror URL.
Fixes issue #18337.

(cherry picked from commit 7ffbe5174f)
2016-09-08 19:44:55 +02:00
Peter Simons
277efdd50e haskell-servant-router: don't run the test suite
It times out after 2 hours: http://hydra.nixos.org/build/40065332.
2016-09-08 17:38:57 +02:00
Lancelot SIX
f33c592a68 wireshark: 2.0.5 -> 2.2.0
Release note:
https://www.wireshark.org/docs/relnotes/wireshark-2.2.0.html

Security related annonces related to 2.0.5 (subject to denial of
service attack):

https://www.wireshark.org/security/wnpa-sec-2016-50.html
https://www.wireshark.org/security/wnpa-sec-2016-51.html
https://www.wireshark.org/security/wnpa-sec-2016-52.html
https://www.wireshark.org/security/wnpa-sec-2016-53.html
https://www.wireshark.org/security/wnpa-sec-2016-54.html
https://www.wireshark.org/security/wnpa-sec-2016-55.html
(cherry picked from commit 33300d380b)
2016-09-08 16:55:34 +02:00
Thomas Tuegel
0ac3d8d962 Merge pull request #18409 from ttuegel/release-16.09
r-stringi: fix build by including icu.dev output
2016-09-08 09:49:58 -05:00
Thomas Tuegel
2cfa449139 Merge pull request #18414 from ttuegel/qt-5.7-fixes
Qt 5.7 fixes
2016-09-08 09:47:30 -05:00
Bryan Gardiner
4b7c3f2340 taskjuggler: add 3.5.0, keep 2.4.3
Version 3.5.0 was present but was removed in 8085f08.  Keeping the old version
per discussion at https://github.com/NixOS/nixpkgs/pull/845.

(cherry picked from commit df6827a824)
2016-09-08 16:20:09 +02:00
Eric Sagnes
e3bdf6bd1f nixos: unbreak influxdb test (due to new API)
Data from the documentation example[1] was used.

[1] https://docs.influxdata.com/influxdb/v1.0/guides/writing_data/

[Bjørn: change commit message.]

(cherry picked from commit f39f829441)
2016-09-08 15:23:04 +02:00
Peter Simons
541bd5ccce darcs: switch default build to GHC 8.x 2016-09-08 15:02:38 +02:00
Peter Simons
dd17435c56 cryptol: switch default build to GHC 8.x 2016-09-08 15:02:08 +02:00
Peter Simons
fc0c9b4b7c git-annex: fix GHC 8.x build 2016-09-08 14:56:05 +02:00
Peter Simons
52984329a6 jhc: 32 bit builds are broken in "vector"
http://hydra.nixos.org/build/40060997/nixlog/1/raw
2016-09-08 14:31:42 +02:00
Peter Simons
177b76cbd6 haste-compiler: mark as broken
Configuring haste-compiler-0.5.5.0...
  Setup: At least the following dependencies are missing:
  HTTP -any,
  bzlib -any,
  either -any,
  ghc-simple -any,
  system-fileio -any,
  tar -any
2016-09-08 14:20:50 +02:00
Peter Simons
fe791748e6 haste-cabal-install: mark as broken
The build depends on the broken haste-Cabal package.
2016-09-08 14:20:49 +02:00
obadz
588e17bc67 vrpn: 07.30 -> 2016-08-27
Helps with #18209

(cherry picked from commit 4ff7facccc)
2016-09-08 13:05:27 +01:00
Jascha Geerds
4cd5fbc577 tmuxp: Add dependency to pytest 2016-09-08 13:49:30 +02:00
Jascha Geerds
206bfbb32f hipchat: Add dependency to libtool
This commit fixes some broken context menus
2016-09-08 13:32:08 +02:00
Manav Rathi
b95d3b1066 txt2man: mention runtime dependencies on gawk and coreutils
The commit message in 1a2b47463b is
incorrect -- the package seemed to work because only the help message
was invoked:

    result/bin/txt2man -h

To guard against such trivial successes, this commit introduces a
test.

(cherry picked from commit 440d721915)
2016-09-08 13:08:43 +02:00
Peter Pickford
4d3d58371b eclipse-cpp-46: init at 4.6.0
[Bjørn: fix hash for i686-linux (was wrong length), remove backward
compatibility attribute alias (not needed for new packages), change
commit message (this adds a package, it doesn't upgrade / change
existing one).]

(cherry picked from commit 7c8f19b31b)
2016-09-08 12:15:39 +02:00
Manav Rathi
97f992c846 txt2man: enable darwin platform
Tested on Mac OS X 10.10, Nix 1.11.4 with:

    nix-build -A txt2man
    result/txt2man

(cherry picked from commit 1a2b47463b)
2016-09-08 11:32:53 +02:00
Thomas Tuegel
2763906104 qt5.vlc: mark broken with Qt 5.7 2016-09-07 21:00:41 -05:00
Thomas Tuegel
7c063d0f1e qt5.poppler: fix build with Qt 5.7 2016-09-07 21:00:41 -05:00
Thomas Tuegel
ca4a22eac8 qt5.mlt: fix build with Qt 5.7 2016-09-07 21:00:40 -05:00
rushmorem
0cc6254c10 nomad: v0.4.0 -> v0.4.1
(cherry picked from commit c6938be57c)
2016-09-08 01:41:36 +02:00
Tuomas Tynkkynen
0409b3cd2e uboot: Fix build
(cherry picked from commit 1517c80462)
2016-09-08 02:37:40 +03:00
Thomas Tuegel
19d1e0fc5e r-stringi: fix build by including icu.dev output
(cherry picked from commit 787875c287)
2016-09-07 17:20:36 -05:00
Michael Raskin
af45cc474b pythonPackages.pyqt4: actually use dbus-python to build dbus.mainloop.qt; fixes ffadoFull build
(cherry picked from commit 16ce4fa511)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 23:46:35 +02:00
Peter Simons
857a4f09c2 configuration-hackage2nix.yaml: disable failing Haskell builds
Pinging @psibi for persistent-mysql and persistent-zookeeper.
2016-09-07 19:18:26 +02:00
aszlig
1db685796f nixos/stage2: Fix mounting special filesystems
This partially reverts commit ab9537ca22.

From the manpage of systemd-nspawn(1):

  Note that systemd-nspawn will mount file systems private to the
  container to /dev, /run and similar.

Testing this in a shell turns out:

$ sudo systemd-nspawn --bind-ro=/nix/store "$(readlink "$(which ls)")" /proc
Spawning container aszlig on /home/aszlig.
Press ^] three times within 1s to kill container.
/etc/localtime does not point into /usr/share/zoneinfo/, not updating
container timezone.
1          execdomains  kpageflags    stat
acpi       fb           loadavg       swaps
asound     filesystems  locks         sys
buddyinfo  fs           meminfo       sysrq-trigger
bus        interrupts   misc          sysvipc
cgroups    iomem        modules       thread-self
cmdline    ioports      mounts        timer_list
config.gz  irq          mtrr          timer_stats
consoles   kallsyms     net           tty
cpuinfo    kcore        pagetypeinfo  uptime
crypto     key-users    partitions    version
devices    keys         scsi          vmallocinfo
diskstats  kmsg         self          vmstat
dma        kpagecgroup  slabinfo      zoneinfo
driver     kpagecount   softirqs
Container aszlig exited successfully.

So the test on whether PID 1 exists in /proc is enough, because if we
use PID namespaces there actually _is_ a PID 1 (as shown above) and the
special file systems are already mounted. A test on the $containers
variable actually mounts them twice.

This unbreaks NixOS containers and I've tested this against the
containers-imperative NixOS test.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @rickynils, @shlevy, @edolstra
(cherry picked from commit dd98b6fb9f)
2016-09-07 18:27:51 +02:00
Michael Raskin
b8b928b561 libchop: a hack to work around broken guile path detection
(cherry picked from commit 6795952149)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 18:24:12 +02:00
Domen Kožar
4445096516 Revert "travis: only fetch top commit"
This reverts commit 3c0fdefd84.

We have to keep more history because travis build could be
triggered after new commit is made, meaning it won't be able
to checkout the repository.

(cherry picked from commit e986cb3425)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 17:15:56 +02:00
aszlig
d664de018c nixos/tests/blivet: Fix btrfs-related tests
The loopback-based tests use a storage size of 102400 blocks (one block
is 1024 bytes), which doesn't seem to fit for btrfs volumes in recent
btrfs versions. I'm setting this to 409600 (400 MB) now so that it
should be enough for later versions in case they need even more space
for subvolumes.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 75efdc6502)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 16:51:09 +02:00
Domen Kožar
ef9e2154e2 xulrunner: set to firefox-unwrapped 2016-09-07 16:50:31 +02:00
Bjørn Forsman
ddc54b3137 Fix eval (due to xulrunner removal)
(cherry picked from commit 10b335992e)
2016-09-07 15:10:03 +02:00
Alexey Shmalko
4721a689cd avahi-daemon: remove default browse-domains
These domains are not actually default but examples. See
https://github.com/lathiat/avahi/blob/master/avahi-daemon/avahi-daemon.conf#L24
for default config.

(cherry picked from commit b7237abc08)
2016-09-07 15:05:42 +02:00
Bjørn Forsman
f353c67cb8 mcelog: add utillinux as dependency
Fixes this:

  $ sudo mcelog
  ...
  unknown-error-trigger: line 21: logger: command not found
  unknown-error-trigger: line 22: logger: command not found

(cherry picked from commit 2bf421d197)
2016-09-07 15:05:42 +02:00
Alexander Ried
441fe73d56 ignition-transport: fix cmake file
(cherry picked from commit 7a623aec47)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:57:30 +02:00
Alexander Ried
4aa91b7e6f gazebo.sdformat: fix cmake file
(cherry picked from commit b6be650608)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:57:26 +02:00
Eelco Dolstra
879d4a3439 xulrunner: Remove
(cherry picked from commit 8c3e9ea53e)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:56:19 +02:00
Eelco Dolstra
ba7d8230e4 chatzilla: 0.9.91 -> 0.9.92
(cherry picked from commit 445a39a23b)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:56:17 +02:00
Michael Raskin
7e82414afe octave: fix overridePlatforms (was just platforms) name collision, thanks to @bjornfor for catching
(cherry picked from commit d9c76736cc)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:24:48 +02:00
Michael Raskin
30da9a16a8 octave: forbid 32-bit builds of the octaveFull version, looks like too much memory needed
(cherry picked from commit 472ac50f5b)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:24:38 +02:00
Alexander Ried
d93ee7d457 linphone: remove lime support
linphone stil uses polarssl, which was replaced by mbedTLS and is no
more available on NixOS.
Until this is fixed upstream we disable LIME (IM encryption).

(cherry picked from commit 273898f4ba)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:20:09 +02:00
Alexander Ried
77ae4d1c71 linphone: 3.8.5 -> 3.9.1
3.10.2 is available from github but there is no autoconfigured tarball
and they added a dependency that's not packaged for nix (bctoolbox)

(cherry picked from commit 53c4003559)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 14:20:09 +02:00
Peter Simons
c355c9f121 hackage-packages.nix: update Haskell package set
This update was generated by hackage2nix v2.0.1-6-geb712e9 using the following inputs:

  - Hackage: 306f478c30
  - LTS Haskell: d7ece2dc93
  - Stackage Nightly: e911d6ed33
2016-09-07 12:10:07 +02:00
Peter Simons
65a4aee8e2 configuration-hackage2nix.yaml: enable all builds to see which ones work and which ones don't 2016-09-07 12:09:57 +02:00
Rickard Nilsson
f3278b3c75 nixos: Generalise the container tests in stage-2 boot
This way, stage-2 behaves correctly also for libvirt-lxc containers.

Some more discussion on this:
a7a08188bf
bfe46a653b

(cherry picked from commit ab9537ca22)
2016-09-07 06:07:43 -04:00
Tuomas Tynkkynen
ef23048571 perlPackages.MozillaLdap: Reference correct output of openldap
(cherry picked from commit c57d6821aa)
2016-09-07 13:02:12 +03:00
aszlig
775379188f qtkeychain: Fix install of translations
The following doesn't seem to be quite right and I have missed this when
I was introducing qtkeychain in the first place:

-- Installing: /nix/store/...-qtkeychain-0.4.0/$out/share/qt/translations/qtkeychain_de.qm
-- Installing: /nix/store/...-qtkeychain-0.4.0/$out/share/qt/translations/qtkeychain_ro.qm

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit da24fbd0ec)
2016-09-07 12:00:29 +02:00
Domen Kožar
e7adde7abb Make /var/empty immutable
Fixes #14910 and #18358

Deployed to an existing server, restarted sshd and polkit to verify
they don't fail.'

(cherry picked from commit 8f95e6f6aa)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 11:22:20 +02:00
Michael Raskin
ebe7f35e6f neural-style: restrict to 64-bit Linux because it wants too much RAM
(cherry picked from commit 9d1d0dd546)
2016-09-07 11:48:38 +03:00
obadz
a848859829 uhub: 0.4.1 -> 0.5.0 (fixes build)
@ehmry: please have a look so that we can cherry-pick in release-16.09
and move forward on #18209

(cherry picked from commit 39e197ab1c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:22:09 +02:00
Eelco Dolstra
f0aa5d4dfa nix: 1.11.3 -> 1.11.4
(cherry picked from commit f2ddf2a9be)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:21:15 +02:00
Eelco Dolstra
0f79004d55 nixos-rebuild: Move the Nix fallback store paths into a separate file
(cherry picked from commit 1fef99942e)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:21:10 +02:00
Michael Raskin
3b65b84c4c baresip: fix build by manually forcing feature flags for fresh glibc time.h
(cherry picked from commit 71fe391ac1)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:20:25 +02:00
Franz Pletz
8f22e43985 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:16:45 +02:00
Franz Pletz
81861dd07c 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:09:34 +02:00
Franz Pletz
2e89d5cae1 chromium: update to latest channel releases (security)
Fixes the following security problems:

- CVE-2016-5147: Universal XSS in Blink
- CVE-2016-5148: Universal XSS in Blink
- CVE-2016-5149: Script injection in extensions
- CVE-2016-5150: Use after free in Blink
- CVE-2016-5151: Use after free in PDFium
- CVE-2016-5152: Heap overflow in PDFium
- CVE-2016-5153: Use after destruction in Blink
- CVE-2016-5154: Heap overflow in PDFium
- CVE-2016-5155: Address bar spoofing
- CVE-2016-5156: Use after free in event bindings
- CVE-2016-5157: Heap overflow in PDFium
- CVE-2016-5158: Heap overflow in PDFium
- CVE-2016-5159: Heap overflow in PDFium
- CVE-2016-5160: Extensions web accessible resources bypass
- CVE-2016-5161: Type confusion in Blink.
- CVE-2016-5162: Extensions web accessible resources bypass
- CVE-2016-5163: Address bar spoofing
- CVE-2016-5164: Universal XSS using DevTools
- CVE-2016-5165: Script injection in DevTools
- CVE-2016-5166: SMB Relay Attack via Save Page As
- CVE-2016-5167: Various fixes from internal audits, fuzzing and other initiatives

(cherry picked from commit 7949e69382)
2016-09-07 04:51:57 +02:00
obadz
0271f37026 haskellPackages.haste-Cabal: mark as broken
(cherry picked from commit 973fd1aae1)
2016-09-07 01:36:01 +01:00
obadz
d0bf7858d2 seq24: fix build failures due to name clash in "mutex" class
(cherry picked from commit d9db8a9bf5)
2016-09-07 01:33:16 +01:00
Nikolay Amiantov
1a80033f77 nixos containers: hopefully fix test failures
(cherry picked from commit aed2cd32f8)
2016-09-07 03:06:40 +03:00
Alexander Ried
4d29dcccda security.acme: remove loop when no fallbackHost is given 2016-09-06 23:06:11 +02:00
Alexander Ried
cb9052fb0b security.acme: the client really needs networking
Actually this can be improved since the client only needs network
connectivity if it needs to renew the certificate.
2016-09-06 23:06:08 +02:00
Tuomas Tynkkynen
d7cccd8e62 qt5: Fix qt5X.full
Use dev outputs explicitly since they aren't the first output since the
recent changes.

(cherry picked from commit c5e9049ac3)
2016-09-06 23:43:25 +03:00
Tuomas Tynkkynen
259f32dc71 pythonPackages.keystoneclient: Disable tests
````
run_tests.sh: interpreter directive changed from "/bin/bash" to "/nix/store/nyj6xd7s1n1w8c0xdwk5ddhi7bjcyi9x-bash-4.3-p46/bin/bash"
No virtual environment found...create one? (Y/n) builder for ‘/nix/store/qcrhq2f7llvzyc37ili94ff50z7vlgn3-python2.7-keystoneclient-1.8.1.drv’ failed with exit code 1
error: build of ‘/nix/store/qcrhq2f7llvzyc37ili94ff50z7vlgn3-python2.7-keystoneclient-1.8.1.drv’ failed
````

(cherry picked from commit 2ae5fb2723)
2016-09-06 22:04:08 +03:00
Tuomas Tynkkynen
4324188770 honcho: Fix hash
(cherry picked from commit 81eb0c20f8)
2016-09-06 22:03:56 +03:00
Rickard Nilsson
379d23fb98 nodePackages.elasticdump: init at 2.4.2
(cherry picked from commit 28e378d462)
2016-09-06 18:22:37 +00:00
Robert Helgesson
56c742d9d5 ugarit: bump aes input from 1.3 to 1.5
(cherry picked from commit d0c2c99571)
2016-09-06 19:31:39 +02:00
José Romildo Malaquias
18a4caf277 qtcreator: enable checking
(cherry picked from commit 288cf9fa2a)
2016-09-06 18:44:34 +02:00
José Romildo Malaquias
6ff937f3b6 qtcreator: 3.6.1 -> 4.1.0
(cherry picked from commit c91dcacf1b)
2016-09-06 18:44:34 +02:00
Robin Gloster
24a48c94c9 vp: fix build
(cherry picked from commit 9ab141ce27)
2016-09-06 16:52:52 +02:00
Rickard Nilsson
9fb82d1864 haskellPackages.lens: Fix dependencies for ghc7.10.x
(cherry picked from commit 28ceb0f31a)
2016-09-06 10:26:56 +02:00
Rickard Nilsson
72e6be399f libvirt and pythonPackages.libvirt: 2.1.0 -> 2.2.0
(cherry picked from commit 3d03d3e615)
2016-09-06 07:51:12 +02:00
Ram Kromberg
17ff46f8c0 man-db: set troff command correctly (#18333)
(cherry picked from commit 0b469a6725)
2016-09-06 04:24:10 +02:00
Franz Pletz
7c377f8fb9 batman-adv: 2016.2 -> 2016.3
(cherry picked from commit 9a2065ff2a)
2016-09-06 04:02:30 +02:00
Alexander Ried
6f5f20fca6 tomcat5: remove since it's end of life (#18341)
Source is not available anymore.
(cherry picked from commit 36e8df19e1)
2016-09-06 04:02:29 +02:00
Alexander Ried
6fc760270e fstar: remove workaround (#18331)
As the comment indicates this was a workaround that has since been fixed
upstream.
(cherry picked from commit 3beacc4dbe)

Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-06 00:09:41 +02:00
Graham Christensen
c763064331 Merge pull request #18326 from rvl/nixos-tests-pump.io
nixos/tests/pump.io: Fix systemd unit config
2016-09-05 17:58:05 -04:00
Shea Levy
cb9b311025 nixBufferBuilders.withPackages: Make more legible, special-case proof-general.
There's some bigger changes coming, but thought I'd push this first...

(cherry picked from commit b04cdae902)
2016-09-05 17:55:58 -04:00
Rodney Lorrimar
3fd603c02f nixos/tests/pump.io: Fix systemd unit config
Ref #18209
2016-09-05 21:21:06 +01:00
Robert Helgesson
5aa587d1f5 opencascade: fix build
(cherry picked from commit 3d0c9ba599)
2016-09-05 22:01:06 +02:00
Tuomas Tynkkynen
25da414a90 swt: Add libXt
Not sure what change made this to be required. It was probably
propagated by something previously.

(cherry picked from commit 6ee4fd834f)
2016-09-05 20:18:35 +03:00
obadz
0659e20fbd minc_tools: don't run tests which have been failing since first pkged
(cherry picked from commit 2919375c91)
2016-09-05 17:27:52 +01:00
Domen Kožar
261d51971a openmodelica: enable parallel building 2016-09-05 18:05:22 +02:00
Domen Kožar
5248178c20 gnome3.evolution: set big-parallel 2016-09-05 18:05:22 +02:00
Domen Kožar
2ef4e9e9d5 webkitgtk24: build in parallel until #18312 2016-09-05 18:05:22 +02:00
Shea Levy
50e3737c1a Initial version of nixBufferBuilders.withPackages.
This builds elisp to setup an emacs buffer with the packages given
available. See shlevy/nix-buffer for more information.

Currently only modifies $PATH.

(cherry picked from commit 05c132486d)
2016-09-05 12:03:48 -04:00
Tuomas Tynkkynen
3c878fb9ca gnome2.gnome_panel: Fix build
(cherry picked from commit 8f023eb129)
2016-09-05 18:56:49 +03:00
Shea Levy
97da032711 proofgeneral_HEAD: bump
(cherry picked from commit d1154edf44)
2016-09-05 11:43:19 -04:00
obadz
5d643e0829 gtk-sharp-*: remove references to gnomepanel
gnomepanel was part of Gnome 2 and is currently broken.

There seemed to be no runtime dependency to gnomepanel and building also
seems to work fine without it.

(cherry picked from commit 1a5bb68696)
2016-09-05 16:18:59 +01:00
Lancelot SIX
396ffac28f netcdf-mpi: fix compiler: use mpicc
Use mpicc to build when mpi support is required (instead of regular gcc)
2016-09-05 16:27:35 +02:00
Peter Hoeg
d6e2aad880 vagrant: 1.8.4 -> 1.8.5 (#18283)
Includes https://github.com/mitchellh/vagrant/pull/7611 to fix issue with permissions on ~/.ssh/authorized_keys.
(cherry picked from commit a359d330dc)
2016-09-05 14:45:56 +02:00
Tom Hunger
d6053809ec nose-parameterized: re-enable for python2 by disabling tests.
(cherry picked from commit 70b6be3e36)
2016-09-05 14:03:09 +02:00
Domen Kožar
a29f6a5e8e libreoffice: set big-parallel hydra feature to build it quicker
For example http://hydra.nixos.org/build/39781012 took 6h
2016-09-05 12:49:21 +02:00
Ignat Loskutov
dbde90db82 sway: 0.8 -> 0.9
(cherry picked from commit b577f2997e)

Fixes build against recent wlc (c45f525cbc)
2016-09-05 00:59:36 +02:00
Lancelot SIX
c47eb4a43a salut_a_toi: Fix typo in build phase 2016-09-04 19:19:42 +02:00
Domen Kožar
72ed67a3c2 setuid-wrappers: correctly umount the tmpfs
(cherry picked from commit 393e646e4f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 18:08:02 +02:00
Tuomas Tynkkynen
aa38696a25 linuxPackages_testing: Don't recurseIntoAttrs
The -rc kernels are quite likely to break out-of-tree modules and thus
cause unnecessary Hydra failures.

(Note that linux_testing already has `hydraPlatforms = [];` but that
does not prevent the package from being built since it has reverse
dependencies. Arguably that could be considered undesirable and thus
fixing that could be considered the proper fix, but this should do
for now.)

(cherry picked from commit c536a3fa2f)
2016-09-04 18:50:06 +03:00
Alexander Ried
5dad7cb50d orbment: git-2016-01-31 -> git-2016-08-13
(cherry picked from commit ee1b7f9879)
2016-09-04 16:30:48 +02:00
Alexander Ried
c45f525cbc wlc: 1.3 -> 1.5
use system-wide chck and wayland-protocols
enable tests

(cherry picked from commit 0d75166252)
2016-09-04 16:30:48 +02:00
Alexander Ried
5d46ddf3f1 wayland-protocols: 1.4 -> 1.7
(cherry picked from commit 73a4a917ec)
2016-09-04 16:30:48 +02:00
Nikolay Amiantov
09168f0e12 crawlTiles: fix build
(cherry picked from commit 5d7adc7b09)
2016-09-04 17:27:50 +03:00
Nikolay Amiantov
1dc5f92487 runVM: mount devpts
(cherry picked from commit 698cadd714)
2016-09-04 17:14:17 +03:00
Aristid Breitkreuz
957869cb99 ispc: detect test failures, restrict platforms 2016-09-04 15:56:52 +02:00
Nikolay Amiantov
f1967edc16 qutebrowser: add cssutils dependency
(cherry picked from commit 9f2c48a7a7)
2016-09-04 15:49:22 +03:00
Jörg Thalheim
f95cf2d8c3 ferm: fix race condition in integration test
curl sent the request faster then nginx bound the port in some cases

(cherry picked from commit 26dc4ab818009bf207f63d3e429e843935f71dee)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 14:34:37 +02:00
Aristid Breitkreuz
2852b6e7b7 ispc: 20151128 -> 1.9.1, fix build 2016-09-04 14:11:09 +02:00
Tuomas Tynkkynen
39d442868c megaglest: Fix build
I'm guessing SDL propagated all this previously.
2016-09-04 14:45:07 +03:00
Vladimír Čunát
83990e1003 Merge #18007: add llvmPackages_39
Equivalent master commit: 4e5ba34d81.
2016-09-04 12:40:21 +02:00
Domen Kožar
ad77176474 ghcjs: fix eval /cc @svanderburg 2016-09-04 11:29:49 +02:00
Vladimír Čunát
8926221e31 lyx: clean the expression a bit
Thanks to Sergiu Ivanov <sivanov@colimite.fr>

(cherry picked from commit 168d6fdf21)
2016-09-04 10:54:14 +02:00
Graham Christensen
2ee59910db Revert "bundix: 2.2.0"
(cherry picked from commit add3d4d45b)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 10:42:49 +02:00
Gabriel Ebner
f2ce502f9c postfix: 3.1.1 -> 3.1.2
(cherry picked from commit 882cc8dc9a)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 10:42:16 +02:00
Karn Kallio
d0c8e65e87 setuid-wrappers : Prepare permissions for running wrappers
The new setuid-wrappers in /run cannot be executed by users due to:

1) the temporary directory does not allow access
2) the /run is mounted nosuid

(cherry picked from commit 8d977ead38)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 10:40:45 +02:00
Profpatsch
84ca6f098e haskell: fix ghcWithHoogle to version 4
Version 5 does not yet work with the ghcWithHoogle infrastructure. This
fixes Hoogle to version 4 as a temporary measure.

(cherry picked from commit f9f680013c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-04 10:40:14 +02:00
Vladimír Čunát
ca1f212071 Merge #18280: pygtk: fix broken symlink
(cherry picked from commit 88ad6593ea)
2016-09-04 10:32:59 +02:00
Jörg Thalheim
8670ce608a ferm: add integration test
(cherry picked from commit 2ed6529444)

Makes sense to have this in the release as well.
2016-09-04 03:11:51 +02:00
Franz Pletz
140afa64c6 itk: 4.0.0 -> 4.10.0, fixes build
See #18209.

(cherry picked from commit c299dfb0fd)
2016-09-04 02:03:33 +02:00
Joachim Fasting
d438e44403 odp-dpdk: 10.10.1.0 -> 2016-08-16
Fixes build against dpdk 16.06

Tested build against linux, linux_latest, linux_3_18, linux_4_1,
linux_4_6, linux_grsec_nixos, linux_chromiumos_3_18.

While this is pre-release, the delta since 10.10.1.0 seems to contain
primarily fixes or internal improvements.

Also cleanup build inputs while we're at it.

(cherry picked from commit 65786ba322)
2016-09-03 23:34:01 +02:00
Karn Kallio
8eed435a07 dejavu-fonts environment collision
After splitting the DejaVuSans.ttf file into a multiple output in the
dejavu_fonts Nixpkgs expression it is not possible to install in the
user profile due to the collision.  The attached patch makes a new
package without the collision for user environment installing.

From fae78903c6ce56eda70a1a9a6914c41d248b15e8 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkallio@skami.org>
Date: Sat, 3 Sep 2016 14:09:36 -0400
Subject: [PATCH] dejavu-fonts : Prepare an environment package without
 collision.

(cherry picked from commit a785cec01b)
2016-09-03 16:43:05 -04:00
Alexander Ried
fcf8b481bf nixos-install.sh: Create /var (#18266)
Got lost in a6670c1a0b
(cherry picked from commit 1542bddcc8)
2016-09-03 19:18:33 +02:00
Joachim F
a86f2170e4 dpdk: 16.04 -> 16.07, fix build against linux 4.7 (#18256)
Tested build against linux_latest and linux_grsec_nixos.

(cherry picked from commit f8b447a6e4)
See https://github.com/NixOS/nixpkgs/issues/18209
2016-09-03 19:16:57 +02:00
Vladimír Čunát
7fd851f613 pyqt*: fixup build to close #18250
I don't know why the builder uses `lndir ${dbus-python} $out`,
but this commit should work around the problem caused by
dbus-python starting to propagate some inputs.

(cherry picked from commit fcc76325ef)
2016-09-03 17:14:52 +02:00
Peter Hoeg
cbb698647c dropbox: 8.4.21 -> 9.4.49
(cherry picked from commit d0ef7140e9)
2016-09-03 16:53:39 +02:00
Joachim Fasting
d2d73595d0 wireguard: disable build against -grsec kernels
Looks to be incompatible with the PaX constification plugin:

> /tmp/nix-build-wireguard-unstable-2016-08-08.drv-0/WireGuard-experimental-0.0.20160808/src/device.c:329:29: error: constified variable 'link_ops' placed into writable section ".data..read_mostly"
 static struct rtnl_link_ops link_ops __read_mostly = {

https://hydra.nixos.org/build/39671573/log/raw

See also https://github.com/NixOS/nixpkgs/issues/18209

(cherry picked from commit ca465eeeb1)
2016-09-03 14:51:29 +02:00
Nikolay Amiantov
51bcbe47c9 SDL: fix OpenGL support
(cherry picked from commit fc0b40328d)
2016-09-03 15:37:43 +03:00
Vladimír Čunát
6fa9c125cb spl: fix evaluation after the parent commit
This doesn't fully fix the tarball job.

(cherry picked from commit 4745341c69)
2016-09-03 14:36:11 +02:00
Shea Levy
a27f1dc013 Merge branch 'broken-spl-on-kernel-4.7' of git://github.com/garbas/nixpkgs into release-16.09
Refs #18209
2016-09-03 08:00:11 -04:00
Rok Garbas
a3f2c9d841 spl: mark it broken on kernels higher then 4.7
until new spl version is release
2016-09-03 13:53:31 +02:00
Vladimír Čunát
e5e45773e1 freeswitch: fix build when sandboxed
(cherry picked from commit 686bb1a6e4)
2016-09-03 13:37:13 +02:00
Robert Helgesson
0f1eaca4bf SDL: fix startup of (some) games using OpenGL
Fixes #18247.

(cherry picked from commit 38bd2c4425)
2016-09-03 12:48:11 +02:00
Michael Raskin
699caea9b0 quantumminigolf: update SDL_ttf include
(cherry picked from commit 47bb8abd08)
2016-09-03 12:03:07 +02:00
Frederik Rietdijk
08c44340b9 pythonPackages.service-identity: fix tests
(cherry picked from commit e4bc2e60a0)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
7d0a59d0d2 pythonPackages.txrequests: disable tests
(cherry picked from commit 7bf1d11452)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
94c056a720 pythonPackages.sqlalchemy: 1.0.14 -> 1.0.15
(cherry picked from commit af52326dcc)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
41059eab37 pythonPackages.setuptools_scm: 1.10.1 -> 1.11.1
(cherry picked from commit 42367202c6)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
fcbcfa25fd pythonPackages.sphinx-jinja: missing dependency pbr
(cherry picked from commit 434f8e4e86)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
ac2869cd21 pythonPackages.sphinxcontrib-spelling: missing dependency pbr
(cherry picked from commit f6a01b9304)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
400fa10a9f pythonPackages.pysqlite: 2.6.3 -> 2.8.3
(cherry picked from commit a09601fcb4)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
bcc36c1256 pythonPackages.pyinotify: no tests
(cherry picked from commit d7e49ed4e3)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
7c2ce1d710 pypy27: 5.3.1 -> 5.4.0
(cherry picked from commit 203004d59a)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
9760c2ddf8 julia: 0.4.5 -> 0.4.6
(cherry picked from commit 57d1edbfc1)
2016-09-03 11:46:16 +02:00
Frederik Rietdijk
13dde89d75 pythonPackages.pyparser: fix tests
(cherry picked from commit ea90815ae8)
2016-09-03 11:46:16 +02:00
Robert Helgesson
69ac966f95 teeworlds: add freetype to build inputs
Fixes undefined references to functions in the freetype library.

(cherry picked from commit 297008b959)
2016-09-03 11:44:14 +02:00
Robert Helgesson
8e3ea885e0 trigger-rally: fix build
Previously failed due to not finding `SDL.h`.

(cherry picked from commit 72f455362c)
2016-09-03 11:33:35 +02:00
Kranium Gikos Mendoza
b78ea7bad3 k3d: 0.8.0.3 -> 0.8.0.5
(cherry picked from commit ed1fcd1b02)
2016-09-03 09:13:29 +03:00
Franz Pletz
924f3c9452 pass: add patch to fix xclipboard handling
This is caused by our coreutils now being built as a single binary.

(cherry picked from commit 493ab7b4fa)
2016-09-03 06:08:06 +02:00
Tuomas Tynkkynen
a87d6a8368 terra: Broken on i686 (and Darwin)
Never built successfully:

http://hydra.nixos.org/build/39402139
http://hydra.nixos.org/build/39393534
(cherry picked from commit 1ed1ed210a)
2016-09-03 03:25:25 +03:00
Tuomas Tynkkynen
fea7b30e1a extremetuxracer: Fix build
Fixes:

````
ft_font.h:24:22: fatal error: ft2build.h: No such file or directory
````

Probably something propagated this previously.
2016-09-03 00:43:17 +03:00
Franz Pletz
f0fd5788c0 systemd: apply patch to fix #18158
See:
 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834367
 - https://github.com/systemd/systemd/issues/3842
2016-09-02 23:40:01 +02:00
Karn Kallio
826d7d0a32 pygobject
In the pygobject package of pythonPackages the codegen python files are
executable and get wrapped, which causes pygtk to not build because it
uses the python program to execute them.  The attached patch makes them
not executable so they do not get wrapped and cause pygtk to fail its
build.

From 931b7998658fa72323c9a76e7b336fe726a9cc61 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkallio@skami.org>
Date: Fri, 2 Sep 2016 15:30:42 -0400
Subject: [PATCH] pygobject: prevent wrapping of codegen/*.py files.

(cherry picked from commit ce3daae51a)
2016-09-02 15:59:19 -04:00
rushmorem
3217c60595 lizardfs: fix building manpages
(cherry picked from commit 757975c439)
2016-09-02 21:56:45 +02:00
Vladimír Čunát
3a0033efe2 ut2004demo: show on x86_64-linux as well
Fixes #18213. Also add a fast mirror; hopefully the URL is persistent.

(cherry picked from commit 9cd2b2bcb4)
2016-09-02 21:29:46 +02:00
Vladimír Čunát
93e3dabbfe Merge #17838: postgresql: Fix use with extensions
(cherry picked from commit 02217bf697)
2016-09-02 21:01:59 +02:00
Frederik Rietdijk
2247f19658 peru: 0.2.3 -> 1.0.1, fix build
(cherry picked from commit 01fafc088a)
2016-09-02 20:52:53 +02:00
obadz
ef8e0d6535 netatalk: fix build (broken since closure-size)
Helps with #18209

(cherry picked from commit d95a29a01a)
2016-09-02 19:39:23 +01:00
Vladimír Čunát
f5c3115063 llvmPackages_39: rc -> 3.9.0 2016-09-02 20:15:11 +02:00
obadz
68670cbf27 perlPackages.DBDSQLite: placate DBIxClass test failure
… by using an older version of SQLite.

Mentioned in #18209 and #18083

(cherry picked from commit 89fc959922)
2016-09-02 17:51:24 +01:00
Tuomas Tynkkynen
159d387031 urbit: Fix build
(cherry picked from commit adf471c83c)
2016-09-02 19:05:58 +03:00
Tuomas Tynkkynen
3e9afa2292 flow: Broken on i686
http://hydra.nixos.org/build/39411311

````
hh_shared.c:142:6: error: #error "hh_shared.c requires a architecture that supports memfd_create"
````
2016-09-02 18:55:25 +03:00
Thomas Tuegel
dca75f91b7 spotify: 1.0.36 -> 1.0.37 (#18218)
(cherry picked from commit 7bc711e0a7)

The old version is no longer available.
2016-09-02 17:14:31 +02:00
zimbatm
5cf72c17f0 packer: fixes compilation issues
* the default output for buildGoPackage is not "out" anymore
* go 1.7 has removed the linker flag deprecation which breaks packer's
  Makefile

(cherry picked from commit 511344a56d8f503c9b6d34404f0b9439863ba507)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-02 17:13:51 +02:00
Vladimír Čunát
de2fc7ed2c Merge #18216: README: Update to 16.09 2016-09-02 17:09:26 +02:00
Vladimír Čunát
00891f783b Merge #18219: mesos: fix build after libc-2.24
(cherry picked from commit be0168f831)
2016-09-02 16:52:47 +02:00
Lancelot SIX
afb874734d pythonPackages.django: 1.10 -> 1.10.1
This is a bugfix release in the 1.10 branch.
See https://docs.djangoproject.com/en/1.10/releases/1.10.1/

(cherry picked from commit d77e00348c)
2016-09-02 16:15:55 +02:00
Tuomas Tynkkynen
5d3d126cdf xorg: Mark obsolete xorgvideo* drivers broken
These are now showing up as broken builds in Hydra since 2daefaf457.
None of these compiled even in 16.03 and I think all of them are
for pretty obsolete hardware, so just mark them as broken.

(In principle the xorg generator could be made to ignore them but that
would be more work.)

(cherry picked from commit 79d673e21c)
2016-09-02 16:39:17 +03:00
Sander van der Burg
0f591992df remarkjs: use node2nix generated expressions 2016-09-02 13:00:52 +00:00
Tim Steinbach
40fd9ae3ac README: Update to 16.09 2016-09-02 08:54:40 -04:00
Shea Levy
b3871e4b7b phc-intel: 0.4.0rev19 -> 0.4.0rev22
Fixes build on linux 4.7

(cherry picked from commit ce0043bf4c)
2016-09-02 07:41:50 -04:00
Sander van der Burg
7bfe580b46 nodePackages: add svgo 2016-09-02 11:32:23 +00:00
Kranium Gikos Mendoza
00d160c3a6 vboot_reference: fix build (#18211)
(cherry picked from commit 0bdec3194a)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-02 12:13:14 +02:00
Kranium Gikos Mendoza
eaf1e4c028 ggz_base_libs: fix build (#18212)
(cherry picked from commit 29e1fb98a2)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-02 12:12:30 +02:00
Rob Vermaas
f3a5949049 bightbox-image.nix: use lib in stead of stdenv.lib. Fixes #18208
(cherry picked from commit d6dbe43af2)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-02 12:09:53 +02:00
Karn Kallio
99cff11b7a glu dev in mesa attribute
After making multiple outputs in the mesa_glu package the headers are
not included in the mesa attribute.  The attached patch puts them in it.

From ced24208a300bea8234e7898ae6fec34fbd67289 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkallio@skami.org>
Date: Thu, 1 Sep 2016 16:18:23 -0400
Subject: [PATCH] mesa: Add the mesa glu headers to the mesa attribute.

(cherry picked from commit 49d59ce0ad)
2016-09-02 05:33:14 -04:00
Nikolay Amiantov
2ea934f27e mjpg-streamer service: restart on failure
(cherry picked from commit 608ee1c7b3)
2016-09-02 11:45:20 +03:00
Sander van der Burg
0b27b17383 wring: use node2nix generated package
(cherry picked from commit 8bedff0e92)
2016-09-01 20:51:23 +00:00
Domen Kožar
668cd2be12 Merge branch 'staging' into release-16.09 2016-09-01 21:32:34 +02:00
Domen Kožar
d6b08acd1c Set channel and version to 16.09 2016-09-01 21:30:49 +02:00
Domen Kožar
7c71a897dd php: 5.6 -> 7.0
I'll probably regret this in testing period, but let's bump php
since 5.6 support expires in December.
2016-09-01 21:11:04 +02:00
Sander van der Burg
20cebe22c4 azure-cli: remove, because it has been supersed by a version generated by node2nix 2016-09-01 19:07:13 +00:00
Frederik Rietdijk
150341bfd1 pythonPackages.jinja2: no tests 2016-09-01 21:04:16 +02:00
Frederik Rietdijk
81191b707d pythonPackages.hypothesis1: remove it
and let dependents use the latest version
2016-09-01 21:02:32 +02:00
Frederik Rietdijk
f3e76de800 Merge pull request #18197 from nand0p/sphinx-1-3-6-test-fix
sphinx: sphinx-1.3.6 test fixup
2016-09-01 21:00:54 +02:00
reltuk
3e695874e2 openjdk: Keep {include,man} in $out/lib/opendjk. (#18140)
* openjdk: Keep {include,man} in $out/lib/opendjk.

This is a standard layout that some JDK consumers expect.

* openjdk/8: Improve clarity of some symlink commands with terminating slash.
2016-09-01 21:00:41 +02:00
Domen Kožar
a6670c1a0b Fixes #18124: atomically replace /var/setuid-wrappers/ (#18186)
Before this commit updating /var/setuid-wrappers/ folder introduced
a small window where NixOS activation scripts could be terminated
and resulted into empty /var/setuid-wrappers/ folder.

That's very unfortunate because one might lose sudo binary.

Instead we use two atomic operations mv and ln (as described in
https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/)
to achieve atomicity.

Since /var/setuid-wrappers is not a directory anymore, tmpfs mountpoints
were removed in installation scripts and in boot process.

Tested:

- upgrade /var/setuid-wrappers/ from folder to a symlink
- make sure /run/setuid-wrappers-dirs/ legacy symlink is really deleted
2016-09-01 20:57:51 +02:00
Данило Глинський (Danylo Hlynskyi)
78cd9f8ebc virtualbox: add headless build (without Qt dependency) (#18026) 2016-09-01 20:54:58 +02:00
Nikolay Amiantov
adaee7352b stdenv: leave SSL_CERT_FILE in shells (#15571) 2016-09-01 20:50:08 +02:00
Tim Steinbach
8a7afae58b openjdk: Fix #17603 2016-09-01 20:47:19 +02:00
Domen Kožar
d163882770 Merge pull request #18172 from Profpatsch/startAt-type
systemd-unit-options: startAt can be a list
2016-09-01 20:44:32 +02:00
Peter Simons
b9b5fcccc5 Merge pull request #18196 from ttuegel/ghc-madv-free
ghc801: disable MADV_FREE
2016-09-01 20:37:10 +02:00
Frederik Rietdijk
014b6e0627 pythonPackages.natsort: broken 2016-09-01 20:26:04 +02:00
Frederik Rietdijk
4d2420e3f8 pythonPackages.pathlib: fix tests 2016-09-01 20:25:12 +02:00
Frederik Rietdijk
7b534d4794 pythonPackages.attrs: fix tests 2016-09-01 20:13:16 +02:00
Frederik Rietdijk
c319c842b7 pythonPackages.hypothesis: remove optional dependencies 2016-09-01 20:10:29 +02:00
Tuomas Tynkkynen
bb18d73323 xfstests: 2016-08-06 -> 2016-08-26
Fixes build.
2016-09-01 21:03:27 +03:00
Tuomas Tynkkynen
85d7d9d254 xfstests: Autodetect what to link in the wrapper 2016-09-01 21:03:27 +03:00
Frederik Rietdijk
d2608c63fd pythonPackages.cryptography: add missing dependency 2016-09-01 19:56:16 +02:00
Kranium Gikos Mendoza
71021a825d gtk-gnutella: disable bindnow/fortify/pic/relro hardening (#18195)
based on debian's settings at https://lintian.debian.org/full/lucab@debian.org.html#gtk-gnutella_1.1.8-2
2016-09-01 19:53:17 +02:00
Tuomas Tynkkynen
6dc452313a vim_configurable: vimNoX broken on Darwin, but bring back vimHugeX works
D'oh, I was careless.
2016-09-01 20:49:32 +03:00
Tuomas Tynkkynen
3364230d56 Disable bunch of non-compiling packages on Darwin
These ones have a "Last successful build" timestamp in the 2014s or
2015s. Presumably no one will notice if we now stop building them.

softether_4_18              2015-09-20  http://hydra.nixos.org/build/39418483
lensfun                     2014-09-30  http://hydra.nixos.org/build/39394104
net_snmp                    2015-09-20  http://hydra.nixos.org/build/39410553
djview                      2015-08-11  http://hydra.nixos.org/build/39413233
libmusicbrainz2             2015-09-20  http://hydra.nixos.org/build/39410106
fox_1_6                     2014-05-07  http://hydra.nixos.org/build/39410858
libofx                      2015-09-24  http://hydra.nixos.org/build/39423507
yacas                       2014-09-30  http://hydra.nixos.org/build/39393150
iomelt                      2014-09-30  http://hydra.nixos.org/build/39408486
softether                   2015-09-20  http://hydra.nixos.org/build/39425800
mp4v2                       2014-09-30  http://hydra.nixos.org/build/39421899
virtuoso7                   2014-09-21  http://hydra.nixos.org/build/39415206
man_db                      2015-04-23  http://hydra.nixos.org/build/39404236
libdiscid                   2014-09-30  http://hydra.nixos.org/build/39412202
zabbix22.agent              2014-09-21  http://hydra.nixos.org/build/39412149
vidalia                     2015-08-06  http://hydra.nixos.org/build/39411500
libmtp                      2015-09-20  http://hydra.nixos.org/build/39419199
wxGTK29                     2015-09-20  http://hydra.nixos.org/build/39415296
ncmpcpp                     2015-11-06  http://hydra.nixos.org/build/39404455
libtorrent                  2014-09-21  http://hydra.nixos.org/build/39394646
shishi                      2014-03-21  http://hydra.nixos.org/build/39418874
ocaml_3_12_1                2014-09-30  http://hydra.nixos.org/build/39392996
djview4                     2015-08-11  http://hydra.nixos.org/build/39427799
vimNox                      2014-05-23  http://hydra.nixos.org/build/39397012
ttfautohint                 2015-08-06  http://hydra.nixos.org/build/39398330
libraw                      2015-09-24  http://hydra.nixos.org/build/39402271
wxGTK30                     2015-09-20  http://hydra.nixos.org/build/39401871
sbcl_1_2_5                  2015-09-20  http://hydra.nixos.org/build/39426091
prover9                     2014-09-30  http://hydra.nixos.org/build/39406476
rcs                         2015-08-25  http://hydra.nixos.org/build/39392037
gpac                        2015-09-24  http://hydra.nixos.org/build/39399470
virtuoso6                   2014-09-30  http://hydra.nixos.org/build/39398651
xlslib                      2015-09-24  http://hydra.nixos.org/build/39410387
ucommon                     2015-03-27  http://hydra.nixos.org/build/39414040
commoncpp2                  2014-09-30  http://hydra.nixos.org/build/39420117
virtuoso                    2014-09-21  http://hydra.nixos.org/build/39399978
miniHttpd                   2014-09-30  http://hydra.nixos.org/build/39392925
mpack                       2014-09-26  http://hydra.nixos.org/build/39399535
nbd                         2014-09-26  http://hydra.nixos.org/build/39401367
newsbeuter-dev              2014-07-29  http://hydra.nixos.org/build/39406259
gimp_2_8                    2015-09-20  http://hydra.nixos.org/build/39436271
gimp                        2015-09-20  http://hydra.nixos.org/build/39435976
zabbix20.agent              2014-09-30  http://hydra.nixos.org/build/39393242
gst_all_1.gst-plugins-good  2015-09-20  http://hydra.nixos.org/build/39408506
ocaml_4_00_1                2014-09-30  http://hydra.nixos.org/build/39399526
inadyn                      2014-09-30  http://hydra.nixos.org/build/39426389
gst_all_1.gst-plugins-bad   2015-09-20  http://hydra.nixos.org/build/39392970
zabbix.agent                2014-09-30  http://hydra.nixos.org/build/39421412
cmake-2_8                   2015-09-24  http://hydra.nixos.org/build/39399443
liblastfm                   2015-08-06  http://hydra.nixos.org/build/39421812
newsbeuter                  2014-07-29  http://hydra.nixos.org/build/39396605
sdcv                        2014-09-26  http://hydra.nixos.org/build/39412928
2016-09-01 20:39:33 +03:00
Tuomas Tynkkynen
255c9de6ef pythonPackages.keystoneclient: Fix bogus 'doCheck' value 2016-09-01 20:21:26 +03:00
Fernando J Pando
e487772722 sphinx: sphinx-1.3.6 test fixup
Fixes this error:
```
FAIL: test_setup_command.test_build_sphinx_return_nonzero_status
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/zfmk6mqmr1046bh0cnh06frd0bb0nr20-python2.7-nose-1.3.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/tmp/nix-build-python2.7-Sphinx-1.3.6.drv-0/Sphinx-1.3.6/tests/test_setup_command.py", line 55, in deco
    func(pkgrootdir, proc)
  File "/tmp/nix-build-python2.7-Sphinx-1.3.6.drv-0/Sphinx-1.3.6/tests/test_setup_command.py", line 110, in test_build_sphinx_return_nonzero_status
    assert proc.returncode != 0, 'expect non-zero status for setup.py'
AssertionError: expect non-zero status for setup.py
```

Tested on Linux
- python 2.7
- python 3.5
2016-09-01 13:11:27 -04:00
Thomas Tuegel
54125b4af4 ghc801: disable MADV_FREE 2016-09-01 12:07:36 -05:00
Eelco Dolstra
7f520bdad8 Revert "Python 2.6: add less"
This reverts commit 6b11c96c86.
2016-09-01 18:58:14 +02:00
Eelco Dolstra
1e370d7de4 Revert "Python 2.7: add less"
This reverts commit bce5a51a9f.
2016-09-01 18:58:09 +02:00
Eelco Dolstra
f0206aba5e opencolorio: Use separate outputs
Also, make the package name match the attribute (and upstream) name.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
41ec7095a7 openimageio: Use separate outputs 2016-09-01 18:57:43 +02:00
Eelco Dolstra
452afd1ed6 ilmbase: Use separate outputs 2016-09-01 18:57:43 +02:00
Eelco Dolstra
68e216d604 opensubdiv: Use separate outputs 2016-09-01 18:57:43 +02:00
Eelco Dolstra
e05c4c6541 libapparmor: Move python stuff to a separate output
This prevents systemd and by extension a zillion other packages from
having Python 2.7 in their closure. For example, the closure of
systemd dropped from 133 MiB to 85 MiB.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
cf26f610aa glew: Use separate outputs and don't install static libraries 2016-09-01 18:57:43 +02:00
Eelco Dolstra
8a137b3455 mesa-glu: Use separate outputs 2016-09-01 18:57:43 +02:00
Eelco Dolstra
3934980ca4 opensubdiv: Don't install static libraries 2016-09-01 18:57:43 +02:00
Eelco Dolstra
b688074c51 opensubdiv: Prevent runtime dependency on mesa_noglu.dev 2016-09-01 18:57:43 +02:00
Eelco Dolstra
8b12eee201 x265: Don't install static library
Following our general policy to only install dynamic libraries. If the
static library turns out to be needed, it could be moved to a separate
output.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
0810decaa7 python-3.5: Drop dependency on Berkeley DB
The previous commit revealed that Python wasn't actually using
Berkeley DB; it only had it in its closure due to the build-time flag
dump in Makefile and _sysconfigdata.py. When Python detects both GNU
gdbm and Berkeley DB at build time, it will use the former.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
fdd7399a3c python-3.5: Also remove -L flags
This reduces the Python closure size by another 10 MiB.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
02bae39132 tcl: Don't install a copy of tzdata
This cuts about 3 MiB from the installed size. On Linux, the configure
script is supposed to detect that installing tzdata is unnecessary,
but it looks in locations like /usr/share/zoneinfo.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
168192f116 python-3.5: Eliminate -dev paths from the runtime closure
This reduces Python's closure size from 200 MiB to 129 MiB. Even
better would be to get move tkinter to a separate output or package
(since that would get rid of all X11 stuff), but that's a bit harder.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
b31870fe13 tk: Use a dev output
This ensures that the propagated build inputs don't end up in tcl/tk's
runtime closure, which is reduced by about 5 MiB.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
02683acf71 tk: Separate man output
This reduces the size of the main output by half a megabyte.
2016-09-01 18:57:43 +02:00
Eelco Dolstra
b0327ac240 tcl: Separate man output and use symlinks
This reduces tcl's total size from 25.0 MiB to 8.6 MiB. Admittedly
this is also because putting the manpages in the right place causes
all man3 pages to be deleted by the multiple outputs setup hook. Not
sure if that's desirable behaviour...
2016-09-01 18:57:43 +02:00
Tuomas Tynkkynen
33b87da2cf nerdfonts: Don't build on Hydra
http://hydra.nixos.org/build/39383371
2016-09-01 19:49:20 +03:00
Sander van der Burg
fc4e4fe083 nodePackage: replace azure-cli by node2nix generated expression + add eslint to fix casperjs 2016-09-01 16:13:22 +00:00
Frederik Rietdijk
b96ba3fc93 pythonPackages.isodate: fix tests 2016-09-01 18:12:26 +02:00
Frederik Rietdijk
06006f7759 Merge pull request #18192 from FRidh/rembb
Remove buildbot_8 and certain dependencies
2016-09-01 17:49:04 +02:00
Frederik Rietdijk
f2fc64a412 Remove buildbot_8
We now have a newer version and the older version didn't work anymore
anyway because it depended on sqlalchemy7 which was itself broken,
because it depended on an older version of sqlite.
2016-09-01 17:46:27 +02:00
Frederik Rietdijk
65d983678b Remove sqlalchemy7 2016-09-01 17:46:27 +02:00
Frederik Rietdijk
69b676978c Remove sqlalchemy_migrate_0_7 2016-09-01 17:45:25 +02:00
Frederik Rietdijk
4f302223a1 pythonPackages.sqlalchemy7: mark as broken
We need an older version of sqlite.
2016-09-01 17:45:25 +02:00
Frederik Rietdijk
96a3bf6cea pythonPackages.pyqt4: fix name 2016-09-01 17:42:39 +02:00
Sander van der Burg
c6c6df3ed8 disable ripple-rest for now and repackage it asap 2016-09-01 15:35:34 +00:00
Frederik Rietdijk
571ee39714 pythonPackages.pyside: fix evaluation 2016-09-01 17:11:32 +02:00
Frederik Rietdijk
e1d1a573e5 Python: fix mkPythonDerivation doCheck 2016-09-01 17:11:32 +02:00
Sander van der Burg
6e61dfb647 Fix evaluation errors by replacing npm2nix generated packages (will provide alternative for dnchain later) 2016-09-01 14:58:30 +00:00
Linus Arver
511bb28689 baekmuk-ttf: switch to base32 encoded src.sha256
Closes https://github.com/NixOS/nixpkgs/pull/18166
2016-09-01 16:30:17 +02:00
Joachim F
7bc2511b8b Merge pull request #18179 from womfoo/fix/tome4-build
tome4: fix build
2016-09-01 16:25:45 +02:00
Frederik Rietdijk
9a8d4055a5 pythonPackages.tqdm: 3.8.4 -> 4.8.4
Last commit was wrong, the goal was to update to 4.8.4.
2016-09-01 16:20:01 +02:00
Frederik Rietdijk
2a3077d2cc Merge pull request #18143 from FRidh/buildpythonpackage
Python: split buildPythonPackage into two functions
2016-09-01 16:17:04 +02:00
Frederik Rietdijk
9a851907a8 pythonPackages.setuptools: 19.4 -> 26.1.1 2016-09-01 16:16:31 +02:00
Frederik Rietdijk
4f6b6f1472 pythonPackages: use mkPythonDerivation 2016-09-01 16:16:31 +02:00
Frederik Rietdijk
e9c4d00cac pythonPackages.fedora_cert: use mkPythonDerivation, fix build 2016-09-01 16:16:31 +02:00
Frederik Rietdijk
3e05cce97c Python: separate buildPythonPackage into two functions
1. mkDerivation which is used when the source is without setup.py and
not a wheel
2. buildPythonPackage which is used as before and calls mkDerivation
2016-09-01 16:16:31 +02:00
Frederik Rietdijk
725c37b4d3 Python: move wrapPython into own file 2016-09-01 16:16:31 +02:00
Frederik Rietdijk
b080748d42 Python: move python-modules/generic to interpreter folder 2016-09-01 16:16:31 +02:00
Sander van der Burg
b17cd148ba androidsdk: fix buildApp and emulateApp functions by providing the right executable paths + fix android emulator by adding dbus to the library path 2016-09-01 13:56:35 +00:00
Joachim F
c2841f1c1d Merge pull request #18175 from ebzzry/emem-0.2.28
emem: 0.2.27 -> 0.2.28
2016-09-01 15:50:52 +02:00
Tuomas Tynkkynen
75b5922391 openexr, libyaml-cpp: Fix output order to match others
This was changed in https://github.com/NixOS/nixpkgs/pull/14766

@edolstra
2016-09-01 16:34:11 +03:00
Sander van der Burg
21666526b9 titaniumsdk: fix to make it work with new android SDK and NPM packages + add titaniumsdk version 5.2 2016-09-01 13:25:46 +00:00
Peter Simons
29a53017a4 ghc-8.0.1: cosmetic fix to the Nix expression to unbreak syntax highlighting 2016-09-01 15:05:01 +02:00
Joachim Fasting
0ce7b31b09 grsecurity: 4.7.2-201608211829 -> 201608312326 2016-09-01 14:51:33 +02:00
Joachim Fasting
6df8de50f3 unbound service: whitespace fixes 2016-09-01 14:51:33 +02:00
Joachim Fasting
03c2c87ed6 unbound service: use mkEnableOption 2016-09-01 14:51:32 +02:00
Joachim Fasting
191a85349b refind: refactorings
- Remove redundant build inputs
  These are (optional) run-time dependencies, adding them to build inputs
  does nothing.
- Use standard buildPhase
  Note that specifying linker script is unnecessary.  Also specify correct
  host arch and efi platform.
- Replace non-working ad-hoc patch with wrapper
  The ad-hoc patching of refind-install didn't actually substitute anything;
  with a wrapper script patching becomes unnecessary
- Remove use of deprecated meta.version

Closes https://github.com/NixOS/nixpkgs/pull/18103
2016-09-01 14:51:32 +02:00
Joachim F
8c90b7db89 Merge pull request #18073 from joachifm/rtl8723bs
rtl8723bs: 6918e9b2ff29 -> 2016-04-11, fix build against 4.7
2016-09-01 14:48:51 +02:00
Eelco Dolstra
c894ee95c1 libyaml-cpp: Build a shared library
Also, use multiple outputs.
2016-09-01 14:25:42 +02:00
Frederik Rietdijk
41728c25a6 Merge pull request #18187 from adevress/master
neuron: fix issue with incorrectly prefixed python path
2016-09-01 14:22:17 +02:00
Sander van der Burg
792f50fe7c nixui: migrate to node2nix 2016-09-01 12:14:20 +00:00
Sander van der Burg
5ce6cd0106 nodePackages: use node2nix generated package set 2016-09-01 12:12:12 +00:00
Tuomas Tynkkynen
9acfe0cfb0 librem: Fix build 2016-09-01 14:55:58 +03:00
Adrien Devresse
28d2d78b55 neuron: fix issue with incorrectly prefixed python path 2016-09-01 13:41:26 +02:00
Domen Kožar
10b45d654a fix eval after 0c3b1112af 2016-09-01 13:05:45 +02:00
Eelco Dolstra
0c3b1112af Revert "Python 3.5: add less"
This reverts commit e261818c68 and
others. Having Python propagate less really doesn't make sense.
2016-09-01 12:54:46 +02:00
Eelco Dolstra
b1841490e7 openexr: Use separate dev and bin outputs 2016-09-01 12:54:46 +02:00
Tuomas Tynkkynen
8c4aeb1780 Merge staging into master
Brings in:
    - changed output order for multiple outputs:
      https://github.com/NixOS/nixpkgs/pull/14766
    - audit disabled by default
      https://github.com/NixOS/nixpkgs/pull/17916

 Conflicts:
	pkgs/development/libraries/openldap/default.nix
2016-09-01 13:27:27 +03:00
Franz Pletz
003ab1d9fd nftables: 0.5 -> 0.6 2016-09-01 12:25:14 +02:00
Franz Pletz
3a4b6ad297 libnftnl: 1.0.5 -> 1.0.6 2016-09-01 12:25:14 +02:00
Franz Pletz
58a9e368ac libmnl: 1.0.3 -> 1.0.4 2016-09-01 12:25:14 +02:00
Frederik Rietdijk
684f08166c fixup 2016-09-01 12:03:10 +02:00
Adrien Devresse
ae2800378f neuron: fix issue #17914 -> Add python bindings to neuron derivation and minor fixes
- Add support for python bindings
- make neuron respect standard pythonpath prefix
- force exec_prefix == prefix to respect standard nix file hierarchy
- normalize indentation
- propagate dependencies necessary for nrniv_makefile usage
- Add support for darwin
2016-09-01 12:03:10 +02:00
Jaka Hudoklin
e0da6b16f6 Merge pull request #17959 from offlinehacker/pkgs/kube-aws/init
kube-aws: init at 0.8.1
2016-09-01 11:58:38 +02:00
Eelco Dolstra
c861feee18 openldap: Get rid of runtime dependency on gcc
The problem here was that the openldap binaries had /tmp/... in their
RPATH *before* $out/lib, so patchelf --shrink-rpath considered the
$out/lib entry unused.

As a workaround, use NIX_LDFLAGS_BEFORE to ensure a proper order.
2016-09-01 11:43:30 +02:00
zimbatm
f1035132f3 Merge pull request #18099 from zimbatm/nokogiri-fixup
Nokogiri fixup
2016-09-01 10:43:22 +01:00
Frederik Rietdijk
56c6b4365f Merge pull request #18148 from adevress/master-openmpi
openmpi: fix libtool issue  #18147 by stripping libtool *.la files
2016-09-01 11:37:52 +02:00
Fernando J Pando
d86114cbd5 buildbot: init at 0.9.0rc2
buildbot: init
buildbot-0.9.0rc2

buildbot-worker: init
buildbot-worker-0.9.0rc2

buildbot-ui: init
buildbot-www-0.9.0rc2

buildbot-full: init
buildbot-www-0.9.0rc1
buildbot-waterfall-view-0.9.0rc2
buildbot-console-view-0.9.0rc2
2016-09-01 11:31:15 +02:00
Frederik Rietdijk
7cf000b77e buildbot -> buildbot_8 2016-09-01 11:31:15 +02:00
Tuomas Tynkkynen
d02e5a7d8f nixos/filesystems: Drop compat code for filesystems.*.options type 2016-09-01 12:18:33 +03:00
Eelco Dolstra
8172cd734c docdev -> devdoc
It's "developer documentation", not "documentation developer" after
all.
2016-09-01 11:07:23 +02:00
Fernando J Pando
202d9e29c3 pythonPackages.setuptoolsTrial: 0.5.12 -> 0.6.0
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 11:02:57 +02:00
Eelco Dolstra
e84a3524b5 man-pages: Don't have a separate docdev output
I got:

  $ nix-env -f . -iA manpages
  $ man mmap
  No manual entry for mmap

which is suboptimal for a package that "documents the Linux kernel and
C library interfaces that are employed by user-space programs"
(https://www.kernel.org/doc/man-pages/).
2016-09-01 10:57:25 +02:00
Fernando J Pando
e800ba8df7 pytest-virtualenv: init pytest-virtualenv-1.1.0
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 10:56:29 +02:00
Fernando J Pando
bea6b4b36f pythonPackages.isort: 4.2.2 -> 4.2.5
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 10:56:29 +02:00
Frederik Rietdijk
47a2a15013 pythonPackages.apipkg: fix tests 2016-09-01 10:56:29 +02:00
Fernando J Pando
3d09c34184 pythonPackages.execnet: 1.1 -> 1.4.1
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 10:56:29 +02:00
Domen Kožar
e6ced1cb1f Merge pull request #18178 from womfoo/fix/libtcod-build
libtcod: fix build
2016-09-01 10:56:16 +02:00
Domen Kožar
e4d784ace5 Merge pull request #18177 from womfoo/fix/jimtcl-build
jimtcl: fix build
2016-09-01 10:55:13 +02:00
Eelco Dolstra
02ee9d83d0 enableParallelBuild -> enableParallelBuilding 2016-09-01 10:46:47 +02:00
Domen Kožar
f5271680c4 Fixes #14831 by using full path for binaries used in install-grub.pl
Both btrfs-progs and utillinux are ~5MB, we may discuss in future
to handle this better but I see no better way at the moment than
increaing purity in the install process.
2016-09-01 10:36:38 +02:00
Kranium Gikos Mendoza
d15681f47b tome4: fix build 2016-09-01 16:26:24 +08:00
Kranium Gikos Mendoza
1131165189 libtcod: fix build 2016-09-01 16:26:17 +08:00
Kranium Gikos Mendoza
9fc8731347 jimtcl: fix build 2016-09-01 16:26:10 +08:00
Domen Kožar
2a7293fd9d install-grub.pl: fix a double slash prefix bug 2016-09-01 10:14:44 +02:00
Domen Kožar
5e5b0d039c install-grub.pl: add comments 2016-09-01 10:14:44 +02:00
Fernando J Pando
85546fb342 pythonPackages.txgithub: init at 15.0.0
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 09:53:04 +02:00
Fernando J Pando
28b60b1924 pythonPackages.pyjade: init at 4.0.0
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 09:50:31 +02:00
Fernando J Pando
96a0fbb587 pythonPackages.whoosh: init at 2.7.4
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 09:42:10 +02:00
Fernando J Pando
42d8dd14b9 pythonPackages.txrequests: init at 0.9.2
Tested on Linux
- python 2.7
- python 3.5
2016-09-01 09:42:02 +02:00
Rommel M. Martinez
b5872b13f5 emem: 0.2.27 -> 0.2.28 2016-09-01 13:08:35 +08:00
Thomas Tuegel
e446b9f1b1 keybase: 1.0.16 -> 1.0.17 2016-08-31 21:36:47 -05:00
Graham Christensen
43d38c0fea Merge pull request #18174 from acowley/ffmpeg-update-3.1.3
ffmpeg-full: 3.0.2 -> 3.1.3
2016-08-31 20:33:14 -04:00
Anthony Cowley
7b86688923 ffmpeg-full: 3.0.2 -> 3.1.3
This required a minor patch to work with the darwin stdenv on OS X 10.11
and newer.
2016-08-31 19:00:27 -04:00
Tuomas Tynkkynen
96004b9d8c nilfs-utils: Set dontPatchELF due to broken RPATH by patchelf 2016-09-01 01:48:49 +03:00
Thomas Tuegel
c643770861 Merge branch 'emacs-packages' 2016-08-31 17:41:36 -05:00
Profpatsch
488f0d9cb3 systemd-unit-options: startAt can be a list
OnCalendar entrys can be specified multiple times in a systemd timer, to
make more complex scheduling possible.

Tested by manually checking the timer generated by the following:

    systemd = {
      services.huhu = {
        description = "meh";
        wantedBy = [ "default.target" ];
        serviceConfig.ExecStart = "/bin/sh -c 'printf HUHU!'";
        startAt = [ "*:*:0/30" "*:0/1:15" ];
      };
    };

It prints HUHU to the log at seconds 0, 15 and 30 of each minute.
2016-09-01 00:39:36 +02:00
Thomas Tuegel
017691035d melpaStablePackages 2016-08-31 2016-08-31 17:27:06 -05:00
Tuomas Tynkkynen
838c75398c release notes: Fix unclosed tag 2016-09-01 01:11:50 +03:00
Thomas Tuegel
432b57b853 melpaPackages 2016-08-30 2016-08-31 16:49:10 -05:00
Tuomas Tynkkynen
43cf6f944a zabbix: Use dev outputs of libc 2016-09-01 00:28:32 +03:00
Sander van der Burg
c4e67a3dc9 node-webkit: fix library references with multiple output derivations 2016-08-31 20:48:23 +00:00
Tuomas Tynkkynen
5ad122b500 release notes: Add note about audit being disabled by default 2016-08-31 23:15:47 +03:00
Tuomas Tynkkynen
16b3e26da4 audit: Disable by default
Because in its default enabled state it it causes a global performance
hit on all system calls (https://fedorahosted.org/fesco/ticket/1311) and
unwanted spam in dmesg, in particular when using Chromium
(https://github.com/NixOS/nixpkgs/issues/13710).
2016-08-31 23:15:41 +03:00
Tuomas Tynkkynen
5eff0b990c audit service: Explicitly call auditctl to disable everything
Otherwise, journald might be starting auditing.
Some reading:
    - https://fedorahosted.org/fesco/ticket/1311
    - https://github.com/systemd/systemd/issues/959
    - 64f83d3087
2016-08-31 23:15:32 +03:00
Tuomas Tynkkynen
20ab753e35 libaudit: Split into multiple outputs 2016-08-31 23:15:28 +03:00
Guillaume Maudoux
63ab4ebf8d openldap: do strip, with proper fix
[dezgeg: Add comment about the proper fix in patchelf]
2016-08-31 23:08:32 +03:00
Tuomas Tynkkynen
204f19ede1 all-packages.nix: Remove '.bin // { outputs = [ "bin" ] }' hacks from Go packages
Not needed in the new multiple-outputs infra.
2016-08-31 22:37:38 +03:00
Tuomas Tynkkynen
43a5d30e00 ruby: Fix evaluation error
In the tarball job:

````
checking find-tarballs.nix
error: while evaluating anonymous function at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:6:1, called from undefined position:
while evaluating ‘operator’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:27:16, called from undefined position:
while evaluating ‘immediateDependenciesOf’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:39:29, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:27:44:
while evaluating anonymous function at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix:224:10, called from undefined position:
while evaluating anonymous function at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:40:37, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/attrsets.nix:224:16:
while evaluating ‘derivationsIn’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:42:19, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:40:40:
while evaluating ‘optional’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/lists.nix:175:20, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:44:33:
while evaluating ‘canEval’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:48:13, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/maintainers/scripts/find-tarballs.nix:44:43:
while evaluating the attribute ‘pkgs’ of the derivation ‘ruby-dev-2.3.1-p0’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/pkgs/build-support/trivial-builders.nix:10:14:
while evaluating ‘override’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/customisation.nix:60:22, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/pkgs/development/interpreters/ruby/dev.nix:10:13:
while evaluating ‘makeOverridable’ at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/customisation.nix:54:24, called from /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/customisation.nix:60:31:
anonymous function at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/pkgs/development/ruby-modules/bundix/default.nix:1:1 called with unexpected argument ‘ruby’, at /tmp/nix-build-nixpkgs-tarball-16.09pre1234.abcdef.drv-0/nixpkgs/lib/customisation.nix:56:12
````
2016-08-31 21:13:12 +03:00
Michael Raskin
61fe09d670 fast-neural-doodle: fix script name 2016-08-31 19:49:18 +02:00
Michael Raskin
1280b110cb fast-neural-doodle: init at 0.0pre2016-07-01 2016-08-31 19:45:28 +02:00
Michael Raskin
2f5630a89f torch-hdf5: init at 0.0pre2016-07-01 2016-08-31 19:45:28 +02:00
Michael Raskin
e2f48282d3 neural-style: symlink models so they can be shared easily 2016-08-31 19:45:28 +02:00
roconnor
f5c6b160c9 trezor-agent: 0.6.1 -> 0.6.5 (#18163)
cc @np
2016-08-31 17:01:43 +00:00
Tuomas Tynkkynen
b691bc22ef golden-cheetah: Use 'dev' output of qttools 2016-08-31 19:37:05 +03:00
Rushmore Mushambi
087f4b37e2 Merge pull request #18155 from rushmorem/update-rethinkdb
rethinkdb: 2.3.4 -> 2.3.5
2016-08-31 17:14:34 +02:00
obadz
a3621b1047 nixos/…/swap.nix: add some safety assertions for randomEncryption 2016-08-31 15:29:11 +01:00
Domen Kožar
d8d75ddec6 Revert "setuid-wrappers: Update wrapper dir atomically."
This reverts commit ee535056ce.

It doesn't work yet.
2016-08-31 16:25:18 +02:00
Nikolay Amiantov
4499a505ed hidepid service: use new boot.specialFileSystems 2016-08-31 17:16:41 +03:00
Nikolay Amiantov
a4879c44c9 Merge pull request #18160 from obadz/swap-encryption
nixos/…/swap.nix: remove backslashes from deviceName
2016-08-31 17:59:45 +04:00
Nikolay Amiantov
7fa8c424bd nixos filesystems: move special filesystems to a dedicated option
Fixes #18159.
2016-08-31 16:50:13 +03:00
Robin Gloster
459d46dc5a socat2pre: enable ip6 on darwin 2016-08-31 15:41:51 +02:00
obadz
a7d238136d nixos/…/swap.nix: remove backslashes from deviceName
Fixes #8277

Prior to this, backslashes would end up in fstab and the swap partition
was not activated.  Swap files seemed to work fine.
2016-08-31 14:40:21 +01:00
rushmorem
ac26d8ff43 rethinkdb: 2.3.4 -> 2.3.5 2016-08-31 15:15:08 +02:00
Nikolay Amiantov
2128224620 linuxPackages.vhba: disable PIC hardening 2016-08-31 16:00:31 +03:00
Nikolay Amiantov
c9bcec2e88 gst_plugins_good: fix minimalDeps build 2016-08-31 15:40:07 +03:00
Frederik Rietdijk
1d08316220 pythonPackages.rpy2: mark as broken 2016-08-31 14:33:11 +02:00
Tuomas Tynkkynen
6563cd34d8 qt5.6, qt5.7: Use dev output of qtbase in setupHook 2016-08-31 15:23:24 +03:00
Graham Christensen
24f7946489 Merge pull request #18154 from womfoo/fix/mbpfan-buffer-overflow
mbpfan: include buffer overflow patch
2016-08-31 08:16:57 -04:00
Eelco Dolstra
448efbacfa Merge pull request #18156 from shlevy/setuid-wrapper-atomic
setuid-wrappers: Update wrapper dir atomically.
2016-08-31 14:04:08 +02:00
Shea Levy
ee535056ce setuid-wrappers: Update wrapper dir atomically.
Fixes #18124.
2016-08-31 08:00:57 -04:00
Eelco Dolstra
25c9f2729e thunderbird: 45.2.0 -> 45.3.0 2016-08-31 14:00:44 +02:00
Eelco Dolstra
4309d99b70 Merge pull request #18150 from taku0/thunderbird-bin-45.3.0
thunderbird-bin: 45.2.0 -> 45.3.0
2016-08-31 13:39:57 +02:00
zimbatm
17dbfeb450 Merge pull request #18152 from roblabla/bugfix-zeroTierOneConfigurablePackage
zerotierone: make package configurable
2016-08-31 12:34:59 +01:00
Robin Gloster
7b1597bec2 qemu: 2.6.0 -> 2.6.1 2016-08-31 13:31:22 +02:00
Robin Gloster
7eaa83a3e9 qemu: patch security issues in 9pfs
CVE-2016-7116, others have no ID assigned, yet.
Fixes from 2.7 tree.
2016-08-31 13:31:22 +02:00
Kranium Gikos Mendoza
bbafdefd86 mbpfan: include buffer overflow patch 2016-08-31 19:25:28 +08:00
Luca Bruno
24f36cce50 Merge pull request #18102 from sjmackenzie/cargo-hash-fix
Cargo has incorrect hash
2016-08-31 11:04:59 +00:00
Tuomas Tynkkynen
9b63aff395 go: Split output order to match new convention 2016-08-31 13:55:40 +03:00
roblabla
caa1350e07 zerotierone: make package configurable 2016-08-31 12:39:55 +02:00
Tuomas Tynkkynen
6086142ece mupdf: Split 'dev' output 2016-08-31 13:12:11 +03:00
zimbatm
5d61c42d6b Merge pull request #18145 from manveru/bundix
bundix: 2.2.0
2016-08-31 11:11:01 +01:00
Adrien Devresse
2a79d296d3 openmpi: fix libtool issue #18147 by stripping libtool *.la files 2016-08-31 12:03:07 +02:00
Peter Simons
2d091873ab configuration-hackage2nix.yaml: update list of broken builds 2016-08-31 12:01:03 +02:00
Peter Simons
a96160728e haskell-mueval: remove obsolete patch 2016-08-31 12:01:03 +02:00
Peter Simons
fbff1305fb hackage-packages.nix: update Haskell package set
This update was generated by hackage2nix v2.0.1 using the following inputs:

  - Hackage: 0752bfd4f0
  - LTS Haskell: e602b68df3
  - Stackage Nightly: f7407f2e81
2016-08-31 12:00:58 +02:00
Tuomas Tynkkynen
96dae0f286 xxkb: Fix 'lib.optional' use 2016-08-31 12:54:28 +03:00
Tuomas Tynkkynen
b87a2245b1 root: Fix libc dev reference 2016-08-31 12:54:28 +03:00
Michael Fellinger
f75e2c8583 bundix: 2.2.0 2016-08-31 11:52:06 +02:00
Emery Hemingway
6e548b7901 plan9port: 2015-06-29 -> 2015-11-10 (#18141) 2016-08-31 11:41:49 +02:00
Tuomas Tynkkynen
307f7efcc9 pinentry: Fix dev reference to qtbase 2016-08-31 12:32:58 +03:00
Tuomas Tynkkynen
feed8beb47 virtualbox: Fix glibc dev reference 2016-08-31 12:32:34 +03:00
Ram Kromberg
e852a8e8b6 plan9port: 2015-06-29 -> 2015-11-10 2016-08-31 08:58:45 +03:00
Gabriel Ebner
15af9082eb llvmPackages_39: init at 3.9.0rc3 2016-08-31 07:13:35 +02:00
Tuomas Tynkkynen
c46869f13b neko: Use dev outputs when building an include path 2016-08-30 23:16:34 +03:00
Tuomas Tynkkynen
d45d243749 libbb2: Use "--enable-fat=yes" to avoid build nondeterminism
Otherwise it would pick various -march flags based on the CPU of the
compiling system, using beautiful code like this:

````
 63 AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1,
 64  [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [
 65      int op = $1, eax, ebx, ecx, edx;
 66      FILE *f;
 67       __asm__("cpuid"
 68         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
 69         : "a" (op));
 70      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
 71      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
 72      fclose(f);
 73      return 0;
 74 ])],

...

121       AC_CACHE_CHECK([whether avx is supported], [ax_cv_have_avx_ext],
122       [
123         ax_cv_have_avx_ext=no
124         if test "$((0x$ecx>>28&0x01))" = 1; then
125           ax_cv_have_avx_ext=yes
126         fi
127       ])
````
2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
0cfb79afac gcc6: Unify some differences with gcc5
In particular, fixes build with the new shuffled outputs.
2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
4223e83a68 tcltls: Fix reference to openssl dev output 2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
f97ba3070a gdal: Fix reference to mysql dev output 2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
e08599567a frame: Fix 'lib.optional' use
Produces a list-of-lists in buildInputs
2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
d2ef0577c5 grail: Fix 'lib.optional' use
Produces a list-of-lists as buildInputs.
2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
3a762ef967 shadowsocks-libev: Fix 'lib.optional' use
Produces buildInputs having lists of lists.
2016-08-30 23:00:13 +03:00
Tuomas Tynkkynen
810135363e ceph: Fix 'lib.optional' use
Produces a list of list as buildInputs.
2016-08-30 23:00:13 +03:00
Thomas Tuegel
8c21a4ee2e elpaPackages 2016-08-30 2016-08-30 12:24:08 -05:00
Frederik Rietdijk
0478682f09 libsndfile: 1.0.26 -> 1.0.27 2016-08-30 18:53:31 +02:00
Tuomas Tynkkynen
7259f80577 libre: Use 'dev' output of libc 2016-08-30 16:30:24 +03:00
Tuomas Tynkkynen
c4521aeffa xcb-util-xrm: Fix 'lib.optional' usage
That produces a list containing a singleton list containing libX11.
2016-08-30 16:28:02 +03:00
Tuomas Tynkkynen
8576332fdf grsec: Fix build after multiple output shuffling
Same problem with overrideDerivation as in
https://github.com/NixOS/nixpkgs/issues/10721. Would be nice to have
that fixed...
2016-08-30 15:55:49 +03:00
Tuomas Tynkkynen
73f1ade407 glibc_multi: Reference dev outputs of glibc 2016-08-30 15:18:51 +03:00
Tuomas Tynkkynen
d3dc3d4130 Merge remote-tracking branch 'dezgeg/shuffle-outputs' into staging
https://github.com/NixOS/nixpkgs/pull/14766
2016-08-30 12:43:37 +03:00
Tuomas Tynkkynen
03fb2c1f32 doc: Document changes to multiple-output conventions 2016-08-30 04:46:59 +03:00
Tuomas Tynkkynen
d75596995e swt: Fix LFLAGS
Passing '-I${foo}/lib' to GCC doesn't seem sane.
2016-08-30 03:47:50 +03:00
Tuomas Tynkkynen
aef35c52f0 treewide: Fix output references to libX11 2016-08-30 03:40:23 +03:00
taku0
816e86cba3 thunderbird-bin: 45.2.0 -> 45.3.0 2016-08-30 09:12:11 +09:00
Tuomas Tynkkynen
c3bcb4e1ce treewide: Use explicit 'dev' references to glibc 2016-08-30 03:11:09 +03:00
Tuomas Tynkkynen
01f857409f haskellPackages.hcwiid: Fix output references to bluez 2016-08-30 03:02:33 +03:00
Tuomas Tynkkynen
048a30e4e4 treewide: Fix dev references to libxml2 2016-08-30 03:02:32 +03:00
Tuomas Tynkkynen
47784e55e1 darwin binutils: Fix binutils-raw output references 2016-08-30 02:57:43 +03:00
Tuomas Tynkkynen
fa1a1f527b gnome3: Use dev output of nss 2016-08-30 02:41:13 +03:00
Tuomas Tynkkynen
0836f5d3b0 erlangR14: Use dev output of openssl 2016-08-30 02:41:13 +03:00
Tuomas Tynkkynen
d4eb6887b9 xorg.xf86videoati: Use dev output of xorgserver
TODO: Darwin xorgserver should have consistent outputs with the Linux
one.
2016-08-30 02:41:12 +03:00
Stewart Mackenzie
33d6e5acd5 Cargo has incorrect hash 2016-08-30 05:53:03 +08:00
zimbatm
a7cf555e2a buildRubyGem: handle build-time ruby dependencies
For some reason `gem install` unsets the GEM_PATH environment variable
internally unless the install dir is provided. This in turn means that
if it invokes extconf.rb and extconf.rb depends on a gem available on
the GEM_PATH (like pkg-config for nokogiri) then it's not available in
that context.

Proof: d8293c4729/lib/rubygems/commands/install_command.rb (L151)
Blame: 9ea600c9c2

This is a hack that sets the :install_dir to where we would install
anyways (the GEM_HOME is the default installation destination).
2016-08-29 22:17:59 +01:00
Vladimír Čunát
e6f1028340 Merge: solve unfree xorg.fontbhttf
Fixes #17571.
2016-08-29 22:41:10 +02:00
Vladimír Čunát
40dc278ee0 xorg.fontbhttf: mark as unfree
https://bugzilla.redhat.com/show_bug.cgi?id=317641
2016-08-29 22:40:32 +02:00
Vladimír Čunát
4f73633f26 treewide: stop using fontbhttf 2016-08-29 22:28:50 +02:00
Vladimír Čunát
3f80ecfc79 fontforge: build the non-gui version without fontconfig
(in build-time closure)
2016-08-29 22:27:34 +02:00
zimbatm
b046ebbb7c rubygems: 2.6.2 -> 2.6.6 2016-08-29 19:52:40 +01:00
Tuomas Tynkkynen
b2e701cb1d nix-repl: Use 'dev' output of nix 2016-08-29 21:30:52 +03:00
Vladimír Čunát
475124f78e dejavu_fonts: "symlink-split" a single font file
See following commits for "why".
2016-08-29 20:21:32 +02:00
Ram Kromberg
3bfb354145 libsoup's vala: 0.23 -> 0.26
Close #17904.
2016-08-29 18:45:55 +02:00
obadz
1ba32c5403 Merge branch 'master' into staging 2016-08-29 16:22:36 +01:00
Tuomas Tynkkynen
69e51ebf55 kde-frameworks: Use chooseDevOutputs 2016-08-29 14:49:54 +03:00
Tuomas Tynkkynen
89833c0c72 binutils: Shuffle outputs 2016-08-29 14:49:54 +03:00
Tuomas Tynkkynen
dcf0e8ac48 kde5.plasma: Use 'dev' output of xf86inputsynaptics 2016-08-29 14:49:54 +03:00
Tuomas Tynkkynen
2f50cfe25f qt5: Shuffle outputs
Unnoticed by the scripts.
2016-08-29 14:49:53 +03:00
Tuomas Tynkkynen
040fadf345 glibc_multi: Fix unnoticed output shuffle 2016-08-29 14:49:53 +03:00
Tuomas Tynkkynen
55fa3b52a3 php: Fix mysql reference
TODO: Fix the mysql expression so this isn't needed.
2016-08-29 14:49:53 +03:00
Tuomas Tynkkynen
7c1607ae65 webkitgtk: Few last missing 'dev' references 2016-08-29 14:49:53 +03:00
Tuomas Tynkkynen
fd4b3dcccb gmp{4,5}: Split into multiple outputs
Keep all versions consistent so that e.g. 'gmp.dev' is always available,
regardless of version.
2016-08-29 14:49:52 +03:00
Tuomas Tynkkynen
8ed3d6a7e5 cmake 2.8: Fix build with shuffled outputs 2016-08-29 14:49:52 +03:00
Tuomas Tynkkynen
ba6d94e6a5 ruby: dev -> devEnv
Otherwise conflicts with the convention of `dev` output.
2016-08-29 14:49:52 +03:00
Tuomas Tynkkynen
0e26cf84fc kernel: Remove propagatedBuildOutputs
Not needed after the shuffle.
2016-08-29 14:49:52 +03:00
Tuomas Tynkkynen
e065baafba glibc: Make one exception for output order
Usages like '${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2' are much more
common than the bin output.
2016-08-29 14:49:52 +03:00
Tuomas Tynkkynen
a17216af4c treewide: Shuffle outputs
Make either 'bin' or 'out' the first output.
2016-08-29 14:49:51 +03:00
Tuomas Tynkkynen
5d55ae5d50 stdenv/multiple-outputs.sh: Change output propagation logic
Because 'dev' will most often not be the default output after my changes.
2016-08-29 14:49:51 +03:00
Tuomas Tynkkynen
5326e85f3d stdenv.mkDerivation: Use chooseDevOutputs 2016-08-29 14:49:51 +03:00
Joachim Fasting
e0ee5dc04f rtl8723bs: 6918e9b2ff29 -> 2016-04-11, fix build against 4.7
Upstream
e71a5fc58c
adds linux 4.7 support; all subsequent commits are error fixes so we
bump to current HEAD for good measure.

Built against linux and linux_latest.

Mark as broken on -grsec, seems incompatible with PaX
constification:
> 76fb2-src/hal/rtl8723b_hal_init.c:2186:26: error: assignment of member
'free_hal_data' in read-only object
  pHalFunc->free_hal_data = &rtl8723b_free_hal_data;

and so on.
2016-08-29 03:31:14 +02:00
Tuomas Tynkkynen
3243c4f272 treewide: Make explicit that 'dev' output of SDL is used 2016-08-29 03:27:14 +03:00
Jaka Hudoklin
274ff94974 kube-aws: init at 0.8.1 2016-08-24 14:25:57 +02:00
1147 changed files with 101171 additions and 48444 deletions

View File

@@ -15,8 +15,6 @@ matrix:
- os: osx
osx_image: xcode7.3
script: ./maintainers/scripts/travis-nox-review-pr.sh nox pr
git:
depth: 1
env:
global:
- GITHUB_TOKEN=5edaaf1017f691ed34e7f80878f8f5fbd071603f

View File

@@ -15,12 +15,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-16.03` for the latest
custom changes on top of one of the channels, e.g. `nixos-16.09` for the latest
release and `nixos-unstable` for the latest successful build of master:
```
% git remote update channels
% git rebase channels/nixos-16.03
% git rebase channels/nixos-16.09
```
For pull-requests, please rebase onto nixpkgs `master`.
@@ -34,9 +34,9 @@ For pull-requests, please rebase onto nixpkgs `master`.
* [Manual (NixOS)](https://nixos.org/nixos/manual/)
* [Nix Wiki](https://nixos.org/wiki/) (deprecated, see milestone ["Move the Wiki!"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Move+the+wiki%21%22))
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for 16.03 release](https://hydra.nixos.org/jobset/nixos/release-16.03)
* [Continuous package builds for 16.09 release](https://hydra.nixos.org/jobset/nixos/release-16.09)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for 16.03 release](https://hydra.nixos.org/job/nixos/release-16.03/tested#tabs-constituents)
* [Tests for 16.09 release](https://hydra.nixos.org/job/nixos/release-16.09/tested#tabs-constituents)
Communication:

View File

@@ -24,7 +24,7 @@ deis = buildGoPackage rec {
sha256 = "1qv9lxqx7m18029lj8cw3k7jngvxs4iciwrypdy0gd2nnghc68sw";
};
goDeps = ./deps.json; <co xml:id='ex-buildGoPackage-3' />
goDeps = ./deps.nix; <co xml:id='ex-buildGoPackage-3' />
buildFlags = "--tags release"; <co xml:id='ex-buildGoPackage-4' />
}
@@ -56,7 +56,9 @@ the following arguments are of special significance to the function:
<callout arearefs='ex-buildGoPackage-3'>
<para>
<varname>goDeps</varname> is where the Go dependencies of a Go program are listed
in a JSON format described below.
as a list of package source identified by Go import path.
It could be imported as a separate <varname>deps.nix</varname> file for
readability. The dependency data structure is described below.
</para>
</callout>
@@ -70,23 +72,32 @@ the following arguments are of special significance to the function:
</para>
<para>The <varname>goDeps</varname> attribute should point to a JSON file that defines which Go libraries
are needed and should be included in <varname>GOPATH</varname> for <varname>buildPhase</varname>.
<para>The <varname>goDeps</varname> attribute can be imported from a separate
<varname>nix</varname> file that defines which Go libraries are needed and should
be included in <varname>GOPATH</varname> for <varname>buildPhase</varname>.
</para>
<example xml:id='ex-goDeps'><title>deps.json</title>
<example xml:id='ex-goDeps'><title>deps.nix</title>
<programlisting>
[ <co xml:id='ex-goDeps-1' />
{
"goPackagePath": "gopkg.in/yaml.v2", <co xml:id='ex-goDeps-2' />
"fetch": {
"type": "git", <co xml:id='ex-goDeps-3' />
"url": "https://gopkg.in/yaml.v2",
"rev": "a83829b6f1293c91addabc89d0571c246397bbf4",
"sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"
}
}
{
goPackagePath = "gopkg.in/yaml.v2"; <co xml:id='ex-goDeps-2' />
fetch = {
type = "git"; <co xml:id='ex-goDeps-3' />
url = "https://gopkg.in/yaml.v2";
rev = "a83829b6f1293c91addabc89d0571c246397bbf4";
sha256 = "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh";
};
}
{
goPackagePath = "github.com/docopt/docopt-go";
fetch = {
type = "git";
url = "https://github.com/docopt/docopt-go";
rev = "784ddc588536785e7299f7272f39101f7faccc3f";
sha256 = "0wwz48jl9fvl1iknvn9dqr4gfy1qs03gxaikrxxp9gry6773v3sj";
};
}
]
</programlisting>
</example>

View File

@@ -481,7 +481,7 @@ and the aliases
#### `buildPythonPackage` function
The `buildPythonPackage` function is implemented in
`pkgs/development/python-modules/generic/default.nix`
`pkgs/development/interpreters/python/build-python-package.nix`
and can be used as:
@@ -536,6 +536,7 @@ All parameters from `mkDerivation` function are still supported.
* `installFlags`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"].
* `format`: Format of the source. Options are `setup` for when the source has a `setup.py` and `setuptools` is used to build a wheel, and `wheel` in case the source is already a binary wheel. The default value is `setup`.
* `catchConflicts` If `true`, abort package build if a package name appears more than once in dependency tree. Default is `true`.
* `checkInputs` Dependencies needed for running the `checkPhase`. These are added to `buildInputs` when `doCheck = true`.
#### `buildPythonApplication` function

View File

@@ -29,15 +29,15 @@
<section><title>Using a split package</title>
<para>In the Nix language the individual outputs can be reached explicitly as attributes, e.g. <varname>coreutils.info</varname>, but the typical case is just using packages as build inputs.</para>
<para>When a multiple-output derivation gets into a build input of another derivation, the first output is added (<varname>.dev</varname> by convention) and also <varname>propagatedBuildOutputs</varname> of that package which by default contain <varname>$outputBin</varname> and <varname>$outputLib</varname>. (See <xref linkend="multiple-output-file-type-groups" />.)</para>
<para>When a multiple-output derivation gets into a build input of another derivation, the <varname>dev</varname> output is added if it exists, otherwise the first output is added. In addition to that, <varname>propagatedBuildOutputs</varname> of that package which by default contain <varname>$outputBin</varname> and <varname>$outputLib</varname> are also added. (See <xref linkend="multiple-output-file-type-groups" />.)</para>
</section>
<section><title>Writing a split derivation</title>
<para>Here you find how to write a derivation that produces multiple outputs.</para>
<para>In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in &lt;<filename>nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh</filename>&gt;; it's relatively well-readable. The whole machinery is triggered by defining the <varname>outputs</varname> attribute to contain the list of desired output names (strings).</para>
<programlisting>outputs = [ "dev" "out" "bin" "doc" ];</programlisting>
<para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should usually be <varname>dev</varname>; typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
<programlisting>outputs = [ "bin" "dev" "out" "doc" ];</programlisting>
<para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like <literal>${pkgs.perl}/bin/perl</literal> to always work. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
<note><para>There is a special handling of the <varname>debug</varname> output, described at <xref linkend="stdenv-separateDebugInfo" />.</para></note>
@@ -63,7 +63,7 @@
</para></listitem></varlistentry>
<varlistentry><term><varname>
$outputDocdev</varname></term><listitem><para>
is for <emphasis>developer</emphasis> documentation. Currently we count gtk-doc and man3 pages in there. It goes to <varname>docdev</varname> or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users.
is for <emphasis>developer</emphasis> documentation. Currently we count gtk-doc and man3 pages in there. It goes to <varname>devdoc</varname> or is removed (!) by default. This is because e.g. gtk-doc tends to be rather large and completely unused by nixpkgs users.
</para></listitem></varlistentry>
<varlistentry><term><varname>
$outputMan</varname></term><listitem><para>

View File

@@ -296,12 +296,17 @@ rec {
/* Converts a store path to a fake derivation. */
toDerivation = path:
let path' = builtins.storePath path; in
{ type = "derivation";
name = builtins.unsafeDiscardStringContext (builtins.substring 33 (-1) (baseNameOf path'));
outPath = path';
outputs = [ "out" ];
};
let
path' = builtins.storePath path;
res =
{ type = "derivation";
name = builtins.unsafeDiscardStringContext (builtins.substring 33 (-1) (baseNameOf path'));
outPath = path';
outputs = [ "out" ];
out = res;
outputName = "out";
};
in res;
/* If `cond' is true, return the attribute set `as',
@@ -454,6 +459,8 @@ rec {
getLib = getOutput "lib";
getDev = getOutput "dev";
/* Pick the outputs of packages to place in buildInputs */
chooseDevOutputs = drvs: builtins.map getDev drvs;
/*** deprecated stuff ***/

View File

@@ -97,6 +97,7 @@
cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
DamienCassou = "Damien Cassou <damien@cassou.me>";
dasuxullebt = "Christoph-Simon Senjak <christoph.senjak@googlemail.com>";
danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";
davidak = "David Kleuker <post@davidak.de>";
davidrusu = "David Rusu <davidrusu.me@gmail.com>";
dbohdan = "Danyil Bohdan <danyil.bohdan@gmail.com>";

View File

@@ -4,7 +4,7 @@
version="5.0"
xml:id="sec-release-16.09">
<title>Release 16.09 (“Flounder”, 2016/09/??)</title>
<title>Release 16.09 (“Flounder”, 2016/09/30)</title>
<para>In addition to numerous new and upgraded packages, this release
has the following highlights: </para>
@@ -12,28 +12,137 @@ has the following highlights: </para>
<itemizedlist>
<listitem>
<para>PXE "netboot" media has landed in <link xlink:href="https://github.com/NixOS/nixpkgs/pull/14740" />.
See <xref linkend="sec-booting-from-pxe" /> for documentation.</para>
<para>Many NixOS configurations and Nix packages now use
significantly less disk space, thanks to the <link
xlink:href="https://github.com/NixOS/nixpkgs/issues/7117">extensive
work on closure size reduction</link>. For example, the closure
size of a minimal NixOS container went down from ~424 MiB in 16.03
to ~212 MiB in 16.09, while the closure size of Firefox went from
~651 MiB to ~259 MiB.</para>
</listitem>
<listitem>
<para>Xorg-server-1.18.*. If you choose <literal>"ati_unfree"</literal> driver,
1.17.* is still used due to ABI incompatibility.</para>
<para>To improve security, packages are now <link
xlink:href="https://github.com/NixOS/nixpkgs/pull/12895">built
using various hardening features</link>. See the Nixpkgs manual
for more information.</para>
</listitem>
<listitem>
<para>Support for PXE netboot. See <xref
linkend="sec-booting-from-pxe" /> for documentation.</para>
</listitem>
<listitem>
<para>X.org server 1.18. If you use the
<literal>ati_unfree</literal> driver, 1.17 is still used due to an
ABI incompatibility.</para>
</listitem>
<listitem>
<para>This release is based on Glibc 2.24, GCC 5.4.0 and systemd
231. The default Linux kernel remains 4.4.</para>
</listitem>
</itemizedlist>
<para>The following new services were added since the last release:</para>
<itemizedlist>
<listitem><para><literal>(this will get automatically generated at release time)</literal></para></listitem>
</itemizedlist>
<itemizedlist>
<listitem><para><literal>hardware/video/amdgpu.nix</literal></para></listitem>
<listitem><para><literal>hardware/video/displaylink.nix</literal></para></listitem>
<listitem><para><literal>programs/info.nix</literal></para></listitem>
<listitem><para><literal>programs/mosh.nix</literal></para></listitem>
<listitem><para><literal>programs/spacefm.nix</literal></para></listitem>
<listitem><para><literal>programs/tmux.nix</literal></para></listitem>
<listitem><para><literal>programs/xonsh.nix</literal></para></listitem>
<listitem><para><literal>security/chromium-suid-sandbox.nix</literal></para></listitem>
<listitem><para><literal>security/hidepid.nix</literal></para></listitem>
<listitem><para><literal>services/audio/squeezelite.nix</literal></para></listitem>
<listitem><para><literal>services/backup/znapzend.nix</literal></para></listitem>
<listitem><para><literal>services/continuous-integration/buildkite-agent.nix</literal></para></listitem>
<listitem><para><literal>services/continuous-integration/hydra/default.nix</literal></para></listitem>
<listitem><para><literal>services/continuous-integration/gocd-agent/default.nix</literal></para></listitem>
<listitem><para><literal>services/continuous-integration/gocd-server/default.nix</literal></para></listitem>
<listitem><para><literal>services/development/hoogle.nix</literal></para></listitem>
<listitem><para><literal>services/editors/emacs.nix</literal></para></listitem>
<listitem><para><literal>services/games/factorio.nix</literal></para></listitem>
<listitem><para><literal>services/games/terraria.nix</literal></para></listitem>
<listitem><para><literal>services/logging/awstats.nix</literal></para></listitem>
<listitem><para><literal>services/logging/graylog.nix</literal></para></listitem>
<listitem><para><literal>services/misc/emby.nix</literal></para></listitem>
<listitem><para><literal>services/misc/mantisbt.nix</literal></para></listitem>
<listitem><para><literal>services/misc/nzbget.nix</literal></para></listitem>
<listitem><para><literal>services/misc/packagekit.nix</literal></para></listitem>
<listitem><para><literal>services/misc/sonarr.nix</literal></para></listitem>
<listitem><para><literal>services/misc/spice-vdagentd.nix</literal></para></listitem>
<listitem><para><literal>services/misc/taskserver</literal></para></listitem>
<listitem><para><literal>services/network-filesystems/tahoe.nix</literal></para></listitem>
<listitem><para><literal>services/networking/coturn.nix</literal></para></listitem>
<listitem><para><literal>services/networking/ferm.nix</literal></para></listitem>
<listitem><para><literal>services/networking/gdomap.nix</literal></para></listitem>
<listitem><para><literal>services/networking/libreswan.nix</literal></para></listitem>
<listitem><para><literal>services/networking/logmein-hamachi.nix</literal></para></listitem>
<listitem><para><literal>services/networking/mfi.nix</literal></para></listitem>
<listitem><para><literal>services/networking/mjpg-streamer.nix</literal></para></listitem>
<listitem><para><literal>services/networking/mosquitto.nix</literal></para></listitem>
<listitem><para><literal>services/networking/nntp-proxy.nix</literal></para></listitem>
<listitem><para><literal>services/networking/offlineimap.nix</literal></para></listitem>
<listitem><para><literal>services/networking/pptpd.nix</literal></para></listitem>
<listitem><para><literal>services/networking/sniproxy.nix</literal></para></listitem>
<listitem><para><literal>services/networking/smokeping.nix</literal></para></listitem>
<listitem><para><literal>services/networking/toxvpn.nix</literal></para></listitem>
<listitem><para><literal>services/networking/xl2tpd.nix</literal></para></listitem>
<listitem><para><literal>services/networking/zerobin.nix</literal></para></listitem>
<listitem><para><literal>services/security/oauth2_proxy.nix</literal></para></listitem>
<listitem><para><literal>services/torrent/flexget.nix</literal></para></listitem>
<listitem><para><literal>services/web-apps/mattermost.nix</literal></para></listitem>
<listitem><para><literal>services/web-apps/tt-rss.nix</literal></para></listitem>
<listitem><para><literal>services/web-servers/caddy.nix</literal></para></listitem>
<listitem><para><literal>services/web-servers/lighttpd/inginious.nix</literal></para></listitem>
<listitem><para><literal>services/x11/compton.nix</literal></para></listitem>
<listitem><para><literal>services/x11/xbanish.nix</literal></para></listitem>
<listitem><para><literal>system/boot/loader/systemd-boot/systemd-boot.nix</literal></para></listitem>
<listitem><para><literal>system/boot/plymouth.nix</literal></para></listitem>
<listitem><para><literal>virtualisation/xe-guest-utilities.nix</literal></para></listitem>
</itemizedlist>
<para>When upgrading from a previous release, please be aware of the
following incompatible changes:</para>
<itemizedlist>
<listitem>
<para>A large number of packages have been converted to use the multiple outputs feature
of Nix to greatly reduce the amount of required disk space, as
mentioned above. This may require changes
to any custom packages to make them build again; see the relevant chapter in the
Nixpkgs manual for more information. (Additional caveat to packagers: some packaging conventions
related to multiple-output packages
<link xlink:href="https://github.com/NixOS/nixpkgs/pull/14766">were changed</link>
late (August 2016) in the release cycle and differ from the initial introduction of multiple outputs.)
</para>
</listitem>
<listitem>
<para>Previous versions of Nixpkgs had support for all versions of the LTS
Haskell package set. That support has been dropped. The previously provided
<literal>haskell.packages.lts-x_y</literal> package sets still exist in
name to aviod breaking user code, but these package sets don't actually
contain the versions mandated by the corresponding LTS release. Instead,
our package set it loosely based on the latest available LTS release, i.e.
LTS 7.x at the time of this writing. New releases of NixOS and Nixpkgs will
drop those old names entirely. <link
xlink:href="http://lists.science.uu.nl/pipermail/nix-dev/2016-June/020585.html">The
motivation for this change</link> has been discussed at length on the
<literal>nix-dev</literal> mailing list and in <link
xlink:href="https://github.com/NixOS/nixpkgs/issues/14897">Github issue
#14897</link>. Development strategies for Haskell hackers who want to rely
on Nix and NixOS have been described in <link
xlink:href="http://lists.science.uu.nl/pipermail/nix-dev/2016-June/020642.html">another
nix-dev article</link>.</para>
</listitem>
<listitem>
<para>Shell aliases for systemd sub-commands
<link xlink:href="https://github.com/NixOS/nixpkgs/pull/15598">were dropped</link>:
@@ -47,8 +156,27 @@ following incompatible changes:</para>
</listitem>
<listitem>
<para>Gitlab's maintainence script gitlab-runner was removed and split up into the more clearer
gitlab-run and gitlab-rake scripts because gitlab-runner is a component of Gitlab CI.</para>
<para>
<literal>/var/empty</literal> is now immutable. Activation script runs <command>chattr +i</command>
to forbid any modifications inside the folder. See <link xlink:href="https://github.com/NixOS/nixpkgs/pull/18365">
the pull request</link> for what bugs this caused.
</para>
</listitem>
<listitem>
<para>
Using packages compiled with older Wayland may yield an error "undefined reference to `wl_proxy_*`".
Please upgrade those packages and <link xlink:href="https://github.com/NixOS/nixpkgs/issues/16779">see bug report for more details.</link>
</para>
</listitem>
<listitem>
<para>Gitlab's maintainance script
<command>gitlab-runner</command> was removed and split up into the
more clearer <command>gitlab-run</command> and
<command>gitlab-rake</command> scripts, because
<command>gitlab-runner</command> is a component of Gitlab
CI.</para>
</listitem>
<listitem>
@@ -61,11 +189,44 @@ following incompatible changes:</para>
<listitem>
<para><literal>fonts.fontconfig.ultimate.rendering</literal> was removed
because our presets were obsolete for some time. New presets are hardcoded
into freetype; one selects a preset via <literal>fonts.fontconfig.ultimate.preset</literal>.
into FreeType; you can select a preset via <literal>fonts.fontconfig.ultimate.preset</literal>.
You can customize those presets via ordinary environment variables, using
<literal>environment.variables</literal>.</para>
</listitem>
<listitem>
<para>The <literal>audit</literal> service is no longer enabled by default.
Use <literal>security.audit.enable = true</literal> to explicitly enable it.</para>
</listitem>
<listitem>
<para>
<literal>pkgs.linuxPackages.virtualbox</literal> now contains only the
kernel modules instead of the VirtualBox user space binaries.
If you want to reference the user space binaries, you have to use the new
<literal>pkgs.virtualbox</literal> instead.
</para>
</listitem>
<listitem>
<para><literal>goPackages</literal> was replaced with separated Go
applications in appropriate <literal>nixpkgs</literal>
categories. Each Go package uses its own dependency set. There's
also a new <literal>go2nix</literal> tool introduced to generate a
Go package definition from its Go source automatically.</para>
</listitem>
<listitem>
<para><literal>services.mongodb.extraConfig</literal> configuration format
was changed to YAML.</para>
</listitem>
<listitem>
<para>
PHP has been upgraded to 7.0
</para>
</listitem>
</itemizedlist>
@@ -81,6 +242,60 @@ following incompatible changes:</para>
functionality. See <xref linkend="sec-grsecurity" /> for documentation
</para></listitem>
<listitem><para>Special filesystems, like <literal>/proc</literal>,
<literal>/run</literal> and others, now have the same mount options
as recommended by systemd and are unified across different places in
NixOS. Mount options are updated during <command>nixos-rebuild
switch</command> if possible. One benefit from this is improved
security — most such filesystems are now mounted with
<literal>noexec</literal>, <literal>nodev</literal> and/or
<literal>nosuid</literal> options.</para></listitem>
<listitem><para>The reverse path filter was interfering with DHCPv4 server
operation in the past. An exception for DHCPv4 and a new option to log
packets that were dropped due to the reverse path filter was added
(<literal>networking.firewall.logReversePathDrops</literal>) for easier
debugging.</para></listitem>
<listitem><para>Containers configuration within
<literal>containers.&lt;name&gt;.config</literal> is <link
xlink:href="https://github.com/NixOS/nixpkgs/pull/17365">now
properly typed and checked</link>. In particular, partial
configurations are merged correctly.</para></listitem>
<listitem>
<para>The directory container setuid wrapper programs,
<filename>/var/setuid-wrappers</filename>, <link
xlink:href="https://github.com/NixOS/nixpkgs/pull/18124">is now
updated atomically to prevent failures if the switch to a new
configuration is interrupted.</link></para>
</listitem>
<listitem>
<para><literal>services.xserver.startGnuPGAgent</literal>
has been removed due to GnuPG 2.1.x bump. See <link
xlink:href="https://github.com/NixOS/nixpkgs/commit/5391882ebd781149e213e8817fba6ac3c503740c">
how to achieve similar behavior</link>. You might need to
<literal>pkill gpg-agent</literal> after the upgrade
to prevent a stale agent being in the way.
</para>
</listitem>
<listitem><para>
<link xlink:href="https://github.com/NixOS/nixpkgs/commit/e561edc322d275c3687fec431935095cfc717147">
Declarative users could share the uid due to the bug in
the script handling conflict resolution.
</link>
</para></listitem>
<listitem><para>
Gummi boot has been replaced using systemd-boot.
</para></listitem>
<listitem><para>
Hydra package and NixOS module were added for convenience.
</para></listitem>
</itemizedlist>

View File

@@ -566,14 +566,25 @@ sub getWindowNames {
}
sub hasWindow {
my ($self, $regexp) = @_;
my @names = $self->getWindowNames;
foreach my $n (@names) {
if ($n =~ /$regexp/) {
$self->log("match '$n' on '$regexp'");
return 1;
} else {
$self->log("no match '$n' on '$regexp'");
}
}
}
sub waitForWindow {
my ($self, $regexp) = @_;
$self->nest("waiting for a window to appear", sub {
retry sub {
my @names = $self->getWindowNames;
foreach my $n (@names) {
return 1 if $n =~ /$regexp/;
}
return $self->hasWindow($regexp)
}
});
}

View File

@@ -157,9 +157,7 @@ rec {
${coreutils}/bin/mkdir -p $TMPDIR
cd $TMPDIR
$origBuilder $origArgs
exit $?
exec $origBuilder $origArgs
'';
testScript = ''
@@ -172,9 +170,22 @@ rec {
'';
vmRunCommand = writeText "vm-run" ''
xchg=vm-state-client/xchg
${coreutils}/bin/mkdir $out
${coreutils}/bin/mkdir -p vm-state-client/xchg
export > vm-state-client/xchg/saved-env
${coreutils}/bin/mkdir -p $xchg
for i in $passAsFile; do
i2=''${i}Path
_basename=$(${coreutils}/bin/basename ''${!i2})
${coreutils}/bin/cp ''${!i2} $xchg/$_basename
eval $i2=/tmp/xchg/$_basename
${coreutils}/bin/ls -la $xchg
done
unset i i2 _basename
export | ${gnugrep}/bin/grep -v '^xchg=' > $xchg/saved-env
unset xchg
export tests='${testScript}'
${testDriver}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
''; # */

View File

@@ -11,18 +11,28 @@ with lib;
# TODO: find another name for it.
fonts = mkOption {
type = types.listOf types.path;
default = [];
example = literalExample "[ pkgs.dejavu_fonts ]";
description = "List of primary font paths.";
};
enableDefaultFonts = mkOption {
type = types.bool;
default = false;
description = ''
Enable a basic set of fonts providing several font styles
and families and reasonable coverage of Unicode.
'';
};
};
};
config = {
fonts.fonts =
[ pkgs.xorg.fontbhttf
fonts.fonts = mkIf config.fonts.enableDefaultFonts
[
pkgs.xorg.fontbhlucidatypewriter100dpi
pkgs.xorg.fontbhlucidatypewriter75dpi
pkgs.dejavu_fonts

View File

@@ -54,6 +54,10 @@ let
WARNING: Don't try to hibernate when you have at least one swap partition with
this option enabled! We have no way to set the partition into which hibernation image
is saved, so if your image ends up on an encrypted one you would lose it!
WARNING #2: Do not use /dev/disk/by-uuid/ or /dev/disk/by-label/ as your swap device
when using randomEncryption as the UUIDs and labels will get erased on every boot when
the partition is encrypted. Best to use /dev/disk/by-partuuid/
'';
};
@@ -72,7 +76,7 @@ let
config = rec {
device = mkIf options.label.isDefined
"/dev/disk/by-label/${config.label}";
deviceName = escapeSystemdPath config.device;
deviceName = lib.replaceChars ["\\"] [""] (escapeSystemdPath config.device);
realDevice = if config.randomEncryption then "/dev/mapper/${deviceName}" else config.device;
};
@@ -121,6 +125,8 @@ in
createSwapDevice = sw:
assert sw.device != "";
assert !(sw.randomEncryption && lib.hasPrefix "/dev/disk/by-uuid" sw.device);
assert !(sw.randomEncryption && lib.hasPrefix "/dev/disk/by-label" sw.device);
let realDevice' = escapeSystemdPath sw.realDevice;
in nameValuePair "mkswap-${sw.deviceName}"
{ description = "Initialisation of swap device ${sw.device}";

View File

@@ -34,10 +34,10 @@ let
config.programs.ssh.package
pkgs.perl
pkgs.procps
pkgs.rsync # used by nixos-install anyway
pkgs.strace
pkgs.su
pkgs.time
pkgs.texinfoInteractive
pkgs.utillinux
pkgs.which # 88K size
];
@@ -76,7 +76,7 @@ in
extraOutputsToInstall = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "doc" "info" "docdev" ];
example = [ "doc" "info" "devdoc" ];
description = "List of additional package outputs to be symlinked into <filename>/run/current-system/sw</filename>.";
};
@@ -104,7 +104,6 @@ in
"/etc/xdg"
"/etc/gtk-2.0"
"/etc/gtk-3.0"
"/info"
"/lib" # FIXME: remove and update debug-info.nix
"/sbin"
"/share/applications"
@@ -112,7 +111,6 @@ in
"/share/doc"
"/share/emacs"
"/share/icons"
"/share/info"
"/share/menus"
"/share/mime"
"/share/nano"

View File

@@ -14,7 +14,7 @@ let
name = "mesa-drivers+txc-${p.mesa_drivers.version}";
paths =
[ p.mesa_drivers
p.mesa_noglu # mainly for libGL
p.mesa_drivers.out # mainly for libGL
(if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
];
};

View File

@@ -0,0 +1,61 @@
{ config, lib, ... }:
with lib;
let
enabled = elem "displaylink" config.services.xserver.videoDrivers;
displaylink = config.boot.kernelPackages.displaylink;
in
{
config = mkIf enabled {
boot.extraModulePackages = [ displaylink ];
boot.kernelModules = [ "evdi" ];
# Those are taken from displaylink-installer.sh and from Arch Linux AUR package.
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="17e9", ATTR{bNumInterfaces}=="*5", TAG+="uaccess"
'';
powerManagement.powerDownCommands = ''
#flush any bytes in pipe
while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done;
#suspend DisplayLinkManager
echo "S" > /tmp/PmMessagesPort_in
#wait until suspend of DisplayLinkManager finish
read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out
'';
powerManagement.resumeCommands = ''
#resume DisplayLinkManager
echo "R" > /tmp/PmMessagesPort_in
'';
systemd.services.displaylink = {
description = "DisplayLink Manager Service";
after = [ "display-manager.service" ];
wantedBy = [ "graphical.target" ];
serviceConfig = {
ExecStart = "${displaylink}/bin/DisplayLinkManager";
Restart = "always";
RestartSec = 5;
};
preStart = ''
mkdir -p /var/log/displaylink
'';
};
};
}

View File

@@ -107,4 +107,7 @@ with lib;
'';
};
# Disable large stuff that's not very useful on the installation CD.
services.xserver.desktopManager.kde4.enablePIM = false;
}

View File

@@ -0,0 +1,5 @@
{
x86_64-linux = "/nix/store/i4mwf2gpvar7dqvlpp5m86llbq3ahbvb-nix-1.11.4";
i686-linux = "/nix/store/a3gjrbspb0q4hs3sv5g1y2nza43i8nzv-nix-1.11.4";
x86_64-darwin = "/nix/store/7v21yd3qpv0nclcy5cqr5njj9bril12s-nix-1.11.4";
}

View File

@@ -527,8 +527,11 @@ EOF
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# Define on which hard drive you want to install Grub.
# boot.loader.grub.device = "/dev/sda";
# boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
EOF
}

View File

@@ -92,14 +92,13 @@ fi
mkdir -m 0755 -p $mountPoint/dev $mountPoint/proc $mountPoint/sys $mountPoint/etc $mountPoint/run $mountPoint/home
mkdir -m 01777 -p $mountPoint/tmp
mkdir -m 0755 -p $mountPoint/tmp/root
mkdir -m 0755 -p $mountPoint/var/setuid-wrappers
mkdir -m 0755 -p $mountPoint/var
mkdir -m 0700 -p $mountPoint/root
mount --rbind /dev $mountPoint/dev
mount --rbind /proc $mountPoint/proc
mount --rbind /sys $mountPoint/sys
mount --rbind / $mountPoint/tmp/root
mount -t tmpfs -o "mode=0755" none $mountPoint/run
mount -t tmpfs -o "mode=0755" none $mountPoint/var/setuid-wrappers
rm -rf $mountPoint/var/run
ln -s /run $mountPoint/var/run
for f in /etc/resolv.conf /etc/hosts; do rm -f $mountPoint/$f; [ -f "$f" ] && cp -Lf $f $mountPoint/etc/; done
@@ -260,7 +259,7 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
# Ask the user to set a root password.
if [ -z "$noRootPasswd" ] && [ -x $mountPoint/var/setuid-wrappers/passwd ] && [ -t 0 ]; then
if [ -z "$noRootPasswd" ] && chroot $mountPoint [ -x /var/setuid-wrappers/passwd ] && [ -t 0 ]; then
echo "setting root password..."
chroot $mountPoint /var/setuid-wrappers/passwd
fi

View File

@@ -261,9 +261,9 @@ fi
prebuiltNix() {
machine="$1"
if [ "$machine" = x86_64 ]; then
echo /nix/store/xryr9g56h8yjddp89d6dw12anyb4ch7c-nix-1.10
echo @nix_x86_64_linux@
elif [[ "$machine" =~ i.86 ]]; then
echo /nix/store/2w92k5wlpspf0q2k9mnf2z42prx3bwmv-nix-1.10
echo @nix_i686_linux@
else
echo "$0: unsupported platform"
exit 1

View File

@@ -32,11 +32,15 @@ let
"cp refs $out";
};
nixos-rebuild = makeProg {
name = "nixos-rebuild";
src = ./nixos-rebuild.sh;
nix = config.nix.package.out;
};
nixos-rebuild =
let fallback = import ./nix-fallback-paths.nix; in
makeProg {
name = "nixos-rebuild";
src = ./nixos-rebuild.sh;
nix = config.nix.package.out;
nix_x86_64_linux = fallback.x86_64-linux;
nix_i686_linux = fallback.i686-linux;
};
nixos-generate-config = makeProg {
name = "nixos-generate-config";

View File

@@ -120,7 +120,6 @@
minidlna = 91;
elasticsearch = 92;
tcpcryptd = 93; # tcpcryptd uses a hard-coded uid. We patch it in Nixpkgs to match this choice.
#connman = 94; # unused
firebird = 95;
#keys = 96; # unused
haproxy = 97;
@@ -181,7 +180,6 @@
systemd-timesync = 154;
liquidsoap = 155;
etcd = 156;
docker-registry = 157;
hbase = 158;
opentsdb = 159;
scollector = 160;
@@ -377,7 +375,6 @@
minidlna = 91;
elasticsearch = 92;
#tcpcryptd = 93; # unused
connman = 94;
firebird = 95;
keys = 96;
haproxy = 97;
@@ -436,7 +433,6 @@
systemd-timesync = 154;
liquidsoap = 155;
#etcd = 156; # unused
#docker-registry = 157; # unused
hbase = 158;
opentsdb = 159;
scollector = 160;

View File

@@ -78,7 +78,7 @@ in
defaultChannel = mkOption {
internal = true;
type = types.str;
default = https://nixos.org/channels/nixos-unstable;
default = https://nixos.org/channels/nixos-16.09;
description = "Default NixOS channel to which the root user is subscribed.";
};

View File

@@ -40,6 +40,7 @@
./hardware/video/amdgpu.nix
./hardware/video/ati.nix
./hardware/video/bumblebee.nix
./hardware/video/displaylink.nix
./hardware/video/nvidia.nix
./hardware/video/webcam/facetimehd.nix
./i18n/input-method/default.nix
@@ -66,8 +67,9 @@
./programs/command-not-found/command-not-found.nix
./programs/dconf.nix
./programs/environment.nix
./programs/freetds.nix
./programs/fish.nix
./programs/freetds.nix
./programs/info.nix
./programs/kbdlight.nix
./programs/light.nix
./programs/man.nix
@@ -228,7 +230,6 @@
./services/misc/dictd.nix
./services/misc/dysnomia.nix
./services/misc/disnix.nix
./services/misc/docker-registry.nix
./services/misc/emby.nix
./services/misc/etcd.nix
./services/misc/felix.nix
@@ -332,7 +333,6 @@
./services/networking/dnschain.nix
./services/networking/dnscrypt-proxy.nix
./services/networking/dnsmasq.nix
./services/networking/docker-registry-server.nix
./services/networking/ejabberd.nix
./services/networking/fan.nix
./services/networking/ferm.nix

View File

@@ -11,4 +11,7 @@ with lib;
# This isn't perfect, but let's expect the user specifies an UTF-8 defaultLocale
i18n.supportedLocales = [ (config.i18n.defaultLocale + "/UTF-8") ];
services.nixosManual.enable = mkDefault false;
programs.man.enable = mkDefault false;
programs.info.enable = mkDefault false;
}

View File

@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
programs.info.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable info pages and the <command>info</command> command.
'';
};
};
config = mkIf config.programs.info.enable {
environment.systemPackages = [ pkgs.texinfoInteractive ];
environment.pathsToLink = [ "/info" "/share/info" ];
environment.extraOutputsToInstall = [ "info" ];
};
}

View File

@@ -99,7 +99,6 @@ in
groupdel = { rootOK = true; };
login = { startSession = true; allowNullPassword = true; showMotd = true; updateWtmp = true; };
chpasswd = { rootOK = true; };
chgpasswd = { rootOK = true; };
};
security.setuidPrograms = [ "su" "chfn" ]

View File

@@ -56,7 +56,6 @@ in
setXAuthLocation = mkOption {
type = types.bool;
default = config.services.xserver.enable;
description = ''
Whether to set the path to <command>xauth</command> for X11-forwarded connections.
This causes a dependency on X11 packages.
@@ -165,6 +164,9 @@ in
config = {
programs.ssh.setXAuthLocation =
mkDefault (config.services.xserver.enable || config.programs.ssh.forwardX11);
assertions =
[ { assertion = cfg.forwardX11 -> cfg.setXAuthLocation;
message = "cannot enable X11 forwarding without setting XAuth location";

View File

@@ -99,9 +99,9 @@ in
interactiveShellInit = ''
# history defaults
export SAVEHIST=2000
export HISTSIZE=2000
export HISTFILE=$HOME/.zsh_history
SAVEHIST=2000
HISTSIZE=2000
HISTFILE=$HOME/.zsh_history
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK

View File

@@ -140,6 +140,9 @@ with lib;
# fontconfig-ultimate
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "rendering" ] [ "fonts" "fontconfig" "ultimate" "preset" ])
# murmur
(mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
# Options that are obsolete and have no replacement.
(mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
(mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
@@ -151,7 +154,7 @@ with lib;
(mkRemovedOptionModule [ "services" "printing" "cupsFilesConf" ] "")
(mkRemovedOptionModule [ "services" "printing" "cupsdConf" ] "")
(mkRemovedOptionModule [ "services" "xserver" "startGnuPGAgent" ]
"See the 16.03 release notes for more information.")
"See the 16.09 release notes for more information.")
(mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
(mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
];

View File

@@ -166,7 +166,8 @@ in
++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains);
acmeService = {
description = "Renew ACME Certificate for ${cert}";
after = [ "network.target" ];
after = [ "network.target" "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "oneshot";
SuccessExitStatus = [ "0" "1" ];

View File

@@ -4,6 +4,7 @@ with lib;
let
cfg = config.security.audit;
enabled = cfg.enable == "lock" || cfg.enable;
failureModes = {
silent = 0;
@@ -11,6 +12,13 @@ let
panic = 2;
};
disableScript = pkgs.writeScript "audit-disable" ''
#!${pkgs.stdenv.shell} -eu
# Explicitly disable everything, as otherwise journald might start it.
auditctl -D
auditctl -e 0 -a task,never
'';
# TODO: it seems like people like their rules to be somewhat secret, yet they will not be if
# put in the store like this. At the same time, it doesn't feel like a huge deal and working
# around that is a pain so I'm leaving it like this for now.
@@ -47,7 +55,7 @@ in {
security.audit = {
enable = mkOption {
type = types.enum [ false true "lock" ];
default = true; # The kernel seems to enable it by default with no rules anyway
default = false;
description = ''
Whether to enable the Linux audit system. The special `lock' value can be used to
enable auditing and prevent disabling it until a restart. Be careful about locking
@@ -91,7 +99,7 @@ in {
};
};
config = mkIf (cfg.enable == "lock" || cfg.enable) {
config = {
systemd.services.audit = {
description = "Kernel Auditing";
wantedBy = [ "basic.target" ];
@@ -103,8 +111,8 @@ in {
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "@${startScript} audit-start";
ExecStop = "@${stopScript} audit-stop";
ExecStart = "@${if enabled then startScript else disableScript} audit-start";
ExecStop = "@${stopScript} audit-stop";
};
};
};

View File

@@ -20,6 +20,6 @@ with lib;
config = mkIf config.security.hideProcessInformation {
users.groups.proc.gid = config.ids.gids.proc;
fileSystems."/proc".options = [ "hidepid=2" "gid=${toString config.ids.gids.proc}" ];
boot.specialFileSystems."/proc".options = [ "hidepid=2" "gid=${toString config.ids.gids.proc}" ];
};
}

View File

@@ -105,6 +105,16 @@ let
'';
};
setEnvironment = mkOption {
type = types.bool;
default = true;
description = ''
Whether the service should set the environment variables
listed in <option>environment.sessionVariables</option>
using <literal>pam_env.so</literal>.
'';
};
setLoginUid = mkOption {
type = types.bool;
description = ''
@@ -284,7 +294,9 @@ let
"password optional ${pkgs.samba}/lib/security/pam_smbpass.so nullok use_authtok try_first_pass"}
# Session management.
session required pam_env.so envfile=${config.system.build.pamEnvironment}
${optionalString cfg.setEnvironment ''
session required pam_env.so envfile=${config.system.build.pamEnvironment}
''}
session required pam_unix.so
${optionalString cfg.setLoginUid
"session ${
@@ -477,6 +489,13 @@ in
vlock = {};
xlock = {};
xscreensaver = {};
runuser = { rootOK = true; unixAuth = false; setEnvironment = false; };
/* FIXME: should runuser -l start a systemd session? Currently
it complains "Cannot create session: Already running in a
session". */
runuser-l = { rootOK = true; unixAuth = false; };
};
};

View File

@@ -18,7 +18,7 @@ with lib;
config = mkIf config.security.rngd.enable {
services.udev.extraRules = ''
KERNEL=="random", TAG+="systemd"
SUBSYSTEM=="cpu", ENV{MODALIAS}=="x86cpu:*feature:*009E*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
SUBSYSTEM=="cpu", ENV{MODALIAS}=="cpu:type:x86,*feature:*009E*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
KERNEL=="hw_random", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
${if config.services.tcsd.enable then "" else ''KERNEL=="tpm0", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"''}
'';

View File

@@ -12,7 +12,7 @@ let
installPhase = ''
mkdir -p $out/bin
cp ${./setuid-wrapper.c} setuid-wrapper.c
gcc -Wall -O2 -DWRAPPER_DIR=\"${wrapperDir}\" \
gcc -Wall -O2 -DWRAPPER_DIR=\"/run/setuid-wrapper-dirs\" \
setuid-wrapper.c -o $out/bin/setuid-wrapper
'';
};
@@ -102,11 +102,11 @@ in
source=/nix/var/nix/profiles/default/bin/${program}
fi
cp ${setuidWrapper}/bin/setuid-wrapper ${wrapperDir}/${program}
echo -n "$source" > ${wrapperDir}/${program}.real
chmod 0000 ${wrapperDir}/${program} # to prevent races
chown ${owner}.${group} ${wrapperDir}/${program}
chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" ${wrapperDir}/${program}
cp ${setuidWrapper}/bin/setuid-wrapper $wrapperDir/${program}
echo -n "$source" > $wrapperDir/${program}.real
chmod 0000 $wrapperDir/${program} # to prevent races
chown ${owner}.${group} $wrapperDir/${program}
chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" $wrapperDir/${program}
'';
in stringAfter [ "users" ]
@@ -115,9 +115,30 @@ in
# programs to be wrapped.
SETUID_PATH=${config.system.path}/bin:${config.system.path}/sbin
rm -f ${wrapperDir}/* # */
mkdir -p /run/setuid-wrapper-dirs
wrapperDir=$(mktemp --directory --tmpdir=/run/setuid-wrapper-dirs setuid-wrappers.XXXXXXXXXX)
chmod a+rx $wrapperDir
${concatMapStrings makeSetuidWrapper setuidPrograms}
if [ -L ${wrapperDir} ]; then
# Atomically replace the symlink
# See https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/
old=$(readlink ${wrapperDir})
ln --symbolic --force --no-dereference $wrapperDir ${wrapperDir}-tmp
mv --no-target-directory ${wrapperDir}-tmp ${wrapperDir}
rm --force --recursive $old
elif [ -d ${wrapperDir} ]; then
# Compatibility with old state, just remove the folder and symlink
rm -f ${wrapperDir}/*
# if it happens to be a tmpfs
${pkgs.utillinux}/bin/umount ${wrapperDir} || true
rm -d ${wrapperDir}
ln -d --symbolic $wrapperDir ${wrapperDir}
else
# For initial setup
ln --symbolic $wrapperDir ${wrapperDir}
fi
'';
};

View File

@@ -66,16 +66,16 @@ let
enabled = false;
}];
collectd = {
collectd = [{
enabled = false;
typesdb = "${pkgs.collectd}/share/collectd/types.db";
database = "collectd_db";
port = 25826;
};
}];
opentsdb = {
opentsdb = [{
enabled = false;
};
}];
continuous_queries = {
enabled = true;
@@ -171,6 +171,11 @@ in
mkdir -m 0770 -p ${cfg.dataDir}
if [ "$(id -u)" = 0 ]; then chown -R ${cfg.user}:${cfg.group} ${cfg.dataDir}; fi
'';
postStart = mkBefore ''
until ${pkgs.curl.bin}/bin/curl -s -o /dev/null 'http://127.0.0.1${toString configOptions.http.bind-address}'/ping; do
sleep 1;
done
'';
};
users.extraUsers = optional (cfg.user == "influxdb") {

View File

@@ -12,13 +12,11 @@ let
mongoCnf = pkgs.writeText "mongodb.conf"
''
bind_ip = ${cfg.bind_ip}
${optionalString cfg.quiet "quiet = true"}
dbpath = ${cfg.dbpath}
syslog = true
fork = true
pidfilepath = ${cfg.pidFile}
${optionalString (cfg.replSetName != "") "replSet = ${cfg.replSetName}"}
net.bindIp: ${cfg.bind_ip}
${optionalString cfg.quiet "systemLog.quiet: true"}
systemLog.destination: syslog
storage.dbPath: ${cfg.dbpath}
${optionalString (cfg.replSetName != "") "replication.replSetName: ${cfg.replSetName}"}
${cfg.extraConfig}
'';
@@ -84,9 +82,9 @@ in
extraConfig = mkOption {
default = "";
example = ''
nojournal = true
storage.journal.enabled: false
'';
description = "MongoDB extra configuration";
description = "MongoDB extra configuration in YAML format";
};
};
@@ -112,7 +110,7 @@ in
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${mongodb}/bin/mongod --quiet --config ${mongoCnf}";
ExecStart = "${mongodb}/bin/mongod --quiet --config ${mongoCnf} --fork --pidfilepath ${cfg.pidFile}";
User = cfg.user;
PIDFile = cfg.pidFile;
Type = "forking";

View File

@@ -11,12 +11,14 @@ let
if cfg.extraPlugins == [] then pg
else pkgs.buildEnv {
name = "postgresql-and-plugins-${(builtins.parseDrvName pg.name).version}";
paths = [ pg ] ++ cfg.extraPlugins;
paths = [ pg pg.lib ] ++ cfg.extraPlugins;
buildInputs = [ pkgs.makeWrapper ];
postBuild =
''
mkdir -p $out/bin
rm $out/bin/{pg_config,postgres,pg_ctl}
cp --target-directory=$out/bin ${pg}/bin/{postgres,pg_config,pg_ctl}
wrapProgram $out/bin/postgres --set NIX_PGLIBDIR $out/lib
'';
};

View File

@@ -1,81 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.dockerRegistry;
in {
###### interface
options.services.dockerRegistry = {
enable = mkOption {
description = "Whether to enable docker registry server.";
default = false;
type = types.bool;
};
listenAddress = mkOption {
description = "Docker registry host or ip to bind to.";
default = "127.0.0.1";
type = types.str;
};
port = mkOption {
description = "Docker registry port to bind to.";
default = 5000;
type = types.int;
};
storagePath = mkOption {
type = types.path;
default = "/var/lib/docker-registry";
description = "Docker registry storage path.";
};
extraConfig = mkOption {
description = ''
Docker extra registry configuration. See
<link xlink:href="https://github.com/docker/docker-registry/blob/master/config/config_sample.yml"/>
'';
default = {};
type = types.attrsOf types.str;
};
};
config = mkIf cfg.enable {
systemd.services.docker-registry = {
description = "Docker Container Registry";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
environment = {
REGISTRY_HOST = cfg.listenAddress;
REGISTRY_PORT = toString cfg.port;
GUNICORN_OPTS = "[--preload]"; # see https://github.com/docker/docker-registry#sqlalchemy
STORAGE_PATH = cfg.storagePath;
} // cfg.extraConfig;
serviceConfig = {
ExecStart = "${pkgs.pythonPackages.docker_registry}/bin/docker-registry";
User = "docker-registry";
Group = "docker";
PermissionsStartOnly = true;
WorkingDirectory = cfg.storagePath;
};
postStart = ''
until ${pkgs.curl.bin}/bin/curl -s -o /dev/null 'http://${cfg.listenAddress}:${toString cfg.port}/'; do
sleep 1;
done
'';
};
users.extraGroups.docker.gid = mkDefault config.ids.gids.docker;
users.extraUsers.docker-registry = {
createHome = true;
home = cfg.storagePath;
uid = config.ids.uids.docker-registry;
};
};
}

View File

@@ -449,13 +449,15 @@ in {
Group = cfg.group;
TimeoutSec = "300";
Restart = "on-failure";
WorkingDirectory = gitlabEnv.HOME;
ExecStart =
"${cfg.packages.gitlab-workhorse}/bin/gitlab-workhorse "
+ "-listenUmask 0 "
+ "-listenNetwork unix "
+ "-listenAddr /run/gitlab/gitlab-workhorse.socket "
+ "-authSocket ${gitlabSocket} "
+ "-documentRoot ${cfg.packages.gitlab}/share/gitlab/public";
+ "-documentRoot ${cfg.packages.gitlab}/share/gitlab/public "
+ "-secretPath ${cfg.packages.gitlab}/share/gitlab/.gitlab_workhorse_secret";
};
};
@@ -525,17 +527,23 @@ in {
psql postgres -c "CREATE ROLE gitlab WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true
touch "${cfg.statePath}/db-created"
# The gitlab:setup task is horribly broken somehow, these two tasks will do the same for setting up the initial database
${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
${gitlab-rake}/bin/gitlab-rake db:seed_fu RAILS_ENV=production \
GITLAB_ROOT_PASSWORD="${cfg.initialRootPassword}" GITLAB_ROOT_EMAIL="${cfg.initialRootEmail}";
fi
fi
# enable required pg_trgm extension for gitlab
psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
# Always do the db migrations just to be sure the database is up-to-date
${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
# The gitlab:setup task is horribly broken somehow, the db:migrate
# task above and the db:seed_fu below will do the same for setting
# up the initial database
if ! test -e "${cfg.statePath}/db-seeded"; then
${gitlab-rake}/bin/gitlab-rake db:seed_fu RAILS_ENV=production \
GITLAB_ROOT_PASSWORD="${cfg.initialRootPassword}" GITLAB_ROOT_EMAIL="${cfg.initialRootEmail}"
touch "${cfg.statePath}/db-seeded"
fi
# Change permissions in the last step because some of the
# intermediary scripts like to create directories as root.
chown -R ${cfg.user}:${cfg.group} ${cfg.statePath}

View File

@@ -90,6 +90,7 @@ in {
${optionalString cfg.storageDriverSecure "-storage_driver_secure"}
''}
'';
TimeoutStartSec=300;
};
};

View File

@@ -56,6 +56,7 @@ let
serviceConfig = {
ExecStart = "${samba}/sbin/${appName} ${args}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Type = "notify";
};
restartTriggers = [ configFile ];
@@ -167,12 +168,12 @@ in
type = types.attrsOf (types.attrsOf types.unspecified);
example =
{ public =
{ path = "/srv/public";
"read only" = true;
browseable = "yes";
"guest ok" = "yes";
comment = "Public samba share.";
};
{ path = "/srv/public";
"read only" = true;
browseable = "yes";
"guest ok" = "yes";
comment = "Public samba share.";
};
};
};

View File

@@ -75,7 +75,8 @@ in
};
browseDomains = mkOption {
default = [ "0pointer.de" "zeroconf.org" ];
default = [ ];
example = [ "0pointer.de" "zeroconf.org" ];
description = ''
List of non-local DNS domains to be browsed.
'';

View File

@@ -1,98 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.nodeDockerRegistry;
in {
options.services.nodeDockerRegistry = {
enable = mkEnableOption "docker registry service";
port = mkOption {
description = "Docker registry listening port.";
default = 8080;
type = types.int;
};
users = mkOption {
description = "Docker registry list of users.";
default = [];
options = [{
user = mkOption {
description = "Docker registry user username.";
type = types.str;
};
pass = mkOption {
description = "Docker registry user password.";
type = types.str;
};
}];
type = types.listOf types.optionSet;
};
onTag = mkOption {
description = "Docker registry hook triggered when an image is tagged.";
default = "";
type = types.str;
};
onImage = mkOption {
description = "Docker registry hook triggered when an image metadata is uploaded.";
default = "";
type = types.str;
};
onLayer = mkOption {
description = "Docker registry hook triggered when an when an image layer is uploaded.";
default = "";
type = types.str;
};
onVerify = mkOption {
description = "Docker registry hook triggered when an image layer+metadata has been verified.";
default = "";
type = types.str;
};
onIndex = mkOption {
description = "Docker registry hook triggered when an when an image file system data has been indexed.";
default = "";
type = types.str;
};
dataDir = mkOption {
description = "Docker registry data directory";
default = "/var/lib/docker-registry";
type = types.path;
};
};
config = mkIf cfg.enable {
systemd.services.docker-registry-server = {
description = "Docker Registry Service.";
wantedBy = ["multi-user.target"];
after = ["network.target"];
script = ''
${pkgs.nodePackages.docker-registry-server}/bin/docker-registry-server \
--dir ${cfg.dataDir} \
--port ${toString cfg.port} \
${concatMapStringsSep " " (u: "--user ${u.user}:${u.pass}") cfg.users} \
${optionalString (cfg.onTag != "") "--on-tag '${cfg.onTag}'"} \
${optionalString (cfg.onImage != "") "--on-image '${cfg.onImage}'"} \
${optionalString (cfg.onVerify != "") "--on-verify '${cfg.onVerify}'"} \
${optionalString (cfg.onIndex != "") "--on-index '${cfg.onIndex}'"}
'';
serviceConfig.User = "docker-registry";
};
users.extraUsers.docker-registry = {
uid = config.ids.uids.docker-registry;
description = "Docker registry user";
createHome = true;
home = cfg.dataDir;
};
};
}

View File

@@ -490,7 +490,8 @@ in
systemd.services.firewall = {
description = "Firewall";
wantedBy = [ "network-pre.target" ];
wantedBy = [ "multi-user.target" "sysinit.target" ];
wants = [ "network-pre.target" ];
before = [ "network-pre.target" ];
after = [ "systemd-modules-load.service" ];

View File

@@ -59,8 +59,12 @@ in {
description = "mjpg-streamer webcam streamer";
wantedBy = [ "multi-user.target" ];
serviceConfig.User = cfg.user;
serviceConfig.Group = cfg.group;
serviceConfig = {
User = cfg.user;
Group = cfg.group;
Restart = "on-failure";
RestartSec = 1;
};
script = ''
IPLUGIN="${cfg.inputPlugin}"

View File

@@ -15,7 +15,7 @@ let
logfile=/var/log/murmur/murmurd.log
pidfile=${cfg.pidfile}
welcome="${cfg.welcome}"
welcometext="${cfg.welcometext}"
port=${toString cfg.port}
${if cfg.hostName == "" then "" else "host="+cfg.hostName}
@@ -84,7 +84,7 @@ in
description = "Path to PID file for Murmur daemon.";
};
welcome = mkOption {
welcometext = mkOption {
type = types.str;
default = "";
description = "Welcome message for connected clients.";

View File

@@ -85,7 +85,7 @@ in
forwardX11 = mkOption {
type = types.bool;
default = cfgc.setXAuthLocation;
default = false;
description = ''
Whether to allow X11 connections to be forwarded.
'';
@@ -227,6 +227,8 @@ in
config = mkIf cfg.enable {
programs.ssh.setXAuthLocation = mkForce cfg.forwardX11;
users.extraUsers.sshd =
{ isSystemUser = true;
description = "SSH privilege separation user";

View File

@@ -34,7 +34,7 @@ let
'';
in
{ description = "Supplicant ${iface}${optionalString (iface=="WLAN"||iface=="LAN") " %I"}";
wantedBy = [ "network.target" ];
wantedBy = [ "network.target" ] ++ deps;
bindsTo = deps;
after = deps;
before = [ "network.target" ];

View File

@@ -43,14 +43,10 @@ in
options = {
services.unbound = {
enable = mkOption {
default = false;
type = types.bool;
description = "Whether to enable the Unbound domain name server.";
};
enable = mkEnableOption "Unbound domain name server";
allowedAccess = mkOption {
default = ["127.0.0.0/24"];
default = [ "127.0.0.0/24" ];
type = types.listOf types.str;
description = "What networks are allowed to use unbound as a resolver.";
};
@@ -97,7 +93,7 @@ in
};
systemd.services.unbound = {
description="Unbound recursive Domain Name Server";
description = "Unbound recursive Domain Name Server";
after = [ "network.target" ];
before = [ "nss-lookup.target" ];
wants = [" nss-lookup.target" ];

View File

@@ -7,11 +7,19 @@ let
in
{
options.services.zerotierone.enable = mkEnableOption "ZeroTierOne";
options.services.zerotierone.package = mkOption {
default = pkgs.zerotierone;
defaultText = "pkgs.zerotierone";
type = types.package;
description = ''
ZeroTier One package to use.
'';
};
config = mkIf cfg.enable {
systemd.services.zerotierone = {
description = "ZeroTierOne";
path = [ pkgs.zerotierone ];
path = [ cfg.package ];
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
preStart =
@@ -21,7 +29,7 @@ in
chown -R root:root /var/lib/zerotier-one
'';
serviceConfig = {
ExecStart = "${pkgs.zerotierone}/bin/zerotier-one";
ExecStart = "${cfg.package}/bin/zerotier-one";
Restart = "always";
KillMode = "process";
};
@@ -30,6 +38,6 @@ in
# ZeroTier does not issue DHCP leases, but some strangers might...
networking.dhcpcd.denyInterfaces = [ "zt0" ];
environment.systemPackages = [ pkgs.zerotierone ];
environment.systemPackages = [ cfg.package ];
};
}

View File

@@ -8,7 +8,7 @@ let
cfg = config.services.dbus;
homeDir = "/var/run/dbus";
homeDir = "/run/dbus";
systemExtraxml = concatStrings (flip concatMap cfg.packages (d: [
"<servicedir>${d}/share/dbus-1/system-services</servicedir>"
@@ -20,6 +20,8 @@ let
"<includedir>${d}/etc/dbus-1/session.d</includedir>"
]));
daemonArgs = "--address=systemd: --nofork --nopidfile --systemd-activation";
configDir = pkgs.stdenv.mkDerivation {
name = "dbus-conf";
@@ -29,6 +31,14 @@ let
buildCommand = ''
mkdir -p $out
cp ${pkgs.dbus.out}/share/dbus-1/{system,session}.conf $out
# avoid circular includes
sed -ri 's@(<include ignore_missing="yes">/etc/dbus-1/(system|session)\.conf</include>)@<!-- \1 -->@g' $out/{system,session}.conf
# include by full path
sed -ri "s@/etc/dbus-1/(system|session)-@$out/\1-@" $out/{system,session}.conf
sed '${./dbus-system-local.conf.in}' \
-e 's,@servicehelper@,${config.security.wrapperDir}/dbus-daemon-launch-helper,g' \
-e 's,@extra@,${systemExtraxml},' \
@@ -75,16 +85,21 @@ in
'';
};
socketActivated = mkOption {
type = types.bool;
default = false;
description = ''
Make the user instance socket activated.
'';
};
};
};
###### implementation
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.dbus.daemon pkgs.dbus_tools ];
environment.systemPackages = [ pkgs.dbus.daemon pkgs.dbus ];
environment.etc = singleton
{ source = configDir;
@@ -104,7 +119,7 @@ in
security.setuidOwners = singleton
{ program = "dbus-daemon-launch-helper";
source = "${pkgs.dbus_daemon.out}/libexec/dbus-daemon-launch-helper";
source = "${pkgs.dbus.daemon}/libexec/dbus-daemon-launch-helper";
owner = "root";
group = "messagebus";
setuid = true;
@@ -117,13 +132,29 @@ in
config.system.path
];
# Don't restart dbus-daemon. Bad things tend to happen if we do.
systemd.services.dbus.reloadIfChanged = true;
systemd.services.dbus = {
# Don't restart dbus-daemon. Bad things tend to happen if we do.
reloadIfChanged = true;
restartTriggers = [ configDir ];
serviceConfig.ExecStart = [
""
"${lib.getBin pkgs.dbus}/bin/dbus-daemon --config-file=${configDir}/system.conf ${daemonArgs}"
];
};
systemd.services.dbus.restartTriggers = [ configDir ];
systemd.user = {
services.dbus = {
# Don't restart dbus-daemon. Bad things tend to happen if we do.
reloadIfChanged = true;
restartTriggers = [ configDir ];
serviceConfig.ExecStart = [
""
"${lib.getBin pkgs.dbus}/bin/dbus-daemon --config-file=${configDir}/session.conf ${daemonArgs}"
];
};
sockets.dbus.wantedBy = mkIf cfg.socketActivated [ "sockets.target" ];
};
environment.pathsToLink = [ "/etc/dbus-1" "/share/dbus-1" ];
};
}

View File

@@ -83,11 +83,11 @@ let
# Unpack Mediawiki and put the config file in its root directory.
mediawikiRoot = pkgs.stdenv.mkDerivation rec {
name= "mediawiki-1.23.13";
name= "mediawiki-1.27.1";
src = pkgs.fetchurl {
url = "http://download.wikimedia.org/mediawiki/1.23/${name}.tar.gz";
sha256 = "168wpf53n4ksj2g5q5r0hxapx6238dvsfng5ff9ixk6axsn0j5d0";
url = "http://download.wikimedia.org/mediawiki/1.27/${name}.tar.gz";
sha256 = "0sm3ymz93qragbwhzzbwq7f127mbj29inv0afg2z6p32jb1pd9h8";
};
skins = config.skins;

View File

@@ -63,6 +63,10 @@ let
cp -r * $out
cp ${moodleConfig} $out/config.php
'';
# Marked as broken due to needing an update for security issues.
# See: https://github.com/NixOS/nixpkgs/issues/18856
meta.broken = true;
};
in

View File

@@ -5,7 +5,8 @@ with lib;
let
version = "4.3.1";
# Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix
version = "4.6.1";
fullversion = "${version}";
# Our bare-bones wp-config.php file using the above settings
@@ -74,7 +75,7 @@ let
owner = "WordPress";
repo = "WordPress";
rev = "${fullversion}";
sha256 = "1rk10vcv4z9p04hfzc0wkbilrgx7m9ssyr6c3w6vw3vl1bcgqxza";
sha256 = "0n82xgjg1ry2p73hhgpslnkdzrma5n6hxxq76s7qskkzj0qjfvpn";
};
installPhase = ''
mkdir -p $out
@@ -98,7 +99,7 @@ let
# symlink additional plugin(s)
${concatMapStrings (plugin: "ln -s ${plugin} $out/wp-content/plugins/${plugin.name}\n") (config.plugins) }
# symlink additional translation(s)
# symlink additional translation(s)
mkdir -p $out/wp-content/languages
${concatMapStrings (language: "ln -s ${language}/*.mo ${language}/*.po $out/wp-content/languages/\n") (selectedLanguages) }
'';
@@ -123,7 +124,7 @@ in
options = {
dbHost = mkOption {
default = "localhost";
description = "The location of the database server.";
description = "The location of the database server.";
example = "localhost";
};
dbName = mkOption {
@@ -253,7 +254,7 @@ in
done
${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
${pkgs.mysql}/bin/mysql -e 'GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY "${config.dbPassword}";'
else
else
echo "Good, no need to do anything database related."
fi
'';

View File

@@ -114,17 +114,18 @@ let
port = if vhost.port != null then vhost.port else (if ssl then 443 else 80);
listenString = toString port + optionalString ssl " ssl http2"
+ optionalString vhost.default " default";
acmeLocation = optionalString vhost.enableACME ''
acmeLocation = optionalString vhost.enableACME (''
location /.well-known/acme-challenge {
try_files $uri @acme-fallback;
${optionalString (vhost.acmeFallbackHost != null) "try_files $uri @acme-fallback;"}
root ${vhost.acmeRoot};
auth_basic off;
}
'' + (optionalString (vhost.acmeFallbackHost != null) ''
location @acme-fallback {
auth_basic off;
proxy_pass http://${vhost.acmeFallbackHost};
}
'';
''));
in ''
${optionalString vhost.forceSSL ''
server {

View File

@@ -39,8 +39,8 @@ with lib;
};
acmeFallbackHost = mkOption {
type = types.str;
default = "0.0.0.0";
type = types.nullOr types.str;
default = null;
description = ''
Host which to proxy requests to if acme challenge is not found. Useful
if you want multiple hosts to be able to verify the same domain name.

View File

@@ -10,6 +10,10 @@ in
{
meta = {
maintainers = with maintainers; [ danbst ];
};
###### interface
options = {
@@ -74,8 +78,8 @@ in
webapps = mkOption {
type = types.listOf types.package;
default = [ tomcat ];
defaultText = "[ tomcat ]";
default = [ tomcat.webapps ];
defaultText = "[ tomcat.webapps ]";
description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat";
};

View File

@@ -14,7 +14,7 @@ let
# files), segfault sometimes and consume significant resources.
# They can be re-enabled in the KDE System Settings under "Desktop
# Search".
nepomukConfig = pkgs.writeTextFile
disableNepomuk = pkgs.writeTextFile
{ name = "nepomuk-config";
destination = "/share/config/nepomukserverrc";
text =
@@ -70,6 +70,18 @@ in
type = types.package;
description = "Custom kde-workspace, used for NixOS rebranding.";
};
enablePIM = mkOption {
type = types.bool;
default = true;
description = "Whether to enable PIM support. Note that enabling this pulls in Akonadi and MariaDB as dependencies.";
};
enableNepomuk = mkOption {
type = types.bool;
default = false;
description = "Whether to enable Nepomuk (deprecated).";
};
};
};
@@ -138,7 +150,6 @@ in
pkgs.kde4.kde_wallpapers # contains kdm's default background
pkgs.kde4.oxygen_icons
pkgs.virtuoso # to enable Nepomuk to find Virtuoso
# Starts KDE's Polkit authentication agent.
pkgs.kde4.polkit_kde_agent
@@ -149,20 +160,26 @@ in
xorg.xmessage # so that startkde can show error messages
xorg.xset # used by startkde, non-essential
xorg.xauth # used by kdesu
pkgs.shared_desktop_ontologies # used by nepomuk
pkgs.strigi # used by nepomuk
]
++ optionals cfg.enablePIM
[ pkgs.kde4.kdepim_runtime
pkgs.kde4.akonadi
pkgs.mysql # used by akonadi
pkgs.kde4.kdepim_runtime
]
++ lib.optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled
++ lib.optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil
++ lib.optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm
++ [ nepomukConfig ] ++ phononBackendPackages;
++ (if cfg.enableNepomuk then
[ pkgs.shared_desktop_ontologies # used by nepomuk
pkgs.strigi # used by nepomuk
pkgs.virtuoso # to enable Nepomuk to find Virtuoso
] else
[ disableNepomuk ])
++ optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled
++ optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil
++ optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm
++ phononBackendPackages;
environment.pathsToLink = [ "/share" ];
environment.profileRelativeEnvVars = mkIf (lib.elem "gstreamer" cfg.phononBackends) {
environment.profileRelativeEnvVars = mkIf (elem "gstreamer" cfg.phononBackends) {
GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ];
};

View File

@@ -69,7 +69,7 @@ in
services.xserver.updateDbusEnvironment = true;
environment.systemPackages =
[ pkgs.gtk # To get GTK+'s themes.
[ pkgs.gtk.out # To get GTK+'s themes and gtk-update-icon-cache
pkgs.hicolor_icon_theme
pkgs.tango-icon-theme
pkgs.shared_mime_info
@@ -100,6 +100,7 @@ in
pkgs.xfce.tumbler # found via dbus
]
++ optional config.powerManagement.enable pkgs.xfce.xfce4_power_manager
++ optional config.networking.networkmanager.enable pkgs.networkmanagerapplet
++ optionals (!cfg.noDesktop)
[ pkgs.xfce.xfce4panel
pkgs.xfce.xfdesktop

View File

@@ -134,13 +134,8 @@ let
(*) echo "$0: Desktop manager '$desktopManager' not found.";;
esac
# FIXME: gdbus should not be in glib.dev!
${optionalString (cfg.startDbusSession && cfg.updateDbusEnvironment) ''
${pkgs.glib.dev}/bin/gdbus call --session \
--dest org.freedesktop.DBus --object-path /org/freedesktop/DBus \
--method org.freedesktop.DBus.UpdateActivationEnvironment \
"{$(env | ${pkgs.gnused}/bin/sed "s/'/\\\\'/g; s/\([^=]*\)=\(.*\)/'\1':'\2'/" \
| ${pkgs.coreutils}/bin/paste -sd,)}"
${optionalString cfg.updateDbusEnvironment ''
${lib.getBin pkgs.dbus}/bin/dbus-update-activation-environment --systemd --all
''}
test -n "$waitPID" && wait "$waitPID"

View File

@@ -654,6 +654,8 @@ in
${xrandrMonitorSections}
'';
fonts.enableDefaultFonts = mkDefault true;
};
}

View File

@@ -12,11 +12,13 @@ let
'';
});
path = map getBin
[ pkgs.coreutils pkgs.gnugrep pkgs.findutils
pkgs.glibc # needed for getent
pkgs.shadow
pkgs.nettools # needed for hostname
path = with pkgs; map getBin
[ coreutils
gnugrep
findutils
glibc # needed for getent
shadow
nettools # needed for hostname
];
in
@@ -137,8 +139,13 @@ in
mkdir -m 1777 -p /var/tmp
# Empty, read-only home directory of many system accounts.
mkdir -m 0555 -p /var/empty
# Empty, immutable home directory of many system accounts.
mkdir -p /var/empty
# Make sure it's really empty
${pkgs.e2fsprogs}/bin/chattr -f -i /var/empty || true
find /var/empty -mindepth 1 -delete
chmod 0555 /var/empty
${pkgs.e2fsprogs}/bin/chattr -f +i /var/empty || true
'';
system.activationScripts.usrbinenv = if config.environment.usrbinenv != null

View File

@@ -213,33 +213,30 @@ while (my ($unit, $state) = each %{$activePrev}) {
elsif (!boolIsTrue($unitInfo->{'X-RestartIfChanged'} // "yes") || boolIsTrue($unitInfo->{'RefuseManualStop'} // "no") ) {
$unitsToSkip{$unit} = 1;
} else {
# If this unit is socket-activated, then stop the
# socket unit(s) as well, and restart the
# socket(s) instead of the service.
my $socketActivated = 0;
if ($unit =~ /\.service$/) {
my @sockets = split / /, ($unitInfo->{Sockets} // "");
if (scalar @sockets == 0) {
@sockets = ("$baseName.socket");
}
foreach my $socket (@sockets) {
if (defined $activePrev->{$socket}) {
$unitsToStop{$unit} = 1;
$unitsToStart{$unit} = 1;
recordUnit($startListFile, $socket);
$socketActivated = 1;
}
}
}
if (!boolIsTrue($unitInfo->{'X-StopIfChanged'} // "yes")) {
# This unit should be restarted instead of
# stopped and started.
$unitsToRestart{$unit} = 1;
recordUnit($restartListFile, $unit);
} else {
# If this unit is socket-activated, then stop the
# socket unit(s) as well, and restart the
# socket(s) instead of the service.
my $socketActivated = 0;
if ($unit =~ /\.service$/) {
my @sockets = split / /, ($unitInfo->{Sockets} // "");
if (scalar @sockets == 0) {
@sockets = ("$baseName.socket");
}
foreach my $socket (@sockets) {
if (defined $activePrev->{$socket}) {
$unitsToStop{$socket} = 1;
$unitsToStart{$socket} = 1;
recordUnit($startListFile, $socket);
$socketActivated = 1;
}
}
}
# If the unit is not socket-activated, record
# that this unit needs to be started below.
@@ -251,7 +248,6 @@ while (my ($unit, $state) = each %{$activePrev}) {
}
$unitsToStop{$unit} = 1;
}
}
}

View File

@@ -98,7 +98,7 @@ let
# `switch-to-configuration' that activates the configuration and
# makes it bootable.
baseSystem = showWarnings (
if [] == failed then pkgs.stdenv.mkDerivation {
if [] == failed then pkgs.stdenvNoCC.mkDerivation {
name = let hn = config.networking.hostName;
nn = if (hn != "") then hn else "unnamed";
in "nixos-system-${nn}-${config.system.nixosLabel}";

View File

@@ -203,6 +203,12 @@ in
# Misc. stuff.
"pcips2" "atkbd"
# Temporary fix for https://github.com/NixOS/nixpkgs/issues/18451
# Remove as soon as upstream gets fixed - marking it:
# TODO
# FIXME
"i8042"
# To wait for SCSI devices to appear.
"scsi_wait_scan"

View File

@@ -55,7 +55,7 @@ let
inherit (cfg)
version extraConfig extraPerEntryConfig extraEntries
extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels
default fsIdentifier efiSupport gfxmodeEfi gfxmodeBios;
default fsIdentifier efiSupport efiInstallAsRemovable gfxmodeEfi gfxmodeBios;
path = (makeBinPath ([
pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils pkgs.btrfs-progs
pkgs.utillinux ] ++ (if cfg.efiSupport && (cfg.version == 2) then [pkgs.efibootmgr ] else [])
@@ -357,6 +357,44 @@ in
'';
};
efiInstallAsRemovable = mkOption {
default = false;
example = true;
type = types.bool;
description = ''
Whether to invoke <literal>grub-install</literal> with
<literal>--removable</literal>.</para>
<para>Unless you turn this on, GRUB will install itself somewhere in
<literal>boot.loader.efi.efiSysMountPoint</literal> (exactly where
depends on other config variables). If you've set
<literal>boot.loader.efi.canTouchEfiVariables</literal> *AND* you
are currently booted in UEFI mode, then GRUB will use
<literal>efibootmgr</literal> to modify the boot order in the
EFI variables of your firmware to include this location. If you are
*not* booted in UEFI mode at the time GRUB is being installed, the
NVRAM will not be modified, and your system will not find GRUB at
boot time. However, GRUB will still return success so you may miss
the warning that gets printed ("<literal>efibootmgr: EFI variables
are not supported on this system.</literal>").</para>
<para>If you turn this feature on, GRUB will install itself in a
special location within <literal>efiSysMountPoint</literal> (namely
<literal>EFI/boot/boot$arch.efi</literal>) which the firmwares
are hardcoded to try first, regardless of NVRAM EFI variables.</para>
<para>To summarize, turn this on if:
<itemizedlist>
<listitem><para>You are installing NixOS and want it to boot in UEFI mode,
but you are currently booted in legacy mode</para></listitem>
<listitem><para>You want to make a drive that will boot regardless of
the NVRAM state of the computer (like a USB "removable" drive)</para></listitem>
<listitem><para>You simply dislike the idea of depending on NVRAM
state to make your drive bootable</para></listitem>
</itemizedlist>
'';
};
enableCryptodisk = mkOption {
default = false;
type = types.bool;
@@ -425,13 +463,20 @@ in
{ path = "/boot"; inherit (cfg) devices; inherit (efi) efiSysMountPoint; }
];
system.build.installBootLoader = pkgs.writeScript "install-grub.sh" (''
system.build.installBootLoader =
let
install-grub-pl = pkgs.substituteAll {
src = ./install-grub.pl;
inherit (pkgs) utillinux;
btrfsprogs = pkgs.btrfs-progs;
};
in pkgs.writeScript "install-grub.sh" (''
#!${pkgs.stdenv.shell}
set -e
export PERL5LIB=${makePerlPath (with pkgs.perlPackages; [ FileSlurp XMLLibXML XMLSAX ListCompare ])}
${optionalString cfg.enableCryptodisk "export GRUB_ENABLE_CRYPTODISK=y"}
'' + flip concatMapStrings cfg.mirroredBoots (args: ''
${pkgs.perl}/bin/perl ${./install-grub.pl} ${grubConfig args} $@
${pkgs.perl}/bin/perl ${install-grub-pl} ${grubConfig args} $@
''));
system.build.grub = grub;
@@ -477,6 +522,14 @@ in
assertion = !cfg.trustedBoot.enable || cfg.trustedBoot.systemHasTPM == "YES_TPM_is_activated";
message = "Trusted GRUB can break the system! Confirm that the system has an activated TPM by setting 'systemHasTPM'.";
}
{
assertion = cfg.efiInstallAsRemovable -> cfg.efiSupport;
message = "If you wish to to use boot.loader.grub.efiInstallAsRemovable, then turn on boot.loader.grub.efiSupport";
}
{
assertion = cfg.efiInstallAsRemovable -> !config.boot.loader.efi.canTouchEfiVariables;
message = "If you wish to to use boot.loader.grub.efiInstallAsRemovable, then turn off boot.loader.efi.canTouchEfiVariables";
}
] ++ flip concatMap cfg.mirroredBoots (args: [
{
assertion = args.devices != [ ];

View File

@@ -12,8 +12,10 @@ require List::Compare;
use POSIX;
use Cwd;
# system.build.toplevel path
my $defaultConfig = $ARGV[1] or die;
# Grub config XML generated by grubConfig function in grub.nix
my $dom = XML::LibXML->load_xml(location => $ARGV[0]);
sub get { my ($name) = @_; return $dom->findvalue("/expr/attrs/attr[\@name = '$name']/*/\@value"); }
@@ -58,6 +60,7 @@ my $grubTargetEfi = get("grubTargetEfi");
my $bootPath = get("bootPath");
my $storePath = get("storePath");
my $canTouchEfiVariables = get("canTouchEfiVariables");
my $efiInstallAsRemovable = get("efiInstallAsRemovable");
my $efiSysMountPoint = get("efiSysMountPoint");
my $gfxmodeEfi = get("gfxmodeEfi");
my $gfxmodeBios = get("gfxmodeBios");
@@ -97,6 +100,8 @@ sub PathInMount {
}
return 1;
}
# Figure out what filesystem is used for the directory with init/initrd/kernel files
sub GetFs {
my ($dir) = @_;
my $bestFs = Fs->new(device => "", type => "", mount => "");
@@ -136,7 +141,10 @@ my $driveid = 1;
sub GrubFs {
my ($dir) = @_;
my $fs = GetFs($dir);
my $path = "/" . substr($dir, length($fs->mount));
my $path = substr($dir, length($fs->mount));
if (substr($path, 0, 1) ne "/") {
$path = "/$path";
}
my $search = "";
if ($grubVersion > 1) {
@@ -169,7 +177,7 @@ sub GrubFs {
$search = $types{$fsIdentifier} . ' ';
# Based on the type pull in the identifier from the system
my ($status, @devInfo) = runCommand("blkid -o export @{[$fs->device]}");
my ($status, @devInfo) = runCommand("@utillinux@/bin/blkid -o export @{[$fs->device]}");
if ($status != 0) {
die "Failed to get blkid info for @{[$fs->mount]} on @{[$fs->device]}";
}
@@ -182,7 +190,7 @@ sub GrubFs {
# BTRFS is a special case in that we need to fix the referrenced path based on subvolumes
if ($fs->type eq 'btrfs') {
my ($status, @id_info) = runCommand("btrfs subvol show @{[$fs->mount]}");
my ($status, @id_info) = runCommand("@btrfsprogs@/bin/btrfs subvol show @{[$fs->mount]}");
if ($status != 0) {
die "Failed to retrieve subvolume info for @{[$fs->mount]}\n";
}
@@ -190,7 +198,7 @@ sub GrubFs {
if ($#ids > 0) {
die "Btrfs subvol name for @{[$fs->device]} listed multiple times in mount\n"
} elsif ($#ids == 0) {
my ($status, @path_info) = runCommand("btrfs subvol list @{[$fs->mount]}");
my ($status, @path_info) = runCommand("@btrfsprogs@/bin/btrfs subvol list @{[$fs->mount]}");
if ($status != 0) {
die "Failed to find @{[$fs->mount]} subvolume id from btrfs\n";
}
@@ -537,13 +545,15 @@ if (($requireNewInstall != 0) && ($efiTarget eq "no" || $efiTarget eq "both")) {
# install EFI GRUB
if (($requireNewInstall != 0) && ($efiTarget eq "only" || $efiTarget eq "both")) {
print STDERR "installing the GRUB $grubVersion EFI boot loader into $efiSysMountPoint...\n";
my @command = ("$grubEfi/sbin/grub-install", "--recheck", "--target=$grubTargetEfi", "--boot-directory=$bootPath", "--efi-directory=$efiSysMountPoint");
if ($canTouchEfiVariables eq "true") {
system("$grubEfi/sbin/grub-install", "--recheck", "--target=$grubTargetEfi", "--boot-directory=$bootPath", "--efi-directory=$efiSysMountPoint", "--bootloader-id=$bootloaderId") == 0
or die "$0: installation of GRUB EFI into $efiSysMountPoint failed\n";
push @command, "--bootloader-id=$bootloaderId";
} else {
system("$grubEfi/sbin/grub-install", "--recheck", "--target=$grubTargetEfi", "--boot-directory=$bootPath", "--efi-directory=$efiSysMountPoint", "--no-nvram") == 0
or die "$0: installation of GRUB EFI into $efiSysMountPoint failed\n";
push @command, "--no-nvram";
push @command, "--removable" if $efiInstallAsRemovable eq "true";
}
(system @command) == 0 or die "$0: installation of GRUB EFI into $efiSysMountPoint failed\n";
}

View File

@@ -198,9 +198,10 @@ let
preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;
resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")
(filter (sd: (sd ? label || hasPrefix "/dev/" sd.device) && !sd.randomEncryption
# Don't include zram devices
&& !(hasPrefix "/dev/zram" sd.device)) config.swapDevices);
(filter (sd: hasPrefix "/dev/" sd.device && !sd.randomEncryption
# Don't include zram devices
&& !(hasPrefix "/dev/zram" sd.device)
) config.swapDevices);
fsInfo =
let f = fs: [ fs.mountPoint (if fs.device != null then fs.device else "/dev/disk/by-label/${fs.label}") fs.fsType (builtins.concatStringsSep "," fs.options) ];

View File

@@ -29,7 +29,7 @@ setPath "@path@"
# Normally, stage 1 mounts the root filesystem read/writable.
# However, in some environments, stage 2 is executed directly, and the
# root is read-only. So make it writable here.
if [ "$container" != systemd-nspawn ]; then
if [ -z "$container" ]; then
mount -n -o remount,rw none /
fi
@@ -141,13 +141,6 @@ if [ -n "@useHostResolvConf@" -a -e /etc/resolv.conf ]; then
cat /etc/resolv.conf | resolvconf -m 1000 -a host
fi
# Create /var/setuid-wrappers as a tmpfs.
rm -rf /var/setuid-wrappers
mkdir -m 0755 -p /var/setuid-wrappers
mount -t tmpfs -o "mode=0755" tmpfs /var/setuid-wrappers
# Log the script output to /dev/kmsg or /run/log/stage-2-init.log.
# Only at this point are all the necessary prerequisites ready for these commands.
exec {logOutFd}>&1 {logErrFd}>&2

View File

@@ -309,7 +309,7 @@ in rec {
};
startAt = mkOption {
type = types.str;
type = with types; either str (listOf str);
default = "";
example = "Sun 14:00:00";
description = ''

View File

@@ -803,6 +803,8 @@ in
systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
systemd.services.systemd-logind.stopIfChanged = false;
systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ];
systemd.services.systemd-journald.stopIfChanged = false;
systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];

View File

@@ -8,7 +8,7 @@ let
etc' = filter (f: f.enable) (attrValues config.environment.etc);
etc = pkgs.stdenv.mkDerivation {
etc = pkgs.stdenvNoCC.mkDerivation {
name = "etc";
builder = ./make-etc.sh;

View File

@@ -20,7 +20,7 @@ let
specialFSTypes = [ "proc" "sysfs" "tmpfs" "devtmpfs" "devpts" ];
fileSystemOpts = { name, config, ... }: {
coreFileSystemOpts = { name, config, ... }: {
options = {
@@ -37,13 +37,6 @@ let
description = "Location of the device.";
};
label = mkOption {
default = null;
example = "root-partition";
type = types.nullOr types.str;
description = "Label of the device (if any).";
};
fsType = mkOption {
default = "auto";
example = "ext3";
@@ -55,12 +48,28 @@ let
default = [ "defaults" ];
example = [ "data=journal" ];
description = "Options used to mount the file system.";
} // (if versionAtLeast lib.nixpkgsVersion "16.09" then {
type = types.listOf types.str;
} else {
type = types.either types.commas (types.listOf types.str);
apply = x: if isList x then x else lib.strings.splitString "," (builtins.trace "warning: passing a comma-separated string for filesystem options is deprecated; use a list of strings instead. This will become a hard error in 16.09." x);
});
};
};
config = {
mountPoint = mkDefault name;
device = mkIf (elem config.fsType specialFSTypes) (mkDefault config.fsType);
};
};
fileSystemOpts = { config, ... }: {
options = {
label = mkOption {
default = null;
example = "root-partition";
type = types.nullOr types.str;
description = "Label of the device (if any).";
};
autoFormat = mkOption {
default = false;
@@ -99,22 +108,9 @@ let
description = "Disable running fsck on this filesystem.";
};
early = mkOption {
default = false;
type = types.bool;
internal = true;
description = ''
Mount this filesystem very early during boot. At the moment of
mounting no disks are exposed, so this option is primarily for
special file systems.
'';
};
};
config = {
mountPoint = mkDefault name;
device = mkIf (elem config.fsType specialFSTypes) (mkDefault config.fsType);
options = mkIf config.autoResize [ "x-nixos.autoresize" ];
# -F needed to allow bare block device without partitions
@@ -151,7 +147,7 @@ in
"/bigdisk".label = "bigdisk";
}
'';
type = types.loaOf (types.submodule fileSystemOpts);
type = types.loaOf (types.submodule [coreFileSystemOpts fileSystemOpts]);
description = ''
The file systems to be mounted. It must include an entry for
the root directory (<literal>mountPoint = "/"</literal>). Each
@@ -183,6 +179,15 @@ in
description = "Names of supported filesystem types.";
};
boot.specialFileSystems = mkOption {
default = {};
type = types.loaOf (types.submodule coreFileSystemOpts);
internal = true;
description = ''
Special filesystems that are mounted very early during boot.
'';
};
};
@@ -196,14 +201,11 @@ in
{ assertion = ! (fileSystems' ? "cycle");
message = "The fileSystems option can't be topologically sorted: mountpoint dependency path ${ls " -> " fileSystems'.cycle} loops to ${ls ", " fileSystems'.loops}";
}
{ assertion = all (x: !x.early || (x.label == null && !x.autoFormat && !x.autoResize)) fileSystems;
message = "Early filesystems don't support mounting by label, auto formatting and resizing";
}
];
# Export for use in other modules
system.build.fileSystems = fileSystems;
system.build.earlyMountScript = makeSpecialMounts (filter (fs: fs.early) fileSystems);
system.build.earlyMountScript = makeSpecialMounts (toposort fsBefore (attrValues config.boot.specialFileSystems)).result;
boot.supportedFilesystems = map (fs: fs.fsType) fileSystems;
@@ -234,7 +236,7 @@ in
+ " " + (if skipCheck fs then "0" else
if fs.mountPoint == "/" then "1" else "2")
+ "\n"
) (filter (fs: !fs.early) fileSystems)}
) fileSystems}
# Swap devices.
${flip concatMapStrings config.swapDevices (sw:
@@ -256,7 +258,7 @@ in
let
mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount";
device' = escapeSystemdPath fs.device;
device'' = "${device}.device";
device'' = "${device'}.device";
in nameValuePair "mkfs-${device'}"
{ description = "Initialisation of Filesystem ${fs.device}";
wantedBy = [ mountPoint' ];
@@ -282,13 +284,17 @@ in
in listToAttrs (map formatDevice (filter (fs: fs.autoFormat) fileSystems));
# Sync mount options with systemd's src/core/mount-setup.c: mount_table.
fileSystems = mapAttrs (n: fs: fs // { early = true; }) {
boot.specialFileSystems = {
"/proc" = { fsType = "proc"; options = [ "nosuid" "noexec" "nodev" ]; };
"/sys" = { fsType = "sysfs"; options = [ "nosuid" "noexec" "nodev" ]; };
"/run" = { fsType = "tmpfs"; options = [ "nosuid" "nodev" "strictatime" "mode=755" "size=${config.boot.runSize}" ]; };
"/run" = { fsType = "tmpfs"; options = [ "nodev" "strictatime" "mode=755" "size=${config.boot.runSize}" ]; };
"/dev" = { fsType = "devtmpfs"; options = [ "nosuid" "strictatime" "mode=755" "size=${config.boot.devSize}" ]; };
"/dev/shm" = { fsType = "tmpfs"; options = [ "nosuid" "nodev" "strictatime" "mode=1777" "size=${config.boot.devShmSize}" ]; };
"/dev/pts" = { fsType = "devpts"; options = [ "nosuid" "noexec" "mode=620" "gid=${toString config.ids.gids.tty}" ]; };
} // optionalAttrs (!config.boot.isContainer) {
# systemd-nspawn populates /sys by itself, and remounting it causes all
# kinds of weird issues (most noticeably, waiting for host disk device
# nodes).
"/sys" = { fsType = "sysfs"; options = [ "nosuid" "noexec" "nodev" ]; };
};
};

View File

@@ -38,15 +38,17 @@ in
default = null;
example = 4000;
description = ''
Use fixed port for rpc.statd, useful if NFS server is behind firewall.
Use a fixed port for <command>rpc.statd</command>. This is
useful if the NFS server is behind a firewall.
'';
};
lockdPort = mkOption {
default = null;
example = 4001;
description = ''
Use fixed port for NFS lock manager kernel module (lockd/nlockmgr),
useful if NFS server is behind firewall.
Use a fixed port for the NFS lock manager kernel module
(<literal>lockd/nlockmgr</literal>). This is useful if the
NFS server is behind a firewall.
'';
};
};
@@ -68,13 +70,16 @@ in
boot.initrd.kernelModules = mkIf inInitrd [ "nfs" ];
# FIXME: should use upstream units from nfs-utils.
systemd.services.statd =
{ description = "NFSv3 Network Status Monitor";
path = [ pkgs.nfs-utils pkgs.sysvtools pkgs.utillinux ];
wantedBy = [ "remote-fs-pre.target" ];
wants = [ "remote-fs-pre.target" ];
before = [ "remote-fs-pre.target" ];
wantedBy = [ "remote-fs.target" ];
requires = [ "basic.target" "rpcbind.service" ];
after = [ "basic.target" "rpcbind.service" ];
@@ -100,8 +105,9 @@ in
path = [ pkgs.sysvtools pkgs.utillinux ];
wantedBy = [ "remote-fs-pre.target" ];
wants = [ "remote-fs-pre.target" ];
before = [ "remote-fs-pre.target" ];
wantedBy = [ "remote-fs.target" ];
requires = [ "rpcbind.service" ];
after = [ "rpcbind.service" ];

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

@@ -20,7 +20,7 @@ in
postVM =
''
PATH=$PATH:${stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
PATH=$PATH:${lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
pushd $out
${pkgs.qemu_kvm}/bin/qemu-img convert -c -O qcow2 $diskImageBase nixos.qcow2
rm $diskImageBase

View File

@@ -12,21 +12,21 @@ let
''
echo "Bringing ${name} up"
ip link set dev ${name} up
${optionalString (cfg . "localAddress" or null != null) ''
${optionalString (cfg.localAddress != null) ''
echo "Setting ip for ${name}"
ip addr add ${cfg . "localAddress"} dev ${name}
ip addr add ${cfg.localAddress} dev ${name}
''}
${optionalString (cfg . "localAddress6" or null != null) ''
${optionalString (cfg.localAddress6 != null) ''
echo "Setting ip6 for ${name}"
ip -6 addr add ${cfg . "localAddress6"} dev ${name}
ip -6 addr add ${cfg.localAddress6} dev ${name}
''}
${optionalString (cfg . "hostAddress" or null != null) ''
${optionalString (cfg.hostAddress != null) ''
echo "Setting route to host for ${name}"
ip route add ${cfg . "hostAddress"} dev ${name}
ip route add ${cfg.hostAddress} dev ${name}
''}
${optionalString (cfg . "hostAddress6" or null != null) ''
${optionalString (cfg.hostAddress6 != null) ''
echo "Setting route6 to host for ${name}"
ip -6 route add ${cfg . "hostAddress6"} dev ${name}
ip -6 route add ${cfg.hostAddress6} dev ${name}
''}
''
);
@@ -56,9 +56,7 @@ let
ip -6 route add default via $HOST_ADDRESS6
fi
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg . "extraVeths" or {})}
ip a
ip r
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
fi
# Start the regular stage 1 script.
@@ -67,7 +65,8 @@ let
);
nspawnExtraVethArgs = (name: cfg: "--network-veth-extra=${name}");
startScript = (cfg:
startScript = cfg:
''
mkdir -p -m 0755 "$root/etc" "$root/var/lib"
mkdir -p -m 0700 "$root/var/lib/private" "$root/root" /run/containers
@@ -92,11 +91,7 @@ let
fi
fi
${if cfg . "extraVeths" or null != null then
''extraFlags+=" ${concatStringsSep " " (mapAttrsToList nspawnExtraVethArgs cfg . "extraVeths" or {})}"''
else
''# No extra veth pairs to create''
}
extraFlags+=" ${concatStringsSep " " (mapAttrsToList nspawnExtraVethArgs cfg.extraVeths)}"
for iface in $INTERFACES; do
extraFlags+=" --network-interface=$iface"
@@ -135,10 +130,9 @@ let
--setenv LOCAL_ADDRESS6="$LOCAL_ADDRESS6" \
--setenv PATH="$PATH" \
${containerInit cfg} "''${SYSTEM_PATH:-/nix/var/nix/profiles/system}/init"
''
);
'';
preStartScript = (cfg:
preStartScript = cfg:
''
# Clean up existing machined registration and interfaces.
machinectl terminate "$INSTANCE" 2> /dev/null || true
@@ -151,45 +145,43 @@ let
${concatStringsSep "\n" (
mapAttrsToList (name: cfg:
''ip link del dev ${name} 2> /dev/null || true ''
) cfg . "extraVeths" or {}
) cfg.extraVeths
)}
''
);
'';
postStartScript = (cfg:
let
ipcall = (cfg: ipcmd: variable: attribute:
if cfg . attribute or null == null then
ipcall = cfg: ipcmd: variable: attribute:
if cfg.${attribute} == null then
''
if [ -n "${variable}" ]; then
${ipcmd} add ${variable} dev $ifaceHost
fi
''
else
''${ipcmd} add ${cfg . attribute} dev $ifaceHost''
);
renderExtraVeth = (name: cfg:
if cfg . "hostBridge" or null != null then
''${ipcmd} add ${cfg.${attribute}} dev $ifaceHost'';
renderExtraVeth = name: cfg:
if cfg.hostBridge != null then
''
# Add ${name} to bridge ${cfg.hostBridge}
ip link set dev ${name} master ${cfg.hostBridge} up
''
else
''
# Set IPs and routes for ${name}
${optionalString (cfg . "hostAddress" or null != null) ''
ip addr add ${cfg . "hostAddress"} dev ${name}
''}
${optionalString (cfg . "hostAddress6" or null != null) ''
ip -6 addr add ${cfg . "hostAddress6"} dev ${name}
''}
${optionalString (cfg . "localAddress" or null != null) ''
ip route add ${cfg . "localAddress"} dev ${name}
''}
${optionalString (cfg . "localAddress6" or null != null) ''
ip -6 route add ${cfg . "localAddress6"} dev ${name}
''}
''
);
# Set IPs and routes for ${name}
${optionalString (cfg.hostAddress != null) ''
ip addr add ${cfg.hostAddress} dev ${name}
''}
${optionalString (cfg.hostAddress6 != null) ''
ip -6 addr add ${cfg.hostAddress6} dev ${name}
''}
${optionalString (cfg.localAddress != null) ''
ip route add ${cfg.localAddress} dev ${name}
''}
${optionalString (cfg.localAddress6 != null) ''
ip -6 route add ${cfg.localAddress6} dev ${name}
''}
'';
in
''
if [ "$PRIVATE_NETWORK" = 1 ]; then
@@ -202,7 +194,7 @@ let
${ipcall cfg "ip route" "$LOCAL_ADDRESS" "localAddress"}
${ipcall cfg "ip -6 route" "$LOCAL_ADDRESS6" "localAddress6"}
fi
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg . "extraVeths" or {})}
${concatStringsSep "\n" (mapAttrsToList renderExtraVeth cfg.extraVeths)}
fi
# Get the leader PID so that we can signal it in
@@ -307,6 +299,15 @@ let
};
dummyConfig =
{
extraVeths = {};
hostAddress = null;
hostAddress6 = null;
localAddress = null;
localAddress6 = null;
};
in
{
@@ -451,7 +452,7 @@ in
containers. Each container appears as a service
<literal>container-<replaceable>name</replaceable></literal>
on the host system, allowing it to be started and stopped via
<command>systemctl</command> .
<command>systemctl</command>.
'';
};
@@ -470,11 +471,11 @@ in
environment.INSTANCE = "%i";
environment.root = "/var/lib/containers/%i";
preStart = preStartScript {};
preStart = preStartScript dummyConfig;
script = startScript {};
script = startScript dummyConfig;
postStart = postStartScript {};
postStart = postStartScript dummyConfig;
preStop =
''

View File

@@ -40,13 +40,25 @@ in
};
storageDriver =
mkOption {
type = types.enum ["aufs" "btrfs" "devicemapper" "overlay" "zfs"];
default = "devicemapper";
type = types.nullOr (types.enum ["aufs" "btrfs" "devicemapper" "overlay" "overlay2" "zfs"]);
default = null;
description =
''
This option determines which Docker storage driver to use.
This option determines which Docker storage driver to use. By default
it let's docker automatically choose preferred storage driver.
'';
};
logDriver =
mkOption {
type = types.enum ["none" "json-file" "syslog" "journald" "gelf" "fluentd" "awslogs" "splunk" "etwlogs" "gcplogs"];
default = "journald";
description =
''
This option determines which Docker log driver to use.
'';
};
extraOptions =
mkOption {
type = types.separatedString " ";
@@ -88,7 +100,12 @@ in
after = [ "network.target" ] ++ (optional cfg.socketActivation "docker.socket") ;
requires = optional cfg.socketActivation "docker.socket";
serviceConfig = {
ExecStart = "${pkgs.docker}/bin/docker daemon --group=docker --storage-driver=${cfg.storageDriver} ${optionalString cfg.socketActivation "--host=fd://"} ${cfg.extraOptions}";
ExecStart = ''${pkgs.docker}/bin/dockerd \
--group=docker --log-driver=${cfg.logDriver} \
${optionalString (cfg.storageDriver != null) "--storage-driver=${cfg.storageDriver}"} \
${optionalString cfg.socketActivation "--host=fd://"} \
${cfg.extraOptions}
'';
# I'm not sure if that limits aren't too high, but it's what
# goes in config bundled with docker itself
LimitNOFILE = 1048576;

View File

@@ -4,8 +4,13 @@ with lib;
let
cfg = config.virtualisation.virtualbox.host;
virtualbox = config.boot.kernelPackages.virtualbox.override {
inherit (cfg) enableHardening;
virtualbox = pkgs.virtualbox.override {
inherit (cfg) enableHardening headless;
};
kernelModules = config.boot.kernelPackages.virtualbox.override {
inherit virtualbox;
};
in
@@ -47,11 +52,20 @@ in
</para></important>
'';
};
headless = mkOption {
type = types.bool;
default = false;
description = ''
Use VirtualBox installation without GUI and Qt dependency. Useful to enable on servers
and when virtual machines are controlled only via SSH.
'';
};
};
config = mkIf cfg.enable (mkMerge [{
boot.kernelModules = [ "vboxdrv" "vboxnetadp" "vboxnetflt" ];
boot.extraModulePackages = [ virtualbox ];
boot.extraModulePackages = [ kernelModules ];
environment.systemPackages = [ virtualbox ];
security.setuidOwners = let

View File

@@ -34,7 +34,7 @@ in {
postVM =
''
export HOME=$PWD
export PATH=${pkgs.linuxPackages.virtualbox}/bin:$PATH
export PATH=${pkgs.virtualbox}/bin:$PATH
echo "creating VirtualBox pass-through disk wrapper (no copying invovled)..."
VBoxManage internalcommands createrawvmdk -filename disk.vmdk -rawdisk $diskImage

View File

@@ -73,6 +73,7 @@ in rec {
(all nixos.tests.ipv6)
(all nixos.tests.i3wm)
(all nixos.tests.kde4)
(all nixos.tests.kde5)
#(all nixos.tests.lightdm)
(all nixos.tests.login)
(all nixos.tests.misc)
@@ -88,6 +89,7 @@ in rec {
(all nixos.tests.networking.scripted.sit)
(all nixos.tests.networking.scripted.vlan)
(all nixos.tests.nfs3)
(all nixos.tests.nfs4)
(all nixos.tests.openssh)
(all nixos.tests.printing)
(all nixos.tests.proxy)

View File

@@ -9,7 +9,7 @@ let
version = fileContents ../.version;
versionSuffix =
(if stableBranch then "." else "pre") + "${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
(if stableBranch then "." else "beta") + "${toString (nixpkgs.revCount - 90538)}.${nixpkgs.shortRev}";
forAllSystems = genAttrs supportedSystems;
@@ -228,12 +228,12 @@ in rec {
tests.containers-imperative = callTest tests/containers-imperative.nix {};
tests.containers-extra_veth = callTest tests/containers-extra_veth.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.dnscrypt-proxy = callTest tests/dnscrypt-proxy.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;
tests.ferm = callTest tests/ferm.nix {};
tests.firefox = callTest tests/firefox.nix {};
tests.firewall = callTest tests/firewall.nix {};
tests.fleet = hydraJob (import tests/fleet.nix { system = "x86_64-linux"; });
@@ -250,6 +250,7 @@ in rec {
tests.ipv6 = callTest tests/ipv6.nix {};
tests.jenkins = callTest tests/jenkins.nix {};
tests.kde4 = callTest tests/kde4.nix {};
tests.kde5 = callTest tests/kde5.nix {};
tests.keymap = callSubTests tests/keymap.nix {};
tests.initrdNetwork = callTest tests/initrd-network.nix {};
tests.kubernetes = hydraJob (import tests/kubernetes.nix { system = "x86_64-linux"; });
@@ -259,6 +260,7 @@ in rec {
#tests.logstash = callTest tests/logstash.nix {};
tests.mathics = callTest tests/mathics.nix {};
tests.misc = callTest tests/misc.nix {};
tests.mongodb = callTest tests/mongodb.nix {};
tests.mumble = callTest tests/mumble.nix {};
tests.munin = callTest tests/munin.nix {};
tests.mysql = callTest tests/mysql.nix {};
@@ -273,7 +275,7 @@ in rec {
tests.nfs4 = callTest tests/nfs.nix { version = 4; };
tests.nsd = callTest tests/nsd.nix {};
tests.openssh = callTest tests/openssh.nix {};
tests.panamax = hydraJob (import tests/panamax.nix { system = "x86_64-linux"; });
#tests.panamax = hydraJob (import tests/panamax.nix { system = "x86_64-linux"; });
tests.peerflix = callTest tests/peerflix.nix {};
tests.postgresql = callTest tests/postgresql.nix {};
tests.printing = callTest tests/printing.nix {};
@@ -281,8 +283,8 @@ in rec {
tests.pumpio = callTest tests/pump.io.nix {};
tests.quake3 = callTest tests/quake3.nix {};
tests.runInMachine = callTest tests/run-in-machine.nix {};
tests.samba = callTest tests/samba.nix {};
tests.sddm = callTest tests/sddm.nix {};
tests.sddm-kde5 = callTest tests/sddm-kde5.nix {};
tests.simple = callTest tests/simple.nix {};
tests.smokeping = callTest tests/smokeping.nix {};
tests.taskserver = callTest tests/taskserver.nix {};

View File

@@ -28,6 +28,8 @@ import ./make-test.nix ({ pkgs, ... } : {
# mDNS.
$one->waitForUnit("network.target");
$two->waitForUnit("network.target");
$one->waitForUnit("avahi-daemon.service");
$two->waitForUnit("avahi-daemon.service");
$one->succeed("avahi-resolve-host-name one.local | tee out >&2");
$one->succeed("test \"`cut -f1 < out`\" = one.local");

View File

@@ -69,6 +69,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.pythonPackages; rec {
sed -i \
-e '1i import tempfile' \
-e 's|_STORE_FILE_PATH = .*|_STORE_FILE_PATH = tempfile.gettempdir()|' \
-e 's|DEFAULT_STORE_SIZE = .*|DEFAULT_STORE_SIZE = 409600|' \
tests/loopbackedtestcase.py
PYTHONPATH=".:$(< "${pkgs.stdenv.mkDerivation {

View File

@@ -13,10 +13,6 @@ import ./make-test.nix ({ pkgs, ... } : {
services.cadvisor.enable = true;
services.cadvisor.storageDriver = "influxdb";
services.influxdb.enable = true;
systemd.services.influxdb.postStart = mkAfter ''
${pkgs.curl.bin}/bin/curl -X POST 'http://localhost:8086/db?u=root&p=root' \
-d '{"name": "root"}'
'';
};
};
@@ -27,6 +23,12 @@ import ./make-test.nix ({ pkgs, ... } : {
$machine->succeed("curl http://localhost:8080/containers/");
$influxdb->waitForUnit("influxdb.service");
# create influxdb database
$influxdb->succeed(q~
curl -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"
~);
$influxdb->waitForUnit("cadvisor.service");
$influxdb->succeed("curl http://localhost:8080/containers/");
'';

View File

@@ -1,43 +0,0 @@
# This test runs docker-registry and check if it works
import ./make-test.nix ({ pkgs, ...} : {
name = "docker-registry";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ offline ];
};
nodes = {
registry = { config, pkgs, ... }: {
services.dockerRegistry.enable = true;
services.dockerRegistry.port = 8080;
services.dockerRegistry.host = "0.0.0.0";
networking.firewall.allowedTCPPorts = [ 8080 ];
};
client1 = { config, pkgs, ...}: {
virtualisation.docker.enable = true;
virtualisation.docker.extraOptions = "--insecure-registry registry:8080";
};
client2 = { config, pkgs, ...}: {
virtualisation.docker.enable = true;
virtualisation.docker.extraOptions = "--insecure-registry registry:8080";
};
};
testScript = ''
$client1->start();
$client1->waitForUnit("docker.service");
$client1->succeed("tar cv --files-from /dev/null | docker import - scratch");
$client1->succeed("docker tag scratch registry:8080/scratch");
$registry->start();
$registry->waitForUnit("docker-registry.service");
$client1->succeed("docker push registry:8080/scratch");
$client2->start();
$client2->waitForUnit("docker.service");
$client2->succeed("docker pull registry:8080/scratch");
$client2->succeed("docker images | grep scratch");
'';
})

View File

@@ -11,9 +11,6 @@ import ./make-test.nix ({ pkgs, ...} : {
{ config, pkgs, ... }:
{
virtualisation.docker.enable = true;
# FIXME: The default "devicemapper" storageDriver fails in NixOS VM
# tests.
virtualisation.docker.storageDriver = "overlay";
};
};

72
nixos/tests/ferm.nix Normal file
View File

@@ -0,0 +1,72 @@
import ./make-test.nix ({ pkgs, ...} : {
name = "ferm";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ mic92 ];
};
nodes =
{ client =
{ config, pkgs, ... }:
with pkgs.lib;
{
networking = {
interfaces.eth1.ip6 = mkOverride 0 [ { address = "fd00::2"; prefixLength = 64; } ];
interfaces.eth1.ip4 = mkOverride 0 [ { address = "192.168.1.2"; prefixLength = 24; } ];
};
};
server =
{ config, pkgs, ... }:
with pkgs.lib;
{
networking = {
interfaces.eth1.ip6 = mkOverride 0 [ { address = "fd00::1"; prefixLength = 64; } ];
interfaces.eth1.ip4 = mkOverride 0 [ { address = "192.168.1.1"; prefixLength = 24; } ];
};
services = {
ferm.enable = true;
ferm.config = ''
domain (ip ip6) table filter chain INPUT {
interface lo ACCEPT;
proto tcp dport 8080 REJECT reject-with tcp-reset;
}
'';
nginx.enable = true;
nginx.httpConfig = ''
server {
listen 80;
listen [::]:80;
listen 8080;
listen [::]:8080;
location /status { stub_status on; }
}
'';
};
};
};
testScript =
''
startAll;
$client->waitForUnit("network.target");
$server->waitForUnit("ferm.service");
$server->waitForUnit("nginx.service");
$server->waitUntilSucceeds("ss -ntl | grep -q 80");
subtest "port 80 is allowed", sub {
$client->succeed("curl --fail -g http://192.168.1.1:80/status");
$client->succeed("curl --fail -g http://[fd00::1]:80/status");
};
subtest "port 8080 is not allowed", sub {
$server->succeed("curl --fail -g http://192.168.1.1:8080/status");
$server->succeed("curl --fail -g http://[fd00::1]:8080/status");
$client->fail("curl --fail -g http://192.168.1.1:8080/status");
$client->fail("curl --fail -g http://[fd00::1]:8080/status");
};
'';
})

View File

@@ -17,23 +17,17 @@ import ./make-test.nix ({ pkgs, ...} : {
$one->waitForUnit("influxdb.service");
# Check if admin interface is avalible
$one->waitUntilSucceeds("curl -f 127.0.0.1:8083");
# create database
$one->succeed(q~
curl -X POST 'http://localhost:8086/db?u=root&p=root' \
-d '{"name": "test"}'
curl -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE test"
~);
# write some points and run simple query
$one->succeed(q~
curl -X POST 'http://localhost:8086/db/test/series?u=root&p=root' \
-d '[{"name":"foo","columns":["val"],"points":[[6666]]}]'
curl -XPOST 'http://localhost:8086/write?db=test' --data-binary 'cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000'
~);
$one->succeed(q~
curl -G 'http://localhost:8086/db/test/series?u=root&p=root' \
--data-urlencode 'q=select * from foo limit 1' | grep 6666
curl -GET 'http://localhost:8086/query' --data-urlencode "db=test" --data-urlencode "q=SELECT \"value\" FROM \"cpu_load_short\" WHERE \"region\"='us-west'" | grep "0\.64"
~);
'';
})

View File

@@ -1,7 +1,7 @@
import ./make-test.nix ({ pkgs, ...} :
{
name = "sddm";
name = "kde5";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ ttuegel ];
};
@@ -24,29 +24,26 @@ import ./make-test.nix ({ pkgs, ...} :
testScript = { nodes, ... }:
let xdo = "${pkgs.xdotool}/bin/xdotool"; in
''
sub krunner {
my ($win,) = @_;
$machine->execute("${xdo} key Alt+F2 sleep 1 type $win");
$machine->execute("${xdo} search --sync --onlyvisible --class krunner sleep 5 key Return");
}
''
startAll;
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitUntilSucceeds("pgrep plasmashell");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow(qr/Desktop.*/);
$machine->waitForWindow("^Desktop ");
# Check that logging in has given the user ownership of devices.
$machine->succeed("getfacl /dev/snd/timer | grep -q alice");
krunner("dolphin");
$machine->waitForWindow(qr/.*Dolphin/);
krunner("konsole");
$machine->waitForWindow(qr/.*Konsole/);
krunner("systemsettings5");
$machine->waitForWindow(qr/.*Settings/);
$machine->sleep(20);
$machine->execute("su - alice -c 'DISPLAY=:0.0 dolphin &'");
$machine->waitForWindow(" Dolphin");
$machine->execute("su - alice -c 'DISPLAY=:0.0 konsole &'");
$machine->waitForWindow("Konsole");
$machine->execute("su - alice -c 'DISPLAY=:0.0 systemsettings5 &'");
$machine->waitForWindow("Settings");
$machine->execute("${xdo} key Alt+F1 sleep 10");
$machine->screenshot("screen");

34
nixos/tests/mongodb.nix Normal file
View File

@@ -0,0 +1,34 @@
# This test start mongodb, runs a query using mongo shell
import ./make-test.nix ({ pkgs, ...} : let
testQuery = pkgs.writeScript "nixtest.js" ''
db.greetings.insert({ "greeting": "hello" });
print(db.greetings.findOne().greeting);
'';
in {
name = "mongodb";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ bluescreen303 offline wkennington cstrahan rvl ];
};
nodes = {
one =
{ config, pkgs, ... }:
{
services = {
mongodb.enable = true;
mongodb.extraConfig = ''
# Allow starting engine with only a small virtual disk
storage.journal.enabled: false
storage.mmapv1.smallFiles: true
'';
};
};
};
testScript = ''
startAll;
$one->waitForUnit("mongodb.service");
$one->succeed("mongo nixtest ${testQuery}") =~ /hello/ or die;
'';
})

View File

@@ -33,23 +33,69 @@ in
$client1->execute("mumble mumble://client1\@server/test &");
$client2->execute("mumble mumble://client2\@server/test &");
# cancel client audio configuration
$client1->waitForWindow(qr/Audio Tuning Wizard/);
$client2->waitForWindow(qr/Audio Tuning Wizard/);
$client1->sendKeys("esc");
$client2->sendKeys("esc");
sub retry {
my ($coderef) = @_;
my $n;
for ($n = 0; $n < 900; $n++) {
return if &$coderef;
sleep 1;
}
die "action timed out after $n seconds";
}
# cancel client cert configuration
$client1->waitForWindow(qr/Certificate Management/);
$client2->waitForWindow(qr/Certificate Management/);
$client1->sendKeys("esc");
$client2->sendKeys("esc");
my @clients = ($client1, $client2);
foreach my $cl (@clients) {
# cancel client audio configuration
my $audiore = qr/Audio Tuning Wizard/;
$cl->waitForWindow($audiore);
$cl->sleep(5);
$cl->nest("Cancel Audio Tuning Wizard", sub {
my $c = 0;
retry(sub {
return 1 if !$cl->hasWindow($audiore);
if ($c % 2 > 0) {
$cl->sendKeys("alt-tab");
$cl->sleep(5);
}
$cl->sendKeys("esc");
$c++;
});
});
# accept server certificate
$client1->waitForWindow(qr/^Mumble$/);
$client2->waitForWindow(qr/^Mumble$/);
$client1->sendChars("y");
$client2->sendChars("y");
# cancel client cert configuration
my $certre = qr/Certificate Management/;
$cl->waitForWindow($certre);
$cl->sleep(5);
$cl->nest("Cancel Certificate Management", sub {
my $c = 0;
retry(sub {
return 1 if !$cl->hasWindow($certre);
if ($c % 2 > 0) {
$cl->sendKeys("alt-tab");
$cl->sleep(5);
}
$cl->sendKeys("esc");
$c++;
});
});
# accept server certificate
my $acceptre = qr/^Mumble$/;
$cl->waitForWindow($acceptre);
$cl->sleep(5);
$cl->nest("Accept Server Certificate", sub {
my $c = 0;
retry(sub {
return 1 if !$cl->hasWindow($acceptre);
if ($c % 2 > 0) {
$cl->sendKeys("alt-tab");
$cl->sleep(5);
}
$cl->sendChars("y");
$c++;
});
});
}
# Find clients in logs
$server->waitUntilSucceeds("grep -q 'client1' /var/log/murmur/murmurd.log");

30
nixos/tests/postgis.nix Normal file
View File

@@ -0,0 +1,30 @@
import ./make-test.nix ({ pkgs, ...} : {
name = "postgis";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ lsix ];
};
nodes = {
master =
{ pkgs, config, ... }:
{
services.postgresql = let mypg = pkgs.postgresql95; in {
enable = true;
package = mypg;
extraPlugins = [ (pkgs.postgis.override { postgresql = mypg; }).v_2_2_1 ];
initialScript = pkgs.writeText "postgresql-init.sql"
''
CREATE ROLE postgres WITH superuser login createdb;
'';
};
};
};
testScript = ''
startAll;
$master->waitForUnit("postgresql");
$master->sleep(10); # Hopefully this is long enough!!
$master->succeed("sudo -u postgres psql -c 'CREATE EXTENSION postgis;'");
'';
})

View File

@@ -77,11 +77,11 @@ in {
}; };
mongodb.enable = true;
mongodb.extraConfig = ''
nojournal = true
storage.journal.enabled: false
'';
};
systemd.services.mongodb.unitConfig.Before = "pump.io.service";
systemd.services.mongodb.unitConfig.RequiredBy = "pump.io.service";
systemd.services."pump.io".unitConfig.Requires = "mongodb.service";
};
};

48
nixos/tests/samba.nix Normal file
View File

@@ -0,0 +1,48 @@
import ./make-test.nix ({ pkgs, ... }:
{
name = "samba";
meta.maintainers = [ pkgs.lib.maintainers.eelco ];
nodes =
{ client =
{ config, pkgs, ... }:
{ fileSystems = pkgs.lib.mkVMOverride
{ "/public" = {
fsType = "cifs";
device = "//server/public";
options = [ "guest" ];
};
};
};
server =
{ config, pkgs, ... }:
{ services.samba.enable = true;
services.samba.shares.public =
{ path = "/public";
"read only" = true;
browseable = "yes";
"guest ok" = "yes";
comment = "Public samba share.";
};
networking.firewall.allowedTCPPorts = [ 139 445 ];
networking.firewall.allowedUDPPorts = [ 137 138 ];
};
};
# client# [ 4.542997] mount[777]: sh: systemd-ask-password: command not found
testScript =
''
$server->start;
$server->waitForUnit("samba-smbd");
$server->waitForUnit("samba-nmbd");
$server->succeed("mkdir -p /public; echo bar > /public/foo");
$client->start;
$client->waitForUnit("network.target");
$client->succeed("[[ \$(cat /public/foo) = bar ]]");
'';
})

View File

@@ -23,9 +23,8 @@ import ./make-test.nix ({ pkgs, ...} : {
startAll;
$server->waitForUnit("tomcat");
$server->sleep(30); # Dirty, but it takes a while before Tomcat handles to requests properly
$client->waitForUnit("network.target");
$client->succeed("curl --fail http://server/examples/servlets/servlet/HelloWorldExample");
$client->succeed("curl --fail http://server/examples/jsp/jsp2/simpletag/hello.jsp");
$client->waitUntilSucceeds("curl --fail http://server/examples/servlets/servlet/HelloWorldExample");
$client->waitUntilSucceeds("curl --fail http://server/examples/jsp/jsp2/simpletag/hello.jsp");
'';
})

View File

@@ -144,6 +144,7 @@ let
"--uart1 0x3F8 4"
"--uartmode1 client /run/virtualbox-log-${name}.sock"
"--memory 768"
"--audio none"
] ++ (attrs.vmFlags or []));
controllerFlags = mkFlags [
@@ -273,9 +274,12 @@ let
sub shutdownVM_${name} {
$machine->succeed(ru "touch ${sharePath}/shutdown");
$machine->waitUntilSucceeds(
"test ! -e ${sharePath}/shutdown ".
" -a ! -e ${sharePath}/boot-done"
$machine->execute(
'set -e; i=0; '.
'while test -e ${sharePath}/shutdown '.
' -o -e ${sharePath}/boot-done; do '.
'sleep 1; i=$(($i + 1)); [ $i -le 3600 ]; '.
'done'
);
waitForShutdown_${name};
}
@@ -314,6 +318,9 @@ let
test2.vmFlags = hostonlyVMFlags;
test2.vmScript = dhcpScript;
headless.virtualisation.virtualbox.headless = true;
headless.services.xserver.enable = false;
};
mkVBoxTest = name: testScript: makeTest {
@@ -383,6 +390,7 @@ in mapAttrs mkVBoxTest {
$machine->sendKeys("ctrl-q");
$machine->sleep(5);
$machine->screenshot("gui_manager_stopped");
destroyVM_simple;
'';
simple-cli = ''
@@ -400,6 +408,16 @@ in mapAttrs mkVBoxTest {
});
shutdownVM_simple;
destroyVM_simple;
'';
headless = ''
createVM_headless;
$machine->succeed(ru("VBoxHeadless --startvm headless & disown %1"));
waitForStartup_headless;
waitForVMBoot_headless;
shutdownVM_headless;
destroyVM_headless;
'';
host-usb-permissions = ''

60
nixos/tests/wordpress.nix Normal file
View File

@@ -0,0 +1,60 @@
import ./make-test.nix ({ pkgs, ... }:
{
name = "wordpress";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ grahamc ]; # under duress!
};
nodes =
{ web =
{ config, pkgs, ... }:
{
services.mysql.enable = true;
services.mysql.package = pkgs.mysql;
services.mysql.initialScript = pkgs.writeText "start.sql" ''
CREATE DATABASE wordpress;
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
GRANT ALL on wordpress.* TO 'wordpress'@'localhost';
'';
services.httpd = {
enable = true;
logPerVirtualHost = true;
adminAddr="js@lastlog.de";
extraModules = [
{ name = "php7"; path = "${pkgs.php}/modules/libphp7.so"; }
];
virtualHosts = [
{
hostName = "wordpress";
extraSubservices =
[
{
serviceType = "wordpress";
dbPassword = "wordpress";
wordpressUploads = "/data/uploads";
languages = [ "de_DE" "en_GB" ];
}
];
}
];
};
};
};
testScript =
{ nodes, ... }:
''
startAll;
$web->waitForUnit("mysql");
$web->waitForUnit("httpd");
$web->succeed("curl -L 127.0.0.1:80 | grep 'Welcome to the famous'");
'';
})

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