Compare commits

...

722 Commits

Author SHA1 Message Date
Tomas Hlavaty
cc7c261731 unittest-cpp: init at 1.6.1
(cherry picked from commit 800a379cb3)
2017-03-22 14:45:15 +00:00
Eelco Dolstra
3727911b46 minisat: Fix build on Darwin
(cherry picked from commit c5b96ca801)
2016-12-09 19:58:56 +01:00
Gabriel Ebner
bdbe6803a8 minisat: support clang
(cherry picked from commit cc0b3bbcc2)
2016-12-09 16:09:59 +01:00
Gabriel Ebner
5e9cb9dfb8 minisat: migrate from builderDefsPackage to mkDerivation
(cherry picked from commit 516f331227)
2016-12-09 16:09:53 +01:00
Scott R. Parish
a888bbacb1 chromium: Update to latest stable, beta, and dev channels
stable 51.0.2704.63 => 51.0.2704.103
beta   51.0.2704.63 => 52.0.2743.41
dev    52.0.2743.10 => 53.0.2767.4

This addresses 15 security fixes, including:

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

See: http://googlechromereleases.blogspot.com/2016/06/stable-channel-update.html
(cherry picked from commit 1f1f0f049b)
Reason: 18 Security fixes for the stable channel.
2016-06-20 18:50:34 +02:00
aszlig
a3521b60e6 Merge pull request #15762 (Chromium update)
This is the original pull request plus some commits from me to bring all
channels to the latest versions, because the fixed security
vulnerabilites might not be fixed in the dev version we had before.

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

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

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

Cc: @abbradar
(backported from commit b5f95a5303)
Reason: Lots of security fixes (see e2d067d)
2016-05-28 21:30:36 +02:00
aszlig
4f32d2c565 chromium: Update to latest beta and dev channels
Overview of the updated versions:

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

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

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

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

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

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

Signed-off-by: Scott R. Parish <srparish@gmail.com>
Tested-by: aszlig <aszlig@redmoonstudios.org>
Closes: #15446
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 5ebf20db0f)
2016-05-15 05:27:05 +02:00
Vladimír Čunát
e263fdae1d Merge #15447: glibc security updates
(cherry picked from commit 45a14c873b)
I just tested it builds on x86_64-linux.
2016-05-14 22:22:37 +02:00
taku0
4245d58fc4 flashplayer: 11.2.202.616 -> 11.2.202.621
(cherry picked from commit cade2f36e5)
2016-05-12 20:21:36 +02:00
Bjørn Forsman
91371c2bb6 sigrok: update whole suite to latest (2016-01)
Release announcement, 2016-01-30:
https://www.sigrok.org/blog/major-sigrok-releases-libsigrok-libsigrokdecode-sigrok-cli-pulseview

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

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

* libsigrokdecode: 0.3.0 -> 0.4.0

* sigrok-cli: 0.5.0 -> 0.6.0

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

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

(cherry picked from commit 300e495101)
2016-05-11 22:30:58 +02:00
Bjørn Forsman
1d1eefead8 libserialport: 0.1.0 -> 0.1.1
(cherry picked from commit f768098e3e)
2016-05-11 22:30:27 +02:00
Bjørn Forsman
2a12fb370b hashcat: 0.49 -> 2.00
The current URL is broken, upstream has moved the download from .../files/ to
.../files_legacy/. But after fixing that, starting hashcat results in:

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

So just update to latest.

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

(cherry picked from commit 800042b310)
2016-05-11 19:29:16 +02:00
Bjørn Forsman
1066ba6f2a moreutils: add meta.platforms (= all)
(cherry picked from commit 977cd5de36)
2016-05-09 20:37:17 +02:00
aszlig
1983ddf2f1 john: Enable parallel building by default.
I've built this a lot of times on different machines without getting
compile errors, so I'd assume this to be safe. Of course, the compile
time is very small in comparison to bigger packages but it's still an
annoyance to wait for up to a few minutes, especially during
development.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 37429a2c74)
2016-05-09 15:10:34 +02:00
aszlig
c111cc896e john: Make package work out of the box.
So far it was only possible to run john if you've either copied over the
default configuration over to ~/.john and substitute $JOHN with the
right path or set $JOHN to the store path directly.

Both methods are not really a very good user experience, so we're now
patching in the resulting paths into the default rules/configurations.

This also splits off configuration files into $out/etc/john instead of
putting everything into $out/share/john and now also properly installs
the auxiliary programs into $out/bin.

Closes #8792.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: devhell <"^"@regexmail.net>
Cc: @offlinehacker
(cherry picked from commit 902bcf1422)
2016-05-09 15:10:27 +02:00
aszlig
fd471f2bb9 john: Disable building with -march=native.
It prevents john from running with older CPUs such as Core2Duo and gives
an illegal hardware instruction error on these CPUs.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit cf4e2c426e)
2016-05-09 15:10:21 +02:00
aszlig
e8d96539d8 john: Clean up and Update to v1.8.0-jumbo-1.
Cleanups are mostly stylistic, like putting src more to the top (to make
sure it won't be missed on updates of the version attribute) or using
mkdir -p instead of ensureDir.

The most significant change here is that we update the package to
1.8.0-jumbo-1, which is the latest tag available and contains community
updates which were already in magnumripper/JohnTheRipper@93f061bc41.

We're now also using fetchurl to ensure that we don't need to clone the
whole repository and keep download times low.

And the derivation name is now "john" instead of "JohnTheRipper",
because most users would expect "nix-env -i john" to work.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 2a1bf2a776)
2016-05-09 15:10:14 +02:00
aszlig
6edbeb8b47 Merge branch 'stage1-dont-kill-kthreads'
Merges pull request #15275:

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

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

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

This has been acked by @edolstra on IRC.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This has a few downsides:

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

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

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

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

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

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

http://stackoverflow.com/a/12231039

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

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

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Fixes: #15226
2016-05-06 22:14:35 +02:00
Domen Kožar
8a6b697af6 pythonPackages.cryptography: 1.1.1 -> 1.2.3 (fix openssl build)
(cherry picked from commit baf7f98b45)

[Bjørn: some tweaks needed to apply to release-15.09]
2016-05-05 13:52:46 +02:00
Bjørn Forsman
1649c9d4cc pythonPackages.hypothesis: 0.7.0 -> 1.14.0
Needed for newer 'cryptography', which is needed to fix build against
latest openssl.

Based on 4b23328e39 ("buildPythonPackage: fix more wheels failures").
2016-05-05 13:51:25 +02:00
Eelco Dolstra
e389e194ef Add a regression test for #14623
(cherry picked from commit a42698d2a4)
2016-05-04 11:14:27 +02:00
Eelco Dolstra
c0e03b6a9a Fix X11 tests broken by the removal of -ac
Probably missed a few. Also adding xauth to the system path (it was
already in the closure).

(cherry picked from commit 9153d8ed64)
2016-05-04 11:14:18 +02:00
Eelco Dolstra
297fa6ae85 openssl: 1.0.2g -> 1.0.2h, 1.0.1s -> 1.0.1t 2016-05-04 11:10:02 +02:00
Théophane Hufschmitt
89649f3e44 moreutils : 0.57 -> 0.58
(cherry picked from commit 93856f36a2)
2016-05-04 11:01:24 +02:00
Bjørn Forsman
556b76b1be nixos/jenkins: fix typo in docstring (s/adress/address/)
(cherry picked from commit b2d0886b37)
2016-05-04 10:38:16 +02:00
Bjørn Forsman
9a5eb3b5f3 nixos/jenkins: rename option 'host' to 'listenAddress'
I think the name 'listenAddress' is more descriptive. Other NixOS
modules that define 'host' either use it as listen address or as address
a client connects to. listenAddress is unambiguous.

The addition of 'host' was added earlier today[1], so not bothering with
./nixos/modules/rename.nix.

[1]: 44ea184997 ("jenkins ci enhancement: add port and prefix option")

(cherry picked from commit c6b251f5d5)
2016-05-04 09:48:55 +02:00
Augustin Borsu
6c50a0ff98 jenkins ci enhancement: add port and prefix option
As named these options enable to specify a bind host and url prefix
to be used by jenkins. Adding these options in the config rather than
using extra arguments allows us to re-use those information in other
services using jenkins such as jenkins-job-builder or a reverse proxy.

(cherry picked from commit 44ea184997)
2016-05-04 09:39:59 +02:00
Bjørn Forsman
30d582384b jenkins service: improve curl call in postStart
* Perform HTTP HEAD request instead of full GET (lighter weight)
* Don't log output of curl to the journal (it's noise/debug)
* Use explicit http:// URL scheme
* Reduce poll interval from 10s to 2s (respond to state changes
  quicker). Probably not relevant on boot (lots of services compete for
  the CPU), but online service restarts/reloads should be quicker.
* Pass --fail to curl (should be more robust against false positives)
* Use 4 space indent for shell code.

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

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

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

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

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

Fixes #14991.

(cherry picked from commit 51e5beca42)
2016-05-03 23:17:29 +02:00
Nikolay Amiantov
2a72b02b5b flashplayer: cleanup, add comment to maintainers
(cherry picked from commit d45ac41e87)
2016-05-02 16:45:55 +02:00
taku0
b2c26fd513 flashplayer: fix build on 32-bit platform
(cherry picked from commit 28232c3746)
2016-05-02 16:45:43 +02:00
taku0
e1499bb3f2 flashplayer: 11.2.202.577 -> 11.2.202.616
(cherry picked from commit 03e74fb117)
2016-05-02 16:45:32 +02:00
taku0
6ca38564a8 flashplayer: 11.2.202.559 -> 11.2.202.577
(cherry picked from commit 218901bdb6)
2016-05-02 16:45:02 +02:00
Al Zohali
75c83e8372 flashplayer-standalone: init at 11.2.202.559
(cherry picked from commit d9066cd36f)
2016-05-02 16:43:31 +02:00
Bjørn Forsman
3b6be3dfd0 eagle: 6.6.0 -> 7.5.0
* It grew a couple of extra (hard) dependencies:
  libxcb, cups, xkeyboardconfig
* It is also available in native 64-bit version (yay!)

(cherry picked from commit c27de52d39)
2016-05-02 16:36:28 +02:00
Tobias Geerinckx-Rice
ac7f84881a stress-ng: 0.05.00 -> 0.05.25
(cherry picked from commit d51a55366e)
2016-05-02 16:24:11 +02:00
Tobias Geerinckx-Rice
0b404abd89 stress-ng 0.04.21 -> 0.05.00
(cherry picked from commit 0efb1f7963)
2016-05-02 16:21:23 +02:00
Tobias Geerinckx-Rice
de7c14bdfc stress-ng 0.04.20 -> 0.04.21
(cherry picked from commit 6d7273571c)
2016-05-02 16:21:17 +02:00
Tobias Geerinckx-Rice
5678ac1e5b stress-ng: 0.04.19 -> 0.04.20
(cherry picked from commit 0e1a15f2da)
2016-05-02 16:21:12 +02:00
Tobias Geerinckx-Rice
296e914389 stress-ng: 0.04.18 -> 0.04.19
(cherry picked from commit 33d2f27d95)
2016-05-02 16:21:06 +02:00
Tobias Geerinckx-Rice
e93d050a96 stress-ng: 0.04.17 -> 0.04.18
(cherry picked from commit 2ea03ece86)
2016-05-02 16:20:33 +02:00
Tobias Geerinckx-Rice
13d6ae580c stress-ng: 0.04.16 -> 0.04.17
(cherry picked from commit 69e828b5a1)
2016-05-02 16:20:24 +02:00
Tobias Geerinckx-Rice
83260d1b6d stress-ng: 0.04.15 -> 0.04.16
(cherry picked from commit 9aa595ef50)
2016-05-02 16:20:06 +02:00
Svein Ove Aas
4d0e8a1ef2 mprime: Init at 28.7
(cherry picked from commit 6efcbd8950)
2016-05-02 16:08:57 +02:00
Joachim Fasting
c289b20031 Merge pull request #15144 from Beauhurst/php_updates_r15.09
PHP security updates (r15.09 backport)
2016-05-02 01:55:16 +02:00
Robert Scott
717e6c02ae php: 5.5.34 -> 5.4.35 2016-05-01 11:49:31 +00:00
Robert Scott
4bf320c116 php: 5.6.20 -> 5.6.21 2016-05-01 11:49:31 +00:00
Joachim Fasting
56b4040409 Merge pull request #15116 from Beauhurst/squid_r15.09
Squid security fixes (15.09 backport)
2016-04-30 19:19:24 +02:00
Robert Scott
844f4e31e1 squid: 3.2.13 -> 3.2.14 (though many CVEs still have no fix on this branch!) 2016-04-30 16:57:11 +00:00
Robert Scott
453dcfdb24 squid: 3.4.11 -> 3.4.14 (though many CVEs still have no fix on this branch!) 2016-04-30 16:57:10 +00:00
Robert Scott
be91f50ca9 squid: 3.5.15 -> 3.5.17 (resolving CVE-2016-3947, CVE-2016-3948, CVE-2016-4051, CVE-2016-4052, CVE-2016-4053, CVE-2016-4054)
squid supplies patches for advisories, but patches for the above advisories applied together don't compile, hence the version bump for stable
2016-04-30 16:57:10 +00:00
Rob Vermaas
240ebc730d nlopt: Remove broken flag from meta. 2016-04-27 13:31:36 +00:00
Rob Vermaas
6c8fbed541 Fix nlopt build. 2016-04-27 09:22:45 +00:00
Bjørn Forsman
6372599c4e xulrunner: use bundled sqlite (unbreak build)
sqlite on release-15.09 is too old, use bundled sqlite instead to fix this
build issue:

  configure:24978: checking for sqlite3 >= 3.9.1
  configure: error: Library requirements (sqlite3 >= 3.9.1) not met; [...]

This is the same fix as in commit 969c67f48c
("firefox: Fix build").
2016-04-26 22:01:45 +02:00
Eelco Dolstra
d7c7c0e357 X server: Enable local access control
For the last ten years we have been passing -ac to the X server, which
is very bad idea.

Fixes #14623.

(cherry picked from commit 1541fa351b)
2016-04-23 16:11:20 +02:00
Robin Gloster
2d32ae48b0 Merge pull request #14599 from Beauhurst/php_updates_r15.09
PHP security updates (r15.09 backport)
2016-04-11 15:55:45 +02:00
Robert Scott
9784118793 php: 5.6.19 -> 5.6.20 2016-04-11 11:01:38 +00:00
Robert Scott
5ca0898228 php55: 5.5.33 -> 5.5.34 2016-04-11 11:01:38 +00:00
joachifm
ee55f5b7ce Merge pull request #14553 from sheenobu/bugfix/spotify/2016-04-09-15.09
spotify: 1.0.26.125.g64dc8bc6-14 -> 1.0.27.71.g0a26e3b2-9, release-15.09
2016-04-09 18:02:42 +02:00
Sheena Artrip
27063d4078 spotify: 1.0.26.125.g64dc8bc6-14 -> 1.0.27.71.g0a26e3b2-9 2016-04-09 06:46:45 -04:00
Domen Kožar
e28f821f6a pythonPackages.{boto,httpretty}: use requests2 2016-04-07 20:45:08 +03:00
Igor Pashev
6a8c17edf5 Allow enum of integers (and any other type)
Closes #9826.
2016-04-07 20:45:08 +03:00
Cole Mickens
2f25157a5c azure-cli 0.9.13 -> 0.9.15 2016-04-07 20:45:07 +03:00
Evgeny Egorochkin
b11c9f255b azure-cli: fix dependencies 2016-04-07 20:45:07 +03:00
Evgeny Egorochkin
7c8624d2f0 azure-cli: init at 0.9.13 2016-04-07 20:45:07 +03:00
Evgeny Egorochkin
2ac482441a pythonPackages.azure-*: package the 1.* branch 2016-04-07 20:45:06 +03:00
Evgeny Egorochkin
ea665e20ba python.adal: init at 0.1.0 2016-04-07 20:45:06 +03:00
Evgeny Egorochkin
037f300184 pythonPackages.azure-*: package some of the 1.* branch modules 2016-04-07 20:45:05 +03:00
Rob Vermaas
c0a4a01fa1 Remove another maintainer (cherrypick gone wrong). 2016-04-07 11:19:03 +00:00
Rob Vermaas
ad9641744d Fix eval 2016-04-07 11:14:43 +00:00
Frederik Rietdijk
a849372f70 python-packages statsmodels: init at 0.6.1
(cherry picked from commit ce41204fa0)
2016-04-07 11:00:49 +00:00
Lluís Batlle i Rossell
0cee564b46 Making trac/ldap handle httpd 2.4.
The option authzldapauthoritative had been removed in 2.4

I pushed this into 16.03 instead of master first. My fault.
(cherry picked from commit 516f47efef)

(cherry picked from commit e1bcc27f1a)
2016-04-07 11:56:58 +02:00
aszlig
8156d2c2f1 chromium: Update all channels to latest versions
Overview of the updated versions:

stable: 49.0.2623.87 -> 49.0.2623.110
beta:   50.0.2661.26 -> 50.0.2661.49
dev:    50.0.2661.18 -> 51.0.2693.2

Most notably, this includes a series of urgent security fixes:

 * CVE-2016-1646: Out-of-bounds read in V8. Credit to Wen Xu from
                  Tencent KeenLab.
 * CVE-2016-1647: Use-after-free in Navigation. Credit to anonymous.
 * CVE-2016-1648: Use-after-free in Extensions. Credit to anonymous.
 * CVE-2016-1649: Buffer overflow in libANGLE. Credit to lokihardt
                  working with HP's Zero Day Initiative / Pwn2Own.
 * CVE-2016-1650: Denial of service in PageCaptureSaveAsMHTMLFunction

The official release announcement with details about these fixes can be
found here:

http://googlechromereleases.blogspot.de/2016/03/stable-channel-update_24.html

Beta and stable could be also affected, although I didn't do a detailed
check whether that's the case.

As this introduces Chromium 51 as the dev version, I had to make the
following changes to make it build:

 * libexif got removed, so let's do that on our end as well.
   See https://codereview.chromium.org/1803883002 for details.
 * Chromium doesn't seem to compile with our version of libpng, so let's
   resort to the bundled libpng for now.
 * site_engagement_ui.cc uses isnan outside of std namespace, so
   we're fixing that in postPatch using sed.

I have successfully built all versions on i686-linux and x86_64-linux
and tested it using the VM tests.

Test reports can be found at the following evaluation of my Hydra:

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

Thanks to @grahamc for reporting this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: Graham Christensen <graham@grahamc.com>
Fixes: #14299
(cherry picked from commit ef753d210e)
2016-03-30 15:28:42 +02:00
Leroy Hopson
83ed8f6bf6 fail2ban service: fix formatting of example
(cherry picked from commit eb90705d45)
2016-03-30 13:43:13 +02:00
Svein Ove Aas
e0da216fbd nixos/fail2ban: Enable jails by default
With jails defaulting to 'enabled = true', the sshd jail that NixOS
defines will now be enabled.

[Bjørn: tweak commit message]

(cherry picked from commit f16594e18b)
2016-03-30 13:43:01 +02:00
Franz Pletz
3614f64d58 dhcpcd: 6.9.4 -> 6.10.1 (security)
Fixes CVE-2016-1503 & CVE-2016-1504.

Changelog:
  - http://roy.marples.name/archives/dhcpcd-discuss/2016/1143.html
  - http://roy.marples.name/archives/dhcpcd-discuss/2016/1146.html

(cherry picked from commit 5aa986fba2)

See #14313.
2016-03-30 13:11:00 +02:00
Brad Ediger
68fc694eb6 spotify: 1.0.25.127 -> 1.0.26.125
(cherry picked from commit 066042e3fa)
(cherry picked from commit 3a13d4707b)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-03-30 10:07:22 +01:00
Franz Pletz
e8e1cb8ddb Merge pull request #14254 from risicle/osrm_fixes_r15.09
Osrm build fixes (r15.09 backport)
2016-03-30 08:15:38 +02:00
Robert Scott
65df18a7d8 osrm-backend: switch src to use fetchFromGitHub 2016-03-27 20:47:55 +00:00
Robert Scott
0679444696 osrm-backend: add patch fixing build by un-hard-coding gcc-ar and gcc-ranlib paths 2016-03-27 20:47:55 +00:00
Eelco Dolstra
f8a795e882 nixpkgs-metrics: Suppress build products
(cherry picked from commit 03df731fb5)
2016-03-25 16:39:57 +01:00
Eelco Dolstra
1bf1d3b46e Add metrics job to unstable aggregate
(cherry picked from commit c23e9e12f8)
2016-03-25 16:39:57 +01:00
Eelco Dolstra
fbc034cc55 Keep track of Nixpkgs/NixOS evaluation statistics
(cherry picked from commit fab439201e)
2016-03-25 16:39:57 +01:00
Eelco Dolstra
58e44b4a7f Catalyst::Action::Rest: 1.19 -> 1.20
(cherry picked from commit 6e08bd27fc)
2016-03-25 14:51:52 +01:00
Pascal Wittmann
38ccd010aa perl-Catalyst-Action-REST: 1.17 -> 1.19
(cherry picked from commit 635ac2e589)
2016-03-25 14:51:45 +01:00
Eelco Dolstra
8f56c381f3 Revert "kernel: 3.18.26 -> 3.18.29 (close #14057)"
This reverts commit e63847f672. See
d8a1eaa142.
2016-03-22 14:05:10 +01:00
Franz Pletz
2fc790cc63 nss: 3.22.2 -> 3.23 (security)
Fixes CVE-2016-1950.

See: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.23_release_notes

