Compare commits

..

1930 Commits

Author SHA1 Message Date
Sander van der Burg
52ef8b0d0d disnix: 0.7.1 -> 0.7.2
(cherry picked from commit 94f0a6793b)
2017-07-26 19:24:34 +00:00
zimbatm
d14ec0e89d sublime3: fixes missing build inputs
This must have been lost when cherry-picking
5ba8460236 from master.
2017-07-19 10:45:56 +01:00
Sander van der Burg
2198c0acac disnix: 0.7 -> 0.7.1
(cherry picked from commit 42e6b754fb)
2017-07-11 00:27:58 +02:00
Mogria
5ba8460236 sublime3: fix hardcoded /bin/bash when executing commands for build systems (#23561)
* sublime3: replace hardcoded /bin/bash with /usr/bin/env

exec.py in Default.package-sublime calls /bin/bash with subprocess.
See Issue #12011. Because of this builds could not be started from
withtin Sublime Text.

* sublime3: use wrapped of bash to fix internal build system

Without the wrapped version of bash (a symlink to $bash/bin/bash)
with LD_PRELOAD to glibc an relocation error occurs when trying
to run builds from within Sublime Text 3.  See Issue #12011.

(cherry picked from commit 1893ed54dc)
2017-06-01 08:17:42 +01:00
Daiderd Jordan
149b025544 sudo: 1.8.19p2 -> 1.8.20p1, fixes CVE-2017-1000367
(cherry picked from commit 3c0114d472)
2017-05-31 09:57:20 +00:00
Peter Simons
25f4906da6 all-cabal-hashes: update to latest version of Hackage
(cherry picked from commit cb838cad5c)
2017-05-23 10:40:09 +02:00
Bas van Dijk
28dc5c7d22 postgresql: fix build on darwin
(cherry picked from commit 1f95524ab5)
2017-05-03 14:41:07 +02:00
lassulus
0ff8fc1d83 weechat: 1.7 -> 1.7.1
(cherry picked from commit 839b3ce5fe)
2017-04-23 14:51:26 +01:00
Franz Pletz
a910404fee weechat: 1.6 -> 1.7
(cherry picked from commit c2257506ae)
2017-04-23 14:50:54 +01:00
Adam Evans
e58b67fa24 weechat: Fixed Darwin build issues
Build was failing with res_9_init missing on OS X. Resolved with a little help from
https://github.com/Homebrew/homebrew-core/pull/4427.

(cherry picked from commit 5da42092fa)
2017-04-23 14:50:48 +01:00
Profpatsch
ab3fef48ad weechat: generate manpages
(cherry picked from commit 6717213ca4)
2017-04-23 14:50:43 +01:00
Moritz Ulrich
8f7eab2776 weechat: Work around darwin linking issue
(cherry picked from commit 38dbb8008d)
2017-04-23 14:50:38 +01:00
Moritz Ulrich
41fb3d4daf weechat: 1.5 -> 1.6
(cherry picked from commit 7cc3de8742)
2017-04-23 14:50:35 +01:00
Andrew R. M
b417442f27 weechat: help weechat find nix's python on darwin
(cherry picked from commit f999e9edf8)
2017-04-23 14:50:31 +01:00
obadz
764f69efa5 keepass: 2.34 -> 2.35
(cherry picked from commit 0c488ed8f0)
2017-04-17 13:44:01 +02:00
Bjørn Forsman
ab88d3fe96 nixos/lighttpd: set $HOME for gitweb sub-service
This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME
variable, it fails to list any projects and instead show the text
"No such projects found" in the UI.

Setting $HOME to the gitweb project root seems like a sensible value.

(cherry picked from commit d916ce2ef4)
2017-04-17 13:18:19 +02:00
Franz Pletz
f2bde3c7df nginxMainline: 1.11.10 -> 1.11.13
(cherry picked from commit 73f04ddd57)
2017-04-11 20:02:07 +02:00
Franz Pletz
828b836294 nginxMainline: 1.11.9 -> 1.11.10
(cherry picked from commit e18bec1e3c)
2017-04-11 20:02:07 +02:00
Michael Raskin
e433f6edf1 nginx: 1.10.2 -> 1.10.3
(cherry picked from commit 846007b8db)
2017-04-11 20:02:06 +02:00
Franz Pletz
00e76dd81e nginxMainline: 1.11.8 -> 1.11.9
(cherry picked from commit f1ba2c8d3b)
2017-04-11 20:02:06 +02:00
Michael Raskin
247ec219c5 nginx: 1.11.7 -> 1.11.8
(cherry picked from commit ca8d3de1d2)
2017-04-11 20:02:05 +02:00
Franz Pletz
80d4b9b345 nginxMainline: 1.11.6 -> 1.11.7
(cherry picked from commit d3be9a50e0)
2017-04-11 20:02:05 +02:00
Franz Pletz
f4b363de9c nginxMainline: 1.11.5 -> 1.11.6
(cherry picked from commit a04a4b2a6a)
2017-04-11 20:02:04 +02:00
Franz Pletz
c9185d6c2a nginxMainline: 1.11.4 -> 1.11.5
(cherry picked from commit 323acff8e6)
2017-04-11 20:02:04 +02:00
Franz Pletz
64cbe899fd nginx: 1.10.1 -> 1.10.2
(cherry picked from commit 4ae2189d8c)
2017-04-11 20:02:04 +02:00
Tim Steinbach
a21b142d45 nginxMainline: 1.11.3 -> 1.11.4
(cherry picked from commit f091686a18)
2017-04-11 20:02:03 +02:00
Franz Pletz
c78c5e9851 gitlab: 8.17.4 -> 8.17.5
Fixes security issues:

  https://about.gitlab.com/2017/04/05/gitlab-9-dot-0-dot-4-security-release/

(cherry picked from commit d3ef8dc633)
2017-04-06 21:14:05 +02:00
Vladimír Čunát
1b965321b4 knot-resolver: update the source hash
Just nitpick changes in the tarball, minutes after the release.

(cherry picked from commit 44168b4b22)
2017-04-05 16:09:10 +02:00
Vladimír Čunát
80c9e91706 knot-resolver: maintenance 1.2.4 -> 1.2.5
(cherry picked from commit 12839e4599)
2017-04-05 15:53:43 +02:00
Vladimír Čunát
1bc3c64849 Merge #24574: ntp: security 4.2.8p9 -> 4.2.8p10
(cherry picked from commit 59b548069c)
2017-04-03 19:00:34 +02:00
Sander van der Burg
8b403e5e31 Regenerate NPM expressions with node2nix 1.2.0 2017-03-31 21:13:09 +02:00
Tim Steinbach
17d9e4d348 linux: 4.4.58 -> 4.4.59
(cherry picked from commit cb791371c5)
2017-03-31 09:19:32 -04:00
Tim Steinbach
7149cd206b linux: 4.4.57 -> 4.4.58
(cherry picked from commit 6b5193bcd9)
2017-03-30 22:13:59 -04:00
Tim Steinbach
2582e56813 linux: 4.4.56 -> 4.4.57
(cherry picked from commit 23d0f01e95)
2017-03-30 22:13:54 -04:00
Herwig Hochleitner
cbf3d0387a chromium: 57.0.2987.98 -> 57.0.2987.110 2017-03-29 22:50:54 +02:00
Nikolay Amiantov
9afb5682b3 chromium: optionalize glibc patch 2017-03-29 22:50:54 +02:00
Herwig Hochleitner
07101f743e Revert "Revert "chromium: 56.0.2924.87 -> 57.0.2987.98 [Security]""
This reverts commit deb73f214c.
2017-03-29 22:50:54 +02:00
Vladimír Čunát
060bd50003 wine-1.8: fix #24446 breakage after gnutls update
... via a patch from Debian.
2017-03-29 20:40:19 +02:00
Sebastian Hagen
9363db49ce hwdata: Use content-addressed source file
previous source tarball changed contents.

(cherry picked from commit 00f16e3d7c)
Close #24422.
2017-03-29 14:09:34 +02:00
Joachim Fasting
e70521a12e travis: send emails iff commit caused the build to start failing
This setting should ensure that email notifications are sent
*only* when the commit caused the build to start failing.  That
is, no more "the build is still failing" spam.

As an alternative we could consider disabling email
notifications outright and possibly enable IRC notifications
instead.

(cherry picked from commit 541b3ec1bc)
2017-03-29 00:26:52 +02:00
Joachim Fasting
456c048d6a grsecurity: 4.9.17-201703221829 -> 4.9.18-201703261106
(cherry picked from commit 5fe81c1bdb)
2017-03-29 00:26:49 +02:00
Joachim Fasting
68ebfefc73 grsecurity: 4.9.16-201703180820 -> 4.9.17-201703221829
(cherry picked from commit 94ab4932ae)
2017-03-29 00:26:48 +02:00
Joachim Fasting
9572f7433d grsecurity: 4.9.15-201703150049 -> 4.9.16-201703180820
(cherry picked from commit d4409817a6)
2017-03-29 00:26:47 +02:00
Joachim Fasting
5f86033098 grsecurity: 4.9.14-201703121245 -> 4.9.15-201703150049
Contains a fix for the n_hdlc double free bug.

(cherry picked from commit 9e60a17cb8)
2017-03-29 00:26:41 +02:00
Rob Vermaas
4da11d7c9b nixUnstable: update to 1.12pre5122_c60715e 2017-03-28 11:31:50 +00:00
Domen Kožar
c80a791dd5 Fix bad merge 2017-03-28 09:59:41 +02:00
Joachim Fasting
deb73f214c Revert "chromium: 56.0.2924.87 -> 57.0.2987.98 [Security]"
This reverts commit 310ed9213d.

Fails to build: https://hydra.nixos.org/build/50207269/nixlog/1/raw
Ref: https://github.com/NixOS/nixpkgs/issues/24217
2017-03-28 00:05:41 +02:00
Shea Levy
4e20da956a Nix: bump to 2017-03-21
Partial cherry-pick, dropped hydra bump.

(cherry picked from commit 99632d5466)
2017-03-27 09:49:47 -04:00
Domen Kožar
ab095398e6 haskell: add justStaticExecutables combinator 2017-03-27 14:53:36 +02:00
Domen Kožar
90dbde2ab2 haskell: use new justStaticExecutables and add purescript 2017-03-27 14:53:29 +02:00
Lancelot SIX
c7584d9296 pythonPackages.django: 1.10.5 -> 1.10.6
Backported from d284e37a59
2017-03-27 12:13:50 +02:00
Robin Gloster
564a254b23 pcre2: 10.22 -> 10.23 + security fix
CVE-2017-7186

refs nixos/security#57 #24319

(cherry picked from commit 955b79f462)
2017-03-26 17:19:27 +02:00
Robin Gloster
7f42728e88 pcre: 8.39 -> 8.40 + security fix
CVE-2017-7186

refs nixos/security#57 #24319

(cherry picked from commit 6b9c81aa18)
2017-03-26 16:46:22 +02:00
ndowens
4368adb6ac jasper: 2.0.10 -> 2.0.12
(cherry picked from commit 6c17ad677c)
2017-03-26 08:24:00 -04:00
Vladimír Čunát
98d877007f texlive: fix CVE-2016-10243
https://github.com/NixOS/security/issues/104
(cherry picked from commit 8c4339a9dc)
2017-03-25 23:04:50 +01:00
ndowens
075e6d4570 potrace: 1.13 -> 1.14
(cherry picked from commit 56504fcb2c)
2017-03-25 23:00:59 +01:00
Will Dietz
a8b75d7d3c elfutils: security 0.165 -> 0.168
(cherry picked from commit 157b216852)
It's supposed to fix CVE-2016-10254.
https://github.com/NixOS/security/issues/49

According to NEWS
https://sourceware.org/git/?p=elfutils.git;a=blob;f=NEWS
ld got removed, but I don't expect that to break anything.
2017-03-25 22:28:42 +01:00
Michael Raskin
065343bf7c graphicsmagick: patch for CVE-2017-6335
(cherry picked from commit 7b706900e7)
2017-03-25 21:06:10 +01:00
Tim Steinbach
2ae7e46dc6 linux: 4.4.55 -> 4.4.56 2017-03-23 16:39:20 -04:00
Jörg Thalheim
e758bc7c25 munin: fix tests by replacing cron with systemd timer
(cherry picked from commit b4169bb8dd)
2017-03-22 23:02:07 +01:00
ndowens
a600f944cf munin: 2.0.30 -> 2.0.33; for CVE-2017-6188
(cherry picked from commit 2e06a585bc)
2017-03-22 23:02:01 +01:00
Bjørn Forsman
ac62069f27 munin: add 'bc' (needed by 'acpi' and 'snort_pkts' plugins)
(cherry picked from commit 46e44222d6)
2017-03-22 23:01:55 +01:00
florianjacob
0f81c78755 munin service: listen on IPv6 loopback as well (#23012)
munin service: listen on IPv6 loopback as well
(cherry picked from commit c23c2c50de)
2017-03-22 23:01:49 +01:00
Jean-Pierre PRUNARET
ca40cfa742 munin: 2.0.29 -> 2.0.30
(cherry picked from commit fc6622a098)
2017-03-22 23:01:42 +01:00
Jean-Pierre PRUNARET
5523296eed munin: fetchurl -> fetchFromGithub
(cherry picked from commit 319879354b)
2017-03-22 23:01:36 +01:00
ndowens
7af0267b31 tnef: 1.4.12 - > 1.4.14; Advisory X41-2017-004
(cherry picked from commit 41abf78fc0)
2017-03-21 23:24:17 +01:00
Eelco Dolstra
6521c34d6d nix: 1.11.7 -> 1.11.8
(cherry picked from commit 2cb25f8b59)
2017-03-21 11:58:05 -04:00
Franz Pletz
70b2fc1701 gitlab: add rake task to delete tokens
The information disclosure was caued by CVE-2017-0882.

(cherry picked from commit 219e91b4c6)
2017-03-21 13:19:13 +01:00
Franz Pletz
49a08ce52c gitlab module: explicitely create pages shared path
Fixes creation of backups.

(cherry picked from commit 4bd12fa7b2)
2017-03-21 13:19:12 +01:00
Franz Pletz
40a64e4e03 gitlab: 8.16.6 -> 8.17.4 for CVE-2017-0882
(cherry picked from commit 29f57ac447)
2017-03-21 13:19:12 +01:00
Peter Simons
2acd6cec0c esniper: 2.32.0 -> 2.33.0
(cherry picked from commit 58807f75bc)
2017-03-21 09:57:53 +01:00
Robin Gloster
2bb3073c2d gnome_mplayer: fix src and build
closes #24096

(cherry picked from commit 4e2f802ce8)
2017-03-20 14:56:22 +01:00
Joachim Fasting
20ec021b62 linux_4_9: 4.9.15 -> 4.9.16
(cherry picked from commit b5da6ca213)
2017-03-20 14:55:34 +01:00
Franz Pletz
73a876fd1d wireshark: 2.2.4 -> 2.2.5 for multiple CVEs
Fixes:

  * CVE-2017-5596
  * CVE-2017-5597
  * CVE-2017-6467
  * CVE-2017-6468
  * CVE-2017-6469
  * CVE-2017-6470
  * CVE-2017-6471
  * CVE-2017-6472
  * CVE-2017-6473
  * CVE-2017-6474

(cherry picked from commit 7b27e1c3c9)
2017-03-20 14:47:00 +01:00
Sander van der Burg
3a3b7c9539 dd-agent: bind to pymongo 2.9.1 to fix the MongoDB monitoring 2017-03-20 10:47:17 +01:00
Tim Steinbach
314243f438 linux: 4.4.54 -> 4.4.55 2017-03-19 12:19:11 -04:00
Joachim Schiele
ad55ae3c12 Merge branch 'release-16.09' of github.com:NixOS/nixpkgs into release-16.09 2017-03-19 01:08:30 +01:00
Joachim Schiele
e7039c37b7 all-packages.nix: removing wmutils-opt (accidentally commited) 2017-03-19 01:07:41 +01:00
Michael Raskin
5c98dcf22e Merge pull request #23787 from ambrop72/kdevelop-504-1609
Kdevelop 504 1609
2017-03-18 19:38:50 +01:00
Bas van Dijk
674d8cf06f wordpress: security upgrade: 4.7.2 -> 4.7.3 & other improvements
* Moved the wordpress sources derivation to the attribute pkgs.wordpress. This
  makes it easier to override.

* Also introduce the `package` option for the wordpress virtual host config which
  defaults to pkgs.wordpress.

* Also fixed the test in nixos/tests/wordpress.nix.
2017-03-18 11:20:16 +01:00
Tim Steinbach
ae1c270479 linux: 4.4.53 -> 4.4.54 2017-03-17 17:26:17 -04:00
Arseniy Seroka
bd97f76d8f Merge pull request #23913 from jeremejevs/release-16.09
sublime3: 3114 -> 3126
2017-03-16 23:20:42 +03:00
Daniel Brockman
fcec887c21 jshon: fix null termination in read_stream.
This fixes a somewhat critical (security?) bug.

We are trying to get it merged upstream but have had no response from
the ordinary maintainer in over a week.

(See <https://github.com/keenerd/jshon/issues/53>.)

fixes #23727

(cherry picked from commit 5d6ea2d64e)
2017-03-16 18:34:27 +01:00
Kamil Chmielewski
91e87421cd chromium: flashplayer: 24.0.0.221 -> 25.0.0.127
[Critical security fix]
https://github.com/NixOS/nixpkgs/pull/23889

(cherry picked from commit 15e49a95d9c9bdf1efcf08d266f491e54dd51cfb)
2017-03-16 13:50:13 +01:00
Graham Christensen
ff8b5f9136 jboss: mark as broken for CVE-2015-7501 2017-03-15 17:37:19 -04:00
Graham Christensen
5d16b24ed2 Revert "JBoss AS: list known vulnerability"
This reverts commit 061bd1293b.
2017-03-15 17:36:10 -04:00
Renaud
061bd1293b JBoss AS: list known vulnerability
CVE-2015-7501

Warning in JBoss module

(cherry picked from commit 72619a86c9)
2017-03-15 17:34:40 -04:00
Joachim Fasting
286cc49e6a linux_4_9: 4.9.14 -> 4.9.15
(cherry picked from commit 12648a455b)
2017-03-15 20:17:36 +01:00
Joachim Fasting
18a27746a6 linux_4_9: 4.9.13 -> 4.9.14
(cherry picked from commit 8091c1b208)
2017-03-15 20:17:35 +01:00
Herwig Hochleitner
310ed9213d chromium: 56.0.2924.87 -> 57.0.2987.98 [Security]
(cherry picked from commit 49207a62f3)
2017-03-15 16:28:15 +01:00
Olegs Jeremejevs
59282e158a sublime3: 3114 -> 3126 2017-03-15 12:52:54 +02:00
Sander van der Burg
f9a23edb16 disnix: 0.6 -> 0.7
(cherry picked from commit a26c51116d)
2017-03-14 23:22:14 +01:00
Franz Pletz
f0cf441ff9 nixos/users-groups: chown home on createHome
Fixes #23619.

(cherry picked from commit 9ea35eae7a)
2017-03-14 23:13:04 +01:00
Robert Helgesson
0a476ee5de eclipses: add dependencies as build inputs
Having `glib` in the build inputs will allow its build hook to
trigger. Also adds `gsettings_desktop_schemas` as a dependency since
Eclipse appears to need the schemas under certain circumstances.

(cherry picked from commit 5228bc9f2e)
2017-03-14 21:03:36 +01:00
Joachim Fasting
b864a0f08c torbrowser: 6.5 -> 6.5.1
(cherry picked from commit 74f8e0fd7a)
2017-03-14 16:25:54 +01:00
Joachim Fasting
c2c40f0b95 grsecurity: 4.9.13-201703052141 -> 4.9.14-201703121245
(cherry picked from commit 4c211bdc63)
2017-03-14 16:25:51 +01:00
Joachim Fasting
a1e78c7a5f grsecurity: 4.9.13-201702270729 -> 201703052141
(cherry picked from commit 17d80c49fa)
2017-03-14 16:25:50 +01:00
Joachim Fasting
a00670fcc3 grsecurity: 4.9.13-201702261126 -> 201702270729
(cherry picked from commit a20a53300d)
2017-03-14 16:25:49 +01:00
Joachim Fasting
2316c14038 grsecurity: 4.9.12-201702231830 -> 4.9.13-201702261126
(cherry picked from commit f3a6991f3d)
2017-03-14 16:25:48 +01:00
taku0
895ea66982 flashplayer: 24.0.0.221 -> 25.0.0.127 (#23889)
(cherry picked from commit c3772678e9)
2017-03-14 16:25:42 +01:00
Tim Steinbach
b5714db11a linux: 4.4.52 -> 4.4.53
(cherry picked from commit 9ac82a773c)
2017-03-13 20:16:25 -04:00
Tim Steinbach
763dccb47e linux: 4.1.38 -> 4.1.39
(cherry picked from commit 18684a4892)
2017-03-13 20:16:23 -04:00
Vladimír Čunát
eac28788cc gnutls: use 3.5 and remove 3.4
(cherry picked from commit 0ff2179e0f)
The 3.4 branch is not maintained upstream anymore, and it's probably
vulnerable.  Moreover, update to 3.5 should cause no problems.
2017-03-13 11:28:56 +01:00
Vladimír Čunát
c2b360f07f gnutls: don't propagate -lunistring
This fixes systemd build.

(cherry picked from commits b17eb34203 and d6cff5783e)
2017-03-13 11:28:53 +01:00
Vladimír Čunát
96a9cb2ba2 gnutls35: enableParallelBuilding = true
It's been OK with the newer versions (long tested on master).
2017-03-13 10:59:30 +01:00
Vladimír Čunát
c688e4f5a7 gnutls: bugfix+security 3.5.9 -> 3.5.10
http://gnutls.org/security.html#GNUTLS-SA-2017-3
(cherry picked from commit b264486cf1)
2017-03-13 10:42:28 +01:00
Vladimír Čunát
89ea86c075 gnutls33: bugfix+security 3.3.26 -> 3.3.27
http://gnutls.org/security.html#GNUTLS-SA-2017-3

This is on 16.09 only, as we have 3.3 branch nowhere else anymore.
2017-03-13 10:35:24 +01:00
zetok
1e17a56fbe gresecurity docs: fix incorrect option (#23789)
(cherry picked from commit 4ca17dd6c0)
2017-03-12 15:07:23 +01:00
Franz Pletz
26424eef54 firmwareLinuxNonfree: 2017-02-06 -> 2017-03-11
Fixes #22365.

(cherry picked from commit c3c69535aa)
2017-03-11 15:11:54 +01:00
Franz Pletz
d8ead53480 firmwareLinuxNonfree: 2016-07-12 -> 2017-02-06
(cherry picked from commit 01cf43a389)

cc #22365
2017-03-11 15:11:33 +01:00
Franz Pletz
067e66a9b3 qemu_test: don't apply patch for CVE-2016-9602
Both patches are conflicting. Keeping the vulnerability unpatched in qemu
binaries used for nixos test is tolerable.

(cherry picked from commit 3a4e2376e4)
2017-03-11 13:46:06 +01:00
Ambroz Bizjak
e9fc1486ee kdevelop: 5.0.3 -> 5.0.4 2017-03-11 12:55:54 +01:00
Ambroz Bizjak
a710e880be kdevelop: 5.0.2 -> 5.0.3 2017-03-11 12:55:54 +01:00
Franz Pletz
5bf6aa49b5 qemu: fetch vnc bugfix patch from debian
This version of the patch applies cleanly to the 2.8.0 release.

(cherry picked from commit 621e7a9945)
(cherry picked from commit 8be6bebec1)
2017-03-11 09:58:49 +01:00
Franz Pletz
e5f66c4151 wget: add patch for CVE-2017-6508
(cherry picked from commit 39e8db7849)
(cherry picked from commit c554cbf8c2)
2017-03-11 09:58:49 +01:00
Franz Pletz
b2a1fa97e8 qemu: add patches for multiple CVEs
New upstream patch function and patches for fixing a bug in the patch for
CVE-2017-5667 and the following security issues:

  * CVE-2016-7907
  * CVE-2016-9602
  * CVE-2016-10155
  * CVE-2017-2620
  * CVE-2017-2630
  * CVE-2017-5525
  * CVE-2017-5526
  * CVE-2017-5579
  * CVE-2017-5856
  * CVE-2017-5857
  * CVE-2017-5987
  * CVE-2017-6058

(cherry picked from commit c512180f9c)
(cherry picked from commit 641ad2e922)
2017-03-11 09:58:49 +01:00
Franz Pletz
a18f122dd7 linux: 3.12.70 -> 3.12.71
(cherry picked from commit ff2313a6c6)
2017-03-11 09:58:48 +01:00
Franz Pletz
d9785e5c88 lxc: add patch for CVE-2017-5985
(cherry picked from commit 3bd44428cf)
2017-03-11 09:58:48 +01:00
Franz Pletz
5aad6ec3e8 pidgin: 2.11.0 -> 2.12.0 for CVE-2017-2640
Also removes unmaintained plugins.

See https://bitbucket.org/pidgin/www/src/tip/htdocs/ChangeLog.

(cherry picked from commit 4e0375cb59)
2017-03-11 09:58:47 +01:00
Peter Simons
c88e67df60 Merge pull request #23691 from sh01/ga_cherrypick_16
git-annex: Fetch from git, since 6.20170101.tar.gz is gone.
2017-03-10 11:03:55 +01:00
Peter Hoeg
f89ab94c23 dropbox: 20.4.19 -> 21.4.25
(cherry picked from commit bb1496332ed66dbbd851fa13bf52929e384d1e32)
2017-03-10 14:25:15 +08:00
Peter Simons
ef31193d12 git-annex: Fetch from git, since 6.20170101.tar.gz is gone. 2017-03-10 04:21:17 +00:00
Vladimír Čunát
2ba0e2d6a0 Merge #23663: thunderbird*: security 45.7.1 -> 45.8.0
(cherry picked from commit 7b7496a256)
2017-03-10 01:27:34 +01:00
Vladimír Čunát
e9dbc2dfd3 knot-resolver: maintenance 1.2.3 -> 1.2.4
(cherry picked from commit 74f92e9556)
2017-03-09 21:27:57 +01:00
Rickard Nilsson
ae92cb4a18 haskellPackages.streaming-eversion: dontCheck
(cherry picked from commit fb5369dbe9)
2017-03-08 17:20:12 +01:00
ndowens
01b9990732 scanmem: 0.15.6 -> 0.16
(cherry picked from commit cc9b960f48)
2017-03-07 17:32:44 +01:00
Graham Christensen
8605d317d1 mailpile: Mark as broken 2017-03-06 17:54:37 -05:00
Dan Peebles
0cb2838d8c aws-sdk-cpp: 1.0.48 -> 1.0.60
(cherry picked from commit 7bc17013f8)
2017-03-06 14:20:49 -05:00
Eelco Dolstra
44e9d08376 nix: 1.11.6 -> 1.11.7
(cherry picked from commit 8e1fa01f3a)
2017-03-06 11:48:31 -05:00
Rob Vermaas
b37173bae0 Update nixUnstable
(cherry picked from commit fce036d164)
2017-03-06 13:31:49 +00:00
Dan Peebles
2d6a82a924 aws-sdk-cpp: fix on darwin
The LD_LIBRARY_PATH variable does nothing on Darwin, but
DYLD_LIBRARY_PATH does the same thing, so splice in the right variable
based on which system we're working on.

(cherry picked from commit d34ee526a8)
2017-03-05 18:33:51 -05:00
Bjørn Forsman
2482e8cf0a borgbackup: 1.0.9 -> 1.0.10
(cherry picked from commit 5f1398ce13)
2017-03-05 21:23:55 +01:00
Bjørn Forsman
b6f590a10e Add ndowens to maintainers.nix (unbreak tarball job)
Should have been included before commit bef80f1693
("wgetpaste: 2.25 -> 2.28"). Oops. Copied from master branch.
2017-03-05 21:23:51 +01:00
Frederik Rietdijk
1f9bd9246b pythonPackages.jupyter: set priority
in order to prevent a collision.

(cherry picked from commit f8e5b8dbe2)
2017-03-04 08:20:32 +01:00
Graham Christensen
43e84f4085 kde.kdelibs: patch for insecure URL passing 2017-03-02 08:31:27 -05:00
Graham Christensen
646958098d kdeFrameworks.kio: patch for insecure URL passing
(cherry picked from commit 5ce06263a3)
2017-03-02 08:27:50 -05:00
Peter Hoeg
1c6d95e9e8 dropbox: 19.4.13 -> 20.4.19
(cherry picked from commit 1fbcce4448)
2017-03-02 11:49:01 +08:00
Shea Levy
ab98b60f80 haskell generic-builder: Pass through the list of haskell build inputs.
Useful for building custom envs.

(cherry picked from commit c153036525)
2017-03-01 13:01:10 -05:00
Eelco Dolstra
e0d2c4ca6e nixUnstable: 1.12pre4997_1351b0d -> 1.12pre5060_fa125b9
(cherry picked from commit f5e53aea5d)
2017-03-01 18:05:27 +01:00
Shea Levy
952528299f haskell generic-builder: Pass through the ghcEnv.
Will be useful for nix-buffer

(cherry picked from commit a27bc8b317)
2017-03-01 11:09:31 -05:00
Shea Levy
fa06f46567 nixBufferBuilders.withPackages: Fix buffer count logic
(cherry picked from commit bae77363c3)
2017-03-01 11:06:40 -05:00
Michael Raskin
9ad9a65bba mcabber: 1.0.4 -> 1.0.5
(cherry picked from commit c7ad684ab5)
2017-03-01 15:19:13 +01:00
Michael Raskin
5888067a7d profanity: 0.4.7 -> 0.5.1
(cherry picked from commit b8812dfeac)

(libmesode ported from master because it is now a dependency)
2017-03-01 15:10:26 +01:00
Nikolay Amiantov
c950c96f86 ejabberd: 16.08 -> 16.09
(cherry picked from commit 3a05ea5376)
2017-03-01 13:17:48 +01:00
ndowens
bef80f1693 wgetpaste: 2.25 -> 2.28
(cherry picked from commit d02209edf2)
2017-02-28 23:37:53 +01:00
Lancelot SIX
40de598c60 screen: 4.5.0 -> 4.5.1 for CVE-2017-5618
See https://lists.gnu.org/archive/html/info-gnu/2017-02/msg00010.html
for release announcement
(cherry picked from commit 6d9a3f0dcd)
2017-02-28 13:13:44 +01:00
Lancelot SIX
5262c33037 screen: 4.4.0 -> 4.5.0
See http://lists.gnu.org/archive/html/info-gnu/2017-01/msg00007.html
for release announcement.

(cherry picked from commit 38b4ae5549)
2017-02-28 13:13:43 +01:00
Demin Dmitriy
76f84955d5 opera: 42.0.2393.517 -> 43.0.2442.991
(cherry picked from commit db0316d8b2)

Makes sense to always follow latest version, as for firefox and
chromium.
2017-02-28 12:42:20 +01:00
Benjamin Smith
a20da2e556 opera: 41.0.2353.56 -> 42.0.2393.517
(cherry picked from commit 55e85a162a)
2017-02-28 12:42:14 +01:00
Eelco Dolstra
058983ad19 Fix setting programs.ssh.setXAuthLocation
The configuration { services.openssh.enable = true;
services.openssh.forwardX11 = false; } caused
programs.ssh.setXAuthLocation to be set to false, which was not the
intent. The intent is that programs.ssh.setXAuthLocation should be
automatically enabled if needed or if xauth is already available.

(cherry picked from commit d69dce080d)
2017-02-28 11:19:09 +01:00
Bjørn Forsman
63fee95d58 pythonPackages.gst-python: fix source hash
Commit 5e937b173d
("gstreamer: 1.10.3 -> 1.10.4 for multiple CVEs") bumped the version but not
the hash.

(cherry picked from commit 392331ad58)
2017-02-26 21:54:15 +01:00
Franz Pletz
2296799496 gstreamer: 1.10.3 -> 1.10.4 for multiple CVEs
See https://gstreamer.freedesktop.org/releases/1.10/#1.10.4.

Fixes:

  * CVE-2017-5847
  * CVE-2017-5848

cc #23072

(cherry picked from commit 5e937b173d)
2017-02-26 18:12:45 +01:00
Franz Pletz
fcc6e3a6ac linux: 4.9.12 -> 4.9.13
(cherry picked from commit 701544d0a7)
2017-02-26 18:11:22 +01:00
Franz Pletz
d2ceedd63d linux: 4.4.51 -> 4.4.52
(cherry picked from commit 62857b1f21)
2017-02-26 18:11:22 +01:00
Frederik Rietdijk
bda6b1867b diffoscope: 63 -> 77
(cherry picked from commit de4643eb80)
/cc #23072.  I had to juggle pythonPackages.
2017-02-26 16:52:27 +01:00
Joachim Fasting
7ed757d123 grsecurity: 4.9.11-201702222257 -> 4.9.12-201702231830
(cherry picked from commit 0150d9a95c)
2017-02-26 14:11:51 +01:00
Joachim Fasting
db39feafda grsecurity: 4.9.11-201702181444 -> 201702222257
(cherry picked from commit b92501f0d8)
2017-02-26 14:11:48 +01:00
Joachim Fasting
149028c4fc grsecurity: 4.9.10-201702152052 -> 4.9.11-201702181444
(cherry picked from commit ca016c2626)
2017-02-26 14:11:46 +01:00
Franz Pletz
38ba8c4b72 mpd: 0.20.4 -> 0.20.5
Fixes buffer overflows and a memleak.

(cherry picked from commit 05706869a8)
2017-02-25 13:49:23 +01:00
Franz Pletz
58f363fe98 mupdf: add patch to fix CVE-2017-5896
(cherry picked from commit 6dfbb070fb)
2017-02-25 09:59:20 +01:00
Franz Pletz
edce91c88e qemu: apply patches for multiple CVEs
Fixes:

  * CVE-2017-2615
  * CVE-2017-5667
  * CVE-2017-5898
  * CVE-2017-5931
  * CVE-2017-5973

We are vulnerable to even more CVEs but those are either not severe like
memory leaks in obscure situations or upstream hasn't acknowledged the
patch yet.

cc #23072

(cherry picked from commit 6bafe64a20)
2017-02-25 09:44:40 +01:00
Lluís Batlle i Rossell
e1874d0456 Revert "neomutt: update to 20170206"
This reverts commit cb6ed5341c.

Wrong branch.
2017-02-25 00:33:29 +01:00
Lluís Batlle i Rossell
cb6ed5341c neomutt: update to 20170206
Release in github. I also enabled compressed folders.

Signed-off-by: Lluís Batlle i Rossell <viric@viric.name>
2017-02-25 00:32:44 +01:00
Dan Peebles
05eb31fbba google-compute-image.nix: fix evaluation failure
(cherry picked from commit 15c05ad213)
2017-02-24 11:34:11 +01:00
Graham Christensen
4d006d3371 Revert "Revert "linux kernels: patch against DCCP double free (CVE-2017-6074)""
This reverts commit 53a2baabbe.

(cherry picked from commit d36b1ccc13)
2017-02-23 22:08:57 -05:00
Tim Steinbach
9ae2c6083c kernel: 4.4.50 -> 4.4.51 2017-02-23 17:48:59 -05:00
Tim Steinbach
ee0cbde1e4 kernel: 4.9.11 -> 4.9.12 2017-02-23 17:48:51 -05:00
Bjørn Forsman
afd8c9deca spotify: 1.0.49.125.g72ee7853-83 -> 1.0.49.125.g72ee7853-111
(cherry picked from commit 52eab0376c)
2017-02-23 22:21:50 +01:00
Vladimír Čunát
7d9e9c7eee knot-resolver: maintenance 1.2.2 -> 1.2.3
Just tiny fixes for some rare circumstances.
https://lists.nic.cz/pipermail/knot-dns-users/2017-February/001066.html

(cherry picked from commit cb63a0b2da)
2017-02-23 16:24:16 +01:00
Vladimír Čunát
05db33f79b dnsperf: init at 2.1.0.0
(cherry picked from commit 0bfbd039f9)
New package; seems safe enough.  I had to add openssl input.
2017-02-23 14:51:49 +01:00
Vladimír Čunát
2adafd9916 fstrm: init at 0.3.1
(cherry picked from commit a04849502d)
New package; seems safe enough.
2017-02-23 14:04:48 +01:00
Graham Christensen
c9e751c69a Merge pull request #23095 from peterhoeg/u/lynx_stable
lynx: 2.8.8rel.2 -> 2.8.9dev.11
2017-02-22 21:16:00 -05:00
Graham Christensen
d87a40ea26 firebird: 2.5.6.27020-0 -> 2.5.7.27050-0 for '2.5.7.27050-0' bypass
(cherry picked from commit 6c37a92b2b)
2017-02-22 20:56:59 -05:00
Peter Hoeg
1b72afdd3c lynx: 2.8.8rel.2 -> 2.8.9dev.11
(cherry picked from commit a3bf71b76f)
2017-02-23 07:36:18 +08:00
Vladimír Čunát
3de44caaa8 libevent: apply security patches from Debian
/cc #23072.  As with curl, it's nontrivial rebuild but security...
https://lwn.net/Alerts/714571/

(cherry picked from commit f5eea8ba1d)
2017-02-22 19:02:50 +01:00
Tim Steinbach
6fcd2d207a curl: 7.52.1 -> 7.53.0 (#23063)
(cherry picked from commit b1c6a9bfcc)
I believe this fixes CVE-2017-2629:
https://curl.haxx.se/docs/adv_20170222.html
2017-02-22 18:14:57 +01:00
Michael Raskin
6e1735037d wireshark: patch for CVE-2017-6041
(cherry picked from commit 194d137bd3)
2017-02-22 14:17:54 +01:00
Graham Christensen
142fd06afc xen: patch for XSAs: 197, 199, 207, 208, 209
XSA-197 Issue Description:

> The compiler can emit optimizations in qemu which can lead to double
> fetch vulnerabilities.  Specifically data on the rings shared
> between qemu and the hypervisor (which the guest under control can
> obtain mappings of) can be fetched twice (during which time the
> guest can alter the contents) possibly leading to arbitrary code
> execution in qemu.

More: https://xenbits.xen.org/xsa/advisory-197.html

XSA-199 Issue Description:

> The code in qemu which implements ioport read/write looks up the
> specified ioport address in a dispatch table.  The argument to the
> dispatch function is a uint32_t, and is used without a range check,
> even though the table has entries for only 2^16 ioports.
>
> When qemu is used as a standalone emulator, ioport accesses are
> generated only from cpu instructions emulated by qemu, and are
> therefore necessarily 16-bit, so there is no vulnerability.
>
> When qemu is used as a device model within Xen, io requests are
> generated by the hypervisor and read by qemu from a shared ring.  The
> entries in this ring use a common structure, including a 64-bit
> address field, for various accesses, including ioport addresses.
>
> Xen will write only 16-bit address ioport accesses.  However,
> depending on the Xen and qemu version, the ring may be writeable by
> the guest.  If so, the guest can generate out-of-range ioport
> accesses, resulting in wild pointer accesses within qemu.

More: https://xenbits.xen.org/xsa/advisory-199.html

XSA-207 Issue Description:

> Certain internal state is set up, during domain construction, in
> preparation for possible pass-through device assignment.  On ARM and
> AMD V-i hardware this setup includes memory allocation.  On guest
> teardown, cleanup was erroneously only performed when the guest
> actually had a pass-through device assigned.

More: https://xenbits.xen.org/xsa/advisory-207.html

XSA-209 Issue Description:

> When doing bitblt copy backwards, qemu should negate the blit width.
> This avoids an oob access before the start of video memory.

More: https://xenbits.xen.org/xsa/advisory-208.html

XSA-208 Issue Description:

> In CIRRUS_BLTMODE_MEMSYSSRC mode the bitblit copy routine
> cirrus_bitblt_cputovideo fails to check wethehr the specified memory
> region is safe.

More: https://xenbits.xen.org/xsa/advisory-209.html
(cherry picked from commit cc4919da89)
2017-02-22 08:01:11 -05:00
Franz Pletz
43654d35b8 php70: 7.0.15 -> 7.0.16
(#23072)

(cherry picked from commit 405e117d31)
Signed-off-by: Robin Gloster <mail@glob.in>
2017-02-22 13:45:51 +01:00
Lorenzo Manacorda
cac0a75222 Make more visible which fetch approach is best
Prepend "bad/better/best" to each paragraph, to make more visible which approach is best

(cherry picked from commit 4e0bb261d0)
2017-02-22 01:12:52 +01:00
Eelco Dolstra
43241e7627 Grrr
(cherry picked from commit d0d5ea0cdf)
2017-02-21 15:26:44 +01:00
Eelco Dolstra
8fe5f05ebd Fix Ubuntu 16.10 name
(cherry picked from commit fac3438a96)
2017-02-21 15:24:18 +01:00
Eelco Dolstra
3e86c8ecc8 Add Ubuntu 16.10
(cherry picked from commit 1fdb52ffcc)
2017-02-21 15:09:39 +01:00
Eelco Dolstra
b155408bfe Add Fedora 25
(cherry picked from commit 012b5a5c45)
2017-02-21 15:09:38 +01:00
Franz Pletz
ec7a66c035 gitlab: 8.16.4 -> 8.16.6
(cherry picked from commit c302cb4910)
2017-02-20 21:58:17 +01:00
Eelco Dolstra
51d4de90c1 Add ca-central-1 AMIs
(cherry picked from commit 4b833facf1)
2017-02-19 23:46:42 +01:00
Eelco Dolstra
14ffab3993 Create AMIs for ca-central-1 (Canada)
(cherry picked from commit a2b8ceb83a)
2017-02-19 23:23:42 +01:00
Lorenzo Manacorda
a585f987fa manual: Add link to config section (#22994)
Add link to "Configuration" chapter from "Changing the Configuration" section.

Also, fix grammar error.
2017-02-19 17:53:09 +01:00
Tim Steinbach
46f1e9af6e linux: 4.4.48 -> 4.4.50 2017-02-18 18:40:20 -05:00
Tim Steinbach
c056f0acfc kernel: 4.9.10 -> 4.9.11 2017-02-18 18:34:59 -05:00
Peter Hoeg
4314df5f99 Merge pull request #22930 from peterhoeg/u/calibre
calibre: 2.64.0 -> 2.76.0
2017-02-18 13:50:20 +08:00
Peter Hoeg
a1a13ad691 calibre: 2.64.0 -> 2.76.0 2017-02-18 12:18:46 +08:00
Joachim Fasting
134772e7d6 linux_4_9: 4.9.9 -> 4.9.10
(cherry picked from commit 73577a2b05)
2017-02-17 22:37:25 -05:00
Joachim Fasting
ce3ffe7aee linux_4_9: patch for CVE-2017-5986
Seems fairly low impact[1] but we might as well patch it until a new 4.9
version is released

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1420276

(cherry picked from commit e8007c0e89)
2017-02-17 22:37:17 -05:00
Vladimír Čunát
1cc9887801 libxml2: bugfix updates from git upstream
This should solve CVE-2016-5131 and some other bugs, but not what Suse
calls CVE-2016-9597: https://bugzilla.suse.com/show_bug.cgi?id=1017497
The bugzilla discussion seems to indicate that the CVE is referenced
incorrectly and only shows reproducing when using command-line flags
that are considered "unsafe".

CVE-2016-9318 also remains unfixed, as I consider their reasoning OK:
https://lwn.net/Alerts/714411/

/cc #22826.

(cherry picked from commit 5ad81ab09c)
2017-02-17 22:35:22 -05:00
Herwig Hochleitner
3c10c74246 webkitgtk: 2.14.4 -> 2.14.5
(cherry picked from commit 2640c87fb9)
2017-02-17 22:34:40 -05:00
Graham Christensen
381c2bd0d6 netpbm: 10.70.00 -> 10.77.02 for numerous fixes
more: https://sourceforge.net/p/netpbm/code/2883/tree/advanced/doc/HISTORY
(cherry picked from commit f308722a00)
2017-02-17 22:17:59 -05:00
Robin Gloster
8a18e14582 Merge pull request #22917 from rycee/fix/graylog/16.09
Fix Graylog on NixOS 16.09
2017-02-17 22:13:08 +01:00
Tristan Helmich
9a920fdfe8 graylog: 2.1.1 -> 2.1.2
(cherry picked from commit ee63779005)
2017-02-17 21:36:01 +01:00
Tristan Helmich
65b73b226e graylog: 2.1.0 -> 2.1.1 (#18663)
(cherry picked from commit c187f2f903)
2017-02-17 21:36:01 +01:00
Tristan Helmich
234612e395 graylog: 2.0.3 -> 2.1.0 (#18200)
(cherry picked from commit 2e9aa13773)
2017-02-17 21:35:55 +01:00
Robin Gloster
33ed68f876 gexiv2: 0.10.3 -> 0.10.4
fixes the shotwell build
2017-02-17 21:35:10 +01:00
Matthias Herrmann
c8ef36904b sweethome3d: version compatible with master and 16.09
[Bjørn: let the package function take 'libXxf86vm' as input instead of
'xorg' (the whole set).]

(cherry picked from commit 89a0365063)
2017-02-17 19:33:40 +01:00
Matthias Herrmann
1c419060c6 sweethome3d: 5.2 -> 5.4
(cherry picked from commit be7a6eb70e)
2017-02-17 19:33:23 +01:00
Bjørn Forsman
f97ec84c11 pcsctools: unbreak 'gscriptor' by adding cairo
Fixes this:

  $ gscriptor
  Can't load '/nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so' for module Pango: /nix/store/17w6hdwbli924v7d43xxxp66qhgqpc24-perl-Pango-1.227/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/auto/Pango/Pango.so: undefined symbol: cairo_font_type_to_sv at /nix/store/5z1wn7knhckr3a0asb8lzp99sdai09f2-perl-5.22.2/lib/perl5/5.22.2/x86_64-linux-thread-multi/DynaLoader.pm line 193.
   at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31.
  Compilation failed in require at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31.
  BEGIN failed--compilation aborted at /nix/store/srdac7af3nz6fb74haa8l8ls9wd9pas0-perl-Gtk2-1.2498/lib/perl5/site_perl/5.22.2/x86_64-linux-thread-multi/Gtk2.pm line 31.
  Compilation failed in require at /nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped line 28.
  BEGIN failed--compilation aborted at /nix/store/sgy2xsyvmam09pl25x8gb507gyiz9ybn-pcsc-tools-1.4.25/bin/.gscriptor-wrapped line 28.

(cherry picked from commit 73112a6e78)
2017-02-17 19:33:20 +01:00
Joachim Fasting
9021951682 grsecurity: 4.9.8-201702071801 -> 4.9.10-201702152052
(cherry picked from commit bc2f53fd29)
2017-02-17 16:57:53 +01:00
Kamil Chmielewski
ac4559e7e9 chromium: flashplayer: 24.0.0.194 -> 24.0.0.221
[Critical security fix] - see #22792

(cherry picked from commit 1a77e4141d)
Signed-off-by: Robin Gloster <mail@glob.in>
2017-02-17 11:51:52 +01:00
Rob Vermaas
780a38c611 nixops: update to 1.5 2017-02-16 17:01:56 +00:00
Graham Christensen
feb901f7c6 Merge pull request #19523 from rasendubi/containers-dev-tun
Allow access to /dev/net/tun inside containers (port to 16.09)
2017-02-16 10:33:16 -05:00
Matthew Maurer
9f7ec8102e openssl: 1.1.0d -> 1.1.0e for High severity CVE-2017-3733
(cherry picked from commit 0d2ba7ef2b)
2017-02-16 09:34:54 -05:00
Bjørn Forsman
3c227aaa53 genimage: init at 9
Genimage is a tool to generate filesystem images from directory trees.

(cherry picked from commit a1892edcee)
2017-02-16 15:17:51 +01:00
Profpatsch
5e303aaae8 geteltorito: switch to upstream dist (#19226)
Upstream has now a versioned release, so we switch over from the github
mirror.
(cherry picked from commit bc8733aae6)
2017-02-16 15:17:37 +01:00
Profpatsch
e355b970c7 geteltorito: init at 0.6 (#18614)
(cherry picked from commit c535924f5f)
2017-02-16 15:17:30 +01:00
Graham Christensen
c1f2331121 Merge pull request #22544 from rnhmjoj/caddy-backport
caddy: 0.9.2 -> 0.9.5 (backport)
2017-02-16 07:54:36 -05:00
Graham Christensen
3113646340 redis: 3.2.5 -> 3.2.7 for two vulnerabilities
more: https://www.reddit.com/r/redis/comments/5r8wxn/redis_327_is_out_important_security_fixes_inside/
(cherry picked from commit b207bf523b)
2017-02-15 19:47:09 -05:00
Daiderd Jordan
538e642832 vim: add patch for possible overflow with corrupted spell file 2017-02-15 20:50:23 +01:00
Michael Raskin
50b671b309 graphviz_2_0: hide inside monotoneViz
The old Graphviz version is vulnerable, but monotone-viz will never feed
it bad input.

(cherry picked from commit c731738ecc)
2017-02-15 15:12:19 +01:00
Peter Simons
4838518599 Merge pull request #22805 from LumiGuide/fix-hoogle-ghcjs
ghcWithHoogle: fix for ghcjs
(cherry picked from commit cb2499acd0)
2017-02-15 14:32:43 +01:00
Peter Hoeg
6309d97305 syncthing-inotify: 0.8.4 -> 0.8.5 2017-02-15 10:20:26 +01:00
Franz Pletz
f3587ccf4e ffmpeg: 3.1.6 -> 3.1.7 for multiple CVEs
Fixes CVE-2017-5024 & CVE-2017-5025.

See https://ffmpeg.org/security.html.

(cherry picked from commit d2426f0aa8)
2017-02-15 09:49:24 +01:00
Graham Christensen
701192eeb0 ffmpeg_3: 3.1.4 -> 3.1.6
(cherry picked from commit 16f8f0d313)
2017-02-15 09:49:23 +01:00
Franz Pletz
13e939673c ffmpeg: 2.8.10 -> 2.8.11 for multiple CVEs
Fixes CVE-2017-5024 & CVE-2017-5025.

See https://ffmpeg.org/security.html.

(cherry picked from commit 78f59f1223)
2017-02-15 09:49:23 +01:00
Franz Pletz
987e3e59d5 gnutls: 3.5.8 -> 3.5.9
Bugfix release.

(cherry picked from commit 1e65d0b9e9)
2017-02-15 09:49:23 +01:00
Franz Pletz
a2448491e4 webkitgtk: 2.14.3 -> 2.14.4 for multiple CVEs
Fixes:

  * CVE-2017-2350
  * CVE-2017-2354
  * CVE-2017-2355
  * CVE-2017-2356
  * CVE-2017-2362
  * CVE-2017-2363
  * CVE-2017-2364
  * CVE-2017-2365
  * CVE-2017-2366
  * CVE-2017-2369
  * CVE-2017-2371
  * CVE-2017-2373

See https://webkitgtk.org/security/WSA-2017-0002.html.

(cherry picked from commit 07309d740a)
2017-02-15 09:49:22 +01:00
mimadrid
47fbc9cc78 shotwell: 0.25.2 -> 0.25.5
(cherry picked from commit e3d7ce842b)
2017-02-15 06:51:17 +01:00
mimadrid
4d73cd35ab shotwell: 0.23.5 -> 0.25.2
(cherry picked from commit 5e3c4b2bf7)
2017-02-15 06:51:09 +01:00
Tristan Helmich
2fad5fefec gitlab: 8.16.3 -> 8.16.4
(cherry picked from commit 8d853d0190)
2017-02-14 23:58:12 +01:00
Franz Pletz
a93c2f865e gitlab service: fix database creation
Providing custom a username and database name was broken. They were
hardcoded to "gitlab".

(cherry picked from commit f5a82e4714)
2017-02-14 23:58:10 +01:00
Vladimír Čunát
f3481d6686 Merge #22792: flashplayer: 24.0.0.194 -> 24.0.0.221
Critical security + bugfix update!

(cherry picked from commit 7b32b8a474)
2017-02-14 19:03:06 +01:00
Graham Christensen
84e6822e86 wireguard: update description to describe its current state
(cherry picked from commit 1a9707de24)
2017-02-14 08:23:37 -05:00
Jason A. Donenfeld
afc8eefda7 wireguard: 0.0.20170213 -> 0.0.20170214
This has a quick fix for old bash.
(cherry picked from commit 36d50978b2)
2017-02-14 08:23:31 -05:00
Jason A. Donenfeld
42b530fea0 wireguard: 0.0.20170115 -> 0.0.20170213 (#22759)
(cherry picked from commit 2ad8face66)
2017-02-14 08:23:25 -05:00
Jörg Thalheim
865a1b9428 wireguard: 0.0.20170105 -> 0.0.20170115
(cherry picked from commit 12b2830446)
2017-02-14 08:23:19 -05:00
Jason A. Donenfeld
e514784148 wireguard: 0.0.20161230 -> 0.0.20170105
Version bump that contains some new tools.

fixes #21666

(cherry picked from commit 1ba9a3cd9b)
2017-02-14 08:23:14 -05:00
Jörg Thalheim
be0a84783b wireguard: 0.0.20161223 -> 0.0.20161230
fixes #21572

(cherry picked from commit f3052035ee)
2017-02-14 08:23:08 -05:00
Jörg Thalheim
9e7f7f4b8a wireguard: 0.0.20161218 -> 0.0.20161223
(cherry picked from commit c98f3ffea8)
2017-02-14 08:23:02 -05:00
Jason A. Donenfeld
ea45f205bb wireguard: 20161209 -> 20161218 (#21288)
(cherry picked from commit 77588ca442)
2017-02-14 08:22:56 -05:00
Franz Pletz
c5eb4f1f88 wireguard: 20161129 -> 20161209
(cherry picked from commit a4586f87dc)
2017-02-14 08:22:50 -05:00
Jörg Thalheim
e32f0df7fc wireguard: 0.0.20161116.1 -> 0.0.20161129
(cherry picked from commit 7c8d4cd9a9)
2017-02-14 08:22:44 -05:00
Franz Pletz
72e628f55a wireguard: 0.0.20161110 -> 0.0.20161116.1
(cherry picked from commit 94731510c4)
2017-02-14 08:22:39 -05:00
Jörg Thalheim
8d799c622d wireguard: 2016-10-25 -> 0.0.20161110
(cherry picked from commit c0f9bc9b4e)
2017-02-14 08:22:33 -05:00
Franz Pletz
efdcb44fd4 wireguard: 2016-10-01 -> 2016-10-25
(cherry picked from commit 6e17ee638c)
2017-02-14 08:22:27 -05:00
Eric Sagnes
f88032f1ea wireguard: 2016-08-08 -> 2016-10-01
(cherry picked from commit 58d44a376e)
2017-02-14 08:22:21 -05:00
Tim Steinbach
fb3ea26bc6 linux: 3.10.104 -> 3.10.105 2017-02-13 18:47:32 -05:00
Joachim Fasting
9b8c2c7535 Revert "syncthing: 0.14.17 -> 0.14.23 (#22553)"
This reverts commit 9cf004b346.

See 9cf004b346 (commitcomment-20864154)
2017-02-13 23:51:03 +01:00
mimadrid
5312121db2 sudo: 1.8.19p1 -> 1.8.19p2
(cherry picked from commit 2aad8590d7)
2017-02-13 23:48:11 +01:00
mimadrid
de7c5d1ffa sudo: 1.8.18p1 -> 1.8.19p1
(cherry picked from commit c4f46949a6)
2017-02-13 23:48:05 +01:00
Rickard Nilsson
0f769e6c9c nixos/grafana: Don't print password warning if no password has been set
(cherry picked from commit cda4a4dcfc)
2017-02-13 23:13:06 +01:00
Rob Vermaas
2da8a5dac8 Azure: switch back to qemu 2.2.0 for generating image. Seems to work best. 2017-02-13 09:54:18 +00:00
Rob Vermaas
e16db5666a Use default qemu for azure image generation, and use option to enforce sizing of image to be compliant with Azure/HyperV. 2017-02-13 08:54:10 +00:00
Robert Helgesson
d375f42115 subtitle-editor: fix build
Apply Debian patch that makes the project build with later GStreamer
versions.

(cherry picked from commit 446aa6834a)
2017-02-13 08:32:52 +01:00
José Romildo Malaquias
bb0f9d5e47 subtitleeditor: 0.52.1 -> 0.53.0
(cherry picked from commit c212ad1630)
2017-02-13 08:32:33 +01:00
Vladimír Čunát
019dcc3745 Revert "host: patch up after glibc update"
This reverts commit 0e0038f2bc.
(Not needed after the glibc revert.)
2017-02-12 12:16:59 +01:00
Vladimír Čunát
a99e73cad1 Revert "glibc: security 2.24 -> 2.25"
This reverts commit fd7e5cbae5.

Apparently there were some potentially disruptive changes,
and the security issues don't seem really important, so perhaps
we won't update, at least for now.

https://github.com/NixOS/nixpkgs/issues/22699
2017-02-12 12:16:54 +01:00
Frederik Rietdijk
4adca5bbc6 Revert "pythonPackages.argparse: only for Python < 2.7"
This breaks unittest2
c901d5bc60
and that would take some more effort to fix.

Maybe this is also a transient
https://github.com/NixOS/nixpkgs/issues/22697#issuecomment-279209784

This reverts commit c901d5bc60.
2017-02-12 11:46:56 +01:00
Frederik Rietdijk
c901d5bc60 pythonPackages.argparse: only for Python < 2.7
(cherry picked from commit bee23d7dfc)
2017-02-12 10:28:32 +01:00
Rob Vermaas
4eb92c5c64 Make azure-mgmt-... work with requests 2.11.x. We should update the azure python packages, however, that is a much bigger effort. This is needed to make sure nixops keeps working with Azure. 2017-02-12 09:23:52 +00:00
Rob Vermaas
81f2bde0a2 Make azure-mgmt-resource work with requests 2.11.x. We should update the azure python packages, however, that is a much bigger effort. This is needed to make sure nixops keeps working with Azure. 2017-02-12 09:10:35 +00:00
Vladimír Čunát
0e0038f2bc host: patch up after glibc update
This program is some ancient version with terrible code.
I'll replace it on master.
2017-02-12 09:36:06 +01:00
aszlig
e76c8ac44e nixos/tests/chromium: Run tests as normal user
The tests have failed because Chromium has started up displaying the
following error message in a dialog window:

  Chromium can not be run as root.

  Please start Chromium as a normal user. If you need to run as root for
  development, rerun with the --no-sandbox flag.

So let's run as user "alice" and pass all commands using the small
helper function "ru" (to keep it short, it's for "Run as User").

Tested it by running the "stable" test on x86_64-linux.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: @globin
(cherry picked from commit cd10e3c4ff)
2017-02-11 23:59:04 +00:00
Will Dietz
8dc4af61dd LLVM: Fix licensing metadata, closes #22679. (#22681)
* All projects are available under NCSA license,
  other than dragonegg.
* "Runtime" projects are dual-licensed under
  both NCSA and MIT:
  libc++, libc++abi, compiler-rt
* I don't mention MIT for compiler-rt as
  we only build it as part of LLVM.
(cherry picked from commit 947c26972b)
2017-02-11 23:14:10 +01:00
Vladimír Čunát
fd7e5cbae5 glibc: security 2.24 -> 2.25
https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html

Stripping was failing on libm.a; I don't know why.

(cherry picked from commit a01f8a4c38)
2017-02-11 22:52:55 +01:00
Graham Christensen
a260f5f1b0 Merge pull request #22684 from xwvvvvwx/update-spotify
spotify: 1.0.47.13 -> 1.0.49.125
2017-02-11 16:50:31 -05:00
David Terry
7c7d9773ad spotify: 1.0.47.13 -> 1.0.49.125
(cherry picked from commit cb4e8919c3)
2017-02-11 22:46:50 +01:00
Frederik Rietdijk
bcf97ef123 pythonPackages.flexget: use html5lib 1.0b8
html5lib 1.0b9 made a breaking API change that requires beautifulsoup
4.5 or newer, which would require upgrading flexget to support.

See in master 0cb52dc836
2017-02-11 17:52:03 +01:00
Vladimír Čunát
66921623e7 knot-resolver: maintenance 1.2.1 -> 1.2.2
In particular, trust anchor bootstrapping is fixed after IANA publishing
an additional key.

(cherry picked from commit 0b7fec6272)
2017-02-11 17:48:01 +01:00
Graham Christensen
9200d6df8e Merge pull request #22665 from peterhoeg/f/mupdf
mupdf: update mujs due to CVEs
2017-02-11 09:18:49 -05:00
Peter Hoeg
890f40ddeb mupdf: update mujs to fix multiple CVEs 2017-02-11 22:09:27 +08:00
Vladimír Čunát
693195fc8c nixos manual: add grub option to avoid #21830
Close #22659.  vcunat edited this slightly.

(cherry picked from commit d4bf624f96)
2017-02-11 12:50:35 +01:00
Vladimír Čunát
369fd67a5e Merge #22649: libxml2: add icuSupport ? false
This causes no rebuilds by default.  Fixes #22623, kind of.

(cherry picked from commit db8ac6144e)
2017-02-11 12:01:15 +01:00
Christoph Hrdinka
498b5c8119 nsd: 4.1.13 -> 4.1.14
* Fix #1132 for SERVFAIL zones perform backoff, and remembers the timeout on next startup.

* Fix null memcpy for radixtree with single link element.
* Robust fix against missing master in tcp_open for xfrd.
* Fix wildcards in include: config statements with chroot enabled.
* suppress compile warning in lex files.
* Fix to try every master once, then wait for timeout or notify.
* Save backoff timeout into xfrd.state file, this file has a higher version number now. Old files are skipped silently (causes refresh) and created as new files upon exit.
* Fix restart of zone transfers when new config becomes available.
2017-02-10 15:13:33 +01:00
Peter Hoeg
9cf004b346 syncthing: 0.14.17 -> 0.14.23 (#22553) 2017-02-09 23:09:28 +01:00
Franz Pletz
f6169b1c64 linux: 4.9.8 -> 4.9.9
(cherry picked from commit 9dec33dc4f)
2017-02-09 16:33:42 +01:00
Franz Pletz
382a97bc08 linux: 4.4.47 -> 4.4.48
(cherry picked from commit 9d8248517e)
2017-02-09 16:33:42 +01:00
Franz Pletz
ddfc6a6429 linux: 3.18.47 -> 3.18.48 2017-02-09 16:31:49 +01:00
Benjamin Staffin
23b1a31c9e spl: 0.6.5.8 -> 0.6.5.9 2017-02-09 16:22:06 +01:00
Benjamin Staffin
b29aa49854 zfs: 0.6.5.8 -> 0.6.5.9 2017-02-09 16:22:06 +01:00
Peter Hoeg
30d203f6ab dropbox: 18.4.32 -> 19.4.13 (#22546)
(cherry picked from commit b2e71c4224223f4ae3a618dc71237f7f61edbcfe)
2017-02-09 15:30:02 +01:00
Graham Christensen
e1e3ef7e52 graphicsmagick: patch for CVE-2016-9830
(cherry picked from commit 4b6692a510)
2017-02-09 07:21:24 -05:00
Franz Pletz
8e862502f3 bind: 9.10.4-P5 -> 9.10.4-P6 for CVE-2017-3135
See https://kb.isc.org/article/AA-01453.

cc #22549

(cherry picked from commit da5eaa3c21)
2017-02-09 10:46:19 +01:00
Vladimír Čunát
be79c4cd9e pythonPackages.gst-python: fix hash after afd59811a1
/cc #22549.

(cherry picked from commit 333e36eca0)
2017-02-09 09:43:35 +01:00
Michael Raskin
fc30b42e78 rtmpdump: 2015-01-15 -> 2015-12-30
(cherry picked from commit 386ecdcb4d)
2017-02-09 08:48:43 +01:00
Graham Christensen
723a5632e1 ntfs3g: patch for CVE-2017-0358
From the Debian advisory:

Jann Horn of Google Project Zero discovered that NTFS-3G, a read-write
NTFS driver for FUSE, does not scrub the environment before executing
modprobe with elevated privileges. A local user can take advantage of
this flaw for local root privilege escalation.

(cherry picked from commit 19f23d00fd)
2017-02-08 22:12:29 -05:00
Graham Christensen
4562b1b138 spice: Patch for CVE-2016-9577, CVE-2016-9578
From the Red Hat advisory:

* A vulnerability was discovered in spice in the server's protocol
  handling. An authenticated attacker could send crafted messages to
  the spice server causing a heap overflow leading to a crash or
  possible code execution. (CVE-2016-9577)

* A vulnerability was discovered in spice in the server's protocol
  handling. An attacker able to connect to the spice server could send
  crafted messages which would cause the process to crash.
  (CVE-2016-9578)

(cherry picked from commit 77e920d874)
2017-02-08 22:04:27 -05:00
Eric Sagnes
44bf5b2ba5 qutebrowser: fix wrapper
(cherry picked from commit 76f742341c)

Fixes #22550.
2017-02-09 01:05:29 +03:00
Peter Simons
3fd2294b16 taskwarrior: patch bug in bash-completion file
The patch was submitted upstream, too.

(cherry picked from commit 187e5d3d74)
2017-02-08 17:07:55 +01:00
Peter Hoeg
1873f698e7 wavpack: 4.80.0 -> 5.1.0
(cherry picked from commit 5eaec77732)
2017-02-08 10:02:54 -05:00
Graham Christensen
504d394e2b gstreamer-*: 1.10.2 -> 1.10.3 for multiple CVEs
gst-plugins-bad:
From the Arch Linux advisory:
 - CVE-2017-5843 (arbitrary code execution): A double-free issue has
 been found in gstreamer before 1.10.3, in
 gst_mxf_demux_update_essence_tracks.

- CVE-2017-5848 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in gst_ps_demux_parse_psm.
More: https://lwn.net/Vulnerabilities/713772/

gst-plugins-base:
From the Arch Linux advisory:

- CVE-2017-5837 (denial of service): A floating point exception issue
  has been found in gstreamer before 1.10.3, in
  gst_riff_create_audio_caps.

- CVE-2017-5839 (denial of service): An endless recursion issue
  leading to stack overflow has been found in gstreamer before 1.10.3,
  in gst_riff_create_audio_caps.

- CVE-2017-5842 (arbitrary code execution): An off-by-one write has
  been found in gstreamer before 1.10.3, in
  html_context_handle_element.

- CVE-2017-5844 (denial of service): A floating point exception issue
  has been found in gstreamer before 1.10.3, in
  gst_riff_create_audio_caps.
More: https://lwn.net/Vulnerabilities/713773/

gst-plugins-good:
From the Arch Linux advisory:

- CVE-2016-10198 (denial of service): An invalid memory read flaw has
  been found in gstreamer before 1.10.3, in
  gst_aac_parse_sink_setcaps.

- CVE-2016-10199 (denial of service): An out of bounds read has been
  found in gstreamer before 1.10.3, in qtdemux_tag_add_str_full.

- CVE-2017-5840 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in qtdemux_parse_samples.

- CVE-2017-5841 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in gst_avi_demux_parse_ncdt.

- CVE-2017-5845 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in gst_avi_demux_parse_ncdt.
More: https://lwn.net/Vulnerabilities/713774/

gst-plugins-ugly:
From the Arch Linux advisory:

- CVE-2017-5846 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in
  gst_asf_demux_process_ext_stream_props.

- CVE-2017-5847 (denial of service): An out-of-bounds read has been
  found in gstreamer before 1.10.3, in
  gst_asf_demux_process_ext_content_desc.
More: https://lwn.net/Vulnerabilities/713775/

gstreamer:
From the Arch Linux advisory:

An out of bounds read has been found in gstreamer before 1.10.3, in
gst_date_time_new_from_iso8601_string.
More: https://lwn.net/Vulnerabilities/713776/

(cherry picked from commit afd59811a1)
2017-02-08 08:52:37 -05:00
Rob Vermaas
d770337c81 youtube-dl: update to 2017.02.04.1 2017-02-08 10:47:55 +00:00
rnhmjoj
a597e30c2a caddy: 0.9.2 -> 0.9.5 2017-02-08 04:39:54 +01:00
Domen Kožar
a61f7eb122 Merge pull request #22542 from benley/fix-virtualbox
virtualbox: fix the build with toString
2017-02-08 04:17:59 +01:00
Graham Christensen
4f876a4a47 Merge pull request #22484 from bendlas/stable
chromium: 55.0.2883.87 -> 56.0.2924.87 [nixos-stable]
2017-02-07 21:51:12 -05:00
Joachim Fasting
98f8cfbb7e grsecurity: 4.9.8-201702060653 -> 201702071801
(cherry picked from commit bd46a375df)
2017-02-08 03:13:51 +01:00
Joachim Fasting
fc6a87e1fc grsecurity: 4.8.17-201701151620 -> 4.9.8-201702060653
The first release in the 4.9 branch.

I've also migrated my update scripts to SHA-512 so that'll
be the hash of choice for grsec packages going forward.

(cherry picked from commit 0d422c5db5)
2017-02-08 03:13:50 +01:00
Peter Hoeg
82a6c831f6 fpm: fix vulnerable dependency
(cherry picked from commit 4494720241)

Closes https://github.com/NixOS/nixpkgs/pull/22511
2017-02-08 03:13:44 +01:00
Benjamin Staffin
4dcc2e4b1e virtualbox: fix the build with toString 2017-02-07 20:52:30 -05:00
taku0
d2cd8a07cf thunderbird-bin: 45.7.0 -> 45.7.1
(cherry picked from commit 764b1d19f9)
2017-02-07 20:27:57 -05:00
Joachim Fasting
0ccddb459f jbig2dec: patch for CVE-2016-9601
Upstream bug: https://bugs.ghostscript.com/show_bug.cgi?id=697457

A new release containing this fix is expected in march; until then,
apply patch from upstream. Note that there have been essentially no
changes between 0.13 and this patch.

(cherry picked from commit 83f83ca434)
2017-02-07 08:29:18 -05:00
Joachim Fasting
512af01c32 jbig2dec: 0.11 -> 0.13, new upstream location
The most recent version on the sourceforge page is 0.11 which is quite
old; the official upstream site has 0.13; judging by the commit delta,
there've been quite a few bug fixes etc since 0.11.

(cherry picked from commit 12284fff17)
2017-02-07 08:29:11 -05:00
Shea Levy
ff7777b224 ming: Mark broken.
The project seems dead and there are recent security issues.

See https://lwn.net/Vulnerabilities/712664/
2017-02-06 21:10:40 -05:00
Domen Kožar
cd58b22b17 Merge pull request #22502 from LumiGuide/fix-hydra-hydra-evaluator
hydra-module: add cfg.package to hydra-evaluator path
2017-02-06 20:06:19 +01:00
Aycan iRiCAN
894efeb4ad hydra-module: add cfg.package to hydra-evaluator path 2017-02-06 20:03:40 +01:00
Herwig Hochleitner
fed923eec7 chromium: 55.0.2883.87 -> 56.0.2924.87 2017-02-06 05:01:53 +01:00
Bjørn Forsman
d837e52eb7 hydra: 2016-12-09 -> 2017-02-03
Unbreaks the build since commit dea81956fc
("nixUnstable: 1.12pre4911_b30d1e7 -> 1.12pre4997_1351b0d").

(cherry picked from commit 5b4a857126)
2017-02-05 23:17:53 +01:00
Domen Kožar
8352deed4e hydra: 2016-04-15 -> 2016-12-09
Fixes #19396 #21424

(cherry picked from commit 8940c68c09)
2017-02-05 23:17:49 +01:00
Graham Christensen
36ffe58e74 tigervnc: patch for CVE-2017-5581
Patches from https://build.opensuse.org/package/show/openSUSE:Leap:42.2:Update/tigervnc
which unfortunately don't provide public download links.
2017-02-05 16:24:54 -05:00
obadz
67545aa6b2 Merge pull request #22274 from obadz/linux-49-in-16.09
Bump VirtualBox in release-16.09 to work with Linux 4.9.
2017-02-05 20:59:39 +00:00
Pascal Bach
a621e46a96 virtualbox: remove upstream-info.json as it is no longer used
We keep the script as it might be useful in the future.

(cherry picked from commit 5ca3a7e56f)
2017-02-05 20:57:50 +00:00
Pascal Bach
308c6253be virtualbox: 5.1.10 -> 5.1.14
(cherry picked from commit 599df5e108)
2017-02-05 20:57:50 +00:00
Peter Hoeg
a5087e6a47 virtualbox: 5.1.8 -> 5.1.10
(cherry picked from commit bea3209d5f)
2017-02-05 20:57:50 +00:00
Vladimír Čunát
ae1f57c930 opentsdb: fixup sandboxed builds
http://hydra.nixos.org/build/46688690
/cc maintainer @rickynils.

(cherry picked from commit 655a301221)
2017-02-04 21:11:59 +01:00
Franz Pletz
8960ffb7e0 ngrep: fix build due to new libpcap, use debian patches
(cherry picked from commit dabedc40a9)
2017-02-04 21:09:32 +01:00
ikervagyok
ceb9fd2171 packagekit: add 'enableNixBackend' as an option (#21157)
* packagekit: disable nix-backend

Packagekit fails to build on my machines, as long as it's nix-backend is enabled

* packagekit: add 'enableNixBackend' as an option

(cherry picked from commit fa80bf7b0d)
2017-02-04 21:05:27 +01:00
Tim Steinbach
4db7ca8547 linux: 3.12.69 -> 3.12.70 2017-02-04 09:19:09 -05:00
Tim Steinbach
3a776430ad linux: 4.9.7 -> 4.9.8 2017-02-04 09:11:30 -05:00
Pascal Bach
de47888d82 kernel: 4.9.6 -> 4.9.7 2017-02-04 09:11:25 -05:00
Tim Steinbach
6be8d018fe linux: 4.4.46 -> 4.4.47 2017-02-04 09:09:45 -05:00
lassulus
46e3107a63 googleearth: 6.0.3.2197 -> 7.1.4.1529
(cherry picked from commit 1e835f23de)

[Bjørn: without this update it doesn't work at all on release-16.09.]
2017-02-04 14:29:36 +01:00
Robert Helgesson
05a87d24bc git-hub: 0.10 -> 0.11.0
Includes fixes for CVE-2016-7793 and CVE-2016-7794.

(cherry picked from commit 41a0d05872)
2017-02-04 10:58:37 +01:00
Tim Steinbach
c7778c2b03 linux: 4.4.45 -> 4.4.46 2017-02-03 18:37:27 -05:00
Eelco Dolstra
2087008078 nixUnstable: 1.12pre4911_b30d1e7 -> 1.12pre4997_1351b0d
(cherry picked from commit dea81956fc)
2017-02-03 14:58:07 +01:00
Eelco Dolstra
2c73cada02 nixUnstable: 1.12pre4523_3b81b26 -> 1.12pre4911_b30d1e7
(cherry picked from commit c94454a45a)
2017-02-03 14:58:01 +01:00
Michael Raskin
11d120fec9 xorg.libXpm: 3.5.11 -> 3.5.12
(cherry picked from commit 4675cb78cb)
2017-02-03 13:18:12 +01:00
Michael Raskin
cb448f118b shadow: 4.2.1 -> 4.4
(cherry picked from commit d6710e3d66)
2017-02-03 13:17:57 +01:00
3noch
74f24c7589 Add callCabal2nix to haskell packages
Closes https://github.com/NixOS/nixpkgs/pull/22191.

(cherry picked from commit 05ee54782e)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-02-03 10:14:55 +01:00
Maximilian Bosch
e67d70f060 geogebra: 5.0.271.0 -> 5-0-320-0
(cherry picked from commit eda5bca00a)

Older versions are 404, see https://github.com/NixOS/nixpkgs/pull/22231
2017-02-03 01:31:46 +01:00
Mohammed Yaseen Mowzer
21751d9303 geogebra: 5.0.265.0 -> 5.0.271.0
(cherry picked from commit 921682a4d5)
2017-02-03 01:31:38 +01:00
Daiderd Jordan
a42cdcc210 Merge pull request #22376 from LumiGuide/wordpress-4.7.2
wordpress: 4.7.1 -> 4.7.2 (Security fix)
(cherry picked from commit f87fb85259)
2017-02-02 19:32:39 +01:00
Peter Simons
b3e955c652 Merge pull request #22373 from LumiGuide/shelly-ghc802-fix
shelly: fix build on GHC-8.0.2
(cherry picked from commit 437d236121)
2017-02-02 16:09:22 +01:00
Franz Pletz
e7d68fdcac mpd: 0.20 -> 0.20.4
Fixes bugs at least one crash.

Fixes #22368.

(cherry picked from commit 364f089fe7)
2017-02-02 15:26:44 +01:00
Peter Simons
85c48ec714 Merge pull request #22369 from LumiGuide/haddock-api-ghc802-fix
haddock-api: fix build on GHC-8.0.2
(cherry picked from commit 072ebacb01)
2017-02-02 14:49:50 +01:00
Franz Pletz
59d1d6ecb7 imagemagick: 6.9.7-0 -> 6.9.7-6 for multiple CVEs
Fixes at least:

  * CVE-2016-10144
  * CVE-2016-10145
  * CVE-2016-10146
  * CVE-2017-5506
  * CVE-2017-5507
  * CVE-2017-5508
  * CVE-2017-5510
  * CVE-2017-5511

(cherry picked from commit 5e753c1a65)
2017-02-02 11:16:48 +01:00
Rongcui Dong
1605af1eb5 ngspice: 25 -> 26
(cherry picked from commit 7ea20c9e27)

[Bjørn: add lib/maintainers.nix entry. On master branch, this entry
originates from the "kmix: init at 16.12.1" commit (doesn't apply
cleanly on release-16.09).]
2017-02-02 08:04:00 +01:00
Robin Gloster
1498a435b5 libressl_2_3: 2.3.9 -> 2.3.10
security update, no CVE assigned AFAICS

/cc @grahamc
2017-02-02 00:29:05 +01:00
Robin Gloster
3d3b4f30f1 libressl_2_4: 2.4.4 -> 2.4.5
security update, no CVE assigned AFAICS

/cc @grahamc

(cherry picked from commit 0b19f2f742)
Signed-off-by: Robin Gloster <mail@glob.in>
2017-02-02 00:28:51 +01:00
Franz Pletz
43482c31ba jenkins: 2.33 -> 2.44 for multiple CVEs
Fixes:

  * CVE-2017-2598
  * CVE-2017-2599
  * CVE-2017-2600
  * CVE-2011-4969
  * CVE-2017-2601
  * CVE-2015-0886
  * CVE-2017-2602
  * CVE-2017-2603
  * CVE-2017-2604
  * CVE-2017-2605
  * CVE-2017-2606
  * CVE-2017-2607
  * CVE-2017-2608
  * CVE-2017-2609
  * CVE-2017-2610
  * CVE-2017-2611
  * CVE-2017-2612
  * CVE-2017-2613

See https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2017-02-01.

(cherry picked from commit 1095d2cc07)
2017-02-01 23:03:09 +01:00
Vladimír Čunát
c3ec88864b knot-resolver: 1.2.0 -> 1.2.1
It mainly fixes a single issue that perhaps has a minor security impact.
https://lists.nic.cz/pipermail/knot-dns-users/2017-February/001045.html

(cherry picked from commit c3badbb366)
2017-02-01 22:46:57 +01:00
Bjørn Forsman
d16259457f hardinfo: init at 0.5.1
Display information about your hardware and operating system.

(cherry picked from commit 3e5022c787)
2017-02-01 21:14:01 +01:00
Peter Simons
79503c15a0 Merge pull request #22197 from LumiGuide/ghcjsHEAD-upgrade
ghcjs-HEAD: upgrade to the latest HEAD
(cherry picked from commit bd613c20f4)
2017-02-01 11:47:43 +01:00
Thomas Tuegel
7ae9da4269 spotify: 1.0.47 -> 1.0.48
(cherry picked from commit fa1e8ffa76)
2017-01-31 10:35:58 -06:00
Franz Pletz
1756a5d467 tcpdump: 4.8.1 -> 4.9.0 for multiple CVEs
Temporarily use the Debian mirros for the sources because upstream hasn't
released the new version. See https://www.debian.org/security/2017/dsa-3775.

Fixes: CVE-2016-7922, CVE-2016-7923, CVE-2016-7924, CVE-2016-7925,
CVE-2016-7926, CVE-2016-7927, CVE-2016-7928, CVE-2016-7929, CVE-2016-7930,
CVE-2016-7931, CVE-2016-7932, CVE-2016-7933, CVE-2016-7934, CVE-2016-7935,
CVE-2016-7936, CVE-2016-7937, CVE-2016-7938, CVE-2016-7939, CVE-2016-7940,
CVE-2016-7973, CVE-2016-7974, CVE-2016-7975, CVE-2016-7983, CVE-2016-7984,
CVE-2016-7985, CVE-2016-7986, CVE-2016-7992, CVE-2016-7993, CVE-2016-8574,
CVE-2016-8575, CVE-2017-5202, CVE-2017-5203, CVE-2017-5204, CVE-2017-5205,
CVE-2017-5341, CVE-2017-5342, CVE-2017-5482, CVE-2017-5483, CVE-2017-5484,
CVE-2017-5485, CVE-2017-5486.

(cherry picked from commit 44cbb0f54d)
2017-01-31 17:20:23 +01:00
Franz Pletz
81d57f0050 tcpdump: 4.7.4 -> 4.8.1
(cherry picked from commit 9156d932b6)
2017-01-31 17:20:23 +01:00
Franz Pletz
71bcd8bc34 libpcap: 1.7.4 -> 1.8.1
(cherry picked from commit f3f5045432)
2017-01-31 17:20:22 +01:00
Franz Pletz
b68b15651a libarchive: add patch to fix CVE-2017-5601
(cherry picked from commit ca593a7293)
2017-01-31 17:08:14 +01:00
Franz Pletz
a1dae25e81 bitlbee: 3.5 -> 3.5.1 for multiple CVEs
Fixes:

  * CVE-2016-10188
  * CVE-2016-10189
  * CVE-2017-5668

(cherry picked from commit 53bfe0cafe)
2017-01-31 17:08:14 +01:00
Pascal Wittmann
ebc0406bcf bitlbee: 3.4.2 -> 3.5
(cherry picked from commit 2ba9a67299)
2017-01-31 17:08:08 +01:00
Vladimír Čunát
dc96f0359d Merge #22310: Remove myself from maintainers
(cherry picked from commit 557fd03926)
2017-01-31 14:58:48 +01:00
Franz Pletz
140ff04bc7 gitlab: 8.16.1 -> 8.16.3
(cherry picked from commit e07f1f2066)
2017-01-30 21:41:33 +01:00
Rob Vermaas
5fff5a9025 boto: upgrade 2.41.0 to 2.45.0 2017-01-30 15:50:59 +00:00
Tim Steinbach
acbd5da528 kernel: 4.9.5 -> 4.9.6
(cherry picked from commit 99c9252e3f)
2017-01-30 11:02:06 +01:00
Shea Levy
91a860a634 linux 4.9.4 -> 4.9.5
(cherry picked from commit 34c52896d1)
2017-01-30 11:02:06 +01:00
Eelco Dolstra
15a90e3067 linux: 4.9.3 -> 4.9.4
(cherry picked from commit 9a9be9296f)
2017-01-30 11:02:06 +01:00
Tim Steinbach
3a59a15740 linux: 4.9.2 -> 4.9.3
(cherry picked from commit 295337ead5)
2017-01-30 11:02:06 +01:00
Franz Pletz
20999c1a6f linux: 4.9.1 -> 4.9.2
(cherry picked from commit 6b01b229c2)
2017-01-30 11:02:06 +01:00
Tim Steinbach
8258b5c878 kernel: 4.9.0 -> 4.9.1
(cherry picked from commit c1d20ea50c)
2017-01-30 11:02:06 +01:00
Shea Levy
0d9cfd7fc3 linux: add 4.9
(cherry picked from commit f6daae391f)
2017-01-30 11:02:06 +01:00
Thomas Tuegel
0a9965acee firefox-bin: update hashes for 51.0.1
(cherry picked from commit ca7a4ec552)
2017-01-29 12:24:59 -05:00
Robert Helgesson
55d37301e8 perl-List-Compare: 0.39 -> 0.53
Note, the previous package version was in error. Fixes #22234.

(cherry picked from commit 44eedb927a)
2017-01-28 19:15:39 +01:00
Domen Kožar
4281374b8d haskellPackages.cryptonite-openssl: redistribute
(cherry picked from commit fa18c37c71)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-01-28 11:21:40 +01:00
Domen Kožar
abb7d154f6 haskellPackages.hspec-expectations-pretty-diff: fix build
(cherry picked from commit 0056a3a9c4)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-01-28 11:21:35 +01:00
Kevin Cox
b186574f25 libnl: 3.2.23 -> 2.3.29 to revert accidental downgrade.
libnl was accidentally downgrades to 2.3.29 in
8d342d20b5 instead of being upgraded to
2.3.29 so this fixes that.

(cherry picked from commit 6dcc4623ac)
2017-01-27 17:49:01 -05:00
Graham Christensen
86b3957198 Merge pull request #22206 from taku0/firefox-51.0.1-backporting
firefox, firefox-bin: 50.1.0 -> 51.0.1
2017-01-27 09:44:31 -05:00
taku0
c9ed14928d firefox, firefox-bin: 50.1.0 -> 51.0.1
(cherry picked from commit 0dbe492ca9)
2017-01-27 23:41:16 +09:00
Joachim Fasting
4b5f641948 grsecurity: 4.8.16-201701062021 -> 4.8.17-201701151620
(cherry picked from commit c50c551142)
2017-01-27 15:28:31 +01:00
Joachim Fasting
91abecb0e7 grsecurity: 4.8.15-201612301949 -> 4.8.16-201701062021
(cherry picked from commit d6ff445f10)
2017-01-27 15:28:27 +01:00
Joachim Fasting
b65e43a964 grsecurity: adapt new to mirror url structure
(cherry picked from commit 482c67af70)
2017-01-27 15:28:26 +01:00
Joachim Fasting
3ff53e9ce7 grsecurity: use upstream url as the primary source
(cherry picked from commit 9a63779d64)
2017-01-27 15:28:19 +01:00
Graham Christensen
1d91d71791 Merge pull request #22204 from taku0/thunderbird-bin-45.7.0-backporting
thunderbird, thunderbird-bin: 45.6.0 -> 45.7.0
2017-01-27 09:21:57 -05:00
taku0
f3b6b85a7a thunderbird, thunderbird-bin: 45.6.0 -> 45.7.0
(cherry picked from commit 403cb72d9a)
2017-01-27 23:18:17 +09:00
Sander van der Burg
3e0ad83377 xcodeenv, titaniumenv: fix IPA builds by granting codesign the right permissions
(cherry picked from commit b81001188c)
2017-01-27 10:51:48 +01:00
Tim Steinbach
ce7b6df3e0 openjdk8: 8u122-04 -> 8u121-13
(cherry picked from commit 1eea940506)
2017-01-26 21:30:40 -05:00
Graham Christensen
19d9fe20fd qemu: 2.7 -> 2.8, drop 2.7 2017-01-26 20:59:49 -05:00
Tim Steinbach
f97d45669b kernel: 4.4.44 -> 4.4.45
(cherry picked from commit 4345dfb5ba)
2017-01-26 19:56:54 -05:00
Graham Christensen
73bd95dc43 Merge pull request #22142 from yorickvP/asteriskupd
asterisk: 13.6.0 -> 13.13.1
2017-01-26 18:40:03 -05:00
Franz Pletz
d1715e2d11 openssl_1_0_1: not maintained anymore, remove
Contrary to master, this isn't used in 16.09.
2017-01-26 15:49:21 +01:00
Franz Pletz
ad34c191c0 openssl_1_1_0: 1.1.0c -> 1.1.0d for multiple CVEs
Fixes:

  * CVE-2017-3731
  * CVE-2017-3730
  * CVE-2017-3732
  * CVE-2016-7055

(cherry picked from commit 49bfd6068d)
2017-01-26 15:45:03 +01:00
Franz Pletz
1a59ff1646 openssl_1_0_2: 1.0.2j -> 1.0.2k for multiple CVEs
Fixes:

  * CVE-2017-3731
  * CVE-2017-3730
  * CVE-2017-3732
  * CVE-2016-7055

(cherry picked from commit 434c15193a)
2017-01-26 15:45:00 +01:00
Vladimír Čunát
5211464fe3 Merge #22171: wireshark: 2.2.2 -> 2.2.4
(cherry picked from commit d1f73b8546)
Upstream published security advisories for some of the fixed issues.
2017-01-26 15:40:23 +01:00
Joachim Fasting
ffd81814a8 torbrowser: fix url typo
I used nix-prefetch-url to generate the hashes, so of course this
mistake slipped by ...

Ref: 5bbe54272d
(cherry picked from commit 4a4bc14260)
2017-01-26 14:45:41 +01:00
Joachim Fasting
7274b07b95 torbrowser: 6.0.8 -> 6.5
Updates to firefox-esr 45.7, which fixes several critical
vulnerabilities [1]

cc @grahamc

[1]: https://www.mozilla.org/en-US/security/advisories/mfsa2017-02/

(cherry picked from commit 5bbe54272d)
2017-01-26 14:36:50 +01:00
Vladimír Čunát
52070e2bad ffmpeg_2_8: maintenance 2.8.8 -> 2.8.10
(cherry picked from commit 6edc9788f5)
2017-01-26 14:13:52 +01:00
Vladimír Čunát
9b3a29a585 ffmpeg{,-full}: maintenance 3.1.x -> 3.1.6 2017-01-26 13:55:19 +01:00
Sander van der Burg
13c473cbfc nodejs: 4.6.0 -> 4.6.2 and fix build on darwin 2017-01-26 11:37:30 +01:00
Vladimír Čunát
f4bb175de4 mesa: maintenance 12.0.5 -> 12.0.6
This is really likely to be the last bump in this branch.
2017-01-26 09:29:28 +01:00
Lancelot SIX
57ae42d65e ed: 1.13 -> 1.14.1
See http://lists.gnu.org/archive/html/info-gnu/2017-01/msg00004.html
for full release announcement.

(cherry picked from commit 7a4b15020a)
2017-01-25 20:50:58 -05:00
Franz Pletz
362420c42d ppp: add patch to fix CVE-2015-3310
(cherry picked from commit 8047de7c5eacdfdeb4a0267592c36f0f35c6f0b8)
2017-01-25 20:45:05 -05:00
Franz Pletz
f15f5dc987 gd: 2.2.3 -> 2.2.4 for multiple CVEs
Fixes:

  * CVE-2016-9317
  * CVE-2016-6912

(cherry picked from commit 968ac46ac2954b0d237364a1412bf3482f684788)
2017-01-25 20:44:59 -05:00
Franz Pletz
529231cec5 libav_0_8: 0.8.17 -> 0.8.20 for multiple CVEs
Fixes:

  * CVE-2016-9819
  * CVE-2016-9820
  * CVE-2016-9821
  * CVE-2016-9822

(cherry picked from commit e8cd2c51f893bb682b6584f8a49d50661b8a11b6)
2017-01-25 20:44:44 -05:00
Graham Christensen
633bba5697 mariadb: 10.1.19 -> 10.1.21 for multiple CVEs
(cherry picked from commit dfc0453d056641fc19876dd0b5bba4319c0dba62)
2017-01-25 20:37:37 -05:00
Graham Christensen
f97f6797d6 libnl: 3.2.28 -> 3.2.29 for CVE-2017-0386
(cherry picked from commit bd206c69d817eb82d4ad5c0d42372e40786bc61d)
2017-01-25 20:37:31 -05:00
Yorick van Pelt
cd7e50de68 asterisk: add maintainer 2017-01-25 19:42:13 +01:00
Yorick van Pelt
c90544f4b4 asterisk: 13.6.0 -> 13.13.1 2017-01-25 19:10:53 +01:00
Vladimír Čunát
3bdec6ce7e add kresd service with basic options
Still celebrating today's 1.2.0 release!

(cherry picked from commit 278bbe3b33)
2017-01-25 18:47:59 +01:00
Sander van der Burg
5839baad31 xcodeenv: make it work with Xcode 8.2.1
(cherry picked from commit 0f6eab52e1)
2017-01-25 16:58:10 +01:00
Vladimír Čunát
36d024ba45 knot-resolver: init at 1.2.0
Celebrating today's release!

(cherry picked from commit 5d5fb4a2fb)
2017-01-25 15:27:31 +01:00
Graham Christensen
4eb411c387 cvs: patch against CVE-2012-0804 (heap overflow)
(cherry picked from commit 04ae7febc8)
2017-01-25 07:24:39 -05:00
Graham Christensen
83d3cfaee6 Merge pull request #22123 from peterhoeg/u/db_stable
dropbox: 17.4.33 -> 18.4.32
2017-01-24 20:00:26 -05:00
Peter Hoeg
d9033715f5 dropbox: 17.4.33 -> 18.4.32 2017-01-25 08:27:39 +08:00
Franz Pletz
c19eedde7c gitlab: 8.15.4 -> 8.16.1
(cherry picked from commit c9d5e5b34b)
2017-01-24 21:31:03 +01:00
Franz Pletz
4ad684b1aa gitlab: 8.13.5 -> 8.15.4
(cherry picked from commit 6e079bdd60)
2017-01-24 21:31:02 +01:00
Vladimír Čunát
efcc13dfef firefox: pick the API key from nixpkgs master
The change seems risk-free.
2017-01-24 20:32:52 +01:00
taku0
9cb5503bb8 firefox: 50.1.0 -> 51.0, firefox-esr: 45.6.0esr -> 45.7.0esr
(cherry picked from commit 9c9424d316)
It contains security fixes.
2017-01-24 20:32:00 +01:00
Eelco Dolstra
0e92a0ac7a nss: 3.27.2 -> 3.28.1
(cherry picked from commit 2bf0f84f1f)
Also amended by nitpick fixes from f8e39ec13c and 30a94deac,
so the file is now the same as on master.
2017-01-24 20:27:28 +01:00
Michael Raskin
9ef8ffedbd Merge pull request #22085 from peterhoeg/u/ansible_stable
ansible2: 2.2.0.0 -> 2.2.1.0
2017-01-24 18:06:11 +00:00
Peter Hoeg
9b02319ed7 ansible2: 2.2.0.0 -> 2.2.1.0
Also mark ansible as broken since there is a serious CVE filed and no patch
is coming.
2017-01-24 23:48:49 +08:00
Eelco Dolstra
c78022aad1 curl: Apply upstream patch to fix https hangs
https://github.com/curl/curl/issues/1174

Fixes https://github.com/NixOS/nix/issues/1181.

(cherry picked from commit 7bc801e282)
2017-01-24 13:54:45 +01:00
Sander van der Burg
2f77befb16 titaniumenv: add 6.0 SDK + bump kitchensink testcase
(cherry picked from commit de9a4f5fb4)
2017-01-24 13:26:53 +01:00
Eelco Dolstra
b26fa70e5e Revert "Use looser 9pfs caching in VM tests/builds"
This reverts commit c0caaafb03.
2017-01-24 11:17:17 +01:00
Vladimír Čunát
4d8e248e1c webkit: security 2.14.1 -> 2.14.3
https://webkitgtk.org/security/WSA-2017-0001.html
/cc #21967.

(cherry picked from commit 5326cb7340)
2017-01-24 09:50:53 +01:00
Vladimír Čunát
326e156567 gtk3: move gtk-update-icon-cache to the main output
This is basically what aa0fa19373 was for gtk2 and Xfce.
Fixes #20874, though I haven't tested it directly.

(cherry picked from commit df67f58fbf)
2017-01-23 21:54:58 +01:00
Andraz Bajt
0bced777c9 Fix fetchbower to handle SSL origins
(cherry picked from commit d72406985b)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-01-23 16:16:13 +01:00
Franz Pletz
dc6a857af7 linux: 3.18.45 -> 3.18.47
(cherry picked from commit ce3b98d08b)
2017-01-22 18:13:20 +01:00
Franz Pletz
a1672a210b linux: 4.1.36 -> 4.1.38
(cherry picked from commit 61caacbf47)
2017-01-22 18:13:20 +01:00
Tim Steinbach
858a4acd87 kernel: 4.4.43 -> 4.4.44
(cherry picked from commit fc8233a64f)
2017-01-22 12:12:12 -05:00
Bjørn Forsman
d2f4afc7a0 system-config-printer: add missing dependency 'pycairo'
Noticed when running on KDE (in contrast with GNOME, which probably
pulls in pycairo via some impurity).

(cherry picked from commit 19dc19690b)
2017-01-22 01:25:03 +01:00
Bjørn Forsman
f86644a426 pencil: 2.0.18 -> 2.0.21
(cherry picked from commit 4b2f2ccf16)
2017-01-22 01:09:36 +01:00
Franz Pletz
ee4fc9c3e1 libopus: add patch to fix CVE-2017-0381
(cherry picked from commit 140d135ee2)
2017-01-21 14:15:35 +01:00
Niclas Thall
1433871c4f spotify: 1.0.45 -> 1.0.47 (#21856)
(cherry picked from commit 15d36c1f0e)
2017-01-21 13:15:12 +01:00
Pascal Bach
ca03c9f31c ark: add security patch for CVE-2017-5330 (#22007) 2017-01-21 09:34:06 +01:00
Sander van der Burg
a5de88dbe7 nodePackages: upgrade node2nix to version 1.1.1, regenerate the package set and remove v5 expressions 2017-01-20 22:16:14 +01:00
Franz Pletz
71b715a5e1 doc: improve hardening docs
Fixes #18887.

(cherry picked from commit 00ab8e84c6)
2017-01-20 17:47:48 +01:00
Rickard Nilsson
e4a54f5bcd opentsdb: 2.2.0 -> 2.3.0
(cherry picked from commit 7f71dd0c49)
2017-01-20 15:41:02 +01:00
Rickard Nilsson
989697faea elasticsearch2: Minor cleanup
(cherry picked from commit 1948cdf3f4)
2017-01-20 15:40:27 +01:00
Rickard Nilsson
33081dba07 elasticsearch2: 2.4.0 -> 2.4.4
(cherry picked from commit 86fc322e0a)
2017-01-20 15:40:17 +01:00
Rickard Nilsson
aa5cfba486 hbase: 0.98.19 -> 0.98.24
(cherry picked from commit 7b885e339b)
2017-01-20 15:40:06 +01:00
Michael Raskin
2e2558f105 Merge pull request #22001 from nlewo/qemu-cve
Qemu CVEs
(cherry picked from commit ac27b9d836)
2017-01-20 12:37:39 +01:00
Michael Raskin
f86de91865 php70: 7.0.14 -> 7.0.15
(cherry picked from commit ff5ef7d052)
2017-01-20 11:59:57 +01:00
Michael Raskin
2f6f53ed77 php56: 5.6.29 -> 5.6.30
(cherry picked from commit 35fdfd88d4)
2017-01-20 11:59:53 +01:00
Graham Christensen
4e25b8ceea wordpress: 4.6.1 -> 4.7.1 for multiple CVEs
CVE-2017-5487 CVE-2017-5488 CVE-2017-5489 CVE-2017-5490 CVE-2017-5491 CVE-2017-5492 CVE-2017-5493

(cherry picked from commit c0f3b8d629)
2017-01-19 22:54:17 -05:00
Graham Christensen
b4e2d7c641 pythonPackages.pysaml2: patch against external XML entities (CVE-2016-10127)
(cherry picked from commit cda11c958e)
2017-01-19 22:54:11 -05:00
c74d
cff9154372 agrep: init at 3.41.5
In category `tools`, subcategory `text`, add a package definition for
the program [`agrep`] [1] — "Approximate `grep` for fast fuzzy string
searching".

I have tested this patch per nixpkgs manual section 11.1 ("Making
patches").

[1]: <https://www.tgries.de/agrep/>

(cherry picked from commit 0033f6076e)
2017-01-19 15:55:02 +00:00
Michael Raskin
55516d8cdc ikiwiki: 3.20160905 -> 3.20170111
(cherry picked from commit 03700daf07)
2017-01-19 11:34:20 +01:00
Vladimír Čunát
89c567c109 libtiff: apply security patches from Debian
/cc #21967.

(cherry picked from commit 68c9530998)
2017-01-19 08:42:37 +01:00
Franz Pletz
d7a254a65e gnutls35: 3.5.5 -> 3.5.8
Fixes the following security issues:

  * CVE-2017-5334
  * CVE-2017-5335
  * CVE-2017-5336
  * CVE-2017-5337

See https://www.gnutls.org/news.html#2017-01-09 for more information.

(cherry picked from commit 85ac790666)
/cc #21967.
2017-01-19 08:41:41 +01:00
Vladimír Čunát
c22274c72f libtasn1: 4.8 -> 4.10
The fixes in NEWS seem like having a possible security impact.

(cherry picked from commit 8e5e365265)
The security update of gnutls-3.5.x won't build against libtasn1-4.8.
2017-01-19 08:41:23 +01:00
Jean-Pierre PRUNARET
6b28bd0daf munin: 2.0.25 -> 2.0.29
(cherry picked from commit 8abce1dbfb)
2017-01-18 17:16:47 +01:00
Robin Gloster
3be6e9fc5a libupnp: 1.6.20 -> 1.6.21
Fixes CVE-2016-8863, CVE-2016-6255

cc @grahamc

(cherry picked from commit ce0e16f5ea)
Signed-off-by: Robin Gloster <mail@glob.in>
2017-01-18 16:00:07 +01:00
taku0
6be51cd26a oraclejdk: 8u111, 8u112 -> 8u121
(cherry picked from commit 4f94657bee)
2017-01-18 07:38:00 -05:00
Eelco Dolstra
f3937a9e0d EC2 AMIs: 16.09.666.3738950 -> 16.09.1508.3909827
In particular, this includes a fix for using ephemeral disks for /tmp,
and adds AMIs for the new eu-west-2 (London) and us-east-2 (Ohio)
regions.

(cherry picked from commit 42a7d906d9)
2017-01-18 12:47:22 +01:00
Eelco Dolstra
3909827085 Create AMIs for eu-west-2 (London)
(cherry picked from commit 4e516363a8)
2017-01-17 21:49:51 +01:00
Eelco Dolstra
e8af8c9579 amazon-image.nix: Remove redundant log message
(cherry picked from commit c4b5ed5db74cde94b19d519a8d875e3f7df48a76)
(cherry picked from commit d496f23df0)
2017-01-17 21:41:48 +01:00
Eelco Dolstra
96c113226d linux: 4.4.42 -> 4.4.43
(cherry picked from commit e9109b1b97)
2017-01-17 21:41:39 +01:00
Eelco Dolstra
da050d9e97 debian: 8.6 -> 8.7
(cherry picked from commit cc0981b176)
2017-01-17 10:55:52 +01:00
Michael Raskin
1b85d3de3b Merge pull request #21942 from womfoo/bump-16.09/monero-0.10.1
monero: 0.9.4 -> 0.10.1 (release-16.09)
2017-01-17 09:39:46 +00:00
Kranium Gikos Mendoza
9b74a71ac6 monero: 0.9.4 -> 0.10.1 2017-01-17 08:43:48 +08:00
Bjørn Forsman
bb58438b2e lighttpd: 1.4.44 -> 1.4.45
(cherry picked from commit b280b6c568)
2017-01-16 20:41:06 +01:00
Peter Simons
3224c6c1a6 Merge pull request #21924 from Mic92/backport-tofu
Backport: gnupg: build with sqlite to enable TOFU
2017-01-16 14:09:34 +01:00
Aristid Breitkreuz
5de9698e7b keybase: update 1.0.17 -> 1.0.18
(cherry picked from commit 711a42e03a)
Signed-off-by: Robin Gloster <mail@glob.in>
2017-01-16 13:18:56 +01:00
Franz Pletz
d84e9e7222 gnupg: build with sqlite to enable TOFU
See https://lists.gnupg.org/pipermail/gnupg-users/2015-October/054608.html.

(cherry-picked from 3c104ca71c)
2017-01-16 12:18:16 +01:00
Bjørn Forsman
30bb4aac38 nixos/clamav: set "clamav" user's primary group to "clamav"
So that the files created by the clamav service is owned by group
"clamav" instead of "nogroup".

(cherry picked from commit 4c803b904e)
2017-01-15 22:58:30 +01:00
Vladimír Čunát
22c675d822 clamav: fixup build after updating zlib
(cherry picked from commit 81c51b18ee)
2017-01-15 15:47:08 +01:00
Franz Pletz
b8e00186b7 clamav service: refactor
* Sync systemd units with upstream. Upstream uses SIGUSR2 instead of SIGHUP
  to reload the clamd service.

* Convert freshclam service to a oneshot service activated by a systemd timer.
  This way we can make clamd wait for freshclam to finish fetching the virus
  database before failing to start if the database doesn't exist yet.

* Fixes console tools to work as expected as they require hardcoded config
  file locations.

(cherry picked from commit 9e1e3b2880)
2017-01-15 15:46:48 +01:00
Franz Pletz
3daf9cff08 clamav: don't bundle freshclam config with package
Building clamav is expensive due to the bundled llvm.

Closes #20304.

(cherry picked from commit 02e9c88d77)
2017-01-15 15:46:35 +01:00
Franz Pletz
372f157870 runc: 2016-06-15 -> 1.0.0-rc2
(cherry picked from commit 0aa4931671)
2017-01-14 20:02:06 +01:00
Franz Pletz
d3e1a101da containerd: 0.2.3 -> 0.2.5
(cherry picked from commit 4df30fc74f)
2017-01-14 20:02:06 +01:00
Tim Steinbach
fb78a100eb linux: 4.4.41 -> 4.4.42
(cherry picked from commit 9158b89fd3)
2017-01-14 11:02:56 -05:00
Eelco Dolstra
b83c7ecd8a nix: 1.11.5 -> 1.11.6
(cherry picked from commit 96b6968950)
2017-01-13 11:40:12 +01:00
Eelco Dolstra
03ca1a94cf nix: 1.11.4 -> 1.11.5
(cherry picked from commit 0108c31e22)
2017-01-13 11:40:08 +01:00
Bjørn Forsman
0f58628102 avidemux: 2.6.16 -> 2.6.18 2017-01-12 20:18:30 +01:00
Vladimír Čunát
d05b50229b man-pages: 4.08 -> 4.09
Includes about a dozen new pages.

(cherry picked from commit cb6f49a61f)
2017-01-12 19:18:24 +01:00
Domen Kožar
67b2c9419d nixos: fix terminal-server, fixes #21834
(cherry picked from commit e5dcce837a)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-01-12 16:42:02 +01:00
Graham Christensen
55a3cb6980 Merge pull request #21825 from peterhoeg/u/dropbox_stable
dropbox: 16.4.30 -> 17.4.33
2017-01-12 07:29:41 -05:00
Peter Simons
7b34209e1b bind: update to 9.10.4-P5 (CVE-2016-9131, CVE-2016-9147, CVE-2016-9444, CVE-2016-9778) 2017-01-12 10:01:48 +01:00
volth
206fb8f01b flashplayer: 24.0.0.186 -> 24.0.0.194
(cherry picked from commit a3778f6e87)
2017-01-11 20:42:42 -05:00
Peter Hoeg
bb452bcb44 dropbox: 16.4.30 -> 17.4.33 2017-01-12 09:22:43 +08:00
Graham Christensen
480684ae70 jasper: 2.0.6 -> 2.0.10 for null pointer dereference
(cherry picked from commit 18e2639924)
2017-01-11 20:12:48 -05:00
Graham Christensen
b13843273c nvidia_x11_legacy340: 340.96 -> 340.101 for CVE-2016-7382, CVE-2016-7389, CVE-2016-8826
(cherry picked from commit d20d38e68d)
2017-01-11 20:12:42 -05:00
Graham Christensen
f1c3402aba nvidia_x11_legacy304: 304.131 -> 304.134 for CVE-2016-7382, CVE-2016-7389, CVE-2016-8826
(cherry picked from commit 9837dce6d2)
2017-01-11 20:12:35 -05:00
Graham Christensen
4acd692bd0 pcsclite: 1.8.17 -> 1.8.20 for CVE-2016-10109
(cherry picked from commit 847647af6a)
2017-01-11 20:12:29 -05:00
Graham Christensen
2b6ff8cb84 unrtf: patch against CVE-2016-10091
(cherry picked from commit 2dab7782f3)
2017-01-11 20:12:22 -05:00
Michael Raskin
3f42b78269 icoutils: 0.31.0 -> 0.31.1
(cherry picked from commit a00f1c99b8)
2017-01-11 15:18:05 +01:00
Michael Raskin
1237b443f1 libvncserver: 0.9.9 -> 0.9.11
(cherry picked from commit 905349b8a5)
2017-01-11 14:29:49 +01:00
Vladimír Čunát
cd27f9d492 flac: 1.3.1 -> 1.3.2 (security update)
Version bump seems small, but it's after more than two years.

cherry-picked from e2cde1524d
2017-01-11 13:55:56 +01:00
Franz Pletz
6435585d29 runc: add patches to fix CVE-2016-9962
(cherry picked from commit 260d97ca25)
2017-01-11 12:11:55 +01:00
Franz Pletz
199cb714f5 gnutls: 3.4.16 -> 3.4.17
(cherry picked from commit cc40fadf62)
2017-01-11 11:10:00 +01:00
Franz Pletz
479df3e807 gnutls33: 3.3.25 -> 3.3.26
Fixes the following security issues:

  * CVE-2017-5334
  * CVE-2017-5335
  * CVE-2017-5336
  * CVE-2017-5337

See https://www.gnutls.org/news.html#2017-01-09 for more information.
2017-01-11 11:04:53 +01:00
Franz Pletz
924a0b9b45 docker: 1.12.5 -> 1.12.6
Fixes CVE-2016-9962.

(cherry picked from commit cb07316773)
2017-01-11 11:04:24 +01:00
Franz Pletz
b5f9bb6a8a linux: 4.8.16 -> 4.8.17
(cherry picked from commit 3b17823187)
2017-01-11 11:02:50 +01:00
Franz Pletz
eec4304404 linux: 4.4.40 -> 4.4.41
(cherry picked from commit 4c43937af0)
2017-01-11 11:02:49 +01:00
Franz Pletz
8e68070afa libgit2: 0.24.3 -> 0.24.6
Fixes the following vulnerabilities:

  * CVE-2016-10128
  * CVE-2016-10129
  * CVE-2016-10130
  * CVE-2017-5338
  * CVE-2017-5339

(cherry picked from commit c03bc57212)
2017-01-11 11:02:23 +01:00
Franz Pletz
0670b90c93 libgit2_0_21: remove, unused and probably vulnerable
(cherry picked from commit 3ecfab8819)
2017-01-11 11:02:23 +01:00
Lancelot SIX
a15ab3410f pythonPackages.django_1_10: 1.10.4 -> 1.10.5
See https://docs.djangoproject.com/en/1.10/releases/1.10.5/ for release
notes.

(cherry picked from commit bd0d567d47)
2017-01-11 10:55:43 +01:00
taku0
fd1dbe551c flashplayer: 24.0.0.186 -> 24.0.0.194
(cherry picked from commit ce11097b71)
2017-01-10 15:37:21 +01:00
Pascal Wittmann
2ad30bde82 pdf2djvu: fix build 2017-01-09 21:10:05 +01:00
Peter Simons
3c080a3613 haskell-stack: fix reference to http-client-tls 2017-01-09 21:01:05 +01:00
Peter Simons
7b151fe1a7 hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.0.4-7-g48fad11 from Hackage revision
e89923e0f1.
2017-01-09 21:01:05 +01:00
Peter Simons
e16a2878cd Synchronize Haskell infrastructure with 'master' at 6d58ab2edf. 2017-01-09 21:01:04 +01:00
David McFarland
164b8fa6b0 cc-wrapper: don't expand $ in response files
This makes the response file handling more consistent with GCC.

For example, a reponse file may contain:

    "-Wl,$ORIGIN"

GCC will treat this as a double quoted string and not expand the
variable reference.  Previously, cc-wrapper would expand the variable
in the same was as if the string was provided on the command line.

(cherry picked from commit 175461e09b)
2017-01-09 21:01:01 +01:00
David McFarland
33653bfae8 cc-wrapper: expand response files
Fixes #11762

(cherry picked from commit 1ad1edbb32)
2017-01-09 21:01:01 +01:00
Michael Raskin
c2e1b9c269 Merge pull request #21721 from jokogr/u/syncthing-gtk-for-16.09
syncthing-gtk: 0.6.3 -> 0.9.2.3 (for 16.09)
2017-01-09 09:40:54 +00:00
Vladimír Čunát
8a4eae7ca6 Merge #21757: ed: merge mirror addition from master 2017-01-09 00:39:35 +01:00
Bjørn Forsman
a85fa2ce67 lighttpd: 1.4.41 -> 1.4.44
(cherry picked from commit c24206dc5f)
2017-01-08 23:31:31 +01:00
Vladimír Čunát
fd68fbfea7 ed: avoid the useless rebuild due to #21752
(cherry picked from commit 936bc23b41)
2017-01-08 21:21:39 +00:00
Sebastian Hagen
9fd495da9b ed: Add fedoraproject mirror.
The existing URL has gone dark; this commit adds one from fedoraproject.org
that still works. We put the new mirror first since ed is in the bootstrap
path, and 16.09 bootstrap doesn't try later URLs.

(cherry picked from commit 547b203b9a)
2017-01-08 21:21:30 +00:00
Sebastian Hagen
6b5fb88c2b zlib: Fix zlib.net URL. (#21753)
Look for primary source file below
  http://zlib.net/fossils/ as opposed to
  http://zlib.net/
. zlib-1.2.8.tar.gz is still available at the former location, and will likely
remain there. In addition, it's important that the first URL work since zlib
is in the bootstrap path, and 16.09 (at least) bootstrap doesn't try to fetch
from later ones.
(cherry picked from commit d042abef26)
2017-01-08 18:10:42 +01:00
Michael Raskin
145d33cce1 firejail: 0.9.44.2 -> 0.9.44.4
(cherry picked from commit 9653be493a)
2017-01-08 14:00:24 +01:00
Graham Christensen
608276a36f openjpeg2: patch for multiple CVEs
-  Floating Point Exception (aka FPE or divide by zero) in
    opj_pi_next_cprl function in openjp2/pi.c:523 in OpenJPEG
    2.1.2. (CVE-2016-9112)

 -  There is a NULL Pointer Access in function imagetopnm of
    convert.c:1943(jp2) of OpenJPEG 2.1.2. image->comps[compno].data is
    not assigned a value after initialization(NULL). Impact is Denial of
    Service. (CVE-2016-9114)

 -  NULL Pointer Access in function imagetopnm of convert.c:2226(jp2) in
    OpenJPEG 2.1.2. Impact is Denial of Service. Someone must open a
    crafted j2k file. (CVE-2016-9116)

 -  Heap Buffer Overflow (WRITE of size 4) in function pnmtoimage of
    convert.c:1719 in OpenJPEG 2.1.2. (CVE-2016-9118)

(cherry picked from commit 428927ffa6)
2017-01-07 06:52:01 -05:00
Michael Raskin
555f6f6cff mpd: 0.9.19 -> 0.20
Add support for no-minor-version

(cherry picked from commit 5ebee164fa)
manual merge fixes
2017-01-07 12:24:52 +01:00
Tim Steinbach
ecaaea6990 kernel: 4.4.39 -> 4.4.40
(cherry picked from commit 8fda707027)
2017-01-06 16:15:59 -05:00
Tim Steinbach
e4d745815f kernel: 4.8.15 -> 4.8.16
(cherry picked from commit ecf87b11f2)
2017-01-06 16:15:48 -05:00
Vladimír Čunát
303ff51ccb libpng12: security 1.2.56 -> 1.2.57
CVE-2016-10087

(cherry picked from commit 1e253d54f5)
2017-01-06 21:16:45 +01:00
Ioannis Koutras
41ebe9105b syncthing-gtk: 0.6.3 -> 0.9.2.3
(cherry picked from commit dc70cd1026)
2017-01-06 21:28:14 +02:00
Franz Pletz
e9a8853a1e irssi: 0.8.20 -> 0.8.21 (security)
Fixes four security vulnerabilities:

  https://irssi.org/security/irssi_sa_2017_01.txt

No CVEs were assigned yet at the time of this commit.

cc #21642

(cherry picked from commit c58ac7e4d6)
2017-01-05 17:33:08 +01:00
Franz Pletz
a0f8bc10ef pythonPackages.pycrypto: add patch to fix CVE-2013-7459
cc #21642

(cherry picked from commit fe9373460c)
2017-01-05 06:55:14 +01:00
Vladimír Čunát
e924319cb6 bash-4.3: fix security problems via a Gentoo patch
(cherry picked from commit 22796f0d4f)
2017-01-05 01:42:00 +01:00
Michael Raskin
873eb9fe34 openfire: mark as broken; its unfriendlyness towards read-only installation directory and friendliness towards manual installation by just unpacking only grow with time
(cherry picked from commit 567c1a360f)
2017-01-04 19:38:38 +01:00
Michael Raskin
a256cf37d8 irssi_otr: 1.0.1 -> 1.0.2
(cherry picked from commit 71c1e2ffbf)
2017-01-04 17:48:57 +01:00
Michael Raskin
9899790601 mysql55: 5.7.16 -> 5.7.17
(cherry picked from commit 8ec3b1fd5f)
2017-01-04 17:48:49 +01:00
Michael Raskin
fd9d06dd98 mysql55: 5.5.53 -> 5.5.54
(cherry picked from commit b578bbbe68)
2017-01-04 17:48:23 +01:00
Michael Raskin
8e04c7112c firejail: -> 0.9.44.2 2017-01-04 14:53:14 +01:00
Bjørn Forsman
4e7f23587d avidemux: 2.6.15 -> 2.6.16
(cherry picked from commit 26dc6dab4c)
2017-01-03 20:31:53 +01:00
Nikolay Amiantov
a4166231b9 avidemux: 2.6.12 -> 2.6.15
(cherry picked from commit 79b0a9bf39)
2017-01-03 20:31:49 +01:00
Eelco Dolstra
68dc35ba46 curl: 7.51.0 -> 7.52.1
(cherry picked from commit 82b0ae1223)
2017-01-03 20:03:26 +01:00
Pascal Wittmann
b714f55239 Make all meta.maintainers attributes lists
(cherry picked from commit f7e0bc2ae7)
Fixes #21610.  (Two changes added by hand.)
2017-01-03 18:25:27 +01:00
Eelco Dolstra
9cdefa25a0 Fix using ephemeral disks for /tmp etc. in EC2 instances
This code in amazon-image.nix:

  if mountFS "$device" "$mp" "" auto; then
    if [ -z "$diskForUnionfs" ]; then diskForUnionfs="$mp"; fi
  fi

relies on mountFS to return a zero exit status if mounting
succeeds. But the lustrateRoot check in mountFS was causing a non-zero
exit status. As a result /disk0 would be mounted, but not used for
/tmp.

(cherry picked from commit d082ed8c35dec48aee2afd1303b3c8b2a1b242b0)
(cherry picked from commit b297af42d2)
2017-01-03 17:33:07 +01:00
Eelco Dolstra
78d8921e8d Fix big-parallel usage
requiredSystemFeatures is not a meta attribute but a derivation
attribute. So "big-parallel" was being ignored on e.g. chromium,
causing it to be built (and timing out) on slow machines.

http://hydra.nixos.org/build/45819778#tabs-buildsteps
(cherry picked from commit b4f401104d)
2017-01-03 13:56:34 +01:00
Eelco Dolstra
c0caaafb03 Use looser 9pfs caching in VM tests/builds
This can give significant speed ups, see
7e20254412.

(cherry picked from commit bbd03e236a)
2017-01-03 13:04:22 +01:00
Eelco Dolstra
22f48e3cb2 nixos/tests/gnome3.nix: Speed up test
It turns out that "journalctl -f | grep -m 1 pattern" will block for
one more line after "pattern" appears, which can take a long time.

(cherry picked from commit bb0ce819b3)
2017-01-03 13:00:20 +01:00
Eelco Dolstra
cbfcfa1136 test-driver: Show test duration
(cherry picked from commit 996e0ef777)
2017-01-03 13:00:01 +01:00
Eelco Dolstra
730d04225f aws-sdk-cpp: 1.0.43 -> 1.0.48
(cherry picked from commit 3e84523ed7)
2017-01-03 12:59:06 +01:00
Eelco Dolstra
7e548d512d aws-sdk-cpp: 1.0.34 -> 1.0.43
Since this drops the problematic libuuid dependency, enable on Darwin.

(cherry picked from commit 215b1e519b)
2017-01-03 12:59:06 +01:00
Eelco Dolstra
18e1caf97a aws-sdk-cpp: Use multiple outputs
(cherry picked from commit 5743506c6e)
2017-01-03 12:59:06 +01:00
Eelco Dolstra
c064bff530 aws-sdk-cpp: 0.10.6 -> 1.0.34
(cherry picked from commit b60873ed99)
2017-01-03 12:59:06 +01:00
Michael Raskin
1b19369885 libpng: 1.6.26 -> 1.6.27; a security update 2017-01-02 22:51:18 +01:00
mimadrid
b0539b9651 teamviewer: 11.0.57095 -> 12.0.71510
(cherry picked from commit f75f0ac1f4)

Requested by @gilligan
2017-01-02 20:26:16 +01:00
Herwig Hochleitner
81e8801378 chromium: 55.0.2883.75 -> 55.0.2883.87 2017-01-02 16:45:06 +01:00
Ruslan Babayev
cdfd2698ef pktgen: fix runtime paths
The Lua and lscpu path substitution got accidentally removed in
with commit 605b8095ca

(cherry picked from commit 1bead81275)
2017-01-02 06:31:24 +01:00
Joachim Fasting
65ce9ce0e6 grsecurity: 4.8.15-201612151923 -> 201612301949
(cherry picked from commit 75ce714818)
2017-01-01 21:02:09 +01:00
Joachim Fasting
ceace93b44 cvsps: fetch patches from debian 2.1-7 sources
(cherry picked from commit 2516472050)
2017-01-01 21:02:04 +01:00
Joachim Fasting
41574375d7 cvsps: get source from Debian, fix build
The cobite.com urls seem to have disappeared or been moved.  I've failed
to find where they might have gone, so use debian's mirrored sources
instead.

(cherry picked from commit b4c5916e85)
2017-01-01 21:02:02 +01:00
Ruslan Babayev
a10c24bd60 pktgen: 3.0.13 -> 3.1.0
(cherry picked from commit 605b8095ca)
Fixes build against linux >4.4
2017-01-01 21:02:01 +01:00
Ruslan Babayev
bff0046f4e odp-dpdk: 2016-08-16 -> 1.12.0.0
(cherry picked from commit aeb41bbf75)
Fixes build against linux >4.4
2017-01-01 21:01:58 +01:00
Ruslan Babayev
ba71746357 dpdk: 16.07 -> 16.07.2
(cherry picked from commit dd45691fe0)
Fixes build against linux >4.4
2017-01-01 21:01:49 +01:00
Peter Hoeg
64a130276d dropbox: 16.4.29 -> 16.4.30
(cherry picked from commit c08556fea5)
2017-01-01 10:08:08 -05:00
Bjørn Forsman
a907494516 nixos/gnome3: add gnome-settings-daemon udev rules (enables bluetooth GUI)
Without this, gnome-settings-daemon will not have write access to
/dev/rfkill, which in turn cause it to advertise no "airplane mode" over
D-Bus, which in turn the bluetooth panel code in gnome-control-center
interprets as "there are no bluetooth dongles" (and the button to turn
on bluetooth is grayed out). The end result that bluetooth operations
cannot be done in the GNOME desktop.

See upstream discussion:

http://lists.usefulinc.com/pipermail/gnome-bluetooth/2016-July/thread.html
http://lists.usefulinc.com/pipermail/gnome-bluetooth/2016-December/thread.html

(cherry picked from commit 76923648af)
2016-12-31 13:29:05 +01:00
Frederik Rietdijk
80dbd8bd3b tiled: use qt55, fixes #21540 2016-12-31 10:19:04 +01:00
Robert Helgesson
8ad3a4dcfc clblas-cuda: use system gtest library
Without this the build attempts to download the library.

(cherry picked from commit 2990cd8aea)
2016-12-31 10:05:11 +01:00
Vladimír Čunát
4817e8441a font-manager: fix missing icons
Fixes #21454, or at least most of it.

(cherry picked from commit 3dbf6b4a09)
2016-12-30 19:00:13 +01:00
Lluís Batlle i Rossell
0ae95d808e Make the minimal iso not use profile/minimal, +vim
The profile minimal has several drawbacks: no man pages, unusual 'dbus'
lib that makes many X11 pieces to rebuild, etc.

With xz compression in the squashfs, despite these additions, the iso is
smaller than what it was in 16.09.

(cherry picked from commit e0078b2cb5)
2016-12-30 11:41:36 +01:00
Lluís Batlle i Rossell
64eaa7eb29 Tune mksquashfs for smaller isos.
Bigger block size, more suitable for xz.

(cherry picked from commit 897b10998b)
2016-12-30 11:41:36 +01:00
Franz Pletz
bd9cd796bb nixos: compress squashfs with xz
(cherry picked from commit 6de991bd95)
2016-12-30 11:41:36 +01:00
Jörg Thalheim
bada11ea49 impressive: 0.10.5 -> 0.11.1
fixes #21501

(cherry picked from commit a3a6ff5c51f6cadc53409f242213110cdce60812)
2016-12-30 10:28:06 +01:00
Graham Christensen
2ce41787f9 Merge pull request #21256 from jokogr/u/syncthing-0.14.15-for-16.09
syncthing: 0.14.7 -> 0.14.15 (for NixOS 16.09)
2016-12-29 21:59:12 -05:00
Graham Christensen
954535fa85 Merge pull request #21508 from risicle/r16.09_opencv-flannbasedmatcher-fix
(r16.09 backport of) opencv 3.1.0: add patch fixing python use of FlannBasedMatcher.add
2016-12-29 21:33:23 -05:00
Guillaume Koenig
a485c8a1f1 enpass: fix install to work with browser extensions
(cherry picked from commit 0465b1407b)
2016-12-29 20:00:48 -05:00
Ronny Pfannschmidt
26d6f021c5 enpass: bump to 5.4.0.post4 and fix application icon
(cherry picked from commit 1765784b5e)
2016-12-29 20:00:41 -05:00
Graham Christensen
7e1846e45f ceph: mark as broken
(cherry picked from commit eb01090301)
2016-12-29 18:14:54 -05:00
Vladimír Čunát
48e16bbaa4 openssh: update the gssapi patch
Only building was tested.

(cherry picked from commit 0163f0c427)
2016-12-29 17:27:59 -05:00
Graham Christensen
bebcf282c3 openssh: test that startWhenNeeded works
(cherry picked from commit bf659128a0)
2016-12-29 17:27:53 -05:00
Graham Christensen
abc3e0c1eb openssh: 7.4p1 no longer backgrounds when systemd is starting it.
(cherry picked from commit 8ed4c8b73b)
2016-12-29 17:27:46 -05:00
Graham Christensen
0468ae176e Revert "Revert "openssh: security 7.3p1 -> 7.4p1""
This reverts commit 661b5a9875.

(cherry picked from commit 11e8ed5ff4)
2016-12-29 17:27:38 -05:00
Robert Scott
08a91b1413 opencv 3.1.0: add patch fixing python use of FlannBasedMatcher.add
Patch is from https://github.com/opencv/opencv/pull/6009. Upstream doesn't
seem particularly enthusiastic about a 3.1.x point release, so who knows
when this fix would otherwise see the light of day.

Mostly a cherry-pick of bcb1cf0db40541f63f0e478b9b2dbc60ec8a43b7
2016-12-29 20:24:31 +00:00
Michael Raskin
d7a3160379 go_1_6, go_1_7: comment out testLoadFixed in a way recommended by vcunat. The test depends on specific timezone names, and the latest tzdata changed the naming. Upstream only agrees to fix the test in the 1.8 branch that has no stable releases yer 2016-12-29 15:43:55 +01:00
Michael Raskin
b62516e699 go_bootstrap (go_1_4): 1.4.3 -> 1.4-bootstrap-20161024 2016-12-29 15:43:52 +01:00
Frederik Rietdijk
5b550e30b7 pythonPackages.bleach: 1.4.3 -> 1.5.0, closes #21450
Unfortunately bleach depends on an older version of html5lib and cannot
use the latest version because the sanitizer module has been moved out.
https://github.com/mozilla/bleach/issues/217

This item is cherry-picked to unbreak bleach and thus matrix-synapse on stable.

(cherry picked from commit 2f977b4af1)
2016-12-29 09:47:18 +01:00
taku0
68f2b18aaa thunderbird-bin: 45.5.1 -> 45.6.0
(cherry picked from commit 373fb99e98)
2016-12-28 21:38:13 -05:00
taku0
27c21a2782 thunderbird: 45.5.1 -> 45.6.0
(cherry picked from commit a1f595c870)
2016-12-28 21:35:20 -05:00
Michael Raskin
8cc69905f3 dovecot: 2.2.25 -> 2.2.27
(cherry picked from commit 35e3ea0966)
2016-12-28 21:09:10 -05:00
Michael Raskin
fb67220f09 imagemagick: 6.9.6-7 -> 6.9.7-0
(cherry picked from commit 040d5162be)
2016-12-28 21:09:03 -05:00
Michael Raskin
6a06042995 botan: 1.11.32 -> 1.11.34
(cherry picked from commit 21d4d54a38)
2016-12-28 21:08:49 -05:00
Michael Raskin
ef500eedcd botan: 1.10.13 -> 1.10.14, enforce c++11
(cherry picked from commit c12613c111)
2016-12-28 21:07:49 -05:00
Graham Christensen
48864eb1a4 cryptopp: 5.6.4 -> 5.6.5
for CVE-2016-7420: CVE-2016-7420

(cherry picked from commit 8f4098f087)
2016-12-28 21:07:44 -05:00
Dhananjay Balan
67c5f30045 shellinabox: 2.19 -> 2.20
should fix shellinabox vulnarabilities from https://github.com/NixOS/nixpkgs/issues/21457

(cherry picked from commit d6254e0bbd)
2016-12-28 21:07:37 -05:00
Antoine Eiche
35f30c1af0 qemu: fix CVE-2016-9921 and CVE-2016-9922
(cherry picked from commit bc63738c6f)
2016-12-28 21:07:29 -05:00
Antoine Eiche
d9fc36b194 qemu: fix CVE-2016-9911
(cherry picked from commit a5dd311208)
2016-12-28 21:07:23 -05:00
Graham Christensen
cb967ae965 apacheHttpd: 2.4.23 -> 2.4.25 for
CVE-2016-8743, CVE-2016-2161, CVE-2016-0736

(cherry picked from commit 5ca180fa08)
2016-12-28 21:07:15 -05:00
Vladimír Čunát
f3d383553e gdk-pixbuf: security 2.34.0 -> 2.36.2
/cc #21457.  The rebuild impact is probably only a few thousand.
The new utility is put into $out/bin/.

(cherry picked from commit 421a7f37fa)
Full bump done, as API+ABI only added new symbols in the meantime.
https://abi-laboratory.pro/tracker/timeline/gdk-pixbuf/
2016-12-28 20:36:52 +01:00
Vladimír Čunát
0d0f5f74f7 tzdata: 2016f -> 2016j
(cherry picked from commit 5ac7da9376)
2016-12-28 19:16:06 +01:00
Domen Kožar
d68873db35 curl: backport all changes to fix #20639 2016-12-28 17:05:03 +01:00
Franz Pletz
8845b74b16 curl: add upstream patch to fix HTTP2 performance issues
See #20639. Patch has to be in nixpkgs because fetchurl depends on curl.

(cherry picked from commit 9007303001)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-12-28 16:34:12 +01:00
Lluís Batlle i Rossell
741213d7b3 zfs cannot be distributed. Disabling it in the isos.
It seems that it is a GPL violation to distribute zfs in the
installation ISOs.

https://sfconservancy.org/blog/2016/feb/25/zfs-and-linux/

If anyone knows the issue better and has a reason to reenable it
legally, feel free to reenable it. I don't know much about it.

(cherry picked from commit 33d07c7ea9)
2016-12-28 14:58:47 +01:00
Michiel Leenaars
f15d037cd2 pythonPackages.beautifulsoup4: 4.4.1 -> 4.5.1
(cherry picked from commit 55deb148f5)
2016-12-28 10:26:28 +01:00
Ioannis Koutras
9723999cb7 syncthing: 0.14.15 -> 0.14.17
(cherry picked from commit 474b35994b)
2016-12-27 23:09:33 +02:00
Ioannis Koutras
519031d6ea syncthing: 0.14.13 -> 0.14.15
(cherry picked from commit eb9fd3c00d)
2016-12-27 23:09:16 +02:00
Ioannis Koutras
7979adca20 syncthing: 0.14.12 -> 0.14.13
(cherry picked from commit 58faa138d4)
2016-12-27 23:09:16 +02:00
Peter Hoeg
85ada71226 syncthing: 0.14.11 -> 0.14.12 (#20645)
(cherry picked from commit 3975f5bd5e)
2016-12-27 23:09:16 +02:00
Peter Hoeg
d35f21836e syncthin: 0.14.8 -> 0.14.11
(cherry picked from commit 8431345175)
2016-12-27 23:09:16 +02:00
Peter Hoeg
5e6b375fb4 syncthing: 0.14.7 -> 0.14.8
(cherry picked from commit 0d183b30d4)
2016-12-27 23:09:16 +02:00
Bjørn Forsman
9db36f277d libsigrokdecode: 0.4.0 -> 0.4.1
(cherry picked from commit cbb29a26a2)
2016-12-27 13:21:41 +01:00
zimbatm
435b5f8da0 flashplayer: removed obsolete files
(cherry picked from commit a623ada912)
2016-12-25 18:56:17 +01:00
taku0
00428231f8 flashplayer: 11.2.202.644 -> 24.0.0.186 [Critical security fix] (#21337)
* flashplayer: 11.2.202.644 -> 24.0.0.186

* flashplayer: add debug version

* flashplayer-standalone: 11.2.202.644 -> 24.0.0.186

(cherry picked from commit f3287b0aa5)
2016-12-25 18:55:15 +01:00
Frederik Rietdijk
0ee1399a39 pythonPackages.webencodings: init at 0.5
The line

websockets = callPackage ../development/python-modules/websockets { };

was accidentally included in the commit.

(cherry picked from commit c1dd42e7d6)
(cherry picked from commit b5fcd04f1f)
2016-12-25 18:20:49 +01:00
zimbatm
a54d84e0bb Revert "pythonPackages.webencodings: init at 0.5"
This reverts commit b5fcd04f1f.
2016-12-25 17:12:28 +00:00
Frederik Rietdijk
dad15d9b49 pythonPackages.u-msgpack-python: use python.interpreter
(cherry picked from commit 426b2ed9c8)
2016-12-25 16:18:55 +01:00
Frederik Rietdijk
b5fcd04f1f pythonPackages.webencodings: init at 0.5
(cherry picked from commit c1dd42e7d6)
2016-12-25 16:14:37 +01:00
Frederik Rietdijk
69d4c76790 pythonPackages.u-msgpack-python: init at 2.3.0
(cherry picked from commit bec4794820)
2016-12-25 16:13:44 +01:00
Frederik Rietdijk
8df09728d6 pythonPackages.pytest_expect: init at 1.1.0
(cherry picked from commit 9f5e022663)
2016-12-25 16:13:04 +01:00
Frederik Rietdijk
438a5a6601 pythonPackages.html5lib: fix missing buildInputs and tests
(cherry picked from commit 849f2d9e11)
2016-12-25 16:12:43 +01:00
J Phani Mahesh
a1f9b59625 python:html5lib: 0.999 -> 0.999999999
fixes LWN vuln:709146
ref #21289: Vulnerability roundup 14

(cherry picked from commit a737eff5c1)
2016-12-25 16:12:32 +01:00
zimbatm
d6bff30c96 exim: 4.87 -> 4.87.1 for CVE-2016-9963 2016-12-25 10:16:27 +00:00
Jörg Thalheim
9625cae331 Merge pull request #21404 from NixOS/revert-21385-osprober
Revert "os-prober: init at 1.65"
2016-12-25 09:19:35 +01:00
Jörg Thalheim
41bdfa6ce8 Revert "os-prober: init at 1.65" 2016-12-25 09:19:16 +01:00
Jörg Thalheim
a6df4d4171 Merge pull request #21385 from symphorien/osprober
os-prober: init at 1.65
2016-12-25 09:18:59 +01:00
Bjørn Forsman
0aa9365d30 borgbackup: 1.0.8 -> 1.0.9 (security fixes)
And bug fixes. Changelog:

https://github.com/borgbackup/borg/blob/1.0.9/docs/changes.rst#version-109-2016-12-20

(cherry picked from commit 7fda8db891)
2016-12-24 19:34:35 +01:00
Frederik Rietdijk
06fcb0c074 python27: 2.7.12 -> 2.7.13
See 591eda8310
2016-12-24 16:14:26 +01:00
Symphorien Gibol
7c5aa58d67 os-prober: use sha256 instead of md5 2016-12-24 14:16:59 +01:00
Alex Ivanov
ce7e9cba57 qmmp: 1.1.2 -> 1.1.5
(cherry picked from commit c4236f65b9)
2016-12-24 12:24:02 +01:00
Symphorien Gibol
3655533a93 os-prober: fix source url 2016-12-24 00:09:36 +01:00
Symphorien Gibol
2021b2fc22 os-prober: init at 1.65 2016-12-23 23:42:14 +01:00
Joachim Fasting
ee13b9af51 linux_3_12: add back bridge_stp_helper patch
See 94fbbb2ed6

(cherry picked from commit 556ca974aa)
2016-12-23 01:38:59 +01:00
Graham Christensen
74bbeee870 linux_3_12: Drop already applied patches
(cherry picked from commit 94fbbb2ed6)
2016-12-22 15:53:43 -05:00
Eelco Dolstra
1d53704f87 google-fonts: Add a check to ensure that there are no duplicate font names
Issue #20282.

(cherry picked from commit 2c2b6ae455)
2016-12-22 17:11:10 +01:00
c74d
81949ef1d7 google-fonts: Fix typos in homepage, description
In the `meta`data for the `google-fonts` package --

  - the `homepage` field was set to the URL
    <https://www.google.com/fontsl>, which would appear to be a
    misspelt version of <https://www.google.com/fonts>, which now
    redirects to <https://fonts.google.com>.

  - the `description` field referred to Google Fonts as "Google Font".

This patch corrects these errors, and updates the `homepage` URL.

(cherry picked from commit 44b932316b)
2016-12-22 17:11:02 +01:00
cmfwyp
d9721ed479 google-fonts: 2015-11-18 -> 2016-08-30
(cherry picked from commit c015c29106)
2016-12-22 17:10:45 +01:00
Kirill Boltaev
c8fe55f1c5 deluge: fix libtorrentRasterbar_1_0 reference (#18564)
(cherry picked from commit 4b55b0358a)
2016-12-22 13:54:49 +01:00
Franz Pletz
af9b4c65d0 libtorrentRasterbar_1_0: 1.0.9 -> 1.0.10
(cherry picked from commit 1d82947742)

Bug fixes.  Notably fixes potential crash on invalid input to the http
parser and a division-by-zero bug in the super seeding logic.
https://github.com/arvidn/libtorrent/releases/tag/libtorrent-1_0_10
2016-12-22 13:54:44 +01:00
Peter Hoeg
fac32944ac gnu global: 6.5.4 -> 6.5.5
(cherry picked from commit 76aa997f20)

A bug fix release.
https://www.gnu.org/software/global/whatsnew.html
2016-12-22 13:54:37 +01:00
Franz Pletz
02a5759023 libksba: 1.3.4 -> 1.3.5
(cherry picked from commit eb5d0db76e)

Minor fixes. Notably includes an out-of-bounds read fix (no security
implications mentioned in the changelog).
2016-12-22 13:54:31 +01:00
Marcin Janczyk
831571cae9 keepass: 2.33 -> 2.34
(cherry picked from commit 5cbda61791)

Recommended update
http://keepass.info/news/n160611_2.34.html
2016-12-22 13:53:21 +01:00
Graham Christensen
5d03aab044 go_bootstrap: Fix credential test for new user namespacing
(cherry picked from commit 3e1ad38909)
2016-12-21 21:40:59 -05:00
Graham Christensen
d3e9fc6762 linux:3.12.68 -> 3.12.69
(cherry picked from commit 53e21529d4)
2016-12-21 21:09:17 -05:00
Graham Christensen
6cef2f299a linux:3.18.44 -> 3.18.45
(cherry picked from commit 3ffb5ba60c)
2016-12-21 21:09:17 -05:00
Sigrid
77e1751081 spotify: 1.0.45.182 -> 1.0.45.186
(cherry picked from commit 84ec6f836b)
2016-12-21 19:58:20 -05:00
Graham Christensen
9a32619298 Fix go_1_6 test
In a user namespace, sending credentials for an unmapped user return
EINVAL instead of EPERM. So handle that case.

(cherry picked from commit adc2a8f648)
2016-12-21 19:31:08 -05:00
Graham Christensen
bd9eba236a zlib: patch for CVE-2016-9840, CVE-2016-9841, CVE-9842, CVE-9843 2016-12-21 17:16:40 -05:00
Franz Pletz
4e6223cc86 pythonPackages.bottle: 0.12.9 -> 0.12.11 for CVE-2016-9964
(cherry picked from commit ecc7b3364c)
2016-12-21 16:18:31 -05:00
Graham Christensen
b5de7ef686 xen: patch for many XSAs
- XSA-190
 - XSA-191
 - XSA-192
 - XSA-193
 - XSA-195
 - XSA-196
 - XSA-198
 - XSA-200
 - XSA_202
 - XSA-204

(cherry picked from commit 4e6c7faf36)
2016-12-21 16:18:30 -05:00
Graham Christensen
d3934be8a7 openjpeg2: patch for CVE-2016-9580, and CVE-2016-9581
(cherry picked from commit c7a2073323)
2016-12-21 16:18:30 -05:00
Daiderd Jordan
142b303fc0 libupnp: 1.6.20 -> 1.6.21 for CVE-2016-8863
Switching to git tags means we don't get pre-generated configure
scripts. Thusly, run bootstrap ourselves.

For https://github.com/NixOS/nixpkgs/issues/21289
For CVE-2016-8863 (remote code execution)

(cherry picked from commit 0d3f0f05e2)
2016-12-21 16:18:30 -05:00
Graham Christensen
490a23e032 nagios: 4.2.3 -> 4.2.4 for CVE-2016-9566
(cherry picked from commit 2f17c3628e)
2016-12-21 16:18:29 -05:00
Graham Christensen
6c97c1c1b6 tomcatUnstable: 9.0.0.M13 -> 9.0.0.M15 for CVE-2016-9774, CVE-2016-9775
(cherry picked from commit 72faac9d35)
2016-12-21 16:18:29 -05:00
Graham Christensen
2ab18b75da tomcat85: 8.5.8 -> 8.5.9 for CVE-2016-9774, CVE-2016-9775
(cherry picked from commit a528c04612)
2016-12-21 16:18:28 -05:00
Graham Christensen
78b5267081 game-music-emu: 0.6.0 -> 0.6.1 for multiple CVEs
CVE-2016-9957 CVE-2016-9958 CVE-2016-9959 CVE-2016-9960 CVE-2016-9961

(cherry picked from commit 2c24ce5cfa)
2016-12-21 16:18:25 -05:00
Eelco Dolstra
1dd0fb6b5a Fix go test
In a user namespace, sending credentials for an unmapped user return
EINVAL instead of EPERM. So handle that case.

http://hydra.nixos.org/build/44839000
2016-12-21 14:13:08 +01:00
Eelco Dolstra
1138b9a4c4 Disable unionfs-fuse for the hibernate test
http://hydra.nixos.org/build/45109083
2016-12-21 13:38:09 +01:00
Eelco Dolstra
3fcbcf2556 Work around slowness in the KDE 5 test
The use of unionfs-fuse (57a0f14064)
slows down the KDE 5 test enough that it hits Hydra timeouts. (E.g. on
my laptop it went from ~5 min to ~30 min.) So disable it for the KDE
test.

http://hydra.nixos.org/build/45127422
2016-12-21 13:37:56 +01:00
Nikolay Amiantov
b2e80a53ca samba4: 4.3.11 -> 4.3.13 2016-12-20 23:33:19 +03:00
Thomas Tuegel
97b3de92a6 Merge pull request #21291 from peterhoeg/u/db_stable
dropbox: 15.4.22 -> 16.4.29
2016-12-20 07:31:20 -06:00
aszlig
2a97e149e5 python/hetzner: 0.7.4 -> 0.7.5
This essentially unbreaks deploying new Hetzner machines with NixOps,
because the Hetzner robot has changed its way of handling admin
accounts.

It also now provides a more helpful error message (instead of an
AssertionError) if admin account creation has failed.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: Graham Christensen <graham@grahamc.com>
Issue: https://github.com/NixOS/nixops/issues/563
(cherry picked from commit ccbce6b11a)
2016-12-20 10:20:42 +01:00
Joachim Fasting
eaf6fc8c5a tor: 0.2.8.10 -> 0.2.8.12
Notably contains fix for CVE-2016-1254

cc @grahamc

(cherry picked from commit 3e92b56be3)

Note that 0.2.9 is the new stable release, but we'll probably hold off
on putting that onto 16.09 for the time being, unless somebody requests
it sooner. 0.2.8 is in maintenace mode so hopefully still receives
important bugfixes going forward.
2016-12-19 23:52:48 +01:00
Peter Hoeg
99352b05e3 dropbox: 15.4.22 -> 16.4.29 2016-12-20 06:52:02 +08:00
Eelco Dolstra
57a0f14064 Enable virtualisation.writableStore by default
This works around:

  machine: must succeed: nix-store -qR /run/current-system | grep nixos-
  machine# error: changing ownership of path ‘/nix/store’: Invalid argument

Probably Nix shouldn't be anal about the ownership of the store unless
it's trying to build/write to the store.

http://hydra.nixos.org/build/45093872/nixlog/17/raw
2016-12-19 14:18:57 +01:00
Rickard Nilsson
7a3c72d95f Revert "libvirt-glib: do not use top-level python packages"
This reverts commit fc565037ed.

I incorrectly cherry-picked 5ef97b39dc
from master to release-16.09
2016-12-19 12:33:24 +01:00
Rickard Nilsson
98062ef123 libvirt and pythonPackages.libvirt: 2.2.0 -> 2.5.0
(cherry picked from commit b02e6cc70d)
2016-12-19 11:52:59 +01:00
Frederik Rietdijk
67f8bbf79f libvirt: use python2
(cherry picked from commit 76a11c1fbb)
2016-12-19 10:06:15 +01:00
Frederik Rietdijk
fc565037ed libvirt-glib: do not use top-level python packages
(cherry picked from commit 5ef97b39dc)
2016-12-19 10:05:51 +01:00
Rickard Nilsson
5e06a9f496 google-cloud-sdk: 134.0.0 -> 138.0.0
(cherry picked from commit 327a650f09)
2016-12-19 09:09:51 +01:00
Aristid Breitkreuz
dcfce7d3e3 google-cloud-sdk: add assertion for x86/x86-64 Linux
(cherry picked from commit 8600e38bca)
2016-12-19 09:09:45 +01:00
Aristid Breitkreuz
ed85d8b066 google-cloud-sdk: 122.0.0 -> 134.0.0
(cherry picked from commit ed9b1c673b)
2016-12-19 09:09:37 +01:00
Maximilian Güntner
1592f84247 nixos-rebuild: Fix SSHOPTS typo
Signed-off-by: Maximilian Güntner <code@klandest.in>
(cherry picked from commit 0cf907ae12)
2016-12-19 09:08:49 +01:00
Kamil Chmielewski
100795e45f vagrant: 1.8.7 -> 1.9.1
(cherry picked from commit 9aa6c95d5a)
2016-12-18 19:39:58 -05:00
Marcin Janczyk
9760178c7a spotify: 1.0.43.125 -> 1.0.45.182
(cherry picked from commit d6aa35d589)
Old source is 404
2016-12-18 22:51:10 +01:00
Joachim Fasting
398e3ad666 rmilter service: fix invalid directive
RuntimeDirectoryPermissions -> RuntimeDirectoryMode

Would result in warnings like "unknown lvalue" on startup

(cherry picked from commit 361633db3b)
2016-12-18 22:47:32 +01:00
Joachim Fasting
98ffc81418 kodi/wrapper: fix typo, preferLocalBuilds -> preferLocalBuild
(cherry picked from commit 52cb1df30c)
2016-12-18 22:47:30 +01:00
Joachim Fasting
b8a8ce55a5 torbrowser: prefer local builds
The build consists of downloading some stuff & writing a wrapper, the
additional Hydra load is hardly justified.

(cherry picked from commit b55cef7514)
2016-12-18 22:47:28 +01:00
Vladimír Čunát
fa20c0cb5e xorg-server variants: eradicate symlink to /var/tmp
- Fixes #19673; it caused problems in combination with buildEnv.
- As noted, X falls back to /tmp:
  https://github.com/NixOS/nixpkgs/issues/19673#issuecomment-258871876
- Removing the directory is still required, as X would attempt to write
  into it if allowed - and probably succeed in case the user set
  nix.readOnlyStore = false; (X runs as root).
- Archeology link: 9d1569316.

(cherry picked from commit 33abc705b3)
2016-12-18 20:17:37 +01:00
Jörg Thalheim
84a3c520b2 nssModules: include correct systemd output
fixes libnss_myhost, libnss_mymachines, libnss_resolve are located here

(cherry picked from commit 3b763fef44)
/cc #21175.  I confirm the libraries are located in .out on 16.09 as well.
2016-12-18 10:32:52 +01:00
Franz Pletz
b5edcfc938 squid: 3.5.19 -> 3.5.23
Fixes CVE-2016-10002 & CVE-2016-10003.

(cherry picked from commit 4b67968688)
2016-12-18 05:25:20 +01:00
Tim Steinbach
478fa3583f subversion: 1.8.16 -> 1.8.17
(cherry picked from commit 1edf95167a)
2016-12-17 08:37:05 -05:00
Tim Steinbach
b18b055d9b subversion: 1.9.4 -> 1.9.5
(cherry picked from commit b139b17fa8)
2016-12-17 08:37:05 -05:00
makefu
547a940c30 xstatic-jquery-ui: 1.11.0.1 -> 1.12.0.1
(cherry picked from commit 4bc0c87b0d)
2016-12-17 08:37:04 -05:00
Joachim Fasting
2d688ed363 grsecurity: 4.8.14-201612110933 -> 4.8.15-201612151923
(cherry picked from commit f0e77cd07d)
2016-12-17 05:41:07 +01:00
Tim Steinbach
f23dae0310 linux: 4.8.14 -> 4.8.15
(cherry picked from commit 0e8e4a08f3)
2016-12-16 08:17:30 -05:00
Tim Steinbach
b2040b9d0e linux: 4.4.38 -> 4.4.39
(cherry picked from commit cb9ff3f7f9)
2016-12-16 08:17:23 -05:00
Domen Kožar
9f62c2f836 rocksdb: build also static lib for rocksdb-haskell
(cherry picked from commit 8b9ced0181)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-12-16 13:29:01 +01:00
Domen Kožar
8ba1a1ddc5 rocksdb: compile as shared lib
(cherry picked from commit d5f92a319a)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-12-16 13:29:01 +01:00
Domen Kožar
56ed586b95 rocksdb: 4.1 -> 4.13
(cherry picked from commit 77adcfb59f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-12-16 13:29:01 +01:00
Sebastian Hagen
d039ff2993 ImageMagick: Add additional mirror.
The 16.09-nixpkgs source tarball Imagemagick-6.9.6-7.tar.xz source tarball is
not available on any of the existing mirrors. We here add one that has it.

(cherry picked from commit e314e5b930)
2016-12-16 11:15:15 +01:00
Robert Helgesson
dc786a9e3a unifont: 9.0.03 -> 9.0.04
Also change download URL to use GNU mirrors.

(cherry picked from commit 321e2a9153)
2016-12-15 23:50:28 +01:00
Tim Steinbach
01f2239be1 unifont: 9.0.02 -> 9.0.03
(cherry picked from commit d51f1a3dd3)
2016-12-15 23:50:28 +01:00
Lancelot SIX
6a54d0992a unifont: 9.0.01 -> 9.0.02
See http://lists.gnu.org/archive/html/info-gnu/2016-09/msg00002.html
for release announcement

(cherry picked from commit 5cbfbb1553)
2016-12-15 23:50:22 +01:00
Daiderd Jordan
5c9c1a18c9 go: 1.7.3 -> 1.7.4
(cherry picked from commit 891e391cdb)
2016-12-15 17:30:33 -05:00
Pascal Bach
b07015e367 go: 1.7.1 -> 1.7.3
(cherry picked from commit 2ebe748113)
2016-12-15 17:30:33 -05:00
Sheena Artrip
9232ac4d7d go_1_7: make $out/bin a link to $GOROOT/share/go/bin
(cherry picked from commit 3e3a189cc6)
2016-12-15 17:30:32 -05:00
Daiderd Jordan
9de0fb1486 go: fix darwin build
(cherry picked from commit db7adbf69c)
2016-12-15 17:30:32 -05:00
Graham Christensen
b48a510632 zabbix22: 2.2.2 -> 2.2.16 for CVE-2016-4338 CVE-2016-9140
(cherry picked from commit 8800ea7617)
2016-12-15 17:30:32 -05:00
Graham Christensen
c801fddb37 go_1_6: 1.6.3 -> 1.6.4 for DoS vector
(cherry picked from commit 503c57237f)
2016-12-15 17:30:31 -05:00
Graham Christensen
b3ccb69d0f unzip: patch for CVE-2014-9913 and CVE-2016-9844
(cherry picked from commit 5cbb0f7fbf)
2016-12-15 17:30:31 -05:00
Graham Christensen
9d2912e929 libgsf: 1.14.36 -> 1.14.41 for CVE-2016-9888
(cherry picked from commit 4fa5237984)
2016-12-15 17:30:30 -05:00
Graham Christensen
f4d9efc5f5 perlPackages.DBDmysql: 4.039 -> 4.041 for CVE-2016-1251
(cherry picked from commit 971ae27526)
2016-12-15 17:30:30 -05:00
Graham Christensen
4c780e24c0 sqlite: 3.14.1 -> 3.14.2 for bug fixes
https://sqlite.org/releaselog/3_14_2.html
2016-12-15 17:30:20 -05:00
Graham Christensen
aebef6e915 jasper: 1.900.28 -> 2.0.6
(cherry picked from commit eb7ea181f1)
2016-12-15 17:29:36 -05:00
Jascha Geerds
6b44caaff4 languagetool: Add myself as a maintainer
(cherry picked from commit b44e52b134)
2016-12-15 22:23:47 +01:00
Bjørn Forsman
ec0fefdf42 languagetool: fix eval
(cherry picked from commit 1021797201)
2016-12-15 22:23:17 +01:00
Edward Tjörnhammar
b940665b92 languagetool: init at 3.5
(cherry picked from commit e4bdbfc247)
2016-12-15 22:22:40 +01:00
Bas van Dijk
81428dd022 whisper: upgrade to the same version as the other graphite components
Without this we get the following Python exception when trying to fetch
a graph in the graphite web app:

    File "/nix/store/nj62jqk2xmp5c3h93pfnlqn66qj1kkvs-python-2.7.12-env/lib/python2.7/site-packages/opt/graphite/webapp/graphite/storage.py", line 335, in fetch
      return whisper.fetch(self.fs_path, startTime, endTime, now)
  TypeError: fetch() takes at most 3 arguments (4 given)

Fixes #21032.

(cherry picked from commit b4005bbac0)
2016-12-15 17:14:19 +01:00
Joachim Fasting
decc84b221 chromium pepper flash plugin: 23.0.0.207 -> 24.0.0.186
Fixes https://github.com/NixOS/nixpkgs/issues/21119,
fixes https://github.com/NixOS/nixpkgs/issues/21169

(cherry picked from commit 6dbdbdec69)

Old version src is 404
2016-12-15 16:11:23 +01:00
Eelco Dolstra
8bfa4ce82e Use only one build of qemu in VM tests
Previously we were using two or three (qemu_kvm, qemu_test, and
qemu_test with a different dbus when minimal.nix is included).
2016-12-15 14:05:54 +01:00
Eelco Dolstra
03c55005df virtualisation.qemu.program: Remove
This option is defined in qemu-vm.nix, but that module is not always
imported.

http://hydra.nixos.org/build/44817443
2016-12-15 13:49:15 +01:00
Eelco Dolstra
d58a4ec1ba qemu-kvm: Mark the version for tests 2016-12-15 13:42:26 +01:00
Eelco Dolstra
04c905e770 make-tarball.nix: Fix running as root
Since Nix now runs builds in a user namespace with uid == 0, this
triggered the message

  warning: the group ‘nixbld’ specified in ‘build-users-group’ does not exist

which make-tarball.nix turns into a fatal error. So clear
build-users-group.

http://hydra.nixos.org/build/44817408
(cherry picked from commit 7a586794d4)
2016-12-15 13:08:43 +01:00
aszlig
5075a1a81a nixos/tests: Use a patched QEMU for testing
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.

Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.

This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.

So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.

In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).

Tested against the "misc" and "printing" tests.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 6cfb3b6364)
2016-12-15 12:39:01 +01:00
taku0
953889b693 firefox-bin: 50.0.2 -> 50.1.0
(cherry picked from commit 8a7cf06b54)
2016-12-14 13:21:57 +01:00
taku0
237af505cb firefox: 50.0.2 -> 50.1.0, firefox-esr: 45.5.1esr -> 45.6.0esr
(cherry picked from commit 86cf682cda)
2016-12-14 13:21:41 +01:00
Joachim Fasting
8851080118 torbrowser: 6.0.7 -> 6.0.8
(cherry picked from commit a26acf99ad)
2016-12-14 03:56:52 +01:00
Joachim Fasting
ebc3e099aa terraria service: fixup worldPath option type
Otherwise, using the defaults results in a type error.

(cherry picked from commit d893c86b34)
2016-12-14 03:56:51 +01:00
Joachim Fasting
9e5022db2a terraria service: fix tmux output
tmux.bin was removed in 5535d94394

Use `lib.getBin` to be more robust to future changes.

(cherry picked from commit 33088accc8)
2016-12-14 03:56:49 +01:00
Franz Pletz
813e63e211 php70: 7.0.13 -> 7.0.14
(cherry picked from commit 60dfc245c7)
2016-12-13 21:58:31 +01:00
Franz Pletz
34b6d7d514 php56: 5.6.28 -> 5.6.29
(cherry picked from commit 2ec19900ab)
2016-12-13 21:58:31 +01:00
Vladimír Čunát
4c7fb96d00 knot-dns: init at 2.3.3
Only .lib is tested ATM.

(cherry picked from commit df07922e3e)
2016-12-13 15:31:51 +01:00
Graham Christensen
f38c5372b5 linux_{4_8,grsec_nixos}: patch to fix build failure
crypto/rsa_helper.c:18:28: fatal error: rsapubkey-asn1.h: No such file or directory

(cherry picked from commit 7a813d3f6d)
2016-12-13 09:16:08 -05:00
Vladimír Čunát
77b32b3141 gnome3*.devhelp: add missing gschemas
Otherwise it would crash when starting; fixes #21094.

(cherry picked from commit fa613c7ddd)
2016-12-13 09:22:45 +01:00
Tristan Helmich
8341cfb648 acme_0_5_0: remove as it is no longer required
(cherry picked from commit ee4b59c521)
2016-12-12 18:09:13 +01:00
Tristan Helmich
e1dd3e2f22 simp_le: bump acme dependency to newer version
acme_0_5_0 is no longer working and removed in another commit

(cherry picked from commit c8c6ff4a96)
2016-12-12 18:08:36 +01:00
msteen
f69ffdd9fd google-chrome: Add new dep on libxcb (#21083)
(cherry picked from commit 374f833dab)
2016-12-12 12:43:24 +01:00
Joachim Fasting
632100bdf4 grsecurity: 4.8.13-201612082118 -> 4.8.14-201612110933
(cherry picked from commit 601058e0e2)
2016-12-11 19:27:33 +01:00
Joachim Fasting
dd9483ba12 couchdb service: fix test in preStart
Otherwise you'd get errors like "-f no such command".

(cherry picked from commit 19b96176b4)
2016-12-11 19:27:31 +01:00
Tim Steinbach
7bb361e9b2 linux: 4.4.37 -> 4.4.38
(cherry picked from commit f576c490e3)
2016-12-10 15:19:46 -05:00
Tim Steinbach
2eba51da57 linux: 4.8.13 -> 4.8.14
(cherry picked from commit b69822c505)
2016-12-10 15:19:36 -05:00
Franz Pletz
90f82d2439 linux: add patch to fix CVE-2016-8655
See https://lwn.net/Articles/708319/ for more information.

(cherry picked from commit 9074d9859e)
2016-12-10 17:15:06 +01:00
Jascha Geerds
87c227f1ee pythonPackages.ansible2: 2.1.1.0 -> 2.2.0.0 (Fixes #21036) 2016-12-10 13:14:38 +01:00
Vladimír Čunát
64e2d4d3aa xorg-server: maintenance 1.18.3 -> 1.18.4
(cherry picked from commit 0240306d01)
Maintenance-only updates should be quite safe.  /cc #21026.
2016-12-09 23:33:40 +01:00
Frederik Rietdijk
d4c3e37da3 Merge pull request #20912 from peterhoeg/mysql
mysqltuner: init at 1.6.18
2016-12-09 22:44:42 +01:00
Joachim Fasting
f8bea71fad grsecurity: 4.8.12-201612062306 -> 4.8.13-201612082118
(cherry picked from commit d1a5dc0b1c)
2016-12-09 15:33:40 +01:00
Tim Steinbach
fbd303f8b6 linux: 4.8.12 -> 4.8.13
(cherry picked from commit bfffbb5ea6)
2016-12-09 08:27:33 -05:00
Tim Steinbach
a8e2b3eb86 linux: 4.4.36 -> 4.4.37
(cherry picked from commit e861a5f7af)
2016-12-09 08:27:27 -05:00
Graham Christensen
c43a79e353 xen: Fix patch hashes
I had used nix-prefetch-url, where fetchpatch doesn't support it.

(cherry picked from commit a2d6e8a2eb)
2016-12-09 07:22:57 -05:00
Eelco Dolstra
bca4e40639 diffoscope: 52 -> 63
(cherry picked from commit ece67bfa01)
2016-12-09 11:49:46 +01:00
Rob Vermaas
7a28df4842 Fix location of broadcom sta driver. 2016-12-09 08:04:45 +00:00
Rob Vermaas
38b1bd9e72 Fix hash for p7zip patch (seems fetchurl hash was added, while fetch-patch function is used. 2016-12-09 07:58:31 +00:00
Graham Christensen
b6a0b0c91c chromium: 54.0.2840.100 -> 55.0.2883.75
(cherry picked from commit d71dbd733c)
2016-12-08 18:06:22 -05:00
Graham Christensen
db8a89732a xen: Patch for CVE-2016-9385, CVE-2016-9377, and CVE-2016-9378
(cherry picked from commit 86da9839b1)
2016-12-08 18:06:22 -05:00
Graham Christensen
bd083be5c8 teeworlds: 0.6.3 -> 0.6.4 for CVE-2016-9400
(mark as broken due to no longer building.)

(cherry picked from commit 4c5a198019)
2016-12-08 18:06:15 -05:00
Graham Christensen
292d193eff p7zip: patch for CVE-2016-9296
(cherry picked from commit 0683c1a35c)
2016-12-08 18:03:08 -05:00
Graham Christensen
f3d11a0c16 openafs: 1.6.17 -> 1.6.20 for CVE-2016-9772
From release notes:
      OPENAFS-SA-2016-003: file and directory names leak due to
      reuse of directory objects without zeroing the contents
      (12461 12462 12463 12464 12465)

(cherry picked from commit e0b850147d)
2016-12-08 18:03:08 -05:00
Graham Christensen
4fe7aeb8ac gstreamer: 1.10.1 -> 1.10.2 for multiple CVEs
CVE-2016-9807, CVE-2016-9808, CVE-2016-9809, CVE-2016-9810, CVE-2016-9811, CVE-2016-9812, CVE-2016-9813, CVE-2016-9634, CVE-2016-9635, CVE-2016-9636

https://gstreamer.freedesktop.org/releases/1.10/#1.10.2
(cherry picked from commit e42f6a11ac)
2016-12-08 18:03:06 -05:00
Graham Christensen
fc1ab5f2d7 imagemagick: 6.9.6-2 -> 6.9.6-7 for CVE-2016-9556 and CVE-2016-9559
(cherry picked from commit 76ef70af7d)
2016-12-08 18:02:39 -05:00
Peter Marheine
f52eaf4fb3 libdwarf: version the shared object (#20996)
Upstream sets the soname, so binaries compiled against libdwarf.so will
link against libdwarf.so.1 at runtime. Install libdwarf.so.1 and
symlink libdwarf.so to it so both linking and runtime loading work again.

(cherry picked from commit 469e5e7768)
Without this, running hhvm fails, for example.
2016-12-08 19:50:04 +01:00
Joachim Fasting
c509f7b10c grsecurity: 4.8.12-201612031658 -> 201612062306
(cherry picked from commit 5fd4ffe00f)
2016-12-08 12:27:58 +01:00
Rob Vermaas
a73723fcc0 Fix tarball eval, after previous python26 fix. 2016-12-08 09:10:04 +00:00
Rob Vermaas
f21a85e939 Fix python26 build. 2016-12-08 09:02:10 +00:00
Lancelot SIX
b60ae78090 hdf5: 1.8.16 -> 1.8.18
For release announcement, see
https://support.hdfgroup.org/ftp/HDF5/current18/src/hdf5-1.8.18-RELEASE.txt

(cherry picked from commit 16eb67ac9c)
2016-12-07 20:18:51 -05:00
Tristan Helmich
3573b6ce4e jenkins: 2.13 -> 2.33 (#20630)
(cherry picked from commit 9575eeae10)
2016-12-07 19:19:14 -05:00
Vladimír Čunát
b46bac4fb3 libdwarf: security 20161021 -> 20161124
/cc #20972.  It seems safe API+ABI-wise:
https://abi-laboratory.pro/tracker/timeline/libdwarf/

Also nitpicks: meta.homepage, etc.

Note: `darwin.dtrace` probably contains an embedded copy of libdwarf,
which I didn't (attempt to) fix.

(cherry picked from commit 49187304d8)
2016-12-07 18:29:50 +01:00
Frederik Rietdijk
bdd7ea353e pythonPackages.libarchive-c 2.1 -> 2.5
(cherry picked from commit 6920e49b89)
2016-12-07 16:41:31 +01:00
Tuomas Tynkkynen
b7316d975d diffoscope: Use bin outputs of dependencies
All of the dependencies listed here are used via command-line tools. So
use getBin to avoid unnecessarily depending on development headers.

(cherry picked from commit 5a6d6d4451)
2016-12-07 16:37:13 +01:00
Matthew Justin Bauer
76f346d61d virtualbox-demo: Add modesetting to drivers
This needs to be included for VirtualBox to detect that it needs to start the video driver. "modesetting" is also set in virtualbox-image.nix but this line seems to take precedence over that one (even though the virtualbox-image.nix has a higher override?) This should fix the problems that I and a few others have been having with the .ova files built for nixos.org.

Fixes #20007.
2016-12-07 15:17:00 +01:00
Thomas Tuegel
c1068dc07e Merge pull request #20968 from peterhoeg/u/db_stable
dropbox: 14.4.19 -> 15.4.22
2016-12-07 07:03:43 -06:00
Christoph Hrdinka
0016d362fa python-mapnik: add cairo to buildInputs 2016-12-07 13:17:07 +01:00
Christoph Hrdinka
ab7b62114e python-mapnik: fae6388 -> git-2016-08-30 2016-12-07 13:16:58 +01:00
taku0
7a95c502bb firefox-bin: 50.0.1 -> 50.0.2
Critical security fix
https://www.mozilla.org/en-US/firefox/50.0.2/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2016-92/

(cherry picked from commit 097a8ee174)
2016-12-07 07:06:43 -05:00
Peter Hoeg
d97c5fe04e dropbox: 14.4.19 -> 15.4.22 2016-12-07 14:41:04 +08:00
Joachim Fasting
37f53d97a8 ion3: specify meta.{platforms,license}
(cherry picked from commit db0bd30a7c)
2016-12-07 01:16:16 +01:00
Joachim Fasting
0ae1288134 hidepid: polkit and systemd-logind compatibility
`systemd.hideProcessInformation = true`, would break interactions
requiring polkit arbitration such as initating poweroff/reboot as a
normal user; the polkit daemon cannot be expected to make decisions
about processes that don't exist as far as it is concerned.

systemd-logind lacks the `sys_ptrace` capability and so needs to be part
of the designated proc gid, even though it runs as root.

Fixes https://github.com/NixOS/nixpkgs/issues/20948

(cherry picked from commit 984d9ebb56)
2016-12-07 01:15:57 +01:00
Joachim F
88a17dc350 Merge pull request #20911 from peterhoeg/wp_stable
wp-cli: 0.23.1 -> 1.0.0
2016-12-06 14:15:33 +01:00
Joachim Fasting
427236cd8a torsocks: 2.1.0 -> 2.2.0
(cherry picked from commit 9353d8c1ea)

Minor fixes only
2016-12-06 14:14:02 +01:00
Joachim Fasting
10af908a6c chkrootkit: 0.50 -> 0.51, fix build
(cherry picked from commit 2f861e6ba6)
2016-12-06 14:13:40 +01:00
Tom Hunger
331a7bcc56 digital-ocean: Init at 1.10.1
(cherry picked from commit 6bfffa9932)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-12-06 13:08:01 +01:00
Lancelot SIX
cd56e6f1ca pythonPackages.django_1_8: 1.8.16 -> 1.8.17
This is a bugfix release.
See https://docs.djangoproject.com/en/1.10/releases/1.8.17/

(cherry picked from commit a56e180629)
2016-12-06 09:35:48 +01:00
Lancelot SIX
3b61688569 pythonPackages.django_1_9: 1.9.11 -> 1.9.12
This is a bugfix release.
See https://docs.djangoproject.com/en/1.10/releases/1.9.12/

(cherry picked from commit feae2732b1)
2016-12-06 09:35:30 +01:00
Lancelot SIX
565398c4a7 pythonPackages.django_1_10: 1.10.3 -> 1.10.4
This is a bugfix release.
See https://docs.djangoproject.com/en/1.10/releases/1.10.4/

(cherry picked from commit 8ba68644c6)
2016-12-06 09:35:17 +01:00
Vladimír Čunát
4f16e8261b mesa: maintenance 12.0.4 -> 12.0.5
On master we use a newer branch already.
This is the last update of 12.x, as planned upstream.
2016-12-06 09:30:32 +01:00
Joachim Fasting
303f4fa833 grsecurity: 4.8.11-201611271225 -> 4.8.12-201612031658
(cherry picked from commit 9578299bbe)
2016-12-06 01:37:16 +01:00
Franz Pletz
2a9705545e pythonPackages.graphiteWeb: fix dependencies
Fixes #20885.

(cherry picked from commit 601b47ab94)
2016-12-06 00:17:47 +01:00
Franz Pletz
1f1589eaa3 pythonPackages.django_1_6: 1.6.11 -> 1.6.11.5
Switch to the reviewboard fork of Django 1.6 because it's not maintained
upstream anymore.

See https://www.reviewboard.org/news/2016/11/01/new-django-1-6-11-5-security-releases/.

(cherry picked from commit ee2d5e44c2)
2016-12-06 00:12:53 +01:00
Robert Helgesson
ff2368105e perl-Tk: 804.032_501 -> 804.033
Also remove unnecessary `configurePhase` and add X11 include path.

Fixes #20932.

(cherry picked from commit f4fd4678f0)
2016-12-05 23:55:40 +01:00
Peter Hoeg
fa5c19ebcc mysqltuner: init at 1.6.18 2016-12-05 14:37:45 +08:00
Peter Hoeg
0630d42441 wp-cli: 0.23.1 -> 1.0.0
0.23.1 doesn't work with newer WP versions, so we need to upgrade anyway.
2016-12-05 14:34:19 +08:00
Joachim Fasting
df38db3848 ion3: requires lua 5.1
See e.g., https://hydra.nixos.org/build/44338071/nixlog/1/raw

(cherry picked from commit 63a1edb58f)
2016-12-04 16:25:21 +01:00
Frederik Rietdijk
6a9f087e37 Merge pull request #20775 from aherrmann/pr_matplotlib_tkagg_stable
matplotlib: Fix TkAgg
2016-12-04 08:51:14 +01:00
Joachim Fasting
da288919e0 tor: 0.2.8.9 -> 0.2.8.10
Per upstream, this contains primarily stability & performance fixes.
Notably, the relase fixes a bug that would sometimes make clients
unusable after leaving standby mode, as well as plugging a memory leak.

(cherry picked from commit d06bf820ea)
2016-12-03 17:15:26 +01:00
Joachim Fasting
77f365a742 grsecurity: 4.8.10-201611232213 -> 4.8.11-201611271225
(cherry picked from commit b90ed0cc80)
2016-12-03 17:15:20 +01:00
Joachim Fasting
368ebd6859 grsecurity: 4.8.10-201611210813 -> 201611232213
(cherry picked from commit f9d787c67b)
2016-12-03 17:15:18 +01:00
Joachim Fasting
88c8ffd250 linux_grsec_nixos: use the "modinst arg list too long" patch
An alternative to e38b74ba89d3d03e01ee751131d2a6dc316ac33a; see
f19c961b4e for details

(cherry picked from commit 1915f6908a)
2016-12-03 17:15:15 +01:00
Joachim Fasting
ce812ca9dc Revert "grsecurity: work around for #20490"
This reverts commit e38b74ba89.

I failed to notice f19c961b4e461da045f2e72e73701059e5117be0; better
use that fix instead.

(cherry picked from commit 4c7323545b)
2016-12-03 17:14:51 +01:00
Graham Christensen
b5b19598ff ecryptfs test: use TTY output to stabilize test
(cherry picked from commit d5cb4d8734)
2016-12-03 10:03:45 -05:00
Lancelot SIX
39c31cab86 nettle: 3.2 -> 3.3
This is a bugfix release.

See http://lists.gnu.org/archive/html/info-gnu/2016-10/msg00003.html
for release announcement.

(cherry picked from commit 06c594304c)
2016-12-02 19:30:41 -05:00
Tim Steinbach
33287d9a8a Merge pull request #20865 from NeQuissimus/linux_4_4_36
linux: 4.4.35 -> 4.4.36
(cherry picked from commit 4190a9a03d)
2016-12-02 18:31:09 -05:00
Tim Steinbach
2ddf554017 Merge pull request #20866 from NeQuissimus/linux_4_8_12
linux: 4.8.11 -> 4.8.12
(cherry picked from commit 4f8b74b401)
2016-12-02 18:29:30 -05:00
Lluís Batlle i Rossell
7015964e8d Fixing the patch for icu for ARM.
The source file changed paths.

(cherry picked from commit 19fd547a7f)
2016-12-02 21:23:44 +01:00
Sheena Artrip
046229bded spotify: 1.0.42.151 -> 1.0.43.125
(cherry picked from commit fe514b3053)

Fixes #20850.
2016-12-02 12:08:20 +01:00
Tim Steinbach
0dcdb9b66b linux: 4.1.35 -> 4.1.36
(cherry picked from commit 5afc6b506c)
2016-12-01 20:34:26 -05:00
Eelco Dolstra
4d15c98e41 thunderbird: 45.5.0 -> 45.5.1
(cherry picked from commit f4aab5b211)
2016-12-01 21:53:33 +01:00
taku0
22389ae783 firefox-esr: security 45.5.0 -> 45.5.1 (#20841)
(cherry picked from commit 36f980b7ff)
2016-12-01 21:52:56 +01:00
Domen Kožar
d947e602e9 nixops: fix #20823 2016-12-01 16:40:56 +01:00
Susan Potter
805022c5e0 torbrowser: 6.0.6 -> 6.0.7
(cherry picked from commit 75cdbf48ae)
2016-12-01 09:25:29 -05:00
Eelco Dolstra
beaf557dbe sddm: Enable user switching
It was lacking the dbus configuration to bind to
org.freedesktop.DisplayManager, and it was passing fixed TTY/display
numbers to the X server (see 9be012f0d4).

(cherry picked from commit 69bea26ea9)
2016-12-01 14:15:16 +01:00
Ioannis Koutras
ca1e677548 sddm: 0.13.0 -> 0.14.0
(cherry picked from commit d78e68b1a4)
2016-12-01 14:15:02 +01:00
Eelco Dolstra
d56483363a nss: 3.27.1 -> 3.27.2
(cherry picked from commit b221fc137c)
2016-12-01 13:05:39 +01:00
Eelco Dolstra
00c7e46282 nspr: 4.12 -> 4.13.1
(cherry picked from commit 3f784a3f87)
2016-12-01 13:01:05 +01:00
Eelco Dolstra
e7fc018bc2 firefox: 50.0.1 -> 50.0.2
(cherry picked from commit 1e17f21b3e)
2016-12-01 13:00:21 +01:00
Graham Christensen
60b89d7cb2 guile: enable tests 2016-11-30 22:47:08 -05:00
Graham Christensen
68c2e9ba92 guile: apply patch fixing 00-repl-server.test stability
(cherry picked from commit f1fd88f7f4)
2016-11-30 22:45:51 -05:00
Graham Christensen
b036ad53b5 tomcat85: 8.5.5 -> 8.5.8
For CVE-2016-8735, a remote code execution vulnerability.

(cherry picked from commit 42f1ae1911)
2016-11-30 19:38:07 -05:00
Graham Christensen
d5735884d5 boehmgc: 7.2f -> 7.2g
(cherry picked from commit 16995fc57b)
2016-11-30 19:37:20 -05:00
Graham Christensen
997c6b92a0 rpcbind: patch for CVE-2015-7236
(cherry picked from commit 7e40e89273)
2016-11-30 19:37:20 -05:00
Graham Christensen
a5ffcd2fe3 bzip2: patch for CVE-2016-3189
(cherry picked from commit 9c71508c95)
2016-11-30 19:37:20 -05:00
Graham Christensen
00fb14ba9e tomcatUnstable: 9.0.0.M10 -> 9.0.0.M13
For CVE-2016-8735, a remote code execution vulnerability.

(cherry picked from commit 5f78980973)
2016-11-30 19:37:19 -05:00
Graham Christensen
c67cec2343 tomcat8: 8.0.37 -> 8.0.39
For CVE-2016-8735, a remote code execution vulnerability.

(cherry picked from commit 80a475042c)
2016-11-30 19:37:19 -05:00
Graham Christensen
1a0f5f8d92 tomcat7: 7.0.72 -> 7.0.73
For CVE-2016-8735, a remote code execution vulnerability.

(cherry picked from commit 3d0310daf3)
2016-11-30 19:37:19 -05:00
Graham Christensen
8b7a082ea9 tomcat6: 6.0.45 -> 6.0.48
For CVE-2016-8735, a remote code execution vulnerability.

(cherry picked from commit eba91fa2bd)
2016-11-30 19:37:18 -05:00
Graham Christensen
81180eda18 maatkit: update URL
(cherry picked from commit 0cff959e79)
2016-11-30 19:37:18 -05:00
Graham Christensen
d8e8bb42c8 perlPackages.DBDmysql: 4.033 -> 4.039
(cherry picked from commit 7d09138cae)
2016-11-30 19:37:17 -05:00
Graham Christensen
e6fe60987a mujs: 2016-09-21 -> 2016-11-30 for multiple CVEs
- CVE-2016-7504
 - CVE-2016-7505
 - CVE-2016-7506
 - CVE-2016-9017
 - CVE-2016-9108
 - CVE-2016-9109
 - CVE-2016-9294

See more information: https://lwn.net/Vulnerabilities/707361/

(cherry picked from commit 0707962235)
2016-11-30 19:37:17 -05:00
Graham Christensen
3275b2f231 mcabber: 1.0.3 -> 1.0.4 for 'roster push attack'
(cherry picked from commit a9611a52f3)
2016-11-30 19:37:17 -05:00
Michael Raskin
34f086fdd7 mcabber: 1.0.2 -> 1.0.3
(cherry picked from commit bd21e866d2)
2016-11-30 19:37:16 -05:00
taku0
24cd670c4d thunderbird-bin: 45.5.0 -> 45.5.1
Critical security fix.

https://www.mozilla.org/en-US/thunderbird/45.5.1/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2016-92/
(cherry picked from commit 5f4b3cd34b)
2016-11-30 19:33:54 -05:00
taku0
10aeb911d8 thunderbird-bin: 45.4.0 -> 45.5.0
(cherry picked from commit 2540608f43)
2016-11-30 19:33:54 -05:00
taku0
268dbe6ec5 thunderbird-bin: 45.3.0 -> 45.4.0
(cherry picked from commit 2fa0ffc25a)
2016-11-30 19:33:53 -05:00
Graham Christensen
ebaba0a224 icu: patch for multiple CVEs
- CVE-2014-6585
 - CVE-2015-4760
 - CVE-2016-0494
 - CVE-2016-6293
 - CVE-2016-7415

(cherry picked from commit 892a9b1f0f)
2016-11-30 19:28:35 -05:00
Graham Christensen
81c5fd3ce0 Merge pull request #20792 from grahamc/backport-firefox-50.0.1
Backport firefox 50.0.1
2016-11-30 19:22:34 -05:00
Graham Christensen
06a45eb0b2 login test: Create and use direct reads of the TTY contents.
(cherry picked from commit cb74fd75d7)
2016-11-30 11:29:06 -05:00
Domen Kožar
e360c7205f nixopsUnstable: init at 2016-11-23
(cherry picked from commit ce6abb9495)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-11-30 15:00:45 +01:00
Vladimír Čunát
68fe9dfc71 vim*: apply upstream patch to fix CVE-2016-1248
/cc #20814.  Our version in master was past the last vulnerable one.
2016-11-30 14:37:37 +01:00
Robert Helgesson
5f40d803d7 matrix-synapse service: add missing $
As-is the generated configuration file will include the line literally.
2016-11-30 08:09:03 +01:00
Tim Steinbach
15f6c2d53e linux: 3.12.67 -> 3.12.68
(cherry picked from commit 18a3225dac)
2016-11-29 17:40:40 -05:00
Graham Christensen
fc7d56030a Merge pull request #20771 from vdemeester/idea-2016_2_5
idea-ultimate: 2016.2.2 -> 2016.2.5
2016-11-29 15:26:43 -05:00
Franz Pletz
1158a29e0b gitlab service: fix sidekiq queue config
(cherry picked from commit 3000ae8602)
2016-11-29 17:43:24 +01:00
taku0
3bf46ba739 firefox-bin: 50.0 -> 50.0.1
(cherry picked from commit 2d341ca7fc)
2016-11-29 10:14:26 -05:00
taku0
ff9eb69bad firefox-bin: 49.0.2 -> 50.0 (#20434)
(cherry picked from commit 76b1413a87)
2016-11-29 10:14:26 -05:00
taku0
166fc3d6a2 firefox-bin: 49.0 -> 49.0.2 2016-11-29 10:14:25 -05:00
Graham Christensen
bd39c43e63 firefox: 50.0 -> 5.0.1 for CVE-2016-9078
(cherry picked from commit b04e23bbb8)
2016-11-29 10:14:25 -05:00
Graham Christensen
c83bd77e2b Revert "Revert "firefox: 49.0.2 -> 50.0""
This reverts commit fc711b5430.

Broken video playback is serious, but 50.0.1 includes important
security updates we want to release.
2016-11-29 10:11:06 -05:00
Vincent Demeester
5ca5bc4d77 idea-ultimate: 2016.2.2 -> 2016.2.5
Update minor version of idea-ultimate in order to be able to build it.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-11-29 16:03:28 +01:00
Domen Kožar
9d0e39bced acme: ensure nginx challenges directory is writeable
(cherry picked from commit 75f131da02)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-11-29 15:56:24 +01:00
Franz Pletz
115808b066 Revert "lxc: 2.0.4 -> 2.0.6"
This reverts commit 5d804566df.

This was an error on my part. I had the commit sitting on my local master
and pulled upstream to rebase my commit before pushing. I didn't notice
there was a commit bumping lxc and the auto-merge on the rebase.

(cherry picked from commit e43f2fc868)
2016-11-29 15:45:45 +01:00
Peter Simons
372712d40b Merge pull request #20782 from abuibrahim/release-16.09
haskellPackages.barrier: jailbreak
2016-11-29 09:12:50 +01:00
Ruslan Babayev
16f1135e36 haskellPackages.barrier: jailbreak
(cherry picked from commit f44023c485)
2016-11-28 17:22:05 -08:00
Lancelot SIX
a9523ed9c1 nagiosPluginsOfficial: 2.0.3 -> 2.1.4
See https://github.com/nagios-plugins/nagios-plugins/blob/master/NEWS
for release history

(cherry picked from commit c77011c6de)
2016-11-28 18:12:47 -05:00
Lancelot SIX
7fc197fa91 nagios: 4.0.8 -> 4.2.3
This update includes many security related fixes.

Version 4.2.0 fixes:
- CVE-2008-4796
- CVE-2013-4214

Version 4.2.2 fixes:
- CVE-2016-9565

Version 4.2.3 fixes:
- CVE-2016-8641

See https://www.nagios.org/projects/nagios-core/history/4x/ for full
detail changes.

(cherry picked from commit 5b6d52b4fb)
2016-11-28 18:12:43 -05:00
obadz
37cad0b90e e2fsprogs: 1.42.13 -> 1.43.3
(cherry picked from commit 83fe4fa0bf)
2016-11-28 21:47:10 +00:00
Pascal Wittmann
b833b10f81 haskellPackages.ReadArgs: jailbreak to fix build
fixes #20515

(cherry picked from commit 7c29887e57adde305166df4a3d569af07fd49b50)
2016-11-28 21:50:00 +01:00
Rob Vermaas
f27c78f75e Add us-east-2 region to AMI creation script 2016-11-28 20:05:38 +00:00
Andreas Herrmann
a6f741d91c matplotlib: Fix TkAgg
Support for TkAgg was broken due to the package `tk` being split into
multiple outputs: The setup script was unable to locate the tk headers.

This patch fixes that by passing the include path from `tk.dev`
explicitly
2016-11-28 19:18:50 +01:00
Franz Pletz
5f79536ebe lxc: 2.0.4 -> 2.0.6
Fixes CVE-2016-8649.

See https://lists.linuxcontainers.org/pipermail/lxc-users/2016-November/012597.html.

(cherry picked from commit 5d804566df)
2016-11-28 19:05:12 +01:00
Vladimír Čunát
539356f319 llvmPackages*.lldb: fixup input by disabling libedit
Fixes #20773.  https://llvm.org/bugs/show_bug.cgi?id=28898
Of course, feel free to find a better solution.

I love this copy&paste :-/

(cherry picked from commit b67ae8b33c)
2016-11-28 19:03:14 +01:00
Frederik Rietdijk
4626857229 matplotlib: fix tk backend on python3 2016-11-28 18:56:19 +01:00
Eelco Dolstra
fc711b5430 Revert "firefox: 49.0.2 -> 50.0"
This reverts commit 43b9638962. It
breaks video playback.
2016-11-28 16:09:49 +01:00
Alexander V. Nikolaev
3e8dc13478 lxc: fix sandbox builds
Package attempt to write /etc/bash_completion.d, I directed it to
"${out}/etc/bash_completion.d" as it was suggested.

(cherry picked from commit 36053e4907ccee9cd1845da87ae2846384571c0a)
2016-11-28 15:13:48 +01:00
Alexander V. Nikolaev
d35e2de760 lxc: 2.0.4 -> 2.0.6 (security)
https://security-tracker.debian.org/tracker/CVE-2016-8649
(cherry picked from commit 514b3763f74330729ce62c39599ecd81db710d57)
2016-11-28 15:13:33 +01:00
Graham Christensen
721f2b9fb2 Merge pull request #20761 from sh01/cp_rogue_mirror
rogue: Add alternative source archive URLs. (16.09)
2016-11-28 06:38:37 -05:00
Vladimír Čunát
f1cab34f94 guile: doCheck = false on i686-linux
It fails on Hydra now; I can't reproduce it locally and don't feel like
debugging it. It might be due to the warning below. That appears on
x86_64-linux as well, but we've got no problems in there so far...

warning: call to primitive-fork while multiple threads are running;
         further behavior unspecified.  See "Processes" in the
         manual, for more information.

(cherry picked from commit 7a88f314cb)
Fixes #20758.
2016-11-28 08:48:10 +01:00
Sebastian Hagen
6034390c75 rogue: Add alternative source archive URLs.
As of right now, rogue.rogueforge.net has been down for at least several hours
(likely more).
We add two mirrors here which are likely to be more reliable. We keep the
original download location as a fallback, in case that estimate turns out to be
incorrect.

(cherry picked from commit aad48be62b)
2016-11-28 04:36:43 +00:00
Herwig Hochleitner
f74f42b1b1 chromium: 54.0.2840.90 -> 54.0.2840.100
fixes CVE-2016-5199 CVE-2016-5200 CVE-2016-5201 CVE-2016-5202

(cherry picked from commit 663007d607)
2016-11-27 20:19:17 -05:00
Jörg Thalheim
ca9f853bd7 Merge pull request #20700 from sh01/help2man_fixhash
help2man: fix source file hash
2016-11-27 09:37:05 +01:00
Tim Steinbach
5db1d94453 linux: 4.8.10 -> 4.8.11
(cherry picked from commit b47307bd74)
2016-11-26 16:29:55 -05:00
Tim Steinbach
c9dafb113a linux: 4.4.34 -> 4.4.35
(cherry picked from commit cc77360bed)
2016-11-26 16:29:48 -05:00
Vladimír Čunát
ece0cea127 display-managers module: improve variable quoting
Fixes #20713, though I'm certain nixpkgs contains loads of places
without proper quoting, as (ba)sh unfortunately encourages that.

The only plus side is that most of such problems in nixpkgs aren't
actually security problems but mere annoyance to those who are foolish
enough to use "weird" characters in critical names.

(cherry picked from commit 8ebfce0eda)
2016-11-26 11:24:09 +01:00
Robert Helgesson
066166b8cb perl-bignum: 0.43 -> 0.44
Resolves CVE-2016-1238, see
<https://rt.cpan.org/Public/Bug/Display.html?id=116506>.

(cherry picked from commit e700ff6e0c)
2016-11-26 10:27:45 +01:00
Sebastian Hagen
ef7cc9a9dc less: 483 -> 481: Use recommended upstream version since less-483.tar.gz has disappeared
This is a fix for the current package source file
  http://www.greenwoodsoftware.com/less/less-483.tar.gz
not being available anymore.

We bump the less version back to 481, and adjust the source package hash
accordingly. This is a (slight) downgrade from 483 as opposed to an
upgrade since
  a) 481 is the current Recommended version by http://www.greenwoodsoftware.com/less/download.html
  b) Upstream is unreliable about keeping experimental versions around.

(cherry picked from commit 0f9f74f1d5)
2016-11-26 03:41:02 +02:00
Ricardo M. Correia
207b7cd63c help2man: fix hash
(cherry picked from commit 2ad13953a4)
2016-11-25 20:27:14 +00:00
Corbin Simpson
64ef4e78ae nixos/collectd: Fix syntax error on some hostnames. (#20694)
Without this, hostnames that e.g. end in digits will cause syntax errors for
collectd.

(cherry picked from commit 27f1def068)
2016-11-24 21:48:20 +01:00
Franz Pletz
0454ef9703 gstreamer: 1.8.2 -> 1.10.1
Fixes CVE-2016-9445, CVE-2016-9446, CVE-2016-9447.

(cherry picked from commit 7a6185d9a1)
2016-11-24 11:44:41 -05:00
Vladimír Čunát
fe0f9f992e pciutils: fixup finding modules to libkmod's way
Fixes #20683.

(cherry picked from commit ceda8cb203)
It seems safe enough to unify the behavior with libkmod,
especially on nixos.
2016-11-24 16:52:56 +01:00
Joachim Fasting
ee52e98091 grsecurity: 4.8.8-201611150756 -> 4.8.10-201611210813
(cherry picked from commit 96194467e6)
2016-11-24 11:55:45 +01:00
Vladimír Čunát
0d2620961f CONTRIBUTING.md: switch to a link that actually works
Fixes #20594.

(cherry picked from commit b59167ce0e)
Also another link was switched from Hydra to https://nixos.org.
2016-11-24 10:03:13 +01:00
Graham Christensen
5f69faa269 libarchive: 3.2.1 -> 3.2.2 for unspecified vulnerabilities
The release notes don't cover anything in particular:

ba3dec4495/NEWS (L3)
(cherry picked from commit 9118702898)
2016-11-23 23:28:33 -05:00
Graham Christensen
1980c26c03 gnuchess: 6.2.3 -> 6.2.4 for CVEs
CVE-2015-8972: stack buffer overflow related to user move input, where 160 characters of input can crash gnuchess
(cherry picked from commit 4a5c66135a)
2016-11-23 23:28:30 -05:00
Graham Christensen
27c390f789 w3m: 0.5.3-2015-12-20 -> 0.5.3+git20161120 for many CVEs
c94a28011f/NEWS\#L1-L52
(cherry picked from commit a3b746851f)
2016-11-23 23:27:47 -05:00
Franz Pletz
386c9803e2 qemu: add patch to fix CVE-2016-7907
cc #20647

(cherry picked from commit 336bacfa1d)
2016-11-23 23:27:47 -05:00
Graham Christensen
ee38d133bc libtiff: 4.0.6 -> 4.0.7 for many CVEs
This release includes all our previous CVE patches, and suggets new ones:

 - CVE-2016-3945
 - CVE-2016-3990
 - CVE-2016-3991
 - CVE-2016-3622
 - CVE-2016-9453
 - CVE-2016-8127 (duplicate of CVE-2016-3658)
 - CVE-2016-9297
 - CVE-2016-9448

(cherry picked from commit 9de6029cc6)
2016-11-23 23:27:44 -05:00
Graham Christensen
2292d8548e graphicsmagick: Update URLs for patches
(cherry picked from commit c823eaec0a)
2016-11-23 23:25:29 -05:00
Christine Koppelt
728a9578e3 django_1_5: remove
(cherry picked from commit c0d349fb20)
2016-11-23 21:57:49 +01:00
Christine Koppelt
cab144faf5 django_1_5: update depending packages
(cherry picked from commit 1aaa576549)

Conflicts:
	pkgs/top-level/python-packages.nix
2016-11-23 21:57:06 +01:00
Thomas Tuegel
da3a9feaac kde5.applications: 16.08.2 -> 16.08.3
(cherry picked from commit ec63ae31eb)
2016-11-23 14:47:19 -06:00
Eric Sagnes
c4630613a4 manual: add section: reviewing contributions (#20626)
(cherry picked from commit 2b1d67a275)
2016-11-23 18:58:46 +01:00
Peter Simons
2e2a0abcfd Merge pull request #20257 from expipiplus1/haskell-doc-typo
fix documentation typo in doc/languages-frameworks/haskell.md
(cherry picked from commit 0a685cf8ea)
2016-11-23 18:52:35 +01:00
Bas van Dijk
18ff275f17 postgresql: add 9.6.1
(cherry picked from commit 589cc65306)
2016-11-23 11:35:42 +01:00
Bas van Dijk
68b737555b postgresql: bug fix updates for all versions
See https://www.postgresql.org/about/news/1712/

(cherry picked from commit 8c887535dd)
2016-11-23 11:35:18 +01:00
Thomas Tuegel
6fe0069daa kde5.plasma: 5.8.3 -> 5.8.4
(cherry picked from commit f731ca3cca)
2016-11-22 11:39:43 -06:00
Graham Christensen
3576accf9f cvs: disable fortify hardening
(cherry picked from commit 5d7f2a40a8)
2016-11-22 07:54:44 -05:00
Graham Christensen
c008fb0951 rabbitmq-server: 3.5.6 -> 3.5.8 for unallocated CVEs: https://github.com/rabbitmq/rabbitmq-server/releases/tag/rabbitmq_v3_5_8
(cherry picked from commit bffae65060)
2016-11-22 07:54:44 -05:00
Eelco Dolstra
3ef8966ee9 ktorrent: Add 5.0.1
(cherry picked from commit 516e177d98)
2016-11-22 10:58:42 +01:00
Philipp Hausmann
8f6f46e8e1 nginx service: Add missing port toString conversion (#20252)
(cherry picked from commit 632282300a)
2016-11-22 00:53:02 +01:00
Tim Steinbach
4994f0ff21 linux: 4.8.9 -> 4.8.10
(cherry picked from commit e4a1b76457)
2016-11-21 18:08:46 -05:00
Tim Steinbach
e5fe74f5ba linux: 4.4.33 -> 4.4.34
(cherry picked from commit d62069aca4)
2016-11-21 18:08:46 -05:00
Franz Pletz
a99484c0ae ntp: fix ntp-wait script, depends on perl
(cherry picked from commit 009e37d277)
2016-11-21 23:26:21 +01:00
Franz Pletz
b20a4b08bc ntp: 4.2.8p8 -> 4.2.8p9
Includes fixes for 10 CVEs and contains other fixes.

See http://support.ntp.org/bin/view/Main/SecurityNotice#November_2016_ntp_4_2_8p9_NTP_Se.

(cherry picked from commit db66a95e5b)
2016-11-21 23:12:47 +01:00
Thomas Tuegel
d14fa64db1 kdeWrapper: set meta attribute
Fixes #20445.

(cherry picked from commit 8f6218572c)
2016-11-21 13:30:27 -06:00
Thomas Tuegel
e62dd3ecb9 remove kdeEnv
(cherry picked from commit 5da372c36e)
2016-11-21 13:30:19 -06:00
Thomas Tuegel
cd1799bb75 kdeWrapper: reduce closure size
(cherry picked from commit 58811df272)
2016-11-21 13:30:11 -06:00
Lancelot SIX
7596205055 wireshark: 2.2.0 -> 2.2.2
See releases announcements:

- https://www.wireshark.org/docs/relnotes/wireshark-2.2.1.html
- https://www.wireshark.org/docs/relnotes/wireshark-2.2.2.html

wireshark-2.2.1 fixes the following vulnerabilities:

- CVE-2016-7957
- CVE-2016-7958

wireshard-2.2.2 fixes the following vulnerabilities:

- CVE-2016-9372
- CVE-2016-9374
- CVE-2016-9376
- CVE-2016-9373
- CVE-2016-9375

(cherry picked from commit e9549d293c)
2016-11-21 17:24:53 +01:00
James Cook
7b32b80ff5 Merge pull request #20588 from falsifian/firefox_50
Backport Firefox 50 and NSS 3.27.1 to release-16.09
2016-11-21 08:09:23 -08:00
Domen Kožar
b528a41dec elm: be able to install everything inside a profile to fix #19943
(cherry picked from commit 1d71ae259f)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-11-21 12:43:04 +01:00
Robert Helgesson
d012749fab telepathy_haze: add patch to fix build
Without the patch, the build fails with recent versions of Pidgin.

(cherry picked from commit 840db709eb)
2016-11-20 22:56:59 +01:00
Eelco Dolstra
43b9638962 firefox: 49.0.2 -> 50.0
(cherry picked from commit c2b9404c02
by falsifian)
2016-11-20 09:45:52 -08:00
Eelco Dolstra
a17ee562da nss: 3.26 -> 3.27.1
(cherry picked from commit 1624f7f174
by falsifian)
2016-11-20 09:45:51 -08:00
Profpatsch
863affcc87 xonotic: fix dependencies (#19173) 2016-11-20 17:39:23 +01:00
Pascal Wittmann
53eb53577f slock: 1.3 -> 1.4
fixes CVE-2016-6866
2016-11-20 15:12:40 +01:00
obadz
f8a167f2c7 citrix-receiver: 13.3.0 -> 13.4.0
(cherry picked from commit 38c6a88274)
2016-11-20 11:24:13 +00:00
Joachim Fasting
f629ee5667 torbrowser: 6.0.5 -> 6.0.6
(cherry picked from commit f477bc98be)
2016-11-20 00:56:01 +01:00
Joachim Fasting
f0699f7706 grsecurity: work around for #20490
In `scripts/Makefile.modinst`, the code that generates the list of
modules to install passes file names via the command line.  When
installing a grsecurity kernel, this list appears to exceed the
shell's argument list limit, as in

    make[2]: execvp: /nix/store/[...]-bash-4.3-p46/bin/bash: Argument list too long

The build does not fail, however, but the list of modules to be installed ends
up being empty.  Thus, the resulting kernel package output contains no modules,
rendering it useless.

We work around this by patching the makefile to use `find -exec` to
process files.  Why this would occur for grsecurity and not other
kernels is unknown, most likely there's something *else* that is
actually causing this behaviour, so this is a temporary fix until that
cause is found.

Fixes https://github.com/NixOS/nixpkgs/issues/20490

(cherry picked from commit e38b74ba89)
2016-11-19 23:45:47 +01:00
Joachim Fasting
c71f556bfc grsecurity: 4.8.7-201611142350 -> 4.8.8-201611150756
(cherry picked from commit 0d4e1b5edd)
2016-11-19 23:45:31 +01:00
Joachim Fasting
c9e7657a1a grsecurity: 4.8.7-201611102210 -> 201611142350
(cherry picked from commit afab1a948e)
2016-11-19 23:45:13 +01:00
Joachim Fasting
4e2ef7caf4 grsecurity: 4.7.10-201611011946 -> 4.8.7-201611102210
(cherry picked from commit cad9212813)
2016-11-19 23:44:54 +01:00
Vladimír Čunát
b0a4aad87b thunderbird: maintenance 45.4.0 -> 45.5.0
(cherry picked from commit d045f8b486)
2016-11-19 20:31:20 +01:00
Thomas Tuegel
3d59812d96 dropbox: 13.4.21 -> 14.4.19
(cherry picked from commit e672a9d1d3)
2016-11-19 13:15:20 -06:00
Corbin
8298646baa python2.7-nevow: 0.11.1 -> 0.14.2
Nevow has one user, Tahoe-LAFS, and that one user has broken functionality
with old Nevow, so I'm bumping.

(cherry picked from commit dec4ec07bd)
2016-11-19 17:38:19 +01:00
Thomas Tuegel
e0e72aa8d9 Merge pull request #20524 from FPtje/patch-1
Support for ARM in openblas
(cherry picked from commit d1b4358453)
2016-11-19 09:54:03 -06:00
Tim Steinbach
934e314246 Merge pull request #20552 from NeQuissimus/linux_4_8_9
linux: 4.8.8 -> 4.8.9
(cherry picked from commit 13491f9f48)
2016-11-19 09:03:20 -05:00
Tim Steinbach
606701bda5 Merge pull request #20551 from NeQuissimus/linux_4_4_33
linux: 4.4.32 -> 4.4.33
(cherry picked from commit c86a15aa3b)
2016-11-19 09:02:51 -05:00
Graham Christensen
417e04f037 monit: 5.19.0 -> 5.20.0 for CVE-2016-7067
(cherry picked from commit 1376aeba42)
2016-11-18 21:20:08 -05:00
Me
356d9b1b3c qt56.qtwebengine: chromium clang update.py patch
Add patch to the clang update.py script for chromium that makes it work
the same as in qt57.qtwebengine. This avoids issues with the
subprocess.call that is used to run update.sh not liking the path it is
passed in certain build enviroments. update.sh is no longer used.

(cherry picked from commit bd0ffa50aa)
2016-11-18 11:37:04 -06:00
zraexy
e19eee5fce qt57.qtwebengine: make it build
This is an updated version of #16561 with added qt.conf to fix QtWebEngineProcess not being able to find locales copied to 5.7
(cherry picked from commit c15f3a8bbe)
2016-11-18 11:36:55 -06:00
zraexy
a0f379c5bc qt56.qtwebengine: make it build
This is an updated version of #16561 with added qt.conf to fix QtWebEngineProcess not being able to find locales
(cherry picked from commit cfda4310d6)
2016-11-18 11:36:48 -06:00
Franz Pletz
daed85048f qemu: add patches for CVE-2016-7994 & CVE-2016-8668
(cherry picked from commit f4a318b528)

cc #20462
2016-11-18 12:19:43 +01:00
Daiderd Jordan
af89a0a73b Revert "Update hash for xnu 3248.60.10, the tarball changed upstream, it seems."
This reverts commit 328ad17858.

(cherry picked from commit 52d4599b52)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-11-18 09:03:55 +01:00
Tuomas Tynkkynen
ab3fdddec3 Merge pull request #19732 from nico202/libgumbo
libgumbo: init at 0.10.1
(cherry picked from commit 27d018a120)
2016-11-17 19:38:32 -05:00
Tim Steinbach
10b9a43065 Merge pull request #19689 from aycanirican/ssldump
ssldump: init at 09b3
(cherry picked from commit fa82166070)
2016-11-17 19:37:41 -05:00
Robert Helgesson
adc9f12a1c haskellPackages.hakyll: 4.9.0.0 -> 4.9.1.0
Fixes issue #20217.
2016-11-18 00:38:16 +01:00
Ricardo M. Correia
751b9188cc pepperflash: 22.0.0.205 -> 23.0.0.207
(cherry picked from commit 6dfd4f5b08)
2016-11-18 00:34:23 +01:00
Robert Helgesson
d3f8d5ec97 matrix-synapse: 0.17.1 -> 0.17.3
Includes security fixes, see

  https://github.com/matrix-org/synapse/releases/tag/v0.17.2
2016-11-18 00:18:45 +01:00
Ruben Maher
f70726854a matrix-synapse: Allow keys to be generated
The matrix-synapse user has `createHome = true;` which runs before the
`preStart` script, so the home directory will always exist and the block
will never execute.

Also don't include default path to keys in the configuration file,
because synapse will choke if it tries to open them before they
exist (even with `--generate-keys`).

(cherry picked from commit 08d7fbb42d)
2016-11-18 00:18:45 +01:00
Franz Pletz
085ceaf497 php70: 7.0.12 -> 7.0.13
(cherry picked from commit 7c65e225dd)
2016-11-17 21:18:26 +01:00
Franz Pletz
bbfa7ab83f php56: 5.6.27 -> 5.6.28
(cherry picked from commit e53b902559)
2016-11-17 21:18:25 +01:00
Profpatsch
7766a7a896 haskellPackages: fix libsystemd-journal
(cherry picked from commit 83317f7d04)
2016-11-17 13:16:39 +01:00
Graham Christensen
25dadd2d2d shutter: add patch for CVE-2015-0854 with remote code
(cherry picked from commit d0d3330866)
2016-11-16 22:06:27 -05:00
Graham Christensen
dd7c2715ed xinetd: patch for CVE-2013-4342
(cherry picked from commit 7ed55dc9e4)
2016-11-16 22:06:27 -05:00
Graham Christensen
39211629f8 jasper: 1.900.21 -> 1.900.28
(cherry picked from commit 1eb545df05)
2016-11-16 22:06:27 -05:00
Tim Steinbach
a10cba4f20 Merge pull request #20475 from NeQuissimus/mariadb_10.1.19
mariadb: 10.1.18 -> 10.1.19
(cherry picked from commit f590c6e464)
2016-11-16 20:25:47 -05:00
Tim Steinbach
2d42f89fca mariadb: 10.1.17 -> 10.1.18
(cherry picked from commit 697dbb9741)
2016-11-16 20:25:41 -05:00
Tim Steinbach
95a1fdc46f Merge pull request #20477 from NeQuissimus/opera_41
opera: 40.0.2308.90 -> 41.0.2353.56
(cherry picked from commit f0e2c5d96d)
2016-11-16 20:21:49 -05:00
Hoang Xuan Phu
e6bf8ef2fe opera: 12.16-1860 -> 40.0.2308.90
and unbreak

(cherry picked from commit c2281d6494)
2016-11-16 20:21:25 -05:00
Tim Steinbach
b8d2a3e796 Merge pull request #20480 from NeQuissimus/libgit2_0_24_3
libgit2: 0.24.2 -> 0.24.3
(cherry picked from commit 2bc7366667)
2016-11-16 20:15:56 -05:00
Frederik Rietdijk
ca25026798 pythonPackages.cryptography: 1.5.1 -> 1.5.3
(cherry picked from commit 77cdbb9e3a)
2016-11-16 14:20:14 +01:00
Frederik Rietdijk
787d61d5c7 mkPythonDerivation: append postFixup, fixes #9204
(cherry picked from commit 85a87f5155)
2016-11-16 14:05:21 +01:00
Frederik Rietdijk
80aef869b2 hplip: use mkPythonDerivation
since hplip is a Python package that doesn't use setuptools. Note that a
setup.py is provided, however, using buildPythonPackage fails.

(cherry picked from commit d9c7a14c6a)
2016-11-16 13:22:55 +01:00
Tim Steinbach
57959c85f9 Merge pull request #20441 from NeQuissimus/linux_4_4_32
linux: 4.4.31 -> 4.4.32
(cherry picked from commit a4cd6f1378)
2016-11-15 17:49:20 -05:00
Tim Steinbach
63e16e0eaf Merge pull request #20439 from NeQuissimus/linux_4_8_8
linux: 4.8.7 -> 4.8.8
(cherry picked from commit 819884119c)
2016-11-15 17:48:46 -05:00
Vladimír Čunát
a6728e15cb firefox-esr: security-only update 45.4.0 -> 45.5.0
(cherry picked from commit 207b8d1c46)
2016-11-15 19:23:35 +01:00
Josef Kemetmueller
1e105b2da3 mapnik: Make dependencies explicit for SCons
This is necessary to fix the build for (at least) darwin. If the
arguments are not specified explicitly then homebrew-install locations
are assumed for at least "icu".

Closes #20395.
2016-11-15 17:36:59 +01:00
Josef Kemetmueller
1f1615e128 Revert "Fix icu4c expression for latest gcc (fixes #2341)"
This reverts commit d393c6c538.
The commit removed C++11 compatibility on darwin by overriding the
--std=c++0x flag in CXXFLAGS. Which lead to a failing build of mapnik,
which depends on the move constructors being available in the icu-lib.
Since it builds fine without the headerpad_max_install_names flag, we
simply undo the change that introduced this flag.
2016-11-15 17:36:34 +01:00
Christoph Hrdinka
06c7e7126c mapnik: 3.0.10 -> 3.0.12 2016-11-15 17:36:20 +01:00
Lancelot SIX
5421df94fd rush: 1.7 -> 1.8 (#20424) 2016-11-15 13:34:35 +00:00
Vladimír Čunát
6e504d1a63 mesa: maintenance 12.0.3 -> 12.0.4
(Keeping the branch here; master will go for 13.0.x.)
2016-11-14 22:41:08 +01:00
Tim Steinbach
6270733155 Merge pull request #20401 from mikefaille/vagrant-up
vagrant: 1.8.6 -> 1.8.7
(cherry picked from commit 0c410a6bed)
2016-11-14 10:08:13 -05:00
Ryan Artecona
c7015ec2f3 vagrant: add darwin support
Vagrant on macOS is distributed as a .dmg installer. Luckily, the
internal contents of that archive resemble that of the .deb we use for
linux. In fact, the similarity is enough that if we move its `embedded`
directory to `opt/vagrant/embedded` and its `bin` to `usr/bin` (and back
again after installation), the derivation's installPhase (which replaces
embedded libs & binaries with those from the package's inputs) can
remain exactly the same between macOS and linux.

(cherry picked from commit 224a6b85fa)
2016-11-14 10:08:05 -05:00
Tim Steinbach
da59736148 Merge pull request #20413 from NeQuissimus/linux_4_9_rc5
linux: 4.9-rc4 -> 4.9-rc5
(cherry picked from commit f7fd568678)
2016-11-14 10:05:42 -05:00
Tim Steinbach
eb17dd2465 Merge pull request #20412 from NeQuissimus/broadcom_sta_hash
broadcom_sta: Fix hash
(cherry picked from commit 4ec18b2b92)
2016-11-14 09:47:59 -05:00
Tim Steinbach
5c97d20250 docker: 1.12.2 -> 1.12.3
(cherry picked from commit 282532e702)
2016-11-14 09:27:27 -05:00
Tim Steinbach
5f3bbce741 docker: 1.12.1 -> 1.12.2
(cherry picked from commit 1a23e336a5)
2016-11-14 09:27:17 -05:00
Rob Vermaas
5ddaca179c Update hash for xnu 3248.60.10, the tarball changed upstream, it seems. 2016-11-14 08:15:37 +00:00
Joachim Fasting
300c3502c7 haskellPackages.dataenc: jailbreak
Relaxes overly strict bounds on base (3 > && < 4.8).  The dataenc
package is unmaintained so there is no corresponding upstream issue.

(cherry picked from commit 31f8367c67)
2016-11-13 15:35:13 +01:00
Vladimír Čunát
c859ea0821 Merge vim fixes, all backports, mainly from #20237
The only difference from master now is that I kept on the 7.4 branch.
(And I didn't touch plugins here, too.)
2016-11-12 12:04:34 +01:00
Wink Saville
b84e0bc510 Remove python_framework.patch
In the [discussion](https://github.com/NixOS/nixpkgs/pull/18801) of this pull
request @LnL7 was unable to complete a darwin build because the
python_framework.patch does not apply and suggests it should be removed.

(cherry picked from commit d81a6e6f9c)
2016-11-12 12:03:14 +01:00
Vladimír Čunát
31c07b6fb2 vim*: fix :Man a bit
(cherry picked from commit 996d8ddd99)
2016-11-12 11:56:15 +01:00
Vladimír Čunát
d123745652 vim_configurable: misc improvements
- fix wrongly used *native* build inputs;
- remove confusing `prePatch = "cd src";` ;
- adapt RPATH handling to multiple-output changes;
- don't list full compiler flags in vim --version,
  as that would keep references to -dev paths.

Together, the closure of the default feature-set drops almost by 100 MB.
The lean vim attribute would *not* lose any references due to patching
--version, so we only apply it for vim_configurable.

(cherry picked from commit 51feecbe88)
2016-11-12 11:55:58 +01:00
Vladimír Čunát
43d30078da vim: factor common.nix from {default,configurable}.nix
(cherry picked from commit 1667046505)

The derivations are unchanged, except for being bumped to the last
7.4.x version (I avoided major update to 8.x here).
2016-11-12 11:52:26 +01:00
Tim Steinbach
301fc5752b Merge pull request #20327 from NeQuissimus/linux_4_9_rc4
linux: 4.9-rc3 -> 4.9-rc4
(cherry picked from commit c2b4a0d266)
2016-11-11 18:11:19 -05:00
Tim Steinbach
a1678d4465 Merge pull request #20326 from NeQuissimus/linux_3_12_67
linux: 3.12.66 -> 3.12.67
(cherry picked from commit 52cc30cd87)
2016-11-11 18:10:44 -05:00
Graham Christensen
030ffa95c8 openssl_1_1_0: 1.1.0b -> 1.1.0c
(cherry picked from commit bb2a67d226)
2016-11-11 07:14:05 -05:00
Tim Steinbach
9ab45d9631 Merge pull request #20322 from NeQuissimus/linux_4_8_7
linux: 4.8.6 -> 4.8.7
(cherry picked from commit 933dfca167)
2016-11-10 21:12:29 -05:00
Tim Steinbach
bf7fbccc90 Merge pull request #20321 from NeQuissimus/linux_4_4_31
linux: 4.4.30 -> 4.4.31
(cherry picked from commit 00a90f02ee)
2016-11-10 21:11:21 -05:00
Eelco Dolstra
2174c52772 linux: 4.4.28 -> 4.4.30
(cherry picked from commit ef1a188e07)
2016-11-10 21:11:14 -05:00
Joachim F
cb83dae891 Merge pull request #20314 from sheenobu/bugfix/spotify-update/2016_11_10
Fixed unavailable Spotify version - 16.09
2016-11-10 22:33:59 +01:00
Domen Kožar
2ec8941606 statsd: use nodejs 4.x 2016-11-10 22:32:01 +01:00
Christine Koppelt
ac5c020216 nodejs-0_10: remove
node.js 0.10 reaches end of LTS in a few days (see https://github.com/nodejs/LTS for details). Therefore I removed it and set 3 dependant packages to broken as they don't build anymore

(cherry picked from commit 162c65fc87)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-11-10 22:28:17 +01:00
Eelco Dolstra
bae1158399 nlohmann_json: 2.0.3 -> 2.0.7
(cherry picked from commit 674eb5ddf0)
2016-11-10 17:53:21 +01:00
Remy Goldschmidt
9a6ac20471 nlohmann_json: 2.0.2 -> 2.0.3
`cmake` should be in `nativeBuildInputs` as it is only required at build time. For obvious reasons we can't have the tests running during a cross-compile. I figured I'd update the package version while I was at it, though these changes have also been tested independently of the version update.
(cherry picked from commit 854d16d74e)
2016-11-10 17:53:21 +01:00
Jaanus Torp
ed796c93f9 Fixed unavailable Spotify version 2016-11-10 11:31:34 -05:00
Shea Levy
114fb50e8f Restore default-arch node patch.
3b00c52cb5 erroneously removed it.
2016-11-10 10:22:13 -05:00
Franz Pletz
e80d403e5f gitlab: 8.12.8 -> 8.13.5
(cherry picked from commit b15409d6f6)
2016-11-10 06:25:04 +01:00
Franz Pletz
3ee04914cc 389-ds-base: add patch to fix CVE-2016-5416
cc #20274

(cherry picked from commit 14a3d2d2ff)
2016-11-10 03:58:14 +01:00
Franz Pletz
0ee0755f7d libwmf: add patch to fix CVE-2016-9011
cc #20274

(cherry picked from commit 3190a6c452)
2016-11-10 03:58:13 +01:00
Tim Steinbach
67805b574d Merge pull request #20277 from taku0/flashplayer-11.2.202.644
flashplayer: 11.2.202.643 -> 11.2.202.644
(cherry picked from commit 331eb51705)
2016-11-09 20:01:44 -05:00
Tor Hedin Brønner
e74fbcd284 discord: 0.0.10 -> 0.0.11 (#20294)
(cherry picked from commit 1034339ace)
2016-11-10 01:36:22 +01:00
Tor Hedin Brønner
0d869928ea discord: 0.0.9 -> 0.0.10 (#20184)
(cherry picked from commit baae4be182)
2016-11-10 01:36:22 +01:00
Tor Hedin Brønner
434689fc3e discord: 0.0.8 -> 0.0.9
(cherry picked from commit bb550ace5c)
2016-11-10 01:36:21 +01:00
Christine Koppelt
3b00c52cb5 nodejs: cleanup files no longer needed (#20212)
(cherry picked from commit 1bf7440b54)
2016-11-10 00:15:35 +01:00
Graham Christensen
9634155e3c nodejs-5_x: Remove, no longer supported
(cherry picked from commit 91c49433c9)
2016-11-10 00:15:34 +01:00
Franz Pletz
f4b29c40b5 libressl_2_4: 2.4.3 -> 2.4.4
(cherry picked from commit 52f1a37898)
2016-11-09 20:04:12 +01:00
Franz Pletz
aa2f53dca1 libressl_2_3: 2.3.8 -> 2.3.9
(cherry picked from commit ecfb8df7a7)
2016-11-09 20:04:12 +01:00
Robert Helgesson
ab44ed6013 eclipse-plugin-acejump: 1.0.0.201501181511 -> 1.0.0.201610261941
(cherry picked from commit 9f251e1cb1)
2016-11-09 18:06:45 +01:00
aszlig
c97ad02f48 Merge branch 'chromium-update-with-gn-16.09'
This is the merge c67a7ee731 from master
but backported to stable, which brings a bunch of security updates to
Chromium:

  CVE-2016-5198: Out of bounds memory access in V8
  CVE-2016-5181: Universal XSS in Blink
  CVE-2016-5182: Heap overflow in Blink
  CVE-2016-5183: Use after free in PDFium
  CVE-2016-5184: Use after free in PDFium
  CVE-2016-5185: Use after free in Blink
  CVE-2016-5187: URL spoofing
  CVE-2016-5188: UI spoofing
  CVE-2016-5192: Cross-origin bypass in Blink
  CVE-2016-5189: URL spoofing
  CVE-2016-5186: Out of bounds read in DevTools
  CVE-2016-5191: Universal XSS in Bookmarks
  CVE-2016-5190: Use after free in Internals
  CVE-2016-5193: Scheme bypass

Detailed announcements about these changes can be found here (latest to
oldest):

https://googlechromereleases.blogspot.de/2016/11/stable-channel-update-for-desktop.html
https://googlechromereleases.blogspot.de/2016/10/stable-channel-update-for-desktop_20.html
https://googlechromereleases.blogspot.de/2016/10/stable-channel-update-for-desktop.html

The implementation of this backport differs in that we copy the
cc-wrapper to the Chromium directory and add support for handling
response files. Thanks to @bendlas for the work on this.

Tests and builds pass successfully on my Hydra at:

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

Cc: @grahamc, @bendlas, @shlevy, @sternenseemann
Closes: #19565
Closes: #20120
2016-11-09 17:26:02 +01:00
Frederik Rietdijk
3c8e07faf7 pythonPackages.pillow: 3.3.1 -> 3.4.2
Solves vulnerabilities mentioned in
https://github.com/NixOS/nixpkgs/issues/20274

(cherry picked from commit 20d16f86cc)
2016-11-09 16:26:22 +01:00
mimadrid
6443b40204 sudo: 1.8.18 -> 1.8.18p1
(cherry picked from commit 19b6d90cab)
2016-11-09 07:34:18 -05:00
Alexander Ried
cb35b0cd53 sudo: 1.8.17p1 -> 1.8.18
(cherry picked from commit 8e0d456daa)
2016-11-09 07:34:10 -05:00
Herwig Hochleitner
4067ae87ad chromium: Fix our ld wrapper to support @rspfiles
see NixOS#19680
2016-11-09 10:25:45 +01:00
Herwig Hochleitner
c5db2bc980 chromium: Add own cc wrapper (copy cc-wrapper)
see NixOS#19680
2016-11-09 10:25:42 +01:00
aszlig
9947a1bead nixos/tests/chromium: Fix popup detection
Sometimes it happens that the "Type to search or enter a URL to
navigate" popup doesn't show, but all we need to know at this time is
whether Chromium has finished starting up.

So checking for the "startup done" page is a better option here.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:25:39 +01:00
aszlig
081e942d90 chromium: Add Gtk 3 for versions >= 56
Versions before 56 already had experimental support for Gtk 3 and since
version 56, Gtk 3 _seemed_ to become the default. Although it's now
requiring *both* Gtk 2 and Gtk3, so let's supply the dependency for now
to get it to build.

In the future however we might want to add use_gtk3 to the GN flags and
get rid of Gtk 2 completely.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:25:36 +01:00
aszlig
8f58d7e0fc chromium: Fix building with WineVine components
Before version 54, the WideVine CDM plugin was built unconditionally and
it seems since version 54 this now is dependent upon a GYP/GN flag on
whether to include the CDM shared library or not.

Also, we now use a patch from Gentoo which should hopefully get the CDM
plugin to work properly, at least according to their bugtracker:

https://bugs.gentoo.org/show_bug.cgi?id=547630

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:25:32 +01:00
aszlig
4d5904d01a chromium: Update all channels to latest versions
Overview of updated versions:

stable: 54.0.2840.71 -> 54.0.2840.90
beta:   55.0.2883.21 -> 55.0.2883.35
dev:    56.0.2897.0  -> 56.0.2906.0

This is to get our Chromium versions in par with the latest upstream
ones before merging in the GN migration changes.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:24:48 +01:00
aszlig
15ac124943 chromium: Bring back pepper flash from Adobe
So far we had the bundled Flash player plugin that came with Chrome, but
since version 54 the Chrome package doesn't include PPAPI Flash anymore.

Instead we're going to download the PPAPI Flash plugin directly from
Adobe and try to use them for all release channels of Chromium.

Of course it would be nice if we'd have an updater for it but for now
it's important that we don't break things for people who are currently
forced to use Flash.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:20:58 +01:00
aszlig
7bac6d45de chromium: Remove some libs from system depenencies
Seems that these libraries aren't the ones Chromium is expecting to be,
so let's switch to use the bundled version of these libraries instead.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:20:54 +01:00
aszlig
469fbdeff3 chromium: Build with GN unconditionally
Previously I've added the extra file common-gn.nix in addition to
common.nix, so we can possibly have a smooth transition from current
stable to the new version 54.

Unfortunately, version 53 is already EOL and we have to move to version
54 as soon as possible so we can only use GN and thus it doesn't make
sense to provide expressions for GYP anymore.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:20:50 +01:00
aszlig
b431ae588a chromium: Remove flag for hiDPISupport
This should now be the upstream default and there also is no more flag
for GN to set it, so we'll no longer need it on our side as well.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:19:20 +01:00
Herwig Hochleitner
725888e7b4 chromium: remove pepperflash
fixes NixOS#19565
2016-11-09 10:18:26 +01:00
Herwig Hochleitner
f8d7092441 chromium: 53 -> 54 2016-11-09 10:18:21 +01:00
aszlig
37fabe5cce chromium: Remove plugin paths patch for version 50
The oldest version we build is version 53, so we no longer need this
patch.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:17:46 +01:00
aszlig
fcebe37b4b chromium: Add preliminary support for GN
This only uses the most basic GN flags which should represent the GYP
flags we had before. In order to get rid most of the GYP cruft, we now
have common.nix and common-gn.nix which are mostly the same, just that
the latter is only for GN builds.

The GN implementation is far from complete and currently not even
builds, so we need more work to get the beta and dev channels building.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:17:41 +01:00
aszlig
7a8da54873 gn: Init at 0.0.0.20161008
This is the standalone version of GN used currently solely for building
Chromium. An upstream bug report is available at
https://crbug.com/504074 to support a standalone build without needing
various components from the Chromium source tree.

Because there isn't a standalone vrsion available, I'm choosing
0.0.0.${date} as the version scheme here so that we don't conflict with
versioned releases from upstream someday[TM].

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-09 10:15:34 +01:00
Thomas Tuegel
1e1112edc5 Merge pull request #20197 from ttuegel/release-16.09-backport-plasma-5.8
Backport Plasma 5.8
2016-11-08 15:01:14 -06:00
Thomas Tuegel
d4640eb56a kdeWrapper: reduce environment pollution
(cherry picked from commit a7c986cf69)
2016-11-08 15:00:51 -06:00
Eelco Dolstra
96f9c3a210 pythonPackages.hypothesis: Disable tests
A random failure was preventing simp_le from reaching the channel.

http://hydra.nixos.org/build/43253102
(cherry picked from commit a2b018f55a)
2016-11-08 17:24:38 +01:00
Peter Simons
655b33f5c8 Merge pull request #20247 from neilmayhew/fix/download-curl
haskellPackages.download-curl: revision 1 -> revision 2
2016-11-08 15:49:36 +01:00
Rob Vermaas
990716ce72 hound: make mercurial indexing work 2016-11-08 14:08:35 +00:00
Eelco Dolstra
2620745753 man-pages: 4.07 -> 4.08
(cherry picked from commit bbb5f73d71)
2016-11-08 14:59:05 +01:00
Benno Fünfstück
73682e6d60 man-pages: include man3 in $out
The previous patch to this file removed the docdev output, but did
not actually provide the files that were in the docdev output in out.
This patch fixes the issue.

(cherry picked from commit 0a2b08884c)
2016-11-08 14:58:58 +01:00
Eelco Dolstra
74a3abb7e5 man-pages: Don't have a separate docdev output
I got:

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

which is suboptimal for a package that "documents the Linux kernel and
C library interfaces that are employed by user-space programs"
(https://www.kernel.org/doc/man-pages/).

(cherry picked from commit e84a3524b5)
2016-11-08 14:58:58 +01:00
Rob Vermaas
4b003d4a01 D'oh 2016-11-08 12:27:01 +00:00
Graham Christensen
e9420b8a38 hound: fixup meta
(cherry picked from commit 104d6965af)
2016-11-08 12:19:27 +00:00
Graham Christensen
ae7f41cc91 hound: Add description to services.hound.config
(cherry picked from commit 31b286467c)
2016-11-08 12:19:13 +00:00
Graham Christensen
18119de6db hound: init module
(cherry picked from commit 6c7a605714)
2016-11-08 12:18:55 +00:00
Graham Christensen
9dff6f03c2 hound: init at 20160919
(cherry picked from commit 14384f02e8)
2016-11-08 12:17:07 +00:00
Frederik Rietdijk
1db8b4aca3 Docs: improve Python expressions
as it contained several mistakes and was just messy.

(cherry picked from commit 9cdfb33401)
2016-11-08 12:45:23 +01:00
Neil Mayhew
d0f12576d8 haskellPackages.download-curl: update Hackage revision
This fixes a build failure caused by a new version of tagsoup
that broke download-curl's dependency bounds

Fixes issue #20141. Backports a minimal change from the regular
Hackage import on master.
2016-11-07 17:03:33 -07:00
Bjørn Forsman
8a5c376852 gstreamer: unbreak finding plugins in $NIX_PROFILES (#20207)
* gstreamer-1.0: make gst-launch find plugins again

gst-launch and friends are in the "dev" output now.

* gstreamer-1.0: lower priority on plugins from $NIX_PROFILES

Suffix the plugin paths from $NIX_PROFILES instead of prefixing them to
$GST_PLUGIN_SYSTEM_PATH. If a program has specifically set up its plugin
path to some custom/specific version, we don't want plugins from
$NIX_PROFILES to mess things up by having higher priority.

(cherry picked from commit b1df5bf89b)
It seems very unlikely to break anything.
2016-11-06 22:51:23 +01:00
Vladimír Čunát
c662d2c7ed Merge branch 'staging-16.09' into release-16.09
There are security fixes for tar and libtiff.
I forgot to push this immediately.
2016-11-06 21:04:13 +01:00
Joachim Fasting
0cec5cb3ca lttng-modules: 2.8.0 -> 2.8.3
Fixes build against linux >=4.8

Full changelog at
https://git.lttng.org/?p=lttng-tools.git;a=blob_plain;f=ChangeLog;hb=13dc409a5ea439b96b805c3c71886a3fcfad18e8

Tested with nix-build -A linuxPackages.lttng-modules -A linuxPackages_latest.lttng-modules

(cherry picked from commit ae5d404509)
2016-11-06 19:09:07 +01:00
Lluís Batlle i Rossell
fb82e59710 Disabling OABI_COMPAT on ARM platforms.
Otherwise, systemd-logind fails to work because SECCOMP_FILTER cannot be
enabled with OABI_COMPAT set. We don't need OABI_COMPAT at all on ARM, I
guess.

With this change, the rpi kernel boots fine for raspberrypi2.

We discussed this change with Dezgeg.

(cherry picked from commit a97db109a2)
2016-11-06 12:33:27 +01:00
Vladimír Čunát
da8c5d95d8 Merge #20206: libtiff: patch for some more CVEs
(cherry picked from commit b4c296ee09)
2016-11-06 11:41:08 +01:00
Peter Simons
2f59cb29fc esniper: update to version 2.32.0 some more
(cherry picked from commit 329bf83cad)
2016-11-06 10:41:21 +01:00
Peter Simons
77b643bf7d esniper: update to version 2.32.0
(cherry picked from commit bea1712727)
2016-11-06 09:33:49 +01:00
Franz Pletz
be0a278871 jasper: 1.900.2 -> 1.900.21 (security)
Incorporates fixes from all patches for the CVEs listed and some more
security-related issues like:

  http://www.openwall.com/lists/oss-security/2016/11/04/11

(cherry picked from commit 624de33091)
2016-11-06 03:34:47 +01:00
Thomas Tuegel
3447232654 ksysguard: fix evaluation error
(cherry picked from commit f74d48e9fe)
2016-11-05 15:08:56 -05:00
Thomas Tuegel
a94e3bb587 kimageformats: depend on karchive and ilmbase
(cherry picked from commit d9fa71cd8d)
2016-11-05 14:50:34 -05:00
Thomas Tuegel
9b282a9b3a plasma-desktop: depend on ibus
(cherry picked from commit f509ddf4ea)
2016-11-05 14:50:27 -05:00
Thomas Tuegel
753b0f0828 oxygen: depend on kwayland
(cherry picked from commit 87e75a6f88)
2016-11-05 14:50:14 -05:00
Thomas Tuegel
f6d960e381 libksysguard: depend on qtwebkit
(cherry picked from commit 75aa98d589)
2016-11-05 14:50:07 -05:00
Thomas Tuegel
4a98dea3b3 ksysguard: depend on lm_sensors
(cherry picked from commit cef9476a0c)
2016-11-05 14:50:00 -05:00
Ambroz Bizjak
8096c00c2f ksysguard: Add required qtwebkit dependency.
Without this the only the daemon would be built without a GUI.

(cherry picked from commit 7940692801)
2016-11-05 14:49:46 -05:00
Thomas Tuegel
9750f01ac4 kmenuedit: depend on khotkeys
(cherry picked from commit ea64342517)
2016-11-05 14:49:05 -05:00
Alexander Ried
9f5a22569e kdeFramework: only compare version once
(cherry picked from commit b4161cf47e)
2016-11-05 10:08:07 -05:00
Alexander Ried
11a9a67787 kde: use qtbase.version instead of parsing qtbase.name
(cherry picked from commit 260335b79a)
2016-11-05 10:07:59 -05:00
Thomas Tuegel
71b9dd9d1c qt55.kdeFrameworks: mark broken
KDE Frameworks 5.26 requires Qt 5.6. Qt 5.6 is a designated LTS release;
only proprietary packages should use older versions.

(cherry picked from commit 16dafb018e)
2016-11-05 10:07:31 -05:00
Thomas Tuegel
b5f4e8ec19 kde5.frameworks: 5.24 -> 5.26
(cherry picked from commit ebe90e3e2d)
2016-11-05 10:07:24 -05:00
Thomas Tuegel
899eb79587 ktexteditor: backport bug fixes for Plasma 5.8 2016-11-05 10:03:28 -05:00
Thomas Tuegel
996d9de474 plasma-framework: include patch for OSD dialog flag
Include an upstream patch to fix an annoying bug where OSD windows have
the dialog flag set, causing OSDs associated with auto-hiding panels to
be invisible.

(cherry picked from commit ee2d5a3758)
2016-11-05 09:57:29 -05:00
Thomas Tuegel
03b0810cc7 kde5.plasma: 5.8.2 -> 5.8.3
(cherry picked from commit 39f0404fdb)
2016-11-05 09:56:18 -05:00
Thomas Tuegel
8dce606c72 kde5.plasma: 5.8.1 -> 5.8.2
(cherry picked from commit 9cd8b4e2d7)
2016-11-05 09:56:02 -05:00
Thomas Tuegel
0ca368845d kde5.plasma: 5.8.0 -> 5.8.1
(cherry picked from commit bfc1ec2807)
2016-11-05 09:55:04 -05:00
Thomas Tuegel
9c5c436a55 kde5.plasma: 5.7.5 -> 5.8.0
(cherry picked from commit 379c511126)
2016-11-05 09:54:57 -05:00
Thomas Tuegel
322b0e65a6 kde5.plasma: 5.7.4 -> 5.7.5
(cherry picked from commit 9f0506b030)
2016-11-05 09:54:48 -05:00
Thomas Tuegel
9cd06a8a47 kde5.kwin: build with xwayland
A patch was already included to find the path to Xwayland, but the build
was not actually using it because it wasn't a buildInput.

(cherry picked from commit 1b255790b4)
2016-11-05 09:54:20 -05:00
Joachim Fasting
33c38c460f grsecurity: 4.7.10-201610262029 -> 201611011946
(cherry picked from commit d9b5cd41c5)
2016-11-05 13:00:05 +01:00
Pavel Chuprikov
94c389377e bear: 2.2.0 -> 2.2.1
Taken from #20020.

(cherry picked from commit 6f17cb108d)

Otherwise, the patch in 77d8b46c02 fails
to apply (see e.g., https://hydra.nixos.org/build/43141220/nixlog/1/raw)
2016-11-05 12:59:02 +01:00
Shea Levy
674ebc241d tar: patch for CVE-2016-6321
https://lwn.net/Vulnerabilities/705216/
(cherry picked from commit ac59e2f184)
2016-11-04 23:07:15 -04:00
Shea Levy
80cbb8acf1 cacerts: refactor, add blacklist option
Previously, the list of CA certificates was generated with a perl script
which is included in curl. As this script is not very flexible, this commit
refactors the expression to use the python script that Debian uses to
generate their CA certificates from Mozilla's trust store in NSS.

[SL: The following was true of the original commit but was backed out
of the cherry pick]:

Additionally, an option was added to the cacerts derivation and the
`security.pki` module to blacklist specific CAs.

(cherry picked from commit 0d59fc1169)
2016-11-04 22:01:51 -04:00
Franz Pletz
a64e9269fb gitlab: 8.12.6 -> 8.12.8, fix CVE-2016-9086
https://about.gitlab.com/2016/11/02/cve-2016-9086-patches/
(cherry picked from commit a7d35fdff3)
2016-11-03 20:18:59 +01:00
Bjørn Forsman
d622fbe24f devmem2: init at 2004-08-05
A simple program to read/write from/to any location in memory.

Unfortunately the homepage doesn't have a versioned source code download
URL. On the other hand, the program is pretty stable, with no change for
the last 12 years...

(cherry picked from commit a6283c1126)
2016-11-03 15:45:51 +01:00
Pavel Chuprikov
77d8b46c02 bear: ignore wrapper calls (#20070)
Fixes #20056
(cherry picked from commit 6693e3b06c)
2016-11-03 15:27:42 +01:00
Nikolay Amiantov
444246113a tarsnap service: assert that same key is not used for different archives
See #19089
2016-11-03 17:21:14 +03:00
Ricardo M. Correia
3f6c9cceea nixos.libvirtd: fix broken VMs due to emulator path changes
This had already been fixed in f52f9bf7cd,
but the problem was reintroduced in
bce59a1a8b because the path to the XML
files changed.

(cherry picked from commit af01fa71e0)
2016-11-03 14:56:56 +01:00
Franz Pletz
a29900e763 memcached: 1.4.20 -> 1.4.33
Fixes:

  - CVE-2016-8704
  - CVE-2016-8705
  - CVE-2016-8706

Closes #20079.

cc #20078

(cherry picked from commit a94bd88d7a)
2016-11-03 05:14:58 +01:00
Peter J. Jones
cf35c00e84 vsftpd service: add extraConfig option, set anon_root (#20069)
This commit includes two changes:

  1. A new `extraConfig` option to allow administrators to set any
     vsftpd configuration option that isn't directly supported by this
     derivation.

  2. Correctly set the `anon_root` vsftpd option to `anonymousUserHome`
(cherry picked from commit d19967bf48)
2016-11-03 05:07:28 +01:00
Franz Pletz
d158206bf4 libxml2: add patch to fix CVE-2016-4658
cc #20078

(cherry picked from commit 64902aebb0)
2016-11-03 02:46:35 +01:00
Franz Pletz
eb653d9620 graphicsmagick: add patches to fix 3 CVEs
Fixes CVE-2016-8682, CVE-2016-8683, CVE-2016-8684.

cc #20078

(cherry picked from commit 04db88d247)
2016-11-03 02:46:33 +01:00
Franz Pletz
924230d126 qemu: add patches to fix lots of CVEs
Patches from Debian and upstream git repo.

Fixes:

 * CVE-2016-6836
 * CVE-2016-7155
 * CVE-2016-7156
 * CVE-2016-7157
 * CVE-2016-7421
 * CVE-2016-7422
 * CVE-2016-7423
 * CVE-2016-7466
 * CVE-2016-8909
 * CVE-2016-8910
 * CVE-2016-9102
 * CVE-2016-9103
 * CVE-2016-9104
 * CVE-2016-9105
 * CVE-2016-9106

cc #20078

(cherry picked from commit 25c01931bb)
2016-11-03 02:46:31 +01:00
Franz Pletz
826a5d7aa1 cairo: add patch to fix CVE-2016-9082
cc #20078

(cherry picked from commit 2b2f273375)
2016-11-03 02:46:29 +01:00
Tim Steinbach
d5b6594046 Merge pull request #19864 from womfoo/fix/netdata-16.09
netdata: allow execution without a config file (16.09)
2016-11-02 19:53:22 -04:00
Franz Pletz
74b91a8579 pythonPackages.django_1_8: 1.8.15 -> 1.8.16
Fixes CVE-2016-9013, CVE-2016-9014.

https://www.djangoproject.com/weblog/2016/nov/01/security-releases/
(cherry picked from commit b806e14a3c)
2016-11-02 14:24:20 +01:00
Franz Pletz
abfb2e5cf9 pythonPackages.django_1_9: 1.9.10 -> 1.9.11
Fixes CVE-2016-9013, CVE-2016-9014.

https://www.djangoproject.com/weblog/2016/nov/01/security-releases/
(cherry picked from commit 58ad105cd4)
2016-11-02 14:24:19 +01:00
Franz Pletz
48bf4c8518 pythonPackages.django_1_10: 1.10.2 -> 1.10.3
Fixes CVE-2016-9013, CVE-2016-9014.

https://www.djangoproject.com/weblog/2016/nov/01/security-releases/
(cherry picked from commit 6ad14d4256)
2016-11-02 14:24:18 +01:00
Graham Christensen
31ba04e416 tre: add patch for CVE-2016-8859
(cherry picked from commit cd67a0aada)
2016-11-02 11:57:27 +01:00
Robert Helgesson
f33c5f713e perl-Image-Info: 1.38 -> 1.39
Fixes information disclosure security issue. See
https://lwn.net/Vulnerabilities/704702/.

(cherry picked from commit 68f2bc8fb3)
2016-11-02 11:51:00 +01:00
Eelco Dolstra
55dfafa4da curl: 7.50.3 -> 7.51.0
Fixes 11 CVEs:

https://curl.haxx.se/changes.html#7_51_0
(cherry picked from commit 1e1609da6a)
2016-11-02 06:03:22 -04:00
Arseniy Seroka
238c7e0dbf Merge pull request #20075 from peterhoeg/stable/dropbox
dropbox: 11.4.22 -> 13.4.21
2016-11-02 11:42:04 +03:00
Peter Hoeg
767d11ea47 dropbox: 11.4.22 -> 13.4.21 2016-11-02 15:10:58 +08:00
Peter Simons
8f0b93b4ed bind: update to 9.10.4-P4 to fix CVE-2016-8864
(cherry picked from commit 0b180d1ca4)
2016-11-01 22:18:40 +01:00
Peter Simons
dbdb27bd63 callHackage: make 'all-cabal-hashes' repository overridable
This commit changes callHackage to use a deterministic version of the Hackage
checkout from https://github.com/commercialhaskell/all-cabal-hashes by default.
This means that packages uploaded to Hackage after today will be available to
callHackage only after "pkgs/data/misc/hackage/default.nix" has been updated.

People who want the previous behavior where we always had the latest version of
Hackage available -- at the cost of frequent downloads from Github --, can add
the following override to their "~/.nixpkgs/config.nix" file:

  {
    packageOverrides = super: {
      all-cabal-hashes = builtins.fetchTarball "https://github.com/commercialhaskell/all-cabal-hashes/archive/hackage.tar.gz";
    };
  }

(cherry picked from commit fac1168816)
2016-11-01 18:36:32 +01:00
Tim Steinbach
f43a28a9c1 Merge pull request #20002 from ambrop72/kdevelop-5.0.2
kdevelop: 5.0.0 -> 5.0.2
(cherry picked from commit b2e6068b66)
2016-11-01 09:25:18 -04:00
Tim Steinbach
4e17529a35 Merge pull request #20053 from NeQuissimus/linux_4_8_6
linux: 4.8.5 -> 4.8.6
(cherry picked from commit c1fb904d85)
2016-11-01 09:00:07 -04:00
Rickard Nilsson
22988560fe haskell-xxhash: Use doJailbreak instead of sed
(cherry picked from commit 6bbdad7d11)
2016-11-01 11:34:52 +01:00
Rickard Nilsson
4fe734afb9 haskell-xxhash: fix build with GHC 8.x
(cherry picked from commit 58707589d2)
2016-11-01 11:02:31 +01:00
Yochai Meir
9902430e59 texstudio: 2.11.0 -> 2.11.2
(cherry picked from commit f9f7461ed3)
2016-10-31 23:40:37 +02:00
Bjørn Forsman
2c3718e46c borgbackup: 1.0.7 -> 1.0.8
(cherry picked from commit ee40829097)
2016-10-31 22:27:02 +01:00
Christine Koppelt
b59e2e427c redis: 3.2.3 -> 3.2.5
(cherry picked from commit e9d5920272)
2016-10-31 14:39:00 +01:00
Vladimír Čunát
e89366315b Merge linux kernel maintenance updates
PRs: #19995 #19996 #19997
(cherry picked from commit 3be635b9b5)
2016-10-30 17:36:33 +01:00
Jascha Geerds
b58da6a6ca silver-searcher: 0.32.0 -> 0.33.0
(cherry picked from commit 9ca0521099)
2016-10-30 01:12:59 +02:00
Bjørn Forsman
cd26ca2593 xpra: 0.17.5 -> 0.17.6
Many fixes.

(cherry picked from commit 5c1fd6763f)
2016-10-30 01:02:34 +02:00
Tim Steinbach
38017e6ad5 Merge pull request #19974 from rasendubi/elasticsearch2-2.4.0-stable
elasticsearch2: 2.3.4 -> 2.4.0 (port to stable)
2016-10-29 15:56:19 -04:00
Rickard Nilsson
7063b0f7ba elasticsearch2: 2.3.4 -> 2.4.0 2016-10-29 22:20:46 +03:00
Vladimír Čunát
faec2c8ff2 intltool: fix the patch URL, #19487
I hope it's without mistake now. I re-checked the download,
avoiding the binary caches where it would go usually.

(cherry picked from commit 80d956caf3)
2016-10-29 20:42:54 +02:00
Jascha Geerds
cc29d3d1be gitAndTools.gitflow: 1.10.0 -> 1.10.2
(cherry picked from commit 6de23f466b)
2016-10-29 16:00:45 +02:00
Jascha Geerds
971ff3b931 gitAndTools.gitflow: 1.9.1 -> 1.10.0
(cherry picked from commit 19c42ee0b7)
2016-10-29 16:00:37 +02:00
Jascha Geerds
b49b60b618 hexchat: 2.12.1 -> 2.12.3 2016-10-29 15:55:12 +02:00
Timofei Kushnir
dce54d4d2f grsecurity: fix 'isYes' and 'isNo'
(cherry picked from commit faa6f9b6b3)
2016-10-29 15:00:51 +02:00
Joachim Fasting
0ba1ea8122 virtualbox-{systemd-detect-virt,net-hostonlyif} test: fix dbus socket dir
The test complains[1][2] that

   Failed to start message bus: Failed to bind socket "/run/dbus/system_bus_socket": No such file or directory

In 639e5401ff, the dbus socket dir is set
to `/run/dbus`; in the test vm `/var/run/dbus` is used, but the standard
`/run -> /var/run` link is typically not created until stage 2 init, not
in the minimal init used here.  Thus, dbus fails to run within the test
environment .  Fix by changing `/var/run/dbus` to simply `/run/dbus`.

[1]: https://hydra.nixos.org/build/42534725
[2]: https://hydra.nixos.org/build/42523834

(cherry picked from commit c86fe2224e)
2016-10-29 15:00:41 +02:00
Jaka Hudoklin
6794cc113f xpra: 0.17.4 -> 0.17.5
(cherry picked from commit 85e2b60b77)
2016-10-29 14:26:59 +02:00
Joachim Fasting
6189145b37 grsecurity: 4.7.10-201610222037 -> 201610262029
(cherry picked from commit dfdaea1240)
2016-10-28 13:22:17 +02:00
Ram Kromberg
88bef217b1 a2ps: fix build
(cherry picked from commit 1b0163ea16)
2016-10-28 13:22:08 +02:00
Peter Simons
b6df43a2df git-annex: update to latest version 2016-10-28 10:02:50 +02:00
Peter Simons
118efe87b9 haskell-titlecase: drop obsolete overrides 2016-10-28 10:02:50 +02:00
Peter Simons
62d8cb42e2 configuration-hackage2nix.yaml: update list of broken builds 2016-10-28 10:02:49 +02:00
Peter Simons
9c31962c07 haskell-stack: fix evaluation 2016-10-28 10:02:49 +02:00
Peter Simons
b5fb02fb29 hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.0.3 from Hackage revision
5e53b98045.
2016-10-28 10:02:43 +02:00
Peter Simons
a6445ace6f LTS Haskell 7.5 2016-10-28 10:01:59 +02:00
Peter Simons
f9087ae9a9 Synchronize Haskell package set with 'master'. 2016-10-28 09:59:21 +02:00
Graham Christensen
5b08a40da9 epiphany: 3.20.3 -> 3.20.4
(cherry picked from commit 3e18f4bc2f)
2016-10-27 18:37:36 -04:00
Graham Christensen
eef176fb82 webkitgtk214x: 2.14.0 -> 2.14.1
(cherry picked from commit 354811f4bc)
2016-10-27 18:37:36 -04:00
Alexander Ried
12015599ad webkitgtk214x: reenable needed fix
was disabled for testing but somehow made it into my pr.

From #19081.

(cherry picked from commit 733c706c91)
2016-10-27 18:37:35 -04:00
Alexander Ried
06eba194e8 webkitgtk214x: init at 2.14.0
(cherry picked from commit b82874e6dc)
2016-10-27 18:37:32 -04:00
Tim Steinbach
b8a403c32b Merge pull request #19652 from NeQuissimus/linux_4_9_rc1
linux_testing: 4.8-rc6 -> 4.9-rc1
(cherry picked from commit 70c8de0536)
2016-10-27 10:18:14 -04:00
Graham Christensen
119159ba56 Merge pull request #19891 from NeQuissimus/kernel_4_9_rc2
kernel: 4.9-rc1 -> 4.9-rc2
(cherry picked from commit 2f3b62375f)
2016-10-27 10:16:18 -04:00
Graham Christensen
06a9a09a02 Merge pull request #19877 from NeQuissimus/openjdk_8u122_04
openjdk: 8u122-03 -> 8u122-04
(cherry picked from commit eab3395be3)
2016-10-27 09:36:10 -04:00
Tim Steinbach
6860e6f530 openjdk: 8u122-00 -> 8u122-03
(cherry picked from commit e4c38f36dd)
2016-10-27 09:36:04 -04:00
Eelco Dolstra
fc67ecc52f thunderbird: 45.3.0 -> 45.4.0
(cherry picked from commit 9db03c1cf1)
2016-10-27 09:28:10 -04:00
Graham Christensen
b24ae4592b openslp: patch for CVE-2016-7567
(cherry picked from commit 0f7ac8b41f)
2016-10-27 08:46:58 -04:00
Graham Christensen
cc5f0af990 libgit2: 0.24.1 -> 0.24.2 for CVE-2016-8568, CVE-2016-8569
(cherry picked from commit 65a6484f79)
2016-10-27 08:43:07 -04:00
Tim Steinbach
a43f80a906 kernel: 3.18.42 -> 3.18.44
(cherry picked from commit b02646f93b)
2016-10-27 08:39:53 -04:00
Tim Steinbach
9f3371bc72 kernel: 3.12.63 -> 3.12.66
(cherry picked from commit e5e84ecbbd)
2016-10-27 08:39:52 -04:00
Tim Steinbach
74b319bdd4 kernel: 3.10.103 -> 3.10.104
(cherry picked from commit e4773819f4)
2016-10-27 08:39:52 -04:00
Graham Christensen
8c6ee84200 virtualbox: 5.1.6 -> 5.1.8 for many CVEs:
From LWN:
From the NVD entries:

CVE-2016-5501: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect confidentiality,
integrity, and availability via vectors related to Core, a different
vulnerability than CVE-2016-5538.

CVE-2016-5538: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect confidentiality,
integrity, and availability via vectors related to Core, a different
vulnerability than CVE-2016-5501.

CVE-2016-5605: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.1.4 in Oracle Virtualization allows remote
attackers to affect confidentiality and integrity via vectors related
to VRDE.

CVE-2016-5608: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect availability via vectors
related to Core, a different vulnerability than CVE-2016-5613.

CVE-2016-5610: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect confidentiality,
integrity, and availability via vectors related to Core.

CVE-2016-5611: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect confidentiality via
vectors related to Core.

CVE-2016-5613: Unspecified vulnerability in the Oracle VM VirtualBox
component before 5.0.28 and 5.1.x before 5.1.8 in Oracle
Virtualization allows local users to affect availability via vectors
related to Core, a different vulnerability than CVE-2016-5608.

(cherry picked from commit 69e8bac9cd)
2016-10-26 22:20:48 -04:00
Graham Christensen
59c8691b3c libdwarf: 20161001 -> 20161021 for CVE-2016-8679
(cherry picked from commit e5ad26e48e)
2016-10-26 22:17:29 -04:00
taku0
4f0125074e flashplayer: 11.2.202.637 -> 11.2.202.643
(cherry picked from commit d19b53f851)
2016-10-26 22:06:41 -04:00
Vladimír Čunát
ebed0acc17 Merge #19892: kernel: 4.1.33 -> 4.1.35
(cherry picked from commit 6404a30afb)
2016-10-26 22:13:05 +02:00
Travis Whitaker
0de7eeb372 gcc-arm-embedded: fix ncurses for gdb
(cherry picked from commit 6f1f1d86c1)
2016-10-26 18:36:25 +02:00
Frederik Rietdijk
6ff749df36 Python: bootstrapped-pip: use python.libPrefix in name
See 4de7cbdf04

(cherry picked from commit 321e073629)
2016-10-26 17:24:35 +02:00
Vladimír Čunát
a2574474d3 pythonPackages.pip: do not name it python-*
Fixes #19691.  Feel free to find a beter naming.

(cherry picked from commit 4de7cbdf04)
2016-10-26 17:24:30 +02:00
Bjørn Forsman
ff877e44cb saleae-logic: 1.2.9 -> 1.2.10 (bugfixes)
(cherry picked from commit 63bf567001)
2016-10-26 17:16:46 +02:00
Bjørn Forsman
21754ea1c9 saleae-logic: fix 32-bit source hash
I messed up in commit 314b1fbf0 ("saleae-logic: 1.1.15 -> 1.2.9").

(cherry picked from commit 0495b0763f)
2016-10-26 17:16:44 +02:00
Thomas Tuegel
dd03aca4e2 melpaStablePackages.ac-php: remove redundant arguments
Fixes #19084.
2016-10-26 09:39:16 -05:00
Thomas Tuegel
22737d5e25 melpaPackages: update jade
Fixes #18550.

(cherry picked from commit 7fd8f158af)
2016-10-26 09:35:25 -05:00
Thomas Tuegel
6a2d40dca2 orgPackages 2016-09-08
(cherry picked from commit a0d1981046)
2016-10-26 09:33:12 -05:00
Thomas Tuegel
96864e6390 elpaPackages 2016-09-08
(cherry picked from commit 023e4db785)
2016-10-26 09:33:05 -05:00
Thomas Tuegel
e36d042514 melpaStablePackages 2016-09-08
(cherry picked from commit 1ac28f798c)
2016-10-26 09:32:58 -05:00
Thomas Tuegel
42354cf77e melpaPackages 2016-09-07
(cherry picked from commit ed94adc66b)
2016-10-26 09:32:51 -05:00
Jascha Geerds
ca52cc12a7 terraform: 0.7.1 -> 0.7.7 2016-10-26 14:46:59 +02:00
Jascha Geerds
fded2ca9c6 terraform: Add myself as a maintainer
(cherry picked from commit 231d9737df)
2016-10-26 14:43:02 +02:00
Eelco Dolstra
0195ab8460 firefox: 49.0.1 -> 49.0.2
CVE-2016-5287, CVE-2016-5288

(cherry picked from commit 12212a0b13)
2016-10-26 13:32:56 +02:00
Tim Steinbach
b40da90767 firefox: 49.0 -> 49.0.1
(cherry picked from commit 67a2ac6d63)
2016-10-26 13:32:52 +02:00
Franz Pletz
bd2568a2f9 php56: 5.6.26 -> 5.6.27
Fixes some security vulnerabilities:

    https://secure.php.net/ChangeLog-5.php#5.6.27

(cherry picked from commit 0f42ee7c88)
2016-10-26 07:03:10 -04:00
Franz Pletz
732930baaf php70: 7.0.11 -> 7.0.12
Fixes some security vulnerabilities:

    https://secure.php.net/ChangeLog-7.php#7.0.12

(cherry picked from commit 5456d8f007)
2016-10-26 07:03:09 -04:00
Jascha Geerds
ff63518f0e keepassx2: 2.0.2 -> 2.0.3
(cherry picked from commit 2273849a85)
2016-10-26 12:39:31 +02:00
Tim Steinbach
cadc55f289 gnutls: 3.3.24 -> 3.3.25
(cherry picked from commit e99a81060f)
2016-10-25 22:35:00 +02:00
Tim Steinbach
27b37f1b95 kernel: remove 4.7
(cherry picked from commit b3f7d626c1)
2016-10-25 14:03:46 -04:00
Kranium Gikos Mendoza
0e1066e8e4 netdata: allow execution without a config file 2016-10-25 23:35:35 +08:00
Joachim Fasting
2bc7ca7060 grsecurity: 4.7.9-201610200819 -> 4.7.10-201610222037
Notably, this pulls in the dirtycow fix from upstream (but I've been
unable to execute the POC exploits on grsec kernels without that fix
...)

(cherry picked from commit 5440c1a64c)
2016-10-23 17:18:46 +02:00
Joachim Fasting
62ff867cc5 unbound: 1.5.9 -> 1.5.10
Fixes a fair number of bugs, see https://www.unbound.net/download.html.

Also use https for meta.homepage.

(cherry picked from commit 0c0801e9c4)
2016-10-23 17:18:28 +02:00
Luca Bruno
5ba5470a19 Merge pull request #19733 from KaiHa/networkmanager-pppd-fix
network-manager: give path to pppd executable
2016-10-23 14:34:19 +01:00
Jörg Thalheim
48bf6872e4 Merge pull request #19734 from KaiHa/gnupg-libusb-fix
gnupg: take libusb include path from pkg-config
2016-10-23 08:55:53 +02:00
Vladimír Čunát
af0fec6d0a treewide: fix evaluation errors 2016-10-22 18:33:59 +02:00
Tim Steinbach
ceb1d53948 Merge pull request #19772 from NeQuissimus/linux_4_8_4
linux: 4.8.3 -> 4.8.4
(cherry picked from commit a3989b87df)
2016-10-22 12:15:18 -04:00
Tim Steinbach
c9d66910e6 Merge pull request #19771 from NeQuissimus/linux_4_7_10
linux: 4.7.9 -> 4.7.10
(cherry picked from commit 72d91f95cb)
2016-10-22 12:14:43 -04:00
Tim Steinbach
92047849de Merge pull request #19770 from NeQuissimus/linux_4_4_27
linux: 4.4.26 -> 4.4.27
(cherry picked from commit aa7424642d)
2016-10-22 12:14:09 -04:00
Jörg Thalheim
177c342d22 Merge pull request #19762 from NeQuissimus/brackets_1_7
brackets: 1.5 -> 1.7
(cherry picked from commit f2872c5d1d)
2016-10-22 11:45:25 -04:00
José Romildo Malaquias
2b06553299 opensmtpd: 6.0.0p1 -> 6.0.2p1 (#19660)
Changelogs at
  https://www.opensmtpd.org/announces/release-6.0.1.txt
  https://www.opensmtpd.org/announces/release-6.0.2.txt
(cherry picked from commit b085f4a216)
2016-10-22 14:47:16 +01:00
Kai Harries
2383ad5899 gnupg: amend fix-libusb-include-path.patch 2016-10-22 13:54:46 +02:00
Jörg Thalheim
dd309d625c Whoosh: duplicate of whoosh 2016-10-22 12:49:08 +02:00
Jörg Thalheim
49439337df whoosh: ignore failing test
https://hydra.nixos.org/build/41749850/nixlog/1

backport of 0516c3cdb2
2016-10-22 12:49:08 +02:00
Vladimír Čunát
e4fb65a362 Merge #14404: add a couple of vulkan utilities
(cherry picked from commit 7aeca58779)
It just adds new packages.
2016-10-22 11:46:41 +02:00
Joachim Fasting
cd41bfeeb1 grsecurity: 4.7.7-201610101902 -> 4.7.9-201610200819
(cherry picked from commit ed5d146e9d)
2016-10-21 23:05:01 +02:00
Jascha Geerds
25a7f17a0f fleet: 0.11.5 -> 0.11.8
(cherry picked from commit cf8362ffec)
2016-10-21 21:17:49 +02:00
Domen Kožar
686bc9c5cc acme: we do want to support ipv4 afterall
(cherry picked from commit 41c490b75e)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-10-21 13:25:26 +02:00
Domen Kožar
2af7382f76 acme: provide full nginx example 2016-10-21 13:17:55 +02:00
Aneesh Agrawal
31c72ce266 openssh: Patch CVE-2016-8858
Also add myself as a maintainer.

(cherry picked from commit 7374105a96)
2016-10-20 17:13:23 -04:00
Graham Christensen
1d90b406a9 libtiff: patch for many CVEs
(cherry picked from commit d3bda9b6f1)
2016-10-20 17:13:20 -04:00
Tim Steinbach
0cc51cefad Merge pull request #19735 from chris-martin/riemann-health-ps-backport
Fix riemann-health service (backport to release-16.09)
2016-10-20 17:01:07 -04:00
Chris Martin
9fd1ff1ae8 riemann-health service: add procps to path (#19237)
(cherry picked from commit 57023aba3d)
2016-10-20 16:17:34 -04:00
Kai Harries
0775adc599 network-manager: give path to pppd executable
This fixes an issue I have faced when trying to connect to the internet
via wwan gsm modem.
2016-10-20 21:51:12 +02:00
Kai Harries
5e21ccc98a gnupg: take libusb include path from pkg-config
This makes smartcards (like the Nitrokey)  usable again.
2016-10-20 21:48:47 +02:00
Eelco Dolstra
2eac61e5db display-manager: Require systemd-udev-settle.service
It was already ordered after systemd-udev-settle.service, but that
doesn't do anything if no other units require
systemd-udev-settle.service. This was causing random failures during X
server startup, e.g.

machine# [   12.691372] display-manager[607]: (EE) open /dev/dri/card0: No such file or directory

http://hydra.nixos.org/build/41062823
(cherry picked from commit e6bcff4d53)
2016-10-20 20:06:09 +02:00
Eelco Dolstra
0b20f6daba linux: 4.4.25 -> 4.4.26
(cherry picked from commit 76a57d83b5)
2016-10-20 20:06:00 +02:00
Vladimír Čunát
7e5cfb7d82 Merge #19725: kernel: 4.7.8 -> 4.7.9
(cherry picked from commit fabfb0a900)
2016-10-20 19:46:13 +02:00
Tim Steinbach
0ed0d08c72 kernel: 4.8.2 -> 4.8.3
(cherry picked from commit 0c3e5217fc)
2016-10-20 13:10:11 -04:00
Vladimír Čunát
7c5f0729ca gnome3.anjuta: fix a gschemas crash
(cherry picked from commit 87e8ff4c70)
2016-10-20 17:43:21 +02:00
Vladimír Čunát
49a0a8eb9b xfce: unbreak gtk3 theming for xfce desktop users
This is a partial revert of f0da9ff4.

The half-usable menus in gtk3 apps have been aggravating me for months.

(cherry picked from commit 446d57c66a)
2016-10-20 17:15:07 +02:00
Rob Vermaas
44dc490232 Fix evaluation. D'oh. 2016-10-20 13:20:08 +00:00
Rob Vermaas
2664f22606 Updating R package sets. This probably should have been done before releasing. 2016-10-20 13:15:05 +00:00
Rob Vermaas
c4c2e44f9a r-modules: Fix some package references that are broken due to multiple-outputs. 2016-10-20 13:00:22 +00:00
Rob Vermaas
a722f1b509 Update README.md for r-modules. 2016-10-20 12:59:39 +00:00
Graham Christensen
ece2cb681c Revert "tracker: 1.8.0 -> 1.10.1"
This reverts commit c16d57a18d.

See: https://github.com/NixOS/nixpkgs/pull/19702
2016-10-20 06:51:58 -04:00
Graham Christensen
7145fec66a pythonPackages.suds: mark as broken for security concerns
(cherry picked from commit 58e46e2b8f)
2016-10-19 22:20:44 -04:00
Tim Steinbach
36341cf78c oraclejdk: 8u101/102 -> 8u111/112
(cherry picked from commit b922bedc46)
2016-10-19 21:52:28 -04:00
Tim Steinbach
d3c96745f1 mysql: 5.7.15 -> 5.7.16
(cherry picked from commit 276e41a219)
2016-10-19 21:40:46 -04:00
Tim Steinbach
97fb20e01c mysql: 5.5.52 -> 5.5.53
(cherry picked from commit a3cd58d24a)
2016-10-19 21:40:42 -04:00
Lancelot SIX
2cea8edec7 guile: 2.0.12 -> 2.0.13
This is a maintenance release on the stable series, containing
security fixes.

It addresses CVE-2016-8606

See http://lists.gnu.org/archive/html/info-gnu/2016-10/msg00009.html
for upstream announcement

(cherry picked from commit c959cc3d9c)
2016-10-19 21:13:37 -04:00
Graham Christensen
b565350ee2 quagga: 1.0.20160315 -> 1.0.20161017 for CVE-2016-1245
(cherry picked from commit 2570874e11)
2016-10-19 21:00:19 -04:00
Graham Christensen
452358764e ffmpeg: 3.1.3 -> 3.1.4
(cherry picked from commit 2f7bdfe97e)
2016-10-19 21:00:18 -04:00
Graham Christensen
53332c32d6 dbus: 1.10.10 -> 1.10.12 for CVE-2015-0245
(cherry picked from commit bc1317c163)
2016-10-19 20:59:10 -04:00
Graham Christensen
4a99481837 ghostscript: 9.18 -> 9.20 for multiple CVEs: https://lwn.net/Vulnerabilities/703324/
(cherry picked from commit 3c2306e216)
2016-10-19 20:59:10 -04:00
Graham Christensen
e2d0d04e58 mpg123: 1.22.2 -> 1.23.8 for CVE-2016-1000247
(cherry picked from commit 4693ed19d5)
2016-10-19 20:57:56 -04:00
Graham Christensen
5ae8917037 Merge pull request #19702 from DamienCassou/tracker-1.10.1
tracker: 1.8.0 -> 1.10.1 (16.09)
2016-10-19 17:32:09 -04:00
Damien Cassou
c16d57a18d tracker: 1.8.0 -> 1.10.1 2016-10-19 21:31:18 +02:00
Tim Steinbach
7b18287f9d Merge pull request #19648 from NeQuissimus/linux_4_7_8
linux_4_7: 4.7.7 -> 4.7.8
(cherry picked from commit dac481d999)
2016-10-19 14:49:22 -04:00
Tim Steinbach
776ebeba27 Merge pull request #19649 from NeQuissimus/linux_4_8_2
linux_4_8: 4.8.1 -> 4.8.2
(cherry picked from commit 84e4dcb34b)
2016-10-19 14:46:10 -04:00
Eelco Dolstra
657680180b linux: 4.4.24 -> 4.4.25
(cherry picked from commit 13f43c7ebc)
2016-10-19 20:04:34 +02:00
Graham Christensen
ab2e32a110 nsd: 4.1.12 -> 4.1.13 for CVE-2016-6173
Closes #19685

(cherry picked from commit c48fd00fae)
2016-10-19 09:21:00 -04:00
Derek Gonyeo
41a9f5943b rkt: libsystemd fix (#19658)
As of systemd 231, the LD_LIBRARY_PATH fix applied in the installPhase of rkt's
build was no longer valid, causing rkt to fail to work. This patch changes the
path to point to the new location of libsystemd, which is in ${systemd.lib}.
(cherry picked from commit a0295e21c5)
2016-10-18 20:01:39 +02:00
Thomas Tuegel
1f9d546197 Merge branch 'kipi-plugins' into release-16.09 2016-10-18 06:50:55 -05:00
Thomas Tuegel
4384e93224 kde5.spectacle: include kipi-plugins 2016-10-18 06:50:41 -05:00
Thomas Tuegel
79e18a5f93 kde5.gwenview: include kipi-plugins 2016-10-18 06:50:39 -05:00
Thomas Tuegel
d714d37bd9 kde5.kipi-plugins: init at 5.2.0 2016-10-18 06:50:39 -05:00
Thomas Tuegel
a69d050e5c kde5.gwenview: add optional libkdcraw and libkipi dependencies
(cherry picked from commit 42cc06c2df)
2016-10-18 06:50:19 -05:00
Joachim Fasting
4899e0b21c tor: 0.2.8.8 -> 0.2.8.9
Fixes a security hole that could be exploited for a denial of service
attack against a tor client, relay, hidden service, or authority [1].

[1]: https://trac.torproject.org/projects/tor/ticket/20384

(cherry picked from commit b3ffc580ec)
2016-10-18 07:02:40 -04:00
Graham Christensen
0cc0ad04de facetimehd: 2016-05-02 -> 2016-10-09
(cherry picked from commit 2525a3d682)
2016-10-17 17:12:18 -04:00
Thomas Tuegel
7d1c4a9d97 kde5.applications: 16.08.1 -> 16.08.2
The hashes are now generated by downloading from a mirror with a
known-good connection because the KDE rotation has several poor
mirrors. Packages are still built by downloading from the rotation.

(cherry picked from commit 85b4359109)
2016-10-17 09:35:56 -05:00
Thomas Tuegel
06f76d8acb kde5.kcoreaddons: fix HTML injection CVE-2016-7966
See https://www.kde.org/info/security/advisory-20161006-1.txt for more
information.

(cherry picked from commit 8b7f04c25a)
2016-10-17 09:33:43 -05:00
derchris
7e20430bea apcupsd: 3.14.13 -> 3.14.14
(cherry picked from commit 6786773389)
2016-10-17 15:53:53 +02:00
Graham Christensen
f48a7ca345 linuxPackages.nvidia_x11: Remove us prefix from mirror
At the time of the last upgrade, the new driver wasn't available on
anything but their US mirror. Pinning to the US mirror isn't
recommended or preferable, but I did it anyway to be able to get the
upgrade out.

(cherry picked from commit 634a098940)
2016-10-16 11:08:32 -04:00
Graham Christensen
fddaeb9dc6 broadcom-sta: Support linux-4.8
(cherry picked from commit 37bc2c0bbf)
2016-10-16 08:37:12 -04:00
Vladimír Čunát
1268d79328 Document NixOS release process #4442
(Cherry-picked from bd11d5377e and dadf6fc1d02.)
http://nixos.org/nixos/manual/ shows the released version.
2016-10-16 13:31:52 +02:00
Alexander Ried
260c05d2b1 audit module: only enable service if kernel has audit (#19569)
(cherry picked from commit d91365d714)
2016-10-15 16:04:39 +02:00
Graham Christensen
b8ede35d2e xen: 4.5.2 -> 4.5.5, drop old versions
(cherry picked from commit 4e89b237bc)
2016-10-14 19:37:57 -04:00
Franz Pletz
95f91e496b sakura: 3.2.0 -> 3.3.4
(cherry picked from commit 21cf4641bf)

This version fixes a crashing bug.  See https://github.com/NixOS/nixpkgs/issues/16584
2016-10-15 00:58:42 +02:00
Franz Pletz
ea8e6a01f3 gitlab: 8.12.1 -> 8.12.6
(cherry picked from commit 9df6c89a6e)
2016-10-14 17:35:40 +02:00
Peter Simons
76c561d7cb Merge pull request #19534 from LumiGuide/fix-cereal-on-ghcjs
cereal: fix build on ghcjs
(cherry picked from commit c031945a9f)
2016-10-14 16:54:14 +02:00
Vladimír Čunát
a44e363263 glib-tested: upstream fix for regex test after pcre bump 2016-10-14 13:29:01 +02:00
Graham Christensen
24dc3f2036 Merge remote-tracking branch 'origin/staging-16.09' into release-16.09 2016-10-14 07:06:53 -04:00
Franz Pletz
1904edc2df gimpPlugins.gap: disable format hardening
(cherry picked from commit 8435c1637b)
2016-10-13 20:38:40 -04:00
Franz Pletz
ae7ae8851d pythonmagick: 0.9.12 -> 0.9.14
(cherry picked from commit bb7d270d85)
2016-10-13 20:38:40 -04:00
Franz Pletz
7e46d179dc phpPackages.imagick: 3.4.0RC4 -> 3.4.3RC1
Drops imagick31 as the current version also supports PHP 5.x.

(cherry picked from commit 957a5bdcf3)
2016-10-13 20:38:40 -04:00
Graham Christensen
bc9af6d6ba imagemagick: 6.9.5-10 -> 6.9.6-2 for CVE-2016-7799, CVE-2016-7906
(cherry picked from commit 241cd0e5db)
2016-10-13 20:38:40 -04:00
Graham Christensen
a816afdf5d nodejs-6_x: 6.4.0 -> 6.8.0
(cherry picked from commit 66f2a01222)
2016-10-13 20:29:39 -04:00
Graham Christensen
80f88e6f76 nodejs: 4.4.6 -> 4.6.0
(cherry picked from commit f9df1b5de0)
2016-10-13 20:27:20 -04:00
Franz Pletz
9711bb0c8b graphicsmagick: apply patches to fix security issues
Fixes CVE-2016-7996, CVE-2016-7996, CVE-2016-7800.

cc #19481

(cherry picked from commit 4771ccd896)
2016-10-14 00:03:04 +02:00
Vladimír Čunát
42bd32e932 intltool: fix #19487 patch download
It's strange.  Maybe they prune the history.

(cherry picked from commit e4d3254101)
2016-10-13 21:55:51 +02:00
Wilhelm Schuster
3ee25d42c7 containers module: Add option to enable tunnel access
This adds the containers.<name>.enableTun option allowing containers to
access /dev/net/tun. This is required by openvpn, tinc, etc. in order to
work properly inside containers.

The new option builds on top of two generic options
containers.<name>.additionalCapabilities and
containers.<name>.allowedDevices which also can be used for example when
adding support for FUSE later down the road.

Backported to 16.09.
2016-10-13 21:47:41 +03:00
Vladimír Čunát
53612bb0f5 xorg: security fixes #19234
https://lists.x.org/archives/xorg-announce/2016-October/002720.html
(cherry picked from commit f755299443)
2016-10-13 11:41:50 -04:00
Eelco Dolstra
7cfc69fdbd Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-10-13 17:38:21 +02:00
Eelco Dolstra
261665cc4b libunistring: Do propagate libiconv on non-Linux
Fixes #19492.

(cherry picked from commit ed6006790a)
2016-10-13 17:38:07 +02:00
Eelco Dolstra
ff4035bca6 libunistring: Don't propagate glibc
On Linux, libiconv is an alias of glibc. Propagating glibc breaks
using GCC 6 as an override (not sure why). So let's not do that.

(cherry picked from commit dfc94720b8)
2016-10-13 17:38:01 +02:00
Graham Christensen
23f8a2d797 mujs: 2016-02-22 -> 2016-09-21
(cherry picked from commit 85c9f014ed)
2016-10-13 08:40:21 -04:00
Carles Pagès
6751f9464f kodi: link to libva-full
Fixes #19480 (vaapi support)

(cherry picked from commit d037837cf9)
2016-10-13 11:37:49 +02:00
Graham Christensen
529c0a48c5 nvidia-x11: 367.35 -> 367.57
(cherry picked from commit b98c0a668e)
2016-10-12 19:08:00 -04:00
Graham Christensen
dcc283c6b8 libdwarf: 20160613 -> 20161001 for CVE-2016-7510, CVE-2016-7410
(cherry picked from commit 8b23c5f332)
2016-10-12 09:01:40 -04:00
Joachim Fasting
90947ad911 grsecurity: 4.7.6-201609301918 -> 4.7.7-201610101902
(cherry picked from commit ce73a3ea0f)
2016-10-12 00:51:49 +02:00
Jascha Geerds
4d17d41619 tmuxp: 1.2.0 -> 1.2.2
(cherry picked from commit 30a3a09857)
2016-10-11 23:53:40 +02:00
Jascha Geerds
9748c2670a pythonPackages.libtmux: 0.5.0 -> 0.6.0
(cherry picked from commit 289c7cfc69)
2016-10-11 23:53:32 +02:00
Vladimír Čunát
858188bf9b Merge #18130: llvmPackages_38: 3.8.0 -> 3.8.1
(Equivalent master merge: 56e9bbfe65)
2016-10-11 22:31:58 +02:00
Vladimír Čunát
f2369131cb Merge #19297: openssh: apply patch to fix vulnerability
NEWKEYS null pointer dereference.

(cherry picked from commit 6898810ba6)
2016-10-11 20:10:07 +02:00
Vladimír Čunát
e1ff6e766d Merge #18861: add AMDGPU-PRO driver
(cherry picked from commit 9d1dfc9ed0)
It seems very unlikely to break anything.
2016-10-11 20:01:52 +02:00
Nikolay Amiantov
a5384e77b2 buildFHSEnv: link /etc/zoneinfo
This is needed because now /etc/localtime symlink points there.

(cherry picked from commit 7a73ecc18e)
2016-10-11 17:57:56 +03:00
Nikolay Amiantov
c2b0f628ba timezone service: link localtime to /etc/zoneinfo instead of tzinfo directly
This is needed so systemd can extract timezone from a symlink.

(cherry picked from commit 0762396d68)
2016-10-11 17:57:56 +03:00
taku0
354fd37289 flashplayer: 11.2.202.635 -> 11.2.202.637
(cherry picked from commit 5e6c3b9fde)
2016-10-11 16:10:03 +03:00
Eelco Dolstra
53b27007ae aggregateModules: Preserve kernel's modules.{builtin,order}
Fixes #19426.

(cherry picked from commit 88f10ad409)
2016-10-11 14:21:16 +03:00
Peter Simons
56d033ac1b ghcjs: revert "mark build as broken"
This reverts commit 8f07d4bd78. The build
failure blocking this package has been fixed in the meanwhile. Thanks to
@basvandijk for the heads-up.
2016-10-11 10:32:32 +02:00
Shea Levy
bcb23619ef uri: init at 2016-09-04
(cherry picked from commit ecb596b898)
2016-10-10 20:27:33 -04:00
Sander van der Burg
30159e9c33 lhasa: init at 0.3.1
(cherry picked from commit b44e79e240)
2016-10-10 20:50:07 +00:00
Sander van der Burg
4d9226a040 fs-uae: 2.4.3 -> 2.8.0
(cherry picked from commit 22a4d6bd54)
2016-10-10 20:41:45 +00:00
zimbatm
6a8318cb5c x11 module: fix display manager restart timeouts
It takes more than 1 second to boot the X server.
2016-10-10 21:30:43 +01:00
zimbatm
07b8442656 x11 module: don't restart the display manager indefinitely
If the display managers crashes continuously in loops it prevents the
user from switching to the console and try to fix things. Especially
when using the "auto" display manager it can happen quite easily.
2016-10-10 21:12:11 +01:00
Rodney Lorrimar
246c937599 pump.io: git-2015-11-09 -> 1.0.0
cherry-pick from 983f6819c7 because of security
issue.
2016-10-10 21:24:56 +02:00
Jörg Thalheim
a54d9e78f9 Merge pull request #19431 from RonnyPfannschmidt/enpass-16.09
enpass: init at 5.3.0 - backport
2016-10-10 20:51:48 +02:00
Ronny Pfannschmidt
87ad3d18cd enpass: init at 5.3.0
(cherry picked from commit 98895f5b67)
2016-10-10 20:21:09 +02:00
Thomas Tuegel
6cf8ecad7a dropbox: 11.4.21 -> 11.4.22
(cherry picked from commit fef0a223d9)
2016-10-10 09:24:05 -05:00
Kamil Chmielewski
0c022c45df vagrant: 1.8.5 -> 1.8.6
(cherry picked from commit 4f6870bb4b)
2016-10-10 12:02:05 +02:00
Aneesh Agrawal
f3d9eb8467 vagrant: make patches a list (#18364)
This has more correct semantics, allows for multiple patches, and makes
using overrideDerivation to add/remove patches work as expected.
(cherry picked from commit b1c83e8928)
2016-10-10 12:01:59 +02:00
Domen Kožar
704713d916 vpnc: 1.2.2 -> 1.2.4 2016-10-09 15:42:44 +02:00
Domen Kožar
28ae388cb3 pptp: 1.2.2 -> 1.2.4 2016-10-09 15:42:14 +02:00
Domen Kožar
74abb608f0 openconnect: noop 2016-10-09 15:41:59 +02:00
Domen Kožar
457b895fc3 NetworkManager: 1.2.2 -> 1.2.4 2016-10-09 15:41:48 +02:00
Domen Kožar
2d2b555d47 network-manager-applet: 1.2.2 -> 1.2.4 2016-10-09 15:41:31 +02:00
Domen Kožar
13b3337490 ModemManager: 1.4.6 -> 1.4.16 2016-10-09 15:41:13 +02:00
Nathan Bijnens
c1af3a04a1 Fix #19382 set ownership of /var/empty to root:root
(cherry picked from commit 4ed85933db)

Signed-off-by: Domen Kožar <domen@dev.si>
2016-10-09 12:07:52 +02:00
Bjørn Forsman
2492f269c9 shotcut: 16.08 -> 16.10
(cherry picked from commit b48dafee8d)
2016-10-08 18:26:45 +02:00
Tim Steinbach
d7d692da9e linux: 4.4.23 -> 4.4.24 (#19346)
(cherry picked from commit a699eb4798)
2016-10-08 14:55:47 +02:00
Tim Steinbach
d4fa12d710 linux: 4.7.6 -> 4.7.7 (#19345)
(cherry picked from commit 9481edec56)
2016-10-08 14:55:46 +02:00
Tim Steinbach
fe6d671233 linux: 4.8.0 -> 4.8.1 (#19344)
(cherry picked from commit 07e67b33af)
2016-10-08 14:55:46 +02:00
Graham Christensen
2108cd8e68 cbfstool: Disable sign-compare error in compile (#19130) 2016-10-08 14:50:28 +02:00
Graham Christensen
19a0b4c84d libreswan: ignore sign-compare errors (#19129) 2016-10-08 14:50:19 +02:00
Marco Maggesi
829580e88a Revert "Fix derivation for linux kernel 3.14."
In the end, it is too dangerous to have an unmaintained kernel in
nixpkgs.  Revert the revert.

This reverts commit 51ca699309.
2016-10-07 23:29:45 +02:00
Frederik Rietdijk
16ca09e887 pythonPackages.pip: set priority, fixes collision #19327
(cherry picked from commit edebd5150e)
2016-10-07 23:13:53 +02:00
Shea Levy
2c3b10ea65 nix-buffer support improvements.
Use inherit-local, add per-package elisp hooks.

(cherry picked from commit eca0f17ad2)
2016-10-07 10:52:48 -04:00
Shea Levy
e7634ecdc5 melpa: Fix nix-buffer and inherit-local, add stable
Only cherry-picked the stable additions

(cherry picked from commit 38f074435a)
2016-10-07 10:52:28 -04:00
Marco Maggesi
51ca699309 Fix derivation for linux kernel 3.14. 2016-10-07 15:51:06 +02:00
Marco Maggesi
0601851a66 Revert "linux*: remove 3.14, as it's no longer maintained"
This is the simplest way to reenable the use of BLCR
(which at present requires linux version >3.12 <3.18)
until we find a better solution.

This reverts commit 6a9e765e27.
2016-10-07 15:31:06 +02:00
Bjørn Forsman
baaac05adb gmvault: 1.8.1-beta -> 1.9.1
Adds support for OAuth2 (among other things).

(cherry picked from commit 3f7d2f72e7)

[Bjørn: Small conflict due to commit 3ba16c82 ("Do not use top-level
buildPythonPackage or buildPythonApplication"), fixed by incorporating
the changes from that commit.]
2016-10-07 00:05:37 +02:00
Bjørn Forsman
c1a05cb786 pythonPackages.IMAPClient: 0.11 -> 0.13
Needed for future update of gmvault.

(cherry picked from commit 777db492b1)
2016-10-06 23:59:52 +02:00
Graham Christensen
60957eb034 Merge remote-tracking branch 'origin/staging-16.09' into release-16.09 2016-10-06 10:41:34 -04:00
Frederik Rietdijk
0b9b67473d pythonPackages.twine: init at 1.8.1
(cherry picked from commit c6e21c90ea)
2016-10-06 13:42:41 +02:00
Moritz Ulrich
103b012d2d services.kippo: Add missing '}'
(cherry picked from commit c475234827)
2016-10-06 13:42:18 +02:00
Frederik Rietdijk
5a793bce97 Octoprint: make sockjs-tornado and tornado_4_0_1 private
Tornado 4.0.1 is old and insecure, however, a package still depends on
it. We now move the package from the main Python package set into the
expression of the package that needs it.

(cherry picked from commit 354c588cf2)
2016-10-06 13:40:42 +02:00
Frederik Rietdijk
234c7b526c Kippo: move pythonPackages.twisted_11 to kippo expression
(cherry picked from commit 6f836eb0d4)
2016-10-06 13:40:33 +02:00
Dmitry Kalinkin
45b2a6d882 dejavu-fonts: enable on OSX
(cherry picked from commit 780d9d6481)
2016-10-06 13:07:38 +02:00
Jörg Thalheim
477dbd62bd rtkit: fix missing fetchpatch 2016-10-06 12:18:38 +02:00
Theodore Witkamp
0425be063f haskellPackage.wai-cors: Disable cabal check
External program is used in tests.

(cherry picked from commit d4566400c9)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-10-06 11:46:21 +02:00
Graham Christensen
5b5f31e92d Merge remote-tracking branch 'origin/release-16.09' into staging-16.09 2016-10-05 21:36:14 -04:00
Graham Christensen
e181be7825 Merge pull request #19274 from Mic92/bash
bash: fix CVE-2016-7543 in 16.09
2016-10-05 21:22:37 -04:00
Graham Christensen
3bee7844eb chromium: 53.0.2785.116 -> 53.0.2785.143 for CVEs
https://lwn.net/Alerts/702456/
(cherry picked from commit 66d622fbd0)
2016-10-05 21:12:19 -04:00
Graham Christensen
988d77d6c3 openjpeg: 2.1.1 -> 2.1.2 for CVE-2016-7163
(cherry picked from commit db2e9b274c)
2016-10-05 20:42:17 -04:00
Graham Christensen
3ea14eebc8 c-ares: 1.10.0 -> 1.12.0 for CVE-2016-5180
(cherry picked from commit 387fc04475)
2016-10-05 20:40:51 -04:00
Jörg Thalheim
f87c1cdba2 bash: fix CVE-2016-7543
patch level 47 + 48 brings security fixes
2016-10-06 00:29:23 +02:00
Jörg Thalheim
dcb316431d rtkit: *security* Pass uid of caller to polkit
Otherwise, we force polkit to look up the uid itself in /proc, which is racy if
they execve() a setuid binary.

https://github.com/NixOS/nixpkgs/issues/19265
(cherry picked from commit c684eb756a)
2016-10-06 00:13:56 +02:00
Peter Simons
d839cac8b2 haskell-attoparsec: fix build with GHC 7.10.x
Closes https://github.com/NixOS/nixpkgs/issues/19270.

(cherry picked from commit e9d7f0d945)
2016-10-05 21:07:56 +02:00
Kirill Boltaev
079f3ea032 sddm: wrap xserver in systemd-cat to make logs appear in the journal
(cherry picked from commit 1978d00458)
2016-10-05 20:19:35 +03:00
Peter Simons
b2845139a1 callHackage: ensure we're always using the latest available Hackage database
(cherry picked from commit 2a2a3c796a)
2016-10-05 19:06:57 +02:00
Bjørn Forsman
370ba76344 gpshell: wrap with gppcscconnectionplugin
Fixes this:

  $ echo establish_context | gpshell
  establish_context
  establish_context failed with error 0xFFFFFFFFFFFFFFFF (libgppcscconnectionplugin.so.1.0.1: cannot open shared object file: No such file or directory)

Have to use LD_LIBRARY_PATH instead of patchelf, because it's
libglobalplatform.so.6 (from globalplatform package) that needs
libgppcscconnectionplugin.so.1.0.1, not gpshell itself. And because
RPATH doesn't "propagate" from one ELF to another, the library isn't
found. One can argue that globalplatform should depend on
gppcscconnectionplugin, but it touches on the still-unsolved "plugin"
issue in Nix packaging, so leaving that alone.

(cherry picked from commit b0d77698bf)
2016-10-05 17:10:52 +02:00
Lancelot SIX
43e76a7396 pythonPackages.tornado: 4.4.1 -> 4.4.2
Release details:
http://www.tornadoweb.org/en/stable/releases/v4.4.2.html

(cherry picked from commit e380a84ad9)
2016-10-05 17:03:55 +02:00
Lancelot SIX
1abc6dc1f3 pythonPackages.django_1_10: 1.10.1 -> 1.10.2 (#19193)
This is a bugfix release.

See https://docs.djangoproject.com/en/1.10/releases/1.10.2/
(cherry picked from commit 74e52576e0)
2016-10-05 16:51:34 +02:00
Franz Pletz
2bed2b568e libass: 0.13.2 -> 0.13.4 (security)
Fixes:

 * CVE-2016-7969
 * CVE-2016-7970
 * CVE-2016-7972

(cherry picked from commit 7e9a2c345b)
2016-10-05 13:13:31 +02:00
Lluís Batlle i Rossell
a65c90ba43 Fixing irssi-otr after change of irssi ABI.
I pick the change from this pull request:
https://github.com/cryptodotis/irssi-otr/pull/60/

(cherry picked from commit d96c5e1fd6)
2016-10-05 10:48:37 +02:00
Ricardo M. Correia
4e14fd5d5a nixos.acme: make timer persistent
This makes sure that if the system was powered off when the timer was
supposed to trigger, it will run the next time the system boots up.

(cherry picked from commit 1623476904)

Reason: Unobtrusive patch that may fix broken/outdated TLS
certificates, depending on your powered-on/powered-off patterns.
2016-10-04 18:04:19 +02:00
Shea Levy
d260758a1e Revert "Revert "Linux 4.8""
Now featuring @aszlig's modinst_arg_list_too_long patch.

This reverts commit 43bedb970d.

Fixes #19213

(cherry picked from commit e54313d183)
2016-10-04 10:15:41 -04:00
Jascha Geerds
db127c0aba hipchat: 4.26.0.1657 -> 4.27.0.1658
(cherry picked from commit 0e540d2113)
2016-10-04 15:20:10 +02:00
Peter Simons
0dc31e84ff hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.0.2-10-ge54f0c6 from Hackage revision
7be39e8428.
2016-10-04 08:14:27 +02:00
Peter Simons
5d8015bf3b configuration-hackage2nix.yaml: update to LTS 7.2 2016-10-04 08:04:01 +02:00
Peter Simons
3f2cbd2a26 configuration-hackage2nix.yaml: disable broken Haskell builds 2016-10-04 08:00:56 +02:00
Peter Simons
8f07d4bd78 ghcjs: mark build as broken 2016-10-04 07:54:57 +02:00
Peter Simons
dea116fa10 haskell-store: disable spuriously failing test suite
(cherry picked from commit 8b5c1190d6)
2016-10-04 07:38:48 +02:00
Shea Levy
bb961e1f9d Revert "Linux 4.8"
This reverts commit e4958d54b1.

(cherry picked from commit 43bedb970d)
2016-10-03 22:05:48 -04:00
Vladimír Čunát
8d53a156d5 Merge branch 'release-16.09' into staging-16.09 2016-10-03 23:11:49 +02:00
Jörg Thalheim
dd656bca16 Merge #19175: util-linux: workaround CVE-2016-2779
(picked from commits 45f64a37c9 and 1525568c74)
2016-10-03 23:08:04 +02:00
Eelco Dolstra
c89c1ba08b ec2-amis.nix: Create a "latest" attribute for NixOps
(cherry picked from commit 4b89d47887)
2016-10-03 18:29:50 +02:00
Eelco Dolstra
31bb717fa4 Add NixOS 16.09.666.3738950 AMIs
(cherry picked from commit 39b75f3b9f)
2016-10-03 18:10:45 +02:00
Shea Levy
d8d270d6cc Linux 4.8
(cherry picked from commit e4958d54b1)
2016-10-03 08:48:40 -04:00
Bjørn Forsman
c8553698fb openshot-qt: 2.0.7 -> 2.1.0
Also update libopenshot (0.1.1 -> 0.1.2) and libopenshot-audio (0.1.1 ->
0.1.2). Both  libraries seem to be somewhat version coupled with
openshot (all three projects had a release at the same time).

Openshot now depends on ZMQ.

Test notes: the application runs, but I managed to crash it after doing
this:

* Import pictures and video
* Add two pictures to the timeline (next to each other)
* Drag the 2nd picture partly over over the first
  (creates an effect). App dies.

The last output from the app is:

  timeline_webview:INFO addTransition...
  Unhandled Python exception
  Aborted

The same crash happens with v2.0.7 though.

(cherry picked from commit 3e6ce75b8f)
2016-10-03 08:41:55 +02:00
Chris Martin
edd8a530d1 czmqpp: init at 1.2.0
(cherry picked from commit 295bb3adf7)
2016-10-03 08:41:55 +02:00
Peter Simons
37389502b6 haskell-stack: fix build of the new version 2016-10-02 23:40:19 +02:00
obadz
a3af3ac407 remmina: 1.0.0 -> 1.2.0-rcgit.15
Fixes build post FreeRDP upgrade (5abb36b)

(cherry picked from commit 7a8d300823)
2016-10-02 19:40:13 +01:00
Jon Banafato
37d17e9dd0 gnome-maps: add webkitgtk to buildInputs
Per #17143 on GitHub, `gnome-maps` currently fails due to missing
Webkit2. Adding `webkitgtk` to `buildInputs` fixes the issue.

(cherry picked from commit ecd41c19b8)
2016-10-02 20:15:40 +02:00
Joachim Fasting
3dc0897331 grsecurity: 4.7.5-201609261522 -> 4.7.6-201609301918
(cherry picked from commit 2ec9a1a955)
2016-10-02 19:49:38 +02:00
Joachim Fasting
924c22e34a linux_4_7: 4.7.5 -> 4.7.6
(cherry picked from commit 22108b7a10)
2016-10-02 19:49:24 +02:00
Peter Hoeg
cb272cb66a syncthing: 0.14.6 -> 0.14.7
(cherry picked from commit 0230d923f1)

A bugfix release, recommended for all users by upstream.  Of note is a
deadlock fix.
2016-10-02 19:47:47 +02:00
Peter Hoeg
39ed101beb syncthing: 0.14.5 -> 0.14.6
(cherry picked from commit 6c6ebf5d33)

A bugfix release, recommended for all users by upstream.  In
particular, it resolves an issue that potentially could result in
unwanted data loss.
2016-10-02 19:46:31 +02:00
Vladimír Čunát
9ee0d65cc9 flashplayer: preferLocalBuild = true;
The builder does almost nothing, and I hate to have to copy hundreds of
megabytes to a builds slave because of that.

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

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

This fixes the runInMachine NixOS test.

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

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

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

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

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

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

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

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

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

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

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

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

Fixes #19029.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

It fixes CVE-2016-7401.

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

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

It fixes CVE-2016-7401.

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

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

Remove broken flag. #19040

cc #19009

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

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

- Pass -D_FORCE_INLINES to work around

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

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

This fixes OpenSubdiv and Blender.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Other distributions seem to have switched to Unstable instead.

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

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

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

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

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

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

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

cc #18856

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

Fedora is shipping the rc1 as well.

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

cc #18856.

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

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

PIC is enabled by default by our hardening flags.

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

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

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

b46c26a9e773b2c620acd2f96d69408f14a279aefaedfefed002ecf898a1ecf2

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

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

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

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

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

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

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

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

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

cc #18916

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

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

cc #18856

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

cc #18856

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

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

cc #18856

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

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

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

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

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

cc #18856

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

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

joachifm added a rename for backwards compat.

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

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

Fixes #18891.

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

cc #18856

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

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

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

patch also taken from there

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

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

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

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

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

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

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

* cadvisor module: increase TimeoutStartSec

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

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

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

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

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

    invalid multibyte char (US-ASCII)

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

(cherry picked from commit 62df82efcf)
2016-09-20 18:23:49 +01:00
Robin Gloster
fdec46d115 gitlab module: enable postgres pg_trgm extension
(cherry picked from commit 0fa64b718f)
2016-09-20 17:45:54 +02:00
rushmorem
18e12537d0 cockroachdb: init at beta-20160915
(cherry picked from commit dc8da48032)
2016-09-20 15:47:24 +02:00
Domen Kožar
d316ec2375 Merge pull request #18786 from exi/amdapp-sdk-full-fix
amdapp-sdk: fix build for gcc 5
2016-09-20 14:11:35 +02:00
Reno Reckling
1dcd93c1de amdapp-sdk: fix build for gcc 5 2016-09-20 14:50:22 +03:00
aszlig
4d076b3681 nixos/networking: Use type lines for localCommands
Using types.str doesn't work if you want to mkBefore/mkAfter across
different module definitions, because it only allows for one definition
for the same priority.

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

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 97801380b0)
2016-09-20 13:33:44 +02:00
rushmorem
c590cd7d31 glock: init at 20160816
(cherry picked from commit 391ea6f748)
2016-09-20 11:12:49 +02:00
Scott R. Parish
95879e204f rngd: update modalias to match cpu type
It looks like the cpu type part of modalias might have changed, my
systems (4.4.20 and 4.7.2) show something like the following:

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

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

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

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

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

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

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

(cherry picked from commit 1c9ac8aabc)

grub: clarify efiInstallAsRemovable docstring

(cherry picked from commit eda4f5d409)

grub: fix manual build

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

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

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

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

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

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

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

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

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

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

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

(cherry picked from commit 914e0e594c)

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

(Fixes #18454)

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

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

In particular, note that
- logging format has been reworked so scripts that consume opensmtpd
  logs may need updating
- dhparams option has been removed
(cherry picked from commit 2db487e6bf)
2016-09-15 16:35:46 +01:00
Franz Pletz
ad6255e273 php70: 7.0.10 -> 7.0.11 (security)
See https://secure.php.net/ChangeLog-7.php#7.0.11.

(cherry picked from commit a32281639e)
2016-09-15 13:58:07 +02:00
Herwig Hochleitner
a320b84bf4 androidenv: update packages
build-tools      25.1.7 -> 25.2.2
sdk-tools        23.0.1 -> 24.0.2
platform-tools   24 -> 24.0.2

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

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

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

* libgeotiff: update url

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[Bjørn: change commit message.]

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

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

    result/bin/txt2man -h

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

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

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

    nix-build -A txt2man
    result/txt2man

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

From the manpage of systemd-nspawn(1):

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

Testing this in a shell turns out:

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

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

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

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

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

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

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

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

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

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

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

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

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

Some more discussion on this:
a7a08188bf
bfe46a653b

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

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

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

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

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

(cherry picked from commit 39e197ab1c)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:22:09 +02:00
Eelco Dolstra
f0aa5d4dfa nix: 1.11.3 -> 1.11.4
(cherry picked from commit f2ddf2a9be)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:21:15 +02:00
Eelco Dolstra
0f79004d55 nixos-rebuild: Move the Nix fallback store paths into a separate file
(cherry picked from commit 1fef99942e)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:21:10 +02:00
Michael Raskin
3b65b84c4c baresip: fix build by manually forcing feature flags for fresh glibc time.h
(cherry picked from commit 71fe391ac1)
Signed-off-by: Domen Kožar <domen@dev.si>
2016-09-07 10:20:25 +02:00
Franz Pletz
8f22e43985 charybdis: 3.5.1 -> 3.5.3 (security)
Fixes CVE-2016-7143 (certificate fingerprint spoofing through crafted
SASL messages).

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

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

(cherry picked from commit 5929399527)
2016-09-07 07:09:34 +02:00
Franz Pletz
2e89d5cae1 chromium: update to latest channel releases (security)
Fixes the following security problems:

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

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

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

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

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

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

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

Currently only modifies $PATH.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Also cleanup build inputs while we're at it.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(cherry picked from commit d95a29a01a)
2016-09-02 19:39:23 +01:00
obadz
68670cbf27 perlPackages.DBDSQLite: placate DBIxClass test failure
… by using an older version of SQLite.

Mentioned in #18209 and #18083

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

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

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

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

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

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

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

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

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

(cherry picked from commit 49d59ce0ad)
2016-09-02 05:33:14 -04:00
Nikolay Amiantov
2ea934f27e mjpg-streamer service: restart on failure
(cherry picked from commit 608ee1c7b3)
2016-09-02 11:45:20 +03:00
Sander van der Burg
0b27b17383 wring: use node2nix generated package
(cherry picked from commit 8bedff0e92)
2016-09-01 20:51:23 +00:00
Domen Kožar
668cd2be12 Merge branch 'staging' into release-16.09 2016-09-01 21:32:34 +02:00
Domen Kožar
d6b08acd1c Set channel and version to 16.09 2016-09-01 21:30:49 +02:00
38588 changed files with 843935 additions and 3771850 deletions

View File

@@ -1,103 +0,0 @@
# EditorConfig configuration for nixpkgs
# https://EditorConfig.org
# Top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file, utf-8 charset
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
# see https://nixos.org/nixpkgs/manual/#chap-conventions
# Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
indent_style = space
# Match docbook files, set indent width of one
[*.xml]
indent_size = 1
# Match json/lockfiles/markdown/nix/ruby files, set indent width of two
[*.{json,lock,md,nix,rb}]
indent_size = 2
# Match perl/python/shell scripts, set indent width of four
[*.{pl,pm,py,sh}]
indent_size = 4
# Match gemfiles, set indent to spaces with width of two
[Gemfile]
indent_size = 2
indent_style = space
# Disable file types or individual files
# some of these files may be auto-generated and/or require significant changes
[*.{c,h}]
insert_final_newline = unset
trim_trailing_whitespace = unset
[*.{asc,key,ovpn}]
insert_final_newline = unset
end_of_line = unset
trim_trailing_whitespace = unset
[*.lock]
indent_size = unset
# Although Markdown/CommonMark allows using two trailing spaces to denote
# a hard line break, we do not use that feature in nixpkgs since
# it forces the surrounding paragraph to become a <literallayout> which
# does not wrap reasonably.
# Instead of a hard line break, start a new paragraph by inserting a blank line.
[*.md]
trim_trailing_whitespace = true
# binaries
[*.nib]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
charset = unset
[eggs.nix]
trim_trailing_whitespace = unset
[nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
trim_trailing_whitespace = unset
[pkgs/build-support/dotnetenv/Wrapper/**]
end_of_line = unset
indent_style = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
[pkgs/development/compilers/elm/registry.dat]
end_of_line = unset
insert_final_newline = unset
[pkgs/development/haskell-modules/hackage-packages.nix]
indent_style = unset
trim_trailing_whitespace = unset
[pkgs/servers/dict/wordnet_structures.py]
trim_trailing_whitespace = unset
[pkgs/tools/misc/timidity/timidity.cfg]
trim_trailing_whitespace = unset
[pkgs/tools/virtualization/ovftool/*.ova]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
charset = unset

View File

@@ -1,41 +0,0 @@
# This file contains a list of commits that are not likely what you
# are looking for in a blame, such as mass reformatting or renaming.
# You can set this file as a default ignore file for blame by running
# the following command.
#
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
#
# To temporarily not use this file add
# --ignore-revs-file=""
# to your blame command.
#
# The ignoreRevsFile can't be set globally due to blame failing if the file isn't present.
# To not have to set the option in every repository it is needed in,
# save the following script in your path with the name "git-bblame"
# now you can run
# $ git bblame $FILE
# to use the .git-blame-ignore-revs file if it is present.
#
# #!/usr/bin/env bash
# repo_root=$(git rev-parse --show-toplevel)
# if [[ -e $repo_root/.git-blame-ignore-revs ]]; then
# git blame --ignore-revs-file="$repo_root/.git-blame-ignore-revs" $@
# else
# git blame $@
# fi
# nixos/modules/rename: Sort alphabetically
1f71224fe86605ef4cd23ed327b3da7882dad382
# manual: fix typos
feddd5e7f8c6f8167b48a077fa2a5394dc008999
# nixos: fix module paths in rename.nix
d08ede042b74b8199dc748323768227b88efcf7c
# fix indentation in mk-python-derivation.nix
d1c1a0c656ccd8bd3b25d3c4287f2d075faf3cf3
# fix indentation in meteor default.nix
a37a6de881ec4c6708e6b88fd16256bbc7f26bbd

18
.gitattributes vendored
View File

@@ -1,18 +0,0 @@
**/deps.nix linguist-generated
**/deps.json linguist-generated
**/deps.toml lingust-generated
**/node-packages.nix linguist-generated
pkgs/applications/editors/emacs-modes/*-generated.nix linguist-generated
pkgs/development/r-modules/*-packages.nix linguist-generated
pkgs/development/haskell-modules/hackage-packages.nix linguist-generated
pkgs/development/beam-modules/hex-packages.nix linguist-generated
doc/** linguist-documentation
doc/default.nix linguist-documentation=false
nixos/doc/** linguist-documentation
nixos/doc/default.nix linguist-documentation=false
nixos/modules/module-list.nix merge=union
# pkgs/top-level/all-packages.nix merge=union

320
.github/CODEOWNERS vendored
View File

@@ -1,320 +0,0 @@
# CODEOWNERS file
#
# This file is used to describe who owns what in this repository. This file does not
# replace `meta.maintainers` but is instead used for other things than derivations
# and modules, like documentation, package sets, and other assets.
#
# For documentation on this file, see https://help.github.com/articles/about-codeowners/
# Mentioned users will get code review requests.
#
# IMPORTANT NOTE: in order to actually get pinged, commit access is required.
# This also holds true for GitHub teams. Since almost none of our teams have write
# permissions, you need to list all members of the team with commit access individually.
# This file
/.github/CODEOWNERS @edolstra
# GitHub actions
/.github/workflows @NixOS/Security @Mic92 @zowoq
/.github/workflows/merge-staging @FRidh
# EditorConfig
/.editorconfig @Mic92 @zowoq
# Libraries
/lib @edolstra @nbp @infinisil
/lib/systems @alyssais @nbp @ericson2314 @matthewbauer
/lib/generators.nix @edolstra @nbp @Profpatsch
/lib/cli.nix @edolstra @nbp @Profpatsch
/lib/debug.nix @edolstra @nbp @Profpatsch
/lib/asserts.nix @edolstra @nbp @Profpatsch
/lib/path.* @infinisil @fricklerhandwerk
# Nixpkgs Internals
/default.nix @nbp
/pkgs/top-level/default.nix @nbp @Ericson2314
/pkgs/top-level/impure.nix @nbp @Ericson2314
/pkgs/top-level/stage.nix @nbp @Ericson2314 @matthewbauer
/pkgs/top-level/splice.nix @Ericson2314 @matthewbauer
/pkgs/top-level/release-cross.nix @Ericson2314 @matthewbauer
/pkgs/stdenv/generic @Ericson2314 @matthewbauer
/pkgs/stdenv/generic/check-meta.nix @Ericson2314 @matthewbauer @piegamesde
/pkgs/stdenv/cross @Ericson2314 @matthewbauer
/pkgs/build-support/cc-wrapper @Ericson2314
/pkgs/build-support/bintools-wrapper @Ericson2314
/pkgs/build-support/setup-hooks @Ericson2314
/pkgs/build-support/setup-hooks/auto-patchelf.sh @layus
/pkgs/build-support/setup-hooks/auto-patchelf.py @layus
/pkgs/pkgs-lib @infinisil
# Nixpkgs build-support
/pkgs/build-support/writers @lassulus @Profpatsch
# Nixpkgs make-disk-image
/doc/builders/images/makediskimage.section.md @raitobezarius
/nixos/lib/make-disk-image.nix @raitobezarius
# Nixpkgs documentation
/maintainers/scripts/db-to-md.sh @jtojnar @ryantm
/maintainers/scripts/doc @jtojnar @ryantm
/doc/* @fricklerhandwerk
/doc/build-aux/pandoc-filters @jtojnar
/doc/builders/trivial-builders.chapter.md @fricklerhandwerk
/doc/contributing/ @fricklerhandwerk
/doc/contributing/contributing-to-documentation.chapter.md @jtojnar @fricklerhandwerk
/doc/stdenv @fricklerhandwerk
/doc/using @fricklerhandwerk
# NixOS Internals
/nixos/default.nix @nbp @infinisil
/nixos/lib/from-env.nix @nbp @infinisil
/nixos/lib/eval-config.nix @nbp @infinisil
/nixos/doc/manual/configuration/abstractions.xml @nbp
/nixos/doc/manual/configuration/config-file.xml @nbp
/nixos/doc/manual/configuration/config-syntax.xml @nbp
/nixos/doc/manual/configuration/modularity.xml @nbp
/nixos/doc/manual/development/assertions.xml @nbp
/nixos/doc/manual/development/meta-attributes.xml @nbp
/nixos/doc/manual/development/option-declarations.xml @nbp
/nixos/doc/manual/development/option-def.xml @nbp
/nixos/doc/manual/development/option-types.xml @nbp
/nixos/doc/manual/development/replace-modules.xml @nbp
/nixos/doc/manual/development/writing-modules.xml @nbp
/nixos/doc/manual/man-nixos-option.xml @nbp
/nixos/modules/installer/tools/nixos-option.sh @nbp
/nixos/modules/system @dasJ
/nixos/modules/system/activation/bootspec.nix @grahamc @cole-h @raitobezarius
/nixos/modules/system/activation/bootspec.cue @grahamc @cole-h @raitobezarius
# NixOS integration test driver
/nixos/lib/test-driver @tfc
# NixOS QEMU virtualisation
/nixos/virtualisation/qemu-vm.nix @raitobezarius
# Systemd
/nixos/modules/system/boot/systemd.nix @NixOS/systemd
/nixos/modules/system/boot/systemd @NixOS/systemd
/nixos/lib/systemd-*.nix @NixOS/systemd
/pkgs/os-specific/linux/systemd @NixOS/systemd
# Updaters
## update.nix
/maintainers/scripts/update.nix @jtojnar
/maintainers/scripts/update.py @jtojnar
## common-updater-scripts
/pkgs/common-updater/scripts/update-source-version @jtojnar
# Python-related code and docs
/maintainers/scripts/update-python-libraries @FRidh
/pkgs/development/interpreters/python @FRidh
/doc/languages-frameworks/python.section.md @FRidh @mweinelt
/pkgs/development/tools/poetry2nix @adisbladis
/pkgs/development/interpreters/python/hooks @FRidh @jonringer
# Haskell
/doc/languages-frameworks/haskell.section.md @cdepillabout @sternenseemann @maralorn
/maintainers/scripts/haskell @cdepillabout @sternenseemann @maralorn
/pkgs/development/compilers/ghc @cdepillabout @sternenseemann @maralorn
/pkgs/development/haskell-modules @cdepillabout @sternenseemann @maralorn
/pkgs/test/haskell @cdepillabout @sternenseemann @maralorn
/pkgs/top-level/release-haskell.nix @cdepillabout @sternenseemann @maralorn
/pkgs/top-level/haskell-packages.nix @cdepillabout @sternenseemann @maralorn
# Perl
/pkgs/development/interpreters/perl @stigtsp @zakame @dasJ
/pkgs/top-level/perl-packages.nix @stigtsp @zakame @dasJ
/pkgs/development/perl-modules @stigtsp @zakame @dasJ
# R
/pkgs/applications/science/math/R @jbedo
/pkgs/development/r-modules @jbedo
# Ruby
/pkgs/development/interpreters/ruby @marsam
/pkgs/development/ruby-modules @marsam
# Rust
/pkgs/development/compilers/rust @Mic92 @zowoq @winterqt @figsoda
/pkgs/build-support/rust @zowoq @winterqt @figsoda
/doc/languages-frameworks/rust.section.md @zowoq @winterqt @figsoda
# C compilers
/pkgs/development/compilers/gcc @matthewbauer
/pkgs/development/compilers/llvm @matthewbauer @RaitoBezarius
# Compatibility stuff
/pkgs/top-level/unix-tools.nix @matthewbauer
/pkgs/development/tools/xcbuild @matthewbauer
# Audio
/nixos/modules/services/audio/botamusique.nix @mweinelt
/nixos/modules/services/audio/snapserver.nix @mweinelt
/nixos/tests/modules/services/audio/botamusique.nix @mweinelt
/nixos/tests/snapcast.nix @mweinelt
# Browsers
/pkgs/applications/networking/browsers/firefox @mweinelt
# Certificate Authorities
pkgs/data/misc/cacert/ @ajs124 @lukegb @mweinelt
pkgs/development/libraries/nss/ @ajs124 @lukegb @mweinelt
pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
# Jetbrains
/pkgs/applications/editors/jetbrains @edwtjo
# Licenses
/lib/licenses.nix @alyssais
# Qt / KDE
/pkgs/applications/kde @ttuegel
/pkgs/desktops/plasma-5 @ttuegel
/pkgs/development/libraries/kde-frameworks @ttuegel
/pkgs/development/libraries/qt-5 @ttuegel
# PostgreSQL and related stuff
/pkgs/servers/sql/postgresql @thoughtpolice @marsam
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
/nixos/tests/postgresql.nix @thoughtpolice
# Hardened profile & related modules
/nixos/modules/profiles/hardened.nix @joachifm
/nixos/modules/security/hidepid.nix @joachifm
/nixos/modules/security/lock-kernel-modules.nix @joachifm
/nixos/modules/security/misc.nix @joachifm
/nixos/tests/hardened.nix @joachifm
/pkgs/os-specific/linux/kernel/hardened-config.nix @joachifm
# Home Automation
/nixos/modules/services/misc/home-assistant.nix @mweinelt
/nixos/modules/services/misc/zigbee2mqtt.nix @mweinelt
/nixos/tests/home-assistant.nix @mweinelt
/nixos/tests/zigbee2mqtt.nix @mweinelt
/pkgs/servers/home-assistant @mweinelt
/pkgs/tools/misc/esphome @mweinelt
# Network Time Daemons
/pkgs/tools/networking/chrony @thoughtpolice
/pkgs/tools/networking/ntp @thoughtpolice
/pkgs/tools/networking/openntpd @thoughtpolice
/nixos/modules/services/networking/ntp @thoughtpolice
# Network
/pkgs/tools/networking/kea/default.nix @mweinelt
/pkgs/tools/networking/babeld/default.nix @mweinelt
/nixos/modules/services/networking/babeld.nix @mweinelt
/nixos/modules/services/networking/kea.nix @mweinelt
/nixos/modules/services/networking/knot.nix @mweinelt
/nixos/modules/services/monitoring/prometheus/exporters/kea.nix @mweinelt
/nixos/tests/babeld.nix @mweinelt
/nixos/tests/kea.nix @mweinelt
/nixos/tests/knot.nix @mweinelt
# Dhall
/pkgs/development/dhall-modules @Gabriella439 @Profpatsch @ehmry
/pkgs/development/interpreters/dhall @Gabriella439 @Profpatsch @ehmry
# Idris
/pkgs/development/idris-modules @Infinisil
# Bazel
/pkgs/development/tools/build-managers/bazel @Profpatsch
# NixOS modules for e-mail and dns services
/nixos/modules/services/mail/mailman.nix @peti
/nixos/modules/services/mail/postfix.nix @peti
/nixos/modules/services/networking/bind.nix @peti
/nixos/modules/services/mail/rspamd.nix @peti
# Emacs
/pkgs/applications/editors/emacs/elisp-packages @adisbladis
/pkgs/applications/editors/emacs @adisbladis
/pkgs/top-level/emacs-packages.nix @adisbladis
# Neovim
/pkgs/applications/editors/neovim @figsoda @jonringer @teto
# VimPlugins
/pkgs/applications/editors/vim/plugins @figsoda @jonringer
# VsCode Extensions
/pkgs/applications/editors/vscode/extensions @jonringer
# Prometheus exporter modules and tests
/nixos/modules/services/monitoring/prometheus/exporters.nix @WilliButz
/nixos/modules/services/monitoring/prometheus/exporters.xml @WilliButz
/nixos/tests/prometheus-exporters.nix @WilliButz
# PHP interpreter, packages, extensions, tests and documentation
/doc/languages-frameworks/php.section.md @aanderse @etu @globin @ma27 @talyz
/nixos/tests/php @aanderse @etu @globin @ma27 @talyz
/pkgs/build-support/build-pecl.nix @aanderse @etu @globin @ma27 @talyz
/pkgs/development/interpreters/php @jtojnar @aanderse @etu @globin @ma27 @talyz
/pkgs/development/php-packages @aanderse @etu @globin @ma27 @talyz
/pkgs/top-level/php-packages.nix @jtojnar @aanderse @etu @globin @ma27 @talyz
# Podman, CRI-O modules and related
/nixos/modules/virtualisation/containers.nix @zowoq @adisbladis
/nixos/modules/virtualisation/cri-o.nix @zowoq @adisbladis
/nixos/modules/virtualisation/podman @zowoq @adisbladis
/nixos/tests/cri-o.nix @zowoq @adisbladis
/nixos/tests/podman @zowoq @adisbladis
# Docker tools
/pkgs/build-support/docker @roberth
/nixos/tests/docker-tools* @roberth
/doc/builders/images/dockertools.section.md @roberth
# Blockchains
/pkgs/applications/blockchains @mmahut @RaghavSood
# Go
/doc/languages-frameworks/go.section.md @kalbasit @Mic92 @zowoq
/pkgs/build-support/go @kalbasit @Mic92 @zowoq
/pkgs/development/compilers/go @kalbasit @Mic92 @zowoq
# GNOME
/pkgs/desktops/gnome @jtojnar
/pkgs/desktops/gnome/extensions @piegamesde @jtojnar
/pkgs/build-support/make-hardcode-gsettings-patch @jtojnar
# Cinnamon
/pkgs/desktops/cinnamon @mkg20001
# nim
/pkgs/development/compilers/nim @ehmry
/pkgs/development/nim-packages @ehmry
/pkgs/top-level/nim-packages.nix @ehmry
# terraform providers
/pkgs/applications/networking/cluster/terraform-providers @zowoq
# kubernetes
/nixos/doc/manual/configuration/kubernetes.chapter.md @zowoq
/nixos/modules/services/cluster/kubernetes @zowoq
/nixos/tests/kubernetes @zowoq
/pkgs/applications/networking/cluster/kubernetes @zowoq
# Matrix
/pkgs/servers/heisenbridge @piegamesde
/pkgs/servers/matrix-conduit @piegamesde
/nixos/modules/services/misc/heisenbridge.nix @piegamesde
/nixos/modules/services/misc/matrix-conduit.nix @piegamesde
/nixos/tests/matrix-conduit.nix @piegamesde
# Dotnet
/pkgs/build-support/dotnet @IvarWithoutBones
/pkgs/development/compilers/dotnet @IvarWithoutBones
# Node.js
/pkgs/build-support/node/build-npm-package @winterqt
/pkgs/build-support/node/fetch-npm-deps @winterqt
/doc/languages-frameworks/javascript.section.md @winterqt
# OCaml
/pkgs/build-support/ocaml @romildo @ulrikstrid
/pkgs/development/compilers/ocaml @romildo @ulrikstrid
/pkgs/development/ocaml-modules @romildo @ulrikstrid

35
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,35 @@
# How to contribute
Note: contributing implies licensing those contributions
under the terms of [COPYING](../COPYING), which is an MIT-like license.
## Opening issues
* Make sure you have a [GitHub account](https://github.com/signup/free)
* [Submit an issue](https://github.com/NixOS/nixpkgs/issues) - assuming one does not already exist.
* Clearly describe the issue including steps to reproduce when it is a bug.
* Include information what version of nixpkgs and Nix are you using (nixos-version or git revision).
## Submitting changes
* Format the commits in the following way:
`(pkg-name | service-name): (from -> to | init at version | refactor | etc)`
Examples:
* nginx: init at 2.0.1
* firefox: 3.0 -> 3.1.1
* hydra service: add bazBaz option
* nginx service: refactor config generation
* `meta.description` should:
* Be capitalized
* Not start with the package name
* Not have a dot at the end
See the nixpkgs manual for more details on how to [Submit changes to nixpkgs](https://nixos.org/nixpkgs/manual/#chap-submitting-changes).
## Reviewing contributions
See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#sec-reviewing-contributions).

View File

@@ -8,4 +8,6 @@
## Technical details
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)
* Nix version: (run `nix-env --version`)
* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`)

View File

@@ -1,41 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: '0.kind: bug'
assignees: ''
---
### Describe the bug
A clear and concise description of what the bug is.
### Steps To Reproduce
Steps to reproduce the behavior:
1. ...
2. ...
3. ...
### Expected behavior
A clear and concise description of what you expected to happen.
### Screenshots
If applicable, add screenshots to help explain your problem.
### Additional context
Add any other context about the problem here.
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```

View File

@@ -1,39 +0,0 @@
---
name: Build failure
about: Create a report to help us improve
title: 'Build failure: PACKAGENAME'
labels: '0.kind: build failure'
assignees: ''
---
### Steps To Reproduce
Steps to reproduce the behavior:
1. build *X*
### Build log
```
log here if short otherwise a link to a gist
```
### Additional context
Add any other context about the problem here.
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```

View File

@@ -1,32 +0,0 @@
---
name: Missing or incorrect documentation
about: Help us improve the Nixpkgs and NixOS reference manuals
title: 'Documentation: '
labels: '9.needs: documentation'
assignees: ''
---
## Problem
<!-- describe your problem -->
## Proposal
<!-- propose a solution (optional) -->
## Checklist
<!-- make sure this issue is not redundant or obsolete -->
- [ ] checked [latest Nixpkgs manual] \([source][nixpkgs-source]) and [latest NixOS manual] \([source][nixos-source])
- [ ] checked [open documentation issues] for possible duplicates
- [ ] checked [open documentation pull requests] for possible solutions
[latest Nixpkgs manual]: https://nixos.org/manual/nixpkgs/unstable/
[latest NixOS manual]: https://nixos.org/manual/nixos/unstable/
[nixpkgs-source]: https://github.com/NixOS/nixpkgs/tree/master/doc
[nixos-source]: https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual
[open documentation issues]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+label%3A%229.needs%3A+documentation%22
[open documentation pull requests]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+is%3Apr+label%3A%228.has%3A+documentation%22%2C%226.topic%3A+documentation%22

View File

@@ -1,28 +0,0 @@
---
name: Out-of-date package reports
about: For packages that are out-of-date
title: 'Update request: PACKAGENAME OLDVERSION → NEWVERSION'
labels: '9.needs: package (update)'
assignees: ''
---
- Package name:
- Latest released version:
<!-- Search your package here: https://search.nixos.org/packages?channel=unstable -->
- Current version on the unstable channel:
- Current version on the stable/release channel:
<!--
Type the name of your package and try to find an open pull request for the package
If you find an open pull request, you can review it!
There's a high chance that you'll have the new version right away while helping the community!
-->
- [ ] Checked the [nixpkgs pull requests](https://github.com/NixOS/nixpkgs/pulls)
**Notify maintainers**
<!-- If the search.nixos.org result shows no maintainers, tag the person that last updated the package. -->
-----
Note for maintainers: Please tag this issue in your PR.

View File

@@ -1,19 +0,0 @@
---
name: Packaging requests
about: For packages that are missing
title: 'Package request: PACKAGENAME'
labels: '0.kind: packaging request'
assignees: ''
---
**Project description**
<!-- Describe the project a little: -->
**Metadata**
* homepage URL:
* source URL:
* license: mit, bsd, gpl2+ , ...
* platforms: unix, linux, darwin, ...

View File

@@ -1,31 +0,0 @@
---
name: Unreproducible package
about: A package that does not produce a bit-by-bit reproducible result each time it is built
title: ''
labels: [ '0.kind: enhancement', '6.topic: reproducible builds' ]
assignees: ''
---
Building this package twice does not produce the bit-by-bit identical result each time, making it harder to detect CI breaches. You can read more about this at https://reproducible-builds.org/ .
Fixing bit-by-bit reproducibility also has additional advantages, such as avoiding hard-to-reproduce bugs, making content-addressed storage more effective and reducing rebuilds in such systems.
### Steps To Reproduce
```
nix-build '<nixpkgs>' -A ... --check --keep-failed
```
You can use `diffoscope` to analyze the differences in the output of the two builds.
To view the build log of the build that produced the artifact in the binary cache:
```
nix-store --read-log $(nix-instantiate '<nixpkgs>' -A ...)
```
### Additional context
(please share the relevant fragment of the diffoscope output here,
and any additional analysis you may have done)

View File

@@ -1,40 +1,19 @@
###### Description of changes
###### Motivation for this change
<!--
For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
For new packages please briefly describe the package or provide a link to its homepage.
-->
###### Things done
<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->
- [ ] Tested using sandboxing
([nix.useChroot](http://nixos.org/nixos/manual/options.html#opt-nix.useChroot) on NixOS,
or option `build-use-chroot` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file)
on non-NixOS)
- Built on platform(s)
- [ ] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- [ ] For non-Linux: Is `sandbox = true` set in `nix.conf`? (See [Nix manual](https://nixos.org/manual/nix/stable/command-ref/conf-file.html))
- [ ] Tested, as applicable:
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://nixos.org/manual/nixpkgs/unstable/#sec-package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://nixos.org/manual/nixpkgs/unstable/#ssec-nixos-tests-linking) to the relevant packages
- [ ] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [23.05 Release Notes (or backporting 22.11 Release notes)](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#generating-2305-release-notes)
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module
- [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
- [ ] NixOS
- [ ] OS X
- [ ] Linux
- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nox --run "nox-review wip"`
- [ ] Tested execution of all binary files (usually in `./result/bin/`)
- [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md).
<!--
To help with the large amounts of pull requests, we would appreciate your
reviews of other pull requests, especially simple package updates. Just leave a
comment describing what you have tested in the relevant package/service.
Reviewing helps to reduce the average time-to-merge for everyone.
Thanks a lot if you do!
---
List of open PRs: https://github.com/NixOS/nixpkgs/pulls
Reviewing guidelines: https://nixos.org/manual/nixpkgs/unstable/#chap-reviewing-contributions
-->

36
.github/STALE-BOT.md vendored
View File

@@ -1,36 +0,0 @@
# Stale bot information
- Thanks for your contribution!
- Our stale bot will never close an issue or PR.
- To remove the stale label, just leave a new comment.
- _How to find the right people to ping?_ &rarr; [`git blame`](https://git-scm.com/docs/git-blame) to the rescue! (or GitHub's history and blame buttons.)
- You can always ask for help on [our Discourse Forum](https://discourse.nixos.org/), [our Matrix room](https://matrix.to/#/#nix:nixos.org), or on the [#nixos IRC channel](https://web.libera.chat/#nixos).
## Suggestions for PRs
1. GitHub sometimes doesn't notify people who commented / reviewed a PR previously, when you (force) push commits. If you have addressed the reviews you can [officially ask for a review](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/requesting-a-pull-request-review) from those who commented to you or anyone else.
2. If it is unfinished but you plan to finish it, please mark it as a draft.
3. If you don't expect to work on it any time soon, closing it with a short comment may encourage someone else to pick up your work.
4. To get things rolling again, rebase the PR against the target branch and address valid comments.
5. If you need a review to move forward, ask in [the Discourse thread for PRs that need help](https://discourse.nixos.org/t/prs-in-distress/3604).
6. If all you need is a merge, check the git history to find and [request reviews](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/requesting-a-pull-request-review) from people who usually merge related contributions.
## Suggestions for issues
1. If it is resolved (either for you personally, or in general), please consider closing it.
2. If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough.
3. If you still have interest in resolving it, try to ping somebody who you believe might have an interest in the topic. Consider discussing the problem in [our Discourse Forum](https://discourse.nixos.org/).
4. As with all open source projects, your best option is to submit a Pull Request that addresses this issue. We :heart: this attitude!
**Memorandum on closing issues**
Don't be afraid to close an issue that holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen--nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
## Useful GitHub search queries
- [Open PRs with any stale-bot interaction](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+commenter%3Aapp%2Fstale+)
- [Open PRs with any stale-bot interaction and `2.status: stale`](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+commenter%3Aapp%2Fstale+label%3A%222.status%3A+stale%22)
- [Open PRs with any stale-bot interaction and NOT `2.status: stale`](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+commenter%3Aapp%2Fstale+-label%3A%222.status%3A+stale%22+)
- [Open Issues with any stale-bot interaction](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+commenter%3Aapp%2Fstale+)
- [Open Issues with any stale-bot interaction and `2.status: stale`](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+commenter%3Aapp%2Fstale+label%3A%222.status%3A+stale%22+)
- [Open Issues with any stale-bot interaction and NOT `2.status: stale`](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+commenter%3Aapp%2Fstale+-label%3A%222.status%3A+stale%22+)

View File

@@ -1,6 +0,0 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

181
.github/labeler.yml vendored
View File

@@ -1,181 +0,0 @@
"6.topic: agda":
- doc/languages-frameworks/agda.section.md
- nixos/tests/agda.nix
- pkgs/build-support/agda/**/*
- pkgs/development/libraries/agda/**/*
- pkgs/top-level/agda-packages.nix
"6.topic: cinnamon":
- pkgs/desktops/cinnamon/**/*
- nixos/modules/services/x11/desktop-managers/cinnamon.nix
- nixos/tests/cinnamon.nix
"6.topic: emacs":
- nixos/modules/services/editors/emacs.nix
- nixos/modules/services/editors/emacs.xml
- nixos/tests/emacs-daemon.nix
- pkgs/applications/editors/emacs/elisp-packages/**/*
- pkgs/applications/editors/emacs/**/*
- pkgs/build-support/emacs/**/*
- pkgs/top-level/emacs-packages.nix
"6.topic: Enlightenment DE":
- nixos/modules/services/x11/desktop-managers/enlightenment.nix
- pkgs/desktops/enlightenment/**/*
- pkgs/development/python-modules/python-efl/*
"6.topic: erlang":
- doc/languages-frameworks/beam.section.md
- pkgs/development/beam-modules/**/*
- pkgs/development/interpreters/elixir/**/*
- pkgs/development/interpreters/erlang/**/*
- pkgs/development/tools/build-managers/rebar/**/*
- pkgs/development/tools/build-managers/rebar3/**/*
- pkgs/development/tools/erlang/**/*
- pkgs/top-level/beam-packages.nix
"6.topic: fetch":
- pkgs/build-support/fetch*/**/*
"6.topic: GNOME":
- doc/languages-frameworks/gnome.section.md
- nixos/modules/services/desktops/gnome/**/*
- nixos/modules/services/x11/desktop-managers/gnome.nix
- nixos/tests/gnome-xorg.nix
- nixos/tests/gnome.nix
- pkgs/desktops/gnome/**/*
"6.topic: golang":
- doc/languages-frameworks/go.section.md
- pkgs/build-support/go/**/*
- pkgs/development/compilers/go/**/*
"6.topic: haskell":
- doc/languages-frameworks/haskell.section.md
- maintainers/scripts/haskell/**/*
- pkgs/development/compilers/ghc/**/*
- pkgs/development/haskell-modules/**/*
- pkgs/development/tools/haskell/**/*
- pkgs/test/haskell/**/*
- pkgs/top-level/haskell-packages.nix
- pkgs/top-level/release-haskell.nix
"6.topic: kernel":
- pkgs/build-support/kernel/**/*
- pkgs/os-specific/linux/kernel/**/*
"6.topic: lua":
- pkgs/development/interpreters/lua-5/**/*
- pkgs/development/interpreters/luajit/**/*
- pkgs/development/lua-modules/**/*
- pkgs/top-level/lua-packages.nix
"6.topic: Lumina DE":
- nixos/modules/services/x11/desktop-managers/lumina.nix
- pkgs/desktops/lumina/**/*
"6.topic: LXQt":
- nixos/modules/services/x11/desktop-managers/lxqt.nix
- pkgs/desktops/lxqt/**/*
"6.topic: mate":
- nixos/modules/services/x11/desktop-managers/mate.nix
- nixos/tests/mate.nix
- pkgs/desktops/mate/**/*
"6.topic: nixos":
- nixos/**/*
- pkgs/os-specific/linux/nixos-rebuild/**/*
"6.topic: nim":
- doc/languages-frameworks/nim.section.md
- pkgs/development/compilers/nim/*
- pkgs/development/nim-packages/**/*
- pkgs/top-level/nim-packages.nix
"6.topic: ocaml":
- doc/languages-frameworks/ocaml.section.md
- pkgs/development/compilers/ocaml/**/*
- pkgs/development/compilers/reason/**/*
- pkgs/development/ocaml-modules/**/*
- pkgs/development/tools/ocaml/**/*
- pkgs/top-level/ocaml-packages.nix
"6.topic: pantheon":
- nixos/modules/services/desktops/pantheon/**/*
- nixos/modules/services/x11/desktop-managers/pantheon.nix
- nixos/modules/services/x11/display-managers/lightdm-greeters/pantheon.nix
- nixos/tests/pantheon.nix
- pkgs/desktops/pantheon/**/*
"6.topic: policy discussion":
- .github/**/*
"6.topic: printing":
- nixos/modules/services/printing/cupsd.nix
- pkgs/misc/cups/**/*
"6.topic: python":
- doc/languages-frameworks/python.section.md
- pkgs/development/interpreters/python/**/*
- pkgs/development/python-modules/**/*
- pkgs/top-level/python-packages.nix
"6.topic: qt/kde":
- doc/languages-frameworks/qt.section.md
- nixos/modules/services/x11/desktop-managers/plasma5.nix
- nixos/tests/plasma5.nix
- pkgs/applications/kde/**/*
- pkgs/desktops/plasma-5/**/*
- pkgs/development/libraries/kde-frameworks/**/*
- pkgs/development/libraries/qt-5/**/*
"6.topic: ruby":
- doc/languages-frameworks/ruby.section.md
- pkgs/development/interpreters/ruby/**/*
- pkgs/development/ruby-modules/**/*
"6.topic: rust":
- doc/languages-frameworks/rust.section.md
- pkgs/build-support/rust/**/*
- pkgs/development/compilers/rust/**/*
"6.topic: stdenv":
- pkgs/stdenv/**/*
"6.topic: steam":
- pkgs/games/steam/**/*
"6.topic: systemd":
- pkgs/os-specific/linux/systemd/**/*
- nixos/modules/system/boot/systemd*/**/*
"6.topic: TeX":
- doc/languages-frameworks/texlive.section.md
- pkgs/tools/typesetting/tex/**/*
"6.topic: vim":
- doc/languages-frameworks/vim.section.md
- pkgs/applications/editors/vim/**/*
- pkgs/applications/editors/vim/plugins/**/*
- nixos/modules/programs/neovim.nix
- pkgs/applications/editors/neovim/**/*
"6.topic: vscode":
- pkgs/applications/editors/vscode/**/*
"6.topic: xfce":
- nixos/doc/manual/configuration/xfce.xml
- nixos/modules/services/x11/desktop-managers/xfce.nix
- nixos/tests/xfce.nix
- pkgs/desktops/xfce/**/*
"8.has: changelog":
- nixos/doc/manual/release-notes/**/*
"8.has: documentation":
- doc/**/*
- nixos/doc/**/*
"8.has: module (update)":
- nixos/modules/**/*

9
.github/stale.yml vendored
View File

@@ -1,9 +0,0 @@
# Configuration for probot-stale - https://github.com/probot/stale
daysUntilStale: 180
daysUntilClose: false
exemptLabels:
- "1.severity: security"
- "2.status: never-stale"
staleLabel: "2.status: stale"
markComment: false
closeComment: false

View File

@@ -1,35 +0,0 @@
name: Backport
on:
pull_request_target:
types: [closed, labeled]
# WARNING:
# When extending this action, be aware that $GITHUB_TOKEN allows write access to
# the GitHub repository. This means that it should not evaluate user input in a
# way that allows code injection.
permissions:
contents: read
jobs:
backport:
permissions:
contents: write # for korthout/backport-action to create branch
pull-requests: write # for korthout/backport-action to create PR to backport
name: Backport Pull Request
if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create backport PRs
uses: korthout/backport-action@v1.2.0
with:
# Config README: https://github.com/korthout/backport-action#backport-action
copy_labels_pattern: 'severity:\ssecurity'
pull_description: |-
Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}.
* [ ] Before merging, ensure that this backport complies with the [Criteria for Backporting](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#criteria-for-backporting-changes).
* Even as a non-commiter, if you find that it does not comply, leave a comment.

View File

@@ -1,29 +0,0 @@
name: Basic evaluation checks
on:
workflow_dispatch
# pull_request:
# branches:
# - master
# - release-**
# push:
# branches:
# - master
# - release-**
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
# we don't limit this action to only NixOS repo since the checks are cheap and useful developer feedback
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# explicit list of supportedSystems is needed until aarch64-darwin becomes part of the trunk jobset
- run: nix-build pkgs/top-level/release.nix -A tarball.nixpkgs-basic-release-checks --arg supportedSystems '[ "aarch64-darwin" "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]'

View File

@@ -1,24 +0,0 @@
name: "Check that maintainer list is sorted"
on:
pull_request_target:
paths:
- 'maintainers/maintainer-list.nix'
permissions:
contents: read
jobs:
nixos:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@v20
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- name: Check that maintainer-list.nix is sorted
run: nix-instantiate --eval maintainers/scripts/check-maintainers-sorted.nix

View File

@@ -1,21 +0,0 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p html-tidy
set -euo pipefail
shopt -s inherit_errexit
normalize() {
tidy \
--anchor-as-name no \
--coerce-endtags no \
--escape-scripts no \
--fix-backslash no \
--fix-style-tags no \
--fix-uri no \
--indent yes \
--wrap 0 \
< "$1" \
2> /dev/null
}
diff -U3 <(normalize "$1") <(normalize "$2")

View File

@@ -1,37 +0,0 @@
name: "Direct Push Warning"
on:
push:
branches:
- master
- release-**
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for peter-evans/commit-comment to comment on commit
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
env:
GITHUB_SHA: ${{ github.sha }}
GITHUB_REPOSITORY: ${{ github.repository }}
steps:
- name: Check if commit is a merge commit
id: ismerge
run: |
ISMERGE=$(curl -H 'Accept: application/vnd.github.groot-preview+json' -H "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ env.GITHUB_REPOSITORY }}/commits/${{ env.GITHUB_SHA }}/pulls | jq -r '.[] | select(.merge_commit_sha == "${{ env.GITHUB_SHA }}") | any')
echo "ismerge=$ISMERGE" >> $GITHUB_OUTPUT
# github events are eventually consistent, so wait until changes propagate to thier DB
- run: sleep 60
if: steps.ismerge.outputs.ismerge != 'true'
- name: Warn if the commit was a direct push
if: steps.ismerge.outputs.ismerge != 'true'
uses: peter-evans/commit-comment@v2
with:
body: |
@${{ github.actor }}, you pushed a commit directly to master/release branch
instead of going through a Pull Request.
That's highly discouraged beyond the few exceptions listed
on https://github.com/NixOS/nixpkgs/issues/118661

View File

@@ -1,41 +0,0 @@
name: "Checking EditorConfig"
permissions: read-all
on:
# avoids approving first time contributors
pull_request_target:
branches-ignore:
- 'release-**'
jobs:
tests:
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- name: Get list of changed files from PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api \
repos/NixOS/nixpkgs/pulls/${{github.event.number}}/files --paginate \
| jq '.[] | select(.status != "removed") | .filename' \
> "$HOME/changed_files"
- name: print list of changed files
run: |
cat "$HOME/changed_files"
- uses: actions/checkout@v3
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@v20
with:
# nixpkgs commit is pinned so that it doesn't break
# editorconfig-checker 2.4.0
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz
- name: Checking EditorConfig
run: |
cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
- if: ${{ failure() }}
run: |
echo "::error :: Hey! It looks like your changes don't follow our editorconfig settings. Read https://editorconfig.org/#download to configure your editor so you never see this error again."

View File

@@ -1,24 +0,0 @@
name: "Label PR"
on:
pull_request_target:
types: [edited, opened, synchronize, reopened]
# WARNING:
# When extending this action, be aware that $GITHUB_TOKEN allows some write
# access to the GitHub API. This means that it should not evaluate user input in
# a way that allows code injection.
permissions:
contents: read
pull-requests: write
jobs:
labels:
runs-on: ubuntu-latest
if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true

View File

@@ -1,39 +0,0 @@
name: "Build NixOS manual"
permissions: read-all
on:
pull_request_target:
branches:
- master
paths:
- 'nixos/**'
jobs:
nixos:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@v20
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Building NixOS manual with DocBook options
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true nixos/release.nix -A manual.x86_64-linux
- name: Building NixOS manual with Markdown options
run: |
export NIX_PATH=nixpkgs=$(pwd)
nix-build \
--option restrict-eval true \
--arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \
nixos/release.nix \
-A manual.x86_64-linux

View File

@@ -1,32 +0,0 @@
name: "Build Nixpkgs manual"
permissions: read-all
on:
pull_request_target:
branches:
- master
paths:
- 'doc/**'
- 'lib/**'
jobs:
nixpkgs:
runs-on: ubuntu-latest
if: github.repository_owner == 'NixOS'
steps:
- uses: actions/checkout@v3
with:
# pull_request_target checks out the base branch by default
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: cachix/install-nix-action@v20
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Building Nixpkgs manual
run: NIX_PATH=nixpkgs=$(pwd) nix-build --option restrict-eval true pkgs/top-level/release.nix -A manual

View File

@@ -1,64 +0,0 @@
name: "Check NixOS Manual DocBook rendering against MD rendering"
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Check every 24 hours
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
check-rendering-equivalence:
permissions:
pull-requests: write # for peter-evans/create-or-update-comment to create or update comment
if: github.repository_owner == 'NixOS'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
# explicitly enable sandbox
extra_nix_config: sandbox = true
- uses: cachix/cachix-action@v12
with:
# This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere.
name: nixpkgs-ci
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Build DocBook and MD manuals
run: |
export NIX_PATH=nixpkgs=$(pwd)
nix-build \
--option restrict-eval true \
-o docbook nixos/release.nix \
-A manual.x86_64-linux
nix-build \
--option restrict-eval true \
--arg configuration '{ documentation.nixos.options.allowDocBook = false; }' \
-o md nixos/release.nix \
-A manual.x86_64-linux
- name: Compare DocBook and MD manuals
id: check
run: |
export NIX_PATH=nixpkgs=$(pwd)
.github/workflows/compare-manuals.sh \
docbook/share/doc/nixos/options.html \
md/share/doc/nixos/options.html
# if the manual can't be built we don't want to notify anyone.
# while this may temporarily hide rendering failures it will be a lot
# less noisy until all nixpkgs pull requests have stopped using
# docbook for option docs.
- name: Comment on failure
uses: peter-evans/create-or-update-comment@v3
if: ${{ failure() && steps.check.conclusion == 'failure' }}
with:
issue-number: 189318
body: |
Markdown and DocBook manuals do not agree.
Check https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }} for details.

View File

@@ -1,26 +0,0 @@
name: "No channel PR"
on:
pull_request:
branches:
- 'nixos-**'
- 'nixpkgs-**'
permissions:
contents: read
jobs:
fail:
permissions:
contents: none
name: "This PR is is targeting a channel branch"
runs-on: ubuntu-latest
steps:
- run: |
cat <<EOF
The nixos-* and nixpkgs-* branches are pushed to by the channel
release script and should not be merged into directly.
Please target the equivalent release-* branch or master instead.
EOF
exit 1

View File

@@ -1,33 +0,0 @@
name: "Set pending OfBorg status"
on:
pull_request_target:
# Sets the ofborg-eval status to "pending" to signal that we are waiting for
# OfBorg even if it is running late. The status will be overwritten by OfBorg
# once it starts evaluation.
# WARNING:
# When extending this action, be aware that $GITHUB_TOKEN allows (restricted) write access to
# the GitHub repository. This means that it should not evaluate user input in a
# way that allows code injection.
permissions:
contents: read
jobs:
action:
if: github.repository_owner == 'NixOS'
permissions:
statuses: write
runs-on: ubuntu-latest
steps:
- name: "Set pending OfBorg status"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-d '{"context": "ofborg-eval", "state": "pending", "description": "Waiting for OfBorg..."}' \
"https://api.github.com/repos/NixOS/nixpkgs/commits/${{ github.event.pull_request.head.sha }}/statuses"

View File

@@ -1,59 +0,0 @@
# This action periodically merges base branches into staging branches.
# This is done to
# * prevent conflicts or rather resolve them early
# * make all potential breakage happen on the staging branch
# * and make sure that all major rebuilds happen before the staging
# branch gets merged back into its base branch.
name: "Periodic Merges (24h)"
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Merge every 24 hours
- cron: '0 0 * * *'
permissions:
contents: read
jobs:
periodic-merge:
permissions:
contents: write # for devmasx/merge-branch to merge branches
pull-requests: write # for peter-evans/create-or-update-comment to create or update comment
if: github.repository_owner == 'NixOS'
runs-on: ubuntu-latest
strategy:
# don't fail fast, so that all pairs are tried
fail-fast: false
# certain branches need to be merged in order, like master->staging-next->staging
# and disabling parallelism ensures the order of the pairs below.
max-parallel: 1
matrix:
pairs:
- from: master
into: haskell-updates
- from: release-22.11
into: staging-next-22.11
- from: staging-next-22.11
into: staging-22.11
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/merge-branch@1.4.0
with:
type: now
from_branch: ${{ matrix.pairs.from }}
target_branch: ${{ matrix.pairs.into }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on failure
uses: peter-evans/create-or-update-comment@v3
if: ${{ failure() }}
with:
issue-number: 105153
body: |
Periodic merge from `${{ matrix.pairs.from }}` into `${{ matrix.pairs.into }}` has [failed](https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}).

View File

@@ -1,57 +0,0 @@
# This action periodically merges base branches into staging branches.
# This is done to
# * prevent conflicts or rather resolve them early
# * make all potential breakage happen on the staging branch
# * and make sure that all major rebuilds happen before the staging
# branch gets merged back into its base branch.
name: "Periodic Merges (6h)"
on:
schedule:
# * is a special character in YAML so you have to quote this string
# Merge every 6 hours
- cron: '0 */6 * * *'
permissions:
contents: read
jobs:
periodic-merge:
permissions:
contents: write # for devmasx/merge-branch to merge branches
pull-requests: write # for peter-evans/create-or-update-comment to create or update comment
if: github.repository_owner == 'NixOS'
runs-on: ubuntu-latest
strategy:
# don't fail fast, so that all pairs are tried
fail-fast: false
# certain branches need to be merged in order, like master->staging-next->staging
# and disabling parallelism ensures the order of the pairs below.
max-parallel: 1
matrix:
pairs:
- from: master
into: staging-next
- from: staging-next
into: staging
name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.pairs.from }} → ${{ matrix.pairs.into }}
uses: devmasx/merge-branch@1.4.0
with:
type: now
from_branch: ${{ matrix.pairs.from }}
target_branch: ${{ matrix.pairs.into }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment on failure
uses: peter-evans/create-or-update-comment@v3
if: ${{ failure() }}
with:
issue-number: 105153
body: |
Periodic merge from `${{ matrix.pairs.from }}` into `${{ matrix.pairs.into }}` has [failed](https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}).

View File

@@ -1,69 +0,0 @@
name: "Update terraform-providers"
on:
schedule:
- cron: "0 3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
tf-providers:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
if: github.repository_owner == 'NixOS' && github.ref == 'refs/heads/master' # ensure workflow_dispatch only runs on master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: setup
id: setup
run: |
echo "title=terraform-providers: update $(date -u +"%Y-%m-%d")" >> $GITHUB_OUTPUT
- name: update terraform-providers
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
echo | nix-shell \
maintainers/scripts/update.nix \
--argstr commit true \
--argstr keep-going true \
--argstr max-workers 2 \
--argstr path terraform-providers
- name: get failed updates
run: |
echo 'FAILED<<EOF' >> $GITHUB_ENV
git ls-files --others >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
# cleanup logs of failed updates so they aren't included in the PR
- name: clean repo
run: |
git clean -f
- name: create PR
uses: peter-evans/create-pull-request@v5
with:
body: |
Automatic update by [update-terraform-providers](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/update-terraform-providers.yml) action.
https://github.com/NixOS/nixpkgs/actions/runs/${{ github.run_id }}
These providers failed to update:
```
${{ env.FAILED }}
```
Check that all providers build with:
```
@ofborg build terraform.full
```
If there is more than ten commits in the PR `ofborg` won't build it automatically and you will need to use the above command.
branch: terraform-providers-update
delete-branch: false
title: ${{ steps.setup.outputs.title }}
token: ${{ secrets.GITHUB_TOKEN }}

21
.gitignore vendored
View File

@@ -2,32 +2,15 @@
,*
.*.swp
.*.swo
.\#*
\#*\#
.idea/
.vscode/
outputs/
result-*
result
!pkgs/development/python-modules/result
result-*
/doc/NEWS.html
/doc/NEWS.txt
/doc/manual.html
/doc/manual.pdf
/result
/source/
.version-suffix
.DS_Store
.mypy_cache
__pycache__
/pkgs/development/libraries/qt-5/*/tmp/
/pkgs/desktops/kde-5/*/tmp/
/pkgs/development/mobile/androidenv/xml/*
# generated by pkgs/common-updater/update-script.nix
update-git-commits.txt
# JetBrains IDEA module declaration file
/nixpkgs.iml
/pkgs/desktops/kde-5/*/tmp/

View File

@@ -1,14 +0,0 @@
ajs124 <git@ajs124.de> <ajs124@users.noreply.github.com>
Anderson Torres <torres.anderson.85@protonmail.com>
Daniel Løvbrøtte Olsen <me@dandellion.xyz> <daniel.olsen99@gmail.com>
Fabian Affolter <mail@fabian-affolter.ch> <fabian@affolter-engineering.ch>
Janne Heß <janne@hess.ooo> <dasJ@users.noreply.github.com>
Jörg Thalheim <joerg@thalheim.io> <Mic92@users.noreply.github.com>
Martin Weinelt <hexa@darmstadt.ccc.de> <mweinelt@users.noreply.github.com>
R. RyanTM <ryantm-bot@ryantm.com>
Robert Hensing <robert@roberthensing.nl> <roberth@users.noreply.github.com>
Sandro Jäckel <sandro.jaeckel@gmail.com>
Sandro Jäckel <sandro.jaeckel@gmail.com> <sandro.jaeckel@sap.com>
superherointj <5861043+superherointj@users.noreply.github.com>
Vladimír Čunát <v@cunat.cz> <vcunat@gmail.com>
Vladimír Čunát <v@cunat.cz> <vladimir.cunat@nic.cz>

6
.mention-bot Normal file
View File

@@ -0,0 +1,6 @@
{
"userBlacklist": [
"civodul",
"jhasse"
]
}

25
.travis.yml Normal file
View File

@@ -0,0 +1,25 @@
language: nix
matrix:
include:
- os: linux
sudo: false
script:
- ./maintainers/scripts/travis-nox-review-pr.sh nixpkgs-verify nixpkgs-manual nixpkgs-tarball
- ./maintainers/scripts/travis-nox-review-pr.sh nixos-options nixos-manual
- os: linux
sudo: required
dist: trusty
before_script:
- sudo mount -o remount,exec,size=2G,mode=755 /run/user
script: ./maintainers/scripts/travis-nox-review-pr.sh nox pr
- os: osx
osx_image: xcode7.3
script: ./maintainers/scripts/travis-nox-review-pr.sh nox pr
env:
global:
- GITHUB_TOKEN=5edaaf1017f691ed34e7f80878f8f5fbd071603f
notifications:
email:
on_success: never
on_failure: change

View File

@@ -1 +1 @@
23.05
16.09

View File

@@ -1,146 +0,0 @@
# How to contribute
Note: contributing implies licensing those contributions
under the terms of [COPYING](COPYING), which is an MIT-like license.
## Opening issues
* Make sure you have a [GitHub account](https://github.com/signup/free)
* Make sure there is no open issue on the topic
* [Submit a new issue](https://github.com/NixOS/nixpkgs/issues/new/choose) by choosing the kind of topic and fill out the template
## Submitting changes
Read the ["Submitting changes"](https://nixos.org/nixpkgs/manual/#chap-submitting-changes) section of the nixpkgs manual. It explains how to write, test, and iterate on your change, and which branch to base your pull request against.
Below is a short excerpt of some points in there:
* Format the commit messages in the following way:
```
(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc)
(Motivation for change. Link to release notes. Additional information.)
```
For consistency, there should not be a period at the end of the commit message's summary line (the first line of the commit message).
Examples:
* nginx: init at 2.0.1
* firefox: 54.0.1 -> 55.0
https://www.mozilla.org/en-US/firefox/55.0/releasenotes/
* nixos/hydra: add bazBaz option
Dual baz behavior is needed to do foo.
* nixos/nginx: refactor config generation
The old config generation system used impure shell scripts and could break in specific circumstances (see #1234).
* `meta.description` should:
* Be short, just one sentence.
* Be capitalized.
* Not start with the package name.
* More generally, it should not refer to the package name.
* Not end with a period (or any punctuation for that matter).
* Aim to inform while avoiding subjective language.
* `meta.license` must be set and fit the upstream license.
* If there is no upstream license, `meta.license` should default to `lib.licenses.unfree`.
* If in doubt, try to contact the upstream developers for clarification.
* `meta.maintainers` must be set.
See the nixpkgs manual for more details on [standard meta-attributes](https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes).
## Writing good commit messages
In addition to writing properly formatted commit messages, it's important to include relevant information so other developers can later understand *why* a change was made. While this information usually can be found by digging code, mailing list/Discourse archives, pull request discussions or upstream changes, it may require a lot of work.
Package version upgrades usually allow for simpler commit messages, including attribute name, old and new version, as well as a reference to the relevant release notes/changelog. Every once in a while a package upgrade requires more extensive changes, and that subsequently warrants a more verbose message.
Pull requests should not be squash merged in order to keep complete commit messages and GPG signatures intact and must not be when the change doesn't make sense as a single commit.
This means that, when addressing review comments in order to keep the pull request in an always mergeable status, you will sometimes need to rewrite your branch's history and then force-push it with `git push --force-with-lease`.
Useful git commands that can help a lot with this are `git commit --patch --amend` and `git rebase --interactive`. For more details consult the git man pages or online resources like [git-rebase.io](https://git-rebase.io/) or [The Pro Git Book](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History).
## Rebasing between branches (i.e. from master to staging)
From time to time, changes between branches must be rebased, for example, if the
number of new rebuilds they would cause is too large for the target branch. When
rebasing, care must be taken to include only the intended changes, otherwise
many CODEOWNERS will be inadvertently requested for review. To achieve this,
rebasing should not be performed directly on the target branch, but on the merge
base between the current and target branch.
In the following example, we assume that the current branch, called `feature`,
is based on `master`, and we rebase it onto the merge base between
`master` and `staging` so that the PR can eventually be retargeted to
`staging` without causing a mess. The example uses `upstream` as the remote for `NixOS/nixpkgs.git`
while `origin` is the remote you are pushing to.
```console
# Rebase your commits onto the common merge base
git rebase --onto upstream/staging... upstream/master
# Force push your changes
git push origin feature --force-with-lease
```
The syntax `upstream/staging...` is equivalent to `upstream/staging...HEAD` and
stands for the merge base between `upstream/staging` and `HEAD` (hence between
`upstream/staging` and `upstream/master`).
Then change the base branch in the GitHub PR using the *Edit* button in the upper
right corner, and switch from `master` to `staging`. *After* the PR has been
retargeted it might be necessary to do a final rebase onto the target branch, to
resolve any outstanding merge conflicts.
```console
# Rebase onto target branch
git rebase upstream/staging
# Review and fixup possible conflicts
git status
# Force push your changes
git push origin feature --force-with-lease
```
## Backporting changes
Follow these steps to backport a change into a release branch in compliance with the [commit policy](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches).
You can add a label such as `backport release-22.11` to a PR, so that merging it will
automatically create a backport (via [a GitHub Action](.github/workflows/backport.yml)).
This also works for PR's that have already been merged, and might take a couple of minutes to trigger.
You can also create the backport manually:
1. Take note of the commits in which the change was introduced into `master` branch.
2. Check out the target _release branch_, e.g. `release-22.11`. Do not use a _channel branch_ like `nixos-22.11` or `nixpkgs-22.11-darwin`.
3. Create a branch for your change, e.g. `git checkout -b backport`.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. Please also ensure the commits exists on the master branch; in the case of squashed or rebased merges, the commit hash will change and the new commits can be found in the merge message at the bottom of the master pull request.
5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-22.11`) as the target branch of the pull request, and link to the pull request in which the original change was committed to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[22.11]`.
6. When the backport pull request is merged and you have the necessary privileges you can also replace the label `9.needs: port to stable` with `8.has: port to stable` on the original pull request. This way maintainers can keep track of missing backports easier.
## Criteria for Backporting changes
Anything that does not cause user or downstream dependency regressions can be backported. This includes:
- New Packages / Modules
- Security / Patch updates
- Version updates which include new functionality (but no breaking changes)
- Services which require a client to be up-to-date regardless. (E.g. `spotify`, `steam`, or `discord`)
- Security critical applications (E.g. `firefox`)
## Generating 23.05 Release Notes
<!--
note: title unchanged even though we don't need regeneration because extant
PRs will link here. definitely change the title for 23.11 though.
-->
Documentation in nixpkgs is transitioning to a markdown-centric workflow. In the past release notes required a translation step to convert from markdown to a compatible docbook document, but this is no longer necessary.
Steps for updating 23.05 Release notes:
1. Edit `nixos/doc/manual/release-notes/rl-2305.section.md` with the desired changes
2. Commit changes to `rl-2305.section.md`.
## Reviewing contributions
See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#chap-reviewing-contributions).

13
COPYING
View File

@@ -1,4 +1,4 @@
Copyright (c) 2003-2023 Eelco Dolstra and the Nixpkgs/NixOS contributors
Copyright (c) 2003-2016 Eelco Dolstra and the Nixpkgs/NixOS contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -18,3 +18,14 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
======================================================================
Note: the license above does not apply to the packages built by the
Nix Packages collection, merely to the package descriptions (i.e., Nix
expressions, build scripts, etc.). Also, the license does not apply
to some of the binaries used for bootstrapping Nixpkgs (e.g.,
pkgs/stdenv/linux/tools/bash). It also might not apply to patches
included in Nixpkgs, which may be derivative works of the packages to
which they apply. The aforementioned artifacts are all covered by the
licenses of the respective packages.

139
README.md
View File

@@ -1,119 +1,44 @@
<p align="center">
<a href="https://nixos.org#gh-light-mode-only">
<img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"/>
</a>
<a href="https://nixos.org#gh-dark-mode-only">
<img src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png" width="500px" alt="NixOS logo"/>
</a>
</p>
[<img src="http://nixos.org/logo/nixos-hires.png" width="500px" alt="logo" />](https://nixos.org/nixos)
<p align="center">
<a href="https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md"><img src="https://img.shields.io/github/contributors-anon/NixOS/nixpkgs" alt="Contributors badge" /></a>
<a href="https://opencollective.com/nixos"><img src="https://opencollective.com/nixos/tiers/supporter/badge.svg?label=supporters&color=brightgreen" alt="Open Collective supporters" /></a>
</p>
[![Build Status](https://travis-ci.org/NixOS/nixpkgs.svg?branch=master)](https://travis-ci.org/NixOS/nixpkgs)
[![Code Triagers Badge](https://www.codetriage.com/nixos/nixpkgs/badges/users.svg)](https://www.codetriage.com/nixos/nixpkgs)
[![Issue Stats](http://www.issuestats.com/github/nixos/nixpkgs/badge/pr?style=flat)](http://www.issuestats.com/github/nixos/nixpkgs)
[![Issue Stats](http://www.issuestats.com/github/nixos/nixpkgs/badge/issue?style=flat)](http://www.issuestats.com/github/nixos/nixpkgs)
[Nixpkgs](https://github.com/nixos/nixpkgs) is a collection of over
80,000 software packages that can be installed with the
[Nix](https://nixos.org/nix/) package manager. It also implements
[NixOS](https://nixos.org/nixos/), a purely-functional Linux distribution.
Nixpkgs is a collection of packages for the [Nix](https://nixos.org/nix/) package
manager. It is periodically built and tested by the [hydra](http://hydra.nixos.org/)
build daemon as so-called channels. To get channel information via git, add
[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels.git) as a remote:
# Manuals
```
% git remote add channels git://github.com/NixOS/nixpkgs-channels.git
```
* [NixOS Manual](https://nixos.org/nixos/manual) - how to install, configure, and maintain a purely-functional Linux distribution
* [Nixpkgs Manual](https://nixos.org/nixpkgs/manual/) - contributing to Nixpkgs and using programming-language-specific Nix expressions
* [Nix Package Manager Manual](https://nixos.org/nix/manual) - how to write Nix expressions (programs), and how to use Nix command line tools
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. `nixos-16.09` for the latest
release and `nixos-unstable` for the latest successful build of master:
# Community
```
% git remote update channels
% git rebase channels/nixos-16.09
```
* [Discourse Forum](https://discourse.nixos.org/)
* [Matrix Chat](https://matrix.to/#/#community:nixos.org)
* [NixOS Weekly](https://weekly.nixos.org/)
* [Community-maintained wiki](https://nixos.wiki/)
* [Community-maintained list of ways to get in touch](https://nixos.wiki/wiki/Get_In_Touch#Chat) (Discord, Telegram, IRC, etc.)
For pull-requests, please rebase onto nixpkgs `master`.
# Other Project Repositories
The sources of all official Nix-related projects are in the [NixOS
organization on GitHub](https://github.com/NixOS/). Here are some of
the main ones:
* [Nix](https://github.com/NixOS/nix) - the purely functional package manager
* [NixOps](https://github.com/NixOS/nixops) - the tool to remotely deploy NixOS machines
* [nixos-hardware](https://github.com/NixOS/nixos-hardware) - NixOS profiles to optimize settings for different hardware
* [Nix RFCs](https://github.com/NixOS/rfcs) - the formal process for making substantial changes to the community
* [NixOS homepage](https://github.com/NixOS/nixos-homepage) - the [NixOS.org](https://nixos.org) website
* [hydra](https://github.com/NixOS/hydra) - our continuous integration system
* [NixOS Artwork](https://github.com/NixOS/nixos-artwork) - NixOS artwork
# Continuous Integration and Distribution
Nixpkgs and NixOS are built and tested by our continuous integration
system, [Hydra](https://hydra.nixos.org/).
[NixOS](https://nixos.org/nixos/) linux distribution source code is located inside
`nixos/` folder.
* [NixOS installation instructions](https://nixos.org/nixos/manual/#ch-installation)
* [Documentation (Nix Expression Language chapter)](https://nixos.org/nix/manual/#ch-expression-language)
* [Manual (How to write packages for Nix)](https://nixos.org/nixpkgs/manual/)
* [Manual (NixOS)](https://nixos.org/nixos/manual/)
* [Nix Wiki](https://nixos.org/wiki/) (deprecated, see milestone ["Move the Wiki!"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Move+the+wiki%21%22))
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for the NixOS 22.11 release](https://hydra.nixos.org/jobset/nixos/release-22.11)
* [Continuous package builds for 16.09 release](https://hydra.nixos.org/jobset/nixos/release-16.09)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for the NixOS 22.11 release](https://hydra.nixos.org/job/nixos/release-22.11/tested#tabs-constituents)
* [Tests for 16.09 release](https://hydra.nixos.org/job/nixos/release-16.09/tested#tabs-constituents)
Artifacts successfully built with Hydra are published to cache at
https://cache.nixos.org/. When successful build and test criteria are
met, the Nixpkgs expressions are distributed via [Nix
channels](https://nixos.org/manual/nix/stable/package-management/channels.html).
Communication:
# Contributing
Nixpkgs is among the most active projects on GitHub. While thousands
of open issues and pull requests might seem a lot at first, it helps
consider it in the context of the scope of the project. Nixpkgs
describes how to build tens of thousands of pieces of software and implements a
Linux distribution. The [GitHub Insights](https://github.com/NixOS/nixpkgs/pulse)
page gives a sense of the project activity.
Community contributions are always welcome through GitHub Issues and
Pull Requests. When pull requests are made, our tooling automation bot,
[OfBorg](https://github.com/NixOS/ofborg) will perform various checks
to help ensure expression quality.
The *Nixpkgs maintainers* are people who have assigned themselves to
maintain specific individual packages. We encourage people who care
about a package to assign themselves as a maintainer. When a pull
request is made against a package, OfBorg will notify the appropriate
maintainer(s). The *Nixpkgs committers* are people who have been given
permission to merge.
Most contributions are based on and merged into these branches:
* `master` is the main branch where all small contributions go
* `staging` is branched from master, changes that have a big impact on
Hydra builds go to this branch
* `staging-next` is branched from staging and only fixes to stabilize
and security fixes with a big impact on Hydra builds should be
contributed to this branch. This branch is merged into master when
deemed of sufficiently high quality
For more information about contributing to the project, please visit
the [contributing page](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
# Donations
The infrastructure for NixOS and related projects is maintained by a
nonprofit organization, the [NixOS
Foundation](https://nixos.org/nixos/foundation.html). To ensure the
continuity and expansion of the NixOS infrastructure, we are looking
for donations to our organization.
You can donate to the NixOS foundation through [SEPA bank
transfers](https://nixos.org/donate.html) or by using Open Collective:
<a href="https://opencollective.com/nixos#support"><img src="https://opencollective.com/nixos/tiers/supporter.svg?width=890" /></a>
# License
Nixpkgs is licensed under the [MIT License](COPYING).
Note: MIT license does not apply to the packages built by Nixpkgs,
merely to the files in this repository (the Nix expressions, build
scripts, NixOS modules, etc.). It also might not apply to patches
included in Nixpkgs, which may be derivative works of the packages to
which they apply. The aforementioned artifacts are all covered by the
licenses of the respective packages.
* [Mailing list](http://lists.science.uu.nl/mailman/listinfo/nix-dev)
* [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)

View File

@@ -2,26 +2,7 @@ let requiredVersion = import ./lib/minver.nix; in
if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
abort ''
This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system.
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively
upgrade Nix. You may use `nix-env --version' to check which version you have.
- If you installed Nix using the install script (https://nixos.org/nix/install),
it is safe to upgrade by running it again:
curl -L https://nixos.org/nix/install | sh
For more information, please see the NixOS release notes at
https://nixos.org/nixos/manual or locally at
${toString ./nixos/doc/manual/release-notes}.
If you need further help, see https://nixos.org/nixos/support.html
''
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

11
doc/.gitignore vendored
View File

@@ -1,11 +0,0 @@
*.chapter.xml
*.section.xml
.version
functions/library/generated
functions/library/locations.xml
highlightjs
manual-full.xml
out
result
result-*
media

View File

@@ -1,119 +0,0 @@
MD_TARGETS=$(addsuffix .xml, $(basename $(shell find . -type f -regex '.*\.md$$' -not -name README.md)))
PANDOC ?= pandoc
pandoc_media_dir = media
# NOTE: Keep in sync with conversion script (/maintainers/scripts/db-to-md.sh).
# TODO: Remove raw-attribute when we can get rid of DocBook altogether.
pandoc_commonmark_enabled_extensions = +attributes+fenced_divs+footnotes+bracketed_spans+definition_lists+pipe_tables+raw_attribute
# Not needed:
# - docbook-reader/citerefentry-to-rst-role.lua (only relevant for DocBook → MarkDown/rST/MyST)
pandoc_flags = --extract-media=$(pandoc_media_dir) \
--lua-filter=$(PANDOC_LUA_FILTERS_DIR)/diagram-generator.lua \
--lua-filter=build-aux/pandoc-filters/myst-reader/roles.lua \
--lua-filter=$(PANDOC_LINK_MANPAGES_FILTER) \
--lua-filter=build-aux/pandoc-filters/docbook-writer/rst-roles.lua \
--lua-filter=build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua \
-f commonmark$(pandoc_commonmark_enabled_extensions)+smart
.PHONY: all
all: validate format out/html/index.html out/epub/manual.epub
.PHONY: render-md
render-md: ${MD_TARGETS}
.PHONY: debug
debug:
nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
.PHONY: format
format: doc-support/result
find . -iname '*.xml' -type f | while read f; do \
echo $$f ;\
xmlformat --config-file "doc-support/result/xmlformat.conf" -i $$f ;\
done
.PHONY: fix-misc-xml
fix-misc-xml:
find . -iname '*.xml' -type f \
-exec ../nixos/doc/varlistentry-fixer.rb {} ';'
.PHONY: clean
clean:
rm -f ${MD_TARGETS} doc-support/result .version manual-full.xml functions/library/locations.xml functions/library/generated
rm -rf ./out/ ./highlightjs ./media
.PHONY: validate
validate: manual-full.xml doc-support/result
jing doc-support/result/docbook.rng manual-full.xml
out/html/index.html: doc-support/result manual-full.xml style.css highlightjs
mkdir -p out/html
xsltproc \
--nonet --xinclude \
--output $@ \
doc-support/result/xhtml.xsl \
./manual-full.xml
mkdir -p out/html/highlightjs/
cp -r highlightjs out/html/
cp -r $(pandoc_media_dir) out/html/
cp ./overrides.css out/html/
cp ./style.css out/html/style.css
mkdir -p out/html/images/callouts
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/html/images/callouts/
chmod u+w -R out/html/
out/epub/manual.epub: manual-full.xml
mkdir -p out/epub/scratch
xsltproc --nonet \
--output out/epub/scratch/ \
doc-support/result/epub.xsl \
./manual-full.xml
cp -r $(pandoc_media_dir) out/epub/scratch/OEBPS
cp ./overrides.css out/epub/scratch/OEBPS
cp ./style.css out/epub/scratch/OEBPS
mkdir -p out/epub/scratch/OEBPS/images/callouts/
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/epub/scratch/OEBPS/images/callouts/
echo "application/epub+zip" > mimetype
zip -0Xq "out/epub/manual.epub" mimetype
rm mimetype
cd "out/epub/scratch/" && zip -Xr9D "../manual.epub" *
rm -rf "out/epub/scratch/"
highlightjs: doc-support/result
mkdir -p highlightjs
cp -r doc-support/result/highlightjs/highlight.pack.js highlightjs/
cp -r doc-support/result/highlightjs/LICENSE highlightjs/
cp -r doc-support/result/highlightjs/mono-blue.css highlightjs/
cp -r doc-support/result/highlightjs/loader.js highlightjs/
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
.version: doc-support/result
ln -rfs ./doc-support/result/version .version
doc-support/result: doc-support/default.nix
(cd doc-support; nix-build)
functions/library/locations.xml: doc-support/result
ln -rfs ./doc-support/result/function-locations.xml functions/library/locations.xml
functions/library/generated: doc-support/result
ln -rfs ./doc-support/result/function-docs functions/library/generated
%.section.xml: %.section.md
$(PANDOC) $^ -t docbook \
$(pandoc_flags) \
-o $@
%.chapter.xml: %.chapter.md
$(PANDOC) $^ -t docbook \
--top-level-division=chapter \
$(pandoc_flags) \
-o $@

View File

@@ -1,12 +0,0 @@
# Nixpkgs/doc
This directory houses the sources files for the Nixpkgs manual.
You can find the [rendered documentation for Nixpkgs `unstable` on nixos.org](https://nixos.org/manual/nixpkgs/unstable/).
[Docs for Nixpkgs stable](https://nixos.org/manual/nixpkgs/stable/) are also available.
If you want to contribute to the documentation, [here's how to do it](https://nixos.org/manual/nixpkgs/unstable/#chap-contributing).
If you're only getting started with Nix, go to [nixos.org/learn](https://nixos.org/learn).

View File

@@ -1,23 +0,0 @@
--[[
Converts Code AST nodes produced by pandocs DocBook reader
from citerefentry elements into AST for corresponding role
for reStructuredText.
We use subset of MyST syntax (CommonMark with features from rST)
so lets use the rST AST for rST features.
Reference: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage
]]
function Code(elem)
elem.classes = elem.classes:map(function (x)
if x == 'citerefentry' then
elem.attributes['role'] = 'manpage'
return 'interpreted-text'
else
return x
end
end)
return elem
end

View File

@@ -1,34 +0,0 @@
--[[
Converts Link AST nodes with empty label to DocBook xref elements.
This is a temporary script to be able use cross-references conveniently
using syntax taken from MyST, while we still use docbook-xsl
for generating the documentation.
Reference: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing
]]
local function starts_with(start, str)
return str:sub(1, #start) == start
end
local function escape_xml_arg(arg)
amps = arg:gsub('&', '&amp;')
amps_quotes = amps:gsub('"', '&quot;')
amps_quotes_lt = amps_quotes:gsub('<', '&lt;')
return amps_quotes_lt
end
function Link(elem)
has_no_content = #elem.content == 0
targets_anchor = starts_with('#', elem.target)
has_no_attributes = elem.title == '' and elem.identifier == '' and #elem.classes == 0 and #elem.attributes == 0
if has_no_content and targets_anchor and has_no_attributes then
-- xref expects idref without the pound-sign
target_without_hash = elem.target:sub(2, #elem.target)
return pandoc.RawInline('docbook', '<xref linkend="' .. escape_xml_arg(target_without_hash) .. '" />')
end
end

View File

@@ -1,44 +0,0 @@
--[[
Converts AST for reStructuredText roles into corresponding
DocBook elements.
Currently, only a subset of roles is supported.
Reference:
List of roles:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html
manpage:
https://tdg.docbook.org/tdg/5.1/citerefentry.html
file:
https://tdg.docbook.org/tdg/5.1/filename.html
]]
function Code(elem)
if elem.classes:includes('interpreted-text') then
local tag = nil
local content = elem.text
if elem.attributes['role'] == 'manpage' then
tag = 'citerefentry'
local title, volnum = content:match('^(.+)%((%w+)%)$')
if title == nil then
-- No volnum in parentheses.
title = content
end
content = '<refentrytitle>' .. title .. '</refentrytitle>' .. (volnum ~= nil and ('<manvolnum>' .. volnum .. '</manvolnum>') or '')
elseif elem.attributes['role'] == 'file' then
tag = 'filename'
elseif elem.attributes['role'] == 'command' then
tag = 'command'
elseif elem.attributes['role'] == 'option' then
tag = 'option'
elseif elem.attributes['role'] == 'var' then
tag = 'varname'
elseif elem.attributes['role'] == 'env' then
tag = 'envar'
end
if tag ~= nil then
return pandoc.RawInline('docbook', '<' .. tag .. '>' .. content .. '</' .. tag .. '>')
end
end
end

View File

@@ -1,28 +0,0 @@
{ pkgs ? import ../../.. {} }:
let
inherit (pkgs) lib;
manpageURLs = builtins.fromJSON (builtins.readFile (pkgs.path + "/doc/manpage-urls.json"));
in pkgs.writeText "link-manpages.lua" ''
--[[
Adds links to known man pages that aren't already in a link.
]]
local manpage_urls = {
${lib.concatStringsSep "\n" (lib.mapAttrsToList (man: url:
" [${builtins.toJSON man}] = ${builtins.toJSON url},") manpageURLs)}
}
traverse = 'topdown'
-- Returning false as the second value aborts processing of child elements.
function Link(elem)
return elem, false
end
function Code(elem)
local is_man_role = elem.classes:includes('interpreted-text') and elem.attributes['role'] == 'manpage'
if is_man_role and manpage_urls[elem.text] ~= nil then
return pandoc.Link(elem, manpage_urls[elem.text]), false
end
end
''

View File

@@ -1,36 +0,0 @@
--[[
Replaces Str AST nodes containing {role}, followed by a Code node
by a Code node with attrs that would be produced by rST reader
from the role syntax.
This is to emulate MyST syntax in Pandoc.
(MyST is a CommonMark flavour with rST features mixed in.)
Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point
]]
function Inlines(inlines)
for i = #inlines-1,1,-1 do
local first = inlines[i]
local second = inlines[i+1]
local correct_tags = first.tag == 'Str' and second.tag == 'Code'
if correct_tags then
-- docutils supports alphanumeric strings separated by [-._:]
-- We are slightly more liberal for simplicity.
-- Allow preceding punctuation (eg '('), otherwise '({file}`...`)'
-- does not match. Also allow anything followed by a non-breaking space
-- since pandoc emits those after certain abbreviations (e.g. e.g.).
local prefix, role = first.text:match('^(.*){([-._+:%w]+)}$')
if role ~= nil and (prefix == '' or prefix:match("^.*[%p ]$") ~= nil) then
if prefix == '' then
inlines:remove(i)
else
first.text = prefix
end
second.attributes['role'] = role
second.classes:insert('interpreted-text')
end
end
end
return inlines
end

View File

@@ -1,25 +0,0 @@
--[[
Replaces Code nodes with attrs that would be produced by rST reader
from the role syntax by a Str AST node containing {role}, followed by a Code node.
This is to emulate MyST syntax in Pandoc.
(MyST is a CommonMark flavour with rST features mixed in.)
Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point
]]
function Code(elem)
local role = elem.attributes['role']
if elem.classes:includes('interpreted-text') and role ~= nil then
elem.classes = elem.classes:filter(function (c)
return c ~= 'interpreted-text'
end)
elem.attributes['role'] = nil
return {
pandoc.Str('{' .. role .. '}'),
elem,
}
end
end

View File

@@ -1,193 +0,0 @@
# Fetchers {#chap-pkgs-fetchers}
Building software with Nix often requires downloading source code and other files from the internet.
`nixpkgs` provides *fetchers* for different protocols and services. Fetchers are functions that simplify downloading files.
## Caveats {#chap-pkgs-fetchers-caveats}
Fetchers create [fixed output derivations](https://nixos.org/manual/nix/stable/#fixed-output-drvs) from downloaded files.
Nix can reuse the downloaded files via the hash of the resulting derivation.
The fact that the hash belongs to the Nix derivation output and not the file itself can lead to confusion.
For example, consider the following fetcher:
```nix
fetchurl {
url = "http://www.example.org/hello-1.0.tar.gz";
hash = "sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=";
};
```
A common mistake is to update a fetchers URL, or a version parameter, without updating the hash.
```nix
fetchurl {
url = "http://www.example.org/hello-1.1.tar.gz";
hash = "sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=";
};
```
**This will reuse the old contents**.
Remember to invalidate the hash argument, in this case by setting the `hash` attribute to an empty string.
```nix
fetchurl {
url = "http://www.example.org/hello-1.1.tar.gz";
hash = "";
};
```
Use the resulting error message to determine the correct hash.
```
error: hash mismatch in fixed-output derivation '/path/to/my.drv':
specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
got: sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=
```
A similar problem arises while testing changes to a fetcher's implementation. If the output of the derivation already exists in the Nix store, test failures can go undetected. The [`invalidateFetcherByDrvHash`](#tester-invalidateFetcherByDrvHash) function helps prevent reusing cached derivations.
## `fetchurl` and `fetchzip` {#fetchurl}
Two basic fetchers are `fetchurl` and `fetchzip`. Both of these have two required arguments, a URL and a hash. The hash is typically `hash`, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use `hash`. This hash will be used by Nix to identify your source. A typical usage of `fetchurl` is provided below.
```nix
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "hello";
src = fetchurl {
url = "http://www.example.org/hello.tar.gz";
hash = "sha256-BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=";
};
}
```
The main difference between `fetchurl` and `fetchzip` is in how they store the contents. `fetchurl` will store the unaltered contents of the URL within the Nix store. `fetchzip` on the other hand, will decompress the archive for you, making files and directories directly accessible in the future. `fetchzip` can only be used with archives. Despite the name, `fetchzip` is not limited to .zip files and can also be used with any tarball.
## `fetchpatch` {#fetchpatch}
`fetchpatch` works very similarly to `fetchurl` with the same arguments expected. It expects patch files as a source and performs normalization on them before computing the checksum. For example, it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time.
- `relative`: Similar to using `git-diff`'s `--relative` flag, only keep changes inside the specified directory, making paths relative to it.
- `stripLen`: Remove the first `stripLen` components of pathnames in the patch.
- `decode`: Pipe the downloaded data through this command before processing it as a patch.
- `extraPrefix`: Prefix pathnames by this string.
- `excludes`: Exclude files matching these patterns (applies after the above arguments).
- `includes`: Include only files matching these patterns (applies after the above arguments).
- `revert`: Revert the patch.
Note that because the checksum is computed after applying these effects, using or modifying these arguments will have no effect unless the `hash` argument is changed as well.
Most other fetchers return a directory rather than a single file.
## `fetchsvn` {#fetchsvn}
Used with Subversion. Expects `url` to a Subversion directory, `rev`, and `hash`.
## `fetchgit` {#fetchgit}
Used with Git. Expects `url` to a Git repo, `rev`, and `hash`. `rev` in this case can be full the git commit id (SHA1 hash) or a tag name like `refs/tags/v1.0`.
Additionally, the following optional arguments can be given: `fetchSubmodules = true` makes `fetchgit` also fetch the submodules of a repository. If `deepClone` is set to true, the entire repository is cloned as opposing to just creating a shallow clone. `deepClone = true` also implies `leaveDotGit = true` which means that the `.git` directory of the clone won't be removed after checkout.
If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) for more information:
```nix
{ stdenv, fetchgit }:
stdenv.mkDerivation {
name = "hello";
src = fetchgit {
url = "https://...";
sparseCheckout = [
"directory/to/be/included"
"another/directory"
];
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
}
```
## `fetchfossil` {#fetchfossil}
Used with Fossil. Expects `url` to a Fossil archive, `rev`, and `hash`.
## `fetchcvs` {#fetchcvs}
Used with CVS. Expects `cvsRoot`, `tag`, and `hash`.
## `fetchhg` {#fetchhg}
Used with Mercurial. Expects `url`, `rev`, and `hash`.
A number of fetcher functions wrap part of `fetchurl` and `fetchzip`. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below.
## `fetchFromGitea` {#fetchfromgitea}
`fetchFromGitea` expects five arguments. `domain` is the gitea server name. `owner` is a string corresponding to the Gitea user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every Gitea HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `hash` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but `hash` is currently preferred.
## `fetchFromGitHub` {#fetchfromgithub}
`fetchFromGitHub` expects four arguments. `owner` is a string corresponding to the GitHub user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `hash` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available, but `hash` is currently preferred.
`fetchFromGitHub` uses `fetchzip` to download the source archive generated by GitHub for the specified revision. If `leaveDotGit`, `deepClone` or `fetchSubmodules` are set to `true`, `fetchFromGitHub` will use `fetchgit` instead. Refer to its section for documentation of these options.
## `fetchFromGitLab` {#fetchfromgitlab}
This is used with GitLab repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromGitiles` {#fetchfromgitiles}
This is used with Gitiles repositories. The arguments expected are similar to `fetchgit`.
## `fetchFromBitbucket` {#fetchfrombitbucket}
This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above.
## `fetchFromSavannah` {#fetchfromsavannah}
This is used with Savannah repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromRepoOrCz` {#fetchfromrepoorcz}
This is used with repo.or.cz repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromSourcehut` {#fetchfromsourcehut}
This is used with sourcehut repositories. Similar to `fetchFromGitHub` above,
it expects `owner`, `repo`, `rev` and `hash`, but don't forget the tilde (~)
in front of the username! Expected arguments also include `vc` ("git" (default)
or "hg"), `domain` and `fetchSubmodules`.
If `fetchSubmodules` is `true`, `fetchFromSourcehut` uses `fetchgit`
or `fetchhg` with `fetchSubmodules` or `fetchSubrepos` set to `true`,
respectively. Otherwise, the fetcher uses `fetchzip`.
## `requireFile` {#requirefile}
`requireFile` allows requesting files that cannot be fetched automatically, but whose content is known.
This is a useful last-resort workaround for license restrictions that prohibit redistribution, or for downloads that are only accessible after authenticating interactively in a browser.
If the requested file is present in the Nix store, the resulting derivation will not be built, because its expected output is already available.
Otherwise, the builder will run, but fail with a message explaining to the user how to provide the file. The following code, for example:
```
requireFile {
name = "jdk-${version}_linux-x64_bin.tar.gz";
url = "https://www.oracle.com/java/technologies/javase-jdk11-downloads.html";
sha256 = "94bd34f85ee38d3ef59e5289ec7450b9443b924c55625661fffe66b03f2c8de2";
}
```
results in this error message:
```
***
Unfortunately, we cannot download file jdk-11.0.10_linux-x64_bin.tar.gz automatically.
Please go to https://www.oracle.com/java/technologies/javase-jdk11-downloads.html to download it yourself, and add it to the Nix store
using either
nix-store --add-fixed sha256 jdk-11.0.10_linux-x64_bin.tar.gz
or
nix-prefetch-url --type sha256 file:///path/to/jdk-11.0.10_linux-x64_bin.tar.gz
***
```

View File

@@ -1,15 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-images">
<title>Images</title>
<para>
This chapter describes tools for creating various types of images.
</para>
<xi:include href="images/appimagetools.section.xml" />
<xi:include href="images/dockertools.section.xml" />
<xi:include href="images/ocitools.section.xml" />
<xi:include href="images/snaptools.section.xml" />
<xi:include href="images/portableservice.section.xml" />
<xi:include href="images/makediskimage.section.xml" />
<xi:include href="images/binarycache.section.xml" />
</chapter>

View File

@@ -1,48 +0,0 @@
# pkgs.appimageTools {#sec-pkgs-appimageTools}
`pkgs.appimageTools` is a set of functions for extracting and wrapping [AppImage](https://appimage.org/) files. They are meant to be used if traditional packaging from source is infeasible, or it would take too long. To quickly run an AppImage file, `pkgs.appimage-run` can be used as well.
::: {.warning}
The `appimageTools` API is unstable and may be subject to backwards-incompatible changes in the future.
:::
## AppImage formats {#ssec-pkgs-appimageTools-formats}
There are different formats for AppImages, see [the specification](https://github.com/AppImage/AppImageSpec/blob/74ad9ca2f94bf864a4a0dac1f369dd4f00bd1c28/draft.md#image-format) for details.
- Type 1 images are ISO 9660 files that are also ELF executables.
- Type 2 images are ELF executables with an appended filesystem.
They can be told apart with `file -k`:
```ShellSession
$ file -k type1.AppImage
type1.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) ISO 9660 CD-ROM filesystem data 'AppImage' (Lepton 3.x), scale 0-0,
spot sensor temperature 0.000000, unit celsius, color scheme 0, calibration: offset 0.000000, slope 0.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=d629f6099d2344ad82818172add1d38c5e11bc6d, stripped\012- data
$ file -k type2.AppImage
type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x), scale 232-60668, spot sensor temperature -4.187500, color scheme 15, show scale bar, calibration: offset -0.000000, slope 0.000000 (Lepton 2.x), scale 4111-45000, spot sensor temperature 412442.250000, color scheme 3, minimum point enabled, calibration: offset -75402534979642766821519867692934234112.000000, slope 5815371847733706829839455140374904832.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=79dcc4e55a61c293c5e19edbd8d65b202842579f, stripped\012- data
```
Note how the type 1 AppImage is described as an `ISO 9660 CD-ROM filesystem`, and the type 2 AppImage is not.
## Wrapping {#ssec-pkgs-appimageTools-wrapping}
Depending on the type of AppImage you're wrapping, you'll have to use `wrapType1` or `wrapType2`.
```nix
appimageTools.wrapType2 { # or wrapType1
name = "patchwork";
src = fetchurl {
url = "https://github.com/ssbc/patchwork/releases/download/v3.11.4/Patchwork-3.11.4-linux-x86_64.AppImage";
hash = "sha256-OqTitCeZ6xmWbqYTXp8sDrmVgTNjPZNW0hzUPW++mq4=";
};
extraPkgs = pkgs: with pkgs; [ ];
}
```
- `name` specifies the name of the resulting image.
- `src` specifies the AppImage file to extract.
- `extraPkgs` allows you to pass a function to include additional packages inside the FHS environment your AppImage is going to run in. There are a few ways to learn which dependencies an application needs:
- Looking through the extracted AppImage files, reading its scripts and running `patchelf` and `ldd` on its executables. This can also be done in `appimage-run`, by setting `APPIMAGE_DEBUG_EXEC=bash`.
- Running `strace -vfefile` on the wrapped executable, looking for libraries that can't be found.

View File

@@ -1,49 +0,0 @@
# pkgs.mkBinaryCache {#sec-pkgs-binary-cache}
`pkgs.mkBinaryCache` is a function for creating Nix flat-file binary caches. Such a cache exists as a directory on disk, and can be used as a Nix substituter by passing `--substituter file:///path/to/cache` to Nix commands.
Nix packages are most commonly shared between machines using [HTTP, SSH, or S3](https://nixos.org/manual/nix/stable/package-management/sharing-packages.html), but a flat-file binary cache can still be useful in some situations. For example, you can copy it directly to another machine, or make it available on a network file system. It can also be a convenient way to make some Nix packages available inside a container via bind-mounting.
Note that this function is meant for advanced use-cases. The more idiomatic way to work with flat-file binary caches is via the [nix-copy-closure](https://nixos.org/manual/nix/stable/command-ref/nix-copy-closure.html) command. You may also want to consider [dockerTools](#sec-pkgs-dockerTools) for your containerization needs.
## Example {#sec-pkgs-binary-cache-example}
The following derivation will construct a flat-file binary cache containing the closure of `hello`.
```nix
mkBinaryCache {
rootPaths = [hello];
}
```
- `rootPaths` specifies a list of root derivations. The transitive closure of these derivations' outputs will be copied into the cache.
Here's an example of building and using the cache.
Build the cache on one machine, `host1`:
```shellSession
nix-build -E 'with import <nixpkgs> {}; mkBinaryCache { rootPaths = [hello]; }'
```
```shellSession
/nix/store/cc0562q828rnjqjyfj23d5q162gb424g-binary-cache
```
Copy the resulting directory to the other machine, `host2`:
```shellSession
scp result host2:/tmp/hello-cache
```
Substitute the derivation using the flat-file binary cache on the other machine, `host2`:
```shellSession
nix-build -A hello '<nixpkgs>' \
--option require-sigs false \
--option trusted-substituters file:///tmp/hello-cache \
--option substituters file:///tmp/hello-cache
```
```shellSession
/nix/store/gl5a41azbpsadfkfmbilh9yk40dh5dl0-hello-2.12.1
```

View File

@@ -1,539 +0,0 @@
# pkgs.dockerTools {#sec-pkgs-dockerTools}
`pkgs.dockerTools` is a set of functions for creating and manipulating Docker images according to the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#docker-image-specification-v120). Docker itself is not used to perform any of the operations done by these functions.
## buildImage {#ssec-pkgs-dockerTools-buildImage}
This function is analogous to the `docker build` command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with `docker load`.
The parameters of `buildImage` with relative example values are described below:
[]{#ex-dockerTools-buildImage}
[]{#ex-dockerTools-buildImage-runAsRoot}
```nix
buildImage {
name = "redis";
tag = "latest";
fromImage = someBaseImage;
fromImageName = null;
fromImageTag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.redis ];
pathsToLink = [ "/bin" ];
};
runAsRoot = ''
#!${pkgs.runtimeShell}
mkdir -p /data
'';
config = {
Cmd = [ "/bin/redis-server" ];
WorkingDir = "/data";
Volumes = { "/data" = { }; };
};
diskSize = 1024;
buildVMMemorySize = 512;
}
```
The above example will build a Docker image `redis/latest` from the given base image. Loading and running this image in Docker results in `redis-server` being started automatically.
- `name` specifies the name of the resulting image. This is the only required argument for `buildImage`.
- `tag` specifies the tag of the resulting image. By default it's `null`, which indicates that the nix output hash will be used as tag.
- `fromImage` is the repository tarball containing the base image. It must be a valid Docker image, such as exported by `docker save`. By default it's `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
- `fromImageName` can be used to further specify the base image within the repository, in case it contains multiple images. By default it's `null`, in which case `buildImage` will peek the first image available in the repository.
- `fromImageTag` can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's `null`, in which case `buildImage` will peek the first tag available for the base image.
- `copyToRoot` is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as `ADD contents/ /` in a `Dockerfile`. By default it's `null`.
- `runAsRoot` is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied `contents` derivation. This can be similarly seen as `RUN ...` in a `Dockerfile`.
> **_NOTE:_** Using this parameter requires the `kvm` device to be available.
- `config` is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
- `architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`.
- `diskSize` is used to specify the disk size of the VM used to build the image in megabytes. By default it's 1024 MiB.
- `buildVMMemorySize` is used to specify the memory size of the VM to build the image in megabytes. By default it's 512 MiB.
After the new layer has been created, its closure (to which `contents`, `config` and `runAsRoot` contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied.
At the end of the process, only one new single layer will be produced and added to the resulting image.
The resulting repository will only list the single image `image/tag`. In the case of [the `buildImage` example](#ex-dockerTools-buildImage), it would be `redis/latest`.
It is possible to inspect the arguments with which an image was built using its `buildArgs` attribute.
> **_NOTE:_** If you see errors similar to `getProtocolByName: does not exist (no such protocol name: tcp)` you may need to add `pkgs.iana-etc` to `contents`.
> **_NOTE:_** If you see errors similar to `Error_Protocol ("certificate has unknown CA",True,UnknownCa)` you may need to add `pkgs.cacert` to `contents`.
By default `buildImage` will use a static date of one second past the UNIX Epoch. This allows `buildImage` to produce binary reproducible images. When listing images with `docker images`, the newly created images will be listed like this:
```ShellSession
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest 08c791c7846e 48 years ago 25.2MB
```
You can break binary reproducibility but have a sorted, meaningful `CREATED` column by setting `created` to `now`.
```nix
pkgs.dockerTools.buildImage {
name = "hello";
tag = "latest";
created = "now";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.hello ];
pathsToLink = [ "/bin" ];
};
config.Cmd = [ "/bin/hello" ];
}
```
Now the Docker CLI will display a reasonable date and sort the images as expected:
```ShellSession
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest de2bf4786de6 About a minute ago 25.2MB
```
However, the produced images will not be binary reproducible.
## buildLayeredImage {#ssec-pkgs-dockerTools-buildLayeredImage}
Create a Docker image with many of the store paths being on their own layer to improve sharing between images. The image is realized into the Nix store as a gzipped tarball. Depending on the intended usage, many users might prefer to use `streamLayeredImage` instead, which this function uses internally.
`name`
: The name of the resulting image.
`tag` _optional_
: Tag of the generated image.
*Default:* the output path's hash
`fromImage` _optional_
: The repository tarball containing the base image. It must be a valid Docker image, such as one exported by `docker save`.
*Default:* `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
`contents` _optional_
: Top-level paths in the container. Either a single derivation, or a list of derivations.
*Default:* `[]`
`config` _optional_
`architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`.
: Run-time configuration of the container. A full list of the options available is in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
*Default:* `{}`
`created` _optional_
: Date and time the layers were created. Follows the same `now` exception supported by `buildImage`.
*Default:* `1970-01-01T00:00:01Z`
`maxLayers` _optional_
: Maximum number of layers to create.
*Default:* `100`
*Maximum:* `125`
`extraCommands` _optional_
: Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files.
`fakeRootCommands` _optional_
: Shell commands to run while creating the archive for the final layer in a fakeroot environment. Unlike `extraCommands`, you can run `chown` to change the owners of the files in the archive, changing fakeroot's state instead of the real filesystem. The latter would require privileges that the build user does not have. Static binaries do not interact with the fakeroot environment. By default all files in the archive will be owned by root.
`enableFakechroot` _optional_
: Whether to run in `fakeRootCommands` in `fakechroot`, making programs behave as though `/` is the root of the image being created, while files in the Nix store are available as usual. This allows scripts that perform installation in `/` to work as expected. Considering that `fakechroot` is implemented via the same mechanism as `fakeroot`, the same caveats apply.
*Default:* `false`
### Behavior of `contents` in the final image {#dockerTools-buildLayeredImage-arg-contents}
Each path directly listed in `contents` will have a symlink in the root of the image.
For example:
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
contents = [ pkgs.hello ];
}
```
will create symlinks for all the paths in the `hello` package:
```ShellSession
/bin/hello -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/bin/hello
/share/info/hello.info -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/info/hello.info
/share/locale/bg/LC_MESSAGES/hello.mo -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/locale/bg/LC_MESSAGES/hello.mo
```
### Automatic inclusion of `config` references {#dockerTools-buildLayeredImage-arg-config}
The closure of `config` is automatically included in the closure of the final image.
This allows you to make very simple Docker images with very little code. This container will start up and run `hello`:
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
}
```
### Adjusting `maxLayers` {#dockerTools-buildLayeredImage-arg-maxLayers}
Increasing the `maxLayers` increases the number of layers which have a chance to be shared between different images.
Modern Docker installations support up to 128 layers, but older versions support as few as 42.
If the produced image will not be extended by other Docker builds, it is safe to set `maxLayers` to `128`. However, it will be impossible to extend the image further.
The first (`maxLayers-2`) most "popular" paths will have their own individual layers, then layer \#`maxLayers-1` will contain all the remaining "unpopular" paths, and finally layer \#`maxLayers` will contain the Image configuration.
Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image.
## streamLayeredImage {#ssec-pkgs-dockerTools-streamLayeredImage}
Builds a script which, when run, will stream an uncompressed tarball of a Docker image to stdout. The arguments to this function are as for `buildLayeredImage`. This method of constructing an image does not realize the image into the Nix store, so it saves on IO and disk/cache space, particularly with large images.
The image produced by running the output script can be piped directly into `docker load`, to load it into the local docker daemon:
```ShellSession
$(nix-build) | docker load
```
Alternatively, the image be piped via `gzip` into `skopeo`, e.g., to copy it into a registry:
```ShellSession
$(nix-build) | gzip --fast | skopeo copy docker-archive:/dev/stdin docker://some_docker_registry/myimage:tag
```
## pullImage {#ssec-pkgs-dockerTools-fetchFromRegistry}
This function is analogous to the `docker pull` command, in that it can be used to pull a Docker image from a Docker registry. By default [Docker Hub](https://hub.docker.com/) is used to pull images.
Its parameters are described in the example below:
```nix
pullImage {
imageName = "nixos/nix";
imageDigest =
"sha256:473a2b527958665554806aea24d0131bacec46d23af09fef4598eeab331850fa";
finalImageName = "nix";
finalImageTag = "2.11.1";
sha256 = "sha256-qvhj+Hlmviz+KEBVmsyPIzTB3QlVAFzwAY1zDPIBGxc=";
os = "linux";
arch = "x86_64";
}
```
- `imageName` specifies the name of the image to be downloaded, which can also include the registry namespace (e.g. `nixos`). This argument is required.
- `imageDigest` specifies the digest of the image to be downloaded. This argument is required.
- `finalImageName`, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to `imageName`.
- `finalImageTag`, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's `latest`.
- `sha256` is the checksum of the whole fetched image. This argument is required.
- `os`, if specified, is the operating system of the fetched image. By default it's `linux`.
- `arch`, if specified, is the cpu architecture of the fetched image. By default it's `x86_64`.
`nix-prefetch-docker` command can be used to get required image parameters:
```ShellSession
$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5
```
Since a given `imageName` may transparently refer to a manifest list of images which support multiple architectures and/or operating systems, you can supply the `--os` and `--arch` arguments to specify exactly which image you want. By default it will match the OS and architecture of the host the command is run on.
```ShellSession
$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux
```
Desired image name and tag can be set using `--final-image-name` and `--final-image-tag` arguments:
```ShellSession
$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod
```
## exportImage {#ssec-pkgs-dockerTools-exportImage}
This function is analogous to the `docker export` command, in that it can be used to flatten a Docker image that contains multiple layers. It is in fact the result of the merge of all the layers of the image. As such, the result is suitable for being imported in Docker with `docker import`.
> **_NOTE:_** Using this function requires the `kvm` device to be available.
The parameters of `exportImage` are the following:
```nix
exportImage {
fromImage = someLayeredImage;
fromImageName = null;
fromImageTag = null;
name = someLayeredImage.name;
}
```
The parameters relative to the base image have the same synopsis as described in [buildImage](#ssec-pkgs-dockerTools-buildImage), except that `fromImage` is the only required argument in this case.
The `name` argument is the name of the derivation output, which defaults to `fromImage.name`.
## Environment Helpers {#ssec-pkgs-dockerTools-helpers}
Some packages expect certain files to be available globally.
When building an image from scratch (i.e. without `fromImage`), these files are missing.
`pkgs.dockerTools` provides some helpers to set up an environment with the necessary files.
You can include them in `copyToRoot` like this:
```nix
buildImage {
name = "environment-example";
copyToRoot = with pkgs.dockerTools; [
usrBinEnv
binSh
caCertificates
fakeNss
];
}
```
### usrBinEnv {#sssec-pkgs-dockerTools-helpers-usrBinEnv}
This provides the `env` utility at `/usr/bin/env`.
### binSh {#sssec-pkgs-dockerTools-helpers-binSh}
This provides `bashInteractive` at `/bin/sh`.
### caCertificates {#sssec-pkgs-dockerTools-helpers-caCertificates}
This sets up `/etc/ssl/certs/ca-certificates.crt`.
### fakeNss {#sssec-pkgs-dockerTools-helpers-fakeNss}
Provides `/etc/passwd` and `/etc/group` that contain root and nobody.
Useful when packaging binaries that insist on using nss to look up
username/groups (like nginx).
### shadowSetup {#ssec-pkgs-dockerTools-shadowSetup}
This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a [`buildImage` `runAsRoot`](#ex-dockerTools-buildImage-runAsRoot) script for cases like in the example below:
```nix
buildImage {
name = "shadow-basic";
runAsRoot = ''
#!${pkgs.runtimeShell}
${pkgs.dockerTools.shadowSetup}
groupadd -r redis
useradd -r -g redis redis
mkdir /data
chown redis:redis /data
'';
}
```
Creating base files like `/etc/passwd` or `/etc/login.defs` is necessary for shadow-utils to manipulate users and groups.
## fakeNss {#ssec-pkgs-dockerTools-fakeNss}
If your primary goal is providing a basic skeleton for user lookups to work,
and/or a lesser privileged user, adding `pkgs.fakeNss` to
the container image root might be the better choice than a custom script
running `useradd` and friends.
It provides a `/etc/passwd` and `/etc/group`, containing `root` and `nobody`
users and groups.
It also provides a `/etc/nsswitch.conf`, configuring NSS host resolution to
first check `/etc/hosts`, before checking DNS, as the default in the absence of
a config file (`dns [!UNAVAIL=return] files`) is quite unexpected.
You can pair it with `binSh`, which provides `bin/sh` as a symlink
to `bashInteractive` (as `/bin/sh` is configured as a shell).
```nix
buildImage {
name = "shadow-basic";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ binSh pkgs.fakeNss ];
pathsToLink = [ "/bin" "/etc" "/var" ];
};
}
```
## buildNixShellImage {#ssec-pkgs-dockerTools-buildNixShellImage}
Create a Docker image that sets up an environment similar to that of running `nix-shell` on a derivation.
When run in Docker, this environment somewhat resembles the Nix sandbox typically used by `nix-build`, with a major difference being that access to the internet is allowed.
It additionally also behaves like an interactive `nix-shell`, running things like `shellHook` and setting an interactive prompt.
If the derivation is fully buildable (i.e. `nix-build` can be used on it), running `buildDerivation` inside such a Docker image will build the derivation, with all its outputs being available in the correct `/nix/store` paths, pointed to by the respective environment variables like `$out`, etc.
::: {.warning}
The behavior doesn't match `nix-shell` or `nix-build` exactly and this function is known not to work correctly for e.g. fixed-output derivations, content-addressed derivations, impure derivations and other special types of derivations.
:::
### Arguments {#ssec-pkgs-dockerTools-buildNixShellImage-arguments}
`drv`
: The derivation on which to base the Docker image.
Adding packages to the Docker image is possible by e.g. extending the list of `nativeBuildInputs` of this derivation like
```nix
buildNixShellImage {
drv = someDrv.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs or [] ++ [
somethingExtra
];
});
# ...
}
```
Similarly, you can extend the image initialization script by extending `shellHook`
`name` _optional_
: The name of the resulting image.
*Default:* `drv.name + "-env"`
`tag` _optional_
: Tag of the generated image.
*Default:* the resulting image derivation output path's hash
`uid`/`gid` _optional_
: The user/group ID to run the container as. This is like a `nixbld` build user.
*Default:* 1000/1000
`homeDirectory` _optional_
: The home directory of the user the container is running as
*Default:* `/build`
`shell` _optional_
: The path to the `bash` binary to use as the shell. This shell is started when running the image.
*Default:* `pkgs.bashInteractive + "/bin/bash"`
`command` _optional_
: Run this command in the environment of the derivation, in an interactive shell. See the `--command` option in the [`nix-shell` documentation](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html?highlight=nix-shell#options).
*Default:* (none)
`run` _optional_
: Same as `command`, but runs the command in a non-interactive shell instead. See the `--run` option in the [`nix-shell` documentation](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html?highlight=nix-shell#options).
*Default:* (none)
### Example {#ssec-pkgs-dockerTools-buildNixShellImage-example}
The following shows how to build the `pkgs.hello` package inside a Docker container built with `buildNixShellImage`.
```nix
with import <nixpkgs> {};
dockerTools.buildNixShellImage {
drv = hello;
}
```
Build the derivation:
```console
nix-build hello.nix
```
these 8 derivations will be built:
/nix/store/xmw3a5ln29rdalavcxk1w3m4zb2n7kk6-nix-shell-rc.drv
...
Creating layer 56 from paths: ['/nix/store/crpnj8ssz0va2q0p5ibv9i6k6n52gcya-stdenv-linux']
Creating layer 57 with customisation...
Adding manifests...
Done.
/nix/store/cpyn1lc897ghx0rhr2xy49jvyn52bazv-hello-2.12-env.tar.gz
Load the image:
```console
docker load -i result
```
0d9f4c4cd109: Loading layer [==================================================>] 2.56MB/2.56MB
...
ab1d897c0697: Loading layer [==================================================>] 10.24kB/10.24kB
Loaded image: hello-2.12-env:pgj9h98nal555415faa43vsydg161bdz
Run the container:
```console
docker run -it hello-2.12-env:pgj9h98nal555415faa43vsydg161bdz
```
[nix-shell:/build]$
In the running container, run the build:
```console
buildDerivation
```
unpacking sources
unpacking source archive /nix/store/8nqv6kshb3vs5q5bs2k600xpj5bkavkc-hello-2.12.tar.gz
...
patching script interpreter paths in /nix/store/z5wwy5nagzy15gag42vv61c2agdpz2f2-hello-2.12
checking for references to /build/ in /nix/store/z5wwy5nagzy15gag42vv61c2agdpz2f2-hello-2.12...
Check the build result:
```console
$out/bin/hello
```
Hello, world!

View File

@@ -1,108 +0,0 @@
# `<nixpkgs/nixos/lib/make-disk-image.nix>` {#sec-make-disk-image}
`<nixpkgs/nixos/lib/make-disk-image.nix>` is a function to create _disk images_ in multiple formats: raw, QCOW2 (QEMU), QCOW2-Compressed (compressed version), VDI (VirtualBox), VPC (VirtualPC).
This function can create images in two ways:
- using `cptofs` without any virtual machine to create a Nix store disk image,
- using a virtual machine to create a full NixOS installation.
When testing early-boot or lifecycle parts of NixOS such as a bootloader or multiple generations, it is necessary to opt for a full NixOS system installation.
Whereas for many web servers, applications, it is possible to work with a Nix store only disk image and is faster to build.
NixOS tests also use this function when preparing the VM. The `cptofs` method is used when `virtualisation.useBootLoader` is false (the default). Otherwise the second method is used.
## Features {#sec-make-disk-image-features}
For reference, read the function signature source code for documentation on arguments: <https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/make-disk-image.nix>.
Features are separated in various sections depending on if you opt for a Nix-store only image or a full NixOS image.
### Common {#sec-make-disk-image-features-common}
- arbitrary NixOS configuration
- automatic or bound disk size: `diskSize` parameter, `additionalSpace` can be set when `diskSize` is `auto` to add a constant of disk space
- multiple partition table layouts: EFI, legacy, legacy + GPT, hybrid, none through `partitionTableType` parameter
- OVMF or EFI firmwares and variables templates can be customized
- root filesystem `fsType` can be customized to whatever `mkfs.${fsType}` exist during operations
- root filesystem label can be customized, defaults to `nix-store` if it's a Nix store image, otherwise `nixpkgs/nixos`
- arbitrary code can be executed after disk image was produced with `postVM`
- the current nixpkgs can be realized as a channel in the disk image, which will change the hash of the image when the sources are updated
- additional store paths can be provided through `additionalPaths`
### Full NixOS image {#sec-make-disk-image-features-full-image}
- arbitrary contents with permissions can be placed in the target filesystem using `contents`
- a `/etc/nixpkgs/nixos/configuration.nix` can be provided through `configFile`
- bootloaders are supported
- EFI variables can be mutated during image production and the result is exposed in `$out`
- boot partition size when partition table is `efi` or `hybrid`
### On bit-to-bit reproducibility {#sec-make-disk-image-features-reproducibility}
Images are **NOT** deterministic, please do not hesitate to try to fix this, source of determinisms are (not exhaustive) :
- bootloader installation have timestamps
- SQLite Nix store database contain registration times
- `/etc/shadow` is in a non-deterministic order
A `deterministic` flag is available for best efforts determinism.
## Usage {#sec-make-disk-image-usage}
To produce a Nix-store only image:
```nix
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
make-disk-image = import <nixpkgs/nixos/lib/make-disk-image.nix>;
in
make-disk-image {
inherit pkgs lib;
config = {};
additionalPaths = [ ];
format = "qcow2";
onlyNixStore = true;
partitionTableType = "none";
installBootLoader = false;
touchEFIVars = false;
diskSize = "auto";
additionalSpace = "0M"; # Defaults to 512M.
copyChannel = false;
}
```
Some arguments can be left out, they are shown explicitly for the sake of the example.
Building this derivation will provide a QCOW2 disk image containing only the Nix store and its registration information.
To produce a NixOS installation image disk with UEFI and bootloader installed:
```nix
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
make-disk-image = import <nixpkgs/nixos/lib/make-disk-image.nix>;
evalConfig = import <nixpkgs/nixos/lib/eval-config.nix>;
in
make-disk-image {
inherit pkgs lib;
config = evalConfig {
modules = [
{
fileSystems."/" = { device = "/dev/vda"; fsType = "ext4"; autoFormat = true; };
boot.grub.device = "/dev/vda";
}
];
};
format = "qcow2";
onlyNixStore = false;
partitionTableType = "legacy+gpt";
installBootLoader = true;
touchEFIVars = true;
diskSize = "auto";
additionalSpace = "0M"; # Defaults to 512M.
copyChannel = false;
memSize = 2048; # Qemu VM memory size in megabytes. Defaults to 1024M.
}
```

View File

@@ -1,37 +0,0 @@
# pkgs.ociTools {#sec-pkgs-ociTools}
`pkgs.ociTools` is a set of functions for creating containers according to the [OCI container specification v1.0.0](https://github.com/opencontainers/runtime-spec). Beyond that, it makes no assumptions about the container runner you choose to use to run the created container.
## buildContainer {#ssec-pkgs-ociTools-buildContainer}
This function creates a simple OCI container that runs a single command inside of it. An OCI container consists of a `config.json` and a rootfs directory. The nix store of the container will contain all referenced dependencies of the given command.
The parameters of `buildContainer` with an example value are described below:
```nix
buildContainer {
args = [
(with pkgs;
writeScript "run.sh" ''
#!${bash}/bin/bash
exec ${bash}/bin/bash
'').outPath
];
mounts = {
"/data" = {
type = "none";
source = "/var/lib/mydata";
options = [ "bind" ];
};
};
readonly = false;
}
```
- `args` specifies a set of arguments to run inside the container. This is the only required argument for `buildContainer`. All referenced packages inside the derivation will be made available inside the container.
- `mounts` specifies additional mount points chosen by the user. By default only a minimal set of necessary filesystems are mounted into the container (e.g procfs, cgroupfs)
- `readonly` makes the container's rootfs read-only if it is set to true. The default value is false `false`.

View File

@@ -1,81 +0,0 @@
# pkgs.portableService {#sec-pkgs-portableService}
`pkgs.portableService` is a function to create _portable service images_,
as read-only, immutable, `squashfs` archives.
systemd supports a concept of [Portable Services](https://systemd.io/PORTABLE_SERVICES/).
Portable Services are a delivery method for system services that uses two specific features of container management:
* Applications are bundled. I.e. multiple services, their binaries and
all their dependencies are packaged in an image, and are run directly from it.
* Stricter default security policies, i.e. sandboxing of applications.
This allows using Nix to build images which can be run on many recent Linux distributions.
The primary tool for interacting with Portable Services is `portablectl`,
and they are managed by the `systemd-portabled` system service.
::: {.note}
Portable services are supported starting with systemd 239 (released on 2018-06-22).
:::
A very simple example of using `portableService` is described below:
[]{#ex-pkgs-portableService}
```nix
pkgs.portableService {
pname = "demo";
version = "1.0";
units = [ demo-service demo-socket ];
}
```
The above example will build an squashfs archive image in `result/$pname_$version.raw`. The image will contain the
file system structure as required by the portable service specification, and a subset of the Nix store with all the
dependencies of the two derivations in the `units` list.
`units` must be a list of derivations, and their names must be prefixed with the service name (`"demo"` in this case).
Otherwise `systemd-portabled` will ignore them.
::: {.note}
The `.raw` file extension of the image is required by the portable services specification.
:::
Some other options available are:
- `description`, `homepage`
Are added to the `/etc/os-release` in the image and are shown by the portable services tooling.
Default to empty values, not added to os-release.
- `symlinks`
A list of attribute sets {object, symlink}. Symlinks will be created in the root filesystem of the image to
objects in the Nix store. Defaults to an empty list.
- `contents`
A list of additional derivations to be included in the image Nix store, as-is. Defaults to an empty list.
- `squashfsTools`
Defaults to `pkgs.squashfsTools`, allows you to override the package that provides `mksquashfs`.
- `squash-compression`, `squash-block-size`
Options to `mksquashfs`. Default to `"xz -Xdict-size 100%"` and `"1M"` respectively.
A typical usage of `symlinks` would be:
```nix
symlinks = [
{ object = "${pkgs.cacert}/etc/ssl"; symlink = "/etc/ssl"; }
{ object = "${pkgs.bash}/bin/bash"; symlink = "/bin/sh"; }
{ object = "${pkgs.php}/bin/php"; symlink = "/usr/bin/php"; }
];
```
to create these symlinks for legacy applications that assume them existing globally.
Once the image is created, and deployed on a host in `/var/lib/portables/`, you can attach the image and run the service. As root run:
```console
portablectl attach demo_1.0.raw
systemctl enable --now demo.socket
systemctl enable --now demo.service
```
::: {.note}
See the [man page](https://www.freedesktop.org/software/systemd/man/portablectl.html) of `portablectl` for more info on its usage.
:::

View File

@@ -1,71 +0,0 @@
# pkgs.snapTools {#sec-pkgs-snapTools}
`pkgs.snapTools` is a set of functions for creating Snapcraft images. Snap and Snapcraft is not used to perform these operations.
## The makeSnap Function {#ssec-pkgs-snapTools-makeSnap-signature}
`makeSnap` takes a single named argument, `meta`. This argument mirrors [the upstream `snap.yaml` format](https://docs.snapcraft.io/snap-format) exactly.
The `base` should not be specified, as `makeSnap` will force set it.
Currently, `makeSnap` does not support creating GUI stubs.
## Build a Hello World Snap {#ssec-pkgs-snapTools-build-a-snap-hello}
The following expression packages GNU Hello as a Snapcraft snap.
``` {#ex-snapTools-buildSnap-hello .nix}
let
inherit (import <nixpkgs> { }) snapTools hello;
in snapTools.makeSnap {
meta = {
name = "hello";
summary = hello.meta.description;
description = hello.meta.longDescription;
architectures = [ "amd64" ];
confinement = "strict";
apps.hello.command = "${hello}/bin/hello";
};
}
```
`nix-build` this expression and install it with `snap install ./result --dangerous`. `hello` will now be the Snapcraft version of the package.
## Build a Graphical Snap {#ssec-pkgs-snapTools-build-a-snap-firefox}
Graphical programs require many more integrations with the host. This example uses Firefox as an example because it is one of the most complicated programs we could package.
``` {#ex-snapTools-buildSnap-firefox .nix}
let
inherit (import <nixpkgs> { }) snapTools firefox;
in snapTools.makeSnap {
meta = {
name = "nix-example-firefox";
summary = firefox.meta.description;
architectures = [ "amd64" ];
apps.nix-example-firefox = {
command = "${firefox}/bin/firefox";
plugs = [
"pulseaudio"
"camera"
"browser-support"
"avahi-observe"
"cups-control"
"desktop"
"desktop-legacy"
"gsettings"
"home"
"network"
"mount-observe"
"removable-media"
"x11"
];
};
confinement = "strict";
};
}
```
`nix-build` this expression and install it with `snap install ./result --dangerous`. `nix-example-firefox` will now be the Snapcraft version of the Firefox package.
The specific meaning behind plugs can be looked up in the [Snapcraft interface documentation](https://docs.snapcraft.io/supported-interfaces).

View File

@@ -1,129 +0,0 @@
# Cataclysm: Dark Days Ahead {#cataclysm-dark-days-ahead}
## How to install Cataclysm DDA {#how-to-install-cataclysm-dda}
To install the latest stable release of Cataclysm DDA to your profile, execute
`nix-env -f "<nixpkgs>" -iA cataclysm-dda`. For the curses build (build
without tiles), install `cataclysmDDA.stable.curses`. Note: `cataclysm-dda` is
an alias to `cataclysmDDA.stable.tiles`.
If you like access to a development build of your favorite git revision,
override `cataclysm-dda-git` (or `cataclysmDDA.git.curses` if you like curses
build):
```nix
cataclysm-dda-git.override {
version = "YYYY-MM-DD";
rev = "YOUR_FAVORITE_REVISION";
sha256 = "CHECKSUM_OF_THE_REVISION";
}
```
The sha256 checksum can be obtained by
```sh
nix-prefetch-url --unpack "https://github.com/CleverRaven/Cataclysm-DDA/archive/${YOUR_FAVORITE_REVISION}.tar.gz"
```
The default configuration directory is `~/.cataclysm-dda`. If you prefer
`$XDG_CONFIG_HOME/cataclysm-dda`, override the derivation:
```nix
cataclysm-dda.override {
useXdgDir = true;
}
```
## Important note for overriding packages {#important-note-for-overriding-packages}
After applying `overrideAttrs`, you need to fix `passthru.pkgs` and
`passthru.withMods` attributes either manually or by using `attachPkgs`:
```nix
let
# You enabled parallel building.
myCDDA = cataclysm-dda-git.overrideAttrs (_: {
enableParallelBuilding = true;
});
# Unfortunately, this refers to the package before overriding and
# parallel building is still disabled.
badExample = myCDDA.withMods (_: []);
inherit (cataclysmDDA) attachPkgs pkgs wrapCDDA;
# You can fix it by hand
goodExample1 = myCDDA.overrideAttrs (old: {
passthru = old.passthru // {
pkgs = pkgs.override { build = goodExample1; };
withMods = wrapCDDA goodExample1;
};
});
# or by using a helper function `attachPkgs`.
goodExample2 = attachPkgs pkgs myCDDA;
in
# badExample # parallel building disabled
# goodExample1.withMods (_: []) # parallel building enabled
goodExample2.withMods (_: []) # parallel building enabled
```
## Customizing with mods {#customizing-with-mods}
To install Cataclysm DDA with mods of your choice, you can use `withMods`
attribute:
```nix
cataclysm-dda.withMods (mods: with mods; [
tileset.UndeadPeople
])
```
All mods, soundpacks, and tilesets available in nixpkgs are found in
`cataclysmDDA.pkgs`.
Here is an example to modify existing mods and/or add more mods not available
in nixpkgs:
```nix
let
customMods = self: super: lib.recursiveUpdate super {
# Modify existing mod
tileset.UndeadPeople = super.tileset.UndeadPeople.overrideAttrs (old: {
# If you like to apply a patch to the tileset for example
patches = [ ./path/to/your.patch ];
});
# Add another mod
mod.Awesome = cataclysmDDA.buildMod {
modName = "Awesome";
version = "0.x";
src = fetchFromGitHub {
owner = "Someone";
repo = "AwesomeMod";
rev = "...";
hash = "...";
};
# Path to be installed in the unpacked source (default: ".")
modRoot = "contents/under/this/path/will/be/installed";
};
# Add another soundpack
soundpack.Fantastic = cataclysmDDA.buildSoundPack {
# ditto
};
# Add another tileset
tileset.SuperDuper = cataclysmDDA.buildTileSet {
# ditto
};
};
in
cataclysm-dda.withMods (mods: with mods.extend customMods; [
tileset.UndeadPeople
mod.Awesome
soundpack.Fantastic
tileset.SuperDuper
])
```

View File

@@ -1,32 +0,0 @@
# Citrix Workspace {#sec-citrix}
The [Citrix Workspace App](https://www.citrix.com/products/workspace-app/) is a remote desktop viewer which provides access to [XenDesktop](https://www.citrix.com/products/xenapp-xendesktop/) installations.
## Basic usage {#sec-citrix-base}
The tarball archive needs to be downloaded manually, as the license agreements of the vendor for [Citrix Workspace](https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html) needs to be accepted first. Then run `nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz`. With the archive available in the store, the package can be built and installed with Nix.
## Citrix Self-service {#sec-citrix-selfservice}
The [self-service](https://support.citrix.com/article/CTX200337) is an application managing Citrix desktops and applications. Please note that this feature only works with at least citrix_workspace_20_06_0 and later versions.
In order to set this up, you first have to [download the `.cr` file from the Netscaler Gateway](https://its.uiowa.edu/support/article/102186). After that, you can configure the `selfservice` like this:
```ShellSession
$ storebrowse -C ~/Downloads/receiverconfig.cr
$ selfservice
```
## Custom certificates {#sec-citrix-custom-certs}
The `Citrix Workspace App` in `nixpkgs` trusts several certificates [from the Mozilla database](https://curl.haxx.se/docs/caextract.html) by default. However, several companies using Citrix might require their own corporate certificate. On distros with imperative packaging, these certs can be stored easily in [`$ICAROOT`](https://citrix.github.io/receiver-for-linux-command-reference/), however this directory is a store path in `nixpkgs`. In order to work around this issue, the package provides a simple mechanism to add custom certificates without rebuilding the entire package using `symlinkJoin`:
```nix
with import <nixpkgs> { config.allowUnfree = true; };
let
extraCerts = [
./custom-cert-1.pem
./custom-cert-2.pem # ...
];
in citrix_workspace.override { inherit extraCerts; }
```

View File

@@ -1,13 +0,0 @@
# DLib {#dlib}
[DLib](http://dlib.net/) is a modern, C++-based toolkit which provides several machine learning algorithms.
## Compiling without AVX support {#compiling-without-avx-support}
Especially older CPUs don't support [AVX](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions) (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms.
On the affected hardware errors like `Illegal instruction` will occur. In those cases AVX support needs to be disabled:
```nix
self: super: { dlib = super.dlib.override { avxSupport = false; }; }
```

View File

@@ -1,64 +0,0 @@
# Eclipse {#sec-eclipse}
The Nix expressions related to the Eclipse platform and IDE are in [`pkgs/applications/editors/eclipse`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse).
Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
```ShellSession
$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description
```
Once an Eclipse variant is installed, it can be run using the `eclipse` command, as expected. From within Eclipse, it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
If you prefer to install plugins in a more declarative manner, then Nixpkgs also offer a number of Eclipse plugins that can be installed in an _Eclipse environment_. This type of environment is created using the function `eclipseWithPlugins` found inside the `nixpkgs.eclipses` attribute set. This function takes as argument `{ eclipse, plugins ? [], jvmArgs ? [] }` where `eclipse` is a one of the Eclipse packages described above, `plugins` is a list of plugin derivations, and `jvmArgs` is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add:
```nix
packageOverrides = pkgs: {
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
eclipse = eclipse-platform;
jvmArgs = [ "-Xmx2048m" ];
plugins = [ plugins.color-theme ];
};
}
```
to your Nixpkgs configuration (`~/.config/nixpkgs/config.nix`) and install it by running `nix-env -f '<nixpkgs>' -iA myEclipse` and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using `eclipseWithPlugins` by running:
```ShellSession
$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
```
If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the `buildEclipseUpdateSite` and `buildEclipsePlugin` functions found in the `nixpkgs.eclipses.plugins` attribute set. Use the `buildEclipseUpdateSite` function to install a plugin distributed as an Eclipse update site. This function takes `{ name, src }` as argument, where `src` indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available, then the `buildEclipsePlugin` function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument `{ name, srcFeature, srcPlugin }` where `srcFeature` and `srcPlugin` are the feature and plugin JARs, respectively.
Expanding the previous example with two plugins using the above functions, we have:
```nix
packageOverrides = pkgs: {
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
eclipse = eclipse-platform;
jvmArgs = [ "-Xmx2048m" ];
plugins = [
plugins.color-theme
(plugins.buildEclipsePlugin {
name = "myplugin1-1.0";
srcFeature = fetchurl {
url = "http:///features/myplugin1.jar";
hash = "sha256-123";
};
srcPlugin = fetchurl {
url = "http:///plugins/myplugin1.jar";
hash = "sha256-123";
};
});
(plugins.buildEclipseUpdateSite {
name = "myplugin2-1.0";
src = fetchurl {
stripRoot = false;
url = "http:///myplugin2.zip";
hash = "sha256-123";
};
});
];
};
}
```

View File

@@ -1,11 +0,0 @@
# Elm {#sec-elm}
To start a development environment, run:
```ShellSession
nix-shell -p elmPackages.elm elmPackages.elm-format
```
To update the Elm compiler, see `nixpkgs/pkgs/development/compilers/elm/README.md`.
To package Elm applications, [read about elm2nix](https://github.com/hercules-ci/elm2nix#elm2nix).

View File

@@ -1,119 +0,0 @@
# Emacs {#sec-emacs}
## Configuring Emacs {#sec-emacs-config}
The Emacs package comes with some extra helpers to make it easier to configure. `emacs.pkgs.withPackages` allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use `company` `counsel`, `flycheck`, `ivy`, `magit`, `projectile`, and `use-package` you could use this as a `~/.config/nixpkgs/config.nix` override:
```nix
{
packageOverrides = pkgs: with pkgs; {
myEmacs = emacs.pkgs.withPackages (epkgs: (with epkgs.melpaStablePackages; [
company
counsel
flycheck
ivy
magit
projectile
use-package
]));
}
}
```
You can install it like any other packages via `nix-env -iA myEmacs`. However, this will only install those packages. It will not `configure` them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provides a `default.el` file in `/share/emacs/site-start/`. Emacs knows to load this file automatically when it starts.
```nix
{
packageOverrides = pkgs: with pkgs; rec {
myEmacsConfig = writeText "default.el" ''
;; initialize package
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile
(require 'use-package))
;; load some packages
(use-package company
:bind ("<C-tab>" . company-complete)
:diminish company-mode
:commands (company-mode global-company-mode)
:defer 1
:config
(global-company-mode))
(use-package counsel
:commands (counsel-descbinds)
:bind (([remap execute-extended-command] . counsel-M-x)
("C-x C-f" . counsel-find-file)
("C-c g" . counsel-git)
("C-c j" . counsel-git-grep)
("C-c k" . counsel-ag)
("C-x l" . counsel-locate)
("M-y" . counsel-yank-pop)))
(use-package flycheck
:defer 2
:config (global-flycheck-mode))
(use-package ivy
:defer 1
:bind (("C-c C-r" . ivy-resume)
("C-x C-b" . ivy-switch-buffer)
:map ivy-minibuffer-map
("C-j" . ivy-call))
:diminish ivy-mode
:commands ivy-mode
:config
(ivy-mode 1))
(use-package magit
:defer
:if (executable-find "git")
:bind (("C-x g" . magit-status)
("C-x G" . magit-dispatch-popup))
:init
(setq magit-completing-read-function 'ivy-completing-read))
(use-package projectile
:commands projectile-mode
:bind-keymap ("C-c p" . projectile-command-map)
:defer 5
:config
(projectile-global-mode))
'';
myEmacs = emacs.pkgs.withPackages (epkgs: (with epkgs.melpaStablePackages; [
(runCommand "default.el" {} ''
mkdir -p $out/share/emacs/site-lisp
cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
'')
company
counsel
flycheck
ivy
magit
projectile
use-package
]));
};
}
```
This provides a fairly full Emacs start file. It will load in addition to the user's personal config. You can always disable it by passing `-q` to the Emacs command.
Sometimes `emacs.pkgs.withPackages` is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in `pkgs/top-level/emacs-packages.nix`). But you can't control these priorities when some package is installed as a dependency. You can override it on a per-package-basis, providing all the required dependencies manually, but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package, you can use `overrideScope'`.
```nix
overrides = self: super: rec {
haskell-mode = self.melpaPackages.haskell-mode;
...
};
((emacsPackagesFor emacs).overrideScope' overrides).withPackages
(p: with p; [
# here both these package will use haskell-mode of our own choice
ghc-mod
dante
])
```

View File

@@ -1,18 +0,0 @@
# /etc files {#etc}
Certain calls in glibc require access to runtime files found in `/etc` such as `/etc/protocols` or `/etc/services` -- [getprotobyname](https://linux.die.net/man/3/getprotobyname) is one such function.
On non-NixOS distributions these files are typically provided by packages (i.e., [netbase](https://packages.debian.org/sid/netbase)) if not already pre-installed in your distribution. This can cause non-reproducibility for code if they rely on these files being present.
If [iana-etc](https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.iana-etc.x86_64-linux) is part of your `buildInputs`, then it will set the environment variables `NIX_ETC_PROTOCOLS` and `NIX_ETC_SERVICES` to the corresponding files in the package through a setup hook.
```bash
> nix-shell -p iana-etc
[nix-shell:~]$ env | grep NIX_ETC
NIX_ETC_SERVICES=/nix/store/aj866hr8fad8flnggwdhrldm0g799ccz-iana-etc-20210225/etc/services
NIX_ETC_PROTOCOLS=/nix/store/aj866hr8fad8flnggwdhrldm0g799ccz-iana-etc-20210225/etc/protocols
```
Nixpkg's version of [glibc](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/glibc/default.nix) has been patched to check for the existence of these environment variables. If the environment variables are *not* set, then it will attempt to find the files at the default location within `/etc`.

View File

@@ -1,55 +0,0 @@
# Firefox {#sec-firefox}
## Build wrapped Firefox with extensions and policies {#build-wrapped-firefox-with-extensions-and-policies}
The `wrapFirefox` function allows to pass policies, preferences and extensions that are available to Firefox. With the help of `fetchFirefoxAddon` this allows to build a Firefox version that already comes with add-ons pre-installed:
```nix
{
# Nix firefox addons only work with the firefox-esr package.
myFirefox = wrapFirefox firefox-esr-unwrapped {
nixExtensions = [
(fetchFirefoxAddon {
name = "ublock"; # Has to be unique!
url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-1.31.0-an+fx.xpi";
hash = "sha256-2e73AbmYZlZXCP5ptYVcFjQYdjDp4iPoEPEOSCVF5sA=";
})
];
extraPolicies = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = true;
FirefoxHome = {
Pocket = false;
Snippets = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
SecurityDevices = {
# Use a proxy module rather than `nixpkgs.config.firefox.smartcardSupport = true`
"PKCS#11 Proxy Module" = "${pkgs.p11-kit}/lib/p11-kit-proxy.so";
};
};
extraPrefs = ''
// Show more ssl cert infos
lockPref("security.identityblock.show_extended_validation", true);
'';
};
}
```
If `nixExtensions != null`, then all manually installed add-ons will be uninstalled from your browser profile.
To view available enterprise policies, visit [enterprise policies](https://github.com/mozilla/policy-templates#enterprisepoliciesenabled)
or type into the Firefox URL bar: `about:policies#documentation`.
Nix installed add-ons do not have a valid signature, which is why signature verification is disabled. This does not compromise security because downloaded add-ons are checksummed and manual add-ons can't be installed. Also, make sure that the `name` field of `fetchFirefoxAddon` is unique. If you remove an add-on from the `nixExtensions` array, rebuild and start Firefox: the removed add-on will be completely removed with all of its settings.
## Troubleshooting {#sec-firefox-troubleshooting}
If add-ons are marked as broken or the signature is invalid, make sure you have Firefox ESR installed. Normal Firefox does not provide the ability anymore to disable signature verification for add-ons thus nix add-ons get disabled by the normal Firefox binary.
If add-ons do not appear installed despite being defined in your nix configuration file, reset the local add-on state of your Firefox profile by clicking `Help -> More Troubleshooting Information -> Refresh Firefox`. This can happen if you switch from manual add-on mode to nix add-on mode and then back to manual mode and then again to nix add-on mode.

View File

@@ -1,50 +0,0 @@
# Fish {#sec-fish}
Fish is a "smart and user-friendly command line shell" with support for plugins.
## Vendor Fish scripts {#sec-fish-vendor}
Any package may ship its own Fish completions, configuration snippets, and
functions. Those should be installed to
`$out/share/fish/vendor_{completions,conf,functions}.d` respectively.
When the `programs.fish.enable` and
`programs.fish.vendor.{completions,config,functions}.enable` options from the
NixOS Fish module are set to true, those paths are symlinked in the current
system environment and automatically loaded by Fish.
## Packaging Fish plugins {#sec-fish-plugins-pkg}
While packages providing standalone executables belong to the top level,
packages which have the sole purpose of extending Fish belong to the
`fishPlugins` scope and should be registered in
`pkgs/shells/fish/plugins/default.nix`.
The `buildFishPlugin` utility function can be used to automatically copy Fish
scripts from `$src/{completions,conf,conf.d,functions}` to the standard vendor
installation paths. It also sets up the test environment so that the optional
`checkPhase` is executed in a Fish shell with other already packaged plugins
and package-local Fish functions specified in `checkPlugins` and
`checkFunctionDirs` respectively.
See `pkgs/shells/fish/plugins/pure.nix` for an example of Fish plugin package
using `buildFishPlugin` and running unit tests with the `fishtape` test runner.
## Fish wrapper {#sec-fish-wrapper}
The `wrapFish` package is a wrapper around Fish which can be used to create
Fish shells initialized with some plugins as well as completions, configuration
snippets and functions sourced from the given paths. This provides a convenient
way to test Fish plugins and scripts without having to alter the environment.
```nix
wrapFish {
pluginPkgs = with fishPlugins; [ pure foreign-env ];
completionDirs = [];
functionDirs = [];
confDirs = [ "/path/to/some/fish/init/dir/" ];
}
```

View File

@@ -1,45 +0,0 @@
# FUSE {#sec-fuse}
Some packages rely on
[FUSE](https://www.kernel.org/doc/html/latest/filesystems/fuse.html) to provide
support for additional filesystems not supported by the kernel.
In general, FUSE software are primarily developed for Linux but many of them can
also run on macOS. Nixpkgs supports FUSE packages on macOS, but it requires
[macFUSE](https://osxfuse.github.io) to be installed outside of Nix. macFUSE
currently isn't packaged in Nixpkgs mainly because it includes a kernel
extension, which isn't supported by Nix outside of NixOS.
If a package fails to run on macOS with an error message similar to the
following, it's a likely sign that you need to have macFUSE installed.
dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
Referenced from: /nix/store/w8bi72bssv0bnxhwfw3xr1mvn7myf37x-sshfs-fuse-2.10/bin/sshfs
Reason: image not found
[1] 92299 abort /nix/store/w8bi72bssv0bnxhwfw3xr1mvn7myf37x-sshfs-fuse-2.10/bin/sshfs
Package maintainers may often encounter the following error when building FUSE
packages on macOS:
checking for fuse.h... no
configure: error: No fuse.h found.
This happens on autoconf based projects that use `AC_CHECK_HEADERS` or
`AC_CHECK_LIBS` to detect libfuse, and will occur even when the `fuse` package
is included in `buildInputs`. It happens because libfuse headers throw an error
on macOS if the `FUSE_USE_VERSION` macro is undefined. Many projects do define
`FUSE_USE_VERSION`, but only inside C source files. This results in the above
error at configure time because the configure script would attempt to compile
sample FUSE programs without defining `FUSE_USE_VERSION`.
There are two possible solutions for this problem in Nixpkgs:
1. Pass `FUSE_USE_VERSION` to the configure script by adding
`CFLAGS=-DFUSE_USE_VERSION=25` in `configureFlags`. The actual value would
have to match the definition used in the upstream source code.
2. Remove `AC_CHECK_HEADERS` / `AC_CHECK_LIBS` for libfuse.
However, a better solution might be to fix the build script upstream to use
`PKG_CHECK_MODULES` instead. This approach wouldn't suffer from the problem that
`AC_CHECK_HEADERS`/`AC_CHECK_LIBS` has at the price of introducing a dependency
on pkg-config.

View File

@@ -1,38 +0,0 @@
# ibus-engines.typing-booster {#sec-ibus-typing-booster}
This package is an ibus-based completion method to speed up typing.
## Activating the engine {#sec-ibus-typing-booster-activate}
IBus needs to be configured accordingly to activate `typing-booster`. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the [upstream docs](https://mike-fabian.github.io/ibus-typing-booster/).
On NixOS, you need to explicitly enable `ibus` with given engines before customizing your desktop to use `typing-booster`. This can be achieved using the `ibus` module:
```nix
{ pkgs, ... }: {
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ typing-booster ];
};
}
```
## Using custom hunspell dictionaries {#sec-ibus-typing-booster-customize-hunspell}
The IBus engine is based on `hunspell` to support completion in many languages. By default, the dictionaries `de-de`, `en-us`, `fr-moderne` `es-es`, `it-it`, `sv-se` and `sv-fi` are in use. To add another dictionary, the package can be overridden like this:
```nix
ibus-engines.typing-booster.override { langs = [ "de-at" "en-gb" ]; }
```
_Note: each language passed to `langs` must be an attribute name in `pkgs.hunspellDicts`._
## Built-in emoji picker {#sec-ibus-typing-booster-emoji-picker}
The `ibus-engines.typing-booster` package contains a program named `emoji-picker`. To display all emojis correctly, a special font such as `noto-fonts-emoji` is needed:
On NixOS, it can be installed using the following expression:
```nix
{ pkgs, ... }: { fonts.fonts = with pkgs; [ noto-fonts-emoji ]; }
```

View File

@@ -1,29 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-packages">
<title>Packages</title>
<para>
This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org.
</para>
<xi:include href="citrix.section.xml" />
<xi:include href="dlib.section.xml" />
<xi:include href="eclipse.section.xml" />
<xi:include href="elm.section.xml" />
<xi:include href="emacs.section.xml" />
<xi:include href="firefox.section.xml" />
<xi:include href="fish.section.xml" />
<xi:include href="fuse.section.xml" />
<xi:include href="ibus.section.xml" />
<xi:include href="kakoune.section.xml" />
<xi:include href="linux.section.xml" />
<xi:include href="locales.section.xml" />
<xi:include href="etc-files.section.xml" />
<xi:include href="nginx.section.xml" />
<xi:include href="opengl.section.xml" />
<xi:include href="shell-helpers.section.xml" />
<xi:include href="steam.section.xml" />
<xi:include href="cataclysm-dda.section.xml" />
<xi:include href="urxvt.section.xml" />
<xi:include href="weechat.section.xml" />
<xi:include href="xorg.section.xml" />
</chapter>

View File

@@ -1,9 +0,0 @@
# Kakoune {#sec-kakoune}
Kakoune can be built to autoload plugins:
```nix
(kakoune.override {
plugins = with pkgs.kakounePlugins; [ parinfer-rust ];
})
```

View File

@@ -1,41 +0,0 @@
# Linux kernel {#sec-linux-kernel}
The Nix expressions to build the Linux kernel are in [`pkgs/os-specific/linux/kernel`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel).
The function that builds the kernel has an argument `kernelPatches` which should be a list of `{name, patch, extraConfig}` attribute sets, where `name` is the name of the patch (which is included in the kernels `meta.description` attribute), `patch` is the patch itself (possibly compressed), and `extraConfig` (optional) is a string specifying extra options to be concatenated to the kernel configuration file (`.config`).
The kernel derivation exports an attribute `features` specifying whether optional functionality is or isnt enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the `iwlwifi` feature (i.e., has built-in support for Intel wireless chipsets), then NixOS doesnt have to build the external `iwlwifi` package:
```nix
modulesTree = [kernel]
++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi
++ ...;
```
How to add a new (major) version of the Linux kernel to Nixpkgs:
1. Copy the old Nix expression (e.g., `linux-2.6.21.nix`) to the new one (e.g., `linux-2.6.22.nix`) and update it.
2. Add the new kernel to the `kernels` attribute set in `linux-kernels.nix` (e.g., create an attribute `kernel_2_6_22`).
3. Now were going to update the kernel configuration. First unpack the kernel. Then for each supported platform (`i686`, `x86_64`, `uml`) do the following:
1. Make a copy from the old config (e.g., `config-2.6.21-i686-smp`) to the new one (e.g., `config-2.6.22-i686-smp`).
2. Copy the config file for this platform (e.g., `config-2.6.22-i686-smp`) to `.config` in the kernel source tree.
3. Run `make oldconfig ARCH={i386,x86_64,um}` and answer all questions. (For the uml configuration, also add `SHELL=bash`.) Make sure to keep the configuration consistent between platforms (i.e., dont enable some feature on `i686` and disable it on `x86_64`).
4. If needed, you can also run `make menuconfig`:
```ShellSession
$ nix-env -f "<nixpkgs>" -iA ncurses
$ export NIX_CFLAGS_LINK=-lncurses
$ make menuconfig ARCH=arch
```
5. Copy `.config` over the new config file (e.g., `config-2.6.22-i686-smp`).
4. Test building the kernel: `nix-build -A linuxKernel.kernels.kernel_2_6_22`. If it compiles, ship it! For extra credit, try booting NixOS with it.
5. It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the `linuxPackagesFor` function in `linux-kernels.nix` (such as the NVIDIA drivers, AUFS, etc.). If the updated packages arent backwards compatible with older kernels, you may need to keep the older versions around.

View File

@@ -1,5 +0,0 @@
# Locales {#locales}
To allow simultaneous use of packages linked against different versions of `glibc` with different locale archive formats, Nixpkgs patches `glibc` to rely on `LOCALE_ARCHIVE` environment variable.
On non-NixOS distributions, this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the `LOCALE_ARCHIVE` variable pointing to `${glibcLocales}/lib/locale/locale-archive`. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters `allLocales` and `locales` of the package.

View File

@@ -1,11 +0,0 @@
# Nginx {#sec-nginx}
[Nginx](https://nginx.org) is a reverse proxy and lightweight webserver.
## ETags on static files served from the Nix store {#sec-nginx-etag}
HTTP has a couple of different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the [`Last-Modified`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified) response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the `Last-Modified` header. This doesn't give the desired behavior when the file is in the Nix store because all file timestamps are set to 0 (for reasons related to build reproducibility).
Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the [`ETag`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) response header. The value of the `ETag` header specifies some identifier for the particular content that the server is sending (e.g., a hash). When a client makes a second request for the same resource, it sends that value back in an `If-None-Match` header. If the ETag value is unchanged, then the server does not need to resend the content.
As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of `/nix/store`, the hash in the store path is used as the `ETag` header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior.

View File

@@ -1,15 +0,0 @@
# OpenGL {#sec-opengl}
OpenGL support varies depending on which hardware is used and which drivers are available and loaded.
Broadly, we support both GL vendors: Mesa and NVIDIA.
## NixOS Desktop {#nixos-desktop}
The NixOS desktop or other non-headless configurations are the primary target for OpenGL libraries and applications. The current solution for discovering which drivers are available is based on [libglvnd](https://gitlab.freedesktop.org/glvnd/libglvnd). `libglvnd` performs "vendor-neutral dispatch", trying a variety of techniques to find the system's GL implementation. In practice, this will be either via standard GLX for X11 users or EGL for Wayland users, and supporting either NVIDIA or Mesa extensions.
## Nix on GNU/Linux {#nix-on-gnulinux}
If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of `libglvnd` and `mesa.drivers` in `LD_LIBRARY_PATH`. For Mesa drivers, the Linux kernel version doesn't have to match nixpkgs.
For proprietary video drivers, you might have luck with also adding the corresponding video driver package.

View File

@@ -1,12 +0,0 @@
# Interactive shell helpers {#sec-shell-helpers}
Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard `share` directory location. This is why a bunch `PACKAGE-share` scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following:
- `fzf` : `fzf-share`
E.g. `fzf` can then be used in the `.bashrc` like this:
```bash
source "$(fzf-share)/completion.bash"
source "$(fzf-share)/key-bindings.bash"
```

View File

@@ -1,63 +0,0 @@
# Steam {#sec-steam}
## Steam in Nix {#sec-steam-nix}
Steam is distributed as a `.deb` file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called `steam` that in Ubuntu (their target distro) would go to `/usr/bin`. When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in `$HOME`.
Nix problems and constraints:
- We don't have `/bin/bash` and many scripts point there. Same thing for `/usr/bin/python`.
- We don't have the dynamic loader in `/lib`.
- The `steam.sh` script in `$HOME` cannot be patched, as it is checked and rewritten by steam.
- The steam binary cannot be patched, it's also checked.
The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented [here](http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html). This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment.
## How to play {#sec-steam-play}
Use `programs.steam.enable = true;` if you want to add steam to `systemPackages` and also enable a few workarounds as well as Steam controller support or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro Controller.
## Troubleshooting {#sec-steam-troub}
- **Steam fails to start. What do I do?**
Try to run
```ShellSession
strace steam
```
to see what is causing steam to fail.
- **Using the FOSS Radeon or nouveau (nvidia) drivers**
- The `newStdcpp` parameter was removed since NixOS 17.09 and should not be needed anymore.
- Steam ships statically linked with a version of `libcrypto` that conflicts with the one dynamically loaded by radeonsi_dri.so. If you get the error:
```
steam.sh: line 713: 7842 Segmentation fault (core dumped)
```
have a look at [this pull request](https://github.com/NixOS/nixpkgs/pull/20269).
- **Java**
1. There is no java in steam chrootenv by default. If you get a message like:
```
/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found
```
you need to add:
```nix
steam.override { withJava = true; };
```
## steam-run {#sec-steam-run}
The FHS-compatible chroot used for Steam can also be used to run other Linux games that expect a FHS environment. To use it, install the `steam-run` package and run the game with:
```
steam-run ./foo
```

View File

@@ -1,71 +0,0 @@
# Urxvt {#sec-urxvt}
Urxvt, also known as rxvt-unicode, is a highly customizable terminal emulator.
## Configuring urxvt {#sec-urxvt-conf}
In `nixpkgs`, urxvt is provided by the package `rxvt-unicode`. It can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, use an overlay or directly install an expression that overrides its configuration, such as:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = with availablePlugins; [ perls resize-font vtwheel ];
};
}
```
If the `configure` function returns an attrset without the `plugins` attribute, `availablePlugins` will be used automatically.
In order to add plugins but also keep all default plugins installed, it is possible to use the following method:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = (builtins.attrValues availablePlugins) ++ [ custom-plugin ];
};
}
```
To get a list of all the plugins available, open the Nix REPL and run
```ShellSession
$ nix repl
:l <nixpkgs>
map (p: p.name) pkgs.rxvt-unicode.plugins
```
Alternatively, if your shell is bash or zsh and have completion enabled, simply type `nixpkgs.rxvt-unicode.plugins.<tab>`.
In addition to `plugins` the options `extraDeps` and `perlDeps` can be used to install extra packages. `extraDeps` can be used, for example, to provide `xsel` (a clipboard manager) to the clipboard plugin, without installing it globally:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
pluginsDeps = [ xsel ];
};
}
```
`perlDeps` is a handy way to provide Perl packages to your custom plugins (in `$HOME/.urxvt/ext`). For example, if you need `AnyEvent` you can do:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
perlDeps = with perlPackages; [ AnyEvent ];
};
}
```
## Packaging urxvt plugins {#sec-urxvt-pkg}
Urxvt plugins resides in `pkgs/applications/misc/rxvt-unicode-plugins`. To add a new plugin, create an expression in a subdirectory and add the package to the set in `pkgs/applications/misc/rxvt-unicode-plugins/default.nix`.
A plugin can be any kind of derivation, the only requirement is that it should always install perl scripts in `$out/lib/urxvt/perl`. Look for existing plugins for examples.
If the plugin is itself a Perl package that needs to be imported from other plugins or scripts, add the following passthrough:
```nix
passthru.perlPackages = [ "self" ];
```
This will make the urxvt wrapper pick up the dependency and set up the Perl path accordingly.

View File

@@ -1,85 +0,0 @@
# WeeChat {#sec-weechat}
WeeChat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration, such as:
```nix
weechat.override {configure = {availablePlugins, ...}: {
plugins = with availablePlugins; [ python perl ];
}
}
```
If the `configure` function returns an attrset without the `plugins` attribute, `availablePlugins` will be used automatically.
The plugins currently available are `python`, `perl`, `ruby`, `guile`, `tcl` and `lua`.
The Python and Perl plugins allows the addition of extra libraries. For instance, the `inotify.py` script in `weechat-scripts` requires D-Bus or libnotify, and the `fish.py` script requires `pycrypto`. To use these scripts, use the plugin's `withPackages` attribute:
```nix
weechat.override { configure = {availablePlugins, ...}: {
plugins = with availablePlugins; [
(python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
];
};
}
```
In order to also keep all default plugins installed, it is possible to use the following method:
```nix
weechat.override { configure = { availablePlugins, ... }: {
plugins = builtins.attrValues (availablePlugins // {
python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
});
}; }
```
WeeChat allows to set defaults on startup using the `--run-command`. The `configure` method can be used to pass commands to the program:
```nix
weechat.override {
configure = { availablePlugins, ... }: {
init = ''
/set foo bar
/server add libera irc.libera.chat
'';
};
}
```
Further values can be added to the list of commands when running `weechat --run-command "your-commands"`.
Additionally, it's possible to specify scripts to be loaded when starting `weechat`. These will be loaded before the commands from `init`:
```nix
weechat.override {
configure = { availablePlugins, ... }: {
scripts = with pkgs.weechatScripts; [
weechat-xmpp weechat-matrix-bridge wee-slack
];
init = ''
/set plugins.var.python.jabber.key "val"
'':
};
}
```
In `nixpkgs` there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a `passthru.scripts` attribute, which contains a list of all scripts inside the store path. Furthermore, all scripts have to live in `$out/share`. An exemplary derivation looks like this:
```nix
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "exemplary-weechat-script";
src = fetchurl {
url = "https://scripts.tld/your-scripts.tar.gz";
hash = "...";
};
passthru.scripts = [ "foo.py" "bar.lua" ];
installPhase = ''
mkdir $out/share
cp foo.py $out/share
cp bar.lua $out/share
'';
}
```

View File

@@ -1,34 +0,0 @@
# X.org {#sec-xorg}
The Nix expressions for the X.org packages reside in `pkgs/servers/x11/xorg/default.nix`. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file `pkgs/servers/x11/xorg/overrides.nix`, in which you can override or add to the derivations produced by the generator.
## Katamari Tarballs {#katamari-tarballs}
X.org upstream releases used to include [katamari](https://en.wiktionary.org/wiki/%E3%81%8B%E3%81%9F%E3%81%BE%E3%82%8A) releases, which included a holistic recommended version for each tarball, up until 7.7. To create a list of tarballs in a katamari release:
```ShellSession
export release="X11R7.7"
export url="mirror://xorg/$release/src/everything/"
cat $(PRINT_PATH=1 nix-prefetch-url $url | tail -n 1) \
| perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'url'}$2\n"; }; }' \
| sort > "tarballs-$release.list"
```
## Individual Tarballs {#individual-tarballs}
The upstream release process for [X11R7.8](https://x.org/wiki/Releases/7.8/) does not include a planned katamari. Instead, each component of X.org is released as its own tarball. We maintain `pkgs/servers/x11/xorg/tarballs.list` as a list of tarballs for each individual package. This list includes X.org core libraries and protocol descriptions, extra newer X11 interface libraries, like `xorg.libxcb`, and classic utilities which are largely unused but still available if needed, like `xorg.imake`.
## Generating Nix Expressions {#generating-nix-expressions}
The generator is invoked as follows:
```ShellSession
cd pkgs/servers/x11/xorg
<tarballs.list perl ./generate-expr-from-tarballs.pl
```
For each of the tarballs in the `.list` files, the script downloads it, unpacks it, and searches its `configure.ac` and `*.pc.in` files for dependencies. This information is used to generate `default.nix`. The generator caches downloaded tarballs between runs. Pay close attention to the `NOT FOUND: $NAME` messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.)
## Overriding the Generator {#overriding-the-generator}
If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, `patches` or a `postInstall` hook), you should modify `pkgs/servers/x11/xorg/overrides.nix`.

View File

@@ -1,13 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-special">
<title>Special builders</title>
<para>
This chapter describes several special builders.
</para>
<xi:include href="special/fhs-environments.section.xml" />
<xi:include href="special/makesetuphook.section.xml" />
<xi:include href="special/mkshell.section.xml" />
<xi:include href="special/darwin-builder.section.xml" />
<xi:include href="special/vm-tools.section.xml" />
</chapter>

View File

@@ -1,149 +0,0 @@
# darwin.builder {#sec-darwin-builder}
`darwin.builder` provides a way to bootstrap a Linux builder on a macOS machine.
This requires macOS version 12.4 or later.
This also requires that port 22 on your machine is free (since Nix does not
permit specifying a non-default SSH port for builders).
You will also need to be a trusted user for your Nix installation. In other
words, your `/etc/nix/nix.conf` should have something like:
```
extra-trusted-users = <your username goes here>
```
To launch the builder, run the following flake:
```ShellSession
$ nix run nixpkgs#darwin.builder
```
That will prompt you to enter your `sudo` password:
```
+ sudo --reset-timestamp /nix/store/…-install-credentials.sh ./keys
Password:
```
… so that it can install a private key used to `ssh` into the build server.
After that the script will launch the virtual machine and automatically log you
in as the `builder` user:
```
<<< Welcome to NixOS 22.11.20220901.1bd8d11 (aarch64) - ttyAMA0 >>>
Run 'nixos-help' for the NixOS manual.
nixos login: builder (automatic login)
[builder@nixos:~]$
```
> Note: When you need to stop the VM, run `shutdown now` as the `builder` user.
To delegate builds to the remote builder, add the following options to your
`nix.conf` file:
```
# - Replace ${ARCH} with either aarch64 or x86_64 to match your host machine
# - Replace ${MAX_JOBS} with the maximum number of builds (pick 4 if you're not sure)
builders = ssh-ng://builder@localhost ${ARCH}-linux /etc/nix/builder_ed25519 ${MAX_JOBS} - - - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=
# Not strictly necessary, but this will reduce your disk utilization
builders-use-substitutes = true
```
… and then restart your Nix daemon to apply the change:
```ShellSession
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
```
## Example flake usage
```
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, darwin, nixpkgs, ... }@inputs:
let
inherit (darwin.lib) darwinSystem;
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages."${system}";
linuxSystem = builtins.replaceStrings [ "darwin" ] [ "linux" ] system;
darwin-builder = nixpkgs.lib.nixosSystem {
system = linuxSystem;
modules = [
"${nixpkgs}/nixos/modules/profiles/macos-builder.nix"
{ virtualisation.host.pkgs = pkgs; }
];
};
in {
darwinConfigurations = {
machine1 = darwinSystem {
inherit system;
modules = [
{
nix.distributedBuilds = true;
nix.buildMachines = [{
hostName = "ssh://builder@localhost";
system = linuxSystem;
maxJobs = 4;
supportedFeatures = [ "kvm" "benchmark" "big-parallel" ];
}];
launchd.daemons.darwin-builder = {
command = "${darwin-builder.config.system.build.macos-builder-installer}/bin/create-builder";
serviceConfig = {
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "/var/log/darwin-builder.log";
StandardErrorPath = "/var/log/darwin-builder.log";
};
};
}
];
};
};
};
}
```
## Reconfiguring the builder
Initially you should not change the builder configuration else you will not be
able to use the binary cache. However, after you have the builder running locally
you may use it to build a modified builder with additional storage or memory.
To do this, you just need to set the `virtualisation.darwin-builder.*` parameters as
in the example below and rebuild.
```
darwin-builder = nixpkgs.lib.nixosSystem {
system = linuxSystem;
modules = [
"${nixpkgs}/nixos/modules/profiles/macos-builder.nix"
{
virtualisation.host.pkgs = pkgs;
virtualisation.darwin-builder.diskSize = 5120;
virtualisation.darwin-builder.memorySize = 1024;
virtualisation.darwin-builder.hostPort = 33022;
virtualisation.darwin-builder.workingDirectory = "/var/lib/darwin-builder";
}
];
```
You may make any other changes to your VM in this attribute set. For example,
you could enable Docker or X11 forwarding to your Darwin host.

View File

@@ -1,49 +0,0 @@
# buildFHSEnv {#sec-fhs-environments}
`buildFHSEnv` provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound `/nix/store`, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are:
- `name`
Environment name.
- `targetPkgs`
Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed.
- `multiPkgs`
Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default.
- `extraBuildCommands`
Additional commands to be executed for finalizing the directory structure.
- `extraBuildCommandsMulti`
Like `extraBuildCommands`, but executed only on multilib architectures.
- `extraOutputsToInstall`
Additional derivation outputs to be linked for both target and multi-architecture packages.
- `extraInstallCommands`
Additional commands to be executed for finalizing the derivation with runner script.
- `runScript`
A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to `bash`.
- `profile`
Optional script for `/etc/profile` within the sandbox.
One can create a simple environment using a `shell.nix` like that:
```nix
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSEnv {
name = "simple-x11-env";
targetPkgs = pkgs: (with pkgs;
[ udev
alsa-lib
]) ++ (with pkgs.xorg;
[ libX11
libXcursor
libXrandr
]);
multiPkgs = pkgs: (with pkgs;
[ udev
alsa-lib
]);
runScript = "bash";
}).env
```
Running `nix-shell` would then drop you into a shell with these libraries and binaries available. You can use this to run closed-source applications which expect FHS structure without hassles: simply change `runScript` to the application path, e.g. `./bin/start.sh` -- relative paths are supported.
Additionally, the FHS builder links all relocated gsettings-schemas (the glib setup-hook moves them to `share/gsettings-schemas/${name}/glib-2.0/schemas`) to their standard FHS location. This means you don't need to wrap binaries with `wrapGAppsHook`.

View File

@@ -1,37 +0,0 @@
# pkgs.makeSetupHook {#sec-pkgs.makeSetupHook}
`pkgs.makeSetupHook` is a builder that produces hooks that go in to `nativeBuildInputs`
## Usage {#sec-pkgs.makeSetupHook-usage}
```nix
pkgs.makeSetupHook {
name = "something-hook";
propagatedBuildInputs = [ pkgs.commandsomething ];
depsTargetTargetPropagated = [ pkgs.libsomething ];
} ./script.sh
```
#### setup hook that depends on the hello package and runs hello and @shell@ is substituted with path to bash {#sec-pkgs.makeSetupHook-usage-example}
```nix
pkgs.makeSetupHook {
name = "run-hello-hook";
propagatedBuildInputs = [ pkgs.hello ];
substitutions = { shell = "${pkgs.bash}/bin/bash"; };
passthru.tests.greeting = callPackage ./test { };
meta.platforms = lib.platforms.linux;
} (writeScript "run-hello-hook.sh" ''
#!@shell@
hello
'')
```
## Attributes {#sec-pkgs.makeSetupHook-attributes}
* `name` Set the name of the hook.
* `propagatedBuildInputs` Runtime dependencies (such as binaries) of the hook.
* `depsTargetTargetPropagated` Non-binary dependencies.
* `meta`
* `passthru`
* `substitutions` Variables for `substituteAll`

View File

@@ -1,37 +0,0 @@
# pkgs.mkShell {#sec-pkgs-mkShell}
`pkgs.mkShell` is a specialized `stdenv.mkDerivation` that removes some
repetition when using it with `nix-shell` (or `nix develop`).
## Usage {#sec-pkgs-mkShell-usage}
Here is a common usage example:
```nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [ pkgs.gnumake ];
inputsFrom = [ pkgs.hello pkgs.gnutar ];
shellHook = ''
export DEBUG=1
'';
}
```
## Attributes {#sec-pkgs-mkShell-attributes}
* `name` (default: `nix-shell`). Set the name of the derivation.
* `packages` (default: `[]`). Add executable packages to the `nix-shell` environment.
* `inputsFrom` (default: `[]`). Add build dependencies of the listed derivations to the `nix-shell` environment.
* `shellHook` (default: `""`). Bash statements that are executed by `nix-shell`.
... all the attributes of `stdenv.mkDerivation`.
## Building the shell {#sec-pkgs-mkShell-building}
This derivation output will contain a text file that contains a reference to
all the build inputs. This is useful in CI where we want to make sure that
every derivation, and its dependencies, build properly. Or when creating a GC
root so that the build dependencies don't get garbage-collected.

View File

@@ -1,148 +0,0 @@
# vmTools {#sec-vm-tools}
A set of VM related utilities, that help in building some packages in more advanced scenarios.
## `vmTools.createEmptyImage` {#vm-tools-createEmptyImage}
A bash script fragment that produces a disk image at `destination`.
### Attributes
* `size`. The disk size, in MiB.
* `fullName`. Name that will be written to `${destination}/nix-support/full-name`.
* `destination` (optional, default `$out`). Where to write the image files.
## `vmTools.runInLinuxVM` {#vm-tools-runInLinuxVM}
Run a derivation in a Linux virtual machine (using Qemu/KVM).
By default, there is no disk image; the root filesystem is a `tmpfs`, and the Nix store is shared with the host (via the [9P protocol](https://wiki.qemu.org/Documentation/9p#9p_Protocol)).
Thus, any pure Nix derivation should run unmodified.
If the build fails and Nix is run with the `-K/--keep-failed` option, a script `run-vm` will be left behind in the temporary build directory that allows you to boot into the VM and debug it interactively.
### Attributes
* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).
* `memSize` (optional, default `512`). The memory size of the VM in MiB.
* `diskImage` (optional). A file system image to be attached to `/dev/sda`.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
### Examples
Build the derivation hello inside a VM:
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM hello
```
Build inside a VM with extra memory:
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM (hello.overrideAttrs (_: { memSize = 1024; }))
```
Use VM with a disk image (implicitly sets `diskImage`, see [`vmTools.createEmptyImage`](#vm-tools-createEmptyImage)):
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM (hello.overrideAttrs (_: {
preVM = createEmptyImage {
size = 1024;
fullName = "vm-image";
};
}))
```
## `vmTools.extractFs` {#vm-tools-extractFs}
Takes a file, such as an ISO, and extracts its contents into the store.
### Attributes
* `file`. Path to the file to be extracted.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
* `fs` (optional). Filesystem of the contents of the file.
### Examples
Extract the contents of an ISO file:
```nix
{ pkgs }: with pkgs; with vmTools;
extractFs { file = ./image.iso; }
```
## `vmTools.extractMTDfs` {#vm-tools-extractMTDfs}
Like [](#vm-tools-extractFs), but it makes use of a [Memory Technology Device (MTD)](https://en.wikipedia.org/wiki/Memory_Technology_Device).
## `vmTools.runInLinuxImage` {#vm-tools-runInLinuxImage}
Like [](#vm-tools-runInLinuxVM), but instead of using `stdenv` from the Nix store, run the build using the tools provided by `/bin`, `/usr/bin`, etc. from the specified filesystem image, which typically is a filesystem containing a [FHS](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)-based Linux distribution.
## `vmTools.makeImageTestScript` {#vm-tools-makeImageTestScript}
Generate a script that can be used to run an interactive session in the given image.
### Examples
Create a script for running a Fedora 27 VM:
```nix
{ pkgs }: with pkgs; with vmTools;
makeImageTestScript diskImages.fedora27x86_64
```
Create a script for running an Ubuntu 20.04 VM:
```nix
{ pkgs }: with pkgs; with vmTools;
makeImageTestScript diskImages.ubuntu2004x86_64
```
## `vmTools.diskImageFuns` {#vm-tools-diskImageFuns}
A set of functions that build a predefined set of minimal Linux distributions images.
### Images
* Fedora
* `fedora26x86_64`
* `fedora27x86_64`
* CentOS
* `centos6i386`
* `centos6x86_64`
* `centos7x86_64`
* Ubuntu
* `ubuntu1404i386`
* `ubuntu1404x86_64`
* `ubuntu1604i386`
* `ubuntu1604x86_64`
* `ubuntu1804i386`
* `ubuntu1804x86_64`
* `ubuntu2004i386`
* `ubuntu2004x86_64`
* `ubuntu2204i386`
* `ubuntu2204x86_64`
* Debian
* `debian10i386`
* `debian10x86_64`
* `debian11i386`
* `debian11x86_64`
### Attributes
* `size` (optional, defaults to `4096`). The size of the image, in MiB.
* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image.
### Examples
8GiB image containing Firefox in addition to the default packages:
```nix
{ pkgs }: with pkgs; with vmTools;
diskImageFuns.ubuntu2004x86_64 { extraPackages = [ "firefox" ]; size = 8192; }
```
## `vmTools.diskImageExtraFuns` {#vm-tools-diskImageExtraFuns}
Shorthand for `vmTools.diskImageFuns.<attr> { extraPackages = ... }`.
## `vmTools.diskImages` {#vm-tools-diskImages}
Shorthand for `vmTools.diskImageFuns.<attr> { }`.

View File

@@ -1,211 +0,0 @@
# Testers {#chap-testers}
This chapter describes several testing builders which are available in the <literal>testers</literal> namespace.
## `hasPkgConfigModule` {#tester-hasPkgConfigModule}
Checks whether a package exposes a certain `pkg-config` module.
Example:
```nix
passthru.tests.pkg-config = testers.hasPkgConfigModule {
package = finalAttrs.finalPackage;
moduleName = "libfoo";
}
```
## `testVersion` {#tester-testVersion}
Checks the command output contains the specified version
Although simplistic, this test assures that the main program
can run. While there's no substitute for a real test case,
it does catch dynamic linking errors and such. It also provides
some protection against accidentally building the wrong version,
for example when using an 'old' hash in a fixed-output derivation.
Examples:
```nix
passthru.tests.version = testers.testVersion { package = hello; };
passthru.tests.version = testers.testVersion {
package = seaweedfs;
command = "weed version";
};
passthru.tests.version = testers.testVersion {
package = key;
command = "KeY --help";
# Wrong '2.5' version in the code. Drop on next version.
version = "2.5";
};
passthru.tests.version = testers.testVersion {
package = ghr;
# The output needs to contain the 'version' string without any prefix or suffix.
version = "v${version}";
};
```
## `testBuildFailure` {#tester-testBuildFailure}
Make sure that a build does not succeed. This is useful for testing testers.
This returns a derivation with an override on the builder, with the following effects:
- Fail the build when the original builder succeeds
- Move `$out` to `$out/result`, if it exists (assuming `out` is the default output)
- Save the build log to `$out/testBuildFailure.log` (same)
Example:
```nix
runCommand "example" {
failed = testers.testBuildFailure (runCommand "fail" {} ''
echo ok-ish >$out
echo failing though
exit 3
'');
} ''
grep -F 'ok-ish' $failed/result
grep -F 'failing though' $failed/testBuildFailure.log
[[ 3 = $(cat $failed/testBuildFailure.exit) ]]
touch $out
'';
```
While `testBuildFailure` is designed to keep changes to the original builder's
environment to a minimum, some small changes are inevitable.
- The file `$TMPDIR/testBuildFailure.log` is present. It should not be deleted.
- `stdout` and `stderr` are a pipe instead of a tty. This could be improved.
- One or two extra processes are present in the sandbox during the original
builder's execution.
- The derivation and output hashes are different, but not unusual.
- The derivation includes a dependency on `buildPackages.bash` and
`expect-failure.sh`, which is built to include a transitive dependency on
`buildPackages.coreutils` and possibly more. These are not added to `PATH`
or any other environment variable, so they should be hard to observe.
## `testEqualContents` {#tester-equalContents}
Check that two paths have the same contents.
Example:
```nix
testers.testEqualContents {
assertion = "sed -e performs replacement";
expected = writeText "expected" ''
foo baz baz
'';
actual = runCommand "actual" {
# not really necessary for a package that's in stdenv
nativeBuildInputs = [ gnused ];
base = writeText "base" ''
foo bar baz
'';
} ''
sed -e 's/bar/baz/g' $base >$out
'';
}
```
## `testEqualDerivation` {#tester-testEqualDerivation}
Checks that two packages produce the exact same build instructions.
This can be used to make sure that a certain difference of configuration,
such as the presence of an overlay does not cause a cache miss.
When the derivations are equal, the return value is an empty file.
Otherwise, the build log explains the difference via `nix-diff`.
Example:
```nix
testers.testEqualDerivation
"The hello package must stay the same when enabling checks."
hello
(hello.overrideAttrs(o: { doCheck = true; }))
```
## `invalidateFetcherByDrvHash` {#tester-invalidateFetcherByDrvHash}
Use the derivation hash to invalidate the output via name, for testing.
Type: `(a@{ name, ... } -> Derivation) -> a -> Derivation`
Normally, fixed output derivations can and should be cached by their output
hash only, but for testing we want to re-fetch everytime the fetcher changes.
Changes to the fetcher become apparent in the drvPath, which is a hash of
how to fetch, rather than a fixed store path.
By inserting this hash into the name, we can make sure to re-run the fetcher
every time the fetcher changes.
This relies on the assumption that Nix isn't clever enough to reuse its
database of local store contents to optimize fetching.
You might notice that the "salted" name derives from the normal invocation,
not the final derivation. `invalidateFetcherByDrvHash` has to invoke the fetcher
function twice: once to get a derivation hash, and again to produce the final
fixed output derivation.
Example:
```nix
tests.fetchgit = testers.invalidateFetcherByDrvHash fetchgit {
name = "nix-source";
url = "https://github.com/NixOS/nix";
rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
hash = "sha256-7DszvbCNTjpzGRmpIVAWXk20P0/XTrWZ79KSOGLrUWY=";
};
```
## `nixosTest` {#tester-nixosTest}
Run a NixOS VM network test using this evaluation of Nixpkgs.
NOTE: This function is primarily for external use. NixOS itself uses `make-test-python.nix` directly. Packages defined in Nixpkgs [reuse NixOS tests via `nixosTests`, plural](#ssec-nixos-tests-linking).
It is mostly equivalent to the function `import ./make-test-python.nix` from the
[NixOS manual](https://nixos.org/nixos/manual/index.html#sec-nixos-tests),
except that the current application of Nixpkgs (`pkgs`) will be used, instead of
letting NixOS invoke Nixpkgs anew.
If a test machine needs to set NixOS options under `nixpkgs`, it must set only the
`nixpkgs.pkgs` option.
### Parameter {#tester-nixosTest-parameter}
A [NixOS VM test network](https://nixos.org/nixos/manual/index.html#sec-nixos-tests), or path to it. Example:
```nix
{
name = "my-test";
nodes = {
machine1 = { lib, pkgs, nodes, ... }: {
environment.systemPackages = [ pkgs.hello ];
services.foo.enable = true;
};
# machine2 = ...;
};
testScript = ''
start_all()
machine1.wait_for_unit("foo.service")
machine1.succeed("hello | foo-send")
'';
}
```
### Result {#tester-nixosTest-result}
A derivation that runs the VM test.
Notable attributes:
* `nodes`: the evaluated NixOS configurations. Useful for debugging and exploring the configuration.
* `driverInteractive`: a script that launches an interactive Python session in the context of the `testScript`.

View File

@@ -1,223 +0,0 @@
# Trivial builders {#chap-trivial-builders}
Nixpkgs provides a couple of functions that help with building derivations. The most important one, `stdenv.mkDerivation`, has already been documented above. The following functions wrap `stdenv.mkDerivation`, making it easier to use in certain cases.
## `runCommand` {#trivial-builder-runCommand}
This takes three arguments, `name`, `env`, and `buildCommand`. `name` is just the name that Nix will append to the store path in the same way that `stdenv.mkDerivation` uses its `name` attribute. `env` is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped `stdenv.mkDerivation`. `buildCommand` specifies the commands that will be run to create this derivation. Note that you will need to create `$out` for Nix to register the command as successful.
An example of using `runCommand` is provided below.
```nix
(import <nixpkgs> {}).runCommand "my-example" {} ''
echo My example command is running
mkdir $out
echo I can write data to the Nix store > $out/message
echo I can also run basic commands like:
echo ls
ls
echo whoami
whoami
echo date
date
''
```
## `runCommandCC` {#trivial-builder-runCommandCC}
This works just like `runCommand`. The only difference is that it also provides a C compiler in `buildCommand`'s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command.
## `runCommandLocal` {#trivial-builder-runCommandLocal}
Variant of `runCommand` that forces the derivation to be built locally, it is not substituted. This is intended for very cheap commands (<1s execution time). It saves on the network round-trip and can speed up a build.
::: {.note}
This sets [`allowSubstitutes` to `false`](https://nixos.org/nix/manual/#adv-attr-allowSubstitutes), so only use `runCommandLocal` if you are certain the user will always have a builder for the `system` of the derivation. This should be true for most trivial use cases (e.g., just copying some files to a different location or adding symlinks) because there the `system` is usually the same as `builtins.currentSystem`.
:::
## `writeTextFile`, `writeText`, `writeTextDir`, `writeScript`, `writeScriptBin` {#trivial-builder-writeText}
These functions write `text` to the Nix store. This is useful for creating scripts from Nix expressions. `writeTextFile` takes an attribute set and expects two arguments, `name` and `text`. `name` corresponds to the name used in the Nix store path. `text` will be the contents of the file. You can also set `executable` to true to make this file have the executable bit set.
Many more commands wrap `writeTextFile` including `writeText`, `writeTextDir`, `writeScript`, and `writeScriptBin`. These are convenience functions over `writeTextFile`.
Here are a few examples:
```nix
# Writes my-file to /nix/store/<store path>
writeTextFile {
name = "my-file";
text = ''
Contents of File
'';
}
# See also the `writeText` helper function below.
# Writes executable my-file to /nix/store/<store path>/bin/my-file
writeTextFile {
name = "my-file";
text = ''
Contents of File
'';
executable = true;
destination = "/bin/my-file";
}
# Writes contents of file to /nix/store/<store path>
writeText "my-file"
''
Contents of File
'';
# Writes contents of file to /nix/store/<store path>/share/my-file
writeTextDir "share/my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path> and makes executable
writeScript "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path>/bin/my-file and makes executable.
writeScriptBin "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path> and makes executable.
writeShellScript "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path>/bin/my-file and makes executable.
writeShellScriptBin "my-file"
''
Contents of File
'';
```
## `concatTextFile`, `concatText`, `concatScript` {#trivial-builder-concatText}
These functions concatenate `files` to the Nix store in a single file. This is useful for configuration files structured in lines of text. `concatTextFile` takes an attribute set and expects two arguments, `name` and `files`. `name` corresponds to the name used in the Nix store path. `files` will be the files to be concatenated. You can also set `executable` to true to make this file have the executable bit set.
`concatText` and`concatScript` are simple wrappers over `concatTextFile`.
Here are a few examples:
```nix
# Writes my-file to /nix/store/<store path>
concatTextFile {
name = "my-file";
files = [ drv1 "${drv2}/path/to/file" ];
}
# See also the `concatText` helper function below.
# Writes executable my-file to /nix/store/<store path>/bin/my-file
concatTextFile {
name = "my-file";
files = [ drv1 "${drv2}/path/to/file" ];
executable = true;
destination = "/bin/my-file";
}
# Writes contents of files to /nix/store/<store path>
concatText "my-file" [ file1 file2 ]
# Writes contents of files to /nix/store/<store path>
concatScript "my-file" [ file1 file2 ]
```
## `writeShellApplication` {#trivial-builder-writeShellApplication}
This can be used to easily produce a shell script that has some dependencies (`runtimeInputs`). It automatically sets the `PATH` of the script to contain all of the listed inputs, sets some sanity shellopts (`errexit`, `nounset`, `pipefail`), and checks the resulting script with [`shellcheck`](https://github.com/koalaman/shellcheck).
For example, look at the following code:
```nix
writeShellApplication {
name = "show-nixos-org";
runtimeInputs = [ curl w3m ];
text = ''
curl -s 'https://nixos.org' | w3m -dump -T text/html
'';
}
```
Unlike with normal `writeShellScriptBin`, there is no need to manually write out `${curl}/bin/curl`, setting the PATH
was handled by `writeShellApplication`. Moreover, the script is being checked with `shellcheck` for more strict
validation.
## `symlinkJoin` {#trivial-builder-symlinkJoin}
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
Here is an example:
```nix
# adds symlinks of hello and stack to current build and prints "links added"
symlinkJoin { name = "myexample"; paths = [ pkgs.hello pkgs.stack ]; postBuild = "echo links added"; }
```
This creates a derivation with a directory structure like the following:
```
/nix/store/sglsr5g079a5235hy29da3mq3hv8sjmm-myexample
|-- bin
| |-- hello -> /nix/store/qy93dp4a3rqyn2mz63fbxjg228hffwyw-hello-2.10/bin/hello
| `-- stack -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/bin/stack
`-- share
|-- bash-completion
| `-- completions
| `-- stack -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/share/bash-completion/completions/stack
|-- fish
| `-- vendor_completions.d
| `-- stack.fish -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/share/fish/vendor_completions.d/stack.fish
...
```
## `writeReferencesToFile` {#trivial-builder-writeReferencesToFile}
Writes the closure of transitive dependencies to a file.
This produces the equivalent of `nix-store -q --requisites`.
For example,
```nix
writeReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
```
produces an output path `/nix/store/<hash>-runtime-deps` containing
```nix
/nix/store/<hash>-hello-2.10
/nix/store/<hash>-hi
/nix/store/<hash>-libidn2-2.3.0
/nix/store/<hash>-libunistring-0.9.10
/nix/store/<hash>-glibc-2.32-40
```
You can see that this includes `hi`, the original input path,
`hello`, which is a direct reference, but also
the other paths that are indirectly required to run `hello`.
## `writeDirectReferencesToFile` {#trivial-builder-writeDirectReferencesToFile}
Writes the set of references to the output file, that is, their immediate dependencies.
This produces the equivalent of `nix-store -q --references`.
For example,
```nix
writeDirectReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
```
produces an output path `/nix/store/<hash>-runtime-references` containing
```nix
/nix/store/<hash>-hello-2.10
```
but none of `hello`'s dependencies because those are not referenced directly
by `hi`'s output.

680
doc/coding-conventions.xml Normal file
View File

@@ -0,0 +1,680 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-conventions">
<title>Coding conventions</title>
<section xml:id="sec-syntax"><title>Syntax</title>
<itemizedlist>
<listitem><para>Use 2 spaces of indentation per indentation level in
Nix expressions, 4 spaces in shell scripts.</para></listitem>
<listitem><para>Do not use tab characters, i.e. configure your
editor to use soft tabs. For instance, use <literal>(setq-default
indent-tabs-mode nil)</literal> in Emacs. Everybody has different
tab settings so its asking for trouble.</para></listitem>
<listitem><para>Use <literal>lowerCamelCase</literal> for variable
names, not <literal>UpperCamelCase</literal>. TODO: naming of
attributes in
<filename>all-packages.nix</filename>?</para></listitem>
<listitem><para>Function calls with attribute set arguments are
written as
<programlisting>
foo {
arg = ...;
}
</programlisting>
not
<programlisting>
foo
{
arg = ...;
}
</programlisting>
Also fine is
<programlisting>
foo { arg = ...; }
</programlisting>
if it's a short call.</para></listitem>
<listitem><para>In attribute sets or lists that span multiple lines,
the attribute names or list elements should be aligned:
<programlisting>
# A long list.
list =
[ elem1
elem2
elem3
];
# A long attribute set.
attrs =
{ attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
# Alternatively:
attrs = {
attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
</programlisting>
</para></listitem>
<listitem><para>Short lists or attribute sets can be written on one
line:
<programlisting>
# A short list.
list = [ elem1 elem2 elem3 ];
# A short set.
attrs = { x = 1280; y = 1024; };
</programlisting>
</para></listitem>
<listitem><para>Breaking in the middle of a function argument can
give hard-to-read code, like
<programlisting>
someFunction { x = 1280;
y = 1024; } otherArg
yetAnotherArg
</programlisting>
(especially if the argument is very large, spanning multiple
lines).</para>
<para>Better:
<programlisting>
someFunction
{ x = 1280; y = 1024; }
otherArg
yetAnotherArg
</programlisting>
or
<programlisting>
let res = { x = 1280; y = 1024; };
in someFunction res otherArg yetAnotherArg
</programlisting>
</para></listitem>
<listitem><para>The bodies of functions, asserts, and withs are not
indented to prevent a lot of superfluous indentation levels, i.e.
<programlisting>
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
</programlisting>
not
<programlisting>
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
</programlisting>
</para></listitem>
<listitem><para>Function formal arguments are written as:
<programlisting>
{ arg1, arg2, arg3 }:
</programlisting>
but if they don't fit on one line they're written as:
<programlisting>
{ arg1, arg2, arg3
, arg4, ...
, # Some comment...
argN
}:
</programlisting>
</para></listitem>
<listitem><para>Functions should list their expected arguments as
precisely as possible. That is, write
<programlisting>
{ stdenv, fetchurl, perl }: <replaceable>...</replaceable>
</programlisting>
instead of
<programlisting>
args: with args; <replaceable>...</replaceable>
</programlisting>
or
<programlisting>
{ stdenv, fetchurl, perl, ... }: <replaceable>...</replaceable>
</programlisting>
</para>
<para>For functions that are truly generic in the number of
arguments (such as wrappers around <varname>mkDerivation</varname>)
that have some required arguments, you should write them using an
<literal>@</literal>-pattern:
<programlisting>
{ stdenv, doCoverageAnalysis ? false, ... } @ args:
stdenv.mkDerivation (args // {
<replaceable>...</replaceable> if doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
})
</programlisting>
instead of
<programlisting>
args:
args.stdenv.mkDerivation (args // {
<replaceable>...</replaceable> if args ? doCoverageAnalysis &amp;&amp; args.doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
})
</programlisting>
</para></listitem>
</itemizedlist>
</section>
<section xml:id="sec-package-naming"><title>Package naming</title>
<para>In Nixpkgs, there are generally three different names associated with a package:
<itemizedlist>
<listitem><para>The <varname>name</varname> attribute of the
derivation (excluding the version part). This is what most users
see, in particular when using
<command>nix-env</command>.</para></listitem>
<listitem><para>The variable name used for the instantiated package
in <filename>all-packages.nix</filename>, and when passing it as a
dependency to other functions. This is what Nix expression authors
see. It can also be used when installing using <command>nix-env
-iA</command>.</para></listitem>
<listitem><para>The filename for (the directory containing) the Nix
expression.</para></listitem>
</itemizedlist>
Most of the time, these are the same. For instance, the package
<literal>e2fsprogs</literal> has a <varname>name</varname> attribute
<literal>"e2fsprogs-<replaceable>version</replaceable>"</literal>, is
bound to the variable name <varname>e2fsprogs</varname> in
<filename>all-packages.nix</filename>, and the Nix expression is in
<filename>pkgs/os-specific/linux/e2fsprogs/default.nix</filename>.
</para>
<para>There are a few naming guidelines:
<itemizedlist>
<listitem><para>Generally, try to stick to the upstream package
name.</para></listitem>
<listitem><para>Dont use uppercase letters in the
<literal>name</literal> attribute — e.g.,
<literal>"mplayer-1.0rc2"</literal> instead of
<literal>"MPlayer-1.0rc2"</literal>.</para></listitem>
<listitem><para>The version part of the <literal>name</literal>
attribute <emphasis>must</emphasis> start with a digit (following a
dash) — e.g., <literal>"hello-0.3.1rc2"</literal>.</para></listitem>
<listitem><para>If a package is not a release but a commit from a repository, then
the version part of the name <emphasis>must</emphasis> be the date of that
(fetched) commit. The date must be in <literal>"YYYY-MM-DD"</literal> format.
Also append <literal>"unstable"</literal> to the name - e.g.,
<literal>"pkgname-unstable-2014-09-23"</literal>.</para></listitem>
<listitem><para>Dashes in the package name should be preserved
in new variable names, rather than converted to underscores
(which was convention up to around 2013 and most names
still have underscores instead of dashes) — e.g.,
<varname>http-parser</varname> instead of
<varname>http_parser</varname>.</para></listitem>
<listitem><para>If there are multiple versions of a package, this
should be reflected in the variable names in
<filename>all-packages.nix</filename>,
e.g. <varname>json-c-0-9</varname> and <varname>json-c-0-11</varname>.
If there is an obvious “default” version, make an attribute like
<literal>json-c = json-c-0-9;</literal>.
See also <xref linkend="sec-versioning" /></para></listitem>
</itemizedlist>
</para>
</section>
<section xml:id="sec-organisation"><title>File naming and organisation</title>
<para>Names of files and directories should be in lowercase, with
dashes between words — not in camel case. For instance, it should be
<filename>all-packages.nix</filename>, not
<filename>allPackages.nix</filename> or
<filename>AllPackages.nix</filename>.</para>
<section xml:id="sec-hierarchy"><title>Hierarchy</title>
<para>Each package should be stored in its own directory somewhere in
the <filename>pkgs/</filename> tree, i.e. in
<filename>pkgs/<replaceable>category</replaceable>/<replaceable>subcategory</replaceable>/<replaceable>...</replaceable>/<replaceable>pkgname</replaceable></filename>.
Below are some rules for picking the right category for a package.
Many packages fall under several categories; what matters is the
<emphasis>primary</emphasis> purpose of a package. For example, the
<literal>libxml2</literal> package builds both a library and some
tools; but its a library foremost, so it goes under
<filename>pkgs/development/libraries</filename>.</para>
<para>When in doubt, consider refactoring the
<filename>pkgs/</filename> tree, e.g. creating new categories or
splitting up an existing category.</para>
<variablelist>
<varlistentry>
<term>If its used to support <emphasis>software development</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>library</emphasis> used by other packages:</term>
<listitem>
<para><filename>development/libraries</filename> (e.g. <filename>libxml2</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>compiler</emphasis>:</term>
<listitem>
<para><filename>development/compilers</filename> (e.g. <filename>gcc</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an <emphasis>interpreter</emphasis>:</term>
<listitem>
<para><filename>development/interpreters</filename> (e.g. <filename>guile</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a (set of) development <emphasis>tool(s)</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>parser generator</emphasis> (including lexers):</term>
<listitem>
<para><filename>development/tools/parsing</filename> (e.g. <filename>bison</filename>, <filename>flex</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>build manager</emphasis>:</term>
<listitem>
<para><filename>development/tools/build-managers</filename> (e.g. <filename>gnumake</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>development/tools/misc</filename> (e.g. <filename>binutils</filename>)</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>development/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a (set of) <emphasis>tool(s)</emphasis>:</term>
<listitem>
<para>(A tool is a relatively small program, especially one intented
to be used non-interactively.)</para>
<variablelist>
<varlistentry>
<term>If its for <emphasis>networking</emphasis>:</term>
<listitem>
<para><filename>tools/networking</filename> (e.g. <filename>wget</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its for <emphasis>text processing</emphasis>:</term>
<listitem>
<para><filename>tools/text</filename> (e.g. <filename>diffutils</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>system utility</emphasis>, i.e.,
something related or essential to the operation of a
system:</term>
<listitem>
<para><filename>tools/system</filename> (e.g. <filename>cron</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an <emphasis>archiver</emphasis> (which may
include a compression function):</term>
<listitem>
<para><filename>tools/archivers</filename> (e.g. <filename>zip</filename>, <filename>tar</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>compression</emphasis> program:</term>
<listitem>
<para><filename>tools/compression</filename> (e.g. <filename>gzip</filename>, <filename>bzip2</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>security</emphasis>-related program:</term>
<listitem>
<para><filename>tools/security</filename> (e.g. <filename>nmap</filename>, <filename>gnupg</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>tools/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>shell</emphasis>:</term>
<listitem>
<para><filename>shells</filename> (e.g. <filename>bash</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>server</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a web server:</term>
<listitem>
<para><filename>servers/http</filename> (e.g. <filename>apache-httpd</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an implementation of the X Windowing System:</term>
<listitem>
<para><filename>servers/x11</filename> (e.g. <filename>xorg</filename> — this includes the client libraries and programs)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>servers/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>desktop environment</emphasis>:</term>
<listitem>
<para><filename>desktops</filename> (e.g. <filename>kde</filename>, <filename>gnome</filename>, <filename>enlightenment</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>window manager</emphasis>:</term>
<listitem>
<para><filename>applications/window-managers</filename> (e.g. <filename>awesome</filename>, <filename>compiz</filename>, <filename>stumpwm</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an <emphasis>application</emphasis>:</term>
<listitem>
<para>A (typically large) program with a distinct user
interface, primarily used interactively.</para>
<variablelist>
<varlistentry>
<term>If its a <emphasis>version management system</emphasis>:</term>
<listitem>
<para><filename>applications/version-management</filename> (e.g. <filename>subversion</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its for <emphasis>video playback / editing</emphasis>:</term>
<listitem>
<para><filename>applications/video</filename> (e.g. <filename>vlc</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its for <emphasis>graphics viewing / editing</emphasis>:</term>
<listitem>
<para><filename>applications/graphics</filename> (e.g. <filename>gimp</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its for <emphasis>networking</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>mailreader</emphasis>:</term>
<listitem>
<para><filename>applications/networking/mailreaders</filename> (e.g. <filename>thunderbird</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>newsreader</emphasis>:</term>
<listitem>
<para><filename>applications/networking/newsreaders</filename> (e.g. <filename>pan</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>web browser</emphasis>:</term>
<listitem>
<para><filename>applications/networking/browsers</filename> (e.g. <filename>firefox</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>applications/networking/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>applications/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its <emphasis>data</emphasis> (i.e., does not have a
straight-forward executable semantics):</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>font</emphasis>:</term>
<listitem>
<para><filename>data/fonts</filename></para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its related to <emphasis>SGML/XML processing</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its an <emphasis>XML DTD</emphasis>:</term>
<listitem>
<para><filename>data/sgml+xml/schemas/xml-dtd</filename> (e.g. <filename>docbook</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an <emphasis>XSLT stylesheet</emphasis>:</term>
<listitem>
<para>(Okay, these are executable...)</para>
<para><filename>data/sgml+xml/stylesheets/xslt</filename> (e.g. <filename>docbook-xsl</filename>)</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>game</emphasis>:</term>
<listitem>
<para><filename>games</filename></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="sec-versioning"><title>Versioning</title>
<para>Because every version of a package in Nixpkgs creates a
potential maintenance burden, old versions of a package should not be
kept unless there is a good reason to do so. For instance, Nixpkgs
contains several versions of GCC because other packages dont build
with the latest version of GCC. Other examples are having both the
latest stable and latest pre-release version of a package, or to keep
several major releases of an application that differ significantly in
functionality.</para>
<para>If there is only one version of a package, its Nix expression
should be named <filename>e2fsprogs/default.nix</filename>. If there
are multiple versions, this should be reflected in the filename,
e.g. <filename>e2fsprogs/1.41.8.nix</filename> and
<filename>e2fsprogs/1.41.9.nix</filename>. The version in the
filename should leave out unnecessary detail. For instance, if we
keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they
should be named <filename>firefox/2.0.nix</filename> and
<filename>firefox/3.5.nix</filename>, respectively (which, at a given
point, might contain versions <literal>2.0.0.20</literal> and
<literal>3.5.4</literal>). If a version requires many auxiliary
files, you can use a subdirectory for each version,
e.g. <filename>firefox/2.0/default.nix</filename> and
<filename>firefox/3.5/default.nix</filename>.</para>
<para>All versions of a package <emphasis>must</emphasis> be included
in <filename>all-packages.nix</filename> to make sure that they
evaluate correctly.</para>
</section>
</section>
<section xml:id="sec-sources"><title>Fetching Sources</title>
<para>There are multiple ways to fetch a package source in nixpkgs. The
general guidline is that you should package sources with a high degree of
availability. Right now there is only one fetcher which has mirroring
support and that is <literal>fetchurl</literal>. Note that you should also
prefer protocols which have a corresponding proxy environment variable.
</para>
<para>You can find many source fetch helpers in <literal>pkgs/build-support/fetch*</literal>.
</para>
<para>In the file <literal>pkgs/top-level/all-packages.nix</literal> you can
find fetch helpers, these have names on the form
<literal>fetchFrom*</literal>. The intention of these are to provide
snapshot fetches but using the same api as some of the version controlled
fetchers from <literal>pkgs/build-support/</literal>. As an example going
from bad to good:
<itemizedlist>
<listitem>
<para>Bad: Uses <literal>git://</literal> which won't be proxied.
<programlisting>
src = fetchgit {
url = "git://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
}
</programlisting>
</para>
</listitem>
<listitem>
<para>Better: This is ok, but an archive fetch will still be faster.
<programlisting>
src = fetchgit {
url = "https://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
sha256 = "1cw5fszffl5pkpa6s6wjnkiv6lm5k618s32sp60kvmvpy7a2v9kg";
}
</programlisting>
</para>
</listitem>
<listitem>
<para>Best: Fetches a snapshot archive and you get the rev you want.
<programlisting>
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9";
}
</programlisting>
</para>
</listitem>
</itemizedlist>
</para>
</section>
<section xml:id="sec-patches"><title>Patches</title>
<para>Only patches that are unique to <literal>nixpkgs</literal> should be
included in <literal>nixpkgs</literal> source.</para>
<para>Patches available online should be retrieved using
<literal>fetchpatch</literal>.</para>
<para>
<programlisting>
patches = [
(fetchpatch {
name = "fix-check-for-using-shared-freetype-lib.patch";
url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285";
sha256 = "1f0k043rng7f0rfl9hhb89qzvvksqmkrikmm38p61yfx51l325xr";
})
];
</programlisting>
</para>
</section>
</chapter>

109
doc/configuration.xml Normal file
View File

@@ -0,0 +1,109 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-packageconfig">
<title><filename>~/.nixpkgs/config.nix</filename>: global configuration</title>
<para>Nix packages can be configured to allow or deny certain options.</para>
<para>To apply the configuration edit
<filename>~/.nixpkgs/config.nix</filename> and set it like
<programlisting>
{
allowUnfree = true;
}
</programlisting>
and will allow the Nix package manager to install unfree licensed packages.</para>
<para>The configuration as listed also applies to NixOS under
<option>nixpkgs.config</option> set.</para>
<itemizedlist>
<listitem>
<para>Allow installing of packages that are distributed under
unfree license by setting <programlisting>allowUnfree =
true;</programlisting> or deny them by setting it to
<literal>false</literal>.</para>
<para>Same can be achieved by setting the environment variable:
<programlisting>
$ export NIXPKGS_ALLOW_UNFREE=1
</programlisting>
</para>
</listitem>
<listitem>
<para>Whenever unfree packages are not allowed, single packages
can still be allowed by a predicate function that accepts package
as an argument and should return a boolean:
<programlisting>
allowUnfreePredicate = (pkg: ...);
</programlisting>
Example to allow flash player and visual studio code only:
<programlisting>
allowUnfreePredicate = with builtins; (pkg: elem (parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);
</programlisting>
</para>
</listitem>
<listitem>
<para>Whenever unfree packages are not allowed, packages can still
be whitelisted by their license:
<programlisting>
whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
</programlisting>
</para>
</listitem>
<listitem>
<para>In addition to whitelisting licenses which are denied by the
<literal>allowUnfree</literal> setting, you can also explicitely
deny installation of packages which have a certain license:
<programlisting>
blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ];
</programlisting>
</para>
</listitem>
</itemizedlist>
<para>A complete list of licenses can be found in the file
<filename>lib/licenses.nix</filename> of the nix package tree.</para>
<!--============================================================-->
<section xml:id="sec-modify-via-packageOverrides"><title>Modify
packages via <literal>packageOverrides</literal></title>
<para>You can define a function called
<varname>packageOverrides</varname> in your local
<filename>~/.nixpkgs/config.nix</filename> to overide nix packages. It
must be a function that takes pkgs as an argument and return modified
set of packages.
<programlisting>
{
packageOverrides = pkgs: rec {
foo = pkgs.foo.override { ... };
};
}
</programlisting>
</para>
</section>
</chapter>

20
doc/contributing.xml Normal file
View File

@@ -0,0 +1,20 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-contributing">
<title>Contributing to this documentation</title>
<para>The DocBook sources of the Nixpkgs manual are in the <filename
xlink:href="https://github.com/NixOS/nixpkgs/tree/master/doc">doc</filename>
subdirectory of the Nixpkgs repository. If you make modifications to
the manual, it's important to build it before committing. You can do that as follows:
<screen>
$ cd /path/to/nixpkgs
$ nix-build doc
</screen>
If the build succeeds, the manual will be in
<filename>./result/share/doc/nixpkgs/manual.html</filename>.</para>
</chapter>

View File

@@ -1,691 +0,0 @@
# Coding conventions {#chap-conventions}
## Syntax {#sec-syntax}
- Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts.
- Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use `(setq-default indent-tabs-mode nil)` in Emacs. Everybody has different tab settings so its asking for trouble.
- Use `lowerCamelCase` for variable names, not `UpperCamelCase`. Note, this rule does not apply to package attribute names, which instead follow the rules in [](#sec-package-naming).
- Function calls with attribute set arguments are written as
```nix
foo {
arg = ...;
}
```
not
```nix
foo
{
arg = ...;
}
```
Also fine is
```nix
foo { arg = ...; }
```
if it's a short call.
- In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned:
```nix
# A long list.
list = [
elem1
elem2
elem3
];
# A long attribute set.
attrs = {
attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
# Combined
listOfAttrs = [
{
attr1 = 3;
attr2 = "fff";
}
{
attr1 = 5;
attr2 = "ggg";
}
];
```
- Short lists or attribute sets can be written on one line:
```nix
# A short list.
list = [ elem1 elem2 elem3 ];
# A short set.
attrs = { x = 1280; y = 1024; };
```
- Breaking in the middle of a function argument can give hard-to-read code, like
```nix
someFunction { x = 1280;
y = 1024; } otherArg
yetAnotherArg
```
(especially if the argument is very large, spanning multiple lines).
Better:
```nix
someFunction
{ x = 1280; y = 1024; }
otherArg
yetAnotherArg
```
or
```nix
let res = { x = 1280; y = 1024; };
in someFunction res otherArg yetAnotherArg
```
- The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e.
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
```
not
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
```
- Function formal arguments are written as:
```nix
{ arg1, arg2, arg3 }:
```
but if they don't fit on one line they're written as:
```nix
{ arg1, arg2, arg3
, arg4, ...
, # Some comment...
argN
}:
```
- Functions should list their expected arguments as precisely as possible. That is, write
```nix
{ stdenv, fetchurl, perl }: ...
```
instead of
```nix
args: with args; ...
```
or
```nix
{ stdenv, fetchurl, perl, ... }: ...
```
For functions that are truly generic in the number of arguments (such as wrappers around `mkDerivation`) that have some required arguments, you should write them using an `@`-pattern:
```nix
{ stdenv, doCoverageAnalysis ? false, ... } @ args:
stdenv.mkDerivation (args // {
... if doCoverageAnalysis then "bla" else "" ...
})
```
instead of
```nix
args:
args.stdenv.mkDerivation (args // {
... if args ? doCoverageAnalysis && args.doCoverageAnalysis then "bla" else "" ...
})
```
- Unnecessary string conversions should be avoided. Do
```nix
rev = version;
```
instead of
```nix
rev = "${version}";
```
- Building lists conditionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
```nix
buildInputs = lib.optional stdenv.isDarwin iconv;
```
instead of
```nix
buildInputs = if stdenv.isDarwin then [ iconv ] else null;
```
As an exception, an explicit conditional expression with null can be used when fixing a important bug without triggering a mass rebuild.
If this is done a follow up pull request _should_ be created to change the code to `lib.optional(s)`.
- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
## Package naming {#sec-package-naming}
The key words _must_, _must not_, _required_, _shall_, _shall not_, _should_, _should not_, _recommended_, _may_, and _optional_ in this section are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119). Only _emphasized_ words are to be interpreted in this way.
In Nixpkgs, there are generally three different names associated with a package:
- The `pname` attribute of the derivation. This is what most users see, in particular when using `nix-env`.
- The variable name used for the instantiated package in `all-packages.nix`, and when passing it as a dependency to other functions. Typically this is called the _package attribute name_. This is what Nix expression authors see. It can also be used when installing using `nix-env -iA`.
- The filename for (the directory containing) the Nix expression.
Most of the time, these are the same. For instance, the package `e2fsprogs` has a `pname` attribute `"e2fsprogs"`, is bound to the variable name `e2fsprogs` in `all-packages.nix`, and the Nix expression is in `pkgs/os-specific/linux/e2fsprogs/default.nix`.
There are a few naming guidelines:
- The `pname` attribute _should_ be identical to the upstream package name.
- The `pname` and the `version` attribute _must not_ contain uppercase letters — e.g., `"mplayer" instead of `"MPlayer"`.
- The `version` attribute _must_ start with a digit e.g`"0.3.1rc2".
- If a package is not a release but a commit from a repository, then the `version` attribute _must_ be the date of that (fetched) commit. The date _must_ be in `"unstable-YYYY-MM-DD"` format.
- Dashes in the package `pname` _should_ be preserved in new variable names, rather than converted to underscores or camel cased — e.g., `http-parser` instead of `http_parser` or `httpParser`. The hyphenated style is preferred in all three package names.
- If there are multiple versions of a package, this _should_ be reflected in the variable names in `all-packages.nix`, e.g. `json-c_0_9` and `json-c_0_11`. If there is an obvious “default” version, make an attribute like `json-c = json-c_0_9;`. See also [](#sec-versioning)
## File naming and organisation {#sec-organisation}
Names of files and directories should be in lowercase, with dashes between words — not in camel case. For instance, it should be `all-packages.nix`, not `allPackages.nix` or `AllPackages.nix`.
### Hierarchy {#sec-hierarchy}
Each package should be stored in its own directory somewhere in the `pkgs/` tree, i.e. in `pkgs/category/subcategory/.../pkgname`. Below are some rules for picking the right category for a package. Many packages fall under several categories; what matters is the _primary_ purpose of a package. For example, the `libxml2` package builds both a library and some tools; but its a library foremost, so it goes under `pkgs/development/libraries`.
When in doubt, consider refactoring the `pkgs/` tree, e.g. creating new categories or splitting up an existing category.
**If its used to support _software development_:**
- **If its a _library_ used by other packages:**
- `development/libraries` (e.g. `libxml2`)
- **If its a _compiler_:**
- `development/compilers` (e.g. `gcc`)
- **If its an _interpreter_:**
- `development/interpreters` (e.g. `guile`)
- **If its a (set of) development _tool(s)_:**
- **If its a _parser generator_ (including lexers):**
- `development/tools/parsing` (e.g. `bison`, `flex`)
- **If its a _build manager_:**
- `development/tools/build-managers` (e.g. `gnumake`)
- **If its a _language server_:**
- `development/tools/language-servers` (e.g. `ccls` or `rnix-lsp`)
- **Else:**
- `development/tools/misc` (e.g. `binutils`)
- **Else:**
- `development/misc`
**If its a (set of) _tool(s)_:**
(A tool is a relatively small program, especially one intended to be used non-interactively.)
- **If its for _networking_:**
- `tools/networking` (e.g. `wget`)
- **If its for _text processing_:**
- `tools/text` (e.g. `diffutils`)
- **If its a _system utility_, i.e., something related or essential to the operation of a system:**
- `tools/system` (e.g. `cron`)
- **If its an _archiver_ (which may include a compression function):**
- `tools/archivers` (e.g. `zip`, `tar`)
- **If its a _compression_ program:**
- `tools/compression` (e.g. `gzip`, `bzip2`)
- **If its a _security_-related program:**
- `tools/security` (e.g. `nmap`, `gnupg`)
- **Else:**
- `tools/misc`
**If its a _shell_:**
- `shells` (e.g. `bash`)
**If its a _server_:**
- **If its a web server:**
- `servers/http` (e.g. `apache-httpd`)
- **If its an implementation of the X Windowing System:**
- `servers/x11` (e.g. `xorg` — this includes the client libraries and programs)
- **Else:**
- `servers/misc`
**If its a _desktop environment_:**
- `desktops` (e.g. `kde`, `gnome`, `enlightenment`)
**If its a _window manager_:**
- `applications/window-managers` (e.g. `awesome`, `stumpwm`)
**If its an _application_:**
A (typically large) program with a distinct user interface, primarily used interactively.
- **If its a _version management system_:**
- `applications/version-management` (e.g. `subversion`)
- **If its a _terminal emulator_:**
- `applications/terminal-emulators` (e.g. `alacritty` or `rxvt` or `termite`)
- **If its a _file manager_:**
- `applications/file-managers` (e.g. `mc` or `ranger` or `pcmanfm`)
- **If its for _video playback / editing_:**
- `applications/video` (e.g. `vlc`)
- **If its for _graphics viewing / editing_:**
- `applications/graphics` (e.g. `gimp`)
- **If its for _networking_:**
- **If its a _mailreader_:**
- `applications/networking/mailreaders` (e.g. `thunderbird`)
- **If its a _newsreader_:**
- `applications/networking/newsreaders` (e.g. `pan`)
- **If its a _web browser_:**
- `applications/networking/browsers` (e.g. `firefox`)
- **Else:**
- `applications/networking/misc`
- **Else:**
- `applications/misc`
**If its _data_ (i.e., does not have a straight-forward executable semantics):**
- **If its a _font_:**
- `data/fonts`
- **If its an _icon theme_:**
- `data/icons`
- **If its related to _SGML/XML processing_:**
- **If its an _XML DTD_:**
- `data/sgml+xml/schemas/xml-dtd` (e.g. `docbook`)
- **If its an _XSLT stylesheet_:**
(Okay, these are executable...)
- `data/sgml+xml/stylesheets/xslt` (e.g. `docbook-xsl`)
- **If its a _theme_ for a _desktop environment_, a _window manager_ or a _display manager_:**
- `data/themes`
**If its a _game_:**
- `games`
**Else:**
- `misc`
### Versioning {#sec-versioning}
Because every version of a package in Nixpkgs creates a potential maintenance burden, old versions of a package should not be kept unless there is a good reason to do so. For instance, Nixpkgs contains several versions of GCC because other packages dont build with the latest version of GCC. Other examples are having both the latest stable and latest pre-release version of a package, or to keep several major releases of an application that differ significantly in functionality.
If there is only one version of a package, its Nix expression should be named `e2fsprogs/default.nix`. If there are multiple versions, this should be reflected in the filename, e.g. `e2fsprogs/1.41.8.nix` and `e2fsprogs/1.41.9.nix`. The version in the filename should leave out unnecessary detail. For instance, if we keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named `firefox/2.0.nix` and `firefox/3.5.nix`, respectively (which, at a given point, might contain versions `2.0.0.20` and `3.5.4`). If a version requires many auxiliary files, you can use a subdirectory for each version, e.g. `firefox/2.0/default.nix` and `firefox/3.5/default.nix`.
All versions of a package _must_ be included in `all-packages.nix` to make sure that they evaluate correctly.
## Fetching Sources {#sec-sources}
There are multiple ways to fetch a package source in nixpkgs. The general guideline is that you should package reproducible sources with a high degree of availability. Right now there is only one fetcher which has mirroring support and that is `fetchurl`. Note that you should also prefer protocols which have a corresponding proxy environment variable.
You can find many source fetch helpers in `pkgs/build-support/fetch*`.
In the file `pkgs/top-level/all-packages.nix` you can find fetch helpers, these have names on the form `fetchFrom*`. The intention of these are to provide snapshot fetches but using the same api as some of the version controlled fetchers from `pkgs/build-support/`. As an example going from bad to good:
- Bad: Uses `git://` which won't be proxied.
```nix
src = fetchgit {
url = "git@github.com:NixOS/nix.git"
url = "git://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "sha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
- Better: This is ok, but an archive fetch will still be faster.
```nix
src = fetchgit {
url = "https://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "sha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
- Best: Fetches a snapshot archive and you get the rev you want.
```nix
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "ha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
When fetching from GitHub, commits must always be referenced by their full commit hash. This is because GitHub shares commit hashes among all forks and returns `404 Not Found` when a short commit hash is ambiguous. It already happens for some short, 6-character commit hashes in `nixpkgs`.
It is a practical vector for a denial-of-service attack by pushing large amounts of auto generated commits into forks and was already [demonstrated against GitHub Actions Beta](https://blog.teddykatz.com/2019/11/12/github-actions-dos.html).
Find the value to put as `hash` by running `nix-shell -p nix-prefetch-github --run "nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix"`.
## Obtaining source hash {#sec-source-hashes}
Preferred source hash type is sha256. There are several ways to get it.
1. Prefetch URL (with `nix-prefetch-XXX URL`, where `XXX` is one of `url`, `git`, `hg`, `cvs`, `bzr`, `svn`). Hash is printed to stdout.
2. Prefetch by package source (with `nix-prefetch-url '<nixpkgs>' -A PACKAGE.src`, where `PACKAGE` is package attribute name). Hash is printed to stdout.
This works well when you've upgraded existing package version and want to find out new hash, but is useless if package can't be accessed by attribute or package has multiple sources (`.srcs`, architecture-dependent sources, etc).
3. Upstream provided hash: use it when upstream provides `sha256` or `sha512` (when upstream provides `md5`, don't use it, compute `sha256` instead).
A little nuance is that `nix-prefetch-*` tools produce hash encoded with `base32`, but upstream usually provides hexadecimal (`base16`) encoding. Fetchers understand both formats. Nixpkgs does not standardize on any one format.
You can convert between formats with nix-hash, for example:
```ShellSession
$ nix-hash --type sha256 --to-base32 HASH
```
4. Extracting hash from local source tarball can be done with `sha256sum`. Use `nix-prefetch-url file:///path/to/tarball` if you want base32 hash.
5. Fake hash: set the hash to one of
- `""`
- `lib.fakeHash`
- `lib.fakeSha256`
- `lib.fakeSha512`
in the package expression, attempt build and extract correct hash from error messages.
::: {.warning}
You must use one of these four fake hashes and not some arbitrarily-chosen hash.
See [](#sec-source-hashes-security).
:::
This is last resort method when reconstructing source URL is non-trivial and `nix-prefetch-url -A` isnt applicable (for example, [one of `kodi` dependencies](https://github.com/NixOS/nixpkgs/blob/d2ab091dd308b99e4912b805a5eb088dd536adb9/pkgs/applications/video/kodi/default.nix#L73)). The easiest way then would be replace hash with a fake one and rebuild. Nix build will fail and error message will contain desired hash.
### Obtaining hashes securely {#sec-source-hashes-security}
Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead of fetching source you can fetch malware, and instead of source hash you get hash of malware. Here are security considerations for this scenario:
- `http://` URLs are not secure to prefetch hash from;
- hashes from upstream (in method 3) should be obtained via secure protocol;
- `https://` URLs are secure in methods 1, 2, 3;
- `https://` URLs are secure in method 5 *only if* you use one of the listed fake hashes. If you use any other hash, `fetchurl` will pass `--insecure` to `curl` and may then degrade to HTTP in case of TLS certificate expiration.
## Patches {#sec-patches}
Patches available online should be retrieved using `fetchpatch`.
```nix
patches = [
(fetchpatch {
name = "fix-check-for-using-shared-freetype-lib.patch";
url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285";
hash = "sha256-uRcxaCjd+WAuGrXOmGfFeu79cUILwkRdBu48mwcBE7g=";
})
];
```
Otherwise, you can add a `.patch` file to the `nixpkgs` repository. In the interest of keeping our maintenance burden to a minimum, only patches that are unique to `nixpkgs` should be added in this way.
If a patch is available online but does not cleanly apply, it can be modified in some fixed ways by using additional optional arguments for `fetchpatch`. Check [](#fetchpatch) for details.
```nix
patches = [ ./0001-changes.patch ];
```
If you do need to do create this sort of patch file, one way to do so is with git:
1. Move to the root directory of the source code you're patching.
```ShellSession
$ cd the/program/source
```
2. If a git repository is not already present, create one and stage all of the source files.
```ShellSession
$ git init
$ git add .
```
3. Edit some files to make whatever changes need to be included in the patch.
4. Use git to create a diff, and pipe the output to a patch file:
```ShellSession
$ git diff -a > nixpkgs/pkgs/the/package/0001-changes.patch
```
## Package tests {#sec-package-tests}
Tests are important to ensure quality and make reviews and automatic updates easy.
The following types of tests exists:
* [NixOS **module tests**](https://nixos.org/manual/nixos/stable/#sec-nixos-tests), which spawn one or more NixOS VMs. They exercise both NixOS modules and the packaged programs used within them. For example, a NixOS module test can start a web server VM running the `nginx` module, and a client VM running `curl` or a graphical `firefox`, and test that they can talk to each other and display the correct content.
* Nix **package tests** are a lightweight alternative to NixOS module tests. They should be used to create simple integration tests for packages, but cannot test NixOS services, and some programs with graphical user interfaces may also be difficult to test with them.
* The **`checkPhase` of a package**, which should execute the unit tests that are included in the source code of a package.
Here in the nixpkgs manual we describe mostly _package tests_; for _module tests_ head over to the corresponding [section in the NixOS manual](https://nixos.org/manual/nixos/stable/#sec-nixos-tests).
### Writing inline package tests {#ssec-inline-package-tests-writing}
For very simple tests, they can be written inline:
```nix
{ …, yq-go }:
buildGoModule rec {
passthru.tests = {
simple = runCommand "${pname}-test" {} ''
echo "test: 1" | ${yq-go}/bin/yq eval -j > $out
[ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ]
'';
};
}
```
### Writing larger package tests {#ssec-package-tests-writing}
This is an example using the `phoronix-test-suite` package with the current best practices.
Add the tests in `passthru.tests` to the package definition like this:
```nix
{ stdenv, lib, fetchurl, callPackage }:
stdenv.mkDerivation {
passthru.tests = {
simple-execution = callPackage ./tests.nix { };
};
meta = { … };
}
```
Create `tests.nix` in the package directory:
```nix
{ runCommand, phoronix-test-suite }:
let
inherit (phoronix-test-suite) pname version;
in
runCommand "${pname}-tests" { meta.timeout = 60; }
''
# automatic initial setup to prevent interactive questions
${phoronix-test-suite}/bin/phoronix-test-suite enterprise-setup >/dev/null
# get version of installed program and compare with package version
if [[ `${phoronix-test-suite}/bin/phoronix-test-suite version` != *"${version}"* ]]; then
echo "Error: program version does not match package version"
exit 1
fi
# run dummy command
${phoronix-test-suite}/bin/phoronix-test-suite dummy_module.dummy-command >/dev/null
# needed for Nix to register the command as successful
touch $out
''
```
### Running package tests {#ssec-package-tests-running}
You can run these tests with:
```ShellSession
$ cd path/to/nixpkgs
$ nix-build -A phoronix-test-suite.tests
```
### Examples of package tests {#ssec-package-tests-examples}
Here are examples of package tests:
- [Jasmin compile test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/jasmin/test-assemble-hello-world/default.nix)
- [Lobster compile test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/lobster/test-can-run-hello-world.nix)
- [Spacy annotation test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/spacy/annotation-test/default.nix)
- [Libtorch test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/science/math/libtorch/test/default.nix)
- [Multiple tests for nanopb](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/nanopb/default.nix)
### Linking NixOS module tests to a package {#ssec-nixos-tests-linking}
Like [package tests](#ssec-package-tests-writing) as shown above, [NixOS module tests](https://nixos.org/manual/nixos/stable/#sec-nixos-tests) can also be linked to a package, so that the tests can be easily run when changing the related package.
For example, assuming we're packaging `nginx`, we can link its module test via `passthru.tests`:
```nix
{ stdenv, lib, nixosTests }:
stdenv.mkDerivation {
...
passthru.tests = {
nginx = nixosTests.nginx;
};
...
}
```
### Import From Derivation {#ssec-import-from-derivation}
Import From Derivation (IFD) is disallowed in Nixpkgs for performance reasons:
[Hydra] evaluates the entire package set, and sequential builds during evaluation would increase evaluation times to become impractical.
[Hydra]: https://github.com/NixOS/hydra
Import From Derivation can be worked around in some cases by committing generated intermediate files to version control and reading those instead.
<!-- TODO: remove the following and link to Nix manual once https://github.com/NixOS/nix/pull/7332 is merged -->
See also [NixOS Wiki: Import From Derivation].
[NixOS Wiki: Import From Derivation]: https://nixos.wiki/wiki/Import_From_Derivation

View File

@@ -1,118 +0,0 @@
# Contributing to this documentation {#chap-contributing}
The sources of the Nixpkgs manual are in the [doc](https://github.com/NixOS/nixpkgs/tree/master/doc) subdirectory of the Nixpkgs repository. The manual is still partially written in DocBook but it is progressively being converted to [Markdown](#sec-contributing-markup).
You can quickly check your edits with `make`:
```ShellSession
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make
```
If you experience problems, run `make debug` to help understand the docbook errors.
After making modifications to the manual, it's important to build it before committing. You can do that as follows:
```ShellSession
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make clean
[nix-shell]$ nix-build .
```
If the build succeeds, the manual will be in `./result/share/doc/nixpkgs/manual.html`.
## Syntax {#sec-contributing-markup}
As per [RFC 0072](https://github.com/NixOS/rfcs/pull/72), all new documentation content should be written in [CommonMark](https://commonmark.org/) Markdown dialect.
Additional syntax extensions are available, all of which can be used in NixOS option documentation. The following extensions are currently used:
- []{#ssec-contributing-markup-anchors}
Explicitly defined **anchors** on headings, to allow linking to sections. These should be always used, to ensure the anchors can be linked even when the heading text changes, and to prevent conflicts between [automatically assigned identifiers](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/auto_identifiers.md).
It uses the widely compatible [header attributes](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/attributes.md) syntax:
```markdown
## Syntax {#sec-contributing-markup}
```
::: {.note}
NixOS option documentation does not support headings in general.
:::
- []{#ssec-contributing-markup-anchors-inline}
**Inline anchors**, which allow linking arbitrary place in the text (e.g. individual list items, sentences…).
They are defined using a hybrid of the link syntax with the attributes syntax known from headings, called [bracketed spans](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/bracketed_spans.md):
```markdown
- []{#ssec-gnome-hooks-glib} `glib` setup hook will populate `GSETTINGS_SCHEMAS_PATH` and then `wrapGAppsHook` will prepend it to `XDG_DATA_DIRS`.
```
- []{#ssec-contributing-markup-automatic-links}
If you **omit a link text** for a link pointing to a section, the text will be substituted automatically. For example, `[](#chap-contributing)` will result in [](#chap-contributing).
This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing).
- []{#ssec-contributing-markup-inline-roles}
If you want to link to a man page, you can use `` {manpage}`nix.conf(5)` ``, which will turn into {manpage}`nix.conf(5)`. The references will turn into links when a mapping exists in {file}`doc/manpage-urls.json`.
A few markups for other kinds of literals are also available:
- `` {command}`rm -rfi` `` turns into {command}`rm -rfi`
- `` {env}`XDG_DATA_DIRS` `` turns into {env}`XDG_DATA_DIRS`
- `` {file}`/etc/passwd` `` turns into {file}`/etc/passwd`
- `` {option}`networking.useDHCP` `` turns into {option}`networking.useDHCP`
- `` {var}`/etc/passwd` `` turns into {var}`/etc/passwd`
These literal kinds are used mostly in NixOS option documentation.
This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point). Though, the feature originates from [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage) with slightly different syntax.
- []{#ssec-contributing-markup-admonitions}
**Admonitions**, set off from the text to bring attention to something.
It uses pandocs [fenced `div`s syntax](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/fenced_divs.md):
```markdown
::: {.warning}
This is a warning
:::
```
which renders as
> ::: {.warning}
> This is a warning.
> :::
The following are supported:
- [`caution`](https://tdg.docbook.org/tdg/5.0/caution.html)
- [`important`](https://tdg.docbook.org/tdg/5.0/important.html)
- [`note`](https://tdg.docbook.org/tdg/5.0/note.html)
- [`tip`](https://tdg.docbook.org/tdg/5.0/tip.html)
- [`warning`](https://tdg.docbook.org/tdg/5.0/warning.html)
- []{#ssec-contributing-markup-definition-lists}
[**Definition lists**](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/definition_lists.md), for defining a group of terms:
```markdown
pear
: green or yellow bulbous fruit
watermelon
: green fruit with red flesh
```
which renders as
> pear
> : green or yellow bulbous fruit
>
> watermelon
> : green fruit with red flesh
For contributing to the legacy parts, please see [DocBook: The Definitive Guide](https://tdg.docbook.org/) or the [DocBook rocks! primer](https://web.archive.org/web/20200816233747/https://docbook.rocks/).

View File

@@ -1,77 +0,0 @@
# Quick Start to Adding a Package {#chap-quick-start}
To add a package to Nixpkgs:
1. Checkout the Nixpkgs source tree:
```ShellSession
$ git clone https://github.com/NixOS/nixpkgs
$ cd nixpkgs
```
2. Find a good place in the Nixpkgs tree to add the Nix expression for your package. For instance, a library package typically goes into `pkgs/development/libraries/pkgname`, while a web browser goes into `pkgs/applications/networking/browsers/pkgname`. See [](#sec-organisation) for some hints on the tree organisation. Create a directory for your package, e.g.
```ShellSession
$ mkdir pkgs/development/libraries/libfoo
```
3. In the package directory, create a Nix expression — a piece of code that describes how to build the package. In this case, it should be a _function_ that is called with the package dependencies as arguments, and returns a build of the package in the Nix store. The expression should usually be called `default.nix`.
```ShellSession
$ emacs pkgs/development/libraries/libfoo/default.nix
$ git add pkgs/development/libraries/libfoo/default.nix
```
You can have a look at the existing Nix expressions under `pkgs/` to see how its done. Here are some good ones:
- GNU Hello: [`pkgs/applications/misc/hello/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hello/default.nix). Trivial package, which specifies some `meta` attributes which is good practice.
- GNU cpio: [`pkgs/tools/archivers/cpio/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/cpio/default.nix). Also a simple package. The generic builder in `stdenv` does everything for you. It has no dependencies beyond `stdenv`.
- GNU Multiple Precision arithmetic library (GMP): [`pkgs/development/libraries/gmp/5.1.x.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/gmp/5.1.x.nix). Also done by the generic builder, but has a dependency on `m4`.
- Pan, a GTK-based newsreader: [`pkgs/applications/networking/newsreaders/pan/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix). Has an optional dependency on `gtkspell`, which is only built if `spellCheck` is `true`.
- Apache HTTPD: [`pkgs/servers/http/apache-httpd/2.4.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/apache-httpd/2.4.nix). A bunch of optional features, variable substitutions in the configure flags, a post-install hook, and miscellaneous hackery.
- buildMozillaMach: [`pkgs/applications/networking/browser/firefox/common.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/common.nix). A reusable build function for Firefox, Thunderbird and Librewolf.
- JDiskReport, a Java utility: [`pkgs/tools/misc/jdiskreport/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/default.nix). Nixpkgs doesnt have a decent `stdenv` for Java yet so this is pretty ad-hoc.
- XML::Simple, a Perl module: [`pkgs/top-level/perl-packages.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix) (search for the `XMLSimple` attribute). Most Perl modules are so simple to build that they are defined directly in `perl-packages.nix`; no need to make a separate file for them.
- Adobe Reader: [`pkgs/applications/misc/adobe-reader/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/default.nix). Shows how binary-only packages can be supported. In particular the [builder](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/builder.sh) uses `patchelf` to set the RUNPATH and ELF interpreter of the executables so that the right libraries are found at runtime.
Some notes:
- All [`meta`](#chap-meta) attributes are optional, but its still a good idea to provide at least the `description`, `homepage` and [`license`](#sec-meta-license).
- You can use `nix-prefetch-url url` to get the SHA-256 hash of source distributions. There are similar commands as `nix-prefetch-git` and `nix-prefetch-hg` available in `nix-prefetch-scripts` package.
- A list of schemes for `mirror://` URLs can be found in [`pkgs/build-support/fetchurl/mirrors.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/mirrors.nix).
The exact syntax and semantics of the Nix expression language, including the built-in function, are described in the Nix manual in the [chapter on writing Nix expressions](https://hydra.nixos.org/job/nix/trunk/tarball/latest/download-by-type/doc/manual/#chap-writing-nix-expressions).
4. Add a call to the function defined in the previous step to [`pkgs/top-level/all-packages.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix) with some descriptive name for the variable, e.g. `libfoo`.
```ShellSession
$ emacs pkgs/top-level/all-packages.nix
```
The attributes in that file are sorted by category (like “Development / Libraries”) that more-or-less correspond to the directory structure of Nixpkgs, and then by attribute name.
5. To test whether the package builds, run the following command from the root of the nixpkgs source tree:
```ShellSession
$ nix-build -A libfoo
```
where `libfoo` should be the variable name defined in the previous step. You may want to add the flag `-K` to keep the temporary build directory in case something fails. If the build succeeds, a symlink `./result` to the package in the Nix store is created.
6. If you want to install the package into your profile (optional), do
```ShellSession
$ nix-env -f . -iA libfoo
```
7. Optionally commit the new package and open a pull request [to nixpkgs](https://github.com/NixOS/nixpkgs/pulls), or use [the Patches category](https://discourse.nixos.org/t/about-the-patches-category/477) on Discourse for sending a patch without a GitHub account.

View File

@@ -1,319 +0,0 @@
# Reviewing contributions {#chap-reviewing-contributions}
::: {.warning}
The following section is a draft, and the policy for reviewing is still being discussed in issues such as [#11166](https://github.com/NixOS/nixpkgs/issues/11166) and [#20836](https://github.com/NixOS/nixpkgs/issues/20836).
:::
The Nixpkgs project receives a fairly high number of contributions via GitHub pull requests. Reviewing and approving these is an important task and a way to contribute to the project.
The high change rate of Nixpkgs makes any pull request that remains open for too long subject to conflicts that will require extra work from the submitter or the merger. Reviewing pull requests in a timely manner and being responsive to the comments is the key to avoid this issue. GitHub provides sort filters that can be used to see the [most recently](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc) and the [least recently](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc) updated pull requests. We highly encourage looking at [this list of ready to merge, unreviewed pull requests](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+review%3Anone+status%3Asuccess+-label%3A%222.status%3A+work-in-progress%22+no%3Aproject+no%3Aassignee+no%3Amilestone).
When reviewing a pull request, please always be nice and polite. Controversial changes can lead to controversial opinions, but it is important to respect every community member and their work.
GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution.
pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review.
All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking.
## Package updates {#reviewing-contributions-package-updates}
A package update is the most trivial and common type of pull request. These pull requests mainly consist of updating the version part of the package name and the source hash.
It can happen that non-trivial updates include patches or more complex changes.
Reviewing process:
- Ensure that the package versioning fits the guidelines.
- Ensure that the commit text fits the guidelines.
- Ensure that the package maintainers are notified.
- [CODEOWNERS](https://help.github.com/articles/about-codeowners) will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers.
- Ensure that the meta field information is correct.
- License can change with version updates, so it should be checked to match the upstream license.
- If the package has no maintainer, a maintainer must be set. This can be the update submitter or a community member that accepts to take maintainership of the package.
- Ensure that the code contains no typos.
- Building the package locally.
- pull requests are often targeted to the master or staging branch, and building the pull request locally when it is submitted can trigger many source builds.
- It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone.
```ShellSession
$ git fetch origin nixos-unstable
$ git fetch origin pull/PRNUMBER/head
$ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD
```
- The first command fetches the nixos-unstable branch.
- The second command fetches the pull request changes, `PRNUMBER` is the number at the end of the pull request title and `BASEBRANCH` the base branch of the pull request.
- The third command rebases the pull request changes to the nixos-unstable branch.
- The [nixpkgs-review](https://github.com/Mic92/nixpkgs-review) tool can be used to review a pull request content in a single command. `PRNUMBER` should be replaced by the number at the end of the pull request title. You can also provide the full github pull request url.
```ShellSession
$ nix-shell -p nixpkgs-review --run "nixpkgs-review pr PRNUMBER"
```
- Running every binary.
Sample template for a package update review is provided below.
```markdown
##### Reviewed points
- [ ] package name fits guidelines
- [ ] package version fits guidelines
- [ ] package build on ARCHITECTURE
- [ ] executables tested on ARCHITECTURE
- [ ] all depending packages build
##### Possible improvements
##### Comments
```
## New packages {#reviewing-contributions-new-packages}
New packages are a common type of pull requests. These pull requests consists in adding a new nix-expression for a package.
Review process:
- Ensure that the package versioning fits the guidelines.
- Ensure that the commit name fits the guidelines.
- Ensure that the meta fields contain correct information.
- License must match the upstream license.
- Platforms should be set (or the package will not get binary substitutes).
- Maintainers must be set. This can be the package submitter or a community member that accepts taking up maintainership of the package.
- Report detected typos.
- Ensure the package source:
- Uses mirror URLs when available.
- Uses the most appropriate functions (e.g. packages from GitHub should use `fetchFromGitHub`).
- Building the package locally.
- Running every binary.
Sample template for a new package review is provided below.
```markdown
##### Reviewed points
- [ ] package path fits guidelines
- [ ] package name fits guidelines
- [ ] package version fits guidelines
- [ ] package build on ARCHITECTURE
- [ ] executables tested on ARCHITECTURE
- [ ] `meta.description` is set and fits guidelines
- [ ] `meta.license` fits upstream license
- [ ] `meta.platforms` is set
- [ ] `meta.maintainers` is set
- [ ] build time only dependencies are declared in `nativeBuildInputs`
- [ ] source is fetched using the appropriate function
- [ ] the list of `phases` is not overridden
- [ ] when a phase (like `installPhase`) is overridden it starts with `runHook preInstall` and ends with `runHook postInstall`.
- [ ] patches that are remotely available are fetched with `fetchpatch`
##### Possible improvements
##### Comments
```
## Module updates {#reviewing-contributions-module-updates}
Module updates are submissions changing modules in some ways. These often contains changes to the options or introduce new options.
Reviewing process:
- Ensure that the module maintainers are notified.
- [CODEOWNERS](https://help.github.com/articles/about-codeowners/) will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers.
- Ensure that the module tests, if any, are succeeding.
- Ensure that the introduced options are correct.
- Type should be appropriate (string related types differs in their merging capabilities, `loaOf` and `string` types are deprecated).
- Description, default and example should be provided.
- Ensure that option changes are backward compatible.
- `mkRenamedOptionModuleWith` provides a way to make option changes backward compatible.
- Ensure that removed options are declared with `mkRemovedOptionModule`
- Ensure that changes that are not backward compatible are mentioned in release notes.
- Ensure that documentations affected by the change is updated.
Sample template for a module update review is provided below.
```markdown
##### Reviewed points
- [ ] changes are backward compatible
- [ ] removed options are declared with `mkRemovedOptionModule`
- [ ] changes that are not backward compatible are documented in release notes
- [ ] module tests succeed on ARCHITECTURE
- [ ] options types are appropriate
- [ ] options description is set
- [ ] options example is provided
- [ ] documentation affected by the changes is updated
##### Possible improvements
##### Comments
```
## New modules {#reviewing-contributions-new-modules}
New modules submissions introduce a new module to NixOS.
Reviewing process:
- Ensure that the module tests, if any, are succeeding.
- Ensure that the introduced options are correct.
- Type should be appropriate (string related types differs in their merging capabilities, `loaOf` and `string` types are deprecated).
- Description, default and example should be provided.
- Ensure that module `meta` field is present
- Maintainers should be declared in `meta.maintainers`.
- Module documentation should be declared with `meta.doc`.
- Ensure that the module respect other modules functionality.
- For example, enabling a module should not open firewall ports by default.
Sample template for a new module review is provided below.
```markdown
##### Reviewed points
- [ ] module path fits the guidelines
- [ ] module tests succeed on ARCHITECTURE
- [ ] options have appropriate types
- [ ] options have default
- [ ] options have example
- [ ] options have descriptions
- [ ] No unneeded package is added to environment.systemPackages
- [ ] meta.maintainers is set
- [ ] module documentation is declared in meta.doc
##### Possible improvements
##### Comments
```
## Individual maintainer list {#reviewing-contributions-individual-maintainer-list}
When adding users to `maintainers/maintainer-list.nix`, the following
checks should be performed:
- If the user has specified a GPG key, verify that the commit is
signed by their key.
First, validate that the commit adding the maintainer is signed by
the key the maintainer listed. Check out the pull request and
compare its signing key with the listed key in the commit.
If the commit is not signed or it is signed by a different user, ask
them to either recommit using that key or to remove their key
information.
Given a maintainter entry like this:
``` nix
{
example = {
email = "user@example.com";
name = "Example User";
keys = [{
fingerprint = "0000 0000 2A70 6423 0AED 3C11 F04F 7A19 AAA6 3AFE";
}];
}
};
```
First receive their key from a keyserver:
$ gpg --recv-keys 0xF04F7A19AAA63AFE
gpg: key 0xF04F7A19AAA63AFE: public key "Example <user@example.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Then check the commit is signed by that key:
$ git log --show-signature
commit b87862a4f7d32319b1de428adb6cdbdd3a960153
gpg: Signature made Wed Mar 12 13:32:24 2003 +0000
gpg: using RSA key 000000002A7064230AED3C11F04F7A19AAA63AFE
gpg: Good signature from "Example User <user@example.com>
Author: Example User <user@example.com>
Date: Wed Mar 12 13:32:24 2003 +0000
maintainers: adding example
and validate that there is a `Good signature` and the printed key
matches the user's submitted key.
Note: GitHub's "Verified" label does not display the user's full key
fingerprint, and should not be used for validating the key matches.
- If the user has specified a `github` account name, ensure they have
also specified a `githubId` and verify the two match.
Maintainer entries that include a `github` field must also include
their `githubId`. People can and do change their GitHub name
frequently, and the ID is used as the official and stable identity
of the maintainer.
Given a maintainer entry like this:
``` nix
{
example = {
email = "user@example.com";
name = "Example User";
github = "ghost";
githubId = 10137;
}
};
```
First, make sure that the listed GitHub handle matches the author of
the commit.
Then, visit the URL `https://api.github.com/users/ghost` and
validate that the `id` field matches the provided `githubId`.
## Maintainer teams {#reviewing-contributions-maintainer-teams}
Feel free to create a new maintainer team in `maintainers/team-list.nix`
when a group is collectively responsible for a collection of packages.
Use taste and personal judgement when deciding if a team is warranted.
Teams are allowed to define their own rules about membership.
For example, some teams will represent a business or other group which
wants to carefully track its members. Other teams may be very open about
who can join, and allow anybody to participate.
When reviewing changes to a team, read the team's scope and the context
around the member list for indications about the team's membership
policy.
In any case, request reviews from the existing team members. If the team
lists no specific membership policy, feel free to merge changes to the
team after giving the existing members a few days to respond.
*Important:* If a team says it is a closed group, do not merge additions
to the team without an approval by at least one existing member.
## Other submissions {#reviewing-contributions-other-submissions}
Other type of submissions requires different reviewing steps.
If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints.
Container system, boot system and library changes are some examples of the pull requests fitting this category.
## Merging pull requests {#reviewing-contributions--merging-pull-requests}
It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests.
In case the PR is stuck waiting for the original author to apply a trivial
change (a typo, capitalisation change, etc.) and the author allowed the members
to modify the PR, consider applying it yourself. (or commit the existing review
suggestion) You should pay extra attention to make sure the addition doesn't go
against the idea of the original PR and would not be opposed by the author.
<!--
The following paragraphs about how to deal with unactive contributors is just a proposition and should be modified to what the community agrees to be the right policy.
Please note that contributors with commit rights unactive for more than three months will have their commit rights revoked.
-->
Please see the discussion in [GitHub nixpkgs issue #50105](https://github.com/NixOS/nixpkgs/issues/50105) for information on how to proceed to be granted this level of access.
In a case a contributor definitively leaves the Nix community, they should create an issue or post on [Discourse](https://discourse.nixos.org) with references of packages and modules they maintain so the maintainership can be taken over by other contributors.

View File

@@ -1,302 +0,0 @@
# Submitting changes {#chap-submitting-changes}
## Making patches {#submitting-changes-making-patches}
- Read [Manual (How to write packages for Nix)](https://nixos.org/nixpkgs/manual/).
- Fork [the Nixpkgs repository](https://github.com/nixos/nixpkgs/) on GitHub.
- Create a branch for your future fix.
- You can make branch from a commit of your local `nixos-version`. That will help you to avoid additional local compilations. Because you will receive packages from binary cache. For example
```ShellSession
$ nixos-version --hash
0998212
$ git checkout 0998212
$ git checkout -b 'fix/pkg-name-update'
```
- Please avoid working directly on the `master` branch.
- Make commits of logical units.
- If you removed pkgs or made some major NixOS changes, write about it in the release notes for the next stable release. For example `nixos/doc/manual/release-notes/rl-2003.xml`.
- Check for unnecessary whitespace with `git diff --check` before committing.
- Format the commit in a following way:
```
(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc)
Additional information.
```
- Examples:
- `nginx: init at 2.0.1`
- `firefox: 54.0.1 -> 55.0`
- `nixos/hydra: add bazBaz option`
- `nixos/nginx: refactor config generation`
- Test your changes. If you work with
- nixpkgs:
- update pkg
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
- add pkg
- Make sure its in `pkgs/top-level/all-packages.nix`
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
- _If you dont want to install pkg in you profile_.
- `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
- If you installed your package with `nix-env`, you can run `nix-env -e pkg-name` where `pkg-name` is as reported by `nix-env -q` to uninstall it from your system.
- NixOS and its modules:
- You can add new module to your NixOS configuration file (usually its `/etc/nixos/configuration.nix`). And do `sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast`.
- If you have commits `pkg-name: oh, forgot to insert whitespace`: squash commits in this case. Use `git rebase -i`.
- [Rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) your branch against current `master`.
## Submitting changes {#submitting-changes-submitting-changes}
- Push your changes to your fork of nixpkgs.
- Create the pull request
- Follow [the contribution guidelines](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes).
## Submitting security fixes {#submitting-changes-submitting-security-fixes}
Security fixes are submitted in the same way as other changes and thus the same guidelines apply.
- If a new version fixing the vulnerability has been released, update the package;
- If the security fix comes in the form of a patch and a CVE is available, then add the patch to the Nixpkgs tree, and apply it to the package.
The name of the patch should be the CVE identifier, so e.g. `CVE-2019-13636.patch`; If a patch is fetched the name needs to be set as well, e.g.:
```nix
(fetchpatch {
name = "CVE-2019-11068.patch";
url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
hash = "sha256-SEKe/8HcW0UBHCfPTTOnpRlzmV2nQPPeL6HOMxBZd14=";
})
```
If a security fix applies to both master and a stable release then, similar to regular changes, they are preferably delivered via master first and cherry-picked to the release branch.
Critical security fixes may by-pass the staging branches and be delivered directly to release branches such as `master` and `release-*`.
## Deprecating/removing packages {#submitting-changes-deprecating-packages}
There is currently no policy when to remove a package.
Before removing a package, one should try to find a new maintainer or fix smaller issues first.
### Steps to remove a package from Nixpkgs {#steps-to-remove-a-package-from-nixpkgs}
We use jbidwatcher as an example for a discontinued project here.
1. Have Nixpkgs checked out locally and up to date.
1. Create a new branch for your change, e.g. `git checkout -b jbidwatcher`
1. Remove the actual package including its directory, e.g. `git rm -rf pkgs/applications/misc/jbidwatcher`
1. Remove the package from the list of all packages (`pkgs/top-level/all-packages.nix`).
1. Add an alias for the package name in `pkgs/top-level/aliases.nix` (There is also `pkgs/applications/editors/vim/plugins/aliases.nix`. Package sets typically do not have aliases, so we can't add them there.)
For example in this case:
```
jbidwatcher = throw "jbidwatcher was discontinued in march 2021"; # added 2021-03-15
```
The throw message should explain in short why the package was removed for users that still have it installed.
1. Test if the changes introduced any issues by running `nix-env -qaP -f . --show-trace`. It should show the list of packages without errors.
1. Commit the changes. Explain again why the package was removed. If it was declared discontinued upstream, add a link to the source.
```ShellSession
$ git add pkgs/applications/misc/jbidwatcher/default.nix pkgs/top-level/all-packages.nix pkgs/top-level/aliases.nix
$ git commit
```
Example commit message:
```
jbidwatcher: remove
project was discontinued in march 2021. the program does not work anymore because ebay changed the login.
https://web.archive.org/web/20210315205723/http://www.jbidwatcher.com/
```
1. Push changes to your GitHub fork with `git push`
1. Create a pull request against Nixpkgs. Mention the package maintainer.
This is how the pull request looks like in this case: [https://github.com/NixOS/nixpkgs/pull/116470](https://github.com/NixOS/nixpkgs/pull/116470)
## Pull Request Template {#submitting-changes-pull-request-template}
The pull request template helps determine what steps have been made for a contribution so far, and will help guide maintainers on the status of a change. The motivation section of the PR should include any extra details the title does not address and link any existing issues related to the pull request.
When a PR is created, it will be pre-populated with some checkboxes detailed below:
### Tested using sandboxing {#submitting-changes-tested-with-sandbox}
When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of `fetch*` functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see [sandbox](https://nixos.org/nix/manual/#conf-sandbox) in Nix manual for details.
Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests for [nixpkgs](https://github.com/NixOS/nixpkgs/) people are asked to test builds with sandboxing enabled (see `Tested using sandboxing` in the pull request template) because in<https://nixos.org/hydra/> sandboxing is also used.
Depending if you use NixOS or other platforms you can use one of the following methods to enable sandboxing **before** building the package:
- **Globally enable sandboxing on NixOS**: add the following to `configuration.nix`
```nix
nix.useSandbox = true;
```
- **Globally enable sandboxing on non-NixOS platforms**: add the following to: `/etc/nix/nix.conf`
```ini
sandbox = true
```
### Built on platform(s) {#submitting-changes-platform-diversity}
Many Nix packages are designed to run on multiple platforms. As such, its important to let the maintainer know which platforms your changes have been tested on. Its not always practical to test a change on all platforms, and is not required for a pull request to be merged. Only check the systems you tested the build on in this section.
### Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) {#submitting-changes-nixos-tests}
Packages with automated tests are much more likely to be merged in a timely fashion because it doesnt require as much manual testing by the maintainer to verify the functionality of the package. If there are existing tests for the package, they should be run to verify your changes do not break the tests. Tests can only be run on Linux. For more details on writing and running tests, see the [section in the NixOS manual](https://nixos.org/nixos/manual/index.html#sec-nixos-tests).
### Tested compilation of all pkgs that depend on this change using `nixpkgs-review` {#submitting-changes-tested-compilation}
If you are updating a packages version, you can use `nixpkgs-review` to make sure all packages that depend on the updated package still compile correctly. The `nixpkgs-review` utility can look for and build all dependencies either based on uncommitted changes with the `wip` option or specifying a GitHub pull request number.
Review changes from pull request number 12345:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review pr 12345"
```
Alternatively, with flakes (and analogously for the other commands below):
```ShellSession
nix run nixpkgs#nixpkgs-review -- pr 12345
```
Review uncommitted changes:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
```
Review changes from last commit:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
```
### Tested execution of all binary files (usually in `./result/bin/`) {#submitting-changes-tested-execution}
Its important to test any executables generated by a build when you change or create a package in nixpkgs. This can be done by looking in `./result/bin` and running any files in there, or at a minimum, the main executable for the package. For example, if you make a change to texlive, you probably would only check the binaries associated with the change you made rather than testing all of them.
### Meets Nixpkgs contribution standards {#submitting-changes-contribution-standards}
The last checkbox is fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md). The contributing document has detailed information on standards the Nix community has for commit messages, reviews, licensing of contributions you make to the project, etc... Everyone should read and understand the standards the community has for contributing before submitting a pull request.
## Hotfixing pull requests {#submitting-changes-hotfixing-pull-requests}
- Make the appropriate changes in you branch.
- Dont create additional commits, do
- `git rebase -i`
- `git push --force` to your branch.
## Commit policy {#submitting-changes-commit-policy}
- Commits must be sufficiently tested before being merged, both for the master and staging branches.
- Hydra builds for master and staging should not be used as testing platform, its a build farm for changes that have been already tested.
- When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break peoples installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from \@edolstra.
```{.graphviz caption="Staging workflow"}
digraph {
"small changes" [shape=none]
"mass-rebuilds and other large changes" [shape=none]
"critical security fixes" [shape=none]
"broken staging-next fixes" [shape=none]
"small changes" -> master
"mass-rebuilds and other large changes" -> staging
"critical security fixes" -> master
"broken staging-next fixes" -> "staging-next"
"staging-next" -> master [color="#E85EB0"] [label="stabilization ends"] [fontcolor="#E85EB0"]
"staging" -> "staging-next" [color="#E85EB0"] [label="stabilization starts"] [fontcolor="#E85EB0"]
master -> "staging-next" -> staging [color="#5F5EE8"] [label="every six hours (GitHub Action)"] [fontcolor="#5F5EE8"]
}
```
[This GitHub Action](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/periodic-merge-6h.yml) brings changes from `master` to `staging-next` and from `staging-next` to `staging` every 6 hours; these are the blue arrows in the diagram above. The purple arrows in the diagram above are done manually and much less frequently. You can get an idea of how often these merges occur by looking at the git history.
### Master branch {#submitting-changes-master-branch}
The `master` branch is the main development branch. It should only see non-breaking commits that do not cause mass rebuilds.
### Staging branch {#submitting-changes-staging-branch}
The `staging` branch is a development branch where mass-rebuilds go. Mass rebuilds are commits that cause rebuilds for many packages, like more than 500 (or perhaps, if it's 'light' packages, 1000). It should only see non-breaking mass-rebuild commits. That means it is not to be used for testing, and changes must have been well tested already. If the branch is already in a broken state, please refrain from adding extra new breakages.
During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes.
### Staging-next branch {#submitting-changes-staging-next-branch}
The `staging-next` branch is for stabilizing mass-rebuilds submitted to the `staging` branch prior to merging them into `master`. Mass-rebuilds must go via the `staging` branch. It must only see non-breaking commits that are fixing issues blocking it from being merged into the `master` branch.
If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days and then merge into master.
During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes.
### Stable release branches {#submitting-changes-stable-release-branches}
The same staging workflow applies to stable release branches, but the main branch is called `release-*` instead of `master`.
Example branch names: `release-21.11`, `staging-21.11`, `staging-next-21.11`.
Most changes added to the stable release branches are cherry-picked (“backported”) from the `master` and staging branches.
#### Automatically backporting a Pull Request {#submitting-changes-stable-release-branches-automatic-backports}
Assign label `backport <branch>` (e.g. `backport release-21.11`) to the PR and a backport PR is automatically created after the PR is merged.
#### Manually backporting changes {#submitting-changes-stable-release-branches-manual-backports}
Cherry-pick changes via `git cherry-pick -x <original commit>` so that the original commit id is included in the commit message.
Add a reason for the backport when it is not obvious from the original commit message. You can do this by cherry picking with `git cherry-pick -xe <original commit>`, which allows editing the commit message. This is not needed for minor version updates that include security and bug fixes but don't add new features or when the commit fixes an otherwise broken package.
Here is an example of a cherry-picked commit message with good reason description:
```
zfs: Keep trying root import until it works
Works around #11003.
(cherry picked from commit 98b213a11041af39b39473906b595290e2a4e2f9)
Reason: several people cannot boot with ZFS on NVMe
```
Other examples of reasons are:
- Previously the build would fail due to, e.g., `getaddrinfo` not being defined
- The previous download links were all broken
- Crash when starting on some X11 systems
#### Acceptable backport criteria {#acceptable-backport-criteria}
The stable branch does have some changes which cannot be backported. Most notable are breaking changes. The desire is to have stable users be uninterrupted when updating packages.
However, many changes are able to be backported, including:
- New Packages / Modules
- Security / Patch updates
- Version updates which include new functionality (but no breaking changes)
- Services which require a client to be up-to-date regardless. (E.g. `spotify`, `steam`, or `discord`)
- Security critical applications (E.g. `firefox`)

View File

@@ -1,45 +0,0 @@
# Vulnerability Roundup {#chap-vulnerability-roundup}
## Issues {#vulnerability-roundup-issues}
Vulnerable packages in Nixpkgs are managed using issues.
Currently opened ones can be found using the following:
[github.com/NixOS/nixpkgs/issues?q=is:issue+is:open+"Vulnerability+roundup"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+%22Vulnerability+roundup%22)
Each issue correspond to a vulnerable version of a package; As a consequence:
- One issue can contain several CVEs;
- One CVE can be shared across several issues;
- A single package can be concerned by several issues.
A "Vulnerability roundup" issue usually respects the following format:
```txt
<link to relevant package search on search.nix.gsc.io>, <link to relevant files in Nixpkgs on GitHub>
<list of related CVEs, their CVSS score, and the impacted NixOS version>
<list of the scanned Nixpkgs versions>
<list of relevant contributors>
```
Note that there can be an extra comment containing links to previously reported (and still open) issues for the same package.
## Triaging and Fixing {#vulnerability-roundup-triaging-and-fixing}
**Note**: An issue can be a "false positive" (i.e. automatically opened, but without the package it refers to being actually vulnerable).
If you find such a "false positive", comment on the issue an explanation of why it falls into this category, linking as much information as the necessary to help maintainers double check.
If you are investigating a "true positive":
- Find the earliest patched version or a code patch in the CVE details;
- Is the issue already patched (version up-to-date or patch applied manually) in Nixpkgs's `master` branch?
- **No**:
- [Submit a security fix](#submitting-changes-submitting-security-fixes);
- Once the fix is merged into `master`, [submit the change to the vulnerable release branch(es)](https://nixos.org/manual/nixpkgs/stable/#submitting-changes-stable-release-branches);
- **Yes**: [Backport the change to the vulnerable release branch(es)](https://nixos.org/manual/nixpkgs/stable/#submitting-changes-stable-release-branches).
- When the patch has made it into all the relevant branches (`master`, and the vulnerable releases), close the relevant issue(s).

View File

@@ -1,43 +1,99 @@
{ pkgs ? (import ./.. { }), nixpkgs ? { }}:
let
doc-support = import ./doc-support { inherit pkgs nixpkgs; };
in pkgs.stdenv.mkDerivation {
pkgs = import ./.. { };
lib = pkgs.lib;
sources = lib.sourceFilesBySuffices ./. [".xml"];
sources-langs = ./languages-frameworks;
in
pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual";
nativeBuildInputs = with pkgs; [
pandoc
graphviz
libxml2
libxslt
zip
jing
xmlformat
];
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
postPatch = ''
ln -s ${doc-support} ./doc-support/result
xsltFlags = ''
--param section.autolabel 1
--param section.label.includes.component.label 1
--param html.stylesheet 'style.css'
--param xref.with.number.and.title 1
--param toc.section.depth 3
--param admon.style '''
--param callout.graphics.extension '.gif'
'';
preBuild = ''
make -j$NIX_BUILD_CORES render-md
buildCommand = let toDocbook = { useChapters ? false, inputFile, outputFile }:
let
extraHeader = ''xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" '';
in ''
{
pandoc '${inputFile}' -w docbook ${lib.optionalString useChapters "--chapters"} \
--smart \
| sed -e 's|<ulink url=|<link xlink:href=|' \
-e 's|</ulink>|</link>|' \
-e 's|<sect. id=|<section xml:id=|' \
-e 's|</sect[0-9]>|</section>|' \
-e '1s| id=| xml:id=|' \
-e '1s|\(<[^ ]* \)|\1${extraHeader}|'
} > '${outputFile}'
'';
in
''
ln -s '${sources}/'*.xml .
mkdir ./languages-frameworks
cp -s '${sources-langs}'/* ./languages-frameworks
''
+ toDocbook {
inputFile = ./introduction.md;
outputFile = "introduction.xml";
useChapters = true;
}
+ toDocbook {
inputFile = ./languages-frameworks/python.md;
outputFile = "./languages-frameworks/python.xml";
}
+ toDocbook {
inputFile = ./languages-frameworks/haskell.md;
outputFile = "./languages-frameworks/haskell.xml";
}
+ toDocbook {
inputFile = ../pkgs/development/idris-modules/README.md;
outputFile = "languages-frameworks/idris.xml";
}
+ toDocbook {
inputFile = ../pkgs/development/r-modules/README.md;
outputFile = "languages-frameworks/r.xml";
}
+ ''
echo ${lib.nixpkgsVersion} > .version
# validate against relaxng schema
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
${pkgs.jing}/bin/jing ${pkgs.docbook5}/xml/rng/docbook/docbook.rng manual-full.xml
dst=$out/share/doc/nixpkgs
mkdir -p $dst
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/manual.html \
${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
./manual.xml
cp ${./style.css} $dst/style.css
mkdir -p $dst/images/callouts
cp "${pkgs.docbook5_xsl}/xml/xsl/docbook/images/callouts/"*.gif $dst/images/callouts/
mkdir -p $out/nix-support
echo "doc manual $dst manual.html" >> $out/nix-support/hydra-build-products
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/epub/ \
${pkgs.docbook5_xsl}/xml/xsl/docbook/epub/docbook.xsl \
./manual.xml
cp -r $dst/images $dst/epub/OEBPS
echo "application/epub+zip" > mimetype
zip -0Xq "$dst/Nixpkgs Contributors Guide - NixOS community.epub" mimetype
zip -Xr9D "$dst/Nixpkgs Contributors Guide - NixOS community.epub" $dst/epub/*
'';
installPhase = ''
dest="$out/share/doc/nixpkgs"
mkdir -p "$(dirname "$dest")"
mv out/html "$dest"
mv "$dest/index.html" "$dest/manual.html"
mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
mkdir -p $out/nix-support/
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
'';
# Environment variables
PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";
PANDOC_LINK_MANPAGES_FILTER = import build-aux/pandoc-filters/link-manpages.nix { inherit pkgs; };
}

View File

@@ -1,84 +0,0 @@
{ pkgs ? (import ../.. {}), nixpkgs ? { }}:
let
inherit (pkgs) lib;
inherit (lib) hasPrefix removePrefix;
libsets = [
{ name = "asserts"; description = "assertion functions"; }
{ name = "attrsets"; description = "attribute set functions"; }
{ name = "strings"; description = "string manipulation functions"; }
{ name = "versions"; description = "version string functions"; }
{ name = "trivial"; description = "miscellaneous functions"; }
{ name = "lists"; description = "list manipulation functions"; }
{ name = "debug"; description = "debugging functions"; }
{ name = "options"; description = "NixOS / nixpkgs option handling"; }
{ name = "path"; description = "path functions"; }
{ name = "filesystem"; description = "filesystem functions"; }
{ name = "sources"; description = "source filtering functions"; }
{ name = "cli"; description = "command-line serialization functions"; }
];
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs libsets; };
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs libsets; };
version = pkgs.lib.version;
epub-xsl = pkgs.writeText "epub.xsl" ''
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl" />
<xsl:import href="${./parameters.xml}"/>
</xsl:stylesheet>
'';
xhtml-xsl = pkgs.writeText "xhtml.xsl" ''
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/xhtml/docbook.xsl" />
<xsl:import href="${./parameters.xml}"/>
</xsl:stylesheet>
'';
# NB: This file describes the Nixpkgs manual, which happens to use module
# docs infra originally developed for NixOS.
optionsDoc = pkgs.nixosOptionsDoc {
inherit (pkgs.lib.evalModules { modules = [ ../../pkgs/top-level/config.nix ]; }) options;
documentType = "none";
transformOptions = opt:
opt // {
declarations =
map
(decl:
if hasPrefix (toString ../..) (toString decl)
then
let subpath = removePrefix "/" (removePrefix (toString ../..) (toString decl));
in { url = "https://github.com/NixOS/nixpkgs/blob/master/${subpath}"; name = subpath; }
else decl)
opt.declarations;
};
};
in pkgs.runCommand "doc-support" {}
''
mkdir result
(
cd result
ln -s ${locationsXml} ./function-locations.xml
ln -s ${functionDocs} ./function-docs
ln -s ${optionsDoc.optionsDocBook} ./config-options.docbook.xml
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl
ln -s ${epub-xsl} ./epub.xsl
ln -s ${xhtml-xsl} ./xhtml.xsl
ln -s ${./xmlformat.conf} ./xmlformat.conf
ln -s ${pkgs.documentation-highlighter} ./highlightjs
echo -n "${version}" > ./version
)
mv result $out
''

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