(cherry picked from commit 1a9b272c09)
2016-03-21 21:30:04 +01:00
Graham Christensen
3044d74b1f squid: 3.5.1 -> 3.5.15 for CVE-2016-2571
(cherry picked from commit 75c90fff39)
2016-03-21 18:49:44 +01:00
Tim Steinbach
e63847f672 kernel: 3.18.26 -> 3.18.29 (close #14057)
(cherry picked from commit 6476075ccf)
2016-03-21 12:42:11 +01:00
Tim Steinbach
86bff842d0 kernel: 4.1.17 -> 4.1.20 (close #14058)
(cherry picked from commit 379709b404)
2016-03-21 12:40:16 +01:00
Vladimír Čunát
8799016391 Merge #14073: backport php security updates 2016-03-21 11:58:52 +01:00
aszlig
da4a26dbce chromium: Fix comment of upstream-info.nix
As of 6041cfe, the upstream-info.nix (back then it was called
sources.nix) is no longer in the source/ subdirectory, so we need to fix
that comment to say that the file is autogenerated from update.sh in the
*same* directory.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 5ebd629c6f)
2016-03-21 04:41:59 +01:00
aszlig
5266e62064 chromium: Move source/default.nix into common.nix
This addresses #12794 so that we now have only a single tarball where we
base our build on instead of splitting the source into different outputs
first and then reference the outputs.

The reason I did this in the first place is that we previously built the
sandbox as a different derivation and unpacking the whole source tree
just for building the sandbox was a bit too much.

As we now have namespaces sandbox built in by default we no longer have
that derivation anymore. It still might come up however if we want to
build NaCl as a separate derivation (see #8560), but splitting the
source code into things only NaCl might require is already too much work
and doesn't weight out the benefits.

Another issue with the source splitup is that Hydra now has an output
limit for non-fixed-output derivations which we're already hitting.

Tested the build against the stable channel and it went well, but I
haven't tested running the browser.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 4f981b4f84)
2016-03-21 04:39:04 +01:00
aszlig
d2713b9356 chromium: Move fetchurl calls to getChannel
We always do something like "fetchurl channelProduct", so let's move it
to getChannel directly so we can avoid those fetchurl calls all over the
place.

Also, we can still access subattributes from the fetchurl call if we
need to, so there really is no need to expose the product's attributes
directly.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(backported from commit 37dbd62a83)
2016-03-21 04:38:42 +01:00
aszlig
b013878d27 chromium/common.nix: Remove unreferenced attrs
We're going to refactor things anyway, so let's first get rid of
everything that's not used anymore.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 985df3900d)
2016-03-21 04:33:54 +01:00
aszlig
533d5424f3 chromium/source: Move update.nix to parent dir
We now should have only the default.nix left in the source directory and
we can start to factor out the pieces into the Chromium main derivation
attributes.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(backported from commit 6041cfe2af)
2016-03-21 04:33:42 +01:00
aszlig
026531a04a chromium: Rename sources.nix to upstream-info.nix
The "sources.nix" also contains information about where to get binary
packages, so calling it "upstream-info.nix" fits better in terms of
naming.

Also, we're moving it away from the sources dir, because the latter will
soon vanish.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(backported from commit 2d9a604907)
2016-03-21 04:30:26 +01:00
aszlig
603297b3e8 chromium/source: Move patches into its own subdir
We're going to reference the patches in the Chromium main build rather
than applying it to the sources. So as a first step, this should keep
the patches away from the "source" subdirectory so we can make it flat.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit d6b11ed722)
2016-03-21 04:25:21 +01:00
Franz Pletz
d10be236f1 bind: 9.10.3 -> 9.10.3-P4 (security)
Fixes:

  * CVE-2016-1285: https://kb.isc.org/article/AA-01352/
  * CVE-2016-1286: https://kb.isc.org/article/AA-01353/

(cherry picked from commit 404a699a20)
2016-03-21 04:06:32 +01:00
Sander van der Burg
437c60242c dysnomia: bump to version 0.5.1
(cherry picked from commit 7ed3dc6cfc)
2016-03-20 15:22:35 +00:00
Yann Hodique
7664d23f45 git: 2.7.3 -> 2.7.4
(cherry picked from commit 31c317e09e)
2016-03-19 15:56:12 +01:00
Robert Scott
fc56fd8722 php: 5.6.18 -> 5.6.19 (security update) 2016-03-19 13:58:39 +00:00
Robert Scott
9b1c377621 php: 5.5.32 -> 5.5.33 (security update) 2016-03-19 13:58:38 +00:00
Joachim Fasting
5ab13933e3 Revert "Merge pull request #13998 from namore/add-rake-pkg"
I didn't notice that this was opened against the 15.09 branch, so
merging this was a mistake on my part, sorry.

This reverts commit b997ce6237, reversing
changes made to d8a1eaa142.
2016-03-18 23:19:47 +01:00
joachifm
b997ce6237 Merge pull request #13998 from namore/add-rake-pkg
rake: init at 11.1.1
2016-03-18 22:13:02 +00:00
Roman Naumann
1766e8d866 rake: init at 11.1.1 2016-03-18 11:37:46 +01:00
Eelco Dolstra
d8a1eaa142 Revert "linux: 3.18.26 -> 3.18.27"
This reverts commit e5a4d10559. Linux
3.18.27 breaks LUKS:

https://bugzilla.redhat.com/show_bug.cgi?id=1311286
https://bugzilla.kernel.org/show_bug.cgi?id=112631

http://hydra.nixos.org/build/33388465

machine# Failed to setup dm-crypt key mapping for device /dev/vda3.
machine# Check that kernel supports aes-xts-plain64 cipher (check syslog for more info).
2016-03-17 17:57:17 +01:00
Eelco Dolstra
350c8f2aca Revert "linux: 3.18.27 -> 3.18.28"
This reverts commit 114118624c.
2016-03-17 17:57:07 +01:00
Eelco Dolstra
9f3ca76cc2 linux: Pass through configuration file
This enables "nix-build -A linux.configfile" to get the generated
kernel config.

(cherry picked from commit 50ab972b5a)
2016-03-17 17:23:37 +01:00
Eelco Dolstra
114118624c linux: 3.18.27 -> 3.18.28
CVE-2016-2085

(cherry picked from commit 6faa0aea88)
2016-03-17 13:36:11 +01:00
Eelco Dolstra
6035d1104e thunderbird: 38.3.0 -> 38.7.0
Lots of security fixes: https://www.mozilla.org/en-US/security/known-vulnerabilities/thunderbird/#thunderbird38.7

(cherry picked from commit aa6ab92d93)
2016-03-17 13:35:06 +01:00
Vladimír Čunát
2baa76eebd firefox: disable optimization hack (i686-linux)
It seems to build fine even without it, so the original reason doesn't
hold anymore:
https://github.com/NixOS/nixpkgs/commit/f4b5671b0d9e8904a4ad6b3fd85268

(cherry picked from commit 9be0c7d463)
2016-03-17 13:25:27 +01:00
Franz Pletz
9612ed4a09 firefox-esr: 38.5.2esr -> 38.6.1esr
(cherry picked from commit 657c56678c)
2016-03-17 13:25:27 +01:00
Eelco Dolstra
f9a5a48ec2 firefox: 44.0.2 -> 45.0
(cherry picked from commit 0d6d91739f)
2016-03-17 13:25:26 +01:00
Franz Pletz
e5a4d10559 linux: 3.18.26 -> 3.18.27
(cherry picked from commit d756ff9354)
2016-03-17 13:25:26 +01:00
Peter Simons
b30419acfc git: update from version 2.5.4 to 2.7.3 2016-03-16 21:38:42 +01:00
Eelco Dolstra
4c26a7a8e6 Combine ISO generation steps
This folds adding hydra-build-products into the actual ISO generation,
preventing an unnecessary download of the ISO.

(cherry picked from commit 10293b87a9)
2016-03-16 17:18:51 +01:00
Eelco Dolstra
84e7f6a29b Combine OVA generation steps
Previously this was done in three derivations (one to build the raw
disk image, one to convert to OVA, one to add a hydra-build-products
file). Now it's done in one step to reduce the amount of copying
to/from S3. In particular, not uploading the raw disk image prevents
us from hitting hydra-queue-runner's size limit of 2 GiB.

(cherry picked from commit 5cc7bcda30)
2016-03-16 17:18:20 +01:00
Sander van der Burg
0862be0ac4 disnixos: bump to version 0.4.1
(cherry picked from commit 0f46200f26)
2016-03-16 13:28:41 +00:00
Graham Christensen
f83947135c ilbc: extract-cfile.awk has fallen off the internet
Close #13923.

(cherry picked from commit 2aae2af845)
2016-03-14 21:42:39 +01:00
Graham Christensen
71ba0c8d2c graphite2: security update 1.2.4 -> 1.3.6 (close #13918)
CVE-2016-1977 CVE-2016-2790 CVE-2016-2791 CVE-2016-2792
CVE-2016-2793 CVE-2016-2794 CVE-2016-2795 CVE-2016-2796
CVE-2016-2797 CVE-2016-2798 CVE-2016-2799 CVE-2016-2800
CVE-2016-2801 CVE-2016-2802

vcunat fixed the tarball name and redirected to github.

(cherry picked from commit c310cb9e46)
2016-03-14 21:32:14 +01:00
Graham Christensen
fd725a9999 eduke32: 20150420-5160 moved to the old releases directory
Close #13922.

(cherry picked from commit f165334492)
2016-03-14 20:49:31 +01:00
Graham Christensen
3b51bc36f9 d4x: Update download URL to fedora, d4k.krasu.ru no longer exists
(cherry picked from commit 2c8cb42c71)
2016-03-14 20:49:31 +01:00
Rob Vermaas
19a3dd8243 Remove kill -9 -1 from initrd of amazon-image.nix. This causes a kernel panic.
(cherry picked from commit ed5920ec65)
2016-03-14 19:26:28 +01:00
Vladimír Čunát
fcb92c445a samba: security update 4.2.3 -> 4.2.9
/cc #13919.
2016-03-14 18:19:02 +01:00
Frederik Rietdijk
6cc1ba2051 Merge pull request #13887 from Beauhurst/r15.09_django_updates
django security updates (backport to release-15.09)
2016-03-13 10:56:08 -04:00
Robert Scott
9512e2a963 django: 1.9 -> 1.9.4, 1.8.4 -> 1.8.11, 1.7.10 -> 1.7.11 2016-03-13 14:42:29 +00:00
Graham Christensen
89c580b07b chromium: 49.0.2626.75 -> 50.0.2661.26 for CVE-2016-1643 CVE-2016-1644 CVE-2016-1645
(cherry picked from commit e54434751a)
2016-03-13 12:39:26 +01:00
aszlig
8b913e96e5 chromium: Update all channels to latest versions
Overview of the updated versions:

stable: 48.0.2564.116 -> 49.0.2623.75
beta:   49.0.2623.63  -> 49.0.2623.75
dev:    50.0.2657.0   -> 50.0.2661.11

Stable and beta are now in par because of the release of a major stable
update.

The release addresses 26 security vulnerabilities, the following with an
assigned CVE:

 * CVE-2016-1630: Same-origin bypass in Blink. Credit to Mariusz
                  Mlynski.
 * CVE-2016-1631: Same-origin bypass in Pepper Plugin. Credit to Mariusz
                  Mlynski.
 * CVE-2016-1632: Bad cast in Extensions. Credit to anonymous.
 * CVE-2016-1633: Use-after-free in Blink. Credit to cloudfuzzer.
 * CVE-2016-1634: Use-after-free in Blink. Credit to cloudfuzzer.
 * CVE-2016-1635: Use-after-free in Blink. Credit to Rob Wu.
 * CVE-2016-1636: SRI Validation Bypass. Credit to Ryan Lester and
                  Bryant Zadegan.
 * CVE-2015-8126: Out-of-bounds access in libpng. Credit to
                  joerg.bornemann.
 * CVE-2016-1637: Information Leak in Skia. Credit to Keve Nagy.
 * CVE-2016-1638: WebAPI Bypass. Credit to Rob Wu.
 * CVE-2016-1639: Use-after-free in WebRTC. Credit to Khalil Zhani.
 * CVE-2016-1640: Origin confusion in Extensions UI. Credit to Luan
                  Herrera.
 * CVE-2016-1641: Use-after-free in Favicon. Credit to Atte Kettunen of
                  OUSPG.

The full announcement which also includes the link to the bug tracker
can be found here:

http://googlechromereleases.blogspot.de/2016/03/stable-channel-update.html

Also, the 32bit Chrome package needed for the Flash and Widevine plugins
doesn't exist anymore, because Google has dropped support for 32bit
distros, see here for the announcement:

https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/FoE6sL-p6oU

On our end, we need to fix the patch for the plugin paths to work for
the latest dev channel. The change is very minor, because the
nix_plugin_paths_46.patch only doesn't apply because of an iOS-related
ifdef.

Built and tested on my Hydra at:

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

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Fixes: #13665
(cherry picked from commit 8b97ca270e)
2016-03-13 12:39:20 +01:00
Domen Kožar
6c6f901fb3 Merge pull request #13872 from sheenobu/backport-spotify
spotify: 0.9.17.1 -> 1.0.25.127 , 15.09 backport
2016-03-13 10:24:54 +00:00
Sheena Artrip
26fb999448 spotify: backport of 1.0.25.127 to 15.09
spotify: fix repo format

spotify: fix missing ffmpeg_0_10 dependency, fixes #11877

This makes local playback work.

spotify: 0.9.17.1 -> 1.0.19.106

changes by @globin:
used wrapper instead of propagatedUserEnvPkgs for zenity

closes #12191

Signed-off-by: Robin Gloster <mail@glob.in>

spotify: fix icons

spotify: 1.0.19.106 -> 1.0.23.93

spotify: 1.0.23.93 -> 1.0.25.127
2016-03-12 19:52:26 -05:00
Lluís Batlle i Rossell
26f2d567a8 Adding rowhammer test.
(cherry picked from commit e026b5c243)
2016-03-11 14:33:22 +01:00
Domen Kožar
3076830900 nss: 3.21 -> 3.22.2 (CVE-2016-1950)
(cherry picked from commit 603ea2652f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-03-11 12:22:12 +00:00
Franz Pletz
b16a7b7071 Merge pull request #13797 from grahamc/libotr-15.09
libotr: upgrade v4, remove v3, and pidgin-otr for CVE-2016-2851 (15.09)
2016-03-10 00:24:46 +01:00
Graham Christensen
353fe784b9 pidgin-otr: 4.0.1 -> 4.0.2 for CVE-2016-2851
(cherry picked from commit 6f8a914d57b5696e20c961659649aee286c4c7e6)
2016-03-09 17:21:31 -06:00
Graham Christensen
0d0aab8625 libotr_3_2: remove, not updated since 2012, and unused.
(cherry picked from commit 6f574732a43ac24832ac92df99e8c826b301a4eb)
2016-03-09 17:21:30 -06:00
Franz Pletz
b1180bf903 libotr: 4.1.0 -> 4.1.1 (CVE-2016-2851)
https://www.x41-dsec.de/lab/advisories/x41-2016-001-libotr/
(cherry picked from commit 728cf25e16)
2016-03-10 00:14:18 +01:00
Jaka Hudoklin
06e44b867f dd-agent: add docker support
(cherry picked from commit 4acbfe7d9a)
2016-03-09 15:33:55 +00:00
Franz Pletz
f6d1666b4c linux_3_14: 3.14.61 -> 3.14.63
(cherry picked from commit af40e356fe)
2016-03-07 23:36:38 +01:00
Franz Pletz
8510cfd521 linux_3_12: 3.12.54 -> 3.12.55
(cherry picked from commit 354a1935d3)
2016-03-07 23:36:36 +01:00
Franz Pletz
77d4b5d2fa linux_3_10: 3.10.97 -> 3.10.99
(cherry picked from commit 5b8361c118)
2016-03-07 23:36:33 +01:00
Jaka Hudoklin
1c4c474504 dd-agent: 5.4.3 -> 5.5.2
(cherry picked from commit b4ece28aac)
2016-03-07 16:31:10 +00:00
Luca Bruno
a33dbb3248 chromium: add StartupWMClass to desktop file. Fixes #12433
(cherry picked from commit 5f8311775c)
2016-03-06 23:38:21 +01:00
Lluís Batlle i Rossell
e603afd3db Update ghdl mcode to 0.33.
(cherry picked from commit e9d6aadc51ecdd274cd383a99ea840a94b58d954)
(cherry picked from commit 7f7c2171c0)
2016-03-03 16:06:14 +01:00
Eelco Dolstra
23395c4ed6 m2crypto: 0.21.1 -> 0.23.0
The previous version broke because it required SSLv2 support in OpenSSL:

ImportError: /nix/store/c0z7qlycaa2jhqjq0v9vy3j4nw4layw2-python2.7-m2crypto-0.21.1/lib/python2.7/site-packages/M2Crypto/__m2crypto.so: undefined symbol: SSLv2_method
(cherry picked from commit 49f23a6028)
2016-03-02 19:59:07 +01:00
Lluís Batlle i Rossell
cfadda9450 gtkwave: update to 3.3.70
(cherry picked from commit a95e65b1eb)
2016-03-02 12:42:52 +01:00
Matthias Beyer
4b9048133f neon: Put version into own variable
(cherry picked from commit f92d27d214)
2016-03-02 11:36:44 +01:00
Matthias Beyer
b265128683 neon: 0.29.6 -> 0.30.1
(cherry picked from commit d2c32179fe)

Necessary because the old version was calling SSLv2_server_method,
which OpenSSL no longer provides by default. Fixes #13605.
2016-03-02 11:35:55 +01:00
Eelco Dolstra
19de56397e openssl: 1.0.1r -> 1.0.1s, 1.0.2f -> 1.0.2g
CVE-2016-0800

Xref cdbd14a1a8.
2016-03-01 15:24:59 +01:00
Eelco Dolstra
ff444d6278 Drop chromium as a release blocker
The build timed out after 10 hours: http://hydra.nixos.org/build/32505548.
2016-03-01 14:14:25 +01:00
Thomas Tuegel
e692e1b15a Merge pull request #13054 from bendlas/update-dropbox-stable
dropbox: 3.12.6 -> 3.14.7 (release 15.09)
2016-02-29 11:16:08 -06:00
Franz Pletz
941a900a24 Merge pull request #13457 from grahamc/chromium-15.09
chromium{,Beta,Dev}: 48.0.2564.97 -> 48.0.2564.116 (release-15.09)
2016-02-28 20:08:21 +01:00
aszlig
225fe0adcf chromium: Provide SHA256s for beta/dev plugins
As stated in the parent commit, the 32bit Chrome package is not
available upstream, so let's at least provide the SHA256 hash for the
64bit package.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 716b79d3a5)
2016-02-28 12:49:07 -06:00
Bjørn Forsman
40b212ec4c gitstats: init at 2016-01-08
Upstream does not make releases, using latest commit from master branch.

(cherry picked from commit 070dccae7b)
2016-02-28 15:04:20 +01:00
Bjørn Forsman
f864b73e55 gitinspector: 0.4.1 -> 0.4.4
(cherry picked from commit d589391202)
2016-02-28 11:33:55 +01:00
Vladimír Čunát
f8d08ad08c nixos copySystemConfiguration: fix when chrooted
Fixes #7974. Also makes the description more informative.

(cherry picked from commit f8516a0717)
2016-02-28 10:09:25 +01:00
Franz Pletz
6c9421370a Merge pull request #12787 from phunehehe/bundler-head-1.8.9
bump bundler-head to 1.8.9
2016-02-28 04:54:30 +01:00
Graham Christensen
aad885192d cpio: patch CVE-2016-2037, out of bounds write (close #13489)
(cherry picked from commit 483a130f89)
2016-02-26 22:56:34 +01:00
Graham Christensen
e49d3ba6d7 libssh2: 1.6.0 -> 1.7.0
This release includes the following changes:
      o libssh2_session_set_last_error: Add function
      o mac: Add support for HMAC-SHA-256 and HMAC-SHA-512
      o WinCNG: support for SHA256/512 HMAC
      o kex: Added diffie-hellman-group-exchange-sha256 support
      o OS/400 crypto library QC3 support
    This release includes the following security advisory:
      o diffie_hellman_sha256: convert bytes to bits
        CVE-2016-0787: http://www.libssh2.org/adv_20160223.html
    This release includes the following bugfixes:
      o SFTP: Increase speed and datasize in SFTP read
      o openssl: make libssh2_sha1 return error code
      o openssl: fix memleak in _libssh2_dsa_sha1_verify()
      o cmake: include CMake files in the release tarballs
      o Fix builds with Visual Studio 2015
      o hostkey.c: Fix compiling error when OPENSSL_NO_MD5 is defined
      o GNUmakefile: add support for LIBSSH2_LDFLAG_EXTRAS
      o GNUmakefile: add -m64 CFLAGS when targeting mingw64
      o kex: free server host key before allocating it (again)
      o SCP: add libssh2_scp_recv2 to support large (> 2GB) files on windows
      o channel: Detect bad usage of libssh2_channel_process_startup
      o userauth: Fix off by one error when reading public key file
      o kex: removed dupe entry from libssh2_kex_methods
      o _libssh2_error: Support allocating the error message
      o hostkey: fix invalid memory access if libssh2_dsa_new fails
      o hostkey: align code path of ssh_rsa_init to ssh_dss_init
      o libssh2.pc.in: fix the output of pkg-config --libs
      o wincng: fixed possible memory leak in _libssh2_wincng_hash
      o wincng: fixed _libssh2_wincng_hash_final return value
      o add OpenSSL 1.1.0-pre2 compatibility
      o agent_disconnect_unix: unset the agent fd after closing it
      o sftp: stop reading when buffer is full
      o sftp: Send at least one read request before reading
      o sftp: Don't return EAGAIN if data was written to buffer
      o sftp: Check read packet file offset
      o configure: build "silent" if possible
      o openssl: add OpenSSL 1.1.0-pre3-dev compatibility
      o GNUmakefile: list system libs after user libs

(cherry picked from commit 737e808913)

Security fix. See #13473.
2016-02-26 19:35:30 +01:00
Graham Christensen
c7834513bd xerces-c: 3.1.1 -> 3.1.3
Security & bugfix release. See #13454.

(cherry picked from commit f91c979f8a)
2016-02-26 11:26:04 +01:00
Tim Steinbach
ba559fcbfc linux_3_10: 3.10.96 -> 3.10.97 (close #13405)
(cherry picked from commit 7506c58d74)
2016-02-25 23:21:36 +01:00
Tuomas Tynkkynen
27a86495a3 linux-3.10: fixup config by a slightly hacky way
For explanation see:
https://github.com/NixOS/nixpkgs/pull/13405#issuecomment-188357637

(cherry picked from commit 0e1319f03f)
2016-02-25 23:21:28 +01:00
Graham Christensen
9b9a9ee7ca chromium{,Beta,Dev}: 48.0.2564.97 -> 48.0.2564.116
From the debian security mailing list:

Several vulnerabilities have been discovered in the chromium web browser.

CVE-2016-1622

    It was discovered that a maliciously crafted extension could bypass
    the Same Origin Policy.

CVE-2016-1623

    Mariusz Mlynski discovered a way to bypass the Same Origin Policy.

CVE-2016-1624

    lukezli discovered a buffer overflow issue in the Brotli library.

CVE-2016-1625

    Jann Horn discovered a way to cause the Chrome Instant feature to
    navigate to unintended destinations.

CVE-2016-1626

    An out-of-bounds read issue was discovered in the openjpeg library.

CVE-2016-1627

    It was discovered that the Developer Tools did not validate URLs.

CVE-2016-1628

    An out-of-bounds read issue was discovered in the pdfium library.

CVE-2016-1629

    A way to bypass the Same Origin Policy was discovered in Blink/WebKit,
    along with a way to escape the chromium sandbox.

(cherry picked from commit 712d59225e)
2016-02-25 12:50:22 -06:00
taku0
d8aae2964d thunderbird-bin: 38.5.1 -> 38.6.0 (close #13437)
(cherry picked from commit ce763e2d66)
2016-02-25 08:19:36 +01:00
Vladimír Čunát
a376adce73 libssh: security update 0.7.1 -> 0.7.3
It's supposed to fix CVE-2016-0739: weak secret with diffie-hellman.

(cherry picked from commit 0ee46ddffb)
I'm lazy to isolate a patch for CVE itself, so we're getting the usual
bugfixes as well.
2016-02-24 15:05:08 +01:00
Tim Steinbach
8bdb164a1c linux_3_12: 3.12.53 -> 3.12.54 (close #13406)
(cherry picked from commit 642517fbda)
2016-02-24 08:30:25 +01:00
Tim Steinbach
b28ed38457 linux_3_14: 3.14.60 -> 3.14.61 (close #13407)
(cherry picked from commit 08cf57204f)
2016-02-24 08:30:18 +01:00
Tim Steinbach
208b620bf0 linux_4_3: 4.3.4 -> 4.3.6 (close #13408)
(cherry picked from commit a2bd90650d)
2016-02-24 08:30:00 +01:00
Charles Strahan
6dc374c91f ghcjs-shims: 2016/01/07 -> 2016/02/10
Bump revisions: 45f44f5f027 -> 4df1808d031

(cherry picked from commit c374ce26b0)
2016-02-23 21:03:23 -05:00
Charles Strahan
ffe80607f7 ghcjs: replace integer-simple with integer-gmp
GHCJS uses integer-gmp, but cabal2nix generates a dependency list that
includes integer-simple instead. This tweaks the stage2 generator to
replace any instance of integer-simple with integer-gmp.

Things currently still work without this change (assuming
integer-simple is defined as null), as ghcjs includes integer-gmp in
its stage1 packages - so it's always available.

However, this change makes things a bit more explicit, rather than
leaving things to chance. If at any point the stage1 packages are also
split up into separate derivations, the integer-gmp package will need to
be passed along to the packages that depend on it. This change should
prevent some confusion going forward.

(cherry picked from commit 516057ffa9)
2016-02-23 21:03:23 -05:00
Charles Strahan
1504cc7b04 ghcjs: don't propagate Cabal to all packages
Previously, we were compiling Setup.hs with ghcjs (instead of  ghc),
and that required that Cabal be available, otherwise the Setup.hs would
fail to compile.

Now that we are compiling Setup.hs with ghc, it's no longer necessary
to add Cabal as a dependency to all ghcjs packages.

(cherry picked from commit e6e9970891)
2016-02-23 21:03:22 -05:00
Charles Strahan
8ea0c7cf6e ghcjs: use native ghc to build Setup.hs
(cherry picked from commit 97d9071b95)
2016-02-23 21:03:22 -05:00
Charles Strahan
6647ce67fa ghcjs: fix building with cabal-install-1.22.8.0
(cherry picked from commit bbce88302a)
2016-02-23 21:03:22 -05:00
Vladimír Čunát
478d32d64a kde5: fix #13359: download URLs no longer valid
15.04.3 got moved on the mirrors.
2016-02-22 09:48:02 +01:00
Eelco Dolstra
c18fd96a8c aws-sdk-cpp: Allow building some APIS and disabling custom memory management
(cherry picked from commit 7b2ac69ada)
2016-02-19 18:10:29 +01:00
Eelco Dolstra
f4f9dc5b62 aws-sdk-cpp: Init at 0.9.6
(cherry picked from commit 108a0ae881)
2016-02-19 18:10:20 +01:00
Herwig Hochleitner
fe32d292bf dropbox: 3.14.5 -> 3.14.7 2016-02-17 16:24:06 +01:00
Rob Vermaas
c9ef3b51a3 Fix xclip hash, make revision explicit, in stead of depending on HEAD. 2016-02-17 11:57:04 +00:00
Vladimír Čunát
6db8b1ea01 pkgconfig: add a http-only mirror
It seems we don't really need `fetchurlBoot` here ATM, but let's keep it.
https://github.com/NixOS/nixpkgs/issues/12816#issuecomment-185083205

(cherry picked from commit 2f3eae3a87)
2016-02-17 08:52:34 +01:00
Herwig Hochleitner
37252fe6da dropbox: 3.12.6 -> 3.14.5 (release 15.09)
Also updates qt5 dependency to qt55, as per release notes: https://www.dropboxforum.com/hc/en-us/community/posts/205672126-Release-Candidate-3-14-5
2016-02-16 21:29:30 +01:00
Nathan Zadoks
9220f03d08 glibc: fix cve-2015-7547.patch so it applies cleanly
(cherry picked from commit fc48bf5a2c)
2016-02-16 11:26:19 -05:00
Nathan Zadoks
aacd8ac5f4 glibc: patch CVE-2015-7547
The glibc DNS client side resolver is vulnerable to a stack-based buffer
overflow when the getaddrinfo() library function is used. Software using
this function may be exploited with attacker-controlled domain names,
attacker-controlled DNS servers, or through a man-in-the-middle attack.
https://googleonlinesecurity.blogspot.co.uk/2016/02/cve-2015-7547-glibc-getaddrinfo-stack.html

(cherry picked from commit b5aa8a4e64)
2016-02-16 10:22:39 -05:00
Eelco Dolstra
969c67f48c firefox: Fix build
Fixes #13026.
2016-02-16 13:18:19 +01:00
Lluís Batlle i Rossell
602e0da970 linux: adding PCI Expresscard Hotplug support
(cherry picked from commit b2dc647c1e)
2016-02-16 09:24:00 +01:00
Franz Pletz
7ea9bb75e1 grafana: 2.5.0 -> 2.6.0, fixes #12978 #12970
(cherry picked from commit 70e47ab981)
2016-02-15 15:49:22 +01:00
Jaka Hudoklin
9e50c6c6c2 grafana module: update
(cherry picked from commit 9671d36011)
2016-02-15 15:48:51 +01:00
Jaka Hudoklin
0335e693a6 grafana: 2.0.0-beta1 -> 2.5.0
(cherry picked from commit abda14309f)
2016-02-15 15:48:51 +01:00
Jaka Hudoklin
ff9acf1a9b grafana: fix package naming
(cherry picked from commit 572ebb2f20)
2016-02-15 15:48:51 +01:00
Domen Kožar
2c53fccaef Merge pull request #12982 from davidak/syncthing-12
update Syncthing to 0.12.x #11329 on stable branch
2016-02-14 20:13:11 +00:00
Shea Levy
4a26a7a0e7 Merge branch 'logstash-15.09' of https://github.com/jgillich/nixpkgs into release-15.09 2016-02-14 07:05:33 -05:00
Vladimír Čunát
fe1c9c7498 pstree: add a working mirror to fix #12989
/cc maintainer @mornfall.

(cherry picked from commit 16d7237beb)
2016-02-14 08:37:36 +01:00
davidak
d218e2252c apply changes from #11329 to stable branch 2016-02-14 00:39:54 +01:00
makefu
26701af05d logstash: fix bin path
with the last commit for logstash plugin the bin path was not being used and the executables
were written directly in the root directory
this results in the failure of the logstash service configuration.
additionally the logstash tool itself does not start because it cannot source shell libraries relative
to the current location
2016-02-13 23:36:51 +01:00
Rob Vermaas
104fde593d plot.ly: upgrade to 1.9.5 2016-02-12 20:51:13 +00:00
Eelco Dolstra
f121cc3f65 nixUnstable: 1.11.1 -> 1.11.2 2016-02-12 16:14:42 +01:00
Franz Pletz
05a08024cd firefox: 44.0 -> 44.0.2
(cherry picked from commit 70925f0a92)
2016-02-12 16:14:30 +01:00
Franz Pletz
354c1754ad firefox: 43.0.4 -> 44.0
(cherry picked from commit 1026673f37)
2016-02-12 16:14:29 +01:00
Eelco Dolstra
70aa0b8c26 firefox: 43.0.3 -> 43.0.4
(cherry picked from commit 094723f0bc)
2016-02-12 16:14:29 +01:00
Eelco Dolstra
fb8d208a88 postgresql: Update to 9.5.1, 9.4.6, 9.3.11, 9.2.15, 9.1.20
(cherry picked from commit 5e6962ff2e)
2016-02-12 16:01:02 +01:00
Tom Burdick
a356047d0e postgresql: (94 -> 95)
Updates postgresql to its latest versions

(cherry picked from commit 2c23a311cd)
2016-02-12 16:01:02 +01:00
Eelco Dolstra
9a7b24ad04 php: 5.5.31 -> 5.5.32
(cherry picked from commit 42634fe6cc)
2016-02-11 11:29:46 +01:00
Eelco Dolstra
1e9ca1a91f php: 5.6.17 -> 5.6.18
(cherry picked from commit b061225c54)
2016-02-11 11:29:42 +01:00
Eelco Dolstra
af8d5fac75 mediawiki: 1.23.9 -> 1.23.13
(cherry picked from commit 86c2a0f783)
2016-02-11 11:29:37 +01:00
Steve Müller
3081f58d9b php: 5.5.30 -> 5.5.31
(cherry picked from commit 5250326474)
2016-02-11 11:29:27 +01:00
Steve Müller
c31b64e289 php: 5.6.16 -> 5.6.17
(cherry picked from commit 7c54bca127)
2016-02-11 11:29:22 +01:00
Eelco Dolstra
70cc29b51c Disable build of rPackages on Hydra
This reduces the release-15.09 jobset by ~14K jobs. Less invasive
version of ccd1029f58 (#12203).
2016-02-10 15:55:41 +01:00
Peter Simons
fa75e54869 all-packages.nix: drop trailing white space 2016-02-09 20:40:18 +01:00
Peter Simons
4ddf8e0e64 Update default Haskell compiler from 7.10.2 to 7.10.3.
I suppose this qualifies as a stable, bug-fixing update.
2016-02-09 20:39:38 +01:00
Peter Simons
5fd541cf8b haskell: synchronize setup with master branch
This update was generated by hackage2nix v20151217-10-ga610b1b using the following inputs:

  - Nixpkgs: 45176e62ca
  - Hackage: 4eb7681703
  - LTS Haskell: e7c3629999
  - Stackage Nightly: a84b3a147a
2016-02-09 20:36:26 +01:00
Rob Vermaas
ea43515da1 Add etsy/hound 2016-02-09 14:09:54 +00:00
Eelco Dolstra
14f5b32b6a Revert "curl: Change default src url (close #12851)"
This reverts commit ad8cd01d7d. The
upstream binary is mirrored on tarballs.nixos.org now.
2016-02-08 17:48:18 +01:00
Eelco Dolstra
ad287483e0 nixUnstable: Update to 1.11.1 2016-02-08 17:46:12 +01:00
Tony White
ad8cd01d7d curl: Change default src url (close #12851)
- Changes the default src url away from http://curl.haxx.se
to an official mirror because haxx.se resolves to https and
bootstrap curl doesn't have https support.
Please see https://github.com/NixOS/nixpkgs/issues/12816
for more info.

(cherry picked from commit 98ffc61e2f)
2016-02-07 13:41:05 +01:00
Vladimír Čunát
04777ed282 videolan.org sources: prefer http://get.videolan.org
Some of the original URLs were broken now.
It seems that set of mirrors is preferred and faster than the others.
In the x264 case the source isn't there so http://download.videolan.org
is used instead.

(cherry picked from commit 1e04d875db)
2016-02-07 13:21:55 +01:00
Nikolay Amiantov
22c0263ccd display-manager module: load pulseaudio's module-device-manager only for KDE
(cherry picked from commit ae662cdb11)
2016-02-06 22:19:05 +03:00
Bart Brouns
6abde3b56a ladspaH: move src to mirror, please also merge in 15.09
(cherry picked from commit 3b6b47976e)
Signed-off-by: Robin Gloster <mail@glob.in>
2016-02-06 19:07:57 +00:00
Vladimír Čunát
5af600479a libxslt: fix CVE-2015-7995 by upstream patch
(cherry picked from commit e4728dd05f)
2016-02-06 13:28:16 +01:00
Rickard Nilsson
dff27e0494 opensmtpd: Add option that can disable adding sendmail to the system path
(cherry picked from commit 5c20877d40)
2016-02-06 11:55:37 +01:00
Robin Gloster
7af7694b2a curl: 7.45 -> 7.47 (/cc #12723)
This fixes CVE-2016-0755:
https://curl.haxx.se/docs/adv_20160127A.html

Mostly cherry-picked from 0876a44169.
vcunat stripped it to minimum needed to get the security update.
2016-02-05 11:45:49 +01:00
Rob Vermaas
44347381aa Fix patches.nix, merge conflict got committed by accident. 2016-02-05 09:57:44 +00:00
Dan Peebles
1c1a5d3baf linux: 4.3.3 -> 4.34 (and update grsecurity patches, too)
(cherry picked from commit 78956c77c0)
2016-02-05 07:33:33 +01:00
Eelco Dolstra
8fd946228f linux: Update to 3.10.96, 3.12.53, 3.14.60, 3.18.26, 4.1.17
(cherry picked from commit 7b772ae398)
2016-02-05 07:33:33 +01:00
Eelco Dolstra
eacbf41d1f ec2: Don't use ephemeral disks for /nix unionfs
This is a regression introduced by merging the EBS and S3 images. The
EBS images had a special marker /.ebs to prevent the initrd from using
ephemeral storage for the unionfs, but this marker was missing in the
consolidated image.

The fix is to check the file ami-manifest-path on the metadata server
to see if we're an S3-based instance. This does require networking in
the initrd.

Issue #12613.

(cherry picked from commit 06731dfcae)
2016-02-05 07:33:33 +01:00
Eelco Dolstra
ffd3e88cd0 Don't make chromium-beta/dev release blockers
Generally we shouldn't ship pre-release versions anyway, and we
certainly don't want them to be release blockers. Also, chromium
builds are just too slow to have them blocking the channel (see
https://github.com/NixOS/nixpkgs/issues/12794).

(cherry picked from commit 69ec09f38a)
2016-02-05 07:33:33 +01:00
taku0
b5173754e3 thunderbird-bin: 38.5.0 -> 38.5.1
(cherry picked from commit 4e9729298e)
2016-02-05 07:33:33 +01:00
taku0
2107206c71 thunderbird-bin: 38.4.0 -> 38.5.0
(cherry picked from commit 66cddef221)
2016-02-05 07:33:32 +01:00
taku0
9917950f28 thunderbird-bin: 38.3.0 -> 38.4.0
(cherry picked from commit 50a842fb37)
2016-02-05 07:33:32 +01:00
taku0
b304385a73 firefox-bin: 43.0.4 -> 44.0
(cherry picked from commit 85f5394c5f)
2016-02-05 07:33:32 +01:00
taku0
7ac05effbb firefox-bin: 43.0.3 -> 43.0.4
(cherry picked from commit a9abdc8426)
2016-02-05 07:33:32 +01:00
taku0
5cb71dda51 firefox-bin: 43.0.2 -> 43.0.3
(cherry picked from commit 12a6fc722f)
2016-02-05 07:33:32 +01:00
taku0
26d1b33cf1 firefox-bin: 43.0.1 -> 43.0.2
(cherry picked from commit fe287dea9b)
2016-02-05 07:33:32 +01:00
taku0
7feb207dc4 firefox-bin: 43.0 -> 43.0.1
(cherry picked from commit e24211df8f)
2016-02-05 07:33:32 +01:00
taku0
08790a4f63 firefox-bin: 42.0 -> 43.0
(cherry picked from commit df02ed5696)
2016-02-05 07:33:32 +01:00
taku0
ac783c0a26 firefox-bin: 41.0.2 -> 42.0 (close #10821)
(cherry picked from commit b3a40786c0)
2016-02-05 07:33:32 +01:00
taku0
00784ffde2 firefox-bin: 41.0.1 -> 41.0.2
(cherry picked from commit 45705d584a)
2016-02-05 07:33:32 +01:00
taku0
84727e2a8b firefox-bin: 41.0 -> 41.0.1, thunderbird-bin: 38.2.0 -> 38.3.0
(cherry picked from commit 57155e04a7)
2016-02-05 07:33:32 +01:00
taku0
b2f551174c firefox-bin: 40.0.3 -> 41.0
(cherry picked from commit 50355a22a4)
2016-02-05 07:33:31 +01:00
Frederik Rietdijk
bdfda98890 Merge pull request #12821 from Beauhurst/kombu_amqp_update_backport
Kombu amqp update backport
2016-02-04 21:46:36 +01:00
Robert Scott
e9abbe867c kombu 3.0.30 -> 3.0.33 2016-02-04 16:00:00 +00:00
Robert Scott
3bdeb9a33f amqp 1.4.7 -> 1.4.9 2016-02-04 15:59:07 +00:00
Rickard Nilsson
217bfcf517 goPackages.oauth2_proxy: init at 20160120
Also add missing dependency:

goPackages.hmacauth: init at 20151013

(cherry picked from commit 23beba4994)
2016-02-04 11:44:14 +01:00
Hoang Xuan Phu
9dbef54378 bump bundler-head to 1.8.9 2016-02-03 11:33:26 +07:00
Nathan Zadoks
e83aed4c10 fish: don't use manpath(1) from PATH in functions/man.fish
Close #12762.

(cherry picked from commit 1072e2bf4d)
2016-02-02 06:18:35 +01:00
Luca Bruno
644b277b24 Merge pull request #12754 from vandenoever/davmail
davmail: 4.7.0 -> 4.7.1
2016-02-01 23:46:18 +01:00
Jos van den Oever
cf327c3dcf davmail: 4.7.0 -> 4.7.1
Bugfix release, mainly for Carddav regression over EWS, also includes an NTLM support enhancement.

Enhancement:
- Improve NTLM support try to send hostname as workstation name instead of UNKNOWN
- Fix notification dialog message
- Prepare ExchangeSessionFactory refactoring
- Fix typo in french translation
- Fix broken Sourceforge link in About dialog

Carddav:
- Carddav: fix regression on contact update with empty field triggering DeleteItemField
2016-02-01 21:11:59 +01:00
Tony White
9fe0c23a23 chromium: 47.0.2526.106 - > 48.0.2564.97
- Fixes CVE-2016-1612 CVE-2016-1613 CVE-2016-1614 CVE-2016-1615
  CVE-2016-1616 CVE-2016-1617 CVE-2016-1618 CVE-2016-1619 CVE-2016-1620.
- Moves chromium stable and beta channels up one version major.
  vcunat made dev channel stay for now, as it wouldn't download otherwise.
  This is most of PR #12717.

(cherry picked from commit 8491d0d1ca)
They are security updates. I briefly tested the default version against 15.09.
2016-02-01 12:13:08 +01:00
Vladimír Čunát
3d83991892 liberation-fonts: fix meta after 2012 changes
/cc maintainer @7c6f434c.

(cherry picked from commit 576746970e)
This doesn't even change hashes.
2016-02-01 08:52:51 +01:00
Matthew O'Gorman
1def2d06c8 gerbv: init at git-2015-10-07
(cherry picked from commit a76241c6cb)
2016-01-31 18:16:41 +01:00
Matthew O'Gorman
6d206ea3e4 geda: refdes_renum called /usr/bin/perl
(cherry picked from commit f076a0867f)
2016-01-31 18:16:41 +01:00
Peter Jones
3bfd411a6f geda: init at 1.8.2-20130925
(cherry picked from commit 1d4135eab9)
2016-01-31 18:16:41 +01:00
Bjørn Forsman
f6e55c29ca gnuradio: 3.7.8 -> 3.7.8.1
Tested with nox-review.

(cherry picked from commit 1909a6335e)
2016-01-31 18:09:30 +01:00
Matthew O'Gorman
afc221b5d7 gnuradio-nacl: init at 2015-11-05
(cherry picked from commit f761f06988)
2016-01-31 18:09:30 +01:00
Bjørn Forsman
0d2419a880 gnuradio: rename *-wrapper and *-full attributes to *-with-packages
Having both *-wrapper and *-full attribute names is rather confusing
(what's the difference?). And further, both packages are named
gnuradio-with-packages:

  $ nix-env -f. -qaP ".*gnuradio.*"
  gnuradio          gnuradio-3.7.7.1
  gnuradio-osmosdr  gnuradio-osmosdr-0.1.4
  gnuradio-full     gnuradio-with-packages-3.7.7.1
  gnuradio-wrapper  gnuradio-with-packages-3.7.7.1

Get rid of *-wrapper and rename *-full to *-with-packages, to align it
with the package name.

Now:

  $ nix-env -f. -qaP ".*gnuradio.*"
  gnuradio                gnuradio-3.7.7.1
  gnuradio-osmosdr        gnuradio-osmosdr-0.1.4
  gnuradio-with-packages  gnuradio-with-packages-3.7.7.1

And you can customize the *-with-packages variant like this:

  gnuradio-with-packages.override { extraPackages = [...]; }

(cherry picked from commit e9ad37e231)

FOR STABLE BRANCH: I added backward compatibility aliases.
2016-01-31 18:09:30 +01:00
Jaka Hudoklin
bdecd50588 gnuradio: 3.7.7.1 -> 3.7.8
(cherry picked from commit a4df29aee3)
2016-01-31 18:09:30 +01:00
Bart Brouns
47642db221 ladspa-sdk: change source url to mirror
ladspa.org has been down for a feew weeks, and I couldn't find info on a
cause or a solution.

Closes #12640.

Signed-off-by: Franz Pletz <fpletz@fnordicwalking.de>

(cherry picked from commit ee9d7f09ea)
2016-01-31 13:50:34 +01:00
Vladimír Čunát
ecf617bf6a Revert "chromium: Do not rely on import-from-derivation"
This reverts commit 2fd9d7bf92.
In this form it causes problems #12710.
2016-01-31 10:01:25 +01:00
Robert Helgesson
8773ffd94e eclipse-plugin-checkstyle: 6.11.1 -> 6.14.0
(cherry picked from commit 057e54f2ad)
2016-01-30 23:12:04 +01:00
Bjørn Forsman
b604d217d3 eclipse-scala-sdk: fix typo in package name
Change underscore to hyphen.

(cherry picked from commit ee0dc91157)
2016-01-30 23:01:18 +01:00
Bjørn Forsman
79eaf9fe44 eclipse-cpp: 4.5 -> 4.5.1
(cherry picked from commit b0b7fe2cce)
2016-01-30 23:01:18 +01:00
Bjørn Forsman
3b8a5c8877 eclipse-cpp: 4.4 -> 4.4.2
(cherry picked from commit 75d3b418a5)
2016-01-30 23:01:18 +01:00
Bjørn Forsman
86776a19a1 eclipse: remove old to-do comment about "mirror://eclipse/"
The comment is from 2011, before we started using officially mirrored
URLs[1] like

  http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=THE_FILE

I think using upstream mirrored URLs is better than mirror://eclipse:

  - upstream mirror list is always up to date
  - the closest / fastest mirror will be selected automatically

[1]: http://wiki.eclipse.org/IT_Infrastructure_Doc#Use_mirror_sites.2Fsee_which_mirrors_are_mirroring_my_files.3F

(cherry picked from commit bf2dfb9d99)
2016-01-30 23:01:18 +01:00
Bjørn Forsman
53e0a4e871 eclipse: align attrnames with pkgnames (underscore => hyphen)
Keep old attrnames too, for backward compatibility.

`nix-env -f . -qaP -A eclipses` only prints the new attributes (yay!).

(cherry picked from commit d5c9db8dd3)
2016-01-30 23:01:18 +01:00
Demin Dmitriy
0c787c0fc1 pinta: Add installation of manpages and .desktop, locale and icon files
(cherry picked from commit 0d12bbe574)
2016-01-30 22:52:47 +01:00
Demin Dmitriy
4d455825ca pinta: 1.4 -> 1.6
(cherry picked from commit 0ec62e0759)
2016-01-30 22:52:47 +01:00
Demin Dmitriy
3b77306288 dotnet Mono.Addins: init at 1.2
(cherry picked from commit f67184e9a9)
2016-01-30 22:52:47 +01:00
Demin Dmitriy
7af2a9b5a0 build-dotnet-package: add optional makeWrapperArgs argument
3 lines of code are shamelessly stolen from buildPythonPackage

(cherry picked from commit dc70fcd94b)
2016-01-30 22:46:51 +01:00
Franz Pletz
ac3cad2358 clawsMail: 3.13.1 -> 3.13.2 (security fix)
(cherry picked from commit ead58a86ba)
2016-01-30 21:18:08 +01:00
Bjørn Forsman
6951305e65 eclipse-plugin-gnuarmeclipse: 2.8.1-201504061754 -> 2.11.1-201512141335
Upstream switched from sourceforge to github.

(cherry picked from commit bdc9bfc3fa)
2016-01-30 12:38:23 +01:00
José Romildo Malaquias
508496f6bd eclipse-plugin-cup: init at 1.0.0.201412081321
(cherry picked from commit a654e783c6)
2016-01-30 12:38:19 +01:00
Eelco Dolstra
b943435cd7 debian: 8.2 -> 8.3
(cherry picked from commit 9855cbcbf8)
2016-01-30 11:09:20 +01:00
Eelco Dolstra
42c71bb1f0 slim: Sort sessions
This ensures that xfce and most others DMs are preferred over
xterm. Previously slim used directory order, which is undefined.

Of course, it's just lucky that xfce < xterm lexicographically, but
that also applies to the other display managers, AFAIK. We should have
a way to specify a DM order, but that can be accomodated by generating
desktop entries like "<NN>-session.desktop".

Fixes #4300. Parenthetical to #12516.

(cherry picked from commit eeb9231009)
2016-01-30 10:49:06 +01:00
Domen Kožar
eeaf0f8ca3 Merge pull request #12691 from falsifian/iso_fix_15.09
Cherry-pick fix for #10367 to release-15.09.
2016-01-30 09:43:08 +00:00
Domen Kožar
2987bb2473 Fix ISO building from a channel
Building config.system.build.isoImage would fail with the following
error using the channel:

  ln: failed to create symbolic link
'/nix/store/zz0hzi5imrg4927v6f8mv281qs6v6pbq-nixos-16.03pre69762.e916273/nixos/nixpkgs/.': File exists

The fix skips symlink as it already exists if the channel
nixpkgs copy is used.

Fixes #10367

(cherry picked from commit 75284b09e1 by
falsifian)
2016-01-29 19:45:43 -08:00
Vladimír Čunát
3f1b5623d2 lib/maintainers: add spinus to fix evaluation 2016-01-29 21:06:26 +01:00
aszlig
2fd9d7bf92 chromium: Do not rely on import-from-derivation
This has been introduced by me in 690a845 and discovered by @vcunat in
his comment over at:

690a845de9 (commitcomment-14209868)

It's really a bit ugly to have builds running during evaluation, but
back when I made that commit the reason was to avoid having to shell
quote the hell out of it (see the comment in mkPluginInfo for the
reason).

Now we propagate plugin flags and environment variables as a list of
arguments in a plain file that's appended verbatim to makeWrapper, so
it shouldn't do any builds anymore during instantiation.

I have tested this with both just WideVine and just Flash enabled as
well as both in combination and none of the plugins and the output seems
correct. However I didn't test to run Chromium with the new
implementation.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: Vladimír Čunát <vcunat@gmail.com>
(cherry picked from commit 38c77bb72c)
2016-01-29 20:16:05 +01:00
Robert Helgesson
a017286bfe colordiff: add archive URL
When a new version of colordiff is released the old tarball is moved to
the archive directory. This breaks builds until the derivation is
updated to the new version. This commit lets fetchurl know about the
archive URL.
2016-01-29 17:05:32 +01:00
Eelco Dolstra
b637eb857b openssl: 1.0.1q -> 1.0.1r
CVE-2015-3197 (low severity)

(cherry picked from commit 2ecb6b4574)
2016-01-28 20:38:08 +01:00
Vladimír Čunát
79d63be7a5 openssl_1_0_2: high-severity security update e -> f
Fixes CVE-2016-0701 and CVE-2015-3197.

(cherry picked from commit a92c2cb994)
2016-01-28 20:37:54 +01:00
Tomasz Czyż
d1b9587f73 quicksynergy: init at 0.9.0 (close #12325)
vcunat moved `version` into the derivation.

(cherry picked from commit 7362936cd6)
Adding a new package should break nothing.
2016-01-28 20:37:22 +01:00
Thomas Tuegel
aa63776451 qt55.qtbase: fix path typo in resolv patch
This is a bug fix from master.

(cherry picked from commit 9695e139ec)
2016-01-28 11:20:23 -06:00
Thomas Tuegel
2424d84f3c qt54.qtbase: fix path typo in resolv patch
This is a bug fix from master.

(cherry picked from commit 9e743fd151)
2016-01-28 11:18:42 -06:00
Rob Vermaas
c833f5e537 Fix fetchbower by quoting arguments. 2016-01-28 08:44:58 +00:00
Sander van der Burg
23ab2f1bc7 disnix: add a target for services activated and deactivated by dysnomia
(cherry picked from commit a744aa74aa)
2016-01-27 23:27:37 +00:00
Jakob Gillich
30eba9222c axis2: 1.6.3 -> 1.6.4
fixes CVE-2013-0248

(cherry picked from commit ff02a4e3c2)
2016-01-27 23:25:29 +00:00
Sander van der Burg
7d012b657b disnix: bump to version 0.5
(cherry picked from commit a6bda1a62a)
2016-01-27 23:19:01 +00:00
Robert Helgesson
61eae44e2a eclipse-plugin-scala: 4.1.1.20151201 -> 4.3.0.201512011535
(cherry picked from commit 49f55ebf97)
2016-01-27 19:40:21 +01:00
Robert Helgesson
3ff7be3f22 eclipse-plugin-cdt: 8.7.0 -> 8.8.0
(cherry picked from commit bf00cf7457)
2016-01-27 19:40:21 +01:00
Robert Helgesson
611d765450 eclipse-plugin-jdt: 4.5 -> 4.5.1
(cherry picked from commit 799296d9e7)
2016-01-27 19:40:21 +01:00
Robert Helgesson
1074cc9988 eclipse-platform: 4.5 -> 4.5.1
(cherry picked from commit 887bed2853)
2016-01-27 19:40:21 +01:00
Robert Helgesson
2ac1fe22ab eclipseWithPlugins: lazier evaluation
Unfortunately the `readFile`/`writeText` functions forces realisation of
the eclipse package at evaluation time. By creating the configuration
file inside the build command we avoid realisation until installation.

(cherry picked from commit 40890b2b95)
2016-01-27 19:40:21 +01:00
Damien Cassou
db616fe25a Avoid CamelCase in filenames and add buildEclipse
(cherry picked from commit 6115684b73)
2016-01-27 19:40:21 +01:00
Murad Ulityonok
236c475d7a homogenized style
(cherry picked from commit ace6ed9127)
2016-01-27 19:40:21 +01:00
Murad Ulityonok
80dc896b73 added Eclipse Mars SDK 4.5.1
(cherry picked from commit 2a8129924b)
2016-01-27 19:40:21 +01:00
Murad Ulityonok
89fc4b7562 modularized Eclipse package
(cherry picked from commit 5b4fa99f1d)
2016-01-27 19:40:21 +01:00
Robert Helgesson
519bd744d0 eclipse-plugin-testng: 6.9.10.201511281504 -> 6.9.10.201512020421
(cherry picked from commit 414a1660f4)
2016-01-27 19:40:21 +01:00
Robert Helgesson
683433d4b0 eclipse-plugin-scala: 4.1.1.20150911 -> 4.1.1.20151201
(cherry picked from commit 777d3e5927)
2016-01-27 19:40:21 +01:00
Robert Helgesson
19de54d810 eclipse-plugin-anyedit: 2.5.0 -> 2.6.0
(cherry picked from commit 1a70229641)
2016-01-27 19:40:21 +01:00
Robert Helgesson
444371b3d3 eclipse-plugin-testng: 6.9.8 -> 6.9.10
(cherry picked from commit 55ab2a1eeb)
2016-01-27 19:40:21 +01:00
Robert Helgesson
03e0576a6b eclipse-plugin-anyedittools: 2.4.15 -> 2.5.0
(cherry picked from commit d64835da6f)
2016-01-27 19:40:20 +01:00
Robert Helgesson
0272d2ad0b eclipse-plugin-checkstyle: 6.11.0 -> 6.11.1
(cherry picked from commit ab605f0a99)
2016-01-27 19:40:20 +01:00
Robert Helgesson
0b70ac1029 eclipse-plugin-testng: 6.9.7 -> 6.9.8
(cherry picked from commit 3a6439f8d5)
2016-01-27 19:40:20 +01:00
Robert Helgesson
0994868151 eclipse-plugin-checkstyle: 6.9.0 -> 6.11.0
(cherry picked from commit e2acc25cbc)
2016-01-27 19:40:20 +01:00
Robert Helgesson
17fbd2a65f eclipse-plugin-testng: 6.9.5 -> 6.9.7
(cherry picked from commit abd63d4147)
2016-01-27 19:40:20 +01:00
Rok Garbas
2f263300fa nginx: 1.8.0 -> 1.8.1, 1.9.3 -> 1.9.10 2016-01-26 21:46:13 +01:00
Rickard Nilsson
12dc3c2f05 nixos/bosun: Make the check frequency configurable
(cherry picked from commit fa3dad1f9c)
2016-01-26 05:25:21 +01:00
Vladimír Čunát
55b03266cf nixos-generate-config: fix #12595: broadcom quoting
(cherry picked from commit 3e1599f57b)
2016-01-25 07:58:18 +01:00
Aaron Schif
3253257467 homesick: init at 1.1.3 (close #12465)
(cherry picked from commit 9aac99ccb0)
Adding a package should break nothing.
2016-01-24 17:22:49 +01:00
Tony White
a736968545 ati-drivers: Restore opengl & direct rendering
Pull request #12508. Fixes ATI unfree drivers; I cannot test this myself, but
reportedly they don't work at all now (#11817), so this can't make things worse.

- Removed a collision in the nix store
- Removed dependency on qt
- Fixed opengl and direct rendering by correcting some link paths
- Some code refactored in builder.sh
- Comments added/modified

This pull request fixes #11740 and I recommend that it be considered
as a hotfix for the stable channel due to the fact that opengl
and direct rendering are broken there too.

(cherry picked from commit 722c616b8f)
2016-01-23 12:18:14 +03:00
Graham Christensen
74e97e9275 awscli: Install less to fix help docs
Without less, we get:

```
2016-01-22 10:31:59,098 - MainThread - awscli.help - DEBUG - Running command: ['groff', '-man', '-T', 'ascii']
2016-01-22 10:31:59,109 - MainThread - awscli.help - DEBUG - Running command: ['less', '-R']
2016-01-22 10:31:59,111 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
  File "/nix/store/jmgflkyf1yfz6an82pvhq084mp1j0bjn-awscli-1.7.41/lib/python2.7/site-packages/awscli/clidriver.py", line 183, in main
    return command_table[parsed_args.command](remaining, parsed_args)
  File "/nix/store/jmgflkyf1yfz6an82pvhq084mp1j0bjn-awscli-1.7.41/lib/python2.7/site-packages/awscli/help.py", line 245, in __call__
    self.renderer.render(self.doc.getvalue())
  File "/nix/store/jmgflkyf1yfz6an82pvhq084mp1j0bjn-awscli-1.7.41/lib/python2.7/site-packages/awscli/help.py", line 81, in render
    self._send_output_to_pager(converted_content)
  File "/nix/store/jmgflkyf1yfz6an82pvhq084mp1j0bjn-awscli-1.7.41/lib/python2.7/site-packages/awscli/help.py", line 86, in _send_output_to_pager
    p = self._popen(cmdline, stdin=PIPE)
  File "/nix/store/jmgflkyf1yfz6an82pvhq084mp1j0bjn-awscli-1.7.41/lib/python2.7/site-packages/awscli/help.py", line 90, in _popen
    return Popen(*args, **kwargs)
  File "/nix/store/6a1x9r9wywa27v9gvp0yqgq0mmkfa3ww-python-2.7.11/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/nix/store/6a1x9r9wywa27v9gvp0yqgq0mmkfa3ww-python-2.7.11/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
2016-01-22 10:31:59,112 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

[Errno 2] No such file or directory
```

Import less along with groff

Fixes #12549.

(cherry picked from commit 4a6602c3cd)
2016-01-22 18:33:51 +01:00
aszlig
b962204fc2 nixpart0: Fix race condition in formatting devices
This adds a backport of rhinstaller/blivet#39 to the pinned blivet
version 0.17, it's addressing the following upstream bug:

https://bugzilla.redhat.com/show_bug.cgi?id=1196397

It has been reported at aszlig/nixpart#7 and tested by @manveru (the
issue reporter), thanks a lot.

Thanks also to @domenkozar for finding the upstream issue.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: Michael Fellinger <m.fellinger@gmail.com>
Fixes: aszlig/nixpart#7
(cherry picked from commit 24ae34c0d7)
2016-01-22 13:32:07 +01:00
Peter Simons
678359493c ghc-8.0.1: drop unused docbooc-related build inputs
The documentation is now built via Sphinx (todo).

(cherry picked from commit 623664daaa)
2016-01-21 21:15:56 +01:00
Jude Taylor
fd11002786 package GHC-8.0.1-rc1
(cherry picked from commit 552207f5ef)
2016-01-21 21:15:56 +01:00
Jude Taylor
4ae8dd76fb haskell-packages.nix: add package set for GHC 7.10.3 2016-01-21 21:15:56 +01:00
Peter Simons
d05a9b7dca ghc-HEAD: update build instructions and bump version to current Git master
Closes https://github.com/NixOS/nixpkgs/issues/10752.

(cherry picked from commit 1f108490f1)
2016-01-21 21:15:56 +01:00
Peter Simons
1f7202aff9 ghc-7.10.3: remove the obsolete build.mk file
New versions of GHC allow us to specify those things on the
command-line, so the build.mk file is no longer necessary.

(cherry picked from commit 878692e645)
2016-01-21 21:15:56 +01:00
Peter Simons
19756d34e5 ghc-7.10.3: don't pass compiler or linker flags through a response file
The new GHC version contains a patch [1] that passes linker and compiler flags
to GCC via response files rather than directly on the command-line. This is
supposed to be beneficial on Windows and other platforms that have trouble
dealing with long argument lists. On NixOS, however, this feature breaks the
flag handling provided by gcc-wrapper [2] and therefore causes the entire GHC
build to fail.

This issue has been reported upstream at [3]. It's not clear yet how to remedy
this problem, but until we've figured that out we just don't pass compiler flags
in response files on NixOS to fix https://github.com/NixOS/nixpkgs/issues/10752.

[1] 296bc70b5f
[2] https://github.com/NixOS/nixpkgs/issues/11762
[3] https://ghc.haskell.org/trac/ghc/ticket/11147

(cherry picked from commit a421e7bd4a)
2016-01-21 21:15:56 +01:00
Peter Simons
d55e6e481f ghc: update version 7.10.3 to 7.10.3a
Apply upstream patches that fix minor cosmetic issues in the documentation.

(cherry picked from commit eae27e7798)
2016-01-21 21:15:56 +01:00
Peter Simons
7928f03978 ghc: add version 7.10.3
(cherry picked from commit 4cca974eb6)
2016-01-21 21:15:56 +01:00
Vladimír Čunát
85f5c12468 kde5: fix plasma source URLs to download again
Fixes #12514. /cc maintainer @ttuegel.
2016-01-21 16:32:17 +01:00
Vladimír Čunát
68768baf5d glib-networking: fix certificate problems
... by upstream patch. Discussed on
https://github.com/NixOS/nixpkgs/issues/12518#issuecomment-173531178
https://bugzilla.redhat.com/show_bug.cgi?id=1284655
2016-01-21 12:04:44 +01:00
Vladimír Čunát
7406bb37c7 gnome3.epiphany: fix https when not running gnome-3
This (only) fixes the probem of not finding glib_networking,
not any certificate problems. Discussion: #12518.

(cherry picked from commit 97f4fa5196)
2016-01-21 11:43:52 +01:00
Vladimír Čunát
3030145ea1 linux-4.2: remove as it's no longer maintained upstream
grsecurity still holds a reference to it,
but I prefer it to fail than to use a version
that is most likely not secure anymore.

(cherry picked from commit 4824f73cb3)
2016-01-20 20:19:14 +01:00
Nathan Zadoks
5a4e18397b linux: patch CVE-2016-0728 (close #12492)
The PoC provided successfully escalates privileges from a local user to
root. The vulnerability affects any Linux Kernel version 3.8 and higher.
http://perception-point.io/2016/01/14/analysis-and-exploitation-of-a-linux-kernel-vulnerability-cve-2016-0728/

(cherry picked from commit 23f5e3c90f)
2016-01-20 09:37:56 +01:00
Bryan Gardiner
5f514c1188 claws-mail: add glib_networking for fancy to load HTTPS content, fixes #10421 2016-01-20 02:31:56 +01:00
Eelco Dolstra
a58217a4a9 make-tarball.nix: Allow passing in a different Nix
Used by the Nix tests (9fff492561).

(cherry picked from commit ac0c49970b)
2016-01-19 21:30:01 +01:00
Vladimír Čunát
0d95c80b22 zeroad: do not build on Hydra
It should be possible to build binaries without data and then compose by
a wrapper, e.g. similarly to what simutrans does.

(cherry picked from commit c860e27ef2)
2016-01-19 12:17:08 +01:00
Rob Vermaas
80a2cb9155 nixops: 1.3 -> 1.3.1 2016-01-18 13:54:37 +00:00
Vladimír Čunát
61a2952192 ffmpeg(-2.7 and 2.6): security update to fix #12437
They are claimed to fix CVE-2016-{1897,1898}.
The corresponding staging commit 85628148de updated different versions.
2016-01-17 10:20:51 +01:00
Tim Steinbach
b4c64b9f37 kernel: 4.3.2 -> 4.3.3
(cherry picked from commit f318049964)
2016-01-15 20:11:27 +01:00
William A. Kennington III
b26d95b0cd kernel: 4.2.5 -> 4.2.6
(cherry picked from commit 3950ab9eb9)
2016-01-15 20:10:58 +01:00
William A. Kennington III
08089ecdc5 kernel: 3.12.47 -> 3.12.50
(cherry picked from commit d33c63c19d)
2016-01-15 20:09:33 +01:00
William A. Kennington III
2959a98b90 kernel: 3.10.88 -> 3.10.92
(cherry picked from commit 4eaa66c9d2)
2016-01-15 20:08:30 +01:00
Simon Jagoe
e31752f435 kernel: 4.1.12 -> 4.1.15 (close #12408)
(cherry picked from commit 42d4175e4e)
2016-01-15 20:03:01 +01:00
Domen Kožar
d1af4dcb36 Chromium updates
(cherry picked from commit 6da327b433)
2016-01-15 20:01:45 +01:00
Ambroz Bizjak
45ef168a8e chromium: Updates.
- dev: 48.0.2564.22 -> 49.0.2587.3
- beta: 48.0.2564.23 -> 48.0.2564.41
- stable: 47.0.2526.73 -> 47.0.2526.80

(cherry picked from commit 03cf5e6627)
2016-01-15 20:01:44 +01:00
Ambroz Bizjak
e905ad1305 chromium: Updates, fixes #11492
Built and run Beta and Stable locally. Dev is surrently superseded by Stable so
it doesn't matter much.

- Dev: 47.0.2508.0 -> 48.0.2564.22
- Beta: 46.0.2490.64 -> 48.0.2564.23
- Stable: 45.0.2454.101 -> 47.0.2526.73

Changed the SSL dependencies to the supported configuration on Linux (according
to Torne @Freenode/#chromium-support).

- NSS is a dependency since it is used to access the ceritiface store.
- Dropped system OpenSSL support, the bundled BoringSSL is used.

This probably fixes issue #10555. Note that without this adjustment the build
fails even.

Dropped uneeded old patches.

(cherry picked from commit b9093f1c64)
Some previous updates were skipped, which resulted into trivial conflicts.
2016-01-15 20:01:44 +01:00
Eelco Dolstra
3d138869a9 separateDebugInfo: Create symlinks matching original binaries
For instance, a binary like libfoo.so will cause a symlink
lib/debug/libfoo.so.debug -> .build-id/<build-ID>.debug to be
created. This is primarily useful for use with eu-addr2line, if you
know the name of a binary and the relative address, but not the build
ID.

(cherry picked from commit 2fcee55e5f)
2016-01-15 16:17:29 +01:00
Vladimír Čunát
aad16cf876 gst_all: add dashed-named aliases
(cherry picked from commit 521ed1802f)
This should break nothing.
2016-01-15 09:08:35 +01:00
Nathan Zadoks
b3bba00885 go: 1.5.1 -> 1.5.3 (close #12384)
This addresses CVE-2015-8618 (a vulnerability in math/big)
This issue can affect RSA computations in crypto/rsa, which is used by
crypto/tls. TLS servers on 32-bit systems could plausibly leak their RSA
private key due to this issue. Other protocol implementations that
create many RSA signatures could also be impacted in the same way.
https://groups.google.com/forum/#!topic/golang-dev/MEATuOi_ei4

Backported to 15.09 from 174221b744
2016-01-14 16:51:28 +01:00
Franz Pletz
a1742be79e openssh: Disable roaming (security fix)
Fixes CVE-2016-0777 and CVE-0216-0778.

Closes #12385.

(cherry picked from commit 2d65772950)
2016-01-14 16:44:42 +01:00
Nikolay Amiantov
9e86366693 xserver service: wait for systemd-logind
This seems the right thing to do, and most likely has fixed the race condition
described at https://github.com/NixOS/nixpkgs/issues/12132#issuecomment-171284532

(cherry picked from commit b292e19fbd)
2016-01-14 14:34:18 +03:00
Nikolay Amiantov
ca431d1db9 teamviewer: 10.0.37742 -> 11.0.53191
(rebased version of commits c3d503d33d and a81b396a2e)

Extra care is taken to save old versions to minimize changes. Closes #12362
2016-01-14 14:08:29 +03:00
Rob Vermaas
dc451e1402 Actually use openjdk8 binary build for x86_64-darwin.
(cherry picked from commit 73359a3cbe)
2016-01-14 10:31:34 +00:00
Rob Vermaas
9cb7bcca9f Add binary openjdk 8 build for x86_64-darwin, similar to the openjdk 7 build for x86_64-darwin.
(cherry picked from commit 5f3e33b8ec)
2016-01-14 10:28:50 +00:00
Louis Taylor
1f3d32e993 source-code-pro: use fetchFromGitHub to fix hash
Fixes #12372, Close #12376.

(cherry picked from commit f917a7f908)
2016-01-14 09:18:18 +01:00
Eric Sagnes
28b60a660e newsbeuter: patch memory leak (close #12374)
vcunat fixed the patch hash.

(cherry picked from commit 0eeda4e36f)
2016-01-14 08:49:22 +01:00
Bjørn Forsman
53286a8886 gnome-terminal: enable GNOME Shell search provider
Silly ./configure, it looks for dbus file from gnome-shell in the
installation tree of the package it is configuring. Fix by copying the
needed file from gnome-shell before ./configure is run.

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

(cherry picked from commit 3d81213509)
2016-01-12 08:10:05 +01:00
Lancelot SIX
bc4bba68ac pkgs.gdb: 7.10 -> 7.10.1
See https://lists.gnu.org/archive/html/info-gnu/2015-12/msg00003.html

(cherry picked from commit 5aa99f680e)
2016-01-11 17:10:18 +01:00
Eelco Dolstra
90f79de9ef linux: Make Unix domain sockets builtin
This hopefully fixes intermittent initrd failures where udevd cannot
create a Unix domain socket:

  machine# running udev...
  machine# error getting socket: Address family not supported by protocol
  machine# error initializing udev control socket
  machine# error getting socket: Address family not supported by protocol

The "unix" kernel module is supposed to be loaded automatically, and
clearly that works most of the time, but maybe there is a race
somewhere. In any case, no sane person would run a kernel without Unix
domain sockets, so we may as well make it builtin.

http://hydra.nixos.org/build/30001448
(cherry picked from commit e4b4e9b986)
2016-01-11 17:10:18 +01:00
Vladimír Čunát
28e333d60f Merge: burp: init at 1.3.48 and 1.4.40
It's ported from master. /cc #10812.
2016-01-09 13:41:24 +01:00
Vladimír Čunát
a49e2c8fd4 maintainers: add tokudan from master to support burp 2016-01-09 13:37:42 +01:00
Daniel Frank
9f71b21aba burp: updates to match the coding conventions
(cherry picked from commit 0d18edd645)
2016-01-09 13:32:56 +01:00
Daniel Frank
3692bfd7f8 burp: remove unnecessary CHANGELOG entry in burp
(cherry picked from commit 97e6595752)
2016-01-09 13:32:54 +01:00
Daniel Frank
769d3b46cf burp: new package (backup program)
(cherry picked from commit b2a958157d)
2016-01-09 13:32:45 +01:00
Svein Ove Aas
788f56ae15 zfs:Add zfs.devNodes option for zpool import -d
(cherry picked from commit 9a82dd87f7)

Reason: Importing devices from /dev/disk/by-id can prevent certain bugs
that lead to ZFS pool corruption, as mentioned in #11668.

That said, although this adds the option to import from /dev/disk/by-id,
I'm not yet changing the default import path in the stable channel
because possibly some block devices may not show up in /dev/disk/by-id,
causing a perfectly-working system to become unbootable. It's probably
safer to battle test the new default path in the unstable channel
instead, and let it become part of the stable channel as part of the
next NixOS release.
2016-01-07 13:52:54 +01:00
Rok Garbas
e0246b7614 python27: 2.7.10 -> 2.7.11
(cherry picked from commit 124e70a459)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-01-07 11:21:05 +01:00
Domen Kožar
f0898a4664 python: 3.4.3 -> 3.4.4
(cherry picked from commit 78096e9b89)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-01-07 11:20:05 +01:00
Jakob Gillich
21bfd2f952 plib: fix CVE-2012-4552 (close #12195)
patch source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694810#10

(cherry picked from commit 90b853b706)
2016-01-07 10:27:53 +01:00
Jakob Gillich
6f3b3fe71f libxml2: security update 2.9.2 -> 2.9.3 (close #12197)
(cherry picked from commit aee934b3aa)
It solves a dozen DOS vulnerabilities.
2016-01-07 10:22:43 +01:00
Jakob Gillich
ea4a7f50ac mcrypt: fix several security issues (close #12194)
CVE-2012-4409, CVE-2012-4426, CVE-2012-4527

Patches taken from https://gitweb.gentoo.org/repo/gentoo.git/tree/app-crypt/mcrypt/files

(cherry picked from commit 4f4eebbded)
2016-01-07 10:11:01 +01:00
Mathijs Kwik
aa2d714375 geolite-legacy 2015-11-23 -> 2016-01-06
(cherry picked from commit c90be3dd3a)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
0ad8f7e066 geolite-legacy 2015-11-17 -> 2015-11-23
(cherry picked from commit 71e3811cde)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
39d6c494af geolite-legacy 2015-11-04 -> 2015-11-17
(cherry picked from commit 8d33c88c4f)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
c8e53ef038 geolite-legacy 2015-11-02 -> 2015-11-04
(cherry picked from commit 8fb1ee3c2a)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
17163dd188 geolite-legacy 2015-10-27 -> 2015-11-02
(cherry picked from commit 4435e317e9)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
bb0cddba6e geolite-legacy 2015-10-19 -> 2015-10-27
(cherry picked from commit d5ea5f0a5d)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
585e625720 geolite-legacy 2015-10-13 -> 2015-10-19
(cherry picked from commit a6626bef1a)
2016-01-06 12:05:03 +01:00
Tobias Geerinckx-Rice
20debce15f geolite-legacy 2015-10-09 -> 2015-10-13
(cherry picked from commit 7d8602e78e)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
db3c7d574a geolite-legacy 2015-10-08 -> 2015-10-09
Jeez.

(cherry picked from commit 2cd4e12f6c)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
3e49bfa092 geolite-legacy 2015-10-06 -> 2015-10-08
(cherry picked from commit 9108533d4e)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
1e3b93d988 geolite-legacy 2015-10-05 -> 2015-10-06 (bis)
Previous patch was incomplete.

(cherry picked from commit 883cca5f36)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
59e7a268d1 geolite-legacy 2015-10-05 -> 2015-10-06
(cherry picked from commit 056c3b8bc6)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
bcce304f3d geolite-legacy: update 2015-09-29 -> 2015-10-05
(cherry picked from commit 1f3bb8ba8c)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
8faf97bf7e geolite-legacy: update 2015-09-22 -> 2015-09-29
(cherry picked from commit 9515611009)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
6f9141cbd3 geolite-legacy: update 2015-09-14 -> 2015-09-22
(cherry picked from commit ceb94adffe)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
b82cc8d532 geolite-legacy: update 2015-09-08 -> 2015-09-14
(cherry picked from commit 6dc2a827c0)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
d48f7b09dd geolite-legacy: update 2015-09-03 -> 2015-09-08
(cherry picked from commit b313fb0997)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
7f612b1f79 geolite-legacy: update 2015-08-31 -> 2015-09-03
(cherry picked from commit a9b1c91285)
2016-01-06 12:05:02 +01:00
Tobias Geerinckx-Rice
500fee5f53 geolite-legacy: update 2015-08-24 -> 2015-08-31
(cherry picked from commit 2245e09218)
2016-01-06 12:05:01 +01:00
Peter Simons
4022a6d101 youtube-dl: take advantage of the improved getVersion function
(cherry picked from commit af8c1f3368)
2016-01-05 20:15:41 +01:00
Peter Simons
8017d3d617 youtube-dl: remove meta.version
(cherry picked from commit 41a91a5495)
2016-01-05 20:15:34 +01:00
Peter Simons
5c6d82a055 lib.getVersion: extend the function to cope with strings as well as derivations 2016-01-05 20:13:21 +01:00
Eelco Dolstra
6d7a6b8018 install-grub: Make more robust against GC'ed system profile entries
Previously this barfed with:

  updating GRUB 2 menu...
  fileparse(): need a valid pathname at /nix/store/zldbbngl0f8g5iv4rslygxwp0dbg1624-install-grub.pl line 391.
  warning: error(s) occured while switching to the new configuration

(cherry picked from commit 1ba2015450)
2016-01-05 16:56:51 +01:00
Eelco Dolstra
97918d89d7 firefox-esr: 38.5.0 -> 38.5.2
(cherry picked from commit bab578f961)
2016-01-05 16:56:28 +01:00
Eelco Dolstra
f2c95d2bc2 firefox: 43.0 -> 43.0.3
(cherry picked from commit 9bce31e9b6)
2016-01-05 16:56:27 +01:00
Eelco Dolstra
385dcc90d2 kdmrc: Build locally
(cherry picked from commit 22848d55e2)
2016-01-05 16:56:27 +01:00
Tobias Geerinckx-Rice
7c06bf69d7 liferea, graphite service: fix typo (agregator -> aggregator)
(cherry picked from commit a133ef9a0c)
2016-01-05 09:34:00 +01:00
Vladimír Čunát
100c4a328d liferea: maintenance update 1.10.16 -> 1.10.17
Also refactor meta.

(cherry picked from commit fff938f72a)
2016-01-05 09:33:41 +01:00
Eelco Dolstra
014260a9d6 NixOS tests: Increase hung_task_timeout_secs
This hopefully fixes intermittent test failures like

  http://hydra.nixos.org/build/29962437

  router# [  240.128835] INFO: task mke2fs:99 blocked for more than 120 seconds.
  router# [  240.130135]       Not tainted 3.18.25 #1-NixOS
  router# [  240.131110] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

assuming that these are caused by high load on the host.

(cherry picked from commit 6d02d7e740)
2016-01-04 17:08:59 +01:00
Bjørn Forsman
0f7519a082 system-config-printer: set meta.platforms
(cherry picked from commit d1cb42f297)
2016-01-04 14:38:20 +01:00
Vladimír Čunát
5b1a0a9584 kernel: do not load configs module (close #10912)
... because we make it built-in by default.
I can't imagine anyone who wanted to purge this module from his/her system,
so let's keep it simple, at least for now.

(cherry picked from commit 0e1fe66aad)
This change should "only" get rid of an annoying error in logs.
2016-01-04 14:04:20 +01:00
Rok Garbas
9a4806e9d9 libreoffice: adding polish language 2016-01-04 12:08:56 +01:00
Domen Kožar
4e12825cd4 networkmanager: set uid/gid for the networkmanager openvpn agent
Backports c515be4651

The same uid/gid is taken for future compatibility.
2016-01-04 11:41:53 +01:00
Bart Brouns
69fb1b1930 jackaudio: compile without profiling
(cherry picked from commit 79b1e05b42)
It doesn't make sense except for jackaudio devs.
2016-01-04 09:24:21 +01:00
Mateusz Kowalczyk
adc6e9b5c1 youtube-dl: 2015.11.24 -> 2016.01.01
(cherry picked from commit 1e630749d8)
2016-01-03 22:12:51 +01:00
Bjørn Forsman
2732772ae1 colord: fix use of /var
Currently the package is built with /var in $out/var. That fails when it
tries to create/write things at runtime (nix store is read-only).
Instead, tell it to use /var (global directory) and fixup the
installation phase so it doesn't touch /var (leave that for runtime).

This unbreaks the colord dbus service, which apparently is needed by
cups to create color profiles for printers.

(cherry picked from commit 9cdf17e822)
2016-01-03 21:26:57 +01:00
Tobias Geerinckx-Rice
c2b35f9dd3 nixos: samba module: fix typo & clarify
(cherry picked from commit b6c24c12b4)
2016-01-03 20:30:39 +01:00
Bjørn Forsman
71897db586 system-config-printer: align attrname with pkgname
s/system_config_printer/system-config-printer/

(cherry picked from commit ee807863ee)
2016-01-03 15:21:41 +01:00
Philipp Hausmann
1f3ae904d3 maintainers: Make attrname match my github account
(cherry picked from commit b574af31f4)
2016-01-03 10:30:28 +01:00
Bjørn Forsman
e08ed22749 cups-bjnp: align attrname with pkgname (s/cupsBjnp/cups-bjnp/)
(cherry picked from commit 0ec3f4d339)
2016-01-03 00:15:27 +01:00
Bjørn Forsman
2efc99a7f7 cups-bjnp: add meta.description
(cherry picked from commit a1ddb32a45)
2016-01-03 00:13:42 +01:00
Bjørn Forsman
4d99a87240 system-config-printer: remove bad /usr/bin reference in dbus service file
(cherry picked from commit 1979034956)
2016-01-03 00:13:34 +01:00
Bjørn Forsman
6e3df3cd5d cups-pk-helper: init at 0.2.5
Adding this package to environment.systemPackages stops the
"Add new printer" button in gnome-control-center from being grayed out
and stops it from printing:

  (gnome-control-center:16664): printers-cc-panel-WARNING **: Your system does not have the cups-pk-helper's policy "org.opensuse.cupspkhelper.mechanism.all-edit" installed. Please check your installation

But completing the printer setup requires some additional packaging
work. This is what happens when trying to _add_ a printer:

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

(cherry picked from commit 92a0140ff8)
2016-01-03 00:12:46 +01:00
Anders Lundstedt
9fbda0d4bf youtube-dl: 2015.11.19 -> 2015.11.24
(cherry picked from commit 49a4a141f9)
2016-01-02 14:15:06 +01:00
Anders Lundstedt
d5891f45aa youtube-dl: 2015.11.13 -> 2015.11.19
(cherry picked from commit af56acc23b)
2016-01-02 14:14:52 +01:00
Jan Malakhovski
2072391d5d youtube-dl: 2015.11.10 -> 2015.11.13
(cherry picked from commit 21c8d1024b)
2016-01-02 14:14:40 +01:00
Anders Lundstedt
182992efa1 youtube-dl: 2015.10.24 -> 2015.11.10
(cherry picked from commit a3448fad5f)
2016-01-02 14:14:29 +01:00
AndersonTorres
f71875aff5 youtube-DL: 2015.08.28 -> 2015.10.24
(cherry picked from commit 68a198f74b)
2016-01-02 14:14:14 +01:00
Ricardo M. Correia
1678cbba99 youtube-dl: 2015.08.28 -> 2015.10.06.2
(cherry picked from commit f86080cdb3)
2016-01-02 14:14:03 +01:00
Mateusz Kowalczyk
3eddcb7c13 youtube-dl: update to 2015.08.28
(cherry picked from commit adbb5d7ca6)
2016-01-02 14:09:18 +01:00
Emery Hemingway
a09c1f5be8 Rename 'emery' maintainer handle to 'ehmry', fixes #11493
Communication happens on Github so names should be consistent.

(cherry picked from commit 2b6dcdfcd0)
Best be consistent with active release branches as well.
2016-01-02 12:35:25 +01:00
Vladimír Čunát
020521ab79 unrar: fix #12084: wrong license
(cherry picked from commit 8781743edb)
2016-01-02 12:32:48 +01:00
Michael Alan Dorman
b04d511643 flashplayer: 11.2.202.554 -> 11.2.202.559 (#12066)
(cherry picked from commit c140bd697b)
It might contain security fixes.
2016-01-01 23:05:22 +01:00
Eelco Dolstra
75974d9220 Force another rebuild
Unfortunately, yesterday Nix got reverted to a version with broken
passAsFile implementation on some Hydra machines, so we have corrupted
files again. (E.g. http://hydra.nixos.org/build/29777678.) Forcing
another gratuitous rebuild to get rid of them.
2015-12-31 22:16:52 +01:00
Eelco Dolstra
27215b2c15 glibc: Fix assertion failure when using incompatible locale data
Borrowed from

  http://git.savannah.gnu.org/cgit/guix.git/plain/gnu/packages/patches/glibc-locale-incompatibility.patch

https://github.com/NixOS/nix/issues/599

We may also want to apply

  http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/glibc-versioned-locpath.patch

but we'll need to ditch locale-archive first. (Apparently
locale-archive is not very useful anymore anyway.)

(cherry picked from commit 6a766f47c2)

Yes, this is a mass rebuild, but we can't leave all our binaries
segfaulting on recent (Glibc 2.22) Linux distributions. Also a good
way to get rid of the Hydra corruption caused by the passAsFile bug.
2015-12-30 15:18:29 +01:00
Vladimír Čunát
2290ab087f rsync: security update 3.1.1 -> 3.1.2
This should fix CVE-2014-9512.
https://download.samba.org/pub/rsync/src/rsync-3.1.2-NEWS

(cherry picked from commit 468f698f60)
The release bump also contains some features,
but I'm lazy to separate the security parts myself.
2015-12-30 12:07:43 +01:00
Vladimír Čunát
617d0bce65 libpng-1.2: security update 1.2.54 -> 1.2.55
It should finally fix #11030 and CVE-2015-8126 for 1.2.

(cherry picked from commit 8627b26874)
2015-12-30 11:41:33 +01:00
Reno Reckling
ec205c2c91 ding: init at 1.8 (close #11989)
vcunat improved meta.

(cherry picked from commit a1e0894cb4)
Adding a new package should break nothing.
2015-12-29 21:05:52 +01:00
Eelco Dolstra
7f19e6508e nixUnstable: 1.11pre4334_7431932 -> 1.11pre4345_b8258a4
(cherry picked from commit 63bf2a551e)
2015-12-29 17:56:18 +01:00
tv
248619a805 exim: 4.85 -> 4.86
(cherry picked from commit 84295986e7)
2015-12-29 17:28:16 +01:00
Eelco Dolstra
b739c56065 Add some preferLocalBuild
(cherry picked from commit 7906169ce1)
2015-12-29 17:22:22 +01:00
Eelco Dolstra
f4d49f6c83 linux: 3.18.24 -> 3.18.25
(cherry picked from commit f6df6d8d46)
2015-12-29 17:22:18 +01:00
Eelco Dolstra
fac7ff90dd Force rebuild of some corrupted files
(cherry picked from commit 74aac17878)
2015-12-29 16:40:27 +01:00
Yann Hodique
f56c4604e4 mesa: add download url (close #11942)
vcunat refactored a bit (too long line, etc.) and reordered the URLs.

(cherry picked from commit bc6e050f21)
This will be useful mainly here on older branches.
2015-12-29 14:24:39 +01:00
Bjørn Forsman
226b2f1f96 conky: add meta.platforms
(cherry picked from commit 4f3d769d6f)
2015-12-29 13:32:15 +01:00
Vladimír Čunát
1c74f149c7 archiveopteryx: improve install paths, parallel build
(cherry picked from commit 39c43bc6e2)
2015-12-27 08:22:06 +01:00
Hoang Xuan Phu
f905e48b16 archiveopteryx: init at 3.2.0
(cherry picked from commit b8bc82a459)
Adding new packages should break nothing.
2015-12-27 08:21:41 +01:00
Tuomas Tynkkynen
0d544537ca installation-cd: Add separate boot entry that has 'nomodeset'
We seem to be in an unfortunate situation: booting without 'nomodeset'
causes hangs when booting on some NVIDIA cards (6948c3ab80), but on the
other hand adding 'nomodeset' prevents X from starting on other hardware
(e.g. issue #10381 and my Thinkpad X250 with an integrated Broadwell GPU).

Attempt to remedy this situation a bit by adding a separate entry in the
ISOLINUX menu (with the non-'nomodeset' being the default).

(cherry picked from commit 269f261c73)
2015-12-26 07:37:09 -05:00
Nathan Zadoks
47e3abd51e despotify: fix missing hash (close #11913)
(cherry picked from commit 77affc495f)
The source wouldn't download before this commit if chrooted.
2015-12-23 23:09:40 +01:00
Franz Pletz
c767e07ad8 clawsMail: 3.13.0 -> 3.13.1 (CVE-2015-8614)
Fixes a remotely triggerable buffer overflow.
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3557
Close #11910.

(cherry picked from commit cbada77b0b)
2015-12-23 18:53:00 +01:00
Thomas Tuegel
ddad6a369b Merge pull request #11903 from ttuegel/dropbox-stable
dropbox: 3.12.5 -> 3.12.6
2015-12-23 08:56:42 -06:00
Thomas Tuegel
2357330d4c dropbox: 3.12.5 -> 3.12.6
Update required because outdated versions stop working.

(cherry picked from commit 077a3102cc)
2015-12-23 08:37:53 -06:00
Vladimír Čunát
a16c0e3ff8 buildRubyGem: use a saner default version to fix #11805
Previously the gems defaulted to "ruby" as the name and
"${ruby-version}-${gem-name}-${gem-version}" as the version,
which was just insane.

https://github.com/NixOS/nixpkgs/issues/9771#issuecomment-141041414
Noone is reacting so it's high time to take at least some action.
/cc @cstrahan.

(cherry picked from commit fdf3aa9923)
The renaming seems rather unlikely to break anything,
and it seems very useful (to some people at least).
2015-12-23 09:11:17 +01:00
Svein Ove Aas
65e5ba5a4b znc: 1.6.1 -> 1.6.2, fixes #11862
The 1.6.1 version no longer exists on the upstream site.

(It would be good not to have external dependencies in nixpkgs.)
2015-12-23 02:20:48 +01:00
Vladimír Čunát
15cc8e3985 texlive: add xdvi binary part (fixes #11816)
It seems to work fine for me now, after adding dependency on metafont.

(cherry picked from commit e16d3d0d8a)
Adding it should break nothing.
2015-12-22 16:58:16 +01:00
Matthias C. M. Troffaes
ec4bf82be5 cbatticon: use fetchzip to fix sha256 issues
(cherry picked from commit 9b2d64f310)
/cc #11519.
2015-12-22 10:19:33 +01:00
Carles Pagès
bced18ab92 yafc: update to 1.3.6
(cherry picked from commit 1145130e9b)
2015-12-22 09:11:19 +01:00
Vladimír Čunát
8d6a8ad405 beret: mark as broken; it doesn't download
/cc maintainer @lovek323.

(cherry picked from commit 3ddd19959c)
2015-12-21 12:10:41 +01:00
Robert Helgesson
1d8ea0b999 keepassx: 0.4.3 -> 0.4.4
Fixes CVE-2015-8359 and CVE-2015-8378. Also switch URL to new download
location.
2015-12-21 08:06:37 +01:00
Domen Kožar
1451f004c7 add Django 1.9 2015-12-20 22:54:11 +01:00
Thomas Tuegel
0df1e6e2fd Merge pull request #11836 from bendlas/update-dropbox-stable
dropbox: 3.12.4 -> 3.12.5; libGL fix (stable)
2015-12-19 12:22:52 -06:00
Herwig Hochleitner
bd8db38924 dropbox: add libGL fallback to LD_LIBRARY_PATH
This fixes pyqt for cases where libGL is not on LD_LIBRARY_PATH, e.g. with
plain nixpkgs. fixes #11728
2015-12-19 17:55:13 +01:00
Herwig Hochleitner
e5d5e01740 dropbox: 3.12.4 -> 3.12.5 2015-12-19 17:48:50 +01:00
Karn Kallio
97bf081fa6 signond : update the URL, which has changed
Patch contributed by Karn Kallio <tierpluspluslists@skami.org>.
Committed by falsifian <jcook@cs.berkeley.edu>.

(cherry picked from commit 75ffec77ee)
2015-12-19 10:27:40 +01:00
Matthias C. M. Troffaes
360168d3d1 namecoin: fix sha256 using fetchzip
(cherry picked from commit 0a9b784acc)
Originally from #11520.
2015-12-19 10:22:48 +01:00
Tobias Geerinckx-Rice
a1c74deffd liboauth: add nss3 path to liboauth.la
Fixes the following libgdata build error:
```
  CCLD     gdata/libgdata.la
/nix/store/5kdjp8200hazaydx0dmwn5qghqkyi3py-binutils-2.23.1/bin/ld: cannot find -lssl3
/nix/store/5kdjp8200hazaydx0dmwn5qghqkyi3py-binutils-2.23.1/bin/ld: cannot find -lsmime3
/nix/store/5kdjp8200hazaydx0dmwn5qghqkyi3py-binutils-2.23.1/bin/ld: cannot find -lnss3
/nix/store/5kdjp8200hazaydx0dmwn5qghqkyi3py-binutils-2.23.1/bin/ld: cannot find -lnssutil3
collect2: error: ld returned 1 exit status
```

(cherry picked from commit 996a0a9abf)
It stopped building even here on 15.09, perhaps after `nss` update.
2015-12-19 08:25:00 +01:00
Eelco Dolstra
80917d2473 Merge pull request #11808 from AveryGlitch/fix/auto-upgrade
autoUpgrade: added a 'dates' option, to allow you to switch when the …
2015-12-18 11:25:48 +01:00
Avery Glitch
aba90f5186 autoUpgrade: added a 'dates' option, to allow you to switch when the upgrade happens 2015-12-18 19:13:06 +11:00
Eric Sagnes
f77e3886c1 eventstore: fix source hash (close #11732)
(cherry picked from commit eab677ea21)
2015-12-18 09:12:40 +01:00
Vladimír Čunát
16c191a449 indilib: fix src URL; /cc #11782 2015-12-18 07:38:51 +01:00
Vincent Laporte
dc22ebe2b6 ocaml: add local copy of the ocamlbuild patch
(cherry picked from commit a3fa690fa2)
The URL was changing its contents; /cc #11782.
2015-12-18 07:23:12 +01:00
Eelco Dolstra
1303d4eee2 firefox: 42.0 -> 43.0
(cherry picked from commit 7651680615)
2015-12-17 19:39:36 +01:00
Eelco Dolstra
8dd481e5b2 nss: 3.20.1 -> 3.21
(cherry picked from commit 86bf3662df)
2015-12-17 19:39:26 +01:00
Eelco Dolstra
b76ff3cf15 nspr: 4.10.10 -> 4.11
(cherry picked from commit f8c6ced636)
2015-12-17 19:39:22 +01:00
Eelco Dolstra
7ab754920b firefox-esr: 38.4.0 -> 38.5.0
(cherry picked from commit d8d04c8cf3)
2015-12-17 19:39:17 +01:00
Peter Simons
cdf210d35c cabal2nix: update to version 20151217
(cherry picked from commit b376bda2a7e6698f0f8ae25e02f28aa5e3e2459e)
2015-12-17 14:42:36 +01:00
Nikolay Amiantov
db7e764d37 flashplayer: fix 32-bit version
(cherry picked from commit 8c1770769f)
2015-12-17 14:15:58 +01:00
Nikolay Amiantov
fc587614d4 flashplayer: cleanup, use archive as a source
Most work done by ericsagnes

(cherry picked from commit 26e738206c)
It will simplify picking security updates from master.
2015-12-17 09:44:06 +01:00
Echo Nolan
665922823e Remove Echo Nolan from maintainers
I'm not using Nix anymore.

(cherry picked from commit f01c56f109)
2015-12-17 09:43:29 +01:00
Vladimír Čunát
0dd23a622f libpng: security update
It should finally fix #11030 and CVE-2015-8126

(cherry picked from commit 04d993417f)
2015-12-17 08:57:00 +01:00
William A. Kennington III
faf57def9c nvidia: 352.55 -> 352.63
(cherry picked from commit 8d01a4a4e4)
2015-12-16 23:38:25 +01:00
Peter Simons
ffd10ac482 git-annex: use the full version by default
The 'gitAndTools.gitAnnex' attribute referred to a minimal build of git-annex
that lacked advanced features, like the Assistant. This commit switches the
attribute to the full version.

Fixes https://github.com/NixOS/nixpkgs/issues/11708.
2015-12-16 22:34:28 +01:00
Eelco Dolstra
b095728cae git: 2.5.2 -> 2.5.4
CVE-2015-7082.

Master is already at 2.6.3 but we don't want that on the stable
branch.
2015-12-16 15:47:05 +01:00
Robin Gloster
3ff662cf6c php56: 5.6.15 -> 5.6.16
(cherry picked from commit ef4f3e6ff4)
2015-12-16 15:24:39 +01:00
Robin Gloster
b25b9e92d8 php: 5.6.14 -> 5.6.15
(cherry picked from commit 0ceec8420c)
2015-12-16 15:24:27 +01:00
Eelco Dolstra
534458fd85 subversion: 1.8.14 -> 1.8.15
CVE-2015-5343.

e7ae72cfb1 in master.
2015-12-16 15:23:25 +01:00
Pascal Wittmann
3623cea1ab Merge pull request #11761 from lancelotsix/fix_slurm-llnl-14.11.5-dl-url
pkgs.slurm-llnl: fix download URL
2015-12-16 13:01:43 +01:00
Eelco Dolstra
0fbf96e188 copy-tarballs.pl: Fix --expr
(cherry picked from commit a6ca6bbed9)
2015-12-16 11:08:38 +01:00
Eelco Dolstra
8577444a76 Allow uploading multiple files
(cherry picked from commit 903803a1f3)
2015-12-16 11:08:33 +01:00
Eelco Dolstra
e8b52c4112 copy-tarballs.pl: Remove redundant check
(cherry picked from commit 8f5856ce63)
2015-12-16 11:08:10 +01:00
Eelco Dolstra
9d2e9e0612 copy-tarballs: Use an S3 bucket for tarballs.nixos.org
Tarballs.nixos.org is now stored in an S3 bucket rather than an EBS
volume. Redirects are used to simulate symlinks.

The function find-tarballs.nix now filters out fetchzip, fetchpatch
and the like.

(cherry picked from commit 567e002545)
2015-12-16 11:07:44 +01:00
Lancelot SIX
791d1f3dba pkgs.slurm-llnl: fix download URL 2015-12-16 08:14:06 +00:00
Michael Raskin
cf0904d656 flashplayer: 11.2.202.540 -> 11.2.202.554
(cherry picked from commit 0a64071932)
2015-12-14 16:22:10 +01:00
Svein Ove Aas
7b85b8a08f unifi:Update download location; the binaries moved
(cherry picked from commit 75dbf02d85)
2015-12-13 11:58:21 +01:00
Shea Levy
d326c9b732 Linux 4.3: 4.3 -> 4.3.2
(cherry picked from commit 18af0f88d0)
2015-12-12 08:46:43 -05:00
Robert Helgesson
f7006cd23b screen: patch CVE-2015-6806
Fixes a possible denial of service of the screen tool. Patch sourced
from upstream GIT repository.

(cherry picked from commit c4ab553c92)
2015-12-11 19:41:48 +01:00
Allan Espinosa
6ecfa25446 screen: fix utmp.c compile problem in darwin
Apply the patch specified in http://savannah.gnu.org/bugs/?45359

(cherry picked from commit 80ac72bbab)
2015-12-11 19:41:42 +01:00
Vladimír Čunát
d7031f1a24 blas: fix remains of hardcoded version
Thanks to @knedlsepp for pointing out
2b71fdbbc3 (commitcomment-14919659)

(cherry picked from commit ffb72182a6)
2015-12-11 10:26:56 +01:00
Eelco Dolstra
fb1377a14a Add option to link additional package outputs into system.path
This is necessary to get stuff like separate manpages, info files,
debug symbols, etc.

(cherry picked with resolved conflicts from commit 58e9440)
2015-12-10 18:38:14 +01:00
Eelco Dolstra
ac7e70a0c9 linux: 3.14.56 -> 3.14.58
(cherry picked from commit 54d6f1f683)
2015-12-10 16:33:44 +01:00
Eelco Dolstra
37595474de perf: Fix libbfd dependency
This fixes C++ symbol demangling.

(cherry picked from commit 789504dadf)
2015-12-10 16:15:31 +01:00
Eelco Dolstra
13aa85fe1d Add Fedora 23
(cherry picked from commit 75e41b0210)
2015-12-10 16:14:53 +01:00
Eelco Dolstra
79ef8606c5 Add Ubuntu 15.10
(cherry picked from commit e4eee41ad0)
2015-12-10 16:14:48 +01:00
Eelco Dolstra
9138888a97 nixUnstable: 1.11pre4273_71039be -> 1.11pre4334_7431932
(cherry picked from commit 2de76b2753)
2015-12-10 16:14:16 +01:00
Anthony Cowley
5f203492d2 Nix darwin use libsodium
(cherry picked from commit 7dbea7aa78)
2015-12-10 16:14:05 +01:00
Eelco Dolstra
1bbfd33c7b nixUnstable: Update to 1.11pre4273_71039be
(cherry picked from commit 58f9896a43)
2015-12-10 16:13:22 +01:00
Eelco Dolstra
6f717c7aa9 fetchurl: Always use tarballs.nixos.org
Otherwise, if the upstream mirror changes (rather than deletes) a
file, then tarballs.nixos.org won't be used even if it has a copy of
the original file, and so we'll get a hash mismatch.

(cherry picked from commit bb672805cd)
2015-12-10 16:12:05 +01:00
Eelco Dolstra
7b2291b1f3 Add option environment.enableDebugInfo
This makes the debug outputs of packages that have them available to
programs like gdb.

(cherry picked from commit d9d5c98c56)
2015-12-10 16:11:52 +01:00
Eelco Dolstra
e3cc3c9b16 Factor out "man" into a separate module and add "man" outputs to system.path
Fixes #10270.

(cherry picked from commit c20403631d)
2015-12-10 16:11:34 +01:00
Bjørn Forsman
1a86bf8aae nixos/redmine: improve assert message
Give the user more context.

(cherry picked from commit 2acf59efa4)
2015-12-08 22:53:59 +01:00
Herwig Hochleitner
b5d1d2eb43 dropbox-cli: 2015.02.12 -> 2015.10.28, fixes #11539 2015-12-08 02:15:25 +01:00
Herwig Hochleitner
5606d25a4c dropbox: 3.10.11 -> 3.12.4 2015-12-08 02:14:10 +01:00
Aristid Breitkreuz
a5a1f4a441 update postgresql binaries
(cherry picked from commit 054a5ee9d9)
2015-12-07 21:07:50 +01:00
Bart Brouns
5df488af97 yoshimi: 1.3.6 -> 1.3.7.1
(cherry picked from commit b94a2db590)
2015-12-06 15:16:29 +01:00
codsl
95af80c585 openssl: security update 1.0.2d -> 1.0.2e
Fixes CVE-2015-3193, CVE-2015-3194, CVE-2015-3195 and CVE-2015-3196.
Close #11469.

(cherry picked from commit 51a5f49d70)
2015-12-05 11:37:56 +01:00
codsl
ca9f79dec2 openssl: security update 1.0.1p -> 1.0.1q
Fixes CVE-2015-3194 and CVE-2015-3195.
Taken from #11469.

(cherry picked from commit fb3b9f5f8b)
2015-12-05 11:28:38 +01:00
Peter Simons
db51a5841b Update list of gnupg.org mirror sites.
The list we had before contained a lot of junk, i.e. sites that were no
longer online or no longer in sync. The new list of sites comes from
https://gnupg.org/download/index.html.

(cherry picked from commit 65f3932f6e)
2015-12-05 08:38:19 +01:00
Maciek Starzyk
ba0d05c76c obnam: 1.18.1 -> 1.18.2 2015-12-04 10:52:43 +01:00
Maciek Starzyk
328065b53e obnam: 1.17 -> 1.18.1 2015-12-04 10:52:43 +01:00
Maciek Starzyk
a97cc77aa9 obnam: 1.16 -> 1.17 2015-12-04 10:52:42 +01:00
Maciek Starzyk
818740034b obnam: 1.15 -> 1.16 2015-12-04 10:52:42 +01:00
Arseniy Seroka
88765ae8da Merge pull request #11439 from whiteley/chef-dk-0.10.0
chefdk: 0.4.0 -> 0.10.0
2015-12-03 23:56:23 +03:00
Matt Whiteley
991dca5dea chefdk: 0.4.0 -> 0.10.0 2015-12-03 11:19:28 -08:00
Thomas Mader
e5c344b7ef dmd: add gcc runtime dependency because dmd uses the linker of gcc on linux.
From #11327.

(cherry picked from commit ef17efa99b)
2015-12-03 16:33:27 +01:00
Rob Vermaas
18f1e6a194 Fix hash for oauth-0.9.12 2015-12-01 13:53:31 +00:00
Rob Vermaas
fe8fd63e39 Add plotly 1.9.1 python package 2015-12-01 08:18:34 +00:00
Vladimír Čunát
54196e54a8 fish: use absolute path to clear when pressing ^L
It was unable to find `clear` for me.
/cc maintainer @ocharles.

(cherry picked from commit 10135e6f41)
2015-11-29 12:02:11 +01:00
Shea Levy
15dfd9b299 Merge branch 'idris-packages'
(cherry picked from commit f7c2cd3347)
2015-11-27 13:50:11 -05:00
Matthias C. M. Troffaes
16d2eaf14e wolfssl: init at 3.7.0
Picked from #11287.

(cherry picked from commit b5e06b04a7)
2015-11-27 11:01:21 +01:00
Eelco Dolstra
e354ff9a24 Revert "cherry-pick lib.sandbox into master"
This reverts commit 473d8ca3fa. Let's
not put controversial features like this in the release branch.
2015-11-25 14:16:50 +01:00
Pascal Wittmann
d1df177f43 Merge pull request #11255 from vandenoever/davmail
Upgrade Davmail to 4.7.0.
2015-11-25 12:43:16 +01:00
Jos van den Oever
68499fd794 davmail: 4.6.1 -> 4.7.0
Upgrade message: http://sourceforge.net/p/davmail/mailman/message/34597887/

This new release contains a lot of fixes from user feedback, a new
-notray command line
option to force window mode and avoid tricky tray icon issues on Linux
and native
smartcard support on Windows.

Caldav:
- Caldav: Map additional priority levels
- Caldav: fix missing LAST-MODIFIED in events

Enhancements:
- Improved tray icon with alpha blend
- Fix imports
- Prepare mutual SSL authentication between client and DavMail
implementation
- Implement -notray command line option as a workaround for broken SWT
and Unity issues
- Change warning messages to debug in close method
- Improve client certificate dialog, build description from certificate
- Exclude client certificates not issued by server provided issuers list

IMAP:
- IMAP: Additional translations and doc for new IMAP setting
- IMAP: Merge patch by Mauro Cicognini, add a new setting to always send
approximate message in RFC822.SIZE to avoid downloading full message body
- IMAP: fix regression with quotes inside folder names
- IMAP: handle quotes inside folder names correctly

OSX:
- OSX link local address on loopback interface
- Exclude arguments starting with dash to avoid patch 38 regression on OSX

Documentation:
- Doc: Document -notray option
- Switch to OpenHub instead of Ohloh

EWS:
- EWS: prepare distribution list implementation
- Fix #254 davmail.exchange.ews.EWSException:
ErrorIncorrectUpdatePropertyCount

Linux:
- Refresh davmail.spec, make RPM noarch
- Handle missing or broken SWT library

Windows:
- Windows: Make MSCAPI keystore type available in Settings for Windows
native smartcard support
- Instantiate MSCAPI explicitly to access Windows Smartcards
- Enable native Windows SmartCard access through MSCAPI (no PKCS11
config required)

Carddav:
- Carddav: Test case for comma in ADR field
- Carddav: Do not replace comma on ADR field, see support request 255
- Caldav: Ignore missing END:VCALENDAR line on modified occurrences
- CardDav: Add empty property test case
2015-11-25 12:34:30 +01:00
Peter Simons
c6b5f5bdb0 r-modules: update list of broken packages
(cherry picked from commit de02462a36)
2015-11-25 11:55:26 +01:00
Nikolay Amiantov
2d08d7e649 r-modules: regenerate CRAN, BIOC and IRKernel
(cherry picked from commit bd4297dc4d)
2015-11-25 11:55:26 +01:00
Nikolay Amiantov
28eda4e24e r-modules: use HTTPS, allow passing args from generated set, use MRAN
(cherry picked from commit 287f99bada)
2015-11-25 11:55:26 +01:00
Peter Simons
5edc1de64c pkgs/development/haskell-modules: simplify use of standard fix' and extends functions
My original version of 'extend' had its arguments flipped compared to the one
we now have in stdenv.lib.

(cherry picked from commit 69add60b5c)
2015-11-25 11:37:45 +01:00
Peter Simons
41f7d34703 lib/trivial.nix: improve spelling
(cherry picked from commit 89a5717c7a)
2015-11-25 11:37:07 +01:00
Peter Simons
6ef61fd5f9 lib: document fix and add fix', extends functions
These functions used to live in pkgs/development/haskell-modules/default.nix,
but they are generic, really, and should be easily accessible to everyone.

(cherry picked from commit 405fda497a)
2015-11-25 11:37:06 +01:00
Peter Simons
492a99477f r-tikzDevice: update to new texlive
(cherry picked from commit f46b1a34989ef4b4e29fdccb293e5fc33cc1b7ce)
2015-11-24 17:26:16 +01:00
Peter Simons
6c9911ddee pkgs/top-level/release.nix: enable building the R package set
The R people don't bother providing stable URLs for their package
releases. Released versions are edited or flat-out disappear at will,
which causes us a bit of trouble, like in [1]. Hopefully, enabling R
builds on Hydra will mitigate those problems by caching the release
tarballs.

[1] https://github.com/NixOS/nixpkgs/issues/11230
2015-11-24 10:14:16 +01:00
Peter Simons
525a5f1690 Synchronize state of R with 'master'.
* Update R from version 3.2.1 to 3.2.2.
 * Update the CRAN and BIOC package sets.
 * Add the IKERNEL package set.

Closes issue https://github.com/NixOS/nixpkgs/issues/11230.
2015-11-24 10:10:25 +01:00
Vladimír Čunát
2a31d7b9c7 pbzip2: fix a problem due to my bad refactoring
(cherry picked from commit 60e5e837bb)
2015-11-24 10:08:33 +01:00
Vladimír Čunát
671cb41c16 pbzip2: maintenance updates 1.1.9 -> 1.1.12
(cherry picked from commit bf58d24fe6)
2015-11-24 10:05:42 +01:00
Mitch Tishmack
954b36d397 pbzip2: g++ -> c++ to fix on darwin (close #11212)
vcunat made it apply unconditionally, as it works OK on Linux at least.
/cc maintainer @viric.

(cherry picked from commit 642ee7a77f)
2015-11-24 10:05:34 +01:00
Karn Kallio
3f05f9df74 xulrunner: fix path to configure script 2015-11-24 08:52:18 +01:00
Jan Malakhovski
a82e6fd2ab ranger: fix paths to w3m and share
Picked from #11222.

(cherry picked from commit b13c7186d6)
2015-11-23 22:24:34 +01:00
Vladimír Čunát
cfee4aef2c putty: security update 0.65 -> 0.66
It's claimed to fix CVE-2015-5309.

(cherry picked from commit d748ac851c)
2015-11-21 20:36:07 +01:00
Shea Levy
ecc6bc333c nix-exec: 4.1.2 -> 4.1.3 bugfix release
(cherry picked from commit df9f0d7060)
2015-11-20 09:16:44 -05:00
Jude Taylor
473d8ca3fa cherry-pick lib.sandbox into master
(cherry picked from commit 7039b24cdc)
2015-11-19 17:43:38 -05:00
Pascal Wittmann
d0f307e785 calibre: fix url 2015-11-18 16:19:50 +01:00
Lluís Batlle i Rossell
8a18bc8722 Updating freecad to 0.15 2015-11-18 15:02:02 +01:00
Carter Charbonneau
ef6bd92068 retroshare: 0.6-svn-7445 -> 0.6-git-fabc3a3 (close #9542)
(cherry picked from commit 170177ad26)
2015-11-18 15:02:02 +01:00
Domen Kožar
03f9477654 Merge pull request #11117 from bendlas/update-dropbox-stable
dropbox: 3.10.9 -> 3.10.11 (nixos stable)
2015-11-18 10:37:19 +01:00
Herwig Hochleitner
4b0c3ca604 dropbox: 3.10.9 -> 3.10.11 2015-11-18 09:47:56 +01:00
Peter Simons
7e5e0b3f80 Merge pull request #10941 from peti/update-haskell-packages-in-release-branch
hackage-packages.nix: update Haskell package set
2015-11-17 16:53:31 +01:00
Vladimír Čunát
43f23f771e libpng12: security update 1.2.53 -> 1.2.54
Part of fix for #11030.
Also refactor meta.

(cherry picked from commit 31aa281919)
2015-11-17 12:57:53 +01:00
Robbin C
7bf4567613 Change argument --port to --listen in nix-serve.nix
(cherry picked from commit c75d1e761a)
2015-11-16 11:48:45 +01:00
Matthew O'Gorman
facb3d50d0 xscreensaver: security update 5.33 -> 5.34 (close #10845)
Fixes a crash when hot-swapping monitors while locked.

(cherry picked from commit 7df0fefcbc)
2015-11-16 08:38:31 +01:00
Vladimír Čunát
018c272a2a libpng: security and maintenance 1.6.18 -> 1.6.19
Fixes #11030, CVE-2015-{7981,8126}.

(cherry picked from commit cc86857601)
2015-11-16 08:14:05 +01:00
Lluís Batlle i Rossell
a890f8e696 Making iodine client find ifconfig. 2015-11-16 00:07:38 +01:00
Domen Kožar
2276be4b66 Merge pull request #11021 from dasjoe/zfs-0.6.5.3
spl+zfs: cherry-pick 0.6.5.3
2015-11-15 10:41:59 +01:00
William A. Kennington III
b784505b1b spl: 0.6.5.2 -> 0.6.5.3 2015-11-14 16:19:00 +01:00
Ricardo M. Correia
dbfd6831ed spl: 0.6.5 -> 0.6.5.2 2015-11-14 16:18:43 +01:00
William A. Kennington III
3d17f9abe2 zfs: 0.6.5.2 -> 0.6.5.3 2015-11-14 16:18:21 +01:00
Ricardo M. Correia
5e5d17c4f7 zfs: 0.6.5.1 -> 0.6.5.2 2015-11-14 16:18:11 +01:00
Eelco Dolstra
4d9166084d Remove zfs-git and spl-git
See https://github.com/NixOS/nixpkgs/pull/10042#commitcomment-13422343.
2015-11-14 16:17:57 +01:00
Guillaume Maudoux
5f79c8dacf lighttpd: fix mod_rewrite appearing twice
(cherry picked from commit 60ba5ad479)
2015-11-14 15:53:11 +01:00
Bjørn Forsman
068a7df8e6 jenkins: 1.637 -> 1.638 (important security fixes)
I fat fingered the previous update, *this* is the real important
security updates:

https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-11-11
(cherry picked from commit 30313d5c6e)
2015-11-12 13:40:54 +01:00
Bjørn Forsman
d754c3c4ff jenkins: 1.636 -> 1.637 (security fixes)
https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2015-11-11
(cherry picked from commit 7a1c4ab324)
2015-11-12 13:35:36 +01:00
Nikolay Amiantov
6202090f31 fhs-env: symlink /usr/lib to libs for the main architecture 2015-11-12 03:33:42 +03:00
Thomas Tuegel
45128deb40 Merge pull request #10918 from bjornfor/backport-qt55-improvements
Backport Qt 5.5 improvements to release-15.09
2015-11-10 09:37:36 -06:00
Peter Simons
d203574d06 hackage-packages.nix: update Haskell package set
This update was generated by hackage2nix v20150922-36-ge0ee7ef using the following inputs:

  - Nixpkgs: 29fff27a55
  - Hackage: fccc42cccb
  - LTS Haskell: 1ae555e197
  - Stackage Nightly: ec7b421c66
2015-11-10 16:26:24 +01:00
Bjørn Forsman
59ad6a4dfe qtcreator: add qtdeclarative to QML2_IMPORT_PATH
When building with Qt 5.4 this is not a problem, but with Qt 5.5 (tested
locally), it is clear that this dependency is missing:

$ ./result/bin/qtcreator
file:///nix/store/zmpf6ydrjdydd85wh6splpywv6aj4782-qtcreator-3.4.2/share/qtcreator/welcomescreen/welcomescreen.qml:31:1:
module "QtQuick" is not installed
     import QtQuick 2.1
     ^

With Qt 5.4 something else is pulling in the qtdeclarative dependency,
it can be seen in the qtcreator wrapper script.

Note to self: "import QtQuick" != qtquickcontrols. QtQuick is
apparently located in the qtdeclarative module.

(cherry picked from commit ff4d8513b4)
2015-11-09 21:02:13 +01:00
Bjørn Forsman
c44a129bb9 qt55: fix qtmultimedia gstreamer support
Without this, configure will say:

  Checking for openal... no
  /tmp/nix-build-qtmultimedia-5.5.0.drv-0/qtmultimedia-opensource-src-5.5.0/qtmultimedia.pro:28:
  Variable GST_VERSION is not defined.
  Checking for resourcepolicy... no

And there may be application runtime errors like

  defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"

After this fix, configure will say:

  Checking for openal... no
  Checking for gstreamer... yes
  Checking for gstreamer_photography... no
  Checking for gstreamer_encodingprofiles... yes
  Checking for gstreamer_appsrc... yes
  Checking for linux_v4l... yes
  Checking for resourcepolicy... no

And the above runtime error will not appear.

This fix is similar to 449b6028 ("qt5.multimedia: fix gstreamer
support."), except with Qt 5.5 we also need to set GST_VERSION.

(cherry picked from commit 2cec70ce6c)
2015-11-09 13:32:59 +01:00
Thomas Tuegel
46217b9b01 makeQtWrapper: wrap XDG directories
(cherry picked from commit 24babaad9a)
2015-11-09 13:32:58 +01:00
Thomas Tuegel
287a4ce71f qtbase: copy qmake to temp dir
Fixes #10273.

(cherry picked from commit dcd70c54aa)
2015-11-09 13:32:58 +01:00
Thomas Tuegel
0fd7664a41 qtbase: propagate runtime dependencies
This is done so that makeQtWrapper works correctly.

(cherry picked from commit 361b1165ef)
2015-11-09 13:32:58 +01:00
Thomas Tuegel
aa7b051c41 kdoctools: set XDG_DATA_DIRS in setupHook
(cherry picked from commit 9fa17aa293)

Resolve conflicts in kde-frameworks by removing the change (that
package/version doesn't exist in release-15.09).
2015-11-09 13:32:40 +01:00
Thomas Tuegel
22471e4979 makeQtWrapper: always wrap impurely
(cherry picked from commit 5a2c45427b)

Resolve plasma-5.4/plasma-workspace conflict by dropping the change
(doesn't exist in release-15.09 branch).
2015-11-09 13:31:18 +01:00
Thomas Tuegel
f0c0b7a942 qt55: set QML import paths from NIX_PROFILES
(cherry picked from commit fb375f1a2e)
2015-11-09 13:15:43 +01:00
Thomas Tuegel
e1046843ce qt55: set Qt Quick import paths from NIX_PROFILES
(cherry picked from commit b1f904f69a)
2015-11-09 13:15:35 +01:00
Thomas Tuegel
5371ddd5ea qt55: set library paths from NIX_PROFILES
(cherry picked from commit a3855ef9ae)
2015-11-09 13:15:20 +01:00
Thomas Tuegel
88ab75fe39 separate makeQtWrapper from qtbase setup-hook
(cherry picked from commit d57e50d840)

I resolved some trivial conflicts: drop changes to packages that have
been switched to qt55 in master, but not in release-15.09.
2015-11-09 13:13:11 +01:00
Thomas Tuegel
6736fbe506 qtmultimedia: build with gstreamer-1.0
Fixes #10289.

(cherry picked from commit 89d31daa8f)
2015-11-09 13:11:38 +01:00
Thomas Tuegel
c805a0c36f qt55.qtbase: add makeQtWrapper
(cherry picked from commit a122ca8ba3)
2015-11-09 13:11:28 +01:00
Thomas Tuegel
3aed93ee4d qtbase: remove redundant directory checks
addToSearchPath already checks if the directory exists before adding it
to the path; it's not necessary to check it again.

(cherry picked from commit ebb9c07168)
2015-11-09 13:11:13 +01:00
Thomas Tuegel
22da1ba93f qtbase: include current package in runtime paths
The runtime paths QT_PLUGIN_PATH, QML_IMPORT_PATH, QML2_IMPORT_PATH, and
XDG_DATA_DIRS did not include the appropriate paths from the current
package being built because addToSearchPath does not add directories
which don't exist.

(cherry picked from commit b44923561b)
2015-11-09 13:10:55 +01:00
Bjørn Forsman
5d550918e5 qt55: apply mkspecs-libgl.patch from qt54
(cherry picked from commit 3dec100104)
2015-11-09 13:10:32 +01:00
Thomas Tuegel
1944d28961 qt5Full: only include derivations
(cherry picked from commit e5b124e492)
2015-11-09 13:08:01 +01:00
Peter Simons
ef7a81396b lambdabot: mark build as broken
custom-config.patch not longer applies to recent versions
2015-11-08 18:28:08 +01:00
Raymond Gauthier
57816df113 mousepad: fix the Using the 'memory' GSettings backend issue.
Close #10867.
It means that settings couldn't be saved. The issue appeared
since upgrade to nixos 15.09 and fall as part of #4415.

Tested on nixos.
 -  No longer has a stderr when running the application.
 -  Settings are effectively saved.

(cherry picked from commit 34eb56e16b)
2015-11-07 18:42:28 +01:00
William A. Kennington III
b77502cea2 linux-4.3: Fix build failure.
The package has been cherry-picked into the 15.09 release at 9bae8f6,
unfortunately without the fixes that were introduced by the upgrades in
linux-testing.

As it is now the current "_latest" in 15.09, we really don't want the
build to fail.

This is a partial cherry-pick from 9fbbbd5 because that commit was
updating linux-testing as well.

Tested with the latestKernel.login VM test.

Signed-off-by: William A. Kennington III <william@wkennington.com>
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-11-06 20:32:48 +01:00
taku0
f6b3ca11ab oraclejdk: 8u60 -> 8u65, 8u66
(cherry picked from commit 3f51f4c463)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-11-06 16:21:50 +01:00
aszlig
9125e02a3b mariadb: 10.0.21 -> 10.0.22
Fixes the following security vulnerabilities:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4802
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4807
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4815
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4826
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4830
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4836
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4858
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4861
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4870
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4913
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4792

Release notes can be found here:

https://mariadb.com/kb/en/mariadb/mariadb-10022-release-notes/

Detailled changelog:

https://mariadb.com/kb/en/mariadb/mariadb-10022-changelog/

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 9846e69ae2)
2015-11-06 16:13:30 +01:00
William A. Kennington III
f7ec9e9dff nss: 3.20 -> 3.20.1
(cherry picked from commit e8cbf833ef)
2015-11-05 18:29:23 -08:00
William A. Kennington III
4327130d12 nspr: 4.10.9 -> 4.10.10
(cherry picked from commit d80f4c49b0)
2015-11-05 18:29:13 -08:00
William A. Kennington III
2f6e7c15e2 firefox: Updates
- 41.0.2 -> 42.0
  - 38.3.0 -> 38.4.0

(cherry picked from commit 588a950df9)
2015-11-05 07:19:02 -08:00
Vladimír Čunát
ab42fb6249 goPackages: include buildFromGithub to fix #10805
(cherry picked from commit fa7d863af0)
2015-11-05 16:08:42 +01:00
Nikolay Amiantov
16c0f4c14b nixos/tlp: workaround early build trigger 2015-11-05 16:25:39 +03:00
Bjørn Forsman
050bdc3534 nixos: add services.jenkins.jobBuilder option
This option allows to define (declarative) Jenkins jobs, using Jenkins
Job Builder (JJB) as backend.

Example:

  services.jenkins = {
    enable = true;
    jobBuilder = {
      enable = true;
      yamlJobs = ''
        - job:
            name: jenkins-job-test
            builders:
              - shell: echo 'Hello world!'
      '';
    };
  };

Jobs can be defined using YAML, JSON and Nix.

Note that it really is declarative configuration; if you remove a
previously defined job, the module will remove the jobdir under
$JENKINS_HOME.

Jobs managed through the Jenkins WebUI (or by other means) are not
touched by this module.

Changes v1 -> v2:
* add nixJobs
* let jsonJobs take a list of strings (allows merge)
* 4 space indent in shell code

(cherry picked from commit 27f41d8c0a)
2015-11-05 09:05:28 +01:00
Brian McKenna
e0b5ed849d chromium: include WideVine patch to get NetFlix
Close #10444, fixes #8749.
For some reason it's more involved than just setting gyp configuration,
we also have to set some definitions in widevine_cdm_version.h according
to the comments left in the file. Arch Linux does this already and so we
should probably just use the patch they created while getting Netflix to
work:

https://code.google.com/p/chromium/issues/detail?id=429452#c16
(cherry picked from commit 492ccdd52d)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-11-05 09:01:58 +01:00
Pascal Wittmann
86bea14262 audiofile: fix CVE-2015-7747
closes #10678

(cherry picked from commit 6aea1c55c0 by
falsifian)
2015-11-04 18:56:51 -08:00
Lluís Batlle i Rossell
5e432c047e Updating homebank to 5.0.6.
The old 5.0.0 is not available anymore.

I use the gtk33 hook to get proper icons, but still some icons are
broken (open, save, ...)
2015-11-04 22:22:23 +01:00
Lluís Batlle i Rossell
819f8b70d6 Fixing the raspberrypi kernel to fit both pi1 and pi2
I added a patch that makes the pi2 kernel not add any localversion.
2015-11-04 15:32:48 +01:00
aszlig
d621ebec11 python-hetzner: Update to bugfix version 0.7.4.
Fixes pinned CA root certificate and probing for system CA bundle.

Closes NixOS/nixops#354.

I'm using fetchFromGitHub now because it's use of fetchzip is more
stable for autogenerated tarballs from GitHub.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 1d1cf4845f)
2015-11-04 14:05:03 +01:00
Eelco Dolstra
e55c249822 linux: Update to 3.18.24
(cherry picked from commit 827adff712)
2015-11-04 13:24:37 +01:00
William A. Kennington III
234766be0c kernel: 3.18.22 -> 3.18.23
(cherry picked from commit ea49c910a5)
2015-11-04 13:24:33 +01:00
William A. Kennington III
9bae8f6ccc linux: Add 4.3
(cherry picked from commit 4b7f374b7d)
2015-11-04 07:14:50 -05:00
Lluís Batlle i Rossell
916c06783b Revert "Fixing modVersion path in Pi kernel."
This reverts commit 3e1eae1187.

The pi2 kernel adds "-v7" to LOCALVERSION. We have to trim this out, and make
it like the pi1. Or make it dependant on the pi1/pi2 platform.
2015-11-04 12:43:49 +01:00
Lluís Batlle i Rossell
56ff659e5d Fixing the logic in coreutils to avoid stdenv rebuild.
It was using 'null' instead of '[]' in case of no patches. So I change
it to provide 'null'.
2015-11-04 12:41:35 +01:00
Lluís Batlle i Rossell
1b36f489b6 coreutils 8.24 have a bug exhibited in a test in the Pi2. Patching.
I pick the patch from upstream, and I apply only for ARM to avoid rebuilding
stdenv.
2015-11-04 12:04:20 +01:00
Lluís Batlle i Rossell
3e1eae1187 Fixing modVersion path in Pi kernel. 2015-11-04 12:04:19 +01:00
Peter Simons
7f7d9eaadb postfix: don't create a symlink inside of /var/spool/mail if /var/mail exists already
(cherry picked from commit 2bb705da15)
2015-11-02 14:34:07 +01:00
Bjørn Forsman
55784a0e03 jenkins: 1.633 -> 1.636
(cherry picked from commit eeced1bc51)
2015-11-02 10:40:29 +01:00
Utku Demir
b264d4d60b jenkins: 1.631 -> 1.633
(cherry picked from commit 57ad847982)
2015-11-02 10:40:22 +01:00
Bjørn Forsman
c2ca3044e6 nixos/jenkins: force .war (re)extraction at start-up
Or else we might run stale Jenkins.

(cherry picked from commit f25b36df3c)
2015-11-02 10:40:14 +01:00
Domen Kožar
05f1980eb0 unzip: CVE-2015-7696, CVE-2015-7697
(cherry picked from commit aff3a23d67)
2015-11-01 20:05:43 -08:00
William A. Kennington III
ca8f15994b kernel: 4.1.7 -> 4.1.12, /cc #10607
(cherry picked from commit 658d7b285b)
2015-10-31 22:48:14 +01:00
Domen Kožar
1f86c9d4c4 Merge pull request #10730 from msteen/tilda
tilda: 1.2.2 -> 1.2.4
2015-10-31 22:12:23 +01:00
Karn Kallio
d3cec7d2d0 symbola: fix zip hash and adjust documentation installation
Close #10740.
(cherry picked from commit ff742d5475)
2015-10-31 09:18:07 +01:00
Matthijs Steen
94ac7e8cb5 tilda: 1.2.2 -> 1.2.4 2015-10-30 22:12:09 +01:00
William A. Kennington III
22e313f37f kernel: 4.2.3 -> 4.2.5
(cherry picked from commit 221a970e82)
2015-10-30 13:34:52 -04:00
Shea Levy
a7138fd761 Really disable the firmware loader user helper fallback
(cherry picked from commit 3c14c32975)
2015-10-30 13:31:58 -04:00
Shea Levy
a43ede7a82 Revert unnecessary rebuild of systemd 2015-10-30 11:03:41 -04:00
Eelco Dolstra
0135f255a2 Revert required Nix version to 1.8
1.10 isn't actually needed.
2015-10-30 15:32:10 +01:00
Shea Levy
a524b007c3 Remove firmware loader fallback.
Systemd dropped support in 207 (would be nice if configure failed with a bad flag),
so all this does is add an annoying delay if firmware can't be found by the kernel

(cherry picked from commit a7157fa2f0)
2015-10-30 10:30:51 -04:00
William A. Kennington III
0dfeffdc05 linuxFirmware: 2015-09-07 -> 2015-10-18
(cherry picked from commit d03661b606)
2015-10-30 09:55:49 -04:00
William A. Kennington III
3f40ac94c1 kernel: 3.14.54 -> 3.14.56
(cherry picked from commit 850fff4448)
2015-10-30 11:09:07 +01:00
Eelco Dolstra
b9cd5e6082 nvidia-x11: Update to 352.55
(cherry picked from commit db19779965)
2015-10-30 11:08:45 +01:00
Domen Kožar
67d2972645 atom: 1.0.4 -> 1.1.0
(cherry picked from commit a862dd2ad2)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-30 09:52:50 +01:00
Thomas Tuegel
4053e6f6f6 Merge pull request #10698 from bendlas/update-dropbox-stable
dropbox: 3.8.9 -> 3.10.9 (release-15.09)
2015-10-29 16:42:42 -05:00
Herwig Hochleitner
7df7d75730 dropbox: 3.8.9 -> 3.10.9 2015-10-29 16:42:50 +01:00
Lluís Batlle i Rossell
4a830de032 Bringing back eo symbols for xkb
I port the patch for esperanto symbols removed in
1be2acd131 to the current
xkeyboardconfig.
2015-10-29 13:29:20 +01:00
Domen Kožar
551dad3ffd nm-openvpn: add user/group, closes #10689 2015-10-29 09:58:38 +01:00
Domen Kožar
76d7932f39 pythonPackages.beaker: 1.6.4 -> 1.7.0 (CVE-2012-3458)
(cherry picked from commit c3a506943c)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-28 11:56:08 +01:00
Domen Kožar
bc73b34d1c pythonPackages.reviewboard: 1.6.16 -> 1.6.22 (CVE-2013-4795)
(cherry picked from commit 4c026eee39)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-28 11:56:08 +01:00
Domen Kožar
643fc4b254 pythonPackages.suds: apply patch CVE-2013-2217
(cherry picked from commit d60718d57a)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-28 11:56:08 +01:00
Eelco Dolstra
272675ab90 linux: Fix i686 build
(cherry picked from commit d2918797bb)
2015-10-28 11:10:28 +01:00
aszlig
71ba2cdc0d vmTools.commonDebPackages: Add "mawk".
While debugging an issue with running NixOps tests, I found out that the
output from debClosureGenerator is not deterministic.

The reason behind this is the way how Provides and Replaces fields are
handled. I haven't yet found out what's the exact issue, but so far
packages "Provides" are more or less picked at random.

So, running the NixOps Hetzner tests we get either mawk, original-awk or
gawk altering on every invocation.

While for the test it isn't poisionous whether wi have mawk or gawk,
having original-awk certainly is, because live-build only works with
mawk or gawk.

The best solution would obviously be to make debClosureGenerator
deterministic, but in the case of "Provides: awk", we can safely pick
mawk by default, because the latter has a "Priority: required" in its
package description.

This also has the advantage that we can safely cherry-pick this to
release-15.09 because it's very unlikely that we'll break the
debClosureGenerator by adding a dependency to commonDebPackages.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 82d88b5bcb)
2015-10-26 20:57:39 +01:00
Eelco Dolstra
7270bd05c0 linux: Support x2APIC
Without this, certain servers with lots of CPU cores would show only
one core.

(cherry picked from commit 52c9e4415b)
2015-10-26 16:22:47 +01:00
Domen Kožar
628761169c nova-image: use make-disk-image.nix
(cherry picked from commit f1508b3a23)
2015-10-26 16:20:40 +01:00
Domen Kožar
8c44b4542d add sslmate: easy to buy, deploy, and manage your SSL certs
(cherry picked from commit 8f977608f4)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-26 12:58:15 +01:00
Domen Kožar
350ffdcc84 kde: add glib include paths to NIX_CFLAGS_COMPILE 2015-10-25 20:01:07 +01:00
aszlig
b56f67dcaf nixos/postgresql: Fix execution of initialScript.
Regression introduced by b21fd5d066.

The initialScript is only executed whenever there is a .first-startup in
the dataDir, so silently dropping the file essentially breaks
initialScript functionality.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 60d407b209)
2015-10-25 16:06:36 +01:00
Domen Kožar
283eae85aa kde4.kde_runtime: depend on glib due to networkmanager
(cherry picked from commit 87b4bdfa24)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-25 13:11:49 +01:00
Robin Gloster
8ec9b797cc pythonPackages.geventhttpclient: 1.1.0 -> 1.2.0
This fixes a potential security vulnerability of it hard-coding SSLv3
https://github.com/gwik/geventhttpclient/issues/55

Affects dulwich, therefor mercurial, rabbitvcs, hg-git, klaus

(cherry picked from commit 91b3960664)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-25 13:11:15 +01:00
Lengyel Balázs
45921e6cb9 network-manager 1.0.2 -> 1.0.6
Updated everything except network-manager-openconnect, as there is no newer version
2015-10-25 13:11:15 +01:00
Sander van der Burg
e4d00fea74 dysnomia: bump to version 0.4.1
(cherry picked from commit 644dd145c9)
2015-10-24 18:24:43 +00:00
Vladimír Čunát
e641e69cb3 flashplayer: update 11.2.202.535 -> 11.2.202.540
Tested by @wedens.

(cherry picked from commit 6d31e9b81d)
2015-10-24 13:33:37 +02:00
Ricardo M. Correia
f7e99596ad flashplayer: 11.2.202.521 -> 11.2.202.535, fixes #10571
(cherry picked from commit 18cad45480)
2015-10-24 12:20:02 +02:00
Domen Kožar
4c2bbb248c networkmanager: don't check if subject is active (false in my X session) 2015-10-23 20:15:56 +02:00
Bjørn Forsman
2e089e6b7c build-fhs-chrootenv: add /etc/mtab -> /proc/mounts symlink
Needed to be able to run some programs (e.g. tune2fs) in the chroot.

AFAIK, /etc/mtab is deprecated, but programs still use it.

(cherry picked from commit ad49db64da)
2015-10-23 17:56:53 +02:00
Nikolay Amiantov
f2f7d1e941 buildFHSEnv: create /etc/profile with writeText
This should avoid accidential expansion of variables, i.e. in
"export PATH=/some/path:$PATH"
$PATH would have been expanded in the environment builder!

(cherry picked from commit da38314be6)
2015-10-23 17:56:53 +02:00
Nikolay Amiantov
27e8c4fdd3 chroot-env: simplify, clean directories structure
(cherry picked from commit ab730370ba)
2015-10-23 17:56:53 +02:00
Nikolay Amiantov
dfbee8a073 build-fhs-{chroot,user}env: document new extra bind mounts option
(cherry picked from commit fa53fbe086)
2015-10-23 17:56:53 +02:00
Nikolay Amiantov
682b14a11b build-fhs-userenv: fix extraBindMounts
(cherry picked from commit 46de04489b)
2015-10-23 17:56:52 +02:00
Nikolay Amiantov
8d642759ad build-fhs-userenv: add extraBindMounts support
(cherry picked from commit 5897433b31)
2015-10-23 17:56:52 +02:00
Arseniy Seroka
d676196a11 Merge pull request #10552 from msteen/vino
vino: updated the dependencies
2015-10-23 02:48:16 +03:00
Eelco Dolstra
9c65751443 Prevent future store path references in the manual
(cherry picked from commit 5b8dae8ef3)
2015-10-23 01:21:33 +02:00
Eelco Dolstra
fe770728c5 Manual: Remove store path references
(cherry picked from commit 89e983786a)
2015-10-23 01:21:27 +02:00
Matthijs Steen
ee88f76483 vino: updated the dependencies
The libXtst dependency was missing, which was required to enable remote control. The other dependencies have been updated as well to reflect the dependencies stated at:
https://wiki.gnome.org/Projects/Vino
https://git.gnome.org/browse/vino/tree/configure.ac
2015-10-22 23:03:55 +02:00
Vladimír Čunát
98e901488d blas: fix by updating, fixes #10420, close #10545
The new URL also looks more stable.

(cherry picked from commit 2b71fdbbc3)
2015-10-22 20:13:50 +02:00
Domen Kožar
af3774a319 Merge pull request #10486 from dasjoe/asterisk
release-15.09 asterisk: fix service installation and upgrade to 13.6.0
2015-10-22 14:23:44 +02:00
aszlig
8c631197ea thttpd: Fix SHA256 of the upstream tarball.
It's a bit unfortunate to see this, but while looking online to download
the old version of the file I found that MacPorts and FreeBSD had the
same issue:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199562

I've checked the diff as well and found no big functional changes,
except a function rename, copyright updates and changed syslog
priorities:

https://bz-attachments.freebsd.org/attachment.cgi?id=155775

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit f15420b0fe)
2015-10-21 17:16:48 +02:00
aszlig
f6075050e8 nixpart0: Don't search for libudev using SO major.
The SO major is going to change in the upcoming update of the Hetzner
rescue system, which will cause NixOps to break because it's statically
using the SO major 0 while the new rescue system will have the major
number 1.

I'm still keeping the udevSoMajor attribute to retain backwards-
compatibility with older NixOps versions.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 3bf3d19759)
2015-10-21 17:16:48 +02:00
Brandon Dimcheff
d0dc98c5f8 cups-filters: make shell string longer (close #10493)
The cstring for the shell path is too short for nixos in cups-filters,
causing it to be truncated.  This was previously fixed in #5428, but
regressed.

This is a permanent solution accepted even upstream
https://bugs.linuxfoundation.org/show_bug.cgi?id=1325
http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/revision/7401

(cherry picked from commit c0a963e3cc)
2015-10-20 17:16:12 +02:00
Rickard Nilsson
22db82bca0 google-cloud-sdk: 0.9.74 -> 0.9.82
(cherry picked from commit 321a6b2248)
2015-10-20 12:17:26 +02:00
Hajo Möller
2f3fe48a26 service.asterisk: fix dir creation 2015-10-19 23:03:38 +02:00
Hajo Möller
70f30e7174 asterisk: 13.3.2 -> 13.6.0 2015-10-19 23:03:27 +02:00
Vladimír Čunát
d94b3bac85 mesa: maintenance update 10.6.7 -> 10.6.9
This is anticipated to be the last update on the branch.
(speaking of both mesa 10.* and nixpkgs 15.09)
2015-10-19 10:24:48 +02:00
James Cook
e3401ce7f8 gdk-pixbuf: Patches for CVE-2015-7673 and CVE-2015-7674. 2015-10-19 00:38:35 -07:00
Robert Irelan
8dc5a168ac xorg.xf86-video-ast: 0.98.0 -> 1.1.5 (close #10451)
Fix failure of 0.98.0 to compile with NixOS 15.09 (due to referencing a
symbol `IOADDRESS` that has been removed from X.org drivers).

(cherry picked from commit 678c81b74d)
2015-10-19 09:08:51 +02:00
Bryan Gardiner
c4f07094c4 claws-mail: fix conflict with shared_mime_info link
Fixes #10156. Close #10157. Together with ancestor commits, fixes #10421.

(cherry picked from commit 4eb5068a13)
2015-10-18 08:39:21 +02:00
Bryan Gardiner
1923e5053e claws-mail: add hicolor_icon_theme dependency
We want the hicolor_icon_theme hook to strip Claws's icon-theme.cache.

(cherry picked from commit c39a557095)
2015-10-18 08:37:46 +02:00
Bryan Gardiner
56eec8622b claws-mail: fix attachment MIME type detection
Adds support for shared-mime-info to Claws, to fix attachments in
outgoing messages always having MIME type application/octet-stream
because Claws doesn't know where to look, instead complaining:

/nix/store/...-claws-mail-3.11.1/etc/mime.types: fopen: No such file or directory

Moreover, Claws relies on incoming MIME types for knowing when e.g. to
display an attached image, so sending application/octet-stream
unnecessarily is bad.

Tested against release-15.09.

(cherry picked from commit 268b4d5cfe)
2015-10-18 08:37:45 +02:00
Michael Raskin
4d0e76d60d firefox: 41.0.1 -> 41.0.2
(Cherry-picked by falsifian from commit fe6226af8ac1dc65c554664a7e2f9cbd9fe1bb47.)
2015-10-16 22:23:21 -07:00
Shea Levy
022d006fb0 haskell-hscurses: fix undeclared dependency on ncurses
(cherry picked from commit f17ae73d58)
2015-10-16 12:11:27 -04:00
Shea Levy
0edf68a2cf libvirt: Fix typo introduced by 556151911e
(cherry picked from commit 326ed47a97)
2015-10-15 16:48:15 -04:00
Shea Levy
9d3cdda200 virt-manager: Fixup path to libvirt's cpu_map.xml
(cherry picked from commit 556151911e)
2015-10-15 16:46:29 -04:00
Eelco Dolstra
729ec1ece2 Bump minimum required Nix version
Issue #10337.

(cherry picked from commit 2e5b6362ae)
2015-10-15 19:57:07 +02:00
Pascal Wittmann
71e29b42df Merge pull request #10384 from robbinch/fix-statd
Fix typo in nixos/modules/tasks/filesystems/nfs.nix.
(cherry picked from commit 78b2851724)

Close #10394.
2015-10-15 09:33:57 +02:00
Peter Simons
e4fe8204b6 Merge pull request #10383 from nathanielbaxter/dev/teamspeak_security_update
teamspeak_client security update for release branch/es
2015-10-14 09:58:20 +02:00
Nathaniel Baxter
8e5be37d63 teamspeak_client: Fixed qt and quazip lib references. 2015-10-14 10:14:19 +11:00
Matthias Beyer
b82c7a92ee teamspeak_client: 3.0.16 -> 3.0.18.1 (Added missing SHA update) 2015-10-14 10:14:18 +11:00
Matthias Beyer
8961020b32 teamspeak_client: 3.0.16 -> 3.18.1 2015-10-14 10:14:18 +11:00
Vladimír Čunát
8b8697993e synapse, hamster-time-tracker: get rid of icon-theme.cache
Fixes #10370.

(cherry picked from commit 2f540cbe48)
2015-10-13 14:49:16 +02:00
Domen Kožar
1d3403ac97 crashplan: mark as broken
(cherry picked from commit 1c174d107c)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-13 14:46:13 +02:00
Lluís Batlle i Rossell
0eb404129f Fixing the gtk attach file dialog for pond.
I forgot to wrap the programs for the proper XDG_DATA_DIRS. Thanks Lethalman!
2015-10-13 10:30:30 +02:00
Nikolay Amiantov
b662c2aeef mumble: use bundled celt library again 2015-10-12 17:56:32 +03:00
makefu
002da098e1 duplicity: add paramiko,pycrypto,ecdsa to deps
paramiko enables sftp://

[Bjørn: clean up expression arguments (coding style)]

(cherry picked from commit cd1732f58e)
2015-10-10 22:00:54 +02:00
Eelco Dolstra
dbf2827184 nixUnstable: Update to 1.11pre4244_133a421
(cherry picked from commit 1286435499)
2015-10-09 14:49:22 +02:00
karsten gebbert
bdd63d5c9d recoll: replace path to perl in filters
Closes #10287, fixes #10286.

(cherry picked from commit dffed1a512)
2015-10-09 14:40:50 +02:00
Thomas Tuegel
d12d164ac4 lilypond: disable argv[0] passthrough
Fixes #10290. Lilypond finds its Guile libraries by looking at the path
in argv[0], so it should be hardcoded to the real absolute path to the
executable.

(cherry picked from commit 2de259f574)
2015-10-09 07:31:42 -05:00
Eelco Dolstra
18b210344e nixUnstable: Update to 1.11pre4243_2075ec8
(cherry picked from commit 24483ebe47)
2015-10-08 15:58:21 +02:00
Eelco Dolstra
dfc1a3444a debian: Update to 7.9, 8.2
(cherry picked from commit 7260c04266)
2015-10-08 11:22:00 +02:00
Eelco Dolstra
43509b5328 Give more memory for the disk image builder
http://hydra.nixos.org/build/26480662
(cherry picked from commit 106738b196)
2015-10-08 11:21:44 +02:00
Eelco Dolstra
06ea5a4775 php: Update to 5.5.30, 5.6.14
(cherry picked from commit bcc7673a44)
2015-10-08 11:21:44 +02:00
Bjørn Forsman
53481fee51 nixos/jenkins: reduce default environment
Don't pull in all of environment.sessionVariables, only add what's
needed for nix and HTTPS to work (which was the point of the previous
patch).

(cherry picked from commit 04e748e61f)
2015-10-07 16:02:03 +02:00
Bjørn Forsman
3e77e3962a nixos/jenkins: rework environment handling
Jenkins gets (by default) an additional environment of

  { NIX_REMOTE = "daemon"; }

This has the following problems:

  1. NIX_REMOTE disappears when users specify additional environment
     variables, because defaults have low merge priority.
  2. nix cannot be used without additional NIX_PATH envvar, which is
     currently missing.
  3. If you try to use HTTPS, you'll see that jenkins lacks
     SSL_CERT_FILE envvar, causing it to fail.

This commit adds config.environment.sessionVariables and NIX_REMOTE to
the set of variables that are always there for jenkins, making nix and
HTTPS work out of the box.

services.jenkins.environment is now empty by default.

(cherry picked from commit 67723df930)
2015-10-07 16:02:03 +02:00
Nikolay Amiantov
b7d0730f66 glibc_multi: fix ldd for 64-bit ELFs 2015-10-07 16:46:49 +03:00
Bjørn Forsman
cbe6af180a virtualbox: 5.0.4 -> 5.0.6
Tested on release-15.09 branch.

(cherry picked from commit 5fee5c6d08)
2015-10-07 15:17:00 +02:00
Bjørn Forsman
f16c06efaf jquery-ui: 1.11.1 -> 1.11.4
(cherry picked from commit f91c5bcc7a)
2015-10-06 19:34:53 +02:00
Matthias Beyer
38be553cb8 jquery: 1.11.2 -> 1.11.3
[Bjørn: add 2nd hash (for the "uncompressed" download)]

(cherry picked from commit bff59c5f00)
2015-10-06 19:34:44 +02:00
Rob Vermaas
7c55e7b36c Update hologram 2015-10-06 15:07:46 +00:00
Rob Vermaas
e170fb4cb7 hologram-server: use bin output of goPackages.hologram. 2015-10-06 09:35:52 +00:00
Lluís Batlle i Rossell
f2264ec42a Updating twisterd to 0.9.30 2015-10-06 11:28:01 +02:00
Lluís Batlle i Rossell
159cae96e2 Updating internetarchive from 0.8.3 to 0.9.3
I had to update pyyaml for it to work.
2015-10-05 23:10:50 +02:00
Thomas Tuegel
580f3606e0 wrapQtProgram: --set does not take separator
The --set flag to wrapProgram does not take a separator character, just
a value.

(cherry picked from commit a5a031c8ff)
2015-10-05 21:50:30 +02:00
Eelco Dolstra
20556b6b8b thunderbird: Update to 38.3.0
(cherry picked from commit 562851a068)
2015-10-05 11:38:11 +02:00
Eelco Dolstra
a4a76c4bba thunderbird: Update to 38.2.0
(cherry picked from commit 422e3736d5)
2015-10-05 11:38:11 +02:00
Eelco Dolstra
eb6cab886f firefox: Update to 41.0.1
(cherry picked from commit 25bb1e10f3)
2015-10-05 11:38:11 +02:00
Eelco Dolstra
f6cd2cdcff linux: Update to 3.14.54
(cherry picked from commit 277d44f8fb)
2015-10-05 11:38:11 +02:00
William A. Kennington III
b0250c8750 kernel: 3.14.52 -> 3.14.53
(cherry picked from commit 97200b7808)
2015-10-05 11:38:11 +02:00
Lluís Batlle i Rossell
a1107b2bd2 Making pond with GUI (gtk). 2015-10-05 10:31:00 +02:00
William A. Kennington III
f120b1d4f8 kernel: 3.18.21 -> 3.18.22
(cherry picked from commit 62fa68e00c)
2015-10-05 09:33:22 +02:00
Eelco Dolstra
c6d11a1f0d Fix nixos-upgrade
(cherry picked from commit e65b8fcebe)
2015-10-05 09:32:55 +02:00
Eelco Dolstra
f7cd0f256d Remove qt55 hack 2015-10-05 09:31:42 +02:00
Edward Tjörnhammar
8e34eae42c makemkv: 1.9.5 -> 1.9.7 2015-10-04 17:08:39 +02:00
Bjørn Forsman
5b2d4084ef build-fhs-chrootenv: add /etc/os-release from host
This allows software inside the chroot to identify the host OS via the
standard /etc/os-release file.

(cherry picked from commit 05668fbe92)
2015-10-04 15:36:05 +02:00
Echo Nolan
5ba622f59f flashplayer: add myself to maintainers
(cherry picked from commit 89931277de)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-04 15:25:13 +02:00
Echo Nolan
ea304dba4d flashplayer: 11.2.202.508 -> 11.2.202.521 security
Several CVEs, listed here:
https://helpx.adobe.com/security/products/flash-player/apsb15-23.html

Tested by installing firefox-wrapper with nix-env and running twitch.tv
and a flash game.

(cherry picked from commit 78dd7f8543)
Signed-off-by: Domen Kožar <domen@dev.si>
2015-10-04 15:25:01 +02:00
Bjørn Forsman
ab0a464e4b nixos/docker: default storageDriver to "devicemapper"
Commit 9bfe92ecee ("docker: Minor improvements, fix failing test") added
the services.docker.storageDriver option, made it mandatory but didn't
give it a default value. This results in an ugly traceback when users
enable docker, if they don't pay enough attention to also set the
storageDriver option. (An attempt was made to add an assertion, but it
didn't work, possibly because of how "mkMerge" works.)

The arguments against a default value were that the optimal value
depends on the filesystem on the host. This is, AFAICT, only in part
true. (It seems some backends are filesystem agnostic.) Also, docker
itself uses a default storage driver, "devicemapper", when no
--storage-driver=x options are given. Hence, we use the same value as
default.

Add a FIXME comment that 'devicemapper' breaks NixOS VM tests (for yet
unknown reasons), so we still run those with the 'overlay' driver.

Closes #10100 and #10217.

(cherry picked from commit 5f17aeb403)
2015-10-04 14:36:38 +02:00
Bjørn Forsman
01906ec98a nixos/modules: simplify pkgs.zfs handling
Thanks, @lethalman.

(cherry picked from commit 424e6e501a)
2015-10-04 14:33:03 +02:00
Casey Ransom
b9791bbf2f nixos/docker: Include ZFS commands in PATH for ZFS storagedriver
When using the ZFS storagedriver in docker, it shells out for the ZFS
commands. The path configuration for the systemd task does not include
ZFS, so if the driver is set to ZFS, add ZFS utilities to the PATH.

This will resolve https://github.com/NixOS/nixpkgs/issues/10127

[Bjørn: prefix commit message with "nixos/docker:", remove extra space
before ';']

(cherry picked from commit 791b600aac)
2015-10-04 14:15:04 +02:00
Shea Levy
59654c07bc Fix kernel config names for BRCMFMAC_*
(cherry picked from commit fc719c2437)
2015-10-03 15:35:24 -04:00
Shea Levy
d5e0d22d0f Linux: Enable PCIe and USB support for brcmfmac
(cherry picked from commit e7f0b0297d)
2015-10-03 15:26:27 -04:00
Shea Levy
a7dce5d910 Linux 4.2: Bump
(cherry picked from commit edefa43d49)
2015-10-03 15:26:11 -04:00
William A. Kennington III
6bafb04be9 kernel: Remove uneeded patch for 4.2
(cherry picked from commit e45e777c37)
2015-10-03 15:25:55 -04:00
William A. Kennington III
7f36016e0d kernel: 4.2.1 -> 4.2.2
(cherry picked from commit 05fd70b4be)
2015-10-03 15:25:44 -04:00
William A. Kennington III
0751b54c9b kernel: 4.2 -> 4.2.1
(cherry picked from commit 40396584eb)
2015-10-03 15:25:30 -04:00
Bjørn Forsman
cad293f28b build-fhs-chrootenv: add missing /usr/include
This patch brings the include/ directories of all specified packages to
appear under /usr/include in the FHS chroot. As per spec[1].

[1] http://www.pathname.com/fhs/pub/fhs-2.3.html#USRINCLUDEDIRECTORYFORSTANDARDINCLU

(cherry picked from commit cd22214e0e)
2015-10-03 13:37:38 +02:00
Renzo Carbonara
e64b9e7d1b nvidiabl: fix for kernel >= 4 (close #10174)
(cherry picked from commit 4902ec1c78)
2015-10-02 12:32:55 +02:00
Vladimír Čunát
6856df5528 qt55: mark lowPrio
Discussed in https://github.com/NixOS/nixpkgs/commit/cbe318d53170d#commitcomment-13493084
I didn't notice any non-derivation in the expressions,
but evaluation errors suggested there are some.
2015-10-01 13:07:38 +02:00
Thomas Tuegel
40234262ce qt55: init at 5.5.0
(cherry picked from commit fe49213ba6)
2015-10-01 12:50:43 +02:00
Thomas Tuegel
00bc3b86a7 lib.licenses: add fdl13
(cherry picked from commit e92cbb73e4)
2015-10-01 12:49:50 +02:00
Thomas Tuegel
d402ff6367 lib: add makeScope
(cherry picked from commit f9e5745efa)
2015-10-01 12:49:34 +02:00
643 changed files with 270821 additions and 16936 deletions

View File

@@ -1,6 +1,8 @@
if ! builtins ? nixVersion || builtins.compareVersions "1.8" builtins.nixVersion == 1 then
let requiredVersion = "1.8"; in
abort "This version of Nixpkgs requires Nix >= 1.8, please upgrade! See https://nixos.org/wiki/How_to_update_when_nix_is_too_old_to_evaluate_nixpkgs"
if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
abort "This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade! See https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_evaluate_Nixpkgs"
else

View File

@@ -236,6 +236,20 @@ c = lib.makeOverridable f { a = 1; b = 2; }</programlisting>
<literal>runScript</literal> parameter, which is a command that would be
executed inside the sandbox and passed all the command line arguments. It
default to <literal>bash</literal>.
</para>
<para>
It also uses <literal>CHROOTENV_EXTRA_BINDS</literal> environment variable
for binding extra directories in the sandbox to outside places. The format of
the variable is <literal>/mnt=test-mnt:/data</literal>, where
<literal>/mnt</literal> would be mounted as <literal>/test-mnt</literal>
and <literal>/data</literal> would be mounted as <literal>/data</literal>.
<literal>extraBindMounts</literal> array argument to
<function>buildFHSUserEnv</function> function is prepended to this variable.
Latter entries take priority if defined several times -- i.e. in case of
<literal>/data=data1:/data=data2</literal> the actual bind path would be
<literal>/data2</literal>.
</para>
<para>
One can create a simple environment using a <literal>shell.nix</literal>
like that:
</para>

View File

@@ -164,4 +164,23 @@ rec {
drv' = (lib.head outputsList).value;
in lib.deepSeq drv' drv';
/* Make a set of packages with a common scope. All packages called
with the provided `callPackage' will be evaluated with the same
arguments. Any package in the set may depend on any other. The
`override' function allows subsequent modification of the package
set in a consistent way, i.e. all packages in the set will be
called with the overridden packages. The package sets may be
hierarchical: the packages in the set are called with the scope
provided by `newScope' and the set provides a `newScope' attribute
which can form the parent scope for later package sets. */
makeScope = newScope: f:
let self = f self // {
newScope = scope: newScope (self // scope);
callPackage = self.newScope {};
override = g: makeScope newScope (self_:
let super = f self_;
in super // g super self_);
};
in self;
}

View File

@@ -155,6 +155,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = "GNU Free Documentation License v1.2";
};
fdl13 = spdx {
spdxId = "GFDL-1.3";
fullName = "GNU Free Documentation License v1.2";
};
free = {
fullName = "Unspecified free software license";
};

View File

@@ -7,6 +7,7 @@
so it's easy to ping a package @maintainer.
*/
aaronschif = "Aaron Schif <aaronschif@gmail.com>";
abaldeau = "Andreas Baldeau <andreas@baldeau.net>";
abbradar = "Nikolay Amiantov <ab@fmap.me>";
adev = "Adrien Devresse <adev@adev.name>";
@@ -85,10 +86,11 @@
eelco = "Eelco Dolstra <eelco.dolstra@logicblox.com>";
eikek = "Eike Kettner <eike.kettner@posteo.de>";
ellis = "Ellis Whitehead <nixos@ellisw.net>";
emery = "Emery Hemingway <emery@vfemail.net>";
ehmry = "Emery Hemingway <emery@vfemail.net>";
epitrochoid = "Mabry Cervin <mpcervin@uncg.edu>";
ericbmerritt = "Eric Merritt <eric@afiniate.com>";
ertes = "Ertugrul Söylemez <ertesx@gmx.de>";
exi = "Reno Reckling <nixos@reckling.org>";
exlevan = "Alexey Levan <exlevan@gmail.com>";
falsifian = "James Cook <james.cook@utoronto.ca>";
flosse = "Markus Kohlhase <mail@markus-kohlhase.de>";
@@ -168,12 +170,14 @@
mathnerd314 = "Mathnerd314 <mathnerd314.gph+hs@gmail.com>";
matthiasbeyer = "Matthias Beyer <mail@beyermatthias.de>";
mbakke = "Marius Bakke <ymse@tuta.io>";
mcmtroffaes = "Matthias C. M. Troffaes <matthias.troffaes@gmail.com>";
meditans = "Carlo Nucera <meditans@gmail.com>";
meisternu = "Matt Miemiec <meister@krutt.org>";
michelk = "Michel Kuhlmann <michel@kuhlmanns.info>";
mirdhyn = "Merlin Gaillard <mirdhyn@gmail.com>";
mschristiansen = "Mikkel Christiansen <mikkel@rheosystems.com>";
modulistic = "Pablo Costa <modulistic@gmail.com>";
mog = "Matthew O'Gorman <mog-lists@rldn.net>";
mornfall = "Petr Ročkai <me@mornfall.net>";
MP2E = "Cray Elliott <MP2E@archlinux.us>";
msackman = "Matthew Sackman <matthew@wellquite.org>";
@@ -197,9 +201,10 @@
pakhfn = "Fedor Pakhomov <pakhfn@gmail.com>";
pashev = "Igor Pashev <pashev.igor@gmail.com>";
pesterhazy = "Paulus Esterhazy <pesterhazy@gmail.com>";
phausmann = "Philipp Hausmann <nix@314.ch>";
phile314 = "Philipp Hausmann <nix@314.ch>";
philandstuff = "Philip Potter <philip.g.potter@gmail.com>";
phreedom = "Evgeny Egorochkin <phreedom@yandex.ru>";
phunehehe = "Hoang Xuan Phu <phunehehe@gmail.com>";
pierron = "Nicolas B. Pierron <nixos@nbp.name>";
piotr = "Piotr Pietraszkiewicz <ppietrasa@gmail.com>";
pjones = "Peter Jones <pjones@devalot.com>";
@@ -243,6 +248,7 @@
skeidel = "Sven Keidel <svenkeidel@gmail.com>";
smironov = "Sergey Mironov <ierton@gmail.com>";
spacefrogg = "Michael Raitza <spacefrogg-nixos@meterriblecrew.net>";
spinus = "Tomasz Czyż <tomasz.czyz@gmail.com>";
sprock = "Roger Mason <rmason@mun.ca>";
spwhitt = "Spencer Whitt <sw@swhitt.me>";
stephenmw = "Stephen Weinberg <stephen@q5comm.com>";
@@ -256,6 +262,7 @@
theuni = "Christian Theune <ct@flyingcircus.io>";
thoughtpolice = "Austin Seipp <aseipp@pobox.com>";
titanous = "Jonathan Rudenberg <jonathan@titanous.com>";
tokudan = "Daniel Frank <git@danielfrank.net>";
tomberek = "Thomas Bereknyei <tomberek@gmail.com>";
travisbhartwell = "Travis B. Hartwell <nafai@travishartwell.net>";
trino = "Hubert Mühlhans <muehlhans.hubert@ekodia.de>";

View File

@@ -185,9 +185,13 @@ rec {
versionAtLeast = v1: v2: !versionOlder v1 v2;
# Get the version of the specified derivation, as specified in its
# name attribute.
getVersion = drv: (builtins.parseDrvName drv.name).version;
# This function takes an argument that's either a derivation or a
# derivation's "name" attribute and extracts the version part from that
# argument. For example:
#
# lib.getVersion "youtube-dl-2016.01.01" ==> "2016.01.01"
# lib.getVersion pkgs.youtube-dl ==> "2016.01.01"
getVersion = x: (builtins.parseDrvName (x.name or x)).version;
# Extract name with version from URL. Ask for separator which is

View File

@@ -12,8 +12,46 @@ rec {
and = x: y: x && y;
mergeAttrs = x: y: x // y;
# Take a function and evaluate it with its own returned value.
fix = f: let result = f result; in result;
# Compute the fixed point of the given function `f`, which is usually an
# attribute set that expects its final, non-recursive representation as an
# argument:
#
# f = self: { foo = "foo"; bar = "bar"; foobar = self.foo + self.bar; }
#
# Nix evaluates this recursion until all references to `self` have been
# resolved. At that point, the final result is returned and `f x = x` holds:
#
# nix-repl> fix f
# { bar = "bar"; foo = "foo"; foobar = "foobar"; }
#
# See https://en.wikipedia.org/wiki/Fixed-point_combinator for further
# details.
fix = f: let x = f x; in x;
# A variant of `fix` that records the original recursive attribute set in the
# result. This is useful in combination with the `extends` function to
# implement deep overriding. See pkgs/development/haskell-modules/default.nix
# for a concrete example.
fix' = f: let x = f x // { __unfix__ = f; }; in x;
# Modify the contents of an explicitly recursive attribute set in a way that
# honors `self`-references. This is accomplished with a function
#
# g = self: super: { foo = super.foo + " + "; }
#
# that has access to the unmodified input (`super`) as well as the final
# non-recursive representation of the attribute set (`self`). `extends`
# differs from the native `//` operator insofar as that it's applied *before*
# references to `self` are resolved:
#
# nix-repl> fix (extends g f)
# { bar = "bar"; foo = "foo + "; foobar = "foo + bar"; }
#
# The name of the function is inspired by object-oriented inheritance, i.e.
# think of it as an infix operator `g extends f` that mimics the syntax from
# Java. It may seem counter-intuitive to have the "base class" as the second
# argument, but it's nice this way if several uses of `extends` are cascaded.
extends = f: rattrs: self: let super = rattrs self; in super // f self super;
# Flip the order of the arguments of a binary function.
flip = f: a: b: f b a;

View File

@@ -213,11 +213,18 @@ rec {
substSubModules = m: submodule m;
};
enum = values: mkOptionType {
name = "one of ${concatStringsSep ", " values}";
check = flip elem values;
merge = mergeOneOption;
};
enum = values:
let
show = v:
if builtins.isString v then ''"${v}"''
else if builtins.isInt v then builtins.toString v
else ''<${builtins.typeOf v}>'';
in
mkOptionType {
name = "one of ${concatMapStringsSep ", " show values}";
check = flip elem values;
merge = mergeOneOption;
};
either = t1: t2: mkOptionType {
name = "${t1.name} or ${t2.name}";

View File

@@ -1,97 +1,151 @@
#! /run/current-system/sw/bin/perl -w
#! /usr/bin/env nix-shell
#! nix-shell -i perl -p perl perlPackages.NetAmazonS3 nixUnstable
# This command uploads tarballs to tarballs.nixos.org, the
# content-addressed cache used by fetchurl as a fallback for when
# upstream tarballs disappear or change. Usage:
#
# 1) To upload a single file:
#
# $ copy-tarballs.pl --file /path/to/tarball.tar.gz
#
# 2) To upload all files obtained via calls to fetchurl in a Nix derivation:
#
# $ copy-tarballs.pl --expr '(import <nixpkgs> {}).hello'
use strict;
use XML::Simple;
use warnings;
use File::Basename;
use File::Path;
use File::Copy 'cp';
use IPC::Open2;
use JSON;
use Net::Amazon::S3;
use Nix::Store;
my $myDir = dirname($0);
# S3 setup.
my $aws_access_key_id = $ENV{'AWS_ACCESS_KEY_ID'} or die;
my $aws_secret_access_key = $ENV{'AWS_SECRET_ACCESS_KEY'} or die;
my $tarballsCache = $ENV{'NIX_TARBALLS_CACHE'} // "/tarballs";
my $s3 = Net::Amazon::S3->new(
{ aws_access_key_id => $aws_access_key_id,
aws_secret_access_key => $aws_secret_access_key,
retry => 1,
});
my $xml = `nix-instantiate --eval-only --xml --strict '<nixpkgs/maintainers/scripts/find-tarballs.nix>'`;
die "$0: evaluation failed\n" if $? != 0;
my $bucket = $s3->bucket("nixpkgs-tarballs") or die;
my $data = XMLin($xml) or die;
mkpath($tarballsCache);
mkpath("$tarballsCache/md5");
mkpath("$tarballsCache/sha1");
mkpath("$tarballsCache/sha256");
foreach my $file (@{$data->{list}->{attrs}}) {
my $url = $file->{attr}->{url}->{string}->{value};
my $algo = $file->{attr}->{type}->{string}->{value};
my $hash = $file->{attr}->{hash}->{string}->{value};
if ($url !~ /^http:/ && $url !~ /^https:/ && $url !~ /^ftp:/ && $url !~ /^mirror:/) {
print STDERR "skipping $url (unsupported scheme)\n";
next;
}
$url =~ /([^\/]+)$/;
my $fn = $1;
if (!defined $fn) {
print STDERR "skipping $url (no file name)\n";
next;
}
if ($fn =~ /[&?=%]/ || $fn =~ /^\./) {
print STDERR "skipping $url (bad character in file name)\n";
next;
}
if ($fn !~ /[a-zA-Z]/) {
print STDERR "skipping $url (no letter in file name)\n";
next;
}
if ($fn !~ /[0-9]/) {
print STDERR "skipping $url (no digit in file name)\n";
next;
}
if ($fn !~ /[-_\.]/) {
print STDERR "skipping $url (no dash/dot/underscore in file name)\n";
next;
}
my $dstPath = "$tarballsCache/$fn";
next if -e $dstPath;
print "downloading $url to $dstPath...\n";
next if $ENV{DRY_RUN};
$ENV{QUIET} = 1;
$ENV{PRINT_PATH} = 1;
my $fh;
my $pid = open($fh, "-|", "nix-prefetch-url", "--type", $algo, $url, $hash) or die;
waitpid($pid, 0) or die;
if ($? != 0) {
print STDERR "failed to fetch $url: $?\n";
next;
}
<$fh>; my $storePath = <$fh>; chomp $storePath;
die unless -e $storePath;
cp($storePath, $dstPath) or die;
my $md5 = hashFile("md5", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/md5/$md5");
my $sha1 = hashFile("sha1", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/sha1/$sha1");
my $sha256 = hashFile("sha256", 0, $storePath) or die;
symlink("../$fn", "$tarballsCache/sha256/$sha256");
$sha256 = hashFile("sha256", 1, $storePath) or die;
symlink("../$fn", "$tarballsCache/sha256/$sha256");
sub alreadyMirrored {
my ($algo, $hash) = @_;
return defined $bucket->get_key("$algo/$hash");
}
sub uploadFile {
my ($fn, $name) = @_;
my $md5_16 = hashFile("md5", 0, $fn) or die;
my $sha1_16 = hashFile("sha1", 0, $fn) or die;
my $sha256_32 = hashFile("sha256", 1, $fn) or die;
my $sha256_16 = hashFile("sha256", 0, $fn) or die;
my $sha512_32 = hashFile("sha512", 1, $fn) or die;
my $sha512_16 = hashFile("sha512", 0, $fn) or die;
my $mainKey = "sha512/$sha512_16";
# Upload the file as sha512/<hash-in-base-16>.
print STDERR "uploading $fn to $mainKey...\n";
$bucket->add_key_filename($mainKey, $fn, { 'x-amz-meta-original-name' => $name })
or die "failed to upload $fn to $mainKey\n";
# Create redirects from the other hash types.
sub redirect {
my ($name, $dest) = @_;
#print STDERR "linking $name to $dest...\n";
$bucket->add_key($name, "", { 'x-amz-website-redirect-location' => "/" . $dest })
or die "failed to create redirect from $name to $dest\n";
}
redirect "md5/$md5_16", $mainKey;
redirect "sha1/$sha1_16", $mainKey;
redirect "sha256/$sha256_32", $mainKey;
redirect "sha256/$sha256_16", $mainKey;
redirect "sha512/$sha512_32", $mainKey;
}
my $op = shift @ARGV;
if ($op eq "--file") {
my $res = 0;
foreach my $fn (@ARGV) {
eval {
if (alreadyMirrored("sha512", hashFile("sha512", 0, $fn))) {
print STDERR "$fn is already mirrored\n";
} else {
uploadFile($fn, basename $fn);
}
};
if ($@) {
warn "$@\n";
$res = 1;
}
}
exit $res;
}
elsif ($op eq "--expr") {
# Evaluate find-tarballs.nix.
my $expr = $ARGV[0] // die "$0: --expr requires a Nix expression\n";
my $pid = open(JSON, "-|", "nix-instantiate", "--eval-only", "--json", "--strict",
"<nixpkgs/maintainers/scripts/find-tarballs.nix>",
"--arg", "expr", $expr);
my $stdout = <JSON>;
waitpid($pid, 0);
die "$0: evaluation failed\n" if $?;
close JSON;
my $fetches = decode_json($stdout);
print STDERR "evaluation returned ", scalar(@{$fetches}), " tarballs\n";
# Check every fetchurl call discovered by find-tarballs.nix.
my $mirrored = 0;
my $have = 0;
foreach my $fetch (@{$fetches}) {
my $url = $fetch->{url};
my $algo = $fetch->{type};
my $hash = $fetch->{hash};
if ($url !~ /^http:/ && $url !~ /^https:/ && $url !~ /^ftp:/ && $url !~ /^mirror:/) {
print STDERR "skipping $url (unsupported scheme)\n";
next;
}
if (alreadyMirrored($algo, $hash)) {
$have++;
next;
}
print STDERR "mirroring $url...\n";
next if $ENV{DRY_RUN};
# Download the file using nix-prefetch-url.
$ENV{QUIET} = 1;
$ENV{PRINT_PATH} = 1;
my $fh;
my $pid = open($fh, "-|", "nix-prefetch-url", "--type", $algo, $url, $hash) or die;
waitpid($pid, 0) or die;
if ($? != 0) {
print STDERR "failed to fetch $url: $?\n";
next;
}
<$fh>; my $storePath = <$fh>; chomp $storePath;
uploadFile($storePath, $url);
$mirrored++;
}
print STDERR "mirrored $mirrored files, already have $have files\n";
}
else {
die "Syntax: $0 --file FILENAMES... | --expr EXPR\n";
}

View File

@@ -4,9 +4,11 @@
with import ../.. { };
with lib;
{ expr ? removeAttrs (import ../../pkgs/top-level/release.nix { }) [ "tarball" "unstable" ] }:
let
root = removeAttrs (import ../../pkgs/top-level/release.nix { }) [ "tarball" "unstable" ];
root = expr;
uniqueUrls = map (x: x.file) (genericClosure {
startSet = map (file: { key = file.url; inherit file; }) urls;
@@ -15,7 +17,10 @@ let
urls = map (drv: { url = head drv.urls; hash = drv.outputHash; type = drv.outputHashAlgo; }) fetchurlDependencies;
fetchurlDependencies = filter (drv: drv.outputHash or "" != "" && drv ? urls) dependencies;
fetchurlDependencies =
filter
(drv: drv.outputHash or "" != "" && drv.outputHashMode == "flat" && drv.postFetch or "" == "" && drv ? urls)
dependencies;
dependencies = map (x: x.value) (genericClosure {
startSet = map keyDrv (derivationsIn' root);

View File

@@ -31,10 +31,8 @@ let
else
fn;
# Convert the list of options into an XML file. The builtin
# unsafeDiscardStringContext is used to prevent the realisation of
# the store paths which are used in options definitions.
optionsXML = builtins.toFile "options.xml" (builtins.unsafeDiscardStringContext (builtins.toXML optionsList'));
# Convert the list of options into an XML file.
optionsXML = builtins.toFile "options.xml" (builtins.toXML optionsList');
optionsDocBook = runCommand "options-db.xml" {} ''
optionsXML=${optionsXML}
@@ -139,6 +137,8 @@ in rec {
''; # */
meta.description = "The NixOS manual in HTML format";
allowedReferences = ["out"];
};
manualPDF = stdenv.mkDerivation {
@@ -190,6 +190,8 @@ in rec {
${docbook5_xsl}/xml/xsl/docbook/manpages/docbook.xsl \
./man-pages.xml
'';
allowedReferences = ["out"];
};
}

View File

@@ -22,12 +22,13 @@
, # Shell code executed after the VM has finished.
postVM ? ""
, name ? "nixos-disk-image"
}:
with lib;
pkgs.vmTools.runInLinuxVM (
pkgs.runCommand "nixos-disk-image"
pkgs.runCommand name
{ preVM =
''
mkdir $out
@@ -39,6 +40,7 @@ pkgs.vmTools.runInLinuxVM (
exportReferencesGraph =
[ "closure" config.system.build.toplevel ];
inherit postVM;
memSize = 1024;
}
''
${if partitioned then ''
@@ -109,7 +111,7 @@ pkgs.vmTools.runInLinuxVM (
umount /mnt/proc /mnt/dev /mnt/sys
umount /mnt
# Do an fsck to make sure resize2fs works.
# Do a fsck to make sure resize2fs works.
fsck.${fsType} -f -y $rootDisk
''
)

View File

@@ -39,7 +39,6 @@
, # The volume ID.
volumeID ? ""
}:
assert bootable -> bootImage != "";
@@ -47,7 +46,7 @@ assert efiBootable -> efiBootImage != "";
assert usbBootable -> isohybridMbrImage != "";
stdenv.mkDerivation {
name = "iso9660-image";
name = isoName;
builder = ./make-iso9660-image.sh;
buildInputs = [perl xorriso syslinux];

View File

@@ -129,3 +129,4 @@ fi
mkdir -p $out/nix-support
echo $system > $out/nix-support/system
echo "file iso $out/iso/$isoName" >> $out/nix-support/hydra-build-products

View File

@@ -538,7 +538,7 @@ sub waitForX {
retry sub {
my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'session opened'");
return 0 if $status != 0;
($status, $out) = $self->execute("xwininfo -root > /dev/null 2>&1");
($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
return 1 if $status == 0;
}
});

View File

@@ -0,0 +1,46 @@
{ config, lib, ... }:
with lib;
{
options = {
environment.enableDebugInfo = mkOption {
type = types.bool;
default = false;
description = ''
Some NixOS packages provide debug symbols. However, these are
not included in the system closure by default to save disk
space. Enabling this option causes the debug symbols to appear
in <filename>/run/current-system/sw/lib/debug/.build-id</filename>,
where tools such as <command>gdb</command> can find them.
If you need debug symbols for a package that doesn't
provide them by default, you can enable them as follows:
<!-- FIXME: ugly, see #10721 -->
<programlisting>
nixpkgs.config.packageOverrides = pkgs: {
hello = overrideDerivation pkgs.hello (attrs: {
outputs = attrs.outputs or ["out"] ++ ["debug"];
buildInputs = attrs.buildInputs ++ [&lt;nixpkgs/pkgs/build-support/setup-hooks/separate-debug-info.sh>];
});
};
</programlisting>
'';
};
};
config = {
# FIXME: currently disabled because /lib is already in
# environment.pathsToLink, and we can't have both.
#environment.pathsToLink = [ "/lib/debug/.build-id" ];
environment.outputsToLink =
optional config.environment.enableDebugInfo "debug";
};
}

View File

@@ -70,8 +70,8 @@ in
type = types.attrsOf (types.listOf types.str);
example = { PATH = [ "/bin" "/sbin" ]; MANPATH = [ "/man" "/share/man" ]; };
description = ''
Attribute set of environment variable. Each attribute maps to a list
of relative paths. Each relative path is appended to the each profile
Attribute set of environment variable. Each attribute maps to a list
of relative paths. Each relative path is appended to the each profile
of <option>environment.profiles</option> to form the content of the
corresponding environment variable.
'';
@@ -136,6 +136,7 @@ in
"''${pkgs.dash}/bin/dash"
'';
type = types.path;
visible = false;
description = ''
The shell executable that is linked system-wide to
<literal>/bin/sh</literal>. Please note that NixOS assumes all

View File

@@ -34,7 +34,6 @@ let
pkgs.xz
pkgs.less
pkgs.libcap
pkgs.man
pkgs.nano
pkgs.ncurses
pkgs.netcat
@@ -78,8 +77,16 @@ in
# to work.
default = [];
example = ["/"];
description = "List of directories to be symlinked in `/run/current-system/sw'.";
description = "List of directories to be symlinked in <filename>/run/current-system/sw</filename>.";
};
outputsToLink = mkOption {
type = types.listOf types.str;
default = [];
example = [ "doc" ];
description = "List of package outputs to be symlinked into <filename>/run/current-system/sw</filename>.";
};
};
system = {
@@ -103,9 +110,7 @@ in
[ "/bin"
"/etc/xdg"
"/info"
"/lib" # FIXME: remove
#"/lib/debug/.build-id" # enables GDB to find separated debug info
"/man"
"/lib" # FIXME: remove and update debug-info.nix
"/sbin"
"/share/applications"
"/share/desktop-directories"
@@ -113,7 +118,6 @@ in
"/share/emacs"
"/share/icons"
"/share/info"
"/share/man"
"/share/menus"
"/share/mime"
"/share/nano"
@@ -126,7 +130,7 @@ in
system.path = pkgs.buildEnv {
name = "system-path";
paths = config.environment.systemPackages;
inherit (config.environment) pathsToLink;
inherit (config.environment) pathsToLink outputsToLink;
ignoreCollisions = true;
# !!! Hacky, should modularise.
postBuild =

View File

@@ -17,7 +17,9 @@ let
mkdir -p $out
cp -prd ${pkgs.path} $out/nixos
chmod -R u+w $out/nixos
ln -s . $out/nixos/nixpkgs
if [ ! -e $out/nixos/nixpkgs ]; then
ln -s . $out/nixos/nixpkgs
fi
rm -rf $out/nixos/.git
echo -n ${config.system.nixosVersionSuffix} > $out/nixos/.version-suffix
'';

View File

@@ -43,6 +43,13 @@ let
LINUX /boot/bzImage
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}
INITRD /boot/initrd
# A variant to boot with 'nomodeset'
LABEL boot-nomodeset
MENU LABEL NixOS ${config.system.nixosVersion}${config.isoImage.appendToMenuLabel} (with nomodeset)
LINUX /boot/bzImage
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams} nomodeset
INITRD /boot/initrd
'';
isolinuxMemtest86Entry = ''
@@ -59,10 +66,18 @@ let
mkdir -p $out/EFI/boot
cp -v ${pkgs.gummiboot}/lib/gummiboot/gummiboot${targetArch}.efi $out/EFI/boot/boot${targetArch}.efi
mkdir -p $out/loader/entries
echo "title NixOS Live CD" > $out/loader/entries/nixos-livecd.conf
echo "linux /boot/bzImage" >> $out/loader/entries/nixos-livecd.conf
echo "initrd /boot/initrd" >> $out/loader/entries/nixos-livecd.conf
echo "options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}" >> $out/loader/entries/nixos-livecd.conf
# A variant to boot with 'nomodeset'
echo "title NixOS Live CD (with nomodeset)" > $out/loader/entries/nixos-livecd-nomodeset.conf
echo "linux /boot/bzImage" >> $out/loader/entries/nixos-livecd-nomodeset.conf
echo "initrd /boot/initrd" >> $out/loader/entries/nixos-livecd-nomodeset.conf
echo "options init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams} nomodeset" >> $out/loader/entries/nixos-livecd-nomodeset.conf
echo "default nixos-livecd" > $out/loader/loader.conf
echo "timeout ${builtins.toString config.boot.loader.gummiboot.timeout}" >> $out/loader/loader.conf
'';
@@ -230,7 +245,6 @@ in
boot.kernelParams =
[ "root=LABEL=${config.isoImage.volumeID}"
"boot.shell_on_fail"
"nomodeset"
];
fileSystems."/" =

View File

@@ -42,6 +42,17 @@ let cfg = config.system.autoUpgrade; in
'';
};
dates = mkOption {
default = "04:40";
type = types.str;
description = ''
Specification (in the format described by
<citerefentry><refentrytitle>systemd.time</refentrytitle>
<manvolnum>5</manvolnum></citerefentry>) of the time at
which the update will occur.
'';
};
};
};
@@ -70,10 +81,10 @@ let cfg = config.system.autoUpgrade; in
path = [ pkgs.gnutar pkgs.xz config.nix.package ];
script = ''
${config.system.build.nixos-rebuild}/bin/nixos-rebuild test ${toString cfg.flags}
${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch ${toString cfg.flags}
'';
startAt = mkIf cfg.enable "04:40";
startAt = optionalString cfg.enable cfg.dates;
};
};

View File

@@ -148,7 +148,7 @@ sub pciCheck {
$device eq "0x4331" || $device eq "0x43a0" || $device eq "0x43b1"
) )
{
push @modulePackages, "\${config.boot.kernelPackages.broadcom_sta}";
push @modulePackages, "config.boot.kernelPackages.broadcom_sta";
push @kernelModules, "wl";
}
@@ -406,13 +406,20 @@ EOF
# Generate the hardware configuration file.
sub toNixExpr {
sub toNixStringList {
my $res = "";
foreach my $s (@_) {
$res .= " \"$s\"";
}
return $res;
}
sub toNixList {
my $res = "";
foreach my $s (@_) {
$res .= " $s";
}
return $res;
}
sub multiLineList {
my $indent = shift;
@@ -428,9 +435,9 @@ sub multiLineList {
return $res;
}
my $initrdAvailableKernelModules = toNixExpr(uniq @initrdAvailableKernelModules);
my $kernelModules = toNixExpr(uniq @kernelModules);
my $modulePackages = toNixExpr(uniq @modulePackages);
my $initrdAvailableKernelModules = toNixStringList(uniq @initrdAvailableKernelModules);
my $kernelModules = toNixStringList(uniq @kernelModules);
my $modulePackages = toNixList(uniq @modulePackages);
my $fsAndSwap = "";
if (!$noFilesystems) {

View File

@@ -229,6 +229,7 @@
riak = 205;
shout = 206;
gateone = 207;
nm-openvpn = 217;
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
@@ -436,6 +437,7 @@
riak = 205;
#shout = 206; #unused
gateone = 207;
nm-openvpn = 217;
# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal

View File

@@ -1,7 +1,8 @@
[
./config/debug-info.nix
./config/fonts/corefonts.nix
./config/fonts/fontconfig.nix
./config/fonts/fontconfig-ultimate.nix
./config/fonts/fontconfig.nix
./config/fonts/fontdir.nix
./config/fonts/fonts.nix
./config/fonts/ghostscript.nix
@@ -22,9 +23,9 @@
./config/system-environment.nix
./config/system-path.nix
./config/timezone.nix
./config/vpnc.nix
./config/unix-odbc-drivers.nix
./config/users-groups.nix
./config/vpnc.nix
./config/zram.nix
./hardware/all-firmware.nix
./hardware/cpu/amd-microcode.nix
@@ -61,9 +62,11 @@
./programs/command-not-found/command-not-found.nix
./programs/dconf.nix
./programs/environment.nix
./programs/freetds.nix
./programs/ibus.nix
./programs/kbdlight.nix
./programs/light.nix
./programs/man.nix
./programs/nano.nix
./programs/screen.nix
./programs/shadow.nix
@@ -73,7 +76,6 @@
./programs/uim.nix
./programs/venus.nix
./programs/wvdial.nix
./programs/freetds.nix
./programs/xfs_quota.nix
./programs/zsh/zsh.nix
./rename.nix
@@ -116,6 +118,7 @@
./services/computing/slurm/slurm.nix
./services/continuous-integration/jenkins/default.nix
./services/continuous-integration/jenkins/slave.nix
./services/continuous-integration/jenkins/job-builder.nix
./services/databases/4store-endpoint.nix
./services/databases/4store.nix
./services/databases/couchdb.nix

View File

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

View File

@@ -36,7 +36,6 @@ in
askPassword = mkOption {
type = types.str;
default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
description = ''Program used by SSH to ask for passwords.'';
};
@@ -223,5 +222,7 @@ in
export SSH_ASKPASS=${askPassword}
'';
programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
};
}

View File

@@ -99,7 +99,6 @@ in
};
outputTheme = mkOption {
default = "${pkgs.venus}/themes/classic_fancy";
type = types.path;
description = ''
Directory containing a config.ini file which is merged with this one.
@@ -170,5 +169,7 @@ in
startAt = cfg.dates;
};
services.venus.outputTheme = mkDefault "${pkgs.venus}/themes/classic_fancy";
};
}

View File

@@ -32,7 +32,6 @@ in {
'';
};
configurationDir = mkOption {
default = "${activemq}/conf";
description = ''
The base directory for ActiveMQ's configuration.
By default, this directory is searched for a file named activemq.xml,
@@ -126,6 +125,8 @@ in {
'';
};
services.activemq.configurationDir = mkDefault "${activemq}/conf";
};
}

View File

@@ -48,11 +48,33 @@ in {
'';
};
listenAddress = mkOption {
default = "0.0.0.0";
example = "localhost";
type = types.str;
description = ''
Specifies the bind address on which the jenkins HTTP interface listens.
The default is the wildcard address.
'';
};
port = mkOption {
default = 8080;
type = types.int;
description = ''
Specifies port number on which the jenkins HTTP interface listens. The default is 8080.
Specifies port number on which the jenkins HTTP interface listens.
The default is 8080.
'';
};
prefix = mkOption {
default = "";
example = "/jenkins";
type = types.str;
description = ''
Specifies a urlPrefix to use with jenkins.
If the example /jenkins is given, the jenkins server will be
accessible using localhost:8080/jenkins.
'';
};
@@ -65,18 +87,22 @@ in {
};
environment = mkOption {
default = { NIX_REMOTE = "daemon"; };
default = { };
type = with types; attrsOf str;
description = ''
Additional environment variables to be passed to the jenkins process.
The environment will always include JENKINS_HOME.
As a base environment, jenkins receives NIX_PATH, SSL_CERT_FILE and
GIT_SSL_CAINFO from <option>environment.sessionVariables</option>,
NIX_REMOTE is set to "daemon" and JENKINS_HOME is set to
the value of <option>services.jenkins.home</option>. This option has
precedence and can be used to override those mentioned variables.
'';
};
extraOptions = mkOption {
type = types.listOf types.str;
default = [ ];
example = [ "--debug=9" "--httpListenAddress=localhost" ];
example = [ "--debug=9" ];
description = ''
Additional command line arguments to pass to Jenkins.
'';
@@ -106,27 +132,39 @@ in {
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = {
JENKINS_HOME = cfg.home;
} // cfg.environment;
environment =
let
selectedSessionVars =
lib.filterAttrs (n: v: builtins.elem n
[ "NIX_PATH"
"SSL_CERT_FILE"
"GIT_SSL_CAINFO"
])
config.environment.sessionVariables;
in
selectedSessionVars //
{ JENKINS_HOME = cfg.home;
NIX_REMOTE = "daemon";
} //
cfg.environment;
path = cfg.packages;
# Force .war (re)extraction, or else we might run stale Jenkins.
preStart = ''
rm -rf ${cfg.home}/war
'';
script = ''
${pkgs.jdk}/bin/java -jar ${pkgs.jenkins} --httpPort=${toString cfg.port} ${concatStringsSep " " cfg.extraOptions}
${pkgs.jdk}/bin/java -jar ${pkgs.jenkins} --httpListenAddress=${cfg.listenAddress} \
--httpPort=${toString cfg.port} \
--prefix=${cfg.prefix} \
${concatStringsSep " " cfg.extraOptions}
'';
postStart = ''
until ${pkgs.curl}/bin/curl -s -L localhost:${toString cfg.port} ; do
sleep 10
done
while true ; do
index=`${pkgs.curl}/bin/curl -s -L localhost:${toString cfg.port}`
if [[ !("$index" =~ 'Please wait while Jenkins is restarting' ||
"$index" =~ 'Please wait while Jenkins is getting ready to work') ]]; then
exit 0
fi
sleep 30
until ${pkgs.curl}/bin/curl -s -L --fail --head http://${cfg.listenAddress}:${toString cfg.port}${cfg.prefix} >/dev/null; do
sleep 2
done
'';

View File

@@ -0,0 +1,155 @@
{ config, lib, pkgs, ... }:
with lib;
let
jenkinsCfg = config.services.jenkins;
cfg = config.services.jenkins.jobBuilder;
in {
options = {
services.jenkins.jobBuilder = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether or not to enable the Jenkins Job Builder (JJB) service. It
allows defining jobs for Jenkins in a declarative manner.
Jobs managed through the Jenkins WebUI (or by other means) are left
unchanged.
Note that it really is declarative configuration; if you remove a
previously defined job, the corresponding job directory will be
deleted.
Please see the Jenkins Job Builder documentation for more info:
<link xlink:href="http://docs.openstack.org/infra/jenkins-job-builder/">
http://docs.openstack.org/infra/jenkins-job-builder/</link>
'';
};
yamlJobs = mkOption {
default = "";
type = types.lines;
example = ''
- job:
name: jenkins-job-test-1
builders:
- shell: echo 'Hello world!'
'';
description = ''
Job descriptions for Jenkins Job Builder in YAML format.
'';
};
jsonJobs = mkOption {
default = [ ];
type = types.listOf types.str;
example = literalExample ''
[
'''
[ { "job":
{ "name": "jenkins-job-test-2",
"builders": [ "shell": "echo 'Hello world!'" ]
}
}
]
'''
]
'';
description = ''
Job descriptions for Jenkins Job Builder in JSON format.
'';
};
nixJobs = mkOption {
default = [ ];
type = types.listOf types.attrs;
example = literalExample ''
[ { job =
{ name = "jenkins-job-test-3";
builders = [
{ shell = "echo 'Hello world!'"; }
];
};
}
];
'';
description = ''
Job descriptions for Jenkins Job Builder in Nix format.
This is a trivial wrapper around jsonJobs, using builtins.toJSON
behind the scene.
'';
};
};
};
config = mkIf (jenkinsCfg.enable && cfg.enable) {
systemd.services.jenkins-job-builder = {
description = "Jenkins Job Builder Service";
# JJB can run either before or after jenkins. We chose after, so we can
# always use curl to notify (running) jenkins to reload its config.
after = [ "jenkins.service" ];
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ jenkins-job-builder curl ];
# Q: Why manipulate files directly instead of using "jenkins-jobs upload [...]"?
# A: Because this module is for administering a local jenkins install,
# and using local file copy allows us to not worry about
# authentication.
script =
let
yamlJobsFile = builtins.toFile "jobs.yaml" cfg.yamlJobs;
jsonJobsFiles =
map (x: (builtins.toFile "jobs.json" x))
(cfg.jsonJobs ++ [(builtins.toJSON cfg.nixJobs)]);
jobBuilderOutputDir = "/run/jenkins-job-builder/output";
# Stamp file is placed in $JENKINS_HOME/jobs/$JOB_NAME/ to indicate
# ownership. Enables tracking and removal of stale jobs.
ownerStamp = ".config-xml-managed-by-nixos-jenkins-job-builder";
in
''
rm -rf ${jobBuilderOutputDir}
cur_decl_jobs=/run/jenkins-job-builder/declarative-jobs
rm -f "$cur_decl_jobs"
# Create / update jobs
mkdir -p ${jobBuilderOutputDir}
for inputFile in ${yamlJobsFile} ${concatStringsSep " " jsonJobsFiles}; do
HOME="${jenkinsCfg.home}" "${pkgs.jenkins-job-builder}/bin/jenkins-jobs" --ignore-cache test -o "${jobBuilderOutputDir}" "$inputFile"
done
for file in "${jobBuilderOutputDir}/"*; do
test -f "$file" || continue
jobname="$(basename $file)"
jobdir="${jenkinsCfg.home}/jobs/$jobname"
echo "Creating / updating job \"$jobname\""
mkdir -p "$jobdir"
touch "$jobdir/${ownerStamp}"
cp "$file" "$jobdir/config.xml"
echo "$jobname" >> "$cur_decl_jobs"
done
# Remove stale jobs
for file in "${jenkinsCfg.home}"/jobs/*/${ownerStamp}; do
test -f "$file" || continue
jobdir="$(dirname $file)"
jobname="$(basename "$jobdir")"
grep --quiet --line-regexp "$jobname" "$cur_decl_jobs" 2>/dev/null && continue
echo "Deleting stale job \"$jobname\""
rm -rf "$jobdir"
done
echo "Asking Jenkins to reload config"
curl --silent -X POST http://${jenkinsCfg.listenAddress}:${toString jenkinsCfg.port}${jenkinsCfg.prefix}/reload
'';
serviceConfig = {
User = jenkinsCfg.user;
RuntimeDirectory = "jenkins-job-builder";
};
};
};
}

View File

@@ -122,8 +122,8 @@ in
example = literalExample "pkgs.postgis";
description = ''
When this list contains elements a new store path is created.
PostgreSQL and the elments are symlinked into it. Then pg_config,
postgres and pc_ctl are copied to make them use the new
PostgreSQL and the elements are symlinked into it. Then pg_config,
postgres and pg_ctl are copied to make them use the new
$out/lib directory as pkglibdir. This makes it possible to use postgis
without patching the .sql files which reference $libdir/postgis-1.5.
'';
@@ -202,6 +202,8 @@ in
# For non-root operation.
initdb
fi
# See postStart!
touch "${cfg.dataDir}/.first_startup"
fi
ln -sfn "${configFile}" "${cfg.dataDir}/postgresql.conf"

View File

@@ -36,7 +36,6 @@ in
hardware.sane.configDir = mkOption {
type = types.string;
default = "${saneConfig}/etc/sane.d";
description = "The value of SANE_CONFIG_DIR.";
};
@@ -47,6 +46,8 @@ in
config = mkIf config.hardware.sane.enable {
hardware.sane.configDir = mkDefault "${saneConfig}/etc/sane.d";
environment.systemPackages = backends;
environment.sessionVariables = {
SANE_CONFIG_DIR = config.hardware.sane.configDir;

View File

@@ -8,7 +8,16 @@ cfg = config.services.tlp;
tlp = pkgs.tlp.override { kmod = config.system.sbin.modprobe; };
confFile = pkgs.writeText "tlp" (builtins.readFile "${tlp}/etc/default/tlp" + cfg.extraConfig);
# XXX: We can't use writeTextFile + readFile here because it triggers
# TLP build to get the .drv (even on --dry-run).
confFile = pkgs.runCommand "tlp"
{ config = cfg.extraConfig;
passAsFile = [ "config" ];
}
''
cat ${tlp}/etc/default/tlp > $out
cat $configPath >> $out
'';
in

View File

@@ -84,10 +84,10 @@ in
type = types.lines;
default = ''stdin { type => "example" }'';
description = "Logstash input configuration.";
example = ''
example = literalExample ''
# Read from journal
pipe {
command => "${pkgs.systemd}/bin/journalctl -f -o json"
command => "''${pkgs.systemd}/bin/journalctl -f -o json"
type => "syslog" codec => json {}
}
'';

View File

@@ -9,6 +9,11 @@ let
conf = writeText "smtpd.conf" cfg.serverConfiguration;
args = concatStringsSep " " cfg.extraServerArgs;
sendmail = pkgs.runCommand "opensmtpd-sendmail" {} ''
mkdir -p $out/bin
ln -s ${opensmtpd}/sbin/smtpctl $out/bin/sendmail
'';
in {
###### interface
@@ -23,6 +28,15 @@ in {
description = "Whether to enable the OpenSMTPD server.";
};
addSendmailToSystemPath = mkOption {
type = types.bool;
default = true;
description = ''
Whether to add OpenSMTPD's sendmail binary to the
system path or not.
'';
};
extraServerArgs = mkOption {
type = types.listOf types.str;
default = [];
@@ -53,7 +67,7 @@ in {
###### implementation
config = mkIf config.services.opensmtpd.enable {
config = mkIf cfg.enable {
users.extraGroups = {
smtpd.gid = config.ids.gids.smtpd;
smtpq.gid = config.ids.gids.smtpq;
@@ -80,9 +94,6 @@ in {
serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
};
environment.systemPackages = [ (pkgs.runCommand "opensmtpd-sendmail" {} ''
mkdir -p $out/bin
ln -s ${opensmtpd}/sbin/smtpctl $out/bin/sendmail
'') ];
environment.systemPackages = mkIf cfg.addSendmailToSystemPath [ sendmail ];
};
}

View File

@@ -379,7 +379,7 @@ in
${pkgs.coreutils}/bin/chmod -R ug+rwX /var/postfix/queue
${pkgs.coreutils}/bin/chown root:root /var/spool/mail
${pkgs.coreutils}/bin/chmod a+rwxt /var/spool/mail
${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/mail
${pkgs.coreutils}/bin/ln -sf /var/spool/mail /var/
ln -sf "${pkgs.postfix}/etc/postfix/"* /var/postfix/conf

View File

@@ -121,6 +121,7 @@ in
disnix =
{ description = "Disnix server";
wants = [ "dysnomia.target" ];
wantedBy = [ "multi-user.target" ];
after = [ "dbus.service" ]
++ optional config.services.httpd.enable "httpd.service"
@@ -137,6 +138,17 @@ in
environment = {
HOME = "/root";
};
preStart = ''
mkdir -p /etc/systemd-mutable/system
if [ ! -f /etc/systemd-mutable/system/dysnomia.target ]
then
( echo "[Unit]"
echo "Description=Services that are activated and deactivated by Dysnomia"
echo "After=final.target"
) > /etc/systemd-mutable/system/dysnomia.target
fi
'';
exec = "disnix-service";
};

View File

@@ -80,7 +80,6 @@ in
services.nixosManual.browser = mkOption {
type = types.path;
default = "${pkgs.w3m}/bin/w3m";
description = ''
Browser used to show the manual.
'';
@@ -93,7 +92,9 @@ in
system.build.manual = manual;
environment.systemPackages = [ manual.manpages manual.manual help ];
environment.systemPackages =
[ manual.manual help ]
++ optional config.programs.man.enable manual.manpages;
boot.extraTTYs = mkIf cfg.showManual ["tty${cfg.ttyNumber}"];
@@ -116,6 +117,8 @@ in
services.mingetty.helpLine = mkIf cfg.showManual
"\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual.";
services.nixosManual.browser = mkDefault "${pkgs.w3m}/bin/w3m";
};
}

View File

@@ -124,7 +124,7 @@ in {
assertions = [
{ assertion = cfg.databasePassword != "";
message = "databasePassword must be set";
message = "services.redmine.databasePassword must be set";
}
];

View File

@@ -97,7 +97,6 @@ in
transcoders = mkOption {
type = types.listOf types.path;
default = [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
description = ''
List of paths to transcoder executables that should be accessible
from Subsonic. Symlinks will be created to each executable inside
@@ -153,5 +152,8 @@ in
};
users.extraGroups.subsonic.gid = config.ids.gids.subsonic;
services.subsonic.transcoders = mkDefault [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
};
}

View File

@@ -9,7 +9,7 @@ let
tsdbHost = ${cfg.opentsdbHost}
httpListen = ${cfg.listenAddress}
stateFile = ${cfg.stateFile}
checkFrequency = 5m
checkFrequency = ${cfg.checkFrequency}
${cfg.extraConfig}
'';
@@ -77,6 +77,14 @@ in {
'';
};
checkFrequency = mkOption {
type = types.str;
default = "5m";
description = ''
Bosun's check frequency
'';
};
extraConfig = mkOption {
type = types.string;
default = "";

View File

@@ -7,150 +7,37 @@ let
b2s = val: if val then "true" else "false";
cfgFile = pkgs.writeText "grafana.ini" ''
app_name = grafana
app_mode = production
envOptions = {
PATHS_DATA = cfg.dataDir;
PATHS_LOGS = "${cfg.dataDir}/log";
[server]
; protocol (http or https)
protocol = ${cfg.protocol}
; the ip address to bind to, empty will bind to all interfaces
http_addr = ${cfg.addr}
; the http port to use
http_port = ${toString cfg.port}
; The public facing domain name used to access grafana from a browser
domain = ${cfg.domain}
; the full public facing url
root_url = ${cfg.rootUrl}
router_logging = false
; the path relative to the binary where the static (html/js/css) files are placed
static_root_path = ${cfg.staticRootPath}
; enable gzip
enable_gzip = false
; https certs & key file
cert_file = ${cfg.certFile}
cert_key = ${cfg.certKey}
SERVER_PROTOCOL = cfg.protocol;
SERVER_HTTP_ADDR = cfg.addr;
SERVER_HTTP_PORT = cfg.port;
SERVER_DOMAIN = cfg.domain;
SERVER_ROOT_URL = cfg.rootUrl;
SERVER_STATIC_ROOT_PATH = cfg.staticRootPath;
SERVER_CERT_FILE = cfg.certFile;
SERVER_CERT_KEY = cfg.certKey;
[analytics]
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
# No ip addresses are being tracked, only simple counters to track
# running instances, dashboard and error counts. It is very helpful to us.
# Change this option to false to disable reporting.
reporting_enabled = true
; Google Analytics universal tracking code, only enabled if you specify an id here
google_analytics_ua_id =
DATABASE_TYPE = cfg.database.type;
DATABASE_HOST = cfg.database.host;
DATABASE_NAME = cfg.database.name;
DATABASE_USER = cfg.database.user;
DATABASE_PASSWORD = cfg.database.password;
DATABASE_PATH = cfg.database.path;
[database]
; Either "mysql", "postgres" or "sqlite3", it's your choice
type = ${cfg.database.type}
host = ${cfg.database.host}
name = ${cfg.database.name}
user = ${cfg.database.user}
password = ${cfg.database.password}
; For "postgres" only, either "disable", "require" or "verify-full"
ssl_mode = disable
; For "sqlite3" only
path = ${cfg.database.path}
SECURITY_ADMIN_USER = cfg.security.adminUser;
SECURITY_ADMIN_PASSWORD = cfg.security.adminPassword;
SECURITY_SECRET_KEY = cfg.security.secretKey;
[session]
; Either "memory", "file", "redis", "mysql", default is "memory"
provider = file
; Provider config options
; memory: not have any config yet
; file: session file path, e.g. `data/sessions`
; redis: config like redis server addr, poolSize, password, e.g. `127.0.0.1:6379,100,grafana`
; mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1)/database_name`
provider_config = data/sessions
; Session cookie name
cookie_name = grafana_sess
; If you use session in https only, default is false
cookie_secure = false
; Session life time, default is 86400
session_life_time = 86400
; session id hash func, Either "sha1", "sha256" or "md5" default is sha1
session_id_hashfunc = sha1
; Session hash key, default is use random string
session_id_hashkey =
USERS_ALLOW_SIGN_UP = b2s cfg.users.allowSignUp;
USERS_ALLOW_ORG_CREATE = b2s cfg.users.allowOrgCreate;
USERS_AUTO_ASSIGN_ORG = b2s cfg.users.autoAssignOrg;
USERS_AUTO_ASSIGN_ORG_ROLE = cfg.users.autoAssignOrgRole;
[security]
; default admin user, created on startup
admin_user = ${cfg.security.adminUser}
; default admin password, can be changed before first start of grafana, or in profile settings
admin_password = ${cfg.security.adminPassword}
; used for signing
secret_key = ${cfg.security.secretKey}
; Auto-login remember days
login_remember_days = 7
cookie_username = grafana_user
cookie_remember_name = grafana_remember
[users]
; disable user signup / registration
allow_sign_up = ${b2s cfg.users.allowSignUp}
; Allow non admin users to create organizations
allow_org_create = ${b2s cfg.users.allowOrgCreate}
# Set to true to automatically assign new users to the default organization (id 1)
auto_assign_org = ${b2s cfg.users.autoAssignOrg}
; Default role new users will be automatically assigned (if disabled above is set to true)
auto_assign_org_role = ${cfg.users.autoAssignOrgRole}
[auth.anonymous]
; enable anonymous access
enabled = ${b2s cfg.auth.anonymous.enable}
; specify organization name that should be used for unauthenticated users
org_name = Main Org.
; specify role for unauthenticated users
org_role = Viewer
[auth.github]
enabled = false
client_id = some_id
client_secret = some_secret
scopes = user:email
auth_url = https://github.com/login/oauth/authorize
token_url = https://github.com/login/oauth/access_token
[auth.google]
enabled = false
client_id = some_client_id
client_secret = some_client_secret
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url = https://accounts.google.com/o/oauth2/auth
token_url = https://accounts.google.com/o/oauth2/token
[log]
root_path = data/log
; Either "console", "file", default is "console"
; Use comma to separate multiple modes, e.g. "console, file"
mode = console
; Buffer length of channel, keep it as it is if you don't know what it is.
buffer_len = 10000
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
level = Info
; For "console" mode only
[log.console]
level =
; For "file" mode only
[log.file]
level =
; This enables automated log rotate(switch of following options), default is true
log_rotate = true
; Max line number of single file, default is 1000000
max_lines = 1000000
; Max size shift of single file, default is 28 means 1 << 28, 256MB
max_lines_shift = 28
; Segment log daily, default is true
daily_rotate = true
; Expired days of log file(delete after max days), default is 7
max_days = 7
[event_publisher]
enabled = false
rabbitmq_url = amqp://localhost/
exchange = grafana_events
'';
AUTH_ANONYMOUS_ENABLE = b2s cfg.auth.anonymous.enable;
} // cfg.extraOptions;
in {
options.services.grafana = {
@@ -200,13 +87,12 @@ in {
staticRootPath = mkOption {
description = "Root path for static assets.";
default = "${cfg.package}/share/go/src/github.com/grafana/grafana/public";
type = types.str;
};
package = mkOption {
description = "Package to use.";
default = pkgs.goPackages.grafana;
default = pkgs.grafana;
type = types.package;
};
@@ -307,22 +193,36 @@ in {
type = types.bool;
};
};
extraOptions = mkOption {
description = ''
Extra configuration options passed as env variables as specified in
<link xlink:href="http://docs.grafana.org/installation/configuration/">documentation</link>,
but without GF_ prefix
'';
default = {};
type = types.attrsOf types.str;
};
};
config = mkIf cfg.enable {
warnings = [
"Grafana passwords will be stored as plaintext in nix store!"
"Grafana passwords will be stored as plaintext in the Nix store!"
];
systemd.services.grafana = {
description = "Grafana Service Daemon";
wantedBy = ["multi-user.target"];
after = ["networking.target"];
environment = mapAttrs' (n: v: nameValuePair "GF_${n}" (toString v)) envOptions;
serviceConfig = {
ExecStart = "${cfg.package}/bin/grafana --config ${cfgFile} web";
ExecStart = "${cfg.package}/bin/grafana -homepath ${cfg.dataDir}";
WorkingDirectory = cfg.dataDir;
User = "grafana";
};
preStart = ''
ln -fs ${cfg.package}/share/grafana/conf ${cfg.dataDir}
'';
};
users.extraUsers.grafana = {
@@ -331,5 +231,8 @@ in {
home = cfg.dataDir;
createHome = true;
};
services.grafana.staticRootPath = mkDefault "${cfg.package}/share/grafana/public";
};
}

View File

@@ -249,13 +249,13 @@ in {
};
enableAggregator = mkOption {
description = "Whether to enable carbon agregator, the carbon buffering service.";
description = "Whether to enable carbon aggregator, the carbon buffering service.";
default = false;
type = types.bool;
};
aggregationRules = mkOption {
description = "Defines if and how received metrics will be agregated.";
description = "Defines if and how received metrics will be aggregated.";
default = null;
type = types.uniq (types.nullOr types.string);
example = ''

View File

@@ -14,7 +14,7 @@ in
options = {
services.teamviewer.enable = mkEnableOption "teamviewer daemon";
services.teamviewer.enable = mkEnableOption "TeamViewer daemon";
};
@@ -27,8 +27,9 @@ in
systemd.services.teamviewerd = {
description = "TeamViewer remote control daemon";
wantedBy = [ "graphical.target" ];
wantedBy = [ "multi-user.target" ];
after = [ "NetworkManager-wait-online.service" "network.target" ];
preStart = "mkdir -pv /var/lib/teamviewer /var/log/teamviewer";
serviceConfig = {
Type = "forking";

View File

@@ -97,8 +97,8 @@ in
description = ''
Enabling this will add a line directly after pam_unix.so.
Whenever a password is changed the samba password will be updated as well.
However you still yave to add the samba password once using smbpasswd -a user
If you don't want to maintain an extra pwd database you still can send plain text
However, you still have to add the samba password once, using smbpasswd -a user.
If you don't want to maintain an extra password database, you still can send plain text
passwords which is not secure.
'';
};

View File

@@ -201,6 +201,7 @@ in
for d in '${varlibdir}' '${spooldir}' '${logdir}'; do
# TODO: Make exceptions for /var directories that likely should be updated
if [ ! -e "$d" ]; then
mkdir -p "$d"
cp --recursive ${pkgs.asterisk}/"$d" "$d"
chown --recursive ${asteriskUser} "$d"
find "$d" -type d | xargs chmod 0755

View File

@@ -52,10 +52,7 @@ in
default = "opendns";
type = types.nullOr types.string;
description = ''
The name of the upstream DNSCrypt resolver to use. See
<literal>${resolverListFile}</literal> for alternative resolvers
(e.g., if you are concerned about logging and/or server
location).
The name of the upstream DNSCrypt resolver to use.
'';
};
customResolver = mkOption {

View File

@@ -40,7 +40,6 @@ let
polkit.addRule(function(action, subject) {
if (
subject.isInGroup("networkmanager")
&& subject.active
&& (action.id.indexOf("org.freedesktop.NetworkManager.") == 0
|| action.id.indexOf("org.freedesktop.ModemManager") == 0
))
@@ -207,10 +206,18 @@ in {
environment.systemPackages = cfg.packages;
users.extraGroups = singleton {
users.extraGroups = [{
name = "networkmanager";
gid = config.ids.gids.networkmanager;
};
}
{
name = "nm-openvpn";
gid = config.ids.gids.nm-openvpn;
}];
users.extraUsers = [{
name = "nm-openvpn";
uid = config.ids.uids.nm-openvpn;
}];
systemd.packages = cfg.packages;

View File

@@ -56,7 +56,7 @@ in
serviceConfig = {
ExecStart = "${pkgs.nix-serve}/bin/nix-serve " +
"--port ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
"--listen ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
User = "nix-serve";
Group = "nogroup";
};

View File

@@ -33,7 +33,7 @@ in
type = types.str;
description = "
The Seeks server configuration. If it is not specified,
a default configuration is used (${seeks}/etc/seeks).
a default configuration is used.
";
};

View File

@@ -21,7 +21,7 @@ in
description = ''
Whether to enable the Syncthing, self-hosted open-source alternative
to Dropbox and BittorrentSync. Initial interface will be
available on http://127.0.0.1:8080/.
available on http://127.0.0.1:8384/.
'';
};
@@ -42,6 +42,17 @@ in
'';
};
package = mkOption {
type = types.package;
default = pkgs.syncthing;
example = literalExample "pkgs.syncthing";
description = ''
Syncthing package to use.
'';
};
};
};
@@ -71,7 +82,7 @@ in
};
environment.systemPackages = [ pkgs.syncthing ];
environment.systemPackages = [ cfg.package ];
};

View File

@@ -50,20 +50,20 @@ in
jails = mkOption {
default = { };
example =
{ "apache-nohome-iptables" =
''
# Block an IP address if it accesses a non-existent
# home directory more than 5 times in 10 minutes,
# since that indicates that it's scanning.
filter = apache-nohome
action = iptables-multiport[name=HTTP, port="http,https"]
logpath = /var/log/httpd/error_log*
findtime = 600
bantime = 600
maxretry = 5
'';
};
example = literalExample ''
{ apache-nohome-iptables = '''
# Block an IP address if it accesses a non-existent
# home directory more than 5 times in 10 minutes,
# since that indicates that it's scanning.
filter = apache-nohome
action = iptables-multiport[name=HTTP, port="http,https"]
logpath = /var/log/httpd/error_log*
findtime = 600
bantime = 600
maxretry = 5
''';
}
'';
type = types.attrsOf types.lines;
description =
''
@@ -138,6 +138,7 @@ in
findtime = 600
maxretry = 3
backend = systemd
enabled = true
'';
# Block SSH if there are too many failing connection attempts.

View File

@@ -95,7 +95,7 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.goPackages.hologram}/bin/hologram-server --debug --conf ${cfgFile}";
ExecStart = "${pkgs.goPackages.hologram.bin}/bin/hologram-server --debug --conf ${cfgFile}";
};
};
};

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.9";
name= "mediawiki-1.23.13";
src = pkgs.fetchurl {
url = "http://download.wikimedia.org/mediawiki/1.23/${name}.tar.gz";
sha256 = "1l7k4g0pgz92yvrfr52w26x740s4362v0gc95pk0i30vn2sp5bql";
sha256 = "168wpf53n4ksj2g5q5r0hxapx6238dvsfng5ff9ixk6axsn0j5d0";
};
skins = config.skins;

View File

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

View File

@@ -44,7 +44,6 @@ let
"mod_flv_streaming"
"mod_magnet"
"mod_mysql_vhost"
"mod_rewrite"
"mod_scgi"
"mod_setenv"
"mod_trigger_b4_dl"

View File

@@ -44,8 +44,7 @@ in {
phpIni = mkOption {
type = types.path;
default = "${cfg.phpPackage}/etc/php-recommended.ini";
description = "php.ini file to use.";
description = "PHP configuration file to use.";
};
poolConfigs = mkOption {
@@ -86,5 +85,7 @@ in {
};
};
services.phpfpm.phpIni = mkDefault "${cfg.phpPackage}/etc/php-recommended.ini";
};
}

View File

@@ -107,6 +107,12 @@ in
sed -e '/nix\\store\|nix\/store/ d' -i $HOME/.config/Trolltech.conf
fi
# Load PulseAudio module for routing support.
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
${optionalString config.hardware.pulseaudio.enable ''
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
''}
# Start KDE.
exec ${kde_workspace}/bin/startkde
'';

View File

@@ -76,7 +76,15 @@ in
services.xserver.desktopManager.session = singleton {
name = "kde5";
bgSupport = true;
start = ''exec ${plasma5.plasma-workspace}/bin/startkde;'';
start = ''
# Load PulseAudio module for routing support.
# See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
${optionalString config.hardware.pulseaudio.enable ''
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
''}
exec ${plasma5.plasma-workspace}/bin/startkde
'';
};
security.setuidOwners = singleton {

View File

@@ -90,9 +90,6 @@ let
# Publish access credentials in the root window.
${config.hardware.pulseaudio.package}/bin/pactl load-module module-x11-publish "display=$DISPLAY"
# Keep track of devices. Mostly useful for Phonon/KDE.
${config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
''}
# Tell systemd about our $DISPLAY. This is needed by the

View File

@@ -57,6 +57,7 @@ let
kdmrc = pkgs.stdenv.mkDerivation {
name = "kdmrc";
config = defaultConfig + cfg.extraConfig;
preferLocalBuild = true;
buildCommand =
''
echo "$config" > $out

View File

@@ -104,7 +104,6 @@ in
};
background = mkOption {
default = "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
description = ''
The background image or color to use.
'';
@@ -172,5 +171,8 @@ in
};
users.extraGroups.lightdm.gid = config.ids.gids.lightdm;
services.xserver.displayManager.lightdm.background = mkDefault "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
};
}

View File

@@ -469,6 +469,7 @@ in
xorg.xsetroot
xorg.xinput
xorg.xprop
xorg.xauth
pkgs.xterm
pkgs.xdg_utils
]
@@ -487,7 +488,7 @@ in
systemd.services.display-manager =
{ description = "X11 Server";
after = [ "systemd-udev-settle.service" "local-fs.target" "acpid.service" ];
after = [ "systemd-udev-settle.service" "local-fs.target" "acpid.service" "systemd-logind.service" ];
restartIfChanged = false;
@@ -516,8 +517,7 @@ in
};
services.xserver.displayManager.xserverArgs =
[ "-ac"
"-terminate"
[ "-terminate"
"-logfile" "/var/log/X.${toString cfg.display}.log"
"-config ${configFile}"
":${toString cfg.display}" "vt${toString cfg.tty}"

View File

@@ -176,9 +176,10 @@ in
default = false;
description = ''
If enabled, copies the NixOS configuration file
<literal>$NIXOS_CONFIG</literal> (usually
<filename>/etc/nixos/configuration.nix</filename>)
to the system store path.
(usually <filename>/etc/nixos/configuration.nix</filename>)
and links it from the resulting system
(getting to <filename>/run/current-system/configuration.nix</filename>).
Note that only this single file is copied, even if it imports others.
'';
};
@@ -236,7 +237,9 @@ in
system.extraSystemBuilderCmds =
optionalString
config.system.copySystemConfiguration
"cp ${maybeEnv "NIXOS_CONFIG" "/etc/nixos/configuration.nix"} $out";
''ln -s '${import ../../../lib/from-env.nix "NIXOS_CONFIG" <nixos-config>}' \
"$out/configuration.nix"
'';
system.build.toplevel = system;

View File

@@ -158,7 +158,7 @@ in
boot.kernel.sysctl."kernel.printk" = config.boot.consoleLogLevel;
boot.kernelModules = [ "loop" "configs" "atkbd" ];
boot.kernelModules = [ "loop" "atkbd" ];
boot.initrd.availableKernelModules =
[ # Note: most of these (especially the SATA/PATA modules)
@@ -197,9 +197,6 @@ in
"hid_generic" "hid_lenovo"
"hid_apple" "hid_logitech_dj" "hid_lenovo_tpkbd" "hid_roccat"
# Unix domain sockets (needed by udev).
"unix"
# Misc. stuff.
"pcips2" "atkbd"

View File

@@ -387,6 +387,10 @@ sub addProfile {
my $curEntry = 0;
foreach my $link (@links) {
last if $curEntry++ >= $configurationLimit;
if (! -e "$link/nixos-version") {
warn "skipping corrupt system profile entry $link\n";
next;
}
my $date = strftime("%F", localtime(lstat($link)->mtime));
my $version =
-e "$link/nixos-version"

View File

@@ -140,6 +140,7 @@ done
# Create device nodes in /dev.
@preDeviceCommands@
echo "running udev..."
mkdir -p /etc/udev
ln -sfn @udevRules@ /etc/udev/rules.d
@@ -416,8 +417,18 @@ udevadm control --exit || true
# Kill any remaining processes, just to be sure we're not taking any
# with us into stage 2. But keep storage daemons like unionfs-fuse.
pkill -9 -v -f '@'
#
# Storage daemons are distinguished by an @ in front of their command line:
# https://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons/
local pidsToKill="$(pgrep -v -f '^@')"
for pid in $pidsToKill; do
# Make sure we don't kill kernel processes, see #15226 and:
# http://stackoverflow.com/questions/12213445/identifying-kernel-threads
readlink "/proc/$pid/exe" &> /dev/null || continue
# Try to avoid killing ourselves.
[ $pid -eq $$ ] && continue
kill -9 "$pid"
done
if test -n "$debug1mounts"; then fail; fi

View File

@@ -203,7 +203,7 @@ let
inherit (config.boot) resumeDevice devSize runSize;
inherit (config.boot.initrd) checkJournalingFS
preLVMCommands postDeviceCommands postMountCommands kernelModules;
preLVMCommands preDeviceCommands postDeviceCommands postMountCommands 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) config.swapDevices);
@@ -303,6 +303,15 @@ in
'';
};
boot.initrd.preDeviceCommands = mkOption {
default = "";
type = types.lines;
description = ''
Shell commands to be executed before udev is started to create
device nodes.
'';
};
boot.initrd.postDeviceCommands = mkOption {
default = "";
type = types.lines;

View File

@@ -90,7 +90,7 @@ in
serviceConfig.Type = "forking";
serviceConfig.ExecStart = ''
@${pkgs.nfs-utils}/sbin/rpc.statd rpc.statd --no-notify \
${if cfg.statdPort != null then "-p ${toString statdPort}" else ""}
${if cfg.statdPort != null then "-p ${toString cfg.statdPort}" else ""}
'';
serviceConfig.Restart = "always";
};

View File

@@ -21,9 +21,9 @@ let
kernel = config.boot.kernelPackages;
splKernelPkg = if cfgZfs.useGit then kernel.spl_git else kernel.spl;
zfsKernelPkg = if cfgZfs.useGit then kernel.zfs_git else kernel.zfs;
zfsUserPkg = if cfgZfs.useGit then pkgs.zfs_git else pkgs.zfs;
splKernelPkg = kernel.spl;
zfsKernelPkg = kernel.zfs;
zfsUserPkg = pkgs.zfs;
autosnapPkg = pkgs.zfstools.override {
zfs = zfsUserPkg;
@@ -53,16 +53,6 @@ in
options = {
boot.zfs = {
useGit = mkOption {
type = types.bool;
default = false;
example = true;
description = ''
Use the git version of the SPL and ZFS packages.
Note that these are unreleased versions, with less testing, and therefore
may be more unstable.
'';
};
extraPools = mkOption {
type = types.listOf types.str;
@@ -83,6 +73,21 @@ in
'';
};
devNodes = mkOption {
type = types.path;
default = "/dev";
example = "/dev/disk/by-id";
description = ''
Name of directory from which to import ZFS devices.
Usually /dev works. However, ZFS import may fail if a device node is renamed.
It should therefore use stable device names, such as from /dev/disk/by-id.
The default remains /dev for 15.09, due to backwards compatibility concerns.
It will change to /dev/disk/by-id in the next NixOS release.
'';
};
forceImportRoot = mkOption {
type = types.bool;
default = true;
@@ -224,7 +229,7 @@ in
done
''] ++ (map (pool: ''
echo "importing root ZFS pool \"${pool}\"..."
zpool import -N $ZFS_FORCE "${pool}"
zpool import -d ${cfgZfs.devNodes} -N $ZFS_FORCE "${pool}"
'') rootPools));
};
@@ -265,7 +270,7 @@ in
};
script = ''
zpool_cmd="${zfsUserPkg}/sbin/zpool"
("$zpool_cmd" list "${pool}" >/dev/null) || "$zpool_cmd" import -N ${optionalString cfgZfs.forceImportAll "-f"} "${pool}"
("$zpool_cmd" list "${pool}" >/dev/null) || "$zpool_cmd" import -d ${cfgZfs.devNodes} -N ${optionalString cfgZfs.forceImportAll "-f"} "${pool}"
'';
};
in listToAttrs (map createImportService dataPools) // {

View File

@@ -43,6 +43,11 @@ let kernel = config.boot.kernelPackages.kernel; in
# into thinking they're running interactively.
environment.variables.PAGER = "";
boot.initrd.preDeviceCommands =
''
echo 600 > /proc/sys/kernel/hung_task_timeout_secs
'';
boot.initrd.postDeviceCommands =
''
# Using acpi_pm as a clock source causes the guest clock to

View File

@@ -8,7 +8,28 @@
with lib;
let cfg = config.ec2; in
let
cfg = config.ec2;
udhcpcScript = pkgs.writeScript "udhcp-script"
''
#! /bin/sh
if [ "$1" = bound ]; then
ip address add "$ip/$mask" dev "$interface"
if [ -n "$router" ]; then
ip route add default via "$router" dev "$interface"
fi
if [ -n "$dns" ]; then
rm -f /etc/resolv.conf
for i in $dns; do
echo "nameserver $dns" >> /etc/resolv.conf
done
fi
fi
'';
in
{
imports = [ ../profiles/headless.nix ./ec2-data.nix ./amazon-grow-partition.nix ];
@@ -20,8 +41,10 @@ let cfg = config.ec2; in
autoResize = true;
};
boot.initrd.kernelModules = [ "xen-blkfront" ];
boot.kernelModules = [ "xen-netfront" ];
boot.initrd.kernelModules =
[ "xen-blkfront" "xen-netfront"
"af_packet" # <- required by udhcpc
];
boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
# Prevent the nouveau kernel module from being loaded, as it
@@ -41,7 +64,6 @@ let cfg = config.ec2; in
# Force udev to exit to prevent random "Device or resource busy
# while trying to open /dev/xvda" errors from fsck.
udevadm control --exit || true
kill -9 -1
'';
# Mount all formatted ephemeral disks and activate all swap devices.
@@ -55,6 +77,18 @@ let cfg = config.ec2; in
# Nix operations.
boot.initrd.postMountCommands =
''
metaDir=$targetRoot/etc/ec2-metadata
mkdir -m 0755 $targetRoot/etc
mkdir -m 0700 -p "$metaDir"
echo "getting EC2 instance metadata..."
ip link set eth0 up
udhcpc --interface eth0 --quit --now --script ${udhcpcScript}
if ! [ -e "$metaDir/ami-manifest-path" ]; then
wget -q -O "$metaDir/ami-manifest-path" http://169.254.169.254/1.0/meta-data/ami-manifest-path
fi
diskNr=0
diskForUnionfs=
for device in /dev/xvd[abcde]*; do
@@ -81,7 +115,7 @@ let cfg = config.ec2; in
mkdir -m 1777 -p $targetRoot/$diskForUnionfs/root/tmp $targetRoot/tmp
mount --bind $targetRoot/$diskForUnionfs/root/tmp $targetRoot/tmp
if [ ! -e $targetRoot/.ebs ]; then
if [ "$(cat "$metaDir/ami-manifest-path")" != "(unknown)" ]; then
mkdir -m 755 -p $targetRoot/$diskForUnionfs/root/var $targetRoot/var
mount --bind $targetRoot/$diskForUnionfs/root/var $targetRoot/var

View File

@@ -46,12 +46,10 @@ in
storageDriver =
mkOption {
type = types.enum ["aufs" "btrfs" "devicemapper" "overlay" "zfs"];
default = "devicemapper";
description =
''
This option determines which Docker storage driver to use.
It is required but lacks a default value as its most
suitable value will depend the filesystems available on the
host.
'';
};
extraOptions =
@@ -129,7 +127,7 @@ in
LimitNPROC = 1048576;
} // proxy_env;
path = [ pkgs.kmod ];
path = [ pkgs.kmod ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
environment.MODULE_DIR = "/run/current-system/kernel-modules/lib/modules";
postStart = cfg.postStart;

View File

@@ -1,5 +0,0 @@
{ config, pkgs, modulesPath, ... }:
{
imports = [ "${modulesPath}/virtualisation/nova-image.nix" ];
}

View File

@@ -1,90 +1,45 @@
# Usage:
# $ NIXOS_CONFIG=`pwd`/nixos/modules/virtualisation/nova-image.nix nix-build '<nixpkgs/nixos>' -A config.system.build.novaImage
{ config, lib, pkgs, ... }:
with lib;
{
imports = [ ../profiles/qemu-guest.nix ../profiles/headless.nix ./ec2-data.nix ];
system.build.novaImage =
pkgs.vmTools.runInLinuxVM (
pkgs.runCommand "nova-image"
{ preVM =
''
mkdir $out
diskImage=$out/image
${pkgs.vmTools.qemu}/bin/qemu-img create -f raw $diskImage "4G"
mv closure xchg/
'';
buildInputs = [ pkgs.utillinux pkgs.perl ];
exportReferencesGraph =
[ "closure" config.system.build.toplevel ];
system.build.novaImage = import ../../lib/make-disk-image.nix {
inherit pkgs lib config;
partitioned = true;
diskSize = 1 * 1024;
configFile = pkgs.writeText "configuration.nix"
''
{
imports = [ <nixpkgs/nixos/modules/virtualisation/nova-image.nix> ];
}
''
# Create a single / partition.
${pkgs.parted}/sbin/parted /dev/vda mklabel msdos
${pkgs.parted}/sbin/parted /dev/vda -- mkpart primary ext2 1M -1s
. /sys/class/block/vda1/uevent
mknod /dev/vda1 b $MAJOR $MINOR
'';
};
# Create an empty filesystem and mount it.
${pkgs.e2fsprogs}/sbin/mkfs.ext3 -L nixos /dev/vda1
${pkgs.e2fsprogs}/sbin/tune2fs -c 0 -i 0 /dev/vda1
mkdir /mnt
mount /dev/vda1 /mnt
# The initrd expects these directories to exist.
mkdir /mnt/dev /mnt/proc /mnt/sys
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
# Copy all paths in the closure to the filesystem.
storePaths=$(perl ${pkgs.pathsFromGraph} /tmp/xchg/closure)
mkdir -p /mnt/nix/store
${pkgs.rsync}/bin/rsync -av $storePaths /mnt/nix/store/
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
# Create the system profile to allow nixos-rebuild to work.
chroot /mnt ${config.nix.package}/bin/nix-env --option build-users-group "" \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel}
# `nixos-rebuild' requires an /etc/NIXOS.
mkdir -p /mnt/etc
touch /mnt/etc/NIXOS
# `switch-to-configuration' requires a /bin/sh
mkdir -p /mnt/bin
ln -s ${config.system.build.binsh}/bin/sh /mnt/bin/sh
# Install a configuration.nix.
mkdir -p /mnt/etc/nixos
cp ${./nova-config.nix} /mnt/etc/nixos/configuration.nix
# Generate the GRUB menu.
chroot /mnt ${config.system.build.toplevel}/bin/switch-to-configuration boot
umount /mnt/proc /mnt/dev /mnt/sys
umount /mnt
''
);
imports = [
../profiles/qemu-guest.nix
../profiles/headless.nix
./ec2-data.nix
];
fileSystems."/".device = "/dev/disk/by-label/nixos";
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/vda";
boot.loader.grub.timeout = 0;
# Allow root logins
services.openssh.enable = true;
services.openssh.permitRootLogin = "without-password";
# Put /tmp and /var on /ephemeral0, which has a lot more space.
# Unfortunately we can't do this with the `fileSystems' option
# because it has no support for creating the source of a bind
# mount. Also, "move" /nix to /ephemeral0 by layering a unionfs-fuse
# mount on top of it so we have a lot more space for Nix operations.
/*
boot.initrd.postMountCommands =
''
@@ -106,10 +61,6 @@ with lib;
'';
boot.initrd.supportedFilesystems = [ "unionfs-fuse" ];
*/
*/
# Allow root logins only using the SSH key that the user specified
# at instance creation time.
services.openssh.enable = true;
services.openssh.permitRootLogin = "without-password";
}

View File

@@ -40,16 +40,17 @@ let
if [ -z "$TMPDIR" -o -z "$USE_TMPDIR" ]; then
TMPDIR=$(mktemp -d nix-vm.XXXXXXXXXX --tmpdir)
fi
# Create a directory for exchanging data with the VM.
mkdir -p $TMPDIR/xchg
${if cfg.useBootLoader then ''
# Create a writable copy/snapshot of the boot disk
# A writable boot disk can be booted from automatically
# Create a writable copy/snapshot of the boot disk.
# A writable boot disk can be booted from automatically.
${pkgs.qemu_kvm}/bin/qemu-img create -f qcow2 -b ${bootDisk}/disk.img $TMPDIR/disk.img || exit 1
${if cfg.useEFIBoot then ''
# VM needs a writable flash BIOS
# VM needs a writable flash BIOS.
cp ${bootDisk}/bios.bin $TMPDIR || exit 1
chmod 0644 $TMPDIR/bios.bin || exit 1
'' else ''

View File

@@ -22,7 +22,9 @@ in {
config = {
system.build.virtualBoxImage = import ../../lib/make-disk-image.nix {
system.build.virtualBoxOVA = import ../../lib/make-disk-image.nix {
name = "nixos-ova-${config.system.nixosVersion}-${pkgs.stdenv.system}";
inherit pkgs lib config;
partitioned = true;
diskSize = cfg.baseImageSize;
@@ -37,37 +39,36 @@ in {
postVM =
''
echo "creating VirtualBox disk image..."
${pkgs.vmTools.qemu}/bin/qemu-img convert -f raw -O vdi $diskImage $out/disk.vdi
${pkgs.vmTools.qemu}/bin/qemu-img convert -f raw -O vdi $diskImage disk.vdi
rm $diskImage
echo "creating VirtualBox VM..."
export HOME=$PWD
export PATH=${pkgs.linuxPackages.virtualbox}/bin:$PATH
vmName="NixOS ${config.system.nixosVersion} (${pkgs.stdenv.system})"
VBoxManage createvm --name "$vmName" --register \
--ostype ${if pkgs.stdenv.system == "x86_64-linux" then "Linux26_64" else "Linux26"}
VBoxManage modifyvm "$vmName" \
--memory 1536 --acpi on --vram 32 \
${optionalString (pkgs.stdenv.system == "i686-linux") "--pae on"} \
--nictype1 virtio --nic1 nat \
--audiocontroller ac97 --audio alsa \
--rtcuseutc on \
--usb on --mouse usbtablet
VBoxManage storagectl "$vmName" --name SATA --add sata --portcount 4 --bootable on --hostiocache on
VBoxManage storageattach "$vmName" --storagectl SATA --port 0 --device 0 --type hdd \
--medium disk.vdi
echo "exporting VirtualBox VM..."
mkdir -p $out
fn="$out/nixos-${config.system.nixosVersion}-${pkgs.stdenv.system}.ova"
VBoxManage export "$vmName" --output "$fn"
mkdir -p $out/nix-support
echo "file ova $fn" >> $out/nix-support/hydra-build-products
'';
};
system.build.virtualBoxOVA = pkgs.runCommand "virtualbox-ova"
{ buildInputs = [ pkgs.linuxPackages.virtualbox ];
vmName = "NixOS ${config.system.nixosVersion} (${pkgs.stdenv.system})";
fileName = "nixos-${config.system.nixosVersion}-${pkgs.stdenv.system}.ova";
}
''
echo "creating VirtualBox VM..."
export HOME=$PWD
VBoxManage createvm --name "$vmName" --register \
--ostype ${if pkgs.stdenv.system == "x86_64-linux" then "Linux26_64" else "Linux26"}
VBoxManage modifyvm "$vmName" \
--memory 1536 --acpi on --vram 32 \
${optionalString (pkgs.stdenv.system == "i686-linux") "--pae on"} \
--nictype1 virtio --nic1 nat \
--audiocontroller ac97 --audio alsa \
--rtcuseutc on \
--usb on --mouse usbtablet
VBoxManage storagectl "$vmName" --name SATA --add sata --portcount 4 --bootable on --hostiocache on
VBoxManage storageattach "$vmName" --storagectl SATA --port 0 --device 0 --type hdd \
--medium ${config.system.build.virtualBoxImage}/disk.vdi
echo "exporting VirtualBox VM..."
mkdir -p $out
VBoxManage export "$vmName" --output "$out/$fileName"
'';
fileSystems."/".device = "/dev/disk/by-label/nixos";
boot.loader.grub.device = "/dev/sda";

View File

@@ -48,7 +48,7 @@ in rec {
(all nixos.ova)
#(all nixos.tests.containers)
(all nixos.tests.chromium)
#(all nixos.tests.chromium)
(all nixos.tests.firefox)
(all nixos.tests.firewall)
(all nixos.tests.gnome3)
@@ -64,6 +64,7 @@ in rec {
(all nixos.tests.installer.btrfsSubvols)
(all nixos.tests.installer.btrfsSubvolDefault)
(all nixos.tests.bootBiosCdrom)
(all nixos.tests.boot-stage1)
(all nixos.tests.ipv6)
(all nixos.tests.kde4)
#(all nixos.tests.lightdm)

View File

@@ -25,33 +25,14 @@ let
makeIso =
{ module, type, description ? type, maintainers ? ["eelco"], system }:
{ module, type, maintainers ? ["eelco"], system }:
with import nixpkgs { inherit system; };
let
config = (import lib/eval-config.nix {
inherit system;
modules = [ module versionModule { isoImage.isoBaseName = "nixos-${type}"; } ];
}).config;
iso = config.system.build.isoImage;
in
# Declare the ISO as a build product so that it shows up in Hydra.
hydraJob (runCommand "nixos-iso-${config.system.nixosVersion}"
{ meta = {
description = "NixOS installation CD (${description}) - ISO image for ${system}";
maintainers = map (x: lib.maintainers.${x}) maintainers;
};
inherit iso;
passthru = { inherit config; };
}
''
mkdir -p $out/nix-support
echo "file iso" $iso/iso/*.iso* >> $out/nix-support/hydra-build-products
''); # */
hydraJob ((import lib/eval-config.nix {
inherit system;
modules = [ module versionModule { isoImage.isoBaseName = "nixos-${type}"; } ];
}).config.system.build.isoImage);
makeSystemTarball =
@@ -131,30 +112,13 @@ in rec {
with import nixpkgs { inherit system; };
let
config = (import lib/eval-config.nix {
inherit system;
modules =
[ versionModule
./modules/installer/virtualbox-demo.nix
];
}).config;
in
# Declare the OVA as a build product so that it shows up in Hydra.
hydraJob (runCommand "nixos-ova-${config.system.nixosVersion}-${system}"
{ meta = {
description = "NixOS VirtualBox appliance (${system})";
maintainers = maintainers.eelco;
};
ova = config.system.build.virtualBoxOVA;
}
''
mkdir -p $out/nix-support
fn=$(echo $ova/*.ova)
echo "file ova $fn" >> $out/nix-support/hydra-build-products
'') # */
hydraJob ((import lib/eval-config.nix {
inherit system;
modules =
[ versionModule
./modules/installer/virtualbox-demo.nix
];
}).config.system.build.virtualBoxOVA)
);
@@ -168,6 +132,7 @@ in rec {
boot.loader.grub.device = mkDefault "/dev/sda";
});
}).config.system.build.toplevel;
preferLocalBuild = true;
}
"mkdir $out; ln -s $toplevel $out/dummy");
@@ -212,6 +177,7 @@ in rec {
tests.avahi = callTest tests/avahi.nix {};
tests.bittorrent = callTest tests/bittorrent.nix {};
tests.blivet = callTest tests/blivet.nix {};
tests.boot-stage1 = callTest tests/boot-stage1.nix {};
tests.cadvisor = hydraJob (import tests/cadvisor.nix { system = "x86_64-linux"; });
tests.chromium = callTest tests/chromium.nix {};
tests.cjdns = callTest tests/cjdns.nix {};

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

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

View File

@@ -2,8 +2,8 @@ import ./make-test.nix (
{ pkgs
, channelMap ? {
stable = pkgs.chromium;
beta = pkgs.chromiumBeta;
dev = pkgs.chromiumDev;
#beta = pkgs.chromiumBeta;
#dev = pkgs.chromiumDev;
}
, ...
}: rec {

View File

@@ -25,7 +25,7 @@ in
import ./make-test.nix ({ pkgs, ...} : {
name = "cjdns";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ emery ];
maintainers = [ ehmry ];
};
nodes = rec
@@ -122,4 +122,4 @@ import ./make-test.nix ({ pkgs, ...} : {
$bob->succeed("curl --fail -g http://[$aliceIp6]");
'';
})
})

View File

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

View File

@@ -11,6 +11,8 @@ 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";
};
};

View File

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

View File

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

View File

@@ -370,6 +370,10 @@ in {
"mdadm -W /dev/md1",
);
'';
preBootCommands = ''
$machine->start;
$machine->fail("dmesg | grep 'immediate safe mode'");
'';
};
# Test a basic install using GRUB 1.

View File

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

View File

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

View File

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

View File

@@ -1,13 +1,13 @@
{ stdenv, fetchurl, db4, boost, openssl, miniupnpc, unzip }:
{ stdenv, fetchzip, db4, boost, openssl, miniupnpc, unzip }:
with stdenv.lib;
stdenv.mkDerivation rec {
version = "0.3.80";
name = "namecoind-${version}";
src = fetchurl {
src = fetchzip {
url = "https://github.com/namecoin/namecoin/archive/nc${version}.tar.gz";
sha256 = "1755mqxpg91wg9hf0ibpj59sdzfmhh73yrpi7hfi2ipabkwmlpiz";
sha256 = "0mbkhj7y3f4vbqp5q3zk27bzqlk2kq71rcgivvj06w29fzd64mw6";
};
buildInputs = [ db4 boost openssl unzip miniupnpc ];

View File

@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
{ description = "Auditory binaural-beat generator";
homepage = http://gnaural.sourceforge.net/;
license = licenses.gpl2;
maintainers = [ maintainers.emery ];
maintainers = [ maintainers.ehmry ];
platforms = platforms.linux;
};
}

View File

@@ -3,7 +3,7 @@ stdenv.mkDerivation rec {
name = "ladspa-sdk-${version}";
version = "1.13";
src = fetchurl {
url = "http://www.ladspa.org/download/ladspa_sdk_${version}.tgz";
url = "http://http.debian.net/debian/pool/main/l/ladspa-sdk/ladspa-sdk_${version}.orig.tar.gz";
sha256 = "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm";
};
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
description = "The SDK for the LADSPA audio plugin standard";
longDescription = ''
The LADSPA SDK, including the ladspa.h API header file,
ten example LADSPA plugins and
ten example LADSPA plugins and
three example programs (applyplugin, analyseplugin and listplugins).
'';
homepage = http://www.ladspa.org/ladspa_sdk/overview.html;

View File

@@ -1,17 +1,26 @@
{ runCommand, fetchurl }:
let
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "ladspa.h-${version}";
version = "1.13";
src = fetchurl {
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
url = "http://http.debian.net/debian/pool/main/l/ladspa-sdk/ladspa-sdk_${version}.orig.tar.gz";
sha256 = "0srh5n2l63354bc0srcrv58rzjkn4gv8qjqzg8dnq3rs4m7kzvdm";
};
in
runCommand "ladspa.h"
{ meta.description = "LADSPA format audio plugins"; }
''
installPhase = ''
mkdir -p $out/include
cp ${src} $out/include/ladspa.h
''
cp src/ladspa.h $out/include/ladspa.h
'';
meta = {
description = "LADSPA format audio plugins header file";
longDescription = ''
The ladspa.h API header file from the LADSPA SDK.
For the full SDK, use the ladspa-sdk package.
'';
homepage = http://www.ladspa.org/ladspa_sdk/overview.html;
license = stdenv.lib.licenses.lgpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.all;
};
}

View File

@@ -40,7 +40,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib;
{ description = "Collection of audio level meters with GUI in LV2 plugin format";
homepage = http://x42.github.io/meters.lv2/;
maintainers = with maintainers; [ emery ];
maintainers = with maintainers; [ ehmry ];
license = licenses.gpl2;
platforms = platforms.linux;
};

View File

@@ -35,7 +35,7 @@ buildPythonPackage {
meta = with stdenv.lib; {
homepage = "http://musicbrainz.org/doc/MusicBrainz_Picard";
description = "The official MusicBrainz tagger";
maintainers = with maintainers; [ emery ];
maintainers = with maintainers; [ ehmry ];
license = licenses.gpl2;
platforms = platforms.all;
};

View File

@@ -1,20 +1,21 @@
{ fetchurl, stdenv, dpkg, xorg, qt4, alsaLib, makeWrapper, openssl, freetype
{ fetchurl, stdenv, dpkg, xorg, alsaLib, makeWrapper, openssl, freetype
, glib, pango, cairo, atk, gdk_pixbuf, gtk, cups, nspr, nss, libpng, GConf
, libgcrypt, chromium, udev, fontconfig
, dbus, expat }:
, libgcrypt, udev, fontconfig, dbus, expat, ffmpeg_0_10, curl, zlib, gnome }:
assert stdenv.system == "x86_64-linux";
let
version = "0.9.17.1.g9b85d43.7";
version = "1.0.27.71.g0a26e3b2-9";
deps = [
alsaLib
atk
cairo
cups
curl
dbus
expat
ffmpeg_0_10
fontconfig
freetype
GConf
@@ -25,19 +26,20 @@ let
libpng
nss
pango
qt4
stdenv.cc.cc
udev
xorg.libX11
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXrender
xorg.libXScrnSaver
xorg.libXtst
zlib
];
in
@@ -47,8 +49,8 @@ stdenv.mkDerivation {
src =
fetchurl {
url = "http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_${version}-1_amd64.deb";
sha256 = "0x87q7gd2997sgppsm4lmdiz1cm11x5vnd5c34nqb5d4ry5qfyki";
url = "http://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
sha256 = "1rs08cvn0y1lzazlmzj4sn2iyacadwi6j70n5c7rvfvvs4p61p42";
};
buildInputs = [ dpkg makeWrapper ];
@@ -60,8 +62,8 @@ stdenv.mkDerivation {
libdir=$out/lib/spotify
mkdir -p $libdir
dpkg-deb -x $src $out
mv $out/opt/spotify/* $out/
rm -rf $out/usr $out/opt
mv $out/usr/* $out/
rm -rf $out/usr
# Work around Spotify referring to a specific minor version of
# OpenSSL.
@@ -71,33 +73,29 @@ stdenv.mkDerivation {
ln -s ${nspr}/lib/libnspr4.so $libdir/libnspr4.so
ln -s ${nspr}/lib/libplc4.so $libdir/libplc4.so
mkdir -p $out/bin
rpath="$out/spotify-client/Data:$libdir:$out/spotify-client:${stdenv.cc.cc}/lib64"
ln -s $out/spotify-client/spotify $out/bin/spotify
rpath="$out/share/spotify:$libdir"
patchelf \
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $rpath $out/spotify-client/spotify
--set-rpath $rpath $out/share/spotify/spotify
patchelf \
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $rpath $out/spotify-client/Data/SpotifyHelper
preload=$out/libexec/spotify/libpreload.so
librarypath="${stdenv.lib.makeLibraryPath deps}:$libdir"
mkdir -p $out/libexec/spotify
gcc -shared ${./preload.c} -o $preload -ldl -DOUT=\"$out\" -fPIC
wrapProgram $out/bin/spotify --set LD_PRELOAD $preload --prefix LD_LIBRARY_PATH : "$librarypath"
wrapProgram $out/spotify-client/Data/SpotifyHelper --set LD_PRELOAD $preload --prefix LD_LIBRARY_PATH : "$librarypath"
wrapProgram $out/share/spotify/spotify \
--prefix LD_LIBRARY_PATH : "$librarypath" \
--prefix PATH : "${gnome.zenity}/bin"
# Desktop file
mkdir -p "$out/share/applications/"
cp "$out/spotify-client/spotify.desktop" "$out/share/applications/"
sed -i "s|Icon=.*|Icon=$out/spotify-client/Icons/spotify-linux-512.png|" "$out/share/applications/spotify.desktop"
''; # */
cp "$out/share/spotify/spotify.desktop" "$out/share/applications/"
# Icons
for i in 16 22 24 32 48 64 128 256 512; do
ixi="$i"x"$i"
mkdir -p "$out/share/icons/hicolor/$ixi/apps"
ln -s "$out/share/spotify/icons/spotify-linux-$i.png" \
"$out/share/icons/hicolor/$ixi/apps/spotify-client.png"
done
'';
dontStrip = true;
dontPatchELF = true;

View File

@@ -1,66 +0,0 @@
/* Spotify looks for its theme data in /usr/share/spotify/theme. This
LD_PRELOAD library intercepts open() and stat() calls to redirect
them to the corresponding location in $out. */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
char themeDir [] = "/usr/share/spotify/theme";
char realThemeDir [] = OUT "/share/spotify/theme";
const char * rewrite(const char * path, char * buf)
{
if (strncmp(path, themeDir, sizeof(themeDir) - 1) != 0) return path;
if (snprintf(buf, PATH_MAX, "%s%s", realThemeDir, path + sizeof(themeDir) - 1) >= PATH_MAX)
abort();
return buf;
}
int open(const char *path, int flags, ...)
{
char buf[PATH_MAX];
int (*_open) (const char *, int, mode_t) = dlsym(RTLD_NEXT, "open");
mode_t mode = 0;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, mode_t);
va_end(ap);
}
return _open(rewrite(path, buf), flags, mode);
}
int open64(const char *path, int flags, ...)
{
char buf[PATH_MAX];
int (*_open64) (const char *, int, mode_t) = dlsym(RTLD_NEXT, "open64");
mode_t mode = 0;
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
mode = va_arg(ap, mode_t);
va_end(ap);
}
return _open64(rewrite(path, buf), flags, mode);
}
int __xstat64(int ver, const char *path, struct stat64 *st)
{
char buf[PATH_MAX];
int (*___xstat64) (int ver, const char *, struct stat64 *) = dlsym(RTLD_NEXT, "__xstat64");
return ___xstat64(ver, rewrite(path, buf), st);
}
int access(const char *path, int mode)
{
char buf[PATH_MAX];
int (*_access) (const char *path, int mode) = dlsym(RTLD_NEXT, "access");
return _access(rewrite(path, buf), mode);
}

View File

@@ -1,20 +1,20 @@
{ stdenv, fetchurl, alsaLib, boost, cairo, cmake, fftwSinglePrec, fltk
, libjack2, libsndfile, lv2, mesa, minixml, pkgconfig, zlib, xorg
, libjack2, libsndfile, readline, lv2, mesa, minixml, pkgconfig, zlib, xorg
}:
assert stdenv ? glibc;
stdenv.mkDerivation rec {
name = "yoshimi-${version}";
version = "1.3.5.2";
version = "1.3.7.1";
src = fetchurl {
url = "mirror://sourceforge/yoshimi/${name}.tar.bz2";
sha256 = "001xvwknsm1sv5lvwz7f6dgf57b8djbpwbyk2gfxjy9rzl5q53qr";
sha256 = "13xc1x8jrr2rn26jx4dini692ww3771d5j5xf7f56ixqr7mmdhvz";
};
buildInputs = [
alsaLib boost cairo fftwSinglePrec fltk libjack2 libsndfile lv2 mesa
alsaLib boost cairo fftwSinglePrec fltk libjack2 libsndfile readline lv2 mesa
minixml zlib xorg.libpthreadstubs
];
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
preConfigure = "cd src";
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc}/lib/libm.so" ];
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc}/lib/libm.so -DCMAKE_INSTALL_DATAROOTDIR=$out" ];
meta = with stdenv.lib; {
description = "high quality software synthesizer based on ZynAddSubFX";

View File

@@ -16,6 +16,7 @@ in stdenv.mkDerivation rec {
description = "An online/offline backup solution";
homepage = "http://www.crashplan.org";
license = licenses.unfree;
broken = true; # outdated and new client has trouble starting (nullpointer exception)
maintainers = with maintainers; [ sztupi iElectric ];
};

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