Compare commits

..

2382 Commits

Author SHA1 Message Date
Ben Wolsieffer
9fe75ccc79 gettext: fix cross build (#60123)
(cherry picked from commit 16fe069ef5)
2019-04-24 05:32:13 -04:00
Will Dietz
de627cdcc9 libseccomp: 2.3.3 -> 2.4.0
https://github.com/seccomp/libseccomp/releases/tag/v2.4.0
(cherry picked from commit 862ea070aa)
2019-04-18 15:09:43 +02:00
strager
95ee62273f gettext: fix stdenv-darwin; remove Bison dependency (#59553)
Commit 1279016787 broke building
nixpkgs.clangStdenv (stdenv-darwin) on macOS:

    nix-build -A clangStdenv .
    these derivations will be built:
      /nix/store/b3vyrfzarzyh51n7fj9wrpw12sq3765l-stdenv-darwin.drv
    building '/nix/store/b3vyrfzarzyh51n7fj9wrpw12sq3765l-stdenv-darwin.drv'...
    output '/nix/store/3agkxvkbhfpimnx5imr09q4rq9pxmjda-stdenv-darwin' is not allowed to refer to the following paths:
         /nix/store/jnzhx3hni0ds1wf49z8wfnxi3qdnkk6q-gnum4-1.4.18
           /nix/store/smdncnz5pkl5q39k4ldk8bh84p2hmj19-bison-3.3.2
    error: build of '/nix/store/b3vyrfzarzyh51n7fj9wrpw12sq3765l-stdenv-darwin.drv' failed

Remove gettext's build dependency on Bison to avoid this error, fixing
Nixpkgs on macOS.

To avoid rebuilding everything unnecessarily on Linux, only apply these
changes to macOS and keep the Bison dependency for Linux.

(cherry picked from commit 6ccf2201f9)

cc #59553 #59525
2019-04-15 01:19:43 -04:00
Andreas Rammhold
9f76c647a7 Merge pull request #59000 from ctheune/gettext-security-update-18.09
gettext: apply patch for CVE 2018-18751 (backport 18.09)
2019-04-09 12:05:14 +00:00
Christian Theune
dcebc69397 gettext: apply patch for CVE 2018-18751
Re-include an older automake (1.15) because that's explicitly depended upon.
2019-04-05 19:07:59 +02:00
Vladimír Čunát
4aebf787b8 Merge branch 'release-18.09' into staging-18.09 2019-03-29 14:07:17 +01:00
Domen Kožar
395a543f36 haskell: allow separate bin output, disable by default
(cherry picked from commit bd06834d5e)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-03-29 15:21:49 +07:00
Florian Klink
22483857a1 Merge pull request #58355 from andir/18.09/ghostscript-CVE-2019-6116
[18.09] ghostscript: add patch for CVE-2019-6116
2019-03-28 23:37:38 +01:00
Pierre Bourdon
29ed7c827f ghostscript: add patch for CVE-2019-6116
This is tagged as version 9.26a in the ghostpdl repo, but unfortunately
there are no tarballs released with that version number so far. We'll
continue calling this version 9.26 for now for simplicity's sake (and we
can switch to 9.26a and remove the patch when it's properly released).

Fixes #58262
Fixes #58089

(cherry picked from commit 91c46d17d5)
2019-03-28 23:35:02 +01:00
Florian Klink
7fcf299938 matomo: 3.9.0 -> 3.9.1
(cherry picked from commit 26f19430eb)
2019-03-28 22:58:43 +01:00
Florian Klink
c9364bf046 matomo: update url
(cherry picked from commit 4ffd3ad4fd)
2019-03-28 22:58:43 +01:00
R. RyanTM
bbded8f232 matomo: 3.8.1 -> 3.9.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/matomo/versions

(cherry picked from commit 139243406b)
2019-03-28 22:58:42 +01:00
Florian Jacob
1998611779 nixos/matomo: 3.8.0 introduces matomo.{php,js} files
(cherry picked from commit faac33bc77)
2019-03-28 22:58:33 +01:00
Florian Jacob
c569b15e42 matomo: 3.7.0 -> 3.8.1
security update

(cherry picked from commit 2f059806ef)
2019-03-28 22:58:33 +01:00
Peter Simons
29069cd291 Merge pull request #58485 from dotlambda/dovecot-CVE-2019-7524
[18.09] dovecot: add patch for CVE-2019-7524
2019-03-28 21:29:01 +01:00
Ben Gamari
2ec3dca6af nixos/gitaly: Run gitaly with procps in scope
Gitaly uses `ps` to track the RSS of `gitlab-ruby` and kills it when it
detects excessive memory leakage. See
https://gitlab.com/gitlab-org/gitaly/issues/1562.

(cherry picked from commit b90f5f03c2)
2019-03-28 18:25:02 +01:00
Robert Schütz
69cc728e2b dovecot: add patch for CVE-2019-7524
This applies commits
578cf77e84
696320b0f3
2019-03-28 15:18:23 +01:00
Will Dietz
f5900a9969 gnutls: 3.6.5 -> 3.6.7, security!
https://lists.gnupg.org/pipermail/gnutls-help/2019-March/004497.html
Close #58437.

(cherry picked from commit 225b164cc3)
The gnutls minor updates tend to have high level of compatibility,
and we're fixing some security problems.
2019-03-28 12:21:13 +01:00
Vladimír Čunát
69985a7e27 gnutls: 3.6.2 -> 3.6.5
No security problems have been published about 3.6.x so far,
but I'd certainly count the almost-transparent TLS 1.3 support
as a security improvement.

(cherry picked from commit 2ff530ec53)
2019-03-28 12:20:23 +01:00
Pascal Wittmann
033984c0b7 Merge pull request #58465 from rnhmjoj/monero-18.09
[18.09] monero: 0.13 -> 0.14
2019-03-28 08:20:25 +01:00
rnhmjoj
4f8e6ef622 monero-gui: fix missing qml imports
(cherry picked from commit bbefa951e7)
2019-03-28 01:50:45 +01:00
David Meister
78046ccf1b monero-gui: 0.13.0.4 -> 0.14.0.0
(cherry picked from commit b1d040b39b)
2019-03-28 01:50:34 +01:00
David Meister
b330796a37 monero: 0.13.0.4 -> 0.14.0.2
(cherry picked from commit a0a1dc0a55)
2019-03-28 01:50:24 +01:00
Graham Christensen
dc15b7f854 Merge pull request #58431 from alexbiehl/alex/nix-layers
dockerTools: align generated layer archives with docker's output
(cherry picked from commit 6af317616e)
2019-03-27 18:19:54 -04:00
Tim Steinbach
5a03c6872c linux: 4.19.31 -> 4.19.32
(cherry picked from commit ec83ff060e)
2019-03-27 10:14:11 -04:00
Tim Steinbach
f78bcc6c90 linux: 4.14.108 -> 4.14.109
(cherry picked from commit e3bee73c18)
2019-03-27 10:13:52 -04:00
Tim Steinbach
82a2b182bc linux: 4.9.165 -> 4.9.166
(cherry picked from commit ebd253309e)
2019-03-27 10:13:51 -04:00
Michael Weiss
51bab7011d Merge pull request #58430 from primeos/signal-desktop-backport
[18.09] signal-desktop backport
2019-03-27 12:20:33 +01:00
Michael Weiss
c2b4316819 signal-desktop: 1.21.2 -> 1.22.0
(cherry picked from commit e66b8d5fb1)
2019-03-27 11:27:49 +01:00
Michael Weiss
2db9668922 signal-desktop: 1.21.1 -> 1.21.2
(cherry picked from commit c498b7004d)
2019-03-27 11:27:49 +01:00
Michael Weiss
8dd725151f signal-desktop: 1.21.0 -> 1.21.1
(cherry picked from commit fcbcd327e5)
2019-03-27 11:27:49 +01:00
Michael Weiss
6ab2a54ccc signal-desktop: 1.20.0 -> 1.21.0
(cherry picked from commit e4156fb421)
2019-03-27 11:27:48 +01:00
Florian Klink
776fb73866 Merge pull request #58349 from andir/18.09/tzdata
[18.09] tzdata: 2018g -> 2019a
2019-03-27 09:30:32 +01:00
Andreas Rammhold
10207c23b3 tzdata: 2018g -> 2019a
(cherry picked from commit 32538ff51f15c2a416949a6f75ef41a505d530f8)
2019-03-27 09:09:35 +01:00
Tom F
c664b21337 adoptopenjdk: Remove libfreetype.so from adoptopenjdk's derivation. (#58411)
This caused some reverse dependencies of adoptopenjdk to depend on
adoptopenjdk's libfreetype, rather than the NixOS
libfreetype. For example: https://github.com/NixOS/nixpkgs/issues/57733

Now the derivation does not contain libfreetype.so . The JRE links to
nixpkg's freetype:

$ ldd /nix/store/9iyxm1nkn35xhjgri041r980z4p5ls5g-adoptopenjdk-hotspot-bin-11.0.2/lib/libfontmanager.so | grep -i freetype
	libfreetype.so => /nix/store/ycbkq39cngzx19j829qzgdnw3mx3z78g-freetype-2.9.1/lib/libfreetype.so (0x0000795e30702000)

(cherry picked from commit 6bae07337e)
2019-03-26 23:02:10 -04:00
Silvan Mosberger
efc8c2cd55 Merge pull request #58386 from booxter/release-18.09-turses-fix
turses: fix crash when starting with existing config file
2019-03-27 03:38:24 +01:00
ajs124
2c54e2d785 performous: fix build by using boost 166 (#58418)
(cherry picked from commit 910c1d05b7)
2019-03-26 22:08:49 -04:00
Alex Guzman
38e0576c31 nixos/security: make duo support secure failure correctly
seems that this got broken when the config option was made to use enums. "secure" got replaced with "enum", which isn't a valid option for the failure mode.

(cherry picked from commit 0c34b9fcf8)
2019-03-27 01:59:52 +01:00
Florian Klink
7e05cfabe1 Merge pull request #58407 from andir/18.09/avahi
[18.09] avahi: apply patches for CVE-2017-6519 & CVE-2018-1000845
2019-03-27 00:03:32 +01:00
Florian Klink
69c6f289f7 Merge pull request #58410 from flokli/18.09-gitlab-11.9.1
[18.09] gitlab 11.7.5 -> 11.9.1, backport of more fixes and test improvements
2019-03-26 23:59:55 +01:00
Florian Klink
68eaf07a7b gitlab: 11.9.0 -> 11.9.1
(cherry picked from commit dcac21bb15f8188f1e7ae87d57207308f86dd5f8)
2019-03-26 22:54:20 +01:00
Johan Thomsen
8b190da626 nixos/gitlab: added gzip and bzip2 as dependencies for gitaly
(cherry picked from commit 292c1ce7ff)
2019-03-26 22:52:18 +01:00
Jeff Slight
c4042a85ab gitlab: add openssh dependency to gitaly
(cherry picked from commit 059e5e0ba0)
2019-03-26 22:52:18 +01:00
Johan Thomsen
fcf257a4e9 nixos/gitlab: improved test to check download of repository archives
(cherry picked from commit 968d3c9c05)
2019-03-26 22:52:18 +01:00
Wael M. Nasreddine
caa3c17245 gitlab-shell: export GOCACHE in the installPhase
TMPDIR, in `GOCACHE = "$TMPDIR";`, will not be intepreted  when it's set
outside of a phase.

(cherry picked from commit 483d823ec4)
2019-03-26 22:52:17 +01:00
Ben Gamari
3a6c2a4bae nixos/gitlab: Introduce database pool size option
As well as a extraDatabaseConfig option.

(cherry picked from commit bd5ba09b79)
2019-03-26 22:52:17 +01:00
Andreas Rammhold
a6ddc35522 avahi: apply patches for CVE-2017-6519 & CVE-2018-1000845
(cherry picked from commit 87a762269f)
2019-03-26 21:42:21 +01:00
Ben Gamari
6522d74e5d gitlab: 11.8.2 -> 11.9.0
(cherry picked from commit d8c16f11a6)
2019-03-26 21:01:24 +01:00
Ben Gamari
f58bb3f191 gitlab: 11.7.5 -> 11.8.2
(cherry picked from commit 0ba98bb64c)
2019-03-26 21:01:20 +01:00
Ihar Hrachyshka
9751d10301 turses: fix crash when starting with existing config file
Fixes #57460

(cherry picked from commit 6f525a52d0)

Conflicts:
	pkgs/applications/networking/instant-messengers/turses/default.nix
2019-03-26 10:51:30 -07:00
Ihar Hrachyshka
ead962126c Switch homepage for turses to louipc fork
The original repo is gone.

(cherry picked from commit c59d2d3419)
2019-03-26 10:50:42 -07:00
Will Dietz
2d656a9729 youtube-dl: 2019.03.01 -> 2019.03.18
(cherry picked from commit 0fa6ebe0a5)
2019-03-25 11:03:04 -04:00
Franz Pletz
90850bbf98 youtubeDL: 2019.02.18 -> 2019.03.01
(cherry picked from commit 86199e047c)
2019-03-25 11:03:01 -04:00
Franz Pletz
6ea3c4fa99 youtubeDL: 2019.01.30.1 -> 2019.02.18
(cherry picked from commit 7694c5149a)
2019-03-25 11:02:57 -04:00
Will Dietz
918bc44280 tor-browser-bundle-bin: 8.0.6 -> 8.0.8
(cherry picked from commit f114ab593e)
2019-03-25 10:43:05 +01:00
Samuel Dionne-Riel
40e716b92a ghc: Fixes backport (missing ghc822Binary) 2019-03-24 15:22:36 -04:00
Tim Steinbach
0ec4bb8658 linux: 4.19.30 -> 4.19.31
(cherry picked from commit 0e25209c33)
2019-03-24 12:20:13 -04:00
Philipp Volguine
3551de0ff8 paulstretch: init at version 2.2-2
This is a neat little program for extreme sound stretching and it was
not in the repo yet.

(cherry picked from commit e0c3c2ed52)

cc #57589 #58191
2019-03-23 19:55:26 -04:00
Andreas Rammhold
dcbe1b62b5 powerdns: 4.1.6 -> 4.1.7
This addresses CVE-2019-3871. The details of the issue can be retrieved
from the official announcement page [0].

[0] https://docs.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-03.html

(cherry picked from commit f4e9e42725)
2019-03-23 19:18:40 +01:00
Tim Steinbach
7e11e51ba8 linux: 4.14.107 -> 4.14.108
(cherry picked from commit eca0d0ad62)
2019-03-23 11:27:02 -04:00
Tim Steinbach
da0a76fcef linux: 4.9.164 -> 4.9.165
(cherry picked from commit d10015ea4f)
2019-03-23 11:27:00 -04:00
Tim Steinbach
f5ecc18af1 linux: 4.4.176 -> 4.4.177
(cherry picked from commit ece2d7d6a0)
2019-03-23 11:26:59 -04:00
Pascal Wittmann
51ba0286ac japser: 2.0.14 -> 2.0.16
(cherry picked from commit 96e93d6fa0)
2019-03-23 14:20:52 +01:00
Frederik Rietdijk
60acee5223 python35: 3.5.6 -> 3.5.7 2019-03-23 09:17:09 +01:00
Frederik Rietdijk
7dc8a0a20a python34: 3.4.9 -> 3.4.10 2019-03-23 09:17:09 +01:00
Andreas Rammhold
7270f27a5f Merge pull request #58156 from andir/18.09/firefox
[18.09] firefox: 66.0 -> 66.0.1, firefox-esr-60: 60.6.0esr -> 60.6.1esr
2019-03-23 09:01:52 +01:00
Peter Simons
dd28ae5c63 ghc: add new 8.6.4 version 2019-03-23 11:04:32 +07:00
Andreas Rammhold
d8251d760d firefox-esr-60: 60.6.0esr -> 60.6.1esr 2019-03-23 01:45:19 +01:00
Andreas Rammhold
c12ff07901 firefox: 66.0 -> 66.0.1 2019-03-23 01:45:04 +01:00
Andreas Rammhold
ed95b12264 firefox-bin: 66.0 -> 66.0.1 2019-03-23 01:44:55 +01:00
Herwig Hochleitner
43efac61c0 chromium: 73.0.3683.75 -> 73.0.3683.86
(cherry picked from commit ea34ad0e43)
2019-03-22 19:35:54 +01:00
Andreas Rammhold
680f9d7ea9 Merge pull request #57962 from andir/18.09/samba
[18.09] samba/ldb: fix CVE-2019-3824
2019-03-22 13:18:04 +01:00
Gabriel Ebner
f4b2ae96cc elan: 0.7.4 -> 0.7.5
(cherry picked from commit 11318d1ba2)
2019-03-22 11:17:09 +01:00
Jörg Thalheim
ed41adcde6 nix-review: 1.0.5 -> 2.0.0
(cherry picked from commit eb5afaf06b)
2019-03-22 07:09:14 +00:00
Jörg Thalheim
11b3807041 nix-review: 1.0.4 -> 1.0.5
(cherry picked from commit d4957cc98e)
2019-03-22 07:09:13 +00:00
Jörg Thalheim
0664a06388 nix-review: 1.0.2 -> 1.0.4
- also accept the full url of pull request i.e.
  https://github.com/NixOS/nixpkgs/pull/54323
- stream-parse nix-env's eval output
- fix logs for failed builds issued by remote builders
- prepare code for overlays like: https://github.com/NixOS/nixpkgs/pull/53934

(cherry picked from commit f6d6e5dcb5)
2019-03-22 07:09:12 +00:00
Jörg Thalheim
467c393495 nix-review: 1.0.1 -> 1.0.2
(cherry picked from commit 32f4166c67)
2019-03-22 07:09:11 +00:00
Simon Lackerbauer
15f0899451 atlassian-confluence: 6.11.1 -> 6.14.2
CVE-2019-3395, CVE-2019-3396

(cherry picked from commit 5ef5bbcd46aab2ba6ea65eff19ef3e9e7037e207)
2019-03-21 14:08:27 +00:00
Andreas Rammhold
8288fbd7ec samba4: apply patch for CVE-2019-3824 2019-03-20 14:13:56 +01:00
Andreas Rammhold
5a3d8d79ec ldb: apply patch for CVE-2019-3824 2019-03-20 14:13:56 +01:00
Gabriel Ebner
45456fecc7 elan: 0.5.0 -> 0.7.4
This fixes a bug with the github integration, the old version no longer
works due to github changes.

(cherry picked from commit 52c3ee6c4d)
2019-03-20 13:49:16 +01:00
Tim Steinbach
3aa6408a8c linux: 4.19.29 -> 4.19.30
(cherry picked from commit b1c72326ce)
2019-03-19 08:58:43 -04:00
Tim Steinbach
a2bc79d0a7 linux: 4.14.106 -> 4.14.107
(cherry picked from commit 08414dd72e)
2019-03-19 08:58:42 -04:00
Tim Steinbach
5751489583 linux: 4.9.163 -> 4.9.164
(cherry picked from commit 9e2adb4e36)
2019-03-19 08:58:42 -04:00
Robert Hensing
b6050c5f43 Merge branch 'ngrok-update-backport' into release-18.09 2019-03-19 11:24:24 +01:00
Robert Hensing
6a67886b79 ngrok-2: Fix URLs and automate 2019-03-19 11:22:04 +01:00
Andreas Rammhold
8751edf7b8 Merge pull request #57861 from andir/18.09/firefox66
[18.09] firefox 65.0.2 -> 66, 60.5.2esr -> 60.6.0esr, firefox-bin: 65.0.2 -> 66.0
2019-03-19 08:21:07 +01:00
Léo Gaspard
e408cd4390 Merge branch 'pr-57863' into release-18.09
* pr-57863:
  PuTTY: 0.70 -> 0.71
2019-03-18 19:04:59 +01:00
Andreas Rammhold
7984e36986 Merge pull request #57569 from andir/18.09/nodejs
[18.09] nodejs_{6,8,10,11}_x: update, security fixes
2019-03-18 18:52:47 +01:00
Daniel Frank
07b8c657b8 PuTTY: 0.70 -> 0.71
(cherry picked from commit 9d95c9d78f)
2019-03-18 18:28:27 +01:00
Andreas Rammhold
0021ea861f firefox-esr-60: 60.5.2esr -> 60.6.0.esr
(cherry picked from commit 94d9400b4d)
2019-03-18 18:01:16 +01:00
Andreas Rammhold
d0f3ac2958 firefox-bin: 65.0.2 -> 66.0
(cherry picked from commit a1cd934ba3)
2019-03-18 17:58:15 +01:00
Andreas Rammhold
d4734ffe86 firefox: 65.0.2 -> 66.0
(cherry picked from commit dafe9c3cb0)
2019-03-18 17:54:45 +01:00
Andreas Rammhold
5d17a76f15 firefox: support building firefox 66 (and 60.6+)
(cherry picked from commit d64d42f12d)
2019-03-18 17:51:41 +01:00
Andreas Rammhold
122a66de9e rust-cbindgen_0_8_0: init at 0.8.0
This is a requirement for Firefox66. To retain compatibility with users
of rust-cbindgen I leave the others around since it usually breaks some
kind of compatibility.
2019-03-18 17:44:31 +01:00
Andreas Rammhold
a8e8de9e71 rustPlatform_1_31: init rustPlatform_1_31 attribute
rust_1_31 did exist already but the rustPlatform attrset was still
missing.
2019-03-18 17:43:34 +01:00
Michael Raskin
a95da2cd01 Merge pull request #57847 from tomfitzhenry/backport-llvm-big-parallel
llvm: mark as big-parallel
2019-03-18 13:00:03 +00:00
Graham Christensen
edd976dfbe llvm: mark as big-parallel
Big parallel jobs get many more (45) aarch64 cores than standard builds.
2019-03-18 18:46:23 +11:00
Michael Raskin
fdb5b68d15 Merge pull request #57668 from booxter/release-18.09-xscreensaver-perl
xscreensaver: Enable perl modules needed for RSS image fetch (#57629)
2019-03-15 08:09:21 +00:00
Ihar Hrachyshka
5bcb2d21c6 xscreensaver: Enable perl modules needed for RSS image fetch (#57629)
(cherry picked from commit 4730466366)
2019-03-14 14:23:22 -07:00
xeji
8252eaee34 Merge pull request #57651 from etu/release-18.09-php-updates
Release 18.09 php updates
2019-03-14 21:45:39 +01:00
Izorkin
1849e963d6 php72: 7.2.15 -> 7.2.16
(cherry picked from commit c6290e381f)
2019-03-14 19:23:16 +01:00
Izorkin
6cdf642d03 php71: 7.1.26 -> 7.1.27
(cherry picked from commit 627275399c)
2019-03-14 19:23:12 +01:00
Tim Steinbach
228271fe04 linux: 4.19.28 -> 4.19.29
(cherry picked from commit 82d6e57943)
2019-03-14 09:13:59 -04:00
Tim Steinbach
b98a69d968 linux: 4.14.105 -> 4.14.106
(cherry picked from commit 85924d84fc)
2019-03-14 09:13:58 -04:00
Tim Steinbach
132a24fa28 linux: 4.9.162 -> 4.9.163
(cherry picked from commit c130cb7374)
2019-03-14 09:13:57 -04:00
Edmund Wu
40f9098114 vscode: 1.32.1 -> 1.32.2
(cherry picked from commit ecc6ee8f1d)
2019-03-13 21:13:55 -04:00
Herwig Hochleitner
0c53b75ea6 chromium: 72.0.3626.121 -> 73.0.3683.75
CVE-2019-5787 CVE-2019-5788 CVE-2019-5789 CVE-2019-5790 CVE-2019-5791
CVE-2019-5792 CVE-2019-5793 CVE-2019-5794 CVE-2019-5795 CVE-2019-5796
CVE-2019-5797 CVE-2019-5798 CVE-2019-5799 CVE-2019-5800 CVE-2019-5801
CVE-2019-5802 CVE-2019-5803 CVE-2019-5804

(cherry picked from commit 006a699e69)
2019-03-13 16:23:16 +01:00
Will Dietz
3efcb4a4a3 nodejs-8_x: 8.15.0 -> 8.15.1 (security)
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.15.1
(cherry picked from commit 702120ee90)
2019-03-13 11:44:49 +01:00
Will Dietz
5050c86e1a nodejs-6_x: 6.16.0 -> 6.17.0 (security)
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.17.0
(cherry picked from commit 4df1c7234f)
2019-03-13 11:44:39 +01:00
Will Dietz
467e1c0cc9 nodejs-10_x: 10.15.0 -> 10.15.3 (security)
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.15.3
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.15.2
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.15.1
(cherry picked from commit 9c894f8418)
2019-03-13 11:44:08 +01:00
Aria Edmonds
5d972dd2c9 discord: 0.0.8 -> 0.0.9
(cherry picked from commit 24c02a0f5d)
2019-03-12 17:10:00 -04:00
Bjørn Forsman
3c037fea9b deadpixi-sam: remove duplicate alias
It is already listed in aliases.nix, and I managed to get this from Nix:

  error: Alias deadpixi-sam is still in all-packages.nix

Fixes: 218d81bc9d ("all-packages: move aliases to aliases.nix")
(cherry picked from commit 38ae8aed16)
2019-03-12 13:04:42 +01:00
Tim Steinbach
60e2056e47 linux: 4.19.27 -> 4.19.28
(cherry picked from commit 810401284f)
2019-03-10 14:20:07 -04:00
Vladimír Čunát
a64f22b9fe Merge bind: 9.12.2 -> 9.12.3-P4 (into release-18.09)
Fixes #56358 CVE-2018-5741.
BIND maintenance releases seem quite conservative.
2019-03-10 10:24:23 +01:00
R. RyanTM
6a4742d210 bind: 9.12.3-P1 -> 9.12.3-P4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/bind/versions

(cherry picked from commit e08f01f4e7)
2019-03-10 10:21:10 +01:00
R. RyanTM
f92f1a68e7 bind: 9.12.3 -> 9.12.3-P1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/bind/versions

(cherry picked from commit f884c6c1de)
2019-03-10 10:21:08 +01:00
R. RyanTM
8e24938583 bind: 9.12.2-P2 -> 9.12.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/bind/versions

(cherry picked from commit 21fbc6140e)
2019-03-10 10:21:05 +01:00
R. RyanTM
26ef5306fc bind: 9.12.2 -> 9.12.2-P2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/bind/versions

(cherry picked from commit d1c1fbb61b)
2019-03-10 10:20:36 +01:00
Vladimír Čunát
3f49dd956e libarchive: apply upstream CVE patches
Fixes #57150.

(cherry picked from commit 5767c18d99)
2019-03-10 09:54:49 +01:00
Vladimír Čunát
3b8fc18111 pango: 1.42.1 → 1.42.4 (security)
Fixes #57183 CVE-2018-15120
It's a minimalistic version of commit f9943cd28a.
2019-03-10 09:34:17 +01:00
Herwig Hochleitner
37694c8cc0 nixos/virtualbox: add warning when for ineffective nixpkgs config
nixpkgs.config.virtualbox.enableExtensionPack doesn't do anything, but
used to. Add a warning for the unsuspecting.

(cherry picked from commit 8b6a38ce7e)
2019-03-08 23:20:03 +01:00
Will Dietz
2be82fd06e ntp: 4.2.8p12 -> 4.2.8p13 (#57059)
From http://www.ntp.org/index.html:
> ntp-4.2.8p13 was released on 07 March 2019.
> It addresses 1 medium-severity security issue in ntpd, and provides 17
> other non-security fixes and 1 improvements over 4.2.8p12.

(cherry picked from commit d7c23cc65f)
2019-03-08 23:11:29 +01:00
Edmund Wu
7b6408a06a vscode: 1.32.0 -> 1.32.1 (#57089)
(cherry picked from commit 128f691b87)
2019-03-08 16:44:29 -05:00
kyren
28e30399a9 stepmania: switch to clangStdenv
Stepmania appears to be miscompiled with gcc, fixes #54227

(cherry picked from commit ff6e4b44dc)
2019-03-08 18:30:25 +01:00
Edmund Wu
fef0aaaaab vscode: 1.31.1 -> 1.32.0
(cherry picked from commit 2a0d01f076)
2019-03-07 17:59:39 -05:00
Dmitry Kalinkin
31e932c0d4 pythonPackages.sqlalchemy_migrate: disable tests 2019-03-07 13:13:02 -05:00
Frederik Rietdijk
8abca4bc7b python: Django: 2.1.5 -> 2.1.7
(cherry picked from commit b67226fab2)
2019-03-07 09:54:51 +01:00
Lancelot SIX
aceb50ed82 pythonPackages.django_1_11: 1.11.18 -> 1.11.20
See release notes:
- https://docs.djangoproject.com/en/dev/releases/1.11.19/
- https://docs.djangoproject.com/en/dev/releases/1.11.20/

(cherry picked from commit 3e81b4500e)
2019-03-07 09:52:42 +01:00
Ivan Kozik
7e34b17aef chromium: fix sha256 for 72.0.3626.121
The sha256 was previously unchanged from 72.0.3626.119

(cherry picked from commit 2129c6ec05)
2019-03-07 05:30:32 +01:00
Dmitry Kalinkin
4c089d328f pythonPackages.sqlalchemy_migrate: a dummy change to trigger hydra build
Package failed on release-18.09 after version bump backport. Can't
reproduce locally. This is to check if the test is flaky.
2019-03-06 13:29:55 -05:00
Tim Steinbach
18fec2687c vivaldi: 2.3.1440.57-1 -> 2.3.1440.60-1
(cherry picked from commit 9d20f2214b)
2019-03-06 10:32:22 -05:00
José Romildo Malaquias
64fafd5e1f vivaldi: 2.3.1440.48-1 -> 2.3.1440.57-1
(cherry picked from commit fa99afa809)
2019-03-06 10:32:22 -05:00
José Romildo Malaquias
650a16d83f vivaldi: 2.3.1440.41-1 -> 2.3.1440.48-1
(cherry picked from commit a1ba6ab9bd)
2019-03-06 10:32:21 -05:00
Tim Steinbach
f13559a375 vivaldi-ffmpeg-codecs: 72.0.3626.121 -> 72.0.3626.122
(cherry picked from commit 07fdb3b102)
2019-03-06 10:32:20 -05:00
José Romildo Malaquias
e99e94e0fb vivaldi-ffmpeg-codecs: 72.0.3626.109 -> 72.0.3626.121
(cherry picked from commit 38b8f49b87)
2019-03-06 10:32:20 -05:00
José Romildo Malaquias
2bc25ec0aa vivaldi-ffmpeg-codecs: 72.0.3626.96 -> 72.0.3626.109
(cherry picked from commit ab93817c7e)
2019-03-06 10:32:19 -05:00
Shea Levy
796b760e2e Merge pull request #56919 from grahamc/closure-graph-memory-18.09
Closure graph memory (18.09)
2019-03-06 08:31:48 -05:00
Lancelot SIX
89a636b807 postgresql_10: 10.6 -> 10.7
See https://www.postgresql.org/about/news/1920/ for release information.

(cherry picked from commit a90cf49fa9)
2019-03-06 14:27:33 +01:00
Lancelot SIX
01cc1585ea postgresql_9_6: 9.6.11 -> 9.6.12
See https://www.postgresql.org/about/news/1920/ for release information.

(cherry picked from commit 70a31c2e00)
2019-03-06 14:26:43 +01:00
Lancelot SIX
460ee71a0e postgresql_9_5: 9.5.15 -> 9.5.16
See https://www.postgresql.org/about/news/1920/ for release information.

(cherry picked from commit 74c715e39c)
2019-03-06 14:26:10 +01:00
Lancelot SIX
811327035d postgresql_9_4: 9.4.20 -> 9.4.21
See https://www.postgresql.org/about/news/1920/ for release information.

(cherry picked from commit d1dd3a1f1a)
2019-03-06 14:25:27 +01:00
Graham Christensen
e32d9524ef references-by-popularity: cache computation to avoid memory bloat
On very large graphs (14k+ paths), we'd end up with a massive in
memory tree of mostly duplication.

We can safely cache trees and point back to them later, saving
memory.

(cherry picked from commit 09362bc3e8)
2019-03-05 17:34:31 -05:00
Graham Christensen
86fafb030e references-by-popularity: create debug output
(cherry picked from commit 54826e7471)
2019-03-05 17:34:27 -05:00
Tim Steinbach
343abf7730 linux: 4.19.26 -> 4.19.27
(cherry picked from commit 5e67bc19c8)
2019-03-05 15:07:50 -05:00
Tim Steinbach
8fa7a364e7 linux: 4.14.104 -> 4.14.105
(cherry picked from commit 535600be55)
2019-03-05 15:07:50 -05:00
Tim Steinbach
95ad0f6c87 linux: 4.9.161 -> 4.9.162
(cherry picked from commit cfc1110dc8)
2019-03-05 15:07:50 -05:00
Robert Schütz
ed8c74e857 python.pkgs.bpython: correct Exec in bpython.desktop
(cherry picked from commit b0a9ac798a)
2019-03-05 19:24:30 +01:00
Andreas Wiese
95fed28ac3 gogs: 0.11.53 -> 0.11.86 (#56838)
This release especially addresses CVE-2018-20303.
2019-03-05 10:47:43 +01:00
Matthew Bauer
3e02e7f49b ghc843: dont add -liconv to flags
Don’t add -liconv to LDFLAGS automatically so that GHC will add it
itself.

This was previously done in other compilers but this one is missing it.
2019-03-04 13:28:04 -05:00
Matthew Bauer
906d432591 ghc863: dont add extra libs
Don’t add -liconv to LDFLAGS automatically so that GHC will add it itself.

Merged in pull request #56795 from @matthewbauer.
2019-03-04 13:26:33 -05:00
Peter Hoeg
e542fc2c94 Merge pull request #56572 from peterhoeg/u/mqtt_stable
mosquitto: 1.5.4 -> 1.5.8
2019-03-04 12:23:13 +08:00
Dmitry Kalinkin
770d3ca491 Merge pull request #56447 from veprbl/pr/buldbot_fix_18.09
[18.09] fix buildbot
2019-03-03 11:02:35 -05:00
Vladimír Čunát
e2e84cc1f0 Merge branch 'staging-18.09' into release-18.09 2019-03-03 08:32:37 +01:00
Matthew Bauer
c42f391c0c nixos-rebuild: get Nix from channel
If our old Nix can’t evaluate the Nixpkgs channel, try the fallback
from the new channel /first/. That way we can upgrade Nix to a newer
version and support breaking changes to Nix (like seen in the upgrade
o Nix 2.0).

This change should be backported to older NixOS versions!

(cherry picked from commit 475c8aa018)
2019-03-02 18:49:56 -05:00
Michael Raskin
4c0be40815 Merge pull request #56558 from aanderse/redmine-18.09
redmine: 3.4.8 -> 3.4.9 [18.09 backport]
2019-03-02 20:00:09 +00:00
Wael Nasreddine
07ead02f6b Merge pull request #55429 from worldofpeace/keybase-updates-backport
[18.09] Keybase updates
2019-03-02 11:54:22 -08:00
Vladimír Čunát
64bc63d868 Merge branch 'release-18.09' into staging-18.09 2019-03-02 16:43:42 +01:00
Vladimír Čunát
feb49b0643 Merge #56223: gcc: 8.2.0 -> 8.3.0
(cherry picked from commit 3dda94df65)
2019-03-02 16:43:18 +01:00
Andreas Rammhold
80754f5cfd tinc_pre: fix error after openssl upgrade
With the openssl upgrade to 1.0.2r / 1.1.1b the tinc pre-release version
stopped working due to a bug in tinc where an encryption function was
used during decryption. I submitted a patch upstream [1] but that wasn't
released yet.

[1] http://git.tinc-vpn.org/git/browse?p=tinc;a=commit;h=2b0aeec02d64bb4724da9ff1dbc19b7d35d7c904

(cherry picked from commit 447c21089b)
2019-03-02 12:04:26 +01:00
taku0
f5b5d483d1 firefox-esr: 60.5.1esr -> 60.5.2esr
(cherry picked from commit 692a763f60)
2019-03-02 11:01:39 +01:00
taku0
820fc820bd firefox: 65.0.1 -> 65.0.2
(cherry picked from commit d59a40c3b0)
2019-03-02 11:01:38 +01:00
taku0
a1e65f86f4 firefox-bin: 65.0 -> 65.0.2
(cherry picked from commit 03bbab8540)
2019-03-02 10:58:57 +01:00
Herwig Hochleitner
bf9cd87b3b chromium: 72.0.3626.119 -> 72.0.3626.121
CVE-2019-5786

(cherry picked from commit 9a6e64691c)
2019-03-02 05:27:05 +01:00
worldofpeace
c0a99a5418 keybase-gui: drop gnome2.GConf
(cherry picked from commit ce8c243699)
2019-03-01 13:38:04 -05:00
worldofpeace
2d997e7a67 keybase-gui: 2.13.1 -> 3.0.0
(cherry picked from commit 6d9c5259cf)
2019-03-01 13:38:04 -05:00
Emmanuel Rosa
f659d701d8 keybase-gui: 2.13.0 -> 2.13.1
(cherry picked from commit 66d844ba59)
2019-03-01 13:38:04 -05:00
Roman Volosatovs
ee3986387f keybase-gui: 2.11.0 -> 2.13.0
(cherry picked from commit 3bc3772677)
2019-03-01 13:38:04 -05:00
worldofpeace
1e00feaa4a keybase: 2.13.1 -> 3.0.0
(cherry picked from commit 1f332e7b54)
2019-03-01 13:38:04 -05:00
Wael M. Nasreddine
e730b1b557 keybase: switch to fetchurl for sha256 consistency on Darwin
fetchFromGitHub and thus fetchzip hashes the contents of the archive and
not the archive itself. Unicode file names lead to different checksums
on HFS+ vs. other file systems because of Unicode normalisation

(cherry picked from commit f466c9f961)
2019-03-01 13:38:04 -05:00
Emmanuel Rosa
10defba529 keybase: 2.11.0 -> 2.13.1
(cherry picked from commit 239dc141bd)
2019-03-01 13:38:04 -05:00
Roman Volosatovs
980ae050bf keybase: 2.10.1 -> 2.11.0
(cherry picked from commit 563d4e2a77)
2019-03-01 13:38:04 -05:00
Roman Volosatovs
697aed9d3b kbfs: 2.10.1 -> 2.11.0
(cherry picked from commit a3a0742919)
2019-03-01 13:38:04 -05:00
Will Dietz
2325b5fed2 Merge #56494: file: 5.34 -> 5.36 (staging-18.09)
(cherry picked from commit 63e68e5bb9)
Minimal changes, .36 fixes some CVEs.
2019-03-01 12:39:55 +01:00
Peter Hoeg
0ab7392781 mosquitto: 1.5.5 -> 1.5.8
(cherry picked from commit 5638a1c717)
2019-03-01 19:04:13 +08:00
R. RyanTM
64ebd78a06 mosquitto: 1.5.4 -> 1.5.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/mosquitto/versions

(cherry picked from commit 9496a0e3af)
2019-03-01 19:03:19 +08:00
Aaron Andersen
5b1b46fff8 redmine: 3.4.8 -> 3.4.9 2019-02-28 21:03:17 -05:00
Robert Schütz
060bcd6df5 postfix: 3.3.2 -> 3.3.3 (#56538)
http://www.postfix.org/announcements/postfix-3.3.3.html
2019-02-28 21:42:23 +01:00
Vladimír Čunát
dc4823f603 zeroc_ice: disable problematic parallel make
(cherry picked from commit f1ed4b50fc)
https://hydra.nixos.org/build/89580134
2019-02-28 07:27:46 +01:00
Tim Steinbach
1374ba6080 linux: 4.19.25 -> 4.19.26
(cherry picked from commit 9a65fde170)
2019-02-27 13:35:54 -05:00
Tim Steinbach
4528bd5430 linux: 4.14.103 -> 4.14.104
(cherry picked from commit 4580d6ca9e)
2019-02-27 13:35:54 -05:00
Tim Steinbach
58b34ab32f linux: 4.9.160 -> 4.9.161
(cherry picked from commit 4eff65e514)
2019-02-27 13:35:53 -05:00
Vladimír Čunát
2fa7fc4155 Merge #56375: wget: 1.19.5 -> 1.20.1 (into release-18.09) 2019-02-27 18:44:48 +01:00
Ben Wolsieffer
6e2ba9174e pythonPackages.sqlalchemy_migrate: 0.11.0 -> 0.12.0
(cherry picked from commit 52307dff25)
2019-02-27 12:36:33 -05:00
Alyssa Ross
8c2447fdee openssl: 1.0.2q -> 1.0.2r
(cherry picked from commit 9c94d74836)
Security fix; from PR #56414.
2019-02-27 09:34:45 +01:00
Ben Wolsieffer
ada3bf9e91 buildbot: 1.2.0 -> 1.4.0
buildbot was always broken on release-18.09 due to failing tests

One of the failures is:

[ERROR]
Traceback (most recent call last):
  File "/build/buildbot-1.2.0/buildbot/process/properties.py", line 459, in getRenderingFor
    rv = yield build.render(value[index])
  File "/nix/store/sqr3s9cva7r3z12hqb6rxw3w8kiqzmhd-python2.7-Twisted-18.7.0/lib/python2.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildbot-1.2.0/buildbot/process/properties.py", line 495, in getRenderingFor
    raise KeyError(error_message)
exceptions.KeyError: "secrets service not started, need to configure SecretManager in c['services'] to use 'secrets'in Interpolate"

buildbot.test.unit.test_master.StartupAndReconfig.test_reconfigService_db_url_changed

There is a mention of this at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907687
Because buildbot was never working before, we can just bump the version
to the one which passes the test.

(cherry picked from commit 71c42462ab)
2019-02-26 21:55:53 -05:00
Pierre Bourdon
022a6f7c2b wget: 1.20 -> 1.20.1 (CVE-2018-20483)
(cherry picked from commit d132c08aa1)
2019-02-25 19:13:41 +01:00
Will Dietz
b2dc0bbafa wget: 1.19.5 -> 1.20
https://lists.gnu.org/archive/html/info-gnu/2018-11/msg00011.html
(cherry picked from commit c6db972e8b)
2019-02-25 19:13:40 +01:00
Herwig Hochleitner
aabc61049c chromium: 72.0.3626.109 -> 72.0.3626.119
(cherry picked from commit 338dc47d5f)
2019-02-25 02:02:44 +01:00
Michael Raskin
8e70d4bd7d Merge pull request #56313 from srhb/flashplayer-backport
Backport: flashplayer: 32.0.0.114 -> 32.0.0.142
2019-02-24 23:19:16 +00:00
Averell Dalton
8164dc3461 flashplayer: 32.0.0.114 -> 32.0.0.142
(cherry picked from commit 856a238e20)
2019-02-24 20:18:33 +01:00
Tim Steinbach
42daebc983 linux: 4.19.24 -> 4.19.25
(cherry picked from commit 298550b5bb)
2019-02-24 11:39:45 -05:00
Tim Steinbach
6dcc19a02d linux: 4.14.102 -> 4.14.103
(cherry picked from commit 77dde1a4a2)
2019-02-24 11:39:44 -05:00
Tim Steinbach
d4543be857 linux: 4.9.159 -> 4.9.160
(cherry picked from commit b939be8c23)
2019-02-24 11:39:43 -05:00
Tim Steinbach
5fe251c993 linux: 4.4.175 -> 4.4.176
(cherry picked from commit dec53994eb)
2019-02-24 11:39:42 -05:00
Vladimír Čunát
494f3ca688 Merge #55893: samba: 4.7.10 -> 4.7.12
... into release-18.09.  Contains security fixes.
2019-02-24 11:36:55 +01:00
Emmanuel Rosa
235487585e luakit: add HTTPS support (#52865)
Co-Authored-By: emmanuelrosa <emmanuelrosa@users.noreply.github.com>
(cherry picked from commit 421dd51ffd)
Fixes #56266.  I briefly re-tested that on 18.09.
2019-02-24 11:36:26 +01:00
Vladimír Čunát
76811bf69c Merge #52833: netatalk: 3.1.11 -> 3.1.12 (security)
(cherry picked from commit 0cf158006b)
2019-02-24 11:36:26 +01:00
Andrew Dunham
3a244e8e38 samba: 4.7.10 -> 4.7.12
Version 4.7.12 is a security release.

This fixes a couple of security related issues:
 - https://www.samba.org/samba/security/CVE-2018-14629.html
 - https://www.samba.org/samba/security/CVE-2018-16841.html
 - https://www.samba.org/samba/security/CVE-2018-16851.html
 - https://www.samba.org/samba/security/CVE-2018-16853.html

(cherry picked from commit 2acd0004c1)
2019-02-24 02:46:25 -05:00
Florian Klink
48b4e1c6bf Merge pull request #56242 from Lassulus/18.09-nextcloud
[18.09] nextcloud: 15.0.2 -> 15.0.4
2019-02-23 18:52:43 +01:00
R. RyanTM
af75060ff5 nextcloud: 15.0.2 -> 15.0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nextcloud/versions

(cherry picked from commit a45b2032ff)
2019-02-23 14:42:05 +01:00
Robert Schütz
753f58d9a4 nixos/home-assistant: use availableComponents of configured package
fixes #55958

(cherry picked from commit e211f55d87)
2019-02-23 13:37:54 +01:00
worldofpeace
8ee1cdde22 wire-desktop: 3.5.2881 -> 3.6.2885
(cherry picked from commit 8ba66c2ee1)
2019-02-22 19:51:51 -05:00
Mikhail Klementev
5432f7f806 wire-desktop: 3.3.2872 -> 3.5.2881
(cherry picked from commit 7475db089b)
2019-02-22 19:51:51 -05:00
worldofpeace
41b31cdc5f wire-desktop: don't explicitly set phases
part of #28910

(cherry picked from commit 48a3ea0f81)
2019-02-22 19:51:50 -05:00
worldofpeace
69f7e37c37 wire-desktop: 3.2.2840 -> 3.3.2872 (#47941)
(cherry picked from commit fa3ec9c836)
2019-02-22 19:51:50 -05:00
Vladimír Čunát
23453d2d8c busybox: patch CVE-2018-20679
Fixes #54798.
2019-02-22 10:23:35 +01:00
worldofpeace
3276e04a39 Merge pull request #56127 from thefloweringash/fix-es6
[18.09] elasticsearch: Add zlib to buildInputs for unfree
2019-02-21 13:47:33 -05:00
Vladimír Čunát
1b621b83f0 Merge branch 'staging-18.09' into release-18.09
Just a systemd security patch.
2019-02-21 07:49:28 +01:00
aszlig
b36e2877f1 elasticsearch: Add zlib to buildInputs for unfree
The unfree variant of elasticsearch uses autoPatchelfHook and since we
removed the dependency on file for the hook itself in
58a97dfb49 we no longer have zlib
propagated.

So we need to explicitly state that dependency here.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @apeschar, @basvandijk
(cherry picked from commit 8df68a93e6)
2019-02-21 13:44:03 +09:00
Tim Steinbach
63a09881b6 linux: 4.19.23 -> 4.19.24
(cherry picked from commit a1cf586d72)
2019-02-20 10:34:26 -05:00
Tim Steinbach
7536ce975c linux: 4.14.101 -> 4.14.102
(cherry picked from commit 70643f0882)
2019-02-20 10:34:25 -05:00
Tim Steinbach
a17011c6b4 linux: 4.9.158 -> 4.9.159
(cherry picked from commit 85733d1f9c)
2019-02-20 10:34:24 -05:00
Tim Steinbach
0dcd0ff64e linux: 4.4.174 -> 4.4.175
(cherry picked from commit 9deab03a27)
2019-02-20 10:34:21 -05:00
Vladimír Čunát
4277563ac9 openscad: enableParallelBuilding = false;
Discussion: https://github.com/NixOS/nixpkgs/commit/c68dc2212e22
(cherry picked from commit 28d983fe25)
2019-02-20 10:18:50 +01:00
Bernard Fortz
3cd9396523 autojump: autoload when programs.autojump.enable is set.
(cherry picked from commit cd8ffef01b)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-02-20 15:14:51 +07:00
Bernard Fortz
8e4e54b25b autodump: pulling package when programs.autojump.enable is true
(cherry picked from commit 0bca738513)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-02-20 15:14:46 +07:00
Bernard Fortz
1e9c144576 autojump: creates links required by oh-my-zsh for autojump.
The autojump plugin in oh-my-zsh assumes autojump.zsh resides in
/run/current-system/sw/share/autojump/ but these links are not created
by default.

The new programs.autojump.enable option forces the creation of these
links.

(cherry picked from commit 0d749e58f7)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-02-20 15:14:40 +07:00
Florian Klink
185ab27b8a gitlab-ee: 11.7.4 -> 11.7.5
(cherry picked from commit f4a7c16bd9)
2019-02-20 00:25:56 +01:00
Florian Klink
5db036173d gitlab: 11.7.4 -> 11.7.5
(cherry picked from commit 7f6351a21d)
2019-02-20 00:25:52 +01:00
Florian Klink
ba65001b7a gitlab-workhorse: 8.0.1 -> 8.0.2
(cherry picked from commit 75f66b19dd)
2019-02-20 00:25:47 +01:00
Franz Pletz
90f99f4a9b systemd: 239.20190110 -> 239.20190219
Fix CVE-2019-6454.

(cherry picked from commit e94914560b)
2019-02-20 00:01:22 +01:00
Vladimír Čunát
28f9452a77 Merge branch 'staging-18.09' into release-18.09
unzip CVE fix.
2019-02-19 08:30:12 +01:00
Herwig Hochleitner
7e5b59974a chromium: 72.0.3626.96 -> 72.0.3626.109
(cherry picked from commit c414e5bd08)
2019-02-19 04:46:46 +01:00
Shea Levy
c007ecfb5d postgresql: Don't move libs unnecessarily out of $lib.
In particular, when static linking pkgconfig expects libpq.a in $lib

(cherry picked from commit bb52ff3df8)
2019-02-18 20:31:34 -05:00
Vladimír Čunát
fd65170d66 Merge branch 'release-18.09' into staging-18.09 2019-02-18 08:22:07 +01:00
worldofpeace
ea0820818a Merge pull request #55949 from eadwu/backports/20190217
[18.09] vscode backports - 2019-02-17
2019-02-17 15:23:14 +00:00
Edmund Wu
347bcccadc vscode: 1.31.0 -> 1.31.1
(cherry picked from commit 8d5bce4053)
2019-02-17 09:46:09 -05:00
Vladimír Čunát
ef02c63ba1 Merge #54576: adoptopenjdk-bin: 11.0.1 -> 11.0.2
Includes security fixes.

(cherry picked from commit 94b518f855)
2019-02-17 09:59:36 +01:00
Vladimír Čunát
a332973a7f adoptopenjdk: pick expression structure from master
They seem to be uninteresting changes just hindering
backports of version bumps.
2019-02-17 09:58:57 +01:00
Pierre Bourdon
8d226d8ec8 unzip: patch CVE-2018-18384 (PR #55927)
Patch from https://sourceforge.net/p/infozip/bugs/53/

(cherry picked from commit 705167a5dc)
2019-02-17 08:07:43 +01:00
Vladimír Čunát
f4ddc31c4a Merge branch 'staging-18.09' into release-18.09
Security updates for qt5* and openssl.
We can't afford to wait for darwin rebuild - it would take far too long.
2019-02-17 07:39:34 +01:00
0x4A6F
19a0543c62 unifi: 5.9.29 -> 5.10.17
(cherry picked from commit 04a1f848a3)
2019-02-16 16:03:36 +01:00
Vladimír Čunát
af6b20c0fa Merge #55089: qt5*: bugfixes + security
... into staging-18.09.
2019-02-16 13:51:33 +01:00
Vladimír Čunát
7892372044 Merge #55832: thunderbird*: 60.5.0 -> 60.5.1
... into release-18.09
2019-02-16 10:34:28 +01:00
Vladimír Čunát
fe00e773d1 Merge #55885: openssl: 1.0.2p -> 1.0.2q
... into staging-18.09.
2019-02-16 10:13:53 +01:00
Vladimír Čunát
d7225e0856 Merge branch 'release-18.09' into staging-18.09 2019-02-16 10:13:00 +01:00
Alyssa Ross
9c75f208f3 openssl: 1.0.2p -> 1.0.2q
CVE-2018-0734: https://www.openssl.org/news/vulnerabilities.html#2018-0734
CVE-2018-5407: https://www.openssl.org/news/vulnerabilities.html#2018-5407

No patches can any longer be shared between 1.0.2 and 1.1, so reorganize
patches into subdirectories (and remove an unused one).

(cherry picked from commit ae29a9e688)
2019-02-16 00:56:30 -08:00
Matthew Bauer
82434e77d5 qt511: add patch for macOS sdk
Unfortunately we don’t have access to NSWindowStyleMask. These patches
should go away once we switch to a newer SDK.

(cherry picked from commit 81531046e8)
2019-02-16 09:38:25 +01:00
Samuel Dionne-Riel
526b34a18e linux: Drop the interpreter truncation patch
All usage has been removed from the stable branche; upstream having
updated with a revert.
2019-02-15 19:34:20 -05:00
Ben Wolsieffer
e181504731 linux_hardkernel_4_14: don't apply interpreter-trunc patch
The only 4.14.y versions that need the patch are 4.14.99 and 4.14.100.

(cherry picked from commit 60b5347fb5)
2019-02-15 19:31:38 -05:00
Tim Steinbach
14ce17862c kernel: Remove 4.18.x
4.18 series is EOL

(cherry picked from commit ff4bf6067e)
2019-02-15 23:41:19 +01:00
Vladimír Čunát
72aaa06feb Merge #55852: elfutils: 0.175 -> 0.176
Fixes six security CVE issues.

(cherry picked from commit 1ca67d201f)
2019-02-15 23:32:49 +01:00
Matthew Bauer
9bd45dddf8 haskell.buildStackProject: use setup hook
This makes things easier and hopefully fixes the arg too long issue.

Resolves #55548

(cherry picked from 0dabacae00)
2019-02-15 12:11:24 -05:00
Tim Steinbach
0ba800c4b4 linux: Remove truncation patch from 4.19 2019-02-15 10:04:48 -05:00
Tim Steinbach
6da8b83c5e linux: 4.19.21 -> 4.19.23
(cherry picked from commit 8c14948343)
2019-02-15 10:03:10 -05:00
Tim Steinbach
6e90746334 linux: 4.14.99 -> 4.14.101
(cherry picked from commit 7954ec0ffd)
2019-02-15 10:03:10 -05:00
Tim Steinbach
f0ce0f3149 linux: 4.9.156 -> 4.9.158
(cherry picked from commit 50f518c93f)
2019-02-15 10:03:09 -05:00
Andreas Rammhold
cd88dcb25c thunderbird-bin: 60.5.0 -> 60.5.1
(cherry picked from commit 3c35745731)
2019-02-15 15:18:23 +01:00
Andreas Rammhold
657d92e6d1 firefox: 60.5.0 -> 60.5.1
(cherry picked from commit 0f2226adc5)
2019-02-15 15:18:03 +01:00
Vladimír Čunát
735ab7a700 linux 4.9, 4.19: also apply interpreter-trunc
4.4.174 doesn't need this (possibly after a future bump).
I think this covers all the affected kernels ATM.  Builds tested.
2019-02-15 09:16:23 +01:00
Graham Christensen
a1156b996a Revert "shellFor: Don't suck in src to compare to deps. [Fixes #51079]"
This reverts commit b40b39b1bc.

tarball job failed:

    error: while evaluating anonymous function at /build/source/maintainers/scripts/find-tarballs.nix:6:1, called from undefined position:
    while evaluating 'operator' at /build/source/maintainers/scripts/find-tarballs.nix:27:16, called from undefined position:
    while evaluating 'immediateDependenciesOf' at /build/source/maintainers/scripts/find-tarballs.nix:39:29, called from /build/source/maintainers/scripts/find-tarballs.nix:27:44:
    while evaluating anonymous function at /build/source/lib/attrsets.nix:225:10, called from undefined position:
    while evaluating anonymous function at /build/source/maintainers/scripts/find-tarballs.nix:40:37, called from /build/source/lib/attrsets.nix:225:16:
    while evaluating 'derivationsIn' at /build/source/maintainers/scripts/find-tarballs.nix:42:19, called from /build/source/maintainers/scripts/find-tarballs.nix:40:40:
    while evaluating 'optional' at /build/source/lib/lists.nix:241:20, called from /build/source/maintainers/scripts/find-tarballs.nix:44:33:
    while evaluating 'canEval' at /build/source/maintainers/scripts/find-tarballs.nix:48:13, called from /build/source/maintainers/scripts/find-tarballs.nix:44:43:
    while evaluating the attribute 'drvPath' at /build/source/lib/customisation.nix:149:7:
    while evaluating the derivation attribute 'name' at /build/source/pkgs/stdenv/generic/make-derivation.nix:177:11:
    while evaluating 'nullSrc' at /build/source/pkgs/development/haskell-modules/make-package-set.nix:263:19, called from undefined position:
    while evaluating 'overrideCabal' at /build/source/pkgs/development/haskell-modules/lib.nix:37:24, called from /build/source/pkgs/development/haskell-modules/make-package-set.nix:263:22:
    attribute 'override' missing, at /build/source/pkgs/development/haskell-modules/lib.nix:37:28
2019-02-14 22:56:57 -05:00
Tim Steinbach
bf7d4a34e6 Revert "Revert "linux: 4.9.155 -> 4.9.156""
This reverts commit dd9b7aebae.
2019-02-14 21:21:50 -05:00
Tim Steinbach
6e94ffb79f Revert "Revert "linux: 4.19.20 -> 4.19.21""
This reverts commit e9468ff7b6.
2019-02-14 21:19:05 -05:00
Edmund Wu
c4b10f8347 linux: allow for interpreter to be truncated
via https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cb5b020a8d38f77209d0472a0fea755299a8ec78
see https://github.com/NixOS/nixpkgs/issues/53672

(cherry picked from commit f0b8a113dd)
2019-02-14 21:15:56 -05:00
Edmund Wu
9c78f68e28 Revert "Revert "linux: 4.14.98 -> 4.14.99""
This reverts commit 01d8894c4d.

(cherry picked from commit 13d1ba3439)
2019-02-14 21:02:48 -05:00
Silvan Mosberger
31d55726af Merge pull request #54901 from ElvishJerricco/haskell-shellfor-null-src-18.09
Backport #54900
2019-02-15 00:40:17 +01:00
Will Dietz
2745c15270 tor-browser-bundle-bin: 8.0.5 -> 8.0.6
https://blog.torproject.org/new-release-tor-browser-806
(cherry picked from commit 12984854c6)
2019-02-14 20:37:49 +01:00
Eelco Dolstra
dd9b7aebae Revert "linux: 4.9.155 -> 4.9.156"
This reverts commit eeda4d78da. The new
kernel breaks long shebang paths: https://lkml.org/lkml/2019/2/13/853
2019-02-14 14:58:08 +01:00
Eelco Dolstra
e9468ff7b6 Revert "linux: 4.19.20 -> 4.19.21"
This reverts commit a0ba6c2182. The new
kernel breaks long shebang paths: https://lkml.org/lkml/2019/2/13/853
2019-02-14 14:54:55 +01:00
Andreas Rammhold
68c0a16d43 Merge pull request #55759 from andir/18.09/firefox
[18.09] firefox: 65.0 -> 65.0.1, firefox-esr-60: 60.5.0esr -> 60.5.1esr
2019-02-14 13:50:22 +01:00
Andreas Rammhold
da8c0cbee8 firefox: add andir (myself) as maintainer
I have been working on this for some time now so it probably makes
sense...

(cherry picked from commit 826611bef9)
2019-02-14 11:35:48 +01:00
Andreas Rammhold
48e158db9b firefox-esr-60: 60.5.0esr -> 60.5.1esr
Release notes: https://www.mozilla.org/en-US/firefox/60.5.1/releasenotes/

(cherry picked from commit 2f4c7f3f92)
2019-02-14 11:35:38 +01:00
Andreas Rammhold
8108615193 firefox: 65.0 -> 65.0.1
Release notes: https://www.mozilla.org/en-US/firefox/65.0.1/releasenotes/

(cherry picked from commit aa2acd0123)
2019-02-14 11:34:59 +01:00
worldofpeace
7801872271 Merge pull request #55535 from eadwu/backports/20190210
[18.09] vscode backports - 20190210
2019-02-13 22:53:59 +00:00
Vladimír Čunát
3d99234ce7 Revert "linux: 4.14.98 -> 4.14.99"
This reverts commit 0e1eb30a1d.
It broke the installer tests, e.g. https://hydra.nixos.org/build/88704861

(cherry picked from commit 01d8894c4d)
2019-02-13 23:21:57 +01:00
Averell Dalton
c4cf19fe20 nextcloud-client: fix crash
(cherry picked from commit cfc7cdac45)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2019-02-13 21:17:41 +01:00
Michael Raskin
bb748b4f28 libreoffice-still: replace with libreoffice-fresh which has actually reached the Still stage 2019-02-13 16:33:49 +01:00
Michael Raskin
73568e8e0f libreoffice-fresh: 6.0.5.2 -> 6.0.7.3 2019-02-13 16:33:49 +01:00
John Ericson
e1deb56b10 Merge pull request #55538 from worldofpeace/autopatchelf-backport
backport changes to autoPatchelfHook
2019-02-13 09:57:59 -05:00
José Romildo Malaquias
c86fd3ed13 vivaldi-ffmpeg-codecs: 71.0.3578.98 -> 72.0.3626.96
(cherry picked from commit c00b84adfc)
2019-02-13 09:11:50 -05:00
José Romildo Malaquias
f6e84ff918 vivaldi: 2.2.1388.37-1 -> 2.3.1440.41-1
(cherry picked from commit 24c966545a)
2019-02-13 09:11:29 -05:00
Ivan Kozik
e23980ea7d chromium: 72.0.3626.81 -> 72.0.3626.96
CVE-2019-5784

(cherry picked from commit 0811bbcaa4)
2019-02-13 12:28:26 +01:00
Vladimír Čunát
f4f2525cfc Merge branch 'staging-18.09' into release-18.09
Most x86_64-linux packages do have binaries,
so let's not keep 18.09-small waiting anymore.
2019-02-13 12:24:40 +01:00
Domen Kožar
89bf7472a1 fix #52118
(cherry picked from commit 28293fb169)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-02-13 15:59:32 +07:00
Vladimír Čunát
63a36696f9 Merge branch 'release-18.09' into staging-18.09 2019-02-13 08:56:34 +01:00
Will Dietz
e5c1e6821c Merge #55334: curl: 7.63.0 -> 7.64.0
(cherry picked from commit 42446b15a7)
Contains security fixes.
2019-02-13 08:55:33 +01:00
Will Dietz
c979f23b9f curl: 7.62.0 -> 7.63.0
https://curl.haxx.se/mail/lib-2018-12/0036.html
https://curl.haxx.se/changes.html
(cherry picked from commit 5a8660bd29)
2019-02-13 08:55:06 +01:00
Austin Seipp
1669f07c75 foundationdb60: 6.0.15 -> 6.0.18
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit c19807e25d,
without dependent patches, to bump version directly from 6.0.15)
2019-02-12 23:07:39 -06:00
Tim Steinbach
a0ba6c2182 linux: 4.19.20 -> 4.19.21
(cherry picked from commit c7e17fa49c)
2019-02-12 18:46:56 -05:00
Tim Steinbach
a260b5dbd5 linux: 4.14.98 -> 4.14.99
(cherry picked from commit 0e1eb30a1d)
2019-02-12 18:46:55 -05:00
Tim Steinbach
eeda4d78da linux: 4.9.155 -> 4.9.156
(cherry picked from commit a629651af2)
2019-02-12 18:46:54 -05:00
Peter Simons
8611e758a5 opentracing: fix Nixpkgs evaluation errors
(cherry picked from commit d46291dda5)
2019-02-12 15:14:35 +01:00
Bjørn Forsman
edbd55fa9a Unbreak eval with nix-1.x
Remove the last use of the "placeholder" primop on release-18.09 branch.

Fixes: a57d03fcc3 ("teeworlds: 0.6.4 -> 0.6.5"), which was backported
from master with the "placeholder" primop.
2019-02-12 15:14:20 +01:00
Tim Steinbach
fb51a58888 flashplayer: 32.0.0.114 -> 32.0.0.142
(cherry picked from commit 2fcb8c3ac7)
2019-02-12 08:22:33 -05:00
Sarah Brofeldt
eab0f4630b docker: 18.09.1 -> 18.09.2
(cherry picked from commit 9f3cad2ee3cd17e4ba618c43ff71c2a47e44ee0d)
2019-02-12 13:14:43 +00:00
Will Dietz
8b3f09242d docker: 18.09.0 -> 18.09.1
https://github.com/docker/docker-ce/releases/tag/v18.09.1
(cherry picked from commit 487a43324e)
2019-02-12 13:14:43 +00:00
adisbladis
0a3561a969 Merge pull request #53375 from adisbladis/nodejs-backports
Backport nodejs from #53270
2019-02-12 12:07:19 +00:00
Robert Schütz
168cbb3969 Merge pull request #55562 from Moredread/tor-browser-backport
tor-browser-bundle-bin: 8.0.4 -> 8.0.5 (Backport)
2019-02-12 00:54:14 +01:00
Robert Schütz
ccd53a9cb1 borgbackup: 1.1.8 -> 1.1.9
Changelog: https://borgbackup.readthedocs.io/en/stable/changes.html#version-1-1-9-2019-02-10
(cherry picked from commit 9c5ca86247)
2019-02-12 00:39:33 +01:00
Robert Schütz
16340b902c borgbackup: 1.1.7 -> 1.1.8
(cherry picked from commit 3adf8427d2)
2019-02-12 00:39:33 +01:00
Pierre Bourdon
d770864744 libu2f-host: 1.1.6 -> 1.1.7 (CVE-2018-20340)
(cherry picked from commit da9fdcb1f0)
2019-02-11 21:58:24 +01:00
Will Dietz
d064b22415 tor-browser-bundle-bin: 8.0.4 -> 8.0.5
https://blog.torproject.org/new-release-tor-browser-805

* demote github URL, it doesn't have newest
  (including 8.0.4 which this upgrades from)

(cherry picked from commit 791a6c4937)
2019-02-11 13:01:57 +01:00
Peter Simons
109a28ab95 Merge pull request #55346 from dotlambda/dovecot-CVE-2019-3814
[18.09] dovecot: fix CVE-2019-3814
2019-02-11 11:17:35 +01:00
Robert Schütz
9e431cec25 dovecot: 2.3.4 -> 2.3.4.1
fixes CVE-2019-3814:
https://dovecot.org/list/dovecot-news/2019-February/000394.html

(cherry picked from commit d49ffaac8a)
2019-02-11 10:30:26 +01:00
Robert Schütz
72e1819062 dovecot: 2.3.3 -> 2.3.4, dovecot_pigeonhole: 0.5.3 -> 0.5.4
(cherry picked from commit b6c96c6419)
2019-02-11 10:30:09 +01:00
R. RyanTM
3b276cfcd0 dovecot_pigeonhole: 0.5.2 -> 0.5.3 (#47820)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dovecot-pigeonhole/versions

(cherry picked from commit e00bfcd798)
2019-02-11 10:30:00 +01:00
R. RyanTM
f594245ae5 dovecot: 2.3.2.1 -> 2.3.3 (#47814)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/dovecot/versions

(cherry picked from commit 5a6c4d39fb)
2019-02-11 10:29:42 +01:00
aszlig
10ffd6f112 autoPatchelfHook: Skip on missing segment headers
If the file in question is not a shared object file but an ELF, we
really want to skip the file, because we won't have anything to patch
there.

For example if the file is created via "gcc -c -o foo.o foo.c", we don't
get a segment header and so far autoPatchelf was trying to patch such a
file.

By checking for missing segment headers, we're now no longer going to
attempt patching such a file.

Signed-off-by: aszlig <aszlig@nix.build>
Reported-by: Sander van der Burg <svanderburg@gmail.com>
(cherry picked from commit 4a6e3e4185)
2019-02-10 17:02:02 -05:00
aszlig
66de7c7939 autoPatchelfHook: Fix type of norecurse variable
While declaring it as an array doesn't do any harm in our usage, it
might be a bit confusing when reading the code.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 9f23a63f79)
2019-02-10 17:01:57 -05:00
aszlig
2586da9d0e autoPatchelfHook: Add addAutoPatchelfSearchPath
This function is useful if autoPatchelf is invoked during some of the
phases of a build and allows to add arbitrary shared objects to the
search path.

So far the same functionality was in autoPatchelf itself, but not
available as a separate function, so when adding shared objects to the
dependency cache one would have to do so manually.

The function also has the --no-recurse flag, which prevents recursing
into subdirectories.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 2faf905f98)
2019-02-10 17:01:51 -05:00
aszlig
83b7d5813a autoPatchelfHook: Add --no-recurse flag
This is to be used with the autoPatchelf command and allows to only
patch a specific file or directory without recursing into
subdirectories.

Apart from being able to run the command in a standalone way, as
detailled in the previous commit this is also needed for the Android SDK
emulator, because according to @svanderburg there are subdirectories we
don't want to patch.

The reason why I didn't use GNU getopt is that it might not be available
on all operating systems and the getopts bash builtin doesn't support
long arguments. Apart from that, the implementation for recognizing the
flag is pretty trivial and it's also using bash builtins only, so if we
want to do something really fancy someday, we can still change it.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 3ca35ce0b2)
2019-02-10 17:01:46 -05:00
aszlig
f4eb9c5993 autoPatchelfHook: Allow to prevent automatic run
If you want to only run autoPatchelf on a specific path and leave
everything else alone, we now have a $dontAutoPatchelf environment
variable, which causes the postFixup hook to not run at all.

The name "dontAutoPatchelf" probably is a bit weird in conjunction with
putting "autoPatchelfHook" in nativeBuildInputs, but unless someone
comes up with a better name I keep it that way because it's consistent
with all the other dontStrip, dontPatchShebangs, dontPatchELF and
whatnot.

A specific example where this is needed is when building the Android SDK
emulator, which contains a few ARM binaries in subdirectories that
should not be patched. If we were to run autoPatchelf on all outputs
unconditionally we'd run into errors because some ARM libraries couldn't
be found.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit e4fbb244ee)
2019-02-10 17:01:40 -05:00
aszlig
c6fbed235a autoPatchelfHook: Make easier to run autoPatchelf
The autoPatchelf main function which is run against all of the outputs
was pretty much tailored towards this specific setup-hook and was
relying on $prefix to be set globally.

So if you wanted to run autoPatchelf manually - let's say during
buildPhase - you would have needed to run it like this:

  prefix=/some/directory autoPatchelf

This is now more intuitive and all you need to do is run the following:

  autoPatchelf /some/directory

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit d03e4ffdbf)
2019-02-10 17:01:34 -05:00
aszlig
d3c7d37806 autoPatchelfHook: Correctly detect PIE binaries
I originally thought it would just be enough to just check for an INTERP
section in isExecutable, however this would mean that we don't detect
statically linked ELF files, which would break our recent improvement to
gracefully handle those.

In theory, we are only interested in ELF files that have an INTERP
section, so checking for INTERP would be enough. Unfortunately the
isExecutable function is already used outside of autoPatchelfHook, so we
can't easily get rid of it now, so let's actually strive for more
correctness and make isExecutable actually match ELF files that are
executable.

So what we're doing instead now is to check whether either the ELF type
is EXEC *or* we have an INTERP section and if one of them is true we
should have an ELF executable, even if it's statically linked.

Along the way I also set LANG=C for the invocations of readelf, just to
be sure we don't get locale-dependent output.

Tested this with the following command (which contains almost[1] all the
packages using autoPatchelfHook), checking whether we run into any
library-related errors:

  nix-build -E 'with import ./. { config.allowUnfree = true; };
    runCommand "test-executables" {
      drvs = [
        anydesk cups-kyodialog3 elasticsearch franz gurobi
        masterpdfeditor oracle-instantclient powershell reaper
        sourcetrail teamviewer unixODBCDrivers.msodbcsql17 virtlyst
        vk-messenger wavebox zoom-us
      ];
    } ("for i in $drvs; do for b in $i/bin/*; do " +
       "[ -x \"$b\" ] && timeout 10 \"$b\" || :; done; done")
  '

Apart from testing against library-related errors I also compared the
resulting store paths against the ones prior to this commit. Only
anydesk and virtlyst had the same as they didn't have self-references,
everything else differed only because of self-references, except
elasticsearch, which had the following PIE binaries:

  * modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/autoconfig
  * modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/autodetect
  * modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/categorize
  * modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/controller
  * modules/x-pack/x-pack-ml/platform/linux-x86_64/bin/normalize

These binaries were now patched, which is what this commit is all about.

[1]: I didn't include the "maxx" package (MaXX Interactive Desktop)
     because the upstream URLs are no longer existing and I couldn't
     find them elsewhere on the web.

Signed-off-by: aszlig <aszlig@nix.build>
Fixes: https://github.com/NixOS/nixpkgs/issues/48330
Cc: @gnidorah (for MaXX Interactive Desktop)
(cherry picked from commit c64624b843)
2019-02-10 17:01:25 -05:00
aszlig
f4136c19b5 autoPatchelfHook: Silence errors in isExecutable
The "maxx" package recursively runs isExecutable on a bunch of files and
since the change to use "readelf" instead of "file" a lot of errors like
this one are printed during build:

  readelf: Error: Not an ELF file - it has the wrong magic bytes at the
  start

While the isExecutable was never meant to be used outside of the
autoPatchelfHook, it's still a good idea to silence the errors because
whenever readelf fails, it clearly indicates that the file in question
is not a valid ELF file.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit b4526040a2)
2019-02-10 17:01:16 -05:00
aszlig
7b0e45e482 autoPatchelfHook: Only check PT_INTERP on execs
If the ELF file is not an executable, we do not get a PT_INTERP section,
because after all, it's a *shared* library.

So instead of checking for PT_INTERP (to avoid statically linked
executables) for all ELF files, we add another check to see if it's an
executable and *only* skip it when it is and there's no PT_INTERP.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 9920215d00)
2019-02-10 17:00:38 -05:00
Jörg Thalheim
cb929ba3d3 autoPatchelfHook: do not patch statically linked files
Also speed up quite significantly due less forking.

(cherry picked from commit 58a97dfb49)
2019-02-10 16:59:26 -05:00
Edmund Wu
2475906e4a vscode: 1.30.2 -> 1.31.0
(cherry picked from commit ea679302a5)
2019-02-10 15:54:49 -05:00
worldofpeace
23689934dc vscode: minor cleanup, produce one wrapper on linux
I removed the hack for libsecret, introduced in[0] and
I didn't encounter any problems at runtime.

[0]: https://github.com/NixOS/nixpkgs/pull/29127

(cherry picked from commit d9b14864a5)
2019-02-10 15:51:17 -05:00
Edmund Wu
4af87382a5 vscode: fix rpath for native modules
(cherry picked from commit 919a5f6963)
2019-02-10 15:51:09 -05:00
Edmund Wu
a4a2964f7d vscode-extensions.ms-vscode.cpptools: 0.20.1 -> 0.21.0
(cherry picked from commit baf6ba553f)
2019-02-10 15:50:58 -05:00
markuskowa
5225d4bf01 Merge pull request #55459 from fadenb/mysql_module_dbname_quoting_backport
[18.09] nixos/mysql: fix option `ensureDatabases`
2019-02-09 19:02:55 +01:00
Vladimír Čunát
3acebb0395 Merge branch 'staging-18.09' into release-18.09
polkit security
2019-02-09 09:49:11 +01:00
Robin Stumm
6792ad7f1e nixos/mysql: fix option ensureDatabases
The database name needs to be quoted
in case it contains special characters
so the MySQL service does not fail to start.

(cherry picked from commit 429c0bf60c)
2019-02-08 22:28:07 +01:00
Pascal Wittmann
13050bedc4 nagstamon: 2.0.1 -> 3.2.1 2019-02-08 20:02:12 +01:00
Aaron Andersen
b0e4127a70 cron: fix error when running crontab as sudo (issue #54827)
(cherry picked from commit c8547081cb)

Fixes https://github.com/NixOS/nixpkgs/issues/54827.
2019-02-08 17:43:01 +00:00
Elis Hirwing
e50e323a2c php72: 7.2.14 -> 7.2.15
Changelog: https://secure.php.net/ChangeLog-7.php#7.2.15
(cherry picked from commit 89dec63005)
2019-02-08 14:26:58 +00:00
Elis Hirwing
83f7febfd2 php72: 7.2.13 -> 7.2.14
Changelog: http://php.net/ChangeLog-7.php#7.2.14
(cherry picked from commit ab341a18ad)
2019-02-08 14:26:58 +00:00
Elis Hirwing
8618619dfd php71: 7.1.25 -> 7.1.26
Changelog: http://php.net/ChangeLog-7.php#7.1.26
(cherry picked from commit 49538f6b3a)
2019-02-08 13:20:56 +00:00
Tim Steinbach
fe753dd2f9 linux: 4.4.173 -> 4.4.174
(cherry picked from commit b5108ee64686960667ed70c8f2ddf11a8d169238)
2019-02-08 08:19:32 -05:00
Andreas Rammhold
b01a89d58f Revert "linux: Adds patch for fixing wifi on raspberry pi"
Upstream 4.19.20 contains this patch already.

This reverts commit 43f4fb3c52.
2019-02-08 10:50:49 +01:00
worldofpeace
a859ce551b polkit: fix CVE-2019-6133
Jann Horn of Google found that Polkit doesn't properly check
if a process is already authenticated, which can lead to an
authentication reuse by a different user[0]. See also [1]

Closes #55391

[0]: https://bugs.chromium.org/p/project-zero/issues/detail?id=1692
[1]: https://gitlab.freedesktop.org/polkit/polkit/issues/75

(cherry picked from commit 7da64c9fbe)
2019-02-08 08:07:09 +00:00
Jörg Thalheim
8c492fee00 Merge pull request #55430 from Lassulus/steam-stable
[18.09] Steam: run update_runtimes.py
2019-02-08 06:11:33 +00:00
christoph
2c3418277a run update_runtimes.py
(cherry picked from commit 6833eabe59)
2019-02-08 05:13:17 +01:00
taku0
e6ad2c30aa thunderbird, thunderbird-bin: 60.4.0 -> 60.5.0 (#54935)
* thunderbird-bin: 60.3.3 -> 60.5.0

* thunderbird: 60.4.0 -> 60.5.0

(cherry picked from commit 3106cbe8c3)
2019-02-07 23:32:15 +01:00
Wout Mertens
160e2f7dd4 Merge branch 'staging-18.09' into nodejs-backports 2019-02-07 15:41:59 +01:00
Daniel Barlow
987d4b9cb4 make-closure needs build system mkdir and jq
Make make-closure work when cross-compiling

(cherry picked from commit f9f6ddc083)
2019-02-06 23:08:33 -05:00
Tim Steinbach
919c37786c linux: 4.4.172 -> 4.4.173
(cherry picked from commit a957cc42cfd072019120b8b2eae680625c7d844e)
2019-02-06 14:40:48 -05:00
Tim Steinbach
642499faef linux: 4.19.19 -> 4.19.20
(cherry picked from commit 7870ada549)
2019-02-06 13:29:16 -05:00
Tim Steinbach
0ae99e827a linux: 4.14.97 -> 4.14.98
(cherry picked from commit bd7e5b51b5)
2019-02-06 13:29:15 -05:00
Tim Steinbach
9b3d1ecb15 linux: 4.9.154 -> 4.9.155
(cherry picked from commit 117551ce2a)
2019-02-06 13:29:14 -05:00
Dmitry Kalinkin
8008d0bbc6 Merge pull request #55257 from MatrixAI/release-18.09
Backport fixes to tensorflow to release-18.09
2019-02-06 00:30:54 -05:00
Jeff Slight
12b1462924 gitlab: 11.6.3 -> 11.7.4
(cherry picked from commit 8c043d3c7b)
2019-02-06 01:01:06 +01:00
Pascal Bach
2578fa2c96 gitlab-runner: 11.6.0 -> 11.7.0
(cherry picked from commit 30c40858bd)
2019-02-06 00:54:43 +01:00
Florian Klink
addb7f23eb minio-client: 2018-12-27T00-37-49Z -> 2019-01-30T19-57-22Z
(cherry picked from commit d60c38ad9b)
2019-02-05 18:41:43 +01:00
Florian Klink
9e7dfa983e minio: 2019-01-23T23-18-58Z -> 2019-01-31T00-31-19Z
(cherry picked from commit 16994118ba)
2019-02-05 18:41:41 +01:00
Herman Fries
a8511a6f86 tensorflow: Add contrib/tensor_forest to rpath
(cherry picked from commit 69af83b202)
2019-02-05 18:25:35 +11:00
Maximilian Bosch
38a99219f3 nixos/ndppd: register test 2019-02-04 23:22:20 +01:00
Franz Pletz
961794963b ndppd: don't use weird upstream systemd service unit
(cherry picked from commit 2746973061)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2019-02-04 23:21:20 +01:00
elseym
b9d797fb44 ndppd module: refactor
(cherry picked from commit 4ce1c59389)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2019-02-04 23:21:19 +01:00
Franz Pletz
43d2810d73 nixos/tests: add ndppd test
(cherry picked from commit f1b91b5726)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2019-02-04 23:21:16 +01:00
Lancelot SIX
d4a1e8975a qgis: 2.18.22 -> 2.18.28
(cherry picked from commit 76b1610a35)
2019-02-04 21:36:48 +01:00
Dmitry Kalinkin
dbb9f8818a buildbot: fix CVE-2019-7313 2019-02-04 00:59:42 -05:00
Dmitry Kalinkin
1e2c3bedbb Revert "qt59-qtbase: fix darwin build with clang-5"
The fix is already included in Qt 5.9.7

This reverts commit 0bf153f9c0.

(cherry picked from commit fd75bbccb9)
2019-02-02 21:33:52 +01:00
Andreas Rammhold
89049f3bb3 qt511: 5.11.1 -> 5.11.3
This fixes

 * CVE-2018-15518, Qt Base: “double free or corruption” in QXmlStreamReader
 * CVE-2018-19873, Qt Base: QBmpHandler segfault on malformed BMP file
 * CVE-2018-19870, Qt Base: Check for QImage allocation failure in qgifhandler
 * CVE-2018-19871, Qt Imageformats: QImage: QTgaFile CPU exhaustion
 * CVE-2018-19865, Qt Virtual Keyboard: Qt Virtual Keyboard logs all key presses
 * CVE-2018-19869, Qt Svg: Fix crash when parsing malformed url reference

More details can be obtained from the Qt annoucement [1].

[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/

(cherry picked from commit 2f5d37b77b)
2019-02-02 17:56:45 +01:00
Andreas Rammhold
0948f87182 qt56: fix CVE-2018-{15518,19873,19870,19871,19865,19869}
* CVE-2018-15518, Qt Base: “double free or corruption” in QXmlStreamReader
 * CVE-2018-19873, Qt Base: QBmpHandler segfault on malformed BMP file
 * CVE-2018-19870, Qt Base: Check for QImage allocation failure in qgifhandler
 * CVE-2018-19871, Qt Imageformats: QImage: QTgaFile CPU exhaustion
 * CVE-2018-19865, Qt Virtual Keyboard: Qt Virtual Keyboard logs all key presses
 * CVE-2018-19869, Qt Svg: Fix crash when parsing malformed url reference

More details can be obtained from the Qt annoucement [1].

[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/

(cherry picked from commit 066be85d9d)
2019-02-02 17:56:45 +01:00
Andreas Rammhold
a3c82b97af qt56.qtvirtualkeyboard: init at 5.6.3
This adds the "missing" qtvirtualkeyboard module of qt56. I just add
this so I can apply (& test) the patches for a CVE in the next commit.
This might seem strange but in case anyone decided to add / use this in
the future we are on the safe(r) side.

(cherry picked from commit 295a210a23)
2019-02-02 17:52:38 +01:00
Roosemberth Palacios
2ff7ef373e youtube-dl: 2019.01.17 -> 2019.01.30.1 (#55076)
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-02-02 16:13:27 +01:00
worldofpeace
7e15417e42 typora: 0.9.53 -> 0.9.64, remove electron blob
Also dropped the i386 archive.

(cherry picked from commit 3b61faf52b)
The archive for 0.9.53 was removed resulting in a broken build.
2019-02-01 23:01:58 -05:00
Robert Schütz
2481296277 Merge pull request #54974 from MatrixAI/release-18.09
Backport fixes to Dask and Distributed to release-18.09
2019-02-01 14:20:39 +01:00
Léo Gaspard
b3a2215178 Merge branch 'pr-55022' into release-18.09
* pr-55022:
  redmine: 3.4.6 -> 3.4.8
2019-02-01 14:01:20 +01:00
Domen Kožar
10dbdd30d1 nixops: 1.6 -> 1.6.1
(cherry picked from commit 8b85a86023)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-02-01 11:40:42 +07:00
Herwig Hochleitner
77e29cd5fa i2p: 0.9.35 -> 0.9.38
(cherry picked from commit f7165b2ad6)
2019-02-01 03:58:18 +01:00
Frederik Rietdijk
5272775da6 python: distributed: 1.23.1 -> 1.23.3
(cherry picked from commit e8783b8284)
2019-02-01 12:53:11 +11:00
Chris Ostrouchov
283985b5b8 pythonPackages.distributed: refactor move to fetchPypi
There is a bug when using git repo in that the package does not get a
version (shows up as `0+unknown`). Using pypi fixes this issue allows
allows for auto upgrades.

(cherry picked from commit e5cd420e73)
2019-02-01 12:52:47 +11:00
Chris Ostrouchov
802e8d2676 fixup! merge: fixing changes with nixpkgs since pull-request
(cherry picked from commit 027b9beb58)
2019-02-01 12:42:06 +11:00
Chris Ostrouchov
19a3d55dc7 pythonPackages.distributed: 1.15.1 -> 1.22.1
The github repository was downloaded instead of the pypi repository
for testing (needed `conftest.py`). Major work was done on the
underlying dependencies to make distributed work on python 2.7,
3+. Note that the test **do** take a significant amount of time (10-15
minutes).

 - moved to `python-modules`
 - compatible with 2.7, 3+
 - all tests pass (previously tests were not run)

(cherry picked from commit 4f70170f8a)
2019-02-01 12:42:04 +11:00
Chris Ostrouchov
fcd7df5ea8 pythonPackages.pytest-repeat: init at 0.6.0
- compatible with 2.7, 3+
 - all tests pass and running

(cherry picked from commit 7b920172db)
2019-02-01 12:41:37 +11:00
Chris Ostrouchov
ff5a9b975b pythonPackages.pytest-faulthandler: init at 1.5.0
- compatible with 2.7 and 3+
 - all test pass.

(cherry picked from commit 5704642a3f)
2019-02-01 12:41:37 +11:00
Aaron Andersen
a349f52d83 redmine: 3.4.6 -> 3.4.8
(cherry picked from commit 0f3ecc630c)
2019-01-31 20:00:29 -05:00
Ivan Kozik
e1271ae1f5 chromium: make the new audio sandbox NixOS-compatible
Deal with f2fc90bb74
which landed https://github.com/chromium/chromium/blob/master/services/audio/audio_sandbox_hook_linux.cc
containing /usr/share and /usr/lib/x86_64-linux-gnu paths.

closes https://github.com/NixOS/nixpkgs/pull/54960

(cherry picked from commit 03960a323d)
2019-01-31 20:07:22 +01:00
Rob Vermaas
22a34b26fe julia: add 1.1.0
(cherry picked from commit bfc3789f38)
2019-01-31 15:01:04 +01:00
Tim Steinbach
76fc5f47b3 linux: 4.19.18 -> 4.19.19
(cherry picked from commit e4c1ce97c3)
2019-01-31 07:21:46 -05:00
Tim Steinbach
4bb7f3408c linux: 4.14.96 -> 4.14.97
(cherry picked from commit f623daca21)
2019-01-31 07:21:46 -05:00
Tim Steinbach
d2c9ee8dbb linux: 4.9.153 -> 4.9.154
(cherry picked from commit 468b6cea72)
2019-01-31 07:21:45 -05:00
Michael Weiss
54e78e87b0 Merge pull request #54987 from primeos/signal-desktop-backport
[18.09] Signal-Desktop backport
2019-01-31 12:37:08 +01:00
Michael Weiss
f9514c91fe signal-desktop: 1.19.0 -> 1.20.0
(cherry picked from commit 3efab179a5)
2019-01-31 12:15:27 +01:00
Michael Weiss
44fc32dca9 signal-desktop: 1.18.1 -> 1.19.0
A new dependency (at-spi2-atk) is required for libatk-bridge-2.0.so.

Also libstdc++.so.6 is now required from stdenv.cc.cc.lib (stdenv.cc.cc
doesn't offer it). The binary will only find libstdc++.so.6 via
$LD_LIBRARY_PATH (i.e. not via rpath, the run-time search path).

(cherry picked from commit e01209f2c7)
2019-01-31 12:15:26 +01:00
Robert Schütz
5769ebc21a Merge pull request #54941 from dotlambda/CVE-2019-3498-backport
django: [18.09] CVE-2019-3498
2019-01-31 10:26:05 +01:00
Andreas Rammhold
cdf9d7ce34 Merge pull request #54944 from andir/18.09/dockerTools
[18.09] dockerTools: unpin go version
2019-01-31 09:40:22 +01:00
Izorkin
47be5473a2 datadog-agent: 6.8.3 -> 6.9.0
(cherry picked from commit 73b317d923)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-01-31 13:05:09 +07:00
Izorkin
f54482f59a datadog-agent: 6.4.2 -> 6.8.3
(cherry picked from commit 47a8b13efa)
Signed-off-by: Domen Kožar <domen@dev.si>
2019-01-31 13:04:56 +07:00
Herwig Hochleitner
7f3df85f44 chromium: 71.0.3578.98 -> 72.0.3626.81
CVE-2019-5754 CVE-2019-5782 CVE-2019-5755 CVE-2019-5756 CVE-2019-5757
CVE-2019-5758 CVE-2019-5759 CVE-2019-5760 CVE-2019-5761 CVE-2019-5762
CVE-2019-5763 CVE-2019-5764 CVE-2019-5765 CVE-2019-5766 CVE-2019-5767
CVE-2019-5768 CVE-2019-5769 CVE-2019-5770 CVE-2019-5771 CVE-2019-5772
CVE-2019-5773 CVE-2019-5774 CVE-2019-5775 CVE-2019-5776 CVE-2019-5777
CVE-2019-5778 CVE-2019-5779 CVE-2019-5780 CVE-2019-5781

(cherry picked from commit 6b27008fb5)
2019-01-31 01:22:05 +01:00
worldofpeace
d19eea7334 pythonPackages.txaio: disable tests
See discussion in https://github.com/NixOS/nixpkgs/pull/53479

Fixes #53474
2019-01-30 18:53:17 -05:00
Robert Schütz
f944ffecb9 python.pkgs.django_1_8: mark as insecure (#54937)
Since CVE-2018-14574 and CVE-2019-3498 affect 1.11, it is very likely
they also apply to 1.8. However, Django 1.8 has reached EOL in April
2018 and the patches were not backported.

(cherry picked from commit c6e08579c5)
2019-01-30 23:58:13 +01:00
Andreas Rammhold
0d6c4a88e2 qt59.qtvirtualkeyboard: fix CVE-2018-19865
CVE-2018-19865 tracks the issue of qtvirtualkeyboard where it logs all
user input. With this commit we are applying the recommended patches
form the upstream project.

More details can be obtained from the Qt annoucement [1].

[1] https://blog.qt.io/blog/2018/12/04/qt-5-11-3-released-important-security-updates/

(cherry picked from commit 66601282cc)
2019-01-30 23:56:50 +01:00
Florian Franzen
fc0c9a25ab qt59: 5.9.3 -> 5.9.7
(cherry picked from commit 776c96272c)
2019-01-30 23:46:59 +01:00
Andreas Rammhold
bc739d01cc Merge pull request #54910 from andir/18.09/prometheus-node-exporter
[18.09] prometheus-node-exporter: remove go 1.9 pinning
2019-01-30 15:53:41 +01:00
Benjamin Hipple
f39fb7b419 dockerTools: unpin go version
The linked PR has been merged, and in fact dockerTools has upgraded to the
latest `go1.11` compiler:

https://github.com/moby/moby/pull/35739
https://github.com/moby/moby/pull/37358
(cherry picked from commit 4d8bb9a34a)
2019-01-30 15:43:21 +01:00
R. RyanTM
e9a99dd6cc python37Packages.django_2_1: 2.1.4 -> 2.1.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-django/versions

(cherry picked from commit 0f5b4ecbea)
2019-01-30 14:53:20 +01:00
R. RyanTM
a38319be05 python37Packages.django_2_1: 2.1.3 -> 2.1.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-django/versions

(cherry picked from commit 375f2c23dd)
2019-01-30 14:53:13 +01:00
R. RyanTM
425238f065 python36Packages.django_2_1: 2.1.2 -> 2.1.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.6-django/versions

(cherry picked from commit 1330965fa5)
2019-01-30 14:53:07 +01:00
Robert Schütz
67f7b70c10 python.pkgs.django_2_0: 2.0.9 -> 2.0.10
fixes CVE-2019-3498

(cherry picked from commit 682b551864)
2019-01-30 14:51:40 +01:00
Robert Schütz
ec76d88c15 python.pkgs.django_1_11: 1.11.17 -> 1.11.18
fixes CVE-2019-3498

(cherry picked from commit e79d165d42)
2019-01-30 14:51:20 +01:00
Mario Rodas
8f9bbbe1cb pythonPackages.django_1_11: 1.11.16 -> 1.11.17 (#52636)
(cherry picked from commit ddd91fcfab)
2019-01-30 14:51:13 +01:00
Andreas Rammhold
23806968da gitAndTools.grv: use buildGoPackage instead of buildGo19Package
(cherry picked from commit 4fbce625ed)
2019-01-30 11:52:16 +01:00
Andreas Rammhold
bba8c22223 Merge staging-18.09 into release-18.09 2019-01-30 11:30:52 +01:00
Andreas Rammhold
2fddd79df6 Merge pull request #54912 from andir/18.09/firefox65
[18.09] nss 3.41 -> 3.42, firefox 64 -> 65
2019-01-30 03:12:38 +01:00
Andreas Rammhold
4bc8537905 firefoxPackages.firefox-esr-60: 60.4.0esr -> 60.5.0esr
(cherry picked from commit 10024f2ad1)
2019-01-30 02:16:45 +01:00
Andreas Rammhold
4f6152afc8 prometheus-node-exporter: remove go 1.9 pinning
With Go1.11 the daemon seems to work just fine. I was unable to observe
any crashes (due to the wifi module being loaded).
2019-01-30 01:35:40 +01:00
Andreas Rammhold
5e90a0f1da firefox-bin: 64.0 -> 65.0 2019-01-30 00:01:33 +01:00
Andreas Rammhold
d85692d289 firefox: 64.0 -> 65.0
There have been some more changes to the source tree which broke the
buildconfig patch. This commit adds another patch that can be used for
the future versions. Once all the flavors are based off a new(ish)
firefox release we can remove the old patch.
2019-01-29 23:58:37 +01:00
Andreas Rammhold
36e8e5db3a nss: 3.41 -> 3.42 2019-01-29 23:56:58 +01:00
Andreas Rammhold
19b3dae9f8 Merge 'release-18.09' into staging-18.09 2019-01-29 23:52:19 +01:00
Vladimír Čunát
5a3e195bcb go_1_9: mark as insecure (see the parent commit)
Upstream only supports two latest releases.
https://github.com/golang/go/issues/29903#issuecomment-457307356

(cherry picked from commit a687ef9739)
2019-01-29 21:34:25 +00:00
Vladimír Čunát
374f74c139 go_1_10: 1.10.7 -> 1.10.8 (security)
https://groups.google.com/forum/#!topic/golang-announce/mVeX35iXuSw
https://github.com/NixOS/nixpkgs/pull/54658
(cherry picked from commit d32e779ae8)
2019-01-29 21:34:17 +00:00
allowthere
ef8659b7ed go: 1.11.4 -> 1.11.5
https://groups.google.com/forum/#!msg/golang-announce/mVeX35iXuSw/Flp8FX7QEAAJ

We have just released Go 1.11.5 and Go 1.10.8 to address a recently reported security issue. We recommend that all users update to one of these releases (if you’re not sure which, choose Go 1.11.5).

This DoS vulnerability in the crypto/elliptic implementations of the P-521 and P-384 elliptic curves may let an attacker craft inputs that consume excessive amounts of CPU.

These inputs might be delivered via TLS handshakes, X.509 certificates, JWT tokens, ECDH shares or ECDSA signatures. In some cases, if an ECDH private key is reused more than once, the attack can also lead to key recovery.

The issue is CVE-2019-6486 and Go issue golang.org/issue/29903. See the Go issue for more details.

(cherry picked from commit d803da845f)
2019-01-29 21:34:07 +00:00
Will Fancher
b40b39b1bc shellFor: Don't suck in src to compare to deps. [Fixes #51079] 2019-01-29 16:26:29 -05:00
zimbatm
e39e43a349 nixos/google-compute-image: don't use <nixpkgs> (#54539)
Avoid loading code from the NIX_PATH as it prevents pinning
2019-01-28 17:31:58 +00:00
Tim Steinbach
0576b02369 linux: 4.19.17 -> 4.19.18
(cherry picked from commit 4ab5604c85)
2019-01-27 16:20:15 -05:00
Tim Steinbach
eb2a4f493b linux: 4.14.95 -> 4.14.96
(cherry picked from commit 19505bb8d1)
2019-01-27 16:20:14 -05:00
Tim Steinbach
7dfa5be27c linux: 4.9.152 -> 4.9.153
(cherry picked from commit 4606793349)
2019-01-27 16:20:13 -05:00
Tim Steinbach
047a9dc080 linux: 4.4.171 -> 4.4.172
(cherry picked from commit 6df6bb42b5)
2019-01-27 16:20:12 -05:00
Maximilian Bosch
68c0e95383 nextcloud-client: fix qt error at startup
The QT_PLUGIN_PATH couldn't find the needed xcb plugin.

See also #51044

(cherry picked from commit b525493253)
2019-01-27 11:37:43 +01:00
Andreas Rammhold
73c0c699eb Merge pull request #54505 from andir/18.09/firefox65
[18.09] firefox 65
2019-01-26 17:18:58 +01:00
Vladimír Čunát
09218fe5de systemd-cryptsetup-generator: fixup linkage
It got broken by a6fc462b5 #53483.
But IMO it's *this* expression that was written in a too fragile way.

(cherry picked from commit 2c226107cb)
2019-01-26 14:18:16 +01:00
Vladimír Čunát
e481112024 Revert "nix: point at curl 7.59.0 (#41452)"
This reverts commit 5574df3549.
I also can't reproduce the problem anymore; discussion: #41312.
Fixes #53569, fixes #53948.  (Vulnerabilities in old curl.)

(cherry picked from commit 51ac3db79c)
I've noticed no complaints about this change on unstable/master.
2019-01-26 14:02:01 +01:00
Jörg Thalheim
06808d4a14 Merge pull request #54565 from ivan/18.09-runScript
[18.09] buildFHSUserEnv: use runScript in env
2019-01-26 09:34:14 +00:00
Kristoffer Søholm
a4ee02f835 buildFHSUserEnv: use runScript in env (#49077)
This makes its behaviour conform to what is implied in the
documentation.

(cherry picked from commit 6f05dea390)
2019-01-26 09:32:41 +00:00
Stig Palmquist
119a93190a pythonPackages.python-gnupg: 0.4.3 -> 0.4.4
Fixes CVE-2019-6690:
https://blog.hackeriet.no/cve-2019-6690-python-gnupg-vulnerability/

(cherry picked from commit 464cbda386)
2019-01-25 08:01:14 +01:00
Kristoffer Søholm
6f05dea390 buildFHSUserEnv: use runScript in env (#49077)
This makes its behaviour conform to what is implied in the
documentation.
2019-01-25 01:41:25 +00:00
Ingolf Wagner
b7088935d6 rustc: mark compileprocess as timeconsuming
(cherry picked from commit c5f0dbb660)
2019-01-24 19:44:36 -05:00
Pascal Wittmann
ea58d40cfd autossh: 1.4f -> 1.5.g 2019-01-24 22:04:48 +01:00
Eelco Dolstra
261251b29d Fix copy-tarballs.pl
(cherry picked from commit 11cf7d6e1f)
2019-01-24 16:16:12 +01:00
Frederik Rietdijk
a35ecf0973 ncurses: use github mirror
Development releases of ncurses are uploaded but often also removed
again. This is causing a lot of trouble, so let's instead use a
GitHub mirror.

(cherry picked from commit 43e867a226)
2019-01-24 10:36:49 +01:00
Voob of Doom
3f69c99c2e ncurses: 6.1-20181027 -> 6.1-20190112
v6.1-20181027 url is 404.

(cherry picked from commit 138720f2f1)
2019-01-24 10:36:41 +01:00
Silvan Mosberger
9f88b3cbea Merge pull request #54410 from worldofpeace/mate-downgrade-backport
[18.09] mate updates and downgrades
2019-01-24 00:24:53 +01:00
Andreas Rammhold
aeba227fe0 Merge release-18.09 into staging-18.09 2019-01-23 18:45:22 +01:00
Member Betty
c595242ca9 aws-google-auth: use python3 (#52445)
(cherry picked from commit d268e3b2c0)
2019-01-23 18:04:19 +01:00
Tim Steinbach
749a3a0d00 linux: 4.19.16 -> 4.19.17
(cherry picked from commit 1b8beae40b)
2019-01-23 07:13:01 -05:00
Tim Steinbach
9239b3e9ba linux: 4.14.94 -> 4.14.95
(cherry picked from commit 5f0a4ee69f)
2019-01-23 07:12:54 -05:00
Tim Steinbach
7ab024129d linux: 4.9.151 -> 4.9.152
(cherry picked from commit 8ee43e01fa)
2019-01-23 07:12:45 -05:00
Peter Simons
276e509673 Merge pull request #53939 from rnhmjoj/pandoc-crossref-backport
haskellPackages.pandoc-crossref: refactor disable tests for 0.3.2.1 [backport]
2019-01-23 12:51:57 +01:00
Vladimir Mosienko
c7ae9a29ff teamviewer: 13.1.3026 -> 14.1.3399
(cherry picked from commit 2a858b3f76)
2019-01-23 09:46:27 +00:00
Andreas Rammhold
e76e8909c6 firefoxPackages: support building with firefox 65
Firefox >=65 will depend on icu >=63. All the older firefox versions
(and derived packages) seem to work fine with this change.

Also the system path environment patch will fail to apply since there
was a trivial whitespace change in the source file. By adding `-l` to
patch we can avoid having to track two patches that do basically the
same. Having patchFlags per file without resorting to pre-/postPatch
would be nicer but there doesn't seem to be a facility for that right
now.

(cherry picked from commit e37b765e7897c015153552d4e33a8571ab9c5457)
2019-01-23 09:05:41 +01:00
Symphorien Gibol
5a0116e4c3 rustc: fix build with unbundled jemalloc and llvm on darwin
jemalloc with stripped prefix would cause segfaults in free:
https://github.com/NixOS/nixpkgs/pull/49557#issuecomment-436734677

This commit has been adjusted from the one on master to only carry the
relevant changes (the new optional `stripPrefix`) flag while still
keeping the other flags that were removed on master since they are no
loner supported by the version used there.

(cherry picked from commit 973eca740b)
2019-01-23 09:05:41 +01:00
Andreas Rammhold
ae835664b2 rust_1_31: init at 1.31
This removes the 1.29 backport and replaces it with the 1.31 version
from master.
2019-01-23 09:05:40 +01:00
Alyssa Ross
577aa817e6 nss: 3.40.1 -> 3.41
(cherry picked from commit fdc6caf144)
2019-01-23 09:05:40 +01:00
Alyssa Ross
335f87f88c icu63: init at 63.1
(cherry picked from commit 70b8ab6e72)
2019-01-23 01:13:30 +01:00
Matthew Bauer
88157a2a48 ghc: don’t add libiconv automatically
ghc needs it to fail to correctly detect it for later.
2019-01-22 17:47:21 -05:00
worldofpeace
a21dad5e57 Merge pull request #54364 from etu/stable-upgrade-gitea
Backport gitea: 1.6.3 -> 1.6.4
2019-01-21 18:06:20 +00:00
Tim Steinbach
dc7a3651b5 openjdk: 8u192 -> 8u202
(cherry picked from commit fad6b012bd)
2019-01-21 13:04:59 -05:00
Milan Svoboda
f3b123e574 DMD to provide libphobos2.so.x.y
(cherry picked from commit 3f634dd88c)
2019-01-21 16:30:04 +00:00
Mario Rodas
c2b2843d39 aws-google-auth: init at 0.0.29
(cherry picked from commit f15aecd1bb)
2019-01-21 14:26:29 +01:00
worldofpeace
e7ac65c8b1 mate.mate.polkit: move gobjectIntrospection to nativeBuildInputs
(cherry picked from commit e26d22c091)
2019-01-21 02:52:25 -05:00
worldofpeace
a6be464584 mate.mate-panel: add gobjectIntrospection
(cherry picked from commit 1101ebb4fe)
2019-01-21 02:52:25 -05:00
worldofpeace
edb086c46c mate.mate-menus: move gobjectIntropection to nativeBuildInputs
(cherry picked from commit 1fa78d2fce)
2019-01-21 02:52:25 -05:00
worldofpeace
cf60db5f7e mate.mozo: switch to using buildPythonApplication, cleanup
(cherry picked from commit ff22ad20e7)
2019-01-21 02:52:24 -05:00
worldofpeace
b49c670e64 mate.atril: workaround undeclared dependence on gio-unix-2.0
(cherry picked from commit f9b8f2cf4f)
2019-01-21 02:52:24 -05:00
worldofpeace
ba0b9683e0 mate.python-caja: 1.20.0 -> 1.20.2
(cherry picked from commit 6ce1348158)
2019-01-21 02:52:24 -05:00
worldofpeace
a05f04b997 mate.pluma: 1.21.1 -> 1.20.4
(cherry picked from commit 4e6b97784f)
2019-01-21 02:52:23 -05:00
worldofpeace
fbdcbfbeed mate.mozo: 1.20.1 -> 1.20.2
(cherry picked from commit bdf5b3dd1b)
2019-01-21 02:52:23 -05:00
worldofpeace
5c8370c66d mate.mate-utils: 1.21.0 -> 1.20.2
(cherry picked from commit e3c2e51e0e)
2019-01-21 02:52:22 -05:00
worldofpeace
4572f2fee1 mate.mate-user-guide: 1.21.0 -> 1.20.2
(cherry picked from commit 548e26ea45)
2019-01-21 02:52:22 -05:00
worldofpeace
a3a4fa7953 mate.mate-terminal: 1.21.0 -> 1.20.2
(cherry picked from commit 98ce15cf3f)
2019-01-21 02:52:22 -05:00
worldofpeace
3fbbdaef52 mate.mate-system-monitor: 1.21.0 -> 1.20.2
(cherry picked from commit 16ea947914)
2019-01-21 02:52:21 -05:00
worldofpeace
3cbac072fd mate.mate-settings-daemon: 1.21.0 -> 1.20.4
(cherry picked from commit c92039e5b6)
2019-01-21 02:52:21 -05:00
worldofpeace
5399b90410 mate.mate-session-manager: 1.21.0 -> 1.20.2
(cherry picked from commit 3a0bd5c367)
2019-01-21 02:52:21 -05:00
worldofpeace
9e362c1922 mate.mate-sensors-applet: 1.21.0 -> 1.20.3
(cherry picked from commit 254ed88cb7)
2019-01-21 02:52:20 -05:00
worldofpeace
7cc3ee5615 mate.mate-screensaver: 1.21.0 -> 1.20.3
(cherry picked from commit 2eadf35958)
2019-01-21 02:52:20 -05:00
worldofpeace
5995b1b3fc mate.mate-power-manager: 1.21.0 -> 1.20.3
(cherry picked from commit 0be0c710c2)
2019-01-21 02:52:20 -05:00
worldofpeace
980c1d50a2 mate.mate-polkit: 1.20.1 -> 1.20.2
(cherry picked from commit 9f79190976)
2019-01-21 02:52:19 -05:00
worldofpeace
1a3b4abb16 mate.mate-panel: 1.21.1 -> 1.20.4
(cherry picked from commit 276da98ded)
2019-01-21 02:52:19 -05:00
worldofpeace
0f8ec286c4 mate.mate-notification-daemon: 1.20.1 -> 1.20.2
(cherry picked from commit bd3e25849b)
2019-01-21 02:52:19 -05:00
worldofpeace
063d09f3e7 mate.mate-menus: 1.21.0 -> 1.20.2
(cherry picked from commit 8ef194d7da)
2019-01-21 02:52:18 -05:00
worldofpeace
9e7f3e6836 mate.mate-media: 1.21.0 -> 1.20.2
(cherry picked from commit ff86182e9a)
2019-01-21 02:52:18 -05:00
worldofpeace
d1a77f7b90 mate.mate-icon-theme: 1.21.0 -> 1.20.3
(cherry picked from commit 0065df21f4)
2019-01-21 02:52:18 -05:00
worldofpeace
842bc89419 mate.mate-desktop: 1.21.0 -> 1.20.4
(cherry picked from commit 5701547d34)
2019-01-21 02:52:17 -05:00
worldofpeace
f3c19a1cf8 mate.mate-control-center: 1.21.0 -> 1.20.4
(cherry picked from commit 365e164fe4)
2019-01-21 02:52:17 -05:00
worldofpeace
2e3955ee39 mate.mate-calc: 1.21.0 -> 1.20.3
(cherry picked from commit 4f495775b6)
2019-01-21 02:52:16 -05:00
worldofpeace
282dc010eb mate.mate-applets: 1.21.0 -> 1.20.3
(cherry picked from commit f344cccea6)
2019-01-21 02:52:16 -05:00
worldofpeace
fa59104cea mate.macro: 1.21.0 -> 1.20.3
(cherry picked from commit 5c8db56468)
2019-01-21 02:52:16 -05:00
worldofpeace
3e240c6ccb mate.libmateweather: 1.21.0 -> 1.20.2
(cherry picked from commit d5cdfc942d)
2019-01-21 02:52:15 -05:00
worldofpeace
bd3463ba88 mate.libmatemixer: 1.21.0 -> 1.20.1
(cherry picked from commit e9cf5dee86)
2019-01-21 02:52:15 -05:00
worldofpeace
8155484ac3 mate.libmatekbd: 1.21.0 -> 1.20.2
(cherry picked from commit 6ee7bf05f9)
2019-01-21 02:52:15 -05:00
worldofpeace
df04ea0061 mate.eom: 1.21.2 -> 1.20.2
(cherry picked from commit df577121f6)
2019-01-21 02:52:14 -05:00
worldofpeace
65e87d7609 mate.engrampa: 1.21.0 -> 1.20.2
(cherry picked from commit 26e351e39d)
2019-01-21 02:52:13 -05:00
worldofpeace
06dd214214 mate.caja-extensions: 1.20.1 -> 1.20.2
(cherry picked from commit 2f6424a4ff)
2019-01-21 02:52:13 -05:00
worldofpeace
deaecbbc2f mate.caja: 1.21.2 -> 1.20.3
(cherry picked from commit da66a0be1f)
2019-01-21 02:52:12 -05:00
worldofpeace
448da4b092 mate.atril: 1.20.0 -> 1.20.3
(cherry picked from commit 19281027e9)
2019-01-21 02:52:12 -05:00
Samuel Dionne-Riel
50f41ea2fc Revert "Add ssh backdoor to VM tests infrastructure."
This reverts commit d6e3db44cf.

See #53935 for explanations. In short, it may be causing issues with
tests on the build infrastructure.

(cherry picked from commit 3aab228d09)
2019-01-20 15:50:29 -05:00
taku0
c983626f12 oraclejdk: 8u191 -> 8u201, 8u202
(cherry picked from commit 11fbd8299d)
2019-01-20 11:41:26 +00:00
Elis Hirwing
9fcd2b1f6d gitea: 1.6.3 -> 1.6.4
Release notes: https://github.com/go-gitea/gitea/releases/tag/v1.6.4
2019-01-20 09:04:21 +01:00
Alexey Shmalko
5d9024da9b Merge pull request #54293 from witkamp/fix/gcc-arm-embedded/MANPATH
gcc-arm-embedded: fix MANPATH
2019-01-20 03:37:56 +02:00
Vladimír Čunát
a16476a935 Merge branch 'staging-18.09' into release-18.09 2019-01-19 17:23:04 +01:00
Theodore Witkamp
08e2492a58 gcc-arm-embedded: fix MANPATH 2019-01-18 16:05:56 -08:00
Robert Schütz
69c050c60b Merge pull request #54276 from timokau/youtube-dl-fix-18.09
[18.09] youtube-dl: 2019.01.16 -> 2019.01.17
2019-01-18 16:28:19 +01:00
Timo Kaufmann
8da20836c6 youtube-dl: 2019.01.16 -> 2019.01.17
Fixes an issue with youtube, see
https://github.com/rg3/youtube-dl/issues/18891

(cherry picked from commit a1169afded)
2019-01-18 16:07:42 +01:00
Joachim F
da32b557cb Merge pull request #54253 from Moredread/electrum-18.09
Backport: electrum: 3.2.3 -> 3.2.4 (security)
2019-01-18 10:21:20 +00:00
Jörg Thalheim
b3f403bd1c Merge pull request #54228 from schmittlauch/exfat-nofuse/update
exfat-nofuse: backport unbreak for 4.18 and 4.20
2019-01-18 08:14:49 +00:00
Jörg Thalheim
fee3c22f30 racket: fix drracket crashes on file dialogs
(cherry picked from commit 4f9e46af5d)
2019-01-18 08:13:19 +00:00
André-Patrick Bubel
20f17484af electrum: 3.2.3 -> 3.2.4 (security)
Backports anti-phishing measures from master

(cherry picked from commit cfcce55e1c)
2019-01-18 05:08:34 +01:00
makefu
44ec48f768 exfat-nofuse: unbreak for 4.18 and 4.20
(cherry picked from commit eac6725843)
2019-01-17 23:54:54 +01:00
Franz Pletz
fa3dd53be8 tengine: 2.2.2 -> 2.2.3 (security)
Fixes CVE-2018-16843, CVE-2018-16844 and CVE-2018-16845.

(cherry picked from commit 3a6cd12a47)
2019-01-17 13:27:39 +01:00
Tim Steinbach
c94837dd40 linux: 4.19.15 -> 4.19.16
(cherry picked from commit b4ab6ffb7f)
2019-01-17 06:57:14 -05:00
Tim Steinbach
520c2cbab8 linux: 4.14.93 -> 4.14.94
(cherry picked from commit 6ad56550e4)
2019-01-17 06:57:06 -05:00
Tim Steinbach
a87f6a6f4f linux: 4.9.150 -> 4.9.151
(cherry picked from commit 1e62588421)
2019-01-17 06:56:56 -05:00
Tim Steinbach
db4c3746c0 linux: 4.4.170 -> 4.4.171
(cherry picked from commit 2833865206)
2019-01-17 06:56:48 -05:00
Jörg Thalheim
8139daa10e Merge pull request #54018 from MP2E/discord_stable_bump
discord: 0.0.5 -> 0.0.8 [backport to release-18.09]
2019-01-17 09:03:45 +00:00
Jörg Thalheim
5907c1741b oraclejdk: 8.191 -> 8.201
also no longer use requireFile and accept the license via nixpkgs option

(cherry picked from commit 1dc706f060)
2019-01-17 07:31:21 +00:00
Cray Elliott
8a00a453ce discord: fix gsettings crash when selecting file
(cherry picked from commit ff2341afc9)
2019-01-16 17:35:09 -08:00
Cray Elliott
c2eb7d73c1 discord: remove line referencing paxmark 2019-01-16 17:34:58 -08:00
Cray Elliott
01f54e8fd8 discord: 0.0.7 -> 0.0.8
also fixes evaluation on release-18.09

(cherry picked from commit d5d5453684)
2019-01-16 17:34:58 -08:00
Cray Elliott
a76438ccab discord: 0.0.5 -> 0.0.7
discord now depends on gtk3 instead of gtk2, unfortunately
there is no public changelog, so other changes are unknown

(cherry picked from commit 4e4a9babd7)
2019-01-16 17:34:58 -08:00
Jörg Thalheim
55aaf71e07 Merge pull request #53887 from schmittlauch/ktouch-backport
ktouch backport: init at 18.08.0
2019-01-16 20:50:28 +00:00
Herman Fries
a8e638a1e4 jetbrains.webstorm: 2018.3.2 -> 2018.3.3
(cherry picked from commit 0931e88251)
2019-01-16 17:32:19 +00:00
Herman Fries
419c4b4d37 jetbrains.rider: 2018.2.3 -> 2018.3.1
(cherry picked from commit 86219e2512)
2019-01-16 17:32:16 +00:00
Herman Fries
bc58f8806f jetbrains.pycharm-professional: 2018.3.2 -> 2018.3.3
(cherry picked from commit 126220c72f)
2019-01-16 17:32:12 +00:00
Herman Fries
6f2f81ec35 jetbrains.pycharm-community: 2018.3.2 -> 2018.3.3
(cherry picked from commit 8af348a4c0)
2019-01-16 17:32:08 +00:00
Herman Fries
390b79a0db jetbrains.idea-ultimate: 2018.3.2 -> 2018.3.3
(cherry picked from commit 623af95530)
2019-01-16 17:32:05 +00:00
Herman Fries
56bfbd1114 jetbrains.idea-community: 2018.3.2 -> 2018.3.3
(cherry picked from commit 443f806762)
2019-01-16 17:31:56 +00:00
Herman Fries
c8d2fe6457 jetbrains.clion: 2018.3.2 -> 2018.3.3
(cherry picked from commit 878a1a3f71)
2019-01-16 17:31:51 +00:00
Bjørn Forsman
21f693ef8e gitolite: 3.6.10 -> 3.6.11
From https://github.com/sitaramc/gitolite/blob/master/CHANGELOG:

2019-01-08  v3.6.11 fix security issue in 'rsync' (bundle helper); see commit
                    5df2b81 for more

(cherry picked from commit 3dee561c34)
2019-01-16 13:44:39 +01:00
Lassulus
65db4e0871 gitolite 3.6.7 -> 3.6.10 (#48562)
(cherry picked from commit b7632217ab)
2019-01-16 13:44:31 +01:00
Bjørn Forsman
aa2b8cc964 gitolite: change patchPhase to postPatch
Overriding patchPhase is bad practice, it prevents customizing the
package with "patches = []".

(cherry picked from commit 9e1b5f1115)
2019-01-16 12:55:38 +01:00
Michael Raskin
af669204f7 Merge pull request #54005 from domenkozar/geoclue2-downgrade
Geoclue2 downgrade
2019-01-16 11:47:04 +00:00
Vladimír Čunát
de519bc6b9 Merge #54039: wireshark: 2.6.4 -> 2.6.6
(cherry picked from commit 2aa190bae0)

A few security problems were fixed in both of the bumps,
mostly crashes with specific packets:
https://www.wireshark.org/docs/relnotes/wireshark-2.6.5.html
https://www.wireshark.org/docs/relnotes/wireshark-2.6.6.html
2019-01-16 11:17:19 +01:00
Jörg Thalheim
d64b173fdf Merge pull request #54001 from jb55/clightning-backports
clightning: 0.6.1 -> 0.6.3 (security, 18.09 backport)
2019-01-16 06:42:04 +00:00
Orivej Desh
7b8eb4948b libjpeg-turbo: fix CVE-2018-20330 (#53950)
(cherry picked from commit b0757da432)
2019-01-16 01:24:58 +00:00
/u/leo60228
28b3fa6eb4 youtube-dl: 2019.01.10 -> 2019.01.16
See #54010

(cherry picked from commit 977fd31463)
2019-01-16 00:26:07 +01:00
Dmitry Kalinkin
5b0d714aad Merge pull request #53940 from ThomasMader/fixDub
[18.09] dub: Fix package build
2019-01-15 16:27:00 -05:00
William Casarin
d0b16e5926 clightning: 0.6.1 -> 0.6.3
Versions before 0.6.3 have a potential coin-stealing DoS vulnerability.

Please upgrade!

backported from commits:

ca67e65182 0.6.2 -> 0.6.3
b0fbc9ed40738176b1539009bcae88f5f63b8eab split native build inputs
3c1d7118e6 0.6.1 -> 0.6.2

Signed-off-by: William Casarin <jb55@jb55.com>
2019-01-15 12:56:49 -08:00
Tad Fisher
d6eccb3a74 jetbrains: 2018.3.1 -> 2018.3.2 2019-01-15 17:01:51 +00:00
Tad Fisher
7bfb238066 jetbrains: 2018.3 -> 2018.3.1 2019-01-15 17:01:46 +00:00
Jason "Don" O'Conal
ec4829afe5 jetbrains-editors: 2018.2 -> 2018.3 2019-01-15 17:01:42 +00:00
Vladimír Čunát
97e0d53d66 Merge branch 'staging-18.09' into release-18.09
Mainly CVE fixes for systemd and openssh
2019-01-15 00:11:44 +01:00
elseym
0b471f71fa sonarr service: add more options to module
(cherry picked from commit 31ad79f432)
2019-01-14 20:37:39 +01:00
elseym
7436c65827 nzbget service: fix preStart script and add more options to module
(cherry picked from commit 44e1aabd02)
2019-01-14 20:37:23 +01:00
Thomas Mader
4b08662e74 dub: Fix package build 2019-01-14 13:48:47 +01:00
Chris Ostrouchov
a46594aeb4 haskellPackages.pandoc-crossref: refactor disable tests for 0.3.2.1
Author acknowleges test failing (change when no longer 0.3.2.1).
https://github.com/lierdakil/pandoc-crossref/issues/199

(cherry picked from commit e1ed5b26c9)
2019-01-14 13:44:27 +01:00
Domen Kožar
e99d03715a Revert "geoclue2 service: add option to run demo agent"
This reverts commit 316669327c.
2019-01-14 11:37:53 +01:00
Domen Kožar
053e0061dc Revert "geoclue2: 2.4.8 → 2.4.10"
This reverts commit a6dab86ada.
2019-01-14 11:36:30 +01:00
Domen Kožar
d37e90a3dd Revert "geoclue: 2.4.10 -> 2.4.12"
This reverts commit 284fc9b449.
2019-01-14 11:36:18 +01:00
worldofpeace
3ee297b992 Revert "geoclue2: add patch to whitelist elementary's agent"
This reverts commit ac61b96d1c.
2019-01-14 11:36:05 +01:00
elseym
e02b9d79f8 nixos/containers: explicitly set link up on host for extraVeths
(cherry picked from commit 8a8bf886b5)
2019-01-14 05:01:54 +01:00
Vladimír Čunát
5c79b4b512 Merge branch 'release-18.09' into staging-18.09 2019-01-13 23:28:35 +01:00
Samuel Dionne-Riel
0352694373 Merge pull request #53877 from tomfitzhenry/cherry-pick-alertmanager-extra-flags
Alertmanager: Allow the definition of extra options on commandline
2019-01-13 16:56:44 -05:00
Andreas Rammhold
fb83c49e04 openssh: apply CVE-2018-20685 patch
And modified to remove the CVS headers

(cherry picked from commit 6d3a653f10)
2019-01-13 22:53:20 +01:00
Jörg Thalheim
015541ea6a Merge pull request #53648 from Mic92/udev-settle
[backport] nixos/systemd-udev-settle: don't restart on upgrades
2019-01-13 21:06:19 +00:00
taku0
ab476f6377 flashplayer-standalone: mark broken
(cherry picked from commit a019087ef4)
crashes, see #53742
2019-01-13 21:54:30 +01:00
taku0
873a87706f flashplayer: 32.0.0.101 -> 32.0.0.114
(cherry picked from commit 9f1ff9976f)
security update, 404 on previous source tarball
2019-01-13 21:54:30 +01:00
Tim Steinbach
2f3144d1f9 linux: 4.19.14 -> 4.19.15
(cherry picked from commit e8d79486ef6bba14c799aab7e33b67b144d9830c)
2019-01-13 15:50:58 -05:00
Tim Steinbach
f10eb33323 linux: 4.14.92 -> 4.14.93
(cherry picked from commit 40920807b65eb9194b2a0b00a273935fcdcd2ad8)
2019-01-13 15:50:57 -05:00
Tim Steinbach
ea5e0ed6d8 linux: 4.9.149 -> 4.9.150
(cherry picked from commit e2455e52fb7e50c4390cca7a54f4607271a9f819)
2019-01-13 15:50:56 -05:00
Tim Steinbach
08619eabcc linux: 4.4.169 -> 4.4.170
(cherry picked from commit 7f0aba4cbdc441eadaa70b989f14412e4cabd55b)
2019-01-13 15:50:55 -05:00
R. RyanTM
f99d014197 duplicity: 0.7.18.1 -> 0.7.18.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/duplicity/versions

(cherry picked from commit a481218df3)
2019-01-13 14:08:22 -05:00
R. RyanTM
3cd286c681 duplicity: 0.7.18 -> 0.7.18.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/duplicity/versions

(cherry picked from commit a12c1aebb7)
2019-01-13 14:08:22 -05:00
Trolli Schmittlauch
8ccb60b9ea Merge branch 'release-18.09' into ktouch-backport 2019-01-13 19:52:58 +01:00
Alberto Berti
ef7c9c4edb Allow the definition of extra options on commandline
I stumbled upon an issue with the Alertmanager that required
an additional comand line option. See https://groups.google.com/forum/#!msg/prometheus-users/-5wd-P13xCI/lGLBHHgnBgAJ

(cherry picked from commit 69e4e4934d)

Without this, Nixos machines on 18.09 that have no private IP addresses cannot start Alertmanager.
https://github.com/NixOS/nixpkgs/pull/46068
https://github.com/NixOS/nixpkgs/pull/45302
2019-01-13 13:33:34 +00:00
Trolli Schmittlauch
61f0e7fddf ktouch: init at 18.08.0
packaging the `ktouch` touch typing tutor. Due to Qt impurities, it
needs to be installed in a profile to find it runtime dependencies.

(cherry picked from commit e93bd1d445)
2019-01-13 14:23:20 +01:00
Trolli Schmittlauch
efbf00b210 qt511.qtdeclarative: fix CMake qmlcachegen path
This package contains several CMake files used for setting up its
provided tools for use in other projects build with CMake.
While packaging *ktouch* I found out that the ${_qt5Core_install_prefix}
variable doesn't expand at all, rendering the path to the `qmlcachegen`
binary useless. As a fix, the command itself is used instead of the path
to the binary.

(cherry picked from commit 4b76c4605e)
2019-01-13 14:21:23 +01:00
Pascal Bach
919e0ada69 youtube-dl: 2019.01.02 -> 2019.01.10
(cherry picked from commit 395dbf0d9a)
2019-01-13 12:42:57 +01:00
Pascal Bach
ab838cfffd youtube-dl: 2018.12.17 -> 2019.01.02
(cherry picked from commit c74054f1d1)
2019-01-13 12:42:48 +01:00
Franz Pletz
a6fc462b59 systemd: 239 -> 239.20190110
Fixes CVE-2018-16864 & CVE-2018-16865 (journald stack clash). Fixes #53755.

Also updates the debian patches to fix CVE-2018-15686. Fixes #52250.

(cherry picked from commit 74a64a8a61)
2019-01-13 10:46:17 +01:00
Florian Klink
001b34abcb Merge pull request #53824 from eadwu/backports/vscode-1.30.2
vscode backport: 1.30.1 -> 1.30.2
2019-01-12 23:41:29 +01:00
Florian Klink
3b7c070663 nextcloud: 15.0.0 -> 15.0.2
(cherry picked from commit 58af931a57)
2019-01-12 23:04:49 +01:00
Samuel Dionne-Riel
4d5935de62 tests: Wait for shell for twice as long (10m)
See #49441 for an earlier attempt, which was subsequently reverted. I am
assuming that doubling the time will be sufficient if the machine is
overloaded since so many of the tests already pass at 5 minutes, while
still not holding back failures for needlessly long.

(cherry picked from commit b28b37eb00)
2019-01-12 12:13:17 -05:00
Will Dietz
2427f19b91 tor: 0.3.4.9 -> 0.3.4.10
https://lists.torproject.org/pipermail/tor-announce/2019-January/000171.html

FWIW, in the ChangeLog (in the source, sorry) it mentions:

  As a reminder, the Tor 0.3.4 series will be supported until 10 June
  2019. Some time between now and then, users should switch to the Tor
  0.3.5 series, which will receive long-term support until at least 1
  Feb 2022.

So we should consider moving to 0.3.5 "soon" :).

(cherry picked from commit 91859c0504)
2019-01-12 14:43:22 +01:00
Edmund Wu
cffe29fcc7 vscode: 1.30.1 -> 1.30.2
(cherry picked from commit 6b80db3f5f)
2019-01-12 08:36:45 -05:00
Thomas Tuegel
ddea42ee1e Merge pull request #53461 from schmittlauch/kcharselect-backport
Kcharselect backport: init at 18.08.0
2019-01-12 06:35:25 -06:00
Andreas Rammhold
80dc91a621 Merge pull request #53838 from andir/18.09/irssi
[18.09] irssi: 1.1.1 -> 1.1.2
2019-01-12 13:31:25 +01:00
Andreas Rammhold
1e4a763013 irssi: 1.1.1 -> 1.1.2
Fixes CVE-2019-5882 [1] and a few minor changes [2].

[1] https://irssi.org/security/html/irssi_sa_2019_01/
[2] https://irssi.org/2019/01/09/irssi-1.1.2-released/

(cherry picked from commit 41ee7073df)
2019-01-12 12:54:17 +01:00
Orivej Desh
48db49741e libjpeg-turbo: specify djpeg rgb-islow-icc-cmp test dependencies
Hydra failure: https://hydra.nixos.org/build/87096374/nixlog/1

Upstream issue: https://github.com/libjpeg-turbo/libjpeg-turbo/pull/321

(cherry picked from commit c55a42359a)
2019-01-12 11:02:10 +01:00
Vladimír Čunát
634191a27e Merge branch 'release-18.09' into staging-18.09 2019-01-12 11:02:04 +01:00
Vladimír Čunát
b3a2846516 boehmgc: avoid mass rebuild due to the parent commit
(cherry picked from commit 414e66f222)
2019-01-11 20:16:08 +01:00
Dmitry Kalinkin
d669a7c634 boehmgc: fix patch url
Fixes: 587467a18e ('github-gentoo-compromized_can...')

(cherry picked from commit ac7f4c0478)
2019-01-11 13:36:51 -05:00
Dmitry Kalinkin
695d517153 adv_cmds: switch url to use https
warning: unable to download 'http://opensource.apple.com/tarballs/adv_cmds/adv_cmds-158.tar.gz': HTTP error 302 (curl error: Couldn't connect to server); retrying in 298 ms
(cherry picked from commit 1a7e65e146)
2019-01-11 13:33:49 -05:00
Vladimír Čunát
2fbd049f1b dns-root-data: the old KSK is dead!
Long live... eh, I hope the new KSK won't live as long as the old one.
Anyway, it doesn't really matter how fast people update this.
https://www.ietf.org/mail-archive/web/dnsop/current/msg24989.html
See RFC 5011 for details of the protocol.

I re-tested validation with both of these files, to be sure.

(cherry picked from commit c4a5565e7a)
2019-01-11 16:48:15 +01:00
Notkea
76cebbcf08 matrix-synapse: 0.34.0 -> 0.34.0.1 (CVE-2019-5885)
(cherry picked from commit 0be693a8df)
2019-01-10 21:06:15 +01:00
Jörg Thalheim
4d22e46dc8 Merge pull request #53747 from bkchr/raspberry_pi_wifi_fix_backport
linux: Adds patch for fixing wifi on raspberry pi
2019-01-10 14:17:01 +00:00
Bastian Köcher
43f4fb3c52 linux: Adds patch for fixing wifi on raspberry pi 2019-01-10 13:51:45 +01:00
Mario Rodas
3bd7f31e85 nodejs-10_x: 10.12.0 -> 10.15.0
(cherry picked from commit 4c917c6961)
2019-01-10 11:36:10 +00:00
Mario Rodas
eeb3ca3aa5 nodejs-8_x: 8.11.4 -> 8.15.0
(cherry picked from commit bf847226ca)
2019-01-10 11:36:09 +00:00
Mario Rodas
9ebc5f6fb5 nodejs-6_x: 6.14.4 -> 6.16.0
(cherry picked from commit 39bec3990e)
2019-01-10 11:35:59 +00:00
R. RyanTM
35a07f6b58 http-parser: 2.8.1 -> 2.9.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/http-parser/versions

(cherry picked from commit 5b9ad12e7b)
2019-01-10 11:33:20 +00:00
R. RyanTM
692c5df6b2 libuv: 1.23.1 -> 1.23.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libuv/versions

(cherry picked from commit 1699401625)
2019-01-10 11:33:19 +00:00
R. RyanTM
1515377c2f libuv: 1.23.0 -> 1.23.1 (#47763)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libuv/versions

(cherry picked from commit ef93155f60)
2019-01-10 11:33:18 +00:00
R. RyanTM
0baa330759 libuv: 1.21.0 -> 1.23.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libuv/versions.

(cherry picked from commit 5a95b0b440)
2019-01-10 11:33:17 +00:00
Jörg Thalheim
d26f11d389 qemu-afl: various cleanups 2019-01-09 19:28:38 -06:00
Robert Scott
abf9ac73cc afl-qemu: update to qemu 2.10.0, as specified by afl 2.52b
refresh patches & configure options directly from afl 2.52b to make
installation as vanilla as possible
2019-01-09 19:28:38 -06:00
Tim Steinbach
7d6a506754 linux: 4.19.13 -> 4.19.14
(cherry picked from commit 20f9b5d10a)
2019-01-09 12:10:20 -05:00
Tim Steinbach
70af21236d linux: 4.14.91 -> 4.14.92
(cherry picked from commit d55b3c9bf0)
2019-01-09 11:24:51 -05:00
Tim Steinbach
39e3248141 linux: 4.9.148 -> 4.9.149
(cherry picked from commit ec3e81beaf)
2019-01-09 11:03:32 -05:00
Florian Klink
3cec2249aa minio-client: 2018-12-05T22-59-07Z -> 2018-12-27T00-37-49Z
(cherry picked from commit fd90297960)
2019-01-09 12:59:03 +01:00
Florian Klink
762e7c1ebf minio: 2018-12-06T01-27-43Z -> 2018-12-27T18-33-08Z
(cherry picked from commit 6c6a899f32)
2019-01-09 12:59:03 +01:00
tilpner
b690ab173b minio-client: 2018-07-31T02-28-53Z -> 2018-12-05T22-59-07Z
(cherry picked from commit 380fce5bc3)
2019-01-09 12:59:02 +01:00
tilpner
ac184eea4a minio: 2018-07-31T02-11-47Z -> 2018-12-06T01-27-43Z
(cherry picked from commit d08187edce)
2019-01-09 12:59:02 +01:00
Jörg Thalheim
23b9f34bc8 Merge pull request #53692 from Mic92/rambox-electron
[backport] rambox: update electron to 3.x
2019-01-09 10:40:14 +00:00
Jörg Thalheim
5838574af8 electron_3: also update arm hashes
(cherry picked from commit 60703db86c)
2019-01-09 09:34:28 +00:00
Jörg Thalheim
6ccdd1607e rambox: downgrade electron to 3.x
(cherry picked from commit fdb87a0fee)
2019-01-09 07:53:55 +00:00
Jörg Thalheim
f9f584c067 electron_3: init at 3.1.0
electron 4 had many breaking changes in their API,
breaking rambox. Since the 3.x version is still maintained,
we can add an older variant.

(cherry picked from commit 66c1f82631)
2019-01-09 07:51:43 +00:00
Frederik Rietdijk
836d1d7c1c lapp: change postgresql version, fixes metrics
(cherry picked from commit a06b90a7dc)
Let's have working metrics on 18.09 as well, again.
2019-01-08 15:24:32 +01:00
Jörg Thalheim
34a1278b81 nixos/systemd-udev-settle: don't restart on upgrades
The idea is that we only need this target during boot,
however there is no point on restarting it on every upgrade.

This hopefully fixes #21954

(cherry picked from commit 0a2c8cc1db)
2019-01-08 12:08:31 +00:00
Silvan Mosberger
876a2c759b Merge pull request #53187 from cdepillabout/add-cpufreq-opts-to-18.09
backport cpufreq opts to 18.09
2019-01-08 05:02:32 +01:00
Dylan Simon
929b7846da stdenv: allow custom stdenv to take crossOverlays
(cherry picked from commit 04beae0979)
2019-01-07 20:55:06 -06:00
Robin Gloster
3582fa3f51 gitlab: 11.6.0 -> 11.6.3
(cherry picked from commit 8fac37db00)
2019-01-07 21:50:22 +01:00
Florian Klink
0a6dac0de9 gitlab-workhorse: 7.1.3 -> 7.6.0
(cherry picked from commit 134a6decae)
2019-01-07 21:50:22 +01:00
Florian Klink
57405cd6c0 gitlab-shell: 8.4.1 -> 8.4.3
(cherry picked from commit ca69c9c2d0)
2019-01-07 21:50:21 +01:00
Florian Klink
46d70e0128 gitaly: 0.129.0 -> 1.7.1
(cherry picked from commit 97e7cf75fa)
2019-01-07 21:50:21 +01:00
Florian Klink
e9ec08f2d0 gitlab-ee: 11.5.5 -> 11.6.0
(cherry picked from commit 4d7ce7a605)
2019-01-07 21:50:20 +01:00
Florian Klink
ebf1a4cf09 gitlab-ce: 11.5.5 -> 11.6.0
(cherry picked from commit 7ea6bde0ae)
2019-01-07 21:50:20 +01:00
Will Dietz
1e3969dfee Merge #52584: llvm7: 7.0.0 -> 7.0.1
(cherry picked from commit 0e393d0da1)
2019-01-07 17:29:56 +01:00
rnhmjoj
37de10b869 searx: fix build error 2019-01-07 13:22:15 +00:00
rnhmjoj
e4576ec7ac searx: 0.14.0 -> 0.15.0
(cherry picked from commit 985bc6ca5a)
2019-01-07 13:22:15 +00:00
rnhmjoj
fc5c11cdab python.pkgs.plone-testing: fix build
(cherry picked from commit bb9edd458e)
2019-01-07 13:22:15 +00:00
Bas van Dijk
cca1e3720f Merge pull request #53561 from LumiGuide/release-18.09-wordpress-plugin-copy
nixos/apache-httpd/wordpress: copy plugins and themes instead of syml…
2019-01-07 13:56:39 +01:00
Falco Peijnenburg
820bb86340 nixos/apache-httpd/wordpress: copy plugins and themes instead of symlinking
Symlinking works for most plugins and themes, but Avada, for instance, fails to
understand the symlink, causing its file path stripping to fail. This results in
requests that look like:

https://example.com/wp-content//nix/store/...plugin/path/some-file.js

Since hard linking directories is not allowed, copying is the next best thing.

(cherry picked from commit 9d2c9157d7)
2019-01-07 13:46:48 +01:00
Andrew Dunham
c2950341d0 uriparser: 0.9.0 -> 0.9.1
(cherry picked from commit 83ba7beb1a)
2019-01-06 19:09:56 -05:00
(cdep)illabout
0232f5cb2d cpufreq: add option for setting the cpu max and min frequencies
This adds a NixOS option for setting the CPU max and min frequencies
with `cpufreq`.  The two options that have been added are:

- `powerManagement.cpufreq.max`
- `powerManagement.cpufreq.min`

(cherry picked from commit b0f10d2d53)
(cherry picked from commit 46ecec8239)
2019-01-06 21:12:48 +09:00
Luke Sandell
591da7cb84 wsjtx: 1.9.1 -> 2.0.0
Old version of FT8 protocol was obsoleted on 2019-01-01.

(cherry picked from commit fada7041a0)
2019-01-06 13:12:24 +01:00
Bas van Dijk
64e1f4b50b Merge pull request #53431 from obsidiansystems/callCaball2nixWithOption-18.09
[18.09] backport haskell-modules: add callCabal2nixWithOptions
2019-01-06 11:54:49 +01:00
Vladimír Čunát
3c832ac5dd obs-studio: restrict meta.platforms
Hydra has been trying to build it on aarch64-linux, but never succeeded:
https://hydra.nixos.org/job/nixos/release-18.09-aarch64/nixpkgs.obs-studio.aarch64-linux/all
(It tries to feed compiler x86-specific options.)
I didn't test i686-linux, due to a transitive dependency not building
(libupnp), but there it might likely work.

(cherry picked from commit a68ae2c205)
2019-01-05 22:57:57 +01:00
Trolli Schmittlauch
7abe13c207 kcharselect: init at 18.08.0
Packaging `kcharselect` because a KDE tool for inserting special
characters is very useful.

(cherry picked from commit ec0eaca0f4)
2019-01-05 20:43:14 +01:00
Trolli Schmittlauch
9836a245c7 add myself to maintainers list
(cherry picked from commit 4fb9712a83)
2019-01-05 20:38:41 +01:00
Elis Hirwing
0a124ba93d gitea: 1.6.2 -> 1.6.3
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.6.3
(cherry picked from commit eeb35be95d)
2019-01-05 14:58:14 +01:00
R. RyanTM
cfbf9f0664 sysstat: 12.1.1 -> 12.1.2 (#52675)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/sysstat/versions

(cherry picked from commit df834ee56d and
fixed conflict)
2019-01-05 14:49:42 +01:00
Drew Hess
326104ee5c haskell-modules: add callCabal2nixWithOptions.
Fixes #44377.

(cherry picked from commit 4abb8be7ab)
2019-01-04 21:55:44 -05:00
Matthew Bauer
cadb6ca5f6 Merge pull request #53028 from Ericson2314/old-gcc-fix
gcc-4.8: fixup cross compilation after merging #15867 for 18.09
2019-01-04 10:33:54 -06:00
José Romildo Malaquias
50debdf133 vivaldi-ffmpeg-codecs: 70.0.3538.77 -> 71.0.3578.98
(cherry picked from commit 3e00845cf0)
2019-01-03 16:11:43 -05:00
José Romildo Malaquias
a839028e50 vivaldi: 2.1.1337.51-1 -> 2.2.1388.37-1
(cherry picked from commit cb1e93b2c0)
2019-01-03 16:11:43 -05:00
Rob Vermaas
995c78064a julia: fix hash for 1.0.3 2019-01-03 19:55:31 +01:00
Jörg Thalheim
7cd6335c96 Merge pull request #53310 from das-g/davmail-homepage
davmail: fix homepage domain name
2019-01-03 14:22:54 +01:00
Bas van Dijk
0043d907ae Merge pull request #53290 from LumiGuide/release-18.09-wordpress
Wordpress: 4.9.1 -> 5.0.2
2019-01-03 11:14:51 +01:00
Falco Peijnenburg
70114c606e Wordpress: 4.9.1 -> 5.0.2
(cherry picked from commit 4dc18cb059)
2019-01-03 10:49:54 +01:00
Rob Vermaas
438b6df1b1 julia: update to 1.0.3 2019-01-03 09:50:01 +01:00
Andrew Dunham
eb0480ad6c stdenv/native: add missing argument
(cherry picked from commit 8efe3df795)
2019-01-02 15:18:12 -06:00
ajs124
8757b2c2f7 sshd: Add restartTrigger for sshd_config
Co-Authored-By: Franz Pletz <fpletz@fnordicwalking.de>
(cherry picked from commit 325e314aae)
2019-01-02 20:37:20 +01:00
Franz Pletz
9d608a6f59 shairport-sync service: fix default arguments
(cherry picked from commit 0ea65cd96c)
2019-01-02 19:18:23 +01:00
Vladimír Čunát
95ca9c8b28 libjpeg(-turbo): patch CVE-2018-19664
Fixes #52972.

(cherry picked from commit f603c1c52c)
2019-01-02 09:53:24 +01:00
Tal Walter
ce5bbb97db dropbox: 55.4.171 -> 63.4.107 (#53062)
Dropbox version 55.4.171 is too old which results in an error when doing
the initial account linking.

(cherry picked from commit d5dbfad91a)
Reason: To have a usable dropbox package for the next release.
2019-01-02 02:02:25 -05:00
Tim Steinbach
d4146e8c9d sbt: 1.2.7 -> 1.2.8
(cherry picked from commit 711a74c65a)
2019-01-01 12:39:59 -05:00
CrazedProgrammer
42f4123b59 urn: 0.7.1 -> 0.7.2
(cherry picked from commit cc2573028b)
Reason: Bugfix update.
2018-12-31 17:19:58 -05:00
Mario Rodas
0396345b79 nodejs-8_x: 8.12.0 -> 8.14.1
(cherry picked from commit f27ee10a9e)
2018-12-30 21:22:33 -05:00
adisbladis
5a056ea90c nodejs-8_x: 8.11.4 -> 8.12.0
(cherry picked from commit 2e94003c9c)
2018-12-30 21:22:32 -05:00
Mario Rodas
266f1138eb nodejs-6_x: 6.14.4 -> 6.15.1
(cherry picked from commit 75b894af0f)
2018-12-30 21:22:32 -05:00
Tim Steinbach
30a2654e74 linux: 4.19.12 -> 4.19.13
(cherry picked from commit b3492bd25e8c62264f09f3db37224cf75855d11e)
2018-12-30 09:58:27 -05:00
Tim Steinbach
92986c6f78 linux: 4.14.90 -> 4.14.91
(cherry picked from commit 871d5bd0adc8a8bfa6f31a5d00e6b20d3734991a)
2018-12-30 09:58:17 -05:00
Tim Steinbach
ee66ecd48c linux: 4.9.147 -> 4.9.148
(cherry picked from commit 57a3e2621ce51ed3549b0d1fdb0b6fd25717776f)
2018-12-30 09:58:05 -05:00
Vladimír Čunát
e8a72dc747 exiv2: 0.26.2018.06.09 -> 0.26.2018.12.30 (security)
The bump includes all the patches we had and adds some more,
e.g. for CVE-2017-1000127.  I don't think all CVEs get fixed by that,
but 0.27 would currently break too many packages; /cc #50496.

(cherry picked from commit bf7d1b538d)
2018-12-30 11:58:34 +01:00
Domen Kožar
0a8f35c998 add elm2nix
(cherry picked from commit 324f018fb5)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-29 19:00:38 +00:00
John Q Crosscompiler
e2279f8b14 gcc-4.8: fixup cross compilation after merging #15867
Taken from https://pastebin.com/my8gcybx given to me on IRC.
2018-12-29 03:04:25 -05:00
R. RyanTM
2df6b5825f matomo: 3.6.1 -> 3.7.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/matomo/versions

(cherry picked from commit 687567efd0)
2018-12-28 15:10:29 -05:00
Timo Kaufmann
7dae9a4ddd fflas-ffpack: add patch to fix flaky test (#53006)
(cherry picked from commit ee1f54dbdbc08a244dd45cf013db022299c07b66)
2018-12-28 13:48:57 +01:00
Frederik Rietdijk
76aafbf4bf python.pkgs.pytest_xdist: pytest-forked is needed during runtime, fixes #45060
(cherry picked from commit 364c59dd94)
2018-12-27 15:34:05 +01:00
Mario Rodas
32326f5de3 python37: fix darwin build
Remove issue24658 patch because is already fixed and backported to
Python 3.7 178d1c0777

(cherry picked from commit 1764870813)
2018-12-27 14:11:35 +01:00
Mario Rodas
838f18e1fd python36: fix darwin build
Remove issue24658 patch because is already fixed and backported to
Python 3.6 a5ebc205be

(cherry picked from commit 31680c54e1)
2018-12-27 14:11:34 +01:00
Timo Kaufmann
d4e1d3dbe4 nauty: 26r10 -> 26r11 (#52960)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nauty/versions

(cherry picked from commit 98092f7a67)
2018-12-27 11:54:06 +01:00
Vincent Ambo
5c48901a72 nixos/journaldriver: import module in top-level module list
Imports the `journaldriver` module into the top-level NixOS module
list to make it usable without extra work.

This went unnoticed in #42134 (mostly because my setup imports modules
explicitly from pinned versions).

Fixes #50390

(cherry picked from commit d5ea09758d)
2018-12-27 11:48:44 +01:00
Vladimír Čunát
33000fe7ca Merge branch 'staging-18.09' into release-18.09
Let's lump this rebuild together with the python updates.
2018-12-26 18:21:39 +01:00
Frederik Rietdijk
52571d750d python36: 3.6.7 -> 3.6.8
(cherry picked from commit 741e00fd10)
2018-12-26 09:44:13 +01:00
Frederik Rietdijk
0312ef11d6 python37: 3.7.1 -> 3.7.2
(cherry picked from commit 552d8a70d4)
2018-12-26 09:44:13 +01:00
Alexandre Peyroux
c840631fe2 masterpdfeditor: 5.1.60 -> 5.2.20
(cherry picked from commit c1e10bd258)
2018-12-26 00:13:15 +01:00
Pascal Bach
81d1a315f7 gitlab-runner: 11.5.0 -> 11.6.0
(cherry picked from commit 5b61578924)
2018-12-25 15:34:03 +01:00
Florian Klink
337687ff3e gitlab-ee: 11.5.4 -> 11.5.5
CVE-2018-20229, https://about.gitlab.com/2018/12/20/critical-security-release-gitlab-11-dot-5-dot-5-released/

(cherry picked from commit 236cb26954)
2018-12-25 15:29:09 +01:00
Florian Klink
6869be452d gitlab-ce: 11.5.4 -> 11.5.5
CVE-2018-20229, https://about.gitlab.com/2018/12/20/critical-security-release-gitlab-11-dot-5-dot-5-released/

(cherry picked from commit 6397fd3e71)
2018-12-25 15:29:09 +01:00
Meghea Iulian
928ff62213 brightnessctl: fix udev, cleanup & meta update 2018-12-25 15:01:19 +01:00
R. RyanTM
9b2e89775e brightnessctl: 0.3.2 -> 0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/brightnessctl/versions
2018-12-25 15:01:12 +01:00
Alexandre Peyroux
0267a5a33e masterpdfeditor: 5.1.36 -> 5.1.60
(cherry picked from commit 27298d378f)
2018-12-25 14:31:46 +01:00
Alexandre Peyroux
79c8e369bb masterpdfeditor: use qtbase.qtPluginPrefix #44047
(cherry picked from commit 63b897a473)
2018-12-25 14:31:46 +01:00
Alexandre Peyroux
c5dee01627 masterpdfeditor: 5.1.12 -> 5.1.36
(cherry picked from commit 899b7663b0)
2018-12-25 14:31:46 +01:00
Robert Schütz
16d85e5a1d python.pkgs.django_1_8: 1.8.18 -> 1.8.19
This fixes CVE-2018-7536 and CVE-2018-7537:
https://www.djangoproject.com/weblog/2018/mar/06/security-releases/

cc https://github.com/NixOS/nixpkgs/issues/52679

(cherry picked from commit 461552526b)
2018-12-24 11:27:25 +01:00
Chris Ostrouchov
7f03676341 pythonPackages.django_1_8: refactor move to python-modules
(cherry picked from commit 4906ff50a9)
2018-12-24 11:25:29 +01:00
taku0
b9fa31cea0 licenses: add GPLv2.0 only + classpath exception
(cherry picked from commit 66124646ee)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
Domen Kožar
7e0744c594 jre: use adoptopenjdk-jre-bin on aarch
(cherry picked from commit 2088ae10a3)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
Benno Fünfstück
352bb0c0d9 adoptopenjdk-bin: disable openj9 jre for mac due to missing upstream
(cherry picked from commit 6972c433ab)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
Robert Schütz
f90a5979ee adoptopenjdk-bin: use python-withPackages for shebang
Co-Authored-By: bennofs <benno.fuenfstueck@gmail.com>
(cherry picked from commit 682d1befd9)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
Benno Fünfstück
c3e15f7da3 adoptopenjdk: autogenerate sources + add support for aarch64
(cherry picked from commit 5bbfc0cc37)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
taku0
5af9e75983 adoptopenjdk-openj9-bin: 11 -> 11.0.1
(cherry picked from commit 3cfa035a99)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
taku0
b75b9f528e adoptopenjdk-bin: support darwin platform
(cherry picked from commit 7c3dd045ce)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
taku0
51bc964cbf adoptopenjdk-bin: init at 11
(cherry picked from commit 8faebb17ac)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-22 15:37:52 +00:00
Jörg Thalheim
fffd24d758 Merge pull request #52678 from risicle/ris-cf-cli-platforms-r18.09
[r18.09 backport] cloudfoundry-cli: fix build on multiple platforms, notably darwin, to produce correct binary for target…
2018-12-22 14:56:31 +01:00
Robert Scott
e67f3aeb3a cloudfoundry-cli: fix build on multiple platforms, notably darwin, to produce correct binary for target
cherry-picked from commit 61fad2cdce
2018-12-22 12:38:34 +00:00
Tim Steinbach
11c9922a7d kernel-config: CIFS_POSIX no longer exists
(cherry picked from commit 98ac5710bd)
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6e785302dad
2018-12-22 09:10:24 +01:00
Franz Pletz
93468b34f3 gitea: fix version in app
(cherry picked from commit 12e57cbb61)
2018-12-22 04:34:06 +01:00
Justin Humm
50021740bc qutebrowser: fix pdfjs
Pdfjs was downloaded in two derivations, where one is sufficient.

Also there was allegedly a typo in the download URL.

(cherry picked from commit 0be7bfe1bf)
2018-12-21 22:21:25 -05:00
Elis Hirwing
b29f64a70f gitea: 1.6.0 -> 1.6.2
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.6.1
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.6.2
(cherry picked from commit a87fd222c8)
2018-12-22 03:24:30 +01:00
Henry
8b34b68806 gitea: 1.5.3 -> 1.6.0
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.6.0
(cherry picked from commit 595c1e0a36)
2018-12-22 03:15:32 +01:00
Vladimír Čunát
e55e8ad8b2 Merge #52598: firefox: 63.0.3 -> 64.0 2018-12-21 21:44:38 +01:00
Vladimír Čunát
bdf88aa7e1 Merge #50249: libjpeg-turbo: 1.5.3 -> 2.0.1
(cherry picked from commit 834e7c4f0b)
Fixes CVE-2018-11813.
I see no issues with this reported for staging/master.
2018-12-21 16:25:49 +01:00
Tim Steinbach
679f6bb115 linux: 4.19.11 -> 4.19.12
(cherry picked from commit af6c117fac)
2018-12-21 09:13:19 -05:00
Tim Steinbach
e2b01088dc linux: 4.14.89 -> 4.14.90
(cherry picked from commit dea57f15e9)
2018-12-21 09:13:18 -05:00
Tim Steinbach
cc9ae38c55 linux: 4.9.146 -> 4.9.147
(cherry picked from commit a5f447e16a)
2018-12-21 09:13:18 -05:00
Tim Steinbach
6b45437aee linux: 4.4.168 -> 4.4.169
(cherry picked from commit 54ce2e016b)
2018-12-21 09:13:18 -05:00
Bjørn Forsman
8c6ab3c72f nixos/jenkins-job-builder: add accessTokenFile option
The new option allows storing the secret access token outside the world
readable Nix store.

(cherry picked from commit bb94d419fb)
2018-12-21 09:31:57 +01:00
Bjørn Forsman
7e621a2118 nixos/jenkins-job-builder: stop reloadScript on error
Currently there are two calls to curl in the reloadScript, neither which
check for errors. If something is misconfigured (like wrong authToken),
the only trace that something wrong happened is this log message:

  Asking Jenkins to reload config
  <h1>Bad Message 400</h1><pre>reason: Illegal character VCHAR='<'</pre>

The service isn't marked as failed, so it's easy to miss.

Fix it by passing --fail to curl.

While at it:
* Add $curl_opts and $jenkins_url variables to keep the curl command
  lines DRY.
* Add --show-error to curl to show short error message explanation when
  things go wrong (like HTTP 401 error).
* Lower-case the $CRUMB variable as upper case is for exported environment
  variables.

The new behaviour, when having wrong accessToken:

  Asking Jenkins to reload config
  curl: (22) The requested URL returned error: 401

And the service is clearly marked as failed in `systemctl --failed`.

(cherry picked from commit 8ebfd5c45c)
2018-12-21 09:31:46 +01:00
Philipp Middendorf
948c9f4b3c liquibase: fix missing dependencies
(cherry picked from commit 7d270d993b)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2018-12-21 02:21:06 +01:00
Andreas Rammhold
232f20d503 firefox: 63.0.3 -> 64.0
(cherry picked from commit d8cde6882cd91fd4e1743b52cbb3c7cf58b87213)
2018-12-20 20:52:32 -01:00
Andreas Rammhold
9a9a7cc1c3 firefox: updated common.nix to support ffx64
(cherry picked from commit 93a9e626d00880eca43f04d2894dc6f3b449d4a1)
2018-12-20 20:52:32 -01:00
Herwig Hochleitner
b7cfe953e8 chromium: 71.0.3578.80 -> 71.0.3578.98
CVE-2018-17481

(cherry picked from commit 327f7da260)
2018-12-20 21:31:33 +01:00
Herwig Hochleitner
aa89b5fd56 chromium/plugins: specify gcc instead of stdenv.cc
(cherry picked from commit 7eea24db5d)
2018-12-20 21:27:15 +01:00
volth
3852c84087 chromium: build with clang
(cherry picked from commit d2daf0dd6f)
2018-12-20 21:27:15 +01:00
Jörg Thalheim
345c088139 Merge pull request #52565 from ackien/git-secret-gawk-backport
[18.09] git-secret: Backport gawk fix
2018-12-20 18:45:02 +01:00
John Ericson
97940bf6c5 Merge pull request #52559 from Ericson2314/openspades-darwin
openspades: Fix Darwin build, for 18.09
2018-12-20 12:18:17 -05:00
Tim Steinbach
be9872621c linux: 4.19.10 -> 4.19.11
(cherry picked from commit 1b84b9f725)
2018-12-20 10:47:41 -05:00
Sarah Brofeldt
6a7dea9330 Merge pull request #52530 from johanot/kubernetes-1.11.6
kubernetes: 1.11.5 -> 1.11.6
2018-12-20 13:15:30 +01:00
Aiken Cairncross
7c9bd9692d git-secret: Add gawk to wrapper
Cherry-picked from 0fc60df
2018-12-20 11:07:30 +00:00
Peter Simons
34a637ca92 ghc: add new compiler version 8.6.3
(cherry picked from commit c37ae1dcf6)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-20 10:28:30 +00:00
Lengyel Balazs
fbb7dbdb95 firmware-linux-nonfree: 20181017 -> 20181213
(cherry picked from commit 374a672424)

Fixes #52430.
2018-12-20 04:40:10 +01:00
Will Dietz
7cf770ca93 linux-firmware: 2018-08-25 -> 2018-10-17
(cherry picked from commit 788d324205)
2018-12-20 04:37:39 +01:00
Johan Thomsen
efdc3d51bc kubernetes: 1.11.5 -> 1.11.6 2018-12-19 17:07:29 +01:00
Amine Chikhaoui
9bacb8289b networkmanagerapplet: 1.8.16 -> 1.8.18
(#50338)

(cherry picked from commit e1ad1a0aa2)
2018-12-19 13:55:16 +01:00
Symphorien Gibol
de20e95222 brlaser: fix install dir
Fixes #49092

(cherry picked from commit 26ee8d6479)
2018-12-19 11:02:38 +01:00
Edmund Wu
a3eba49f7f vscode: 1.30.0 -> 1.30.1
(cherry picked from commit 4b0e96f3b7ad55f2029ad6654f9ca847e3e5ea6d)
2018-12-18 20:45:18 -05:00
Edmund Wu
b273957530 vscode-extensions.WakaTime.vscode-wakatime: 1.2.4 -> 1.2.5
(cherry picked from commit 59b30d9aa7d1064b0ea6e801dfe895bd11a3df65)
2018-12-18 20:45:18 -05:00
Edmund Wu
82ae6ee36f vscode-extensions.ms-python.python: 2018.11.0 -> 2018.12.1
(cherry picked from commit 8ac14eb0bbabd1db42c372fdaa6e21c48484860e)
2018-12-18 20:45:18 -05:00
Edmund Wu
a5bedfb3df vscode-with-extensions: only add flag if extensions > 0
(cherry picked from commit df8dccfdcf)
2018-12-18 20:45:18 -05:00
John Ericson
02f47920b5 Merge pull request #52500 from obsidiansystems/haskell-servant-cross
servant: Sphinx is a build-time dependency for 18.09
2018-12-18 17:44:52 -05:00
Pablo Delgado Krämer
5fe7934ce5 nixos/oh-my-zsh: fix wrong manual information
Manual still refers to 'programs.ohMyZsh' although it should be 'programs.zsh.ohMyZsh'.

(cherry picked from commit 685c4f5608)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2018-12-18 23:22:26 +01:00
Renaud
e9a1274f3a Merge pull request #51849 from srhb/backport-zoom-2.6
Backport: zoom-us: 2.5.146186.1130 -> 2.6.146750.1204
2018-12-18 16:28:21 +01:00
Tim Steinbach
0e84e7dfd7 linux: 4.4.167 -> 4.4.168
(cherry picked from commit e29ebd9e51d20f132c41fb8f641aaf6a5bbc5cd5)
2018-12-18 09:13:07 -05:00
Linus Heckemann
33a0a37a11 Merge pull request #52482 from mayflower/fswatch-backport
[18.09] Fswatch backports
2018-12-18 14:38:52 +01:00
Linus Heckemann
d6104293d7 Merge pull request #52474 from mayflower/gopass-backport
gopass: 1.8.2 -> 1.8.3
2018-12-18 14:04:18 +01:00
Linus Heckemann
b3b01efca2 Merge pull request #52473 from mayflower/hwloc-bump
[18.09] hwloc: 1.11.10 -> 1.11.12
2018-12-18 14:03:27 +01:00
R. RyanTM
7cf11fc0f7 fswatch: 1.13.0 -> 1.14.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/fswatch/versions

(cherry picked from commit 2cbaaa55d5)
2018-12-18 13:55:02 +01:00
R. RyanTM
aceb0f90d3 fswatch: 1.12.0 -> 1.13.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/fswatch/versions

(cherry picked from commit e7c2c5784f)
2018-12-18 13:55:02 +01:00
Linus Heckemann
185a2851a2 Merge pull request #52478 from mayflower/haproxy-backport
[18.09] Haproxy backports
2018-12-18 13:27:08 +01:00
R. RyanTM
ce6719d3e6 haproxy: 1.8.14 -> 1.8.15
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/haproxy/versions

(cherry picked from commit 44482c54ff)
2018-12-18 13:22:24 +01:00
R. RyanTM
49aabfa88d haproxy: 1.8.13 -> 1.8.14
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/haproxy/versions

(cherry picked from commit 365dad81f8)
2018-12-18 13:22:24 +01:00
Mario Rodas
d3f7773f43 gopass: 1.8.2 -> 1.8.3
(cherry picked from commit c32752fb12)
2018-12-18 12:56:31 +01:00
Linus Heckemann
d34d2b1958 hwloc: 1.11.10 -> 1.11.12
additionally, refactor version string and download link to make it
comatible with automatic updates as in
ac85a1ec47 (thanks @markuskowa)
2018-12-18 12:45:39 +01:00
Matthew Bauer
2a0f4d2d50 Merge pull request #52252 from Ericson2314/fix-darwin-bootstrap-cmds-for-18.09
treewide: Use "buildPackages" darwin for bootstrap_cmd for 18.09
2018-12-17 22:53:18 -06:00
Pavel Goran
19fb949471 nixos/mysql: support package=mysql57
(cherry picked from commit 21e9c35f5f)

Fixes #25418.
2018-12-18 00:50:56 +01:00
Pascal Bach
4f69b3ced6 youtube-dl: 2018.11.18 -> 2018.12.17
(cherry picked from commit 28e9a1eef1)
2018-12-18 00:10:15 +01:00
Franz Pletz
fa3dabe232 youtubeDL: 2018.11.07 -> 2018.11.18
(cherry picked from commit c826315257)
2018-12-18 00:10:14 +01:00
Jörg Thalheim
76ac1b6f30 go_1_11: update outdated meta.branch
(cherry picked from commit a4f37346e7)
2018-12-17 19:31:11 +01:00
Benjamin Herr
3e10c5bf26 go: 1.11.2 -> 1.11.4
(cherry picked from commit ce2d980be8)
2018-12-17 19:30:26 +01:00
Jaka Hudoklin
41f74251b9 go_1_11: 1.11 -> 1.11.2f
fixes #50180

(cherry picked from commit 734bd4ca54)
2018-12-17 19:30:19 +01:00
Benjamin Herr
d0c3afbf50 go_1_10: 1.10.3 -> 1.10.7
(cherry picked from commit 3cb3a24ce9)
2018-12-17 19:29:30 +01:00
Franz Pletz
8eaff5a744 postgresql: branch 9.3 is not maintained anymore
See https://www.postgresql.org/support/versioning/.

(cherry picked from commit 61bd0e851e)
2018-12-17 16:38:41 +01:00
R. RyanTM
eeb072c21e graphicsmagick: 1.3.30 -> 1.3.31
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/graphicsmagick/versions

(cherry picked from commit 6d7e94aa1e)
2018-12-17 16:37:25 +01:00
taku0
f9954722c6 thunderbird-bin: 60.3.2 -> 60.3.3
(cherry picked from commit f9d6dcecd7)
2018-12-17 16:37:25 +01:00
taku0
2eae458684 thunderbird: 60.3.2 -> 60.3.3
(cherry picked from commit 5698d7888e)
2018-12-17 16:37:25 +01:00
Shea Levy
a580755f64 haskell generic builder: Add flag to allow inconsistent dependencies.
(cherry picked from commit 30fb5b0dcf)
2018-12-17 09:26:48 -05:00
Tim Steinbach
82d26ac69b linux: 4.19.9 -> 4.19.10
(cherry picked from commit ed5920e6ad35d86d0bed03749b90af3d67092602)
2018-12-17 09:19:58 -05:00
Tim Steinbach
5bfaa294ea linux: 4.14.88 -> 4.14.89
(cherry picked from commit 56fcbb2f7882445d77bd5ba60bd11f22f743c540)
2018-12-17 09:19:58 -05:00
Tim Steinbach
3758dc9f3d linux: 4.9.145 -> 4.9.146
(cherry picked from commit 2e749ccd868d3cf38e61aa6e98a2641cf8dad432)
2018-12-17 09:19:57 -05:00
Linus Heckemann
c106bb5092 Merge pull request #52435 from primeos/signal-desktop-backport
[18.09] signal-desktop backport
2018-12-17 15:16:43 +01:00
Michael Weiss
a136eba3de signal-desktop: 1.18.0 -> 1.18.1
(cherry picked from commit b3fb2d5c1c)
2018-12-17 14:58:23 +01:00
Michael Weiss
613042f247 signal-desktop: 1.17.3 -> 1.18.0
(cherry picked from commit a6167c3311)
2018-12-17 14:58:23 +01:00
Michael Weiss
a3317be35f signal-desktop: 1.17.2 -> 1.17.3
(cherry picked from commit e075748769)
2018-12-17 14:58:22 +01:00
Franz Pletz
b9d7b24d2c libssh: 0.7.6 -> 0.7.7
Bugfix release for the 0.7 branch to fix regressions from the security
fixes.

See https://www.libssh.org/2018/10/29/libssh-0-8-5-and-libssh-0-7-7/.
2018-12-17 02:19:07 +01:00
Mario Rodas
600c6c66ec libvncserver: add CVE-2018-7225 patch
(cherry picked from commit 03fddb139e)
2018-12-17 02:04:59 +01:00
Franz Pletz
1b0da4da0f prosody: 0.10.2 -> 0.10.3 2018-12-17 01:15:42 +01:00
Florian Klink
bb0a7fc892 Merge pull request #52410 from flokli/18.09-gitlab-11.5.4
[18.09] gitlab: 11.5.1 -> 11.5.4
2018-12-17 00:42:24 +01:00
Florian Klink
3adcfd4199 gitlab: run test with 4096 bits if on 64bit, else the the maximum for 32bit
(cherry picked from commit c788367edaf5fa8ac24e60d127851a360fe2c134)
2018-12-16 23:57:30 +01:00
Florian Klink
2a91e6b1a1 gitlab-ee: 11.5.1 -> 11.5.4
(cherry picked from commit 0a87bdecd554dafd0ac6dbd5a41fc14129afbba7)
2018-12-16 23:57:30 +01:00
Florian Klink
d40c6b224e gitlab-ce: 11.5.1 -> 11.5.4
(cherry picked from commit 88fc01b0e6d03d77c4b028a2c8d20c722e28566c)
2018-12-16 23:57:29 +01:00
Jörg Thalheim
f0b6661d19 Merge pull request #52043 from worldofpeace/vscode/backport
vscode backports
2018-12-16 22:15:08 +00:00
R. RyanTM
2b0b12223f nsd: 4.1.25 -> 4.1.26
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nsd/versions
2018-12-16 20:01:08 +01:00
R. RyanTM
81dfe93af2 nsd: 4.1.24 -> 4.1.25
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/nsd/versions
2018-12-16 20:00:54 +01:00
R. RyanTM
de9cec4809 cryptsetup: 2.0.5 -> 2.0.6
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/cryptsetup/versions

(cherry picked from commit 7f61a7814e)
2018-12-16 18:44:48 +01:00
R. RyanTM
aa6d82d9f5 cryptsetup: 2.0.4 -> 2.0.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/cryptsetup/versions

(cherry picked from commit f3545ef3c8)
2018-12-16 18:44:48 +01:00
Maximilian Bosch
7a01e146cb nixos/nextcloud: add basic module documentation and warn about current upgrading issues
Part of #49783. NextCloud tracks in its `config.php` the application's
state which makes it hard for the module to modify configurations during
upgrades.

It will take time until the issue is properly fixed, therefore we
decided to warn about this in the manual.

This PR addresses two things:

* Adding a basic example for nextcloud. I figured it to be helpful to
  add some basic usage instructions when adding a new manual entry.
  Advanced documentation may follow later.

  For now this document actively links to the service options, so users
  are guided to the remaining options that can be helpful in certain
  cases.

* Add a warning about upgrades and manual changes in
  `/var/lib/nextcloud`. This will be fixed in the future, but it's
  definetely helpful to document the current issues in the manual (as
  proposed in https://github.com/NixOS/nixpkgs/issues/49783#issuecomment-439691127).

(cherry picked from commit 216a954540)
2018-12-16 16:00:45 +01:00
Florian Klink
bf91596709 nextcloud: 14.0.4 -> 15.0.0
(cherry picked from commit 66060d3bb0)
2018-12-16 15:01:58 +01:00
Maximilian Bosch
e32ea11241 Merge pull request #52355 from flokli/18.09-nextcloud-client-2.5.1
[18.09] nextcloud-client: 2.3.3 -> 2.5.1
2018-12-16 14:32:03 +01:00
Florian Klink
893cf309d1 nextcloud-client: 2.5.0 -> 2.5.1
(cherry picked from commit f5c9ceaf43)
2018-12-16 13:38:18 +01:00
Maximilian Bosch
1fb886d9cf nextcloud-client: 2.3.3 -> 2.5.0 (#50463)
Updates to the latest version of the desktop client available. Tested
the config migration from `nextcloud-client` 2.3.3 with a Nextcloud
14.0.3 instance (hosted using `services.nextcloud`).

Additionally the derivation required the following changes:

* Dropped `Qt5Sql` patch: this has been fixed upstream and isn't needed
  anymore (furthermore their CMake structure has changed and the patch
  wouldn't apply anymore on 2.5.0).

* Moved to a new upstream repository (nextcloud/desktop), kept
  `fetchgit` to properly fetch submodules.

* Added OpenSSL 1.1 integration: `libsync` (the syncing provided by this
  package) requires 1.1, furthermore the linking flags had to be fixed
  manually by passing `NIX_LDFLAGS` to the derivation.

Furthermore I moved the support for a Gnome3 keyring into its own
wrapper to avoid a full rebuild of the package whenever you alter
`withGnomeKeyring` in an override expressions.

It's still possible to enable keyring (now without recompile) like this:

```
nextcloud-client.override { withGnomeKeyring = true; }
```

To override the derivation itself you now have to use
`nextcloud-client-unwrapped`:

```
nextcloud-client-unwrapped.overrideAttrs (old: {
   src = yoursrc;
})
```

(cherry picked from commit e75f922e91)
2018-12-16 13:38:18 +01:00
Will Dietz
d683610bda sqlite: 3.25.3 -> 3.26.0
(cherry picked from commit 2d7c6d088e)
2018-12-15 22:12:11 +00:00
John Ericson
1211edbbc9 Merge remote-tracking branch 'upstream/release-18.09' into fix-darwin-bootstrap-cmds-for-18.09 2018-12-15 12:48:31 -05:00
Vladimír Čunát
e48c8832ed Merge branch 'staging-18.09' into release-18.09 2018-12-15 11:26:29 +01:00
Rickard Nilsson
345993c57c mosquitto: 1.5.3 -> 1.5.4
Remove patch that has been merged upstrem.

(cherry picked from commit 2473754ad2)
2018-12-15 08:51:12 +01:00
Rickard Nilsson
61d76f8881 nixos/nm-setup-hostsdir: RemainAfterExist -> RemainAfterExit
(cherry picked from commit b20fcce195)
2018-12-15 08:34:30 +01:00
Edmund Wu
f227f13119 vscode-extensions.WakaTime.vscode-wakatime: 1.2.3 -> 1.2.4
(cherry picked from commit 70092febc4)
2018-12-14 08:08:43 -05:00
Edmund Wu
18333ba716 vscode-extensions.ms-python.python: 2018.10.1 -> 2018.11.0
(cherry picked from commit 7369c3a06d)
2018-12-14 08:08:32 -05:00
Edmund Wu
9c853c7121 vscode-extensions.WakaTime.vscode-wakatime: init at 1.2.3
(cherry picked from commit f7b05cafff)
2018-12-14 08:05:57 -05:00
Edmund Wu
7b6192b047 vscode-extensions.ms-vscode.cpptools: 0.19.0 -> 0.20.1
(cherry picked from commit 728d2a2ac7)
2018-12-14 08:05:26 -05:00
Edmund Wu
d31a5dae7a vscode-extensions.ms-python.python: 2018.9.1 -> 2018.10.1
(cherry picked from commit c4cb982772)
2018-12-14 08:05:15 -05:00
Edmund Wu
b02c1772de vscode-extensions.ms-vscode.cpptools: use mono 5 (#49489)
(cherry picked from commit f8ef8bf469)
2018-12-14 08:05:04 -05:00
Edmund Wu
eb3f66a987 vscode-extensions.ms-python.python: 2018.8.0 -> 2018.9.1 (#48849)
(cherry picked from commit a53a3bf1ee)
2018-12-14 08:01:16 -05:00
Edmund Wu
3fb0d35e96 vscode-extensions.ms-vscode.cpptools: 0.17.6 -> 0.19.0 (#47573)
(cherry picked from commit 4c95508641)
2018-12-14 08:01:07 -05:00
Edmund Wu
c58f8c000b vscode-extensions.ms-python.python: 2018.7.0 -> 2018.8.0 (#47572)
(cherry picked from commit 285800d537)
2018-12-14 08:00:54 -05:00
Moritz Ulrich
63e94feb23 vscode: 1.29.1 -> 1.30.0
(cherry picked from commit 38d4c09096)
2018-12-14 07:57:52 -05:00
Edmund Wu
8999332778 vscode,vscode-extensions: fix insiders build
(cherry picked from commit d41e868e02)
2018-12-14 07:57:39 -05:00
Patrick Hilhorst
eaa89f1f72 vscode: 1.29.0 -> 1.29.1 (#50462)
(cherry picked from commit 874b017564)
2018-12-14 07:56:43 -05:00
Edmund Wu
ca10a0e943 vscode: 1.28.2 -> 1.29.0
(cherry picked from commit a23e3b0505)
2018-12-14 07:55:25 -05:00
Joachim Fasting
7e88992a8c tor-browser-bundle-bin: 8.0.3 -> 8.0.4
(cherry picked from commit 1ba77eeb22)
2018-12-14 12:54:27 +01:00
Samuel Dionne-Riel
ea863cd334 Revert "pkgsStatic: Add warning saying this is a provisional backport"
This reverts commit 3c1049fbef.

This broke tarball on release-18.09

  * https://hydra.nixos.org/build/85858044/
  * https://hydra.nixos.org/build/85858044/nixlog/1
2018-12-13 22:34:58 -05:00
R. RyanTM
d6d3a1299f davfs2: 1.5.3 -> 1.5.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/davfs2/versions

(cherry picked from commit c5f7204aff)
2018-12-13 21:01:34 -05:00
John Ericson
340c0c4361 Merge pull request #51969 from vaibhavsagar/fix-static-lz4
lz4: Fix pkgsStatic build for 18.09
2018-12-13 18:28:01 -05:00
John Ericson
91865b213f Merge branch 'fix-portable-libsystem-for-18.09' into release-18.09 2018-12-13 17:49:46 -05:00
John Ericson
62c609930c Merge pull request #51957 from obsidiansystems/crossOverlays-for-18.09
pkgsStatic for 18.09
2018-12-13 17:31:42 -05:00
Elis Hirwing
7a37ddc0d8 nixos/lightdm: Fix spelling of option in docs
(cherry picked from commit 6fa51fe5cf)
2018-12-13 21:45:25 +00:00
Elis Hirwing
5c5607f9c2 nixos/sddm: Fix spelling of option in docs
(cherry picked from commit c974813b92)
2018-12-13 21:45:25 +00:00
Guillaume Bouchard
fbfe10f0a1 Fix english in stdenv.xml
(cherry picked from commit d5c931992d)
2018-12-13 21:34:10 +00:00
John Ericson
3c1049fbef pkgsStatic: Add warning saying this is a provisional backport 2018-12-13 19:17:55 +00:00
Tim Steinbach
5e425e22a7 linux: 4.19.8 -> 4.19.9
(cherry picked from commit 5a15ab7b5d)
2018-12-13 07:01:25 -05:00
Tim Steinbach
99315692f6 linux: 4.14.87 -> 4.14.88
(cherry picked from commit f335fa6d74)
2018-12-13 07:01:25 -05:00
Tim Steinbach
de113e0352 linux: 4.9.144 -> 4.9.145
(cherry picked from commit 1f92bdcd94)
2018-12-13 07:01:25 -05:00
Tim Steinbach
b01a9058cc linux: 4.4.166 -> 4.4.167
(cherry picked from commit adf8cdd67d)
2018-12-13 07:01:24 -05:00
Eelco Dolstra
25d0880528 Revert "resolvconf.conf: Remove forced NSCD service restart"
This reverts commit d8c16bc54a. It
breaks nscd invalidation when the network configuration changes.

(cherry picked from commit 09cbfea2ed)
2018-12-12 23:16:50 +00:00
Andreas Rammhold
d15b9bd990 firefox-esr-60: 60.3.0esr -> 60.4.0esr
See #51863.

(cherry picked from commit d16d0b3762)
2018-12-12 20:35:29 +01:00
Will Dietz
ea9cfed73b Merge #51365: nss: 3.40 -> 3.40.1 (security)
(cherry picked from commit fb137c1bcc)
This is a patch release to fix CVE-2018-12404.
2018-12-12 13:16:04 +01:00
Andreas Rammhold
3d606b06d1 firefox-bin: 63.0.3 -> 64.0
See #51863.

(cherry picked from commit 536d0cc3a7)
2018-12-12 11:10:00 +01:00
Vladimír Čunát
4f3446f299 nixos/nvidia: improve the assertion again
/cc 13938acd0 #51836.

(cherry picked from commit ad3e9191d1)
2018-12-12 00:35:21 +01:00
Andreas Rammhold
824b311961 rust-cbindgen_0_6_7: init at 0.6.7
after feedback from @veprbl in #51805 I added this as another package
which can be used for the 18.09 firefox builds.

(cherry picked from commit f1ee26bc4b)
2018-12-11 17:24:52 -05:00
Jörg Thalheim
da88e93f95 dropbox: fix evaluation
fixes #51883
2018-12-11 21:36:13 +00:00
Graham Christensen
99875d5cca Revert "modules: add mxisd with test"
Wasn't the commit which was in master, and this version
did not work due to evaluation errors on a missing option.

This reverts commit d9758833c5.
2018-12-11 16:34:55 -05:00
Vladimír Čunát
13938acd03 Merge #51836: nixos/nvidia: fix inverted assertion
(cherry picked from commit ac19d5e34f)
2018-12-11 21:42:35 +01:00
Izorkin
6e0efb350d php72: 7.2.12 -> 7.2.13
(cherry picked from commit f80e7df143)
2018-12-11 20:39:33 +01:00
Izorkin
043a2be17e php71: 7.1.24 -> 7.1.25
(cherry picked from commit 374be65924)
2018-12-11 20:39:27 +01:00
Maximilian Güntner
d9758833c5 modules: add mxisd with test
(cherry picked from commit 44bb1c30b4ecfbe60bac1205a7f2af2e1323f2df)
2018-12-11 20:39:14 +01:00
Maximilian Güntner
5f75865e49 mxisd: init at 1.2.0
(cherry picked from commit e40eb38dd4)
2018-12-11 20:39:13 +01:00
Vladimír Čunát
ffc28dd05c Merge branch 'release-18.09' into staging-18.09 2018-12-11 15:01:05 +01:00
Alyssa Ross
f55c7cfa94 Merge pull request #51835 from alyssais/geckodriver-backport
Backport "geckodriver: unstable-2018-02-24 -> 0.22.0" to 18.09
2018-12-11 12:05:20 +00:00
Markus Hauck
1d83bd047b dropbox: add mesa, libxshmfence and libpthreadstubs 2018-12-11 11:55:16 +00:00
Sarah Brofeldt
87ee6c4fe4 Merge pull request #51856 from samueldr/auto/dbeaver/nixos-18.09/5.3.0
dbeaver: 5.2.5 -> 5.3.0 (18.09)
2018-12-11 12:49:17 +01:00
Jappie Klooster
32d7eb3c0a doc: Fix insecure nginx docs (#51840)
(cherry picked from commit e576c3b385)
2018-12-11 11:03:42 +00:00
Samuel Dionne-Riel
30e538bd47 dbeaver: 5.2.5 -> 5.3.0
(cherry picked from commit 1c3079fce3)
2018-12-10 17:48:58 -05:00
Sarah Brofeldt
80a92d2290 zoom-us: 2.5.146186.1130 -> 2.6.146750.1204
(cherry picked from commit 8b3949d989)
Backport of #51662
2018-12-10 22:46:29 +01:00
Renaud
b144dfa3b2 Merge pull request #51828 from andir/18.09/steam
[18.09] steam: ran update-runtime.py
2018-12-10 22:29:04 +01:00
Robert Schütz
7b7d14045c python.pkgs.pylint: disable broken test
fixes https://github.com/NixOS/nixpkgs/issues/51394
2018-12-10 17:23:09 +01:00
Raphael Borun Das Gupta
03c552a37b geckodriver: unstable-2018-02-24 -> 0.22.0
Motivation: unstable-2018-02-24 (which reports to be
0.19.1, but probably doesn't correspond to any actual
geckodriver release) isn't compatible with the currently
shipped Firefox version 63.0

closes NixOS/nixpkgs#50380
2018-12-10 16:01:33 +00:00
Cole Mickens
4921bf4698 google-chrome-dev: add at-spi2-core dependency
(cherry picked from commit 45fd44c66d)
2018-12-10 15:19:21 +01:00
Renaud
dc7548237b Merge pull request #51826 from markuskowa/fix-gnss-sdr-18.09
[18.09] gnss-sdr: turn off unit tests explicitly
2018-12-10 14:59:40 +01:00
Andreas Rammhold
a67d27eacd steam: ran update-runtime.py
(cherry picked from commit 1de88c36cc)
2018-12-10 13:50:37 +01:00
Markus Kowalewski
67de9c4617 gnss-sdr: turn off unit tests explicitly
(cherry picked from commit 0528001141)
2018-12-10 13:42:22 +01:00
Vladimír Čunát
4b374061a6 nixos tests: disable kafka for now
They consistently fail since openjdk bump with some out-of-space errors.
That's not a problem by itself, but each test instance ties a build slot
for many hours and consequently they also delay channels as those wait
for all builds to finish.

Feel free to re-enable when fixed, of course.

(cherry picked from commit 3946d83a3c)
2018-12-10 13:25:49 +01:00
Florian Klink
6a7b2a4aa5 Merge pull request #51799 from flokli/18.09-ghostscript-9.26
ghostscript: 9.25 -> 9.26
2018-12-09 23:02:26 +01:00
Tor Hedin Brønner
2549e2e977 ghostscript: 9.25 -> 9.26
(cherry picked from commit 0ed7d3c62a)
2018-12-09 22:29:05 +01:00
Andreas Rammhold
1a5d5a570b Merge pull request #51795 from andir/18.09/smartmontools
[18.09] smartmontools: drivedb 4548 -> 4852
2018-12-09 21:53:31 +01:00
Andreas Rammhold
510946b241 smartmontools: drivedb 4548 -> 4852 2018-12-09 21:39:13 +01:00
Simon Lackerbauer
b352d47e42 nextcloud: 14.0.3 -> 14.0.4
(cherry picked from commit ee1613aea6)
2018-12-09 18:02:00 +01:00
Vladimír Čunát
99e3efe7ff Merge staging-18.09 into release-18.09
It's older version of the branch that's almost finished on Hydra.
2018-12-09 17:47:29 +01:00
Herwig Hochleitner
d56ec49ae4 llvm-7: init in release-18.09 (#51771)
chromium builds best with llvm 7 and instead of taking the hit of
hunting for gcc patches until release-18.09 is phased out, we just
backport it

see https://github.com/NixOS/nixpkgs/issues/51602

cc @dtzWill could you have a look at any commits, i might have missed?

this merged branch was built as follows:

```
± git merge-base release-18.09 master
2a1c0dde8f

± git checkout -b release-18.09-llvm-7 2a1c0dde8f
Switched to a new branch 'release-18.09-llvm-7'

± git cherry-pick -x $(git log master --format=oneline -- pkgs/development/compilers/llvm/7 | cut -f1 -d' ' | tac )
[release-18.09-llvm-7 0120cd8826f] llvm7: init at 7.0.0rc3
 Author: Will Dietz <w@wdtz.org>
 Date: Tue Sep 18 14:19:58 2018 -0500
 15 files changed, 1260 insertions(+)
 create mode 100644 pkgs/development/compilers/llvm/7/clang/default.nix
 create mode 100644 pkgs/development/compilers/llvm/7/clang/purity.patch
 create mode 100644 pkgs/development/compilers/llvm/7/compiler-rt-codesign.patch
 create mode 100644 pkgs/development/compilers/llvm/7/compiler-rt.nix
 create mode 100644 pkgs/development/compilers/llvm/7/default.nix
 create mode 100644 pkgs/development/compilers/llvm/7/libc++/default.nix
 create mode 100644 pkgs/development/compilers/llvm/7/libc++/setup-hook.sh
 create mode 100644 pkgs/development/compilers/llvm/7/libc++abi.nix
 create mode 100644 pkgs/development/compilers/llvm/7/lld.nix
 create mode 100644 pkgs/development/compilers/llvm/7/lldb.nix
 create mode 100644 pkgs/development/compilers/llvm/7/llvm-outputs.patch
 create mode 100644 pkgs/development/compilers/llvm/7/llvm.nix
 create mode 100644 pkgs/development/compilers/llvm/7/openmp.nix
 create mode 100644 pkgs/development/compilers/llvm/7/sanitizers-nongnu.patch
[release-18.09-llvm-7 efc3c480d86] llvm7: patch test shebang (otherwise test fails)
 Author: Will Dietz <w@wdtz.org>
 Date: Tue Sep 18 14:35:21 2018 -0500
 1 file changed, 2 insertions(+)
[release-18.09-llvm-7 30d468d7f47] llvm-manpages: fix build by removing references to $lib output
 Author: Will Dietz <w@wdtz.org>
 Date: Tue Sep 18 14:45:39 2018 -0500
 1 file changed, 3 insertions(+)
[release-18.09-llvm-7 64b459e5ae3] comment
 Author: Will Dietz <w@wdtz.org>
 Date: Tue Sep 18 14:52:17 2018 -0500
 1 file changed, 1 insertion(+), 1 deletion(-)
[release-18.09-llvm-7 ad2705efb6e] compiler-rt: quickfix codesign patch by dropping hunks 'already applied'
 Author: Will Dietz <w@wdtz.org>
 Date: Tue Sep 18 15:00:39 2018 -0500
 1 file changed, 33 insertions(+), 155 deletions(-)
 rewrite pkgs/development/compilers/llvm/7/compiler-rt-codesign.patch (78%)
[release-18.09-llvm-7 f51bf899719] llvm7: use final release tarballs now that they're available
 Author: Will Dietz <w@wdtz.org>
 Date: Wed Sep 19 07:43:33 2018 -0500
 1 file changed, 2 insertions(+), 2 deletions(-)
[release-18.09-llvm-7 93244a2dc24] llvm7: update hashes, they did change after all.
 Author: Will Dietz <w@wdtz.org>
 Date: Wed Sep 19 08:00:23 2018 -0500
 9 files changed, 9 insertions(+), 10 deletions(-)
[release-18.09-llvm-7 1e9d9d2e4ff] llvm*: http -> https, prefer releases.llvm.org
 Author: Will Dietz <w@wdtz.org>
 Date: Wed Sep 19 08:02:21 2018 -0500
 7 files changed, 7 insertions(+), 7 deletions(-)
[release-18.09-llvm-7 f5e526ba11a] libc++7: prefer 'optional' as suggested by comment
 Author: Will Dietz <w@wdtz.org>
 Date: Wed Sep 19 08:36:40 2018 -0500
 1 file changed, 1 insertion(+), 5 deletions(-)
[release-18.09-llvm-7 f254fb70666] llvm7: only use 1 number in version suffix, upstream changed
 Author: Will Dietz <w@wdtz.org>
 Date: Thu Sep 20 19:42:44 2018 -0500
 1 file changed, 1 insertion(+), 1 deletion(-)
[release-18.09-llvm-7 fa6fed6230d] llvm7: optionally use libpfm (exegesis), default off w/darwin
 Author: Will Dietz <w@wdtz.org>
 Date: Thu Sep 20 19:53:59 2018 -0500
 1 file changed, 4 insertions(+), 1 deletion(-)
[release-18.09-llvm-7 21959244dc4] llvm7: update musl patch for sanitizers
 Author: Will Dietz <w@wdtz.org>
 Date: Mon Sep 24 10:43:07 2018 -0500
 1 file changed, 75 insertions(+), 76 deletions(-)
```
2018-12-09 15:06:31 +01:00
Vladimír Čunát
ee3de676a6 Merge #51451: perl security updates (into staging-18.09) 2018-12-09 14:28:58 +01:00
Vladimír Čunát
1970a4cd13 fbreader: fixup build with curl-7.62
This was easy to patch; submitted upstream.

(cherry picked from commit 17acf57f9d)
2018-12-09 10:29:59 +01:00
Will Dietz
b324990b20 llvm7: update musl patch for sanitizers
(cherry picked from commit 5b2de5126d)
2018-12-09 05:27:03 +01:00
Will Dietz
9932296ed8 llvm7: optionally use libpfm (exegesis), default off w/darwin
(cherry picked from commit 9fe245d7e0)
2018-12-09 05:27:03 +01:00
Will Dietz
ffa9366411 llvm7: only use 1 number in version suffix, upstream changed
See llvm 2a6cf85828509e89e18739e5f4b9a958820d66d4

(cherry picked from commit b3645d74d1)
2018-12-09 05:27:03 +01:00
Will Dietz
ddccbf531d libc++7: prefer 'optional' as suggested by comment
(cherry picked from commit e3030a2908)
2018-12-09 05:27:03 +01:00
Will Dietz
df92d262a8 llvm*: http -> https, prefer releases.llvm.org
(cherry picked from commit 167e799d81)
2018-12-09 05:27:03 +01:00
Will Dietz
3683dade86 llvm7: update hashes, they did change after all.
Pretty sure they did last time too :).

(cherry picked from commit 0920652c5c)
2018-12-09 05:27:03 +01:00
Will Dietz
253a584046 llvm7: use final release tarballs now that they're available
(cherry picked from commit fca31e1a68)
2018-12-09 05:27:02 +01:00
Will Dietz
b2e5f6581a compiler-rt: quickfix codesign patch by dropping hunks 'already applied'
Quite possibly this is not right.

(cherry picked from commit 621fd23cb5)
2018-12-09 05:27:02 +01:00
Will Dietz
3d95f8a221 comment
(cherry picked from commit ba701ef329)
2018-12-09 05:27:02 +01:00
Will Dietz
a379d9a656 llvm-manpages: fix build by removing references to $lib output
(cherry picked from commit 38699890d6)
2018-12-09 05:27:02 +01:00
Will Dietz
c0bc50f825 llvm7: patch test shebang (otherwise test fails)
(cherry picked from commit b7692f5be5)
2018-12-09 05:27:02 +01:00
Will Dietz
5b5381f0c1 llvm7: init at 7.0.0rc3
Copy of 6 + updated hashes

(cherry picked from commit bb110d80fc)
2018-12-09 05:27:02 +01:00
Herwig Hochleitner
1a4498d132 chromium: 70.0.3538.110 -> 71.0.3578.80
CVE-2018-17480 CVE-2018-17481 CVE-2018-18335 CVE-2018-18336
CVE-2018-18337 CVE-2018-18338 CVE-2018-18339 CVE-2018-18340
CVE-2018-18341 CVE-2018-18342 CVE-2018-18343 CVE-2018-18344
CVE-2018-18345 CVE-2018-18346 CVE-2018-18347 CVE-2018-18348
CVE-2018-18349 CVE-2018-18350 CVE-2018-18351 CVE-2018-18352
CVE-2018-18353 CVE-2018-18354 CVE-2018-18355 CVE-2018-18356
CVE-2018-18357 CVE-2018-18358 CVE-2018-18359

see https://github.com/NixOS/nixpkgs/issues/51602

(cherry picked from commit 8942a3e00c)

chromium: update conditionals and gcc patches for min version 71

(cherry picked from commit ccb93eb6b0)
2018-12-09 04:52:36 +01:00
Vladimír Čunát
2e7699531a Merge #51688: nettle: 3.4 -> 3.4.1 (security)
(cherry picked from commit b9d22d3fe8)
2018-12-08 23:38:20 +01:00
Renaud
f1a942b441 Merge pull request #51675 from c0bw3b/sec/1809/polkit
[18.09] polkit: add patch for CVE-2018-19788
2018-12-08 23:20:17 +01:00
Renaud
f006e8448b Merge pull request #51243 from vaibhavsagar/update-developPackage
Update developPackage
2018-12-08 18:15:44 +01:00
Tim Steinbach
b4360cadfd linux: 4.19.7 -> 4.19.8
(cherry picked from commit 6de9095a12f9ec834933217840ba3df716738a77)
2018-12-08 10:26:34 -05:00
Tim Steinbach
8e67eb47d3 linux: 4.14.86 -> 4.14.87
(cherry picked from commit 5fa8435719a1ad5b7ac8f57ce3c6e47cebafbdeb)
2018-12-08 10:26:33 -05:00
Tim Steinbach
04b8900a51 linux: 4.9.143 -> 4.9.144
(cherry picked from commit 1567d09a49613f1bc21d6d5905fe339a26d82ed0)
2018-12-08 10:26:32 -05:00
Renaud
695391fd84 Merge pull request #51734 from c0bw3b/sec/1809/sssd
[18.09] sssd: 1.16.2 -> 1.16.3
2018-12-08 16:05:55 +01:00
Will Dietz
0ec2084017 sssd: 1.16.2 -> 1.16.3 (security!)
https://docs.pagure.org/SSSD.sssd/users/relnotes/notes_1_16_3.html
(cherry picked from commit 01fab8778f)
2018-12-08 15:47:03 +01:00
Renaud
e9a2c5328f nixos/systemd-nspawn: accept all Exec and Files options
See: https://www.freedesktop.org/software/systemd/man/systemd.nspawn.html
Closes #49712
2018-12-08 14:43:51 +01:00
Florian Klink
7538184722 Merge pull request #51711 from worldofpeace/vivaldi/18.09-backport
backport vivaldi updates from unstable
2018-12-08 13:30:25 +01:00
Periklis Tsirakidis
b3aff3a040 openjpeg: fix for CVE-2018-18088
(cherry picked from commit a4700aa526)
2018-12-08 21:01:57 +09:00
worldofpeace
dfe1c9670b vivaldi: correct hash
Fixes #51635

(cherry picked from commit 5256cfd006)
2018-12-07 21:54:26 -05:00
José Romildo Malaquias
eac3842765 vivaldi: 2.1.1337.47-1 -> 2.1.1337.51-1
(cherry picked from commit 94c342348b)
2018-12-07 21:52:30 -05:00
José Romildo Malaquias
1ca86b41c4 vivaldi: 2.1.1337.36-1 -> 2.1.1337.47-1
(cherry picked from commit b14d1167c9)
2018-12-07 21:52:16 -05:00
José Romildo Malaquias
9a5586dbf0 vivaldi: 2.0.1309.29-2 -> 2.1.1337.36-1
(cherry picked from commit 3cd8c2240b)
2018-12-07 21:52:04 -05:00
Patrick Hilhorst
f15255aead vivaldi: 1.15.1147.64-1 -> 2.0.1309.29-2
(cherry picked from commit 71eb7adfb2)
2018-12-07 21:51:51 -05:00
Lukas Werling
12bd585969 vivaldi: 1.15.1147.42-1 -> 1.15.1147.64-1
(cherry picked from commit eb275c96f2)
2018-12-07 21:51:19 -05:00
José Romildo Malaquias
3e69d11580 vivaldi-ffmpeg-codecs: 69.0.3497.73 -> 70.0.3538.77
(cherry picked from commit 34964d6f3b)
2018-12-07 21:48:00 -05:00
Lukas Werling
d078ba9b5d vivaldi-ffmpeg-codecs: 61.0.3163.91 -> 69.0.3497.73
(cherry picked from commit 478e1fe369)
2018-12-07 21:47:56 -05:00
c0bw3b
c1e49a34a4 polkit: add patch for CVE-2018-19788
unprivileged users with UID > INT_MAX can successfully execute any systemctl command
Original issue: https://gitlab.freedesktop.org/polkit/polkit/issues/74

(cherry picked from commit a14af16cfc)
2018-12-07 19:45:11 +01:00
Will Dietz
135a7f9604 tor: 0.3.4.8 -> 0.3.4.9
https://gitweb.torproject.org/tor.git/plain/ChangeLog?h=tor-0.3.4.9

Please confirm the sha256 is correct for a verified tarball,
I'm not setup (or know how offhand but docs look promising)
to do this myself.

(cherry picked from commit c78761b5bd)
2018-12-07 13:15:16 +01:00
taku0
4b4c24c341 flashplayer: 31.0.0.153 -> 32.0.0.101
(cherry picked from commit f7a266d44a)
Backport of #51623
2018-12-07 12:14:39 +01:00
Jörg Thalheim
59ae1fd285 nix-review: 0.6.1 -> 1.0.1
- use nix build instead of nix-build
- writes per-build log in the current working directory
- symlinks the builds in the current working directory
- detects & deduplicates build aliases
- markdown reports
- filter builds by regex
- generate nix expression files that can be build by the user

(cherry picked from commit 53f1ffa4d3)
2018-12-07 11:12:57 +00:00
Samuel Dionne-Riel
7795a7ad5f sd-image: Slims the ext4 filesystem even more.
This is to try and squeeze more lost space from the image, so that hydra
starts building it again.

The fsck previous to the resize2fs is required so resize2fs works.

The one afterwards is a sanity check.

Using `-M` from resize2fs will not give much saved space due to a known
(in the manual) issue.

```
[samueldr@aarch64:~/nixpkgs]$ ls -lh result-*/*/*.img
-r--r--r-- 1 root root 2.2G Jan  1  1970 result-original/sd-image/nixos-sd-image-18.09.git.a7fd431-aarch64-linux.img
-r--r--r-- 1 root root 2.1G Jan  1  1970 result-M/sd-image/nixos-sd-image-18.09.git.a7fd431-aarch64-linux.img
-r--r--r-- 1 root root 1.9G Jan  1  1970 result-slimmed/sd-image/nixos-sd-image-18.09.git.a7fd431-aarch64-linux.img
```

```
[samueldr@aarch64:~/nixpkgs]$ nix path-info -S ./result-original
/nix/store/c8k9n78gylx293rjh762fr05a069kxp2-nixos-sd-image-18.09.git.a7fd431-aarch64-linux.img   3844125000

[samueldr@aarch64:~/nixpkgs]$ nix path-info -S ./result-slimmed
/nix/store/962238skj5mnzhrsmjy23dyzmxk77sp4-nixos-sd-image-18.09.git.a7fd431-aarch64-linux.img   3447473208
```

(cherry picked from commit 61bdaad9a9)
2018-12-06 18:35:59 -05:00
Anatolii Prylutskyi
a7924afc9f rambox: 0.6.2 -> 0.6.3
(cherry picked from commit 7ff4f5be26)
2018-12-06 10:55:43 +00:00
Jörg Thalheim
29eb612952 rambox: 0.6.1 -> 0.6.2
(cherry picked from commit fb7abdaea1)
2018-12-06 10:55:43 +00:00
Renaud
d54a4accc7 Merge pull request #51591 from c0bw3b/data/1809/tzdata
[18.09] tzdata: 2018e -> 2018g
2018-12-05 23:43:11 +01:00
Tim Steinbach
2dc559868c linux: 4.19.6 -> 4.19.7
(cherry picked from commit 808d52ee05)
2018-12-05 17:36:38 -05:00
Tim Steinbach
df3e859d10 linux: 4.14.85 -> 4.14.86
(cherry picked from commit e945771e4c)
2018-12-05 17:36:37 -05:00
Tim Steinbach
dd9018dfdc linux: 4.9.142 -> 4.9.143
(cherry picked from commit 1f7266cbbb)
2018-12-05 17:36:37 -05:00
Franz Pletz
b57b9b7a49 tzdata: 2018e -> 2018g
Notable changes:
  - Morocco switched to permanent +01 on 2018-10-27
  - Volgograd moved from +03 to +04 on 2018-10-28
  - Fiji ends DST 2019-01-13, not 2019-01-20
  - Most of Chile changes DST dates, effective 2019-04-06

tzdata: fetch over https
(cherry picked from commit 7c25174154)
2018-12-05 22:29:57 +01:00
Renaud
261bf90fb9 Merge pull request #51181 from guaraqe/ncurses
ncurses: upgrade from 6.1 -> 6.1-20181027
2018-12-05 12:18:38 +01:00
Trolli Schmittlauch
dd039326f0 dino: 2018-11-27 -> 2018-11-29 (#51557)
(cherry picked from commit 99231a36bb)
2018-12-05 11:16:02 +00:00
Jörg Thalheim
30ab8686bf dino: enable parallel building
(cherry picked from commit a995836356)
2018-12-05 11:15:55 +00:00
Jörg Thalheim
3faf28ae41 dino: 2018-09-21 -> 2018-11-27
(cherry picked from commit 3b44ccd991)
2018-12-05 11:15:49 +00:00
Jörg Thalheim
22f639d78d dino: 2018-09-05 -> 2018-09-21
(cherry picked from commit 3dec3de2d3)
2018-12-05 11:15:43 +00:00
Jörg Thalheim
0c4650db8f dino: 2018-07-08 -> 2018-09-05
(cherry picked from commit de825a4eaa)
2018-12-05 11:15:34 +00:00
Pierre Bourdon
b260b7c2af prometheus/exporters: fix regression in DynamicUser behavior
Instead of setting User/Group only when DynamicUser is disabled, the
previous version of the code set it only when it was enabled. This
caused services with DynamicUser enabled to actually run as nobody, and
services without DynamicUser enabled to run as root.

Regression from fbb7e0c82f.

(cherry picked from commit 3873f43fc3)
2018-12-05 11:40:32 +01:00
Florian Klink
40e7d55262 pkgsi686Linux.nixosTests.gitlab: fix 32 bit tests
GitLab 11.5.1 dropped the dependency to posix_spawn, which is broken on
32bit. (See https://gitlab.com/gitlab-org/gitlab-ce/issues/53525)

The only part missing is decreasing virtualisation.memorySize to
something that a 32 bit qemu still executes.

The maximum seems to be 2047, and tests passed with that value for me.

(cherry picked from commit 5c82aa8854)
2018-12-05 10:47:55 +01:00
Andrew Dunham
0b2757de07 ncurses: upgrade from 6.1 -> 6.1-20181027
This includes fixes for CVE-2018-10754.

While we're changing things, also set the `--with-manpage-format=normal`
configure flag, which prevents the `configure` script from looking in
/usr to determine whether to compress manpages. This was already the
format on NixOS (where these directories don't exist), but making this
explicit makes the build more reproducible on other distros.

(cherry picked from commit f485b2e71f)
2018-12-05 10:25:27 +01:00
Robin Gloster
7b3336baf3 gitlab-shell: fix hard-coded path
(cherry picked from commit c2b54dcee5)
2018-12-05 10:16:55 +01:00
Robin Gloster
b9ba657642 gitlab: 11.5.0 -> 11.5.1
(cherry picked from commit 88b63b2505)
2018-12-05 10:16:53 +01:00
Samuel Dionne-Riel
d25517ab51 Merge pull request #51511 from hedning/nix-completions-bump
[18.09] backport nix-{zsh,bash}-completions
2018-12-05 04:22:12 +00:00
Samuel Dionne-Riel
885811d932 Merge pull request #51486 from johanot/kubernetes-1.11.5
kubernetes: 1.11.4 -> 1.11.5
2018-12-05 04:20:07 +00:00
John Ericson
3fd87ad007 Merge pull request #51286 from obsidiansystems/bump-android-sdk-backport
Bump android sdk backport in 18.09
2018-12-04 15:11:58 -05:00
Renaud
aae21170ee Merge pull request #51395 from c0bw3b/sec/1809/postfix
[18.09]  postfix: 3.3.1 -> 3.3.2
2018-12-04 20:57:46 +01:00
c0bw3b
29f01a82f9 postfix: 3.3.1 -> 3.3.2
Changelog:
http://www.postfix.org/announcements/postfix-3.3.2.html
2018-12-04 20:37:32 +01:00
Tor Hedin Brønner
bf19f01b6d nix-zsh-completions: 0.4.1 -> 0.4.2
(cherry picked from commit 5bc0270211)
2018-12-04 16:53:16 +01:00
Maximilian Bosch
1d027e2fdd nix-zsh-completions: 0.4.0 -> 0.4.1
Contains several bugfixes that improve the ZSH completion for nix*
commands.

For further reference: https://github.com/spwhitt/nix-zsh-completions/releases/tag/0.4.1

(cherry picked from commit e446261e51)
2018-12-04 16:53:04 +01:00
Tor Hedin Brønner
36e8c6b71f nix-bash-completions: 0.6.6 -> 0.6.7
(cherry picked from commit ad8f5ca2bb)
2018-12-04 16:52:06 +01:00
Timo Kaufmann
8992f529d7 python.pkgs.pygraphviz: add graphviz path (#51502)
(cherry picked from commit 21de751e74)
2018-12-04 12:32:13 +01:00
Mario Rodas
cc0831b0e2 docs: Remove nix-repl references
nix-repl has been deprecated
2018-12-04 10:53:38 +00:00
Alexey Lebedeff
27b3ca8e46 nvidia_legacy_340: Remove unneeded/failing patch
The patch is not applying and no longer needed after upgrade in
045575e744. Now the same result is
achieved by the following lines in the driver package itself:

    #if defined(NV_DRM_LEGACY_PCI_INIT_PRESENT)
    #define nv_drm_pci_init drm_legacy_pci_init
    #define nv_drm_pci_exit drm_legacy_pci_exit
    #else
    #define nv_drm_pci_init drm_pci_init
    #define nv_drm_pci_exit drm_pci_exit
    #endif
2018-12-04 10:43:50 +00:00
Renaud
7ebed57d7b Merge pull request #51491 from flokli/18.09-zoom-us-2.5.146186.1130
[18.09] zoom-us: 2.4.129780.0915 -> 2.5.146186.1130 (CVE-2018-15715)
2018-12-04 08:25:12 +01:00
Florian Klink
8b52f7db8d zoom-us: 2.4.129780.0915 -> 2.5.146186.1130
fixes [CVE-2018-15715](https://nvd.nist.gov/vuln/detail/CVE-2018-15715)

(cherry picked from commit c4177f4e5b)
2018-12-04 02:14:20 +01:00
R. RyanTM
8c853e6682 elfutils: 0.174 -> 0.175
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/elfutils/versions

Fixes CVE-2018-18310, CVE-2018-18520 and CVE-2018-18521.

CC #51458

(cherry picked from commit 5beb37d258)
2018-12-04 00:54:38 +01:00
R. RyanTM
5ce279105f elfutils: 0.173 -> 0.174
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/elfutils/versions

Fixes CVE-2018-16062, CVE-2018-16402 and CVE-2018-16403.

(cherry picked from commit f52e50c60f)
2018-12-04 00:54:12 +01:00
Robin Gloster
3e238c552d strongswan: fix patch's CVE number
The patch above this one is the one fixing the previous CVEs.

fixes #51461
2018-12-04 00:25:34 +01:00
Renaud
b09e113035 Merge pull request #51479 from c0bw3b/sec/1809/udisks
[18.09] udisks: 2.8.0 -> 2.8.1
2018-12-04 00:15:05 +01:00
Johan Thomsen
27a7e1f6f5 kubernetes: 1.11.4 -> 1.11.5 2018-12-03 23:40:13 +01:00
Will Dietz
4bb9ffd1c4 udisks: 2.8.0 -> 2.8.1
https://github.com/storaged-project/udisks/blob/udisks-2.8.1/NEWS
(cherry picked from commit 9a74fd0b0f)
2018-12-03 23:18:17 +01:00
Domen Kožar
9bdbd595db chrome-token-signing: fix path to opensc-pkcs11
(cherry picked from commit 4cf1d88d12)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-12-03 17:19:01 +00:00
Bjørn Forsman
d45a0d7a4f jpeginfo: init at 1.6.1
jpeginfo prints information and tests integrity of JPEG/JFIF files.

(cherry picked from commit 84a2463499)
2018-12-03 17:09:54 +01:00
Vladimír Čunát
395a526fc6 Merge branch 'release-18.09' into staging-18.09
I mainly want the kernel updates, to avoid useless builds.
2018-12-03 15:47:08 +01:00
volth
62141daa1f perl: 5.28.0 -> 5.28.1, 5.26.2 -> 5.26.3 2018-12-03 13:53:50 +00:00
Pierre Bourdon
b7162eb5c4 nixos.tests.keymap: use new name of the colemak/en-latin9 keymap
Commit df6d40feb6 renamed colemak/en-latin9 to
colemak/colemak, but the keymap test wasn't adjusted to refer to the new path.

(cherry picked from commit 74598ca8d3)
2018-12-03 13:09:08 +01:00
Vladimír Čunát
4f5651d4ed Merge #50963: nss, libpng & sqlite backports (staging-18.09)
Planned date of FF 64 is in about a week.
2018-12-03 11:36:50 +01:00
Vladimír Čunát
c395d62507 Merge branch 'staging-18.09' into release-18.09
On x86_64-linux this looks good, only R fails tests on Hydra,
but I've been unable to reproduce that failure locally,
so let me not delay the CVE fixes.
2018-12-03 11:05:15 +01:00
Jörg Thalheim
b7c795d588 Merge pull request #51407 from M-Gregoire/fix/networkmanagerservice
Fix NetworkManager-wait-online.service
2018-12-03 08:55:05 +00:00
Austin Seipp
173852b936 nixos/chrony: fix misplaced ConditionCapability= directive
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 4594b18070)
2018-12-02 20:33:30 -06:00
R. RyanTM
58f61cfcdd kdeconnect: 1.3.1 -> 1.3.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/kdeconnect/versions

(cherry picked from commit efbc6f4648)
This version is needed to use the Android companion application.
Fixes #51396
2018-12-02 20:19:38 -05:00
Jörg Thalheim
6c6aef86be Merge pull request #51361 from davidak/fix-mumble
Backport mumble fix
2018-12-02 22:44:51 +00:00
worldofpeace
205bbc3365 kbfs: 2.6.0 -> 2.10.1
(cherry picked from commit b49ed49c68)
2018-12-02 12:01:43 -08:00
Jon Banafato
0cad7d413a kbfs: 2.5.0 -> 2.6.0
(cherry picked from commit 254c5a0100)
2018-12-02 12:01:43 -08:00
worldofpeace
5abdefdf38 keybase: 2.7.3 -> 2.10.1
(cherry picked from commit 3fdbd985d9)
2018-12-02 12:01:43 -08:00
Daiderd Jordan
80c749e29c keybase: add cf-private on darwin
Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_NSData", referenced from:
          objc-class-ref in _x002.o
      "_OBJC_CLASS_$_NSDictionary", referenced from:
          objc-class-ref in _x002.o
      "_OBJC_CLASS_$_NSURL", referenced from:
          objc-class-ref in _x002.o
    ld: symbol(s) not found for architecture x86_64

(cherry picked from commit be9fc0d669)
2018-12-02 12:01:43 -08:00
Jon Banafato
9d3b4dd757 keybase: 2.5.0 -> 2.7.3
(cherry picked from commit 468d41db46)
2018-12-02 12:01:43 -08:00
worldofpeace
930c69803b keybase-gui: 2.7.0 -> 2.11.0
- Use `autoPatchelfHook`
- Don't explicitly set phases - Part of #28910
- Correct `version` by hoisting out the suffix

(cherry picked from commit 02e9d06e5e)
2018-12-02 12:01:43 -08:00
Jon Banafato
0980c9385d keybase-gui: 2.5.0 -> 2.7.0
(cherry picked from commit 68ad1f8774)
2018-12-02 12:01:43 -08:00
MGregoire
022eb6afaf Fix NetworkManager-wait-online.service 2018-12-02 20:34:33 +01:00
Vladimír Čunát
e1aacc81b7 Merge #51390: thunderbird(-bin): 60.3.0 -> 60.3.2 2018-12-02 18:32:34 +01:00
Jörg Thalheim
e8dd26fc30 Revert "nixos/luksroot: Check whether the device already exists"
This reverts commit 14b0a4f1ad.

Apparently this can break peoples setup: https://github.com/NixOS/nixpkgs/pull/50281#issuecomment-443516289
2018-12-02 17:08:36 +00:00
Jörg Thalheim
4c22ad7bf7 Merge pull request #51354 from dasJ/luks-checkexist-backport
nixos/luksroot: Backport #50281
2018-12-02 16:51:04 +00:00
Bas van Dijk
24ff4d87bc elasticsearch: make sure to patchelf the x-pack-ml binaries
(cherry picked from commit b560dd9047)
2018-12-02 15:57:57 +01:00
Bas van Dijk
35b40f4f7a elk: 6.3.2 -> 6.5.1
(cherry picked from commit fbf0efc6a7)
2018-12-02 15:34:36 +01:00
Vladimír Čunát
fd3e3c727f Merge #51378: linuxPackages.nvidia_x11_legacy304: broken on 4.18+
(cherry picked from commit 70f507ae56)
2018-12-02 14:33:40 +01:00
Janne Heß
14b0a4f1ad nixos/luksroot: Check whether the device already exists
The new reuse behaviour is cool and really useful but it breaks one of
my use cases. When using kexec, I have a script which will unlock the
disks in my initrd. However, do_open_passphrase will fail if the disk is
already unlocked.

(cherry picked from commit 9cd4ce98bf)
Reason: The new behaviour breaks my existing setup and I'd like to have
it fixed before March.
2018-12-02 14:05:48 +01:00
taku0
416eb4bc1c thunderbird: 60.3.0 -> 60.3.2
(cherry picked from commit 61c83b3975)
2018-12-02 13:59:52 +01:00
taku0
b8ae370815 thunderbird-bin: 60.3.0 -> 60.3.2
(cherry picked from commit d37976c508)
2018-12-02 13:59:45 +01:00
taku0
373bf6abcd thunderbird: 60.3.0 -> 60.3.1
(cherry picked from commit 1e8694d3d7)
2018-12-02 13:59:22 +01:00
taku0
83ed12481a thunderbird-bin: 60.3.0 -> 60.3.1
(cherry picked from commit 52fc63e37b)
2018-12-02 13:59:18 +01:00
Jörg Thalheim
49be1fad9b networkmanager-applet: set default icon theme 2018-12-02 11:50:33 +00:00
Silvan Mosberger
b3e718378d Merge pull request #51374 from Infinisil/backport/fix/minecraft
[18.09] minecraft: Fix versions <1.13
2018-12-02 08:20:48 +01:00
Silvan Mosberger
8fc7a2d975 minecraft: Fix versions <1.13
(cherry picked from commit 0d2355d7e3)
2018-12-02 07:56:07 +01:00
Andrew Childs
65b2552a46 mumble: fix hang on reconfiguring audio
(cherry picked from commit 773c8807c9)

Reason: Backport fix to 18.09
2018-12-02 06:37:26 +01:00
Tim Steinbach
d004311ba3 kernel: 4.19.5 -> 4.19.6
(cherry picked from commit 0bc0a6ed25ce840d15c924cde841ed243c06237e)
2018-12-01 11:22:25 -05:00
Tim Steinbach
aaeedad66f kernel: 4.14.84 -> 4.14.85
(cherry picked from commit c29204b85278648279a6ed78db0dc4e4a85d4cfe)
2018-12-01 11:22:24 -05:00
Tim Steinbach
c1bca408c3 kernel: 4.9.141 -> 4.9.142
(cherry picked from commit 4440f74ae57fd83f875f2f340eeed95c015a1b45)
2018-12-01 11:22:23 -05:00
Tim Steinbach
8597515996 kernel: 4.4.165 -> 4.4.166
(cherry picked from commit 2a533a71e36a41bfdde0e4dd880604a7141a985e)
2018-12-01 11:22:23 -05:00
Tim Steinbach
b69279c5f3 sbt: 1.2.6 -> 1.2.7
(cherry picked from commit 9ee9387b472a71e5250f1b131ce3b1a7bdc9c763)
2018-12-01 11:22:22 -05:00
Léo Gaspard
b47741cdd8 Merge branch 'pr-51299' into release-18.09
* pr-51299:
  nixos/urxvtd: remove socket activation
2018-12-01 16:02:32 +09:00
Samuel Dionne-Riel
2e19ed4e83 Merge pull request #51273 from herrwiese/nixos-postgres-unknown-var
postgresql: Fix variable spelling in NixOS module
2018-12-01 03:14:28 +00:00
fishyfriend
31efd1f3a5 nixos/urxvtd: remove socket activation
This fixes #23193. urxvtd is not presently compatible with socket activation.

(cherry picked from commit b34b39cab4)
2018-11-30 18:51:40 -05:00
worldofpeace
de81882a82 Merge pull request #51289 from 1000101/backport-release-18.09
[18.09] trezord: 2.0.24 -> 2.0.25
2018-11-30 16:13:09 -05:00
Jörg Thalheim
9b71a920a4 Merge pull request #51292 from Mic92/mlx5-core-en
[WIP][backport-18.09]: kernel: enable MLX5_CORE_EN when possible
2018-11-30 19:00:07 +00:00
Vladimír Čunát
420db065cf Re-revert "Merge staging-18.09 into release-18.09"
This reverts commit 3d63c05ddf.
This should fix #51281 (after merged to release-18.09),
but we would better re-check for similar problems.
2018-11-30 19:14:44 +01:00
Vladimír Čunát
57081c2bc0 Merge branch 'release-18.09' into staging-18.09 2018-11-30 19:14:22 +01:00
Graham Christensen
4934f82f43 kernel: enable MLX5_CORE_EN when possible
Hydra's builders from Packet.net use this option a lot, causing
lots of slow deploys.

(cherry picked from commit d65b39a805)
2018-11-30 17:56:46 +00:00
Ján Hrnko
46f7707f08 trezord: 2.0.24 -> 2.0.25
(cherry picked from commit e3768c8063)
2018-11-30 18:04:29 +01:00
Clemens Fruhwirth
854e94d262 androidsdk: Re-add emulator that was broken out of the sdk-tools package.
(cherry picked from commit b4d9f6ddca)
2018-11-30 10:58:27 -05:00
David McFarland
73ee651740 androidsdk: fix monitor interpreter path
(cherry picked from commit c43abffb9c)
2018-11-30 10:58:27 -05:00
Nick Novitski
6d9532887b androidenv: version buildTools and add buildToolsVersions sdk argument
(cherry picked from commit d861da151f)
2018-11-30 10:58:27 -05:00
Nick Novitski
48223815a1 androidsdk: 25.2.5 -> 26.1.1, license agreement
(cherry picked from commit 950608bae0)
2018-11-30 10:58:27 -05:00
Florian Klink
43e3285cf5 Merge pull request #51072 from flokli/gitlab-11.5.0-18.09
[18.09] Gitlab 11.5.0
2018-11-30 15:06:58 +01:00
Robert Schütz
7d166c6941 Merge pull request #51257 from schmittlauch/seafile-backport
seafile-shared: backport newer minor version to fix build failures
2018-11-30 11:52:48 +01:00
Andreas Wiese
2ae7b7082b postgresql: Fix variable spelling in NixOS module
Current build of nixos-18.09-small (nixos-18.09.1473.c1acb5ce6d8) fails
with

error: undefined variable 'postgresqlPackage' at […]/nixos/modules/services/databases/postgresql.nix:251:38

The right variable name should be cfg.package; fix.
2018-11-30 10:58:59 +01:00
Renaud
c1acb5ce6d Merge pull request #51169 from nyanloutre/jackett-update-18.09
[18.09] jackett: 0.10.434 -> 0.10.471
2018-11-29 22:33:17 +01:00
Doug Beardsley
7b54e50c08 Update developPackage documentation
(cherry picked from commit c3c82aa675)
2018-11-29 14:06:41 -05:00
Doug Beardsley
fca28547b5 Add name parameter to developPackage
(cherry picked from commit d36c55a530)
2018-11-29 14:06:13 -05:00
Robert Schütz
f135007e8c seafile-client: 6.2.5 -> 6.2.7
(cherry picked from commit 377e0e9b0f)

reason: built-error of seafile-shared-6.2.4 (see #51238)
2018-11-29 18:08:30 +01:00
Robert Schütz
2d3cf40a2d seafile-shared: 6.2.5 -> 6.2.7
(cherry picked from commit 3dccf7dca7)

reason: built-error of seafile-shared-6.2.4 (see #51238)
2018-11-29 18:04:34 +01:00
Graham Christensen
a0c7949780 Revert "zfs cannot be distributed. Disabling it in the isos."
ZFS's popularity is growing, and not including it by default is a
bit frustrating. On top of that, the base iso includes ZFS
_anyway_ due to other packages depending upon it.

I think we're in the clear to do this on the basis that Oracle
probably doesn't care, it is probably fine (the SFLC agrees) and
we're a small fish. If a copyright holder asks us to, we can
definitely revert it again.

This reverts commit 33d07c7ea9.

(cherry picked from commit 6db866cbd2)
2018-11-29 08:38:19 -05:00
Samuel Dionne-Riel
09c74d944d sd-image: Do not use batch operation for mcopy.
```
       b      Batch mode. Optimized for huge recursive copies, but less secure if a crash happens during the copy.
```

It seems the "less secure if a crash happens" does not need a crash to
happen.

With batch mode:

```
/[...]/.
  Start (0) does not point to parent (___)
```

For pretty much everything copied in.

Without batch mode, everything passes `fsck`.

See #51150

(cherry picked from commit 1b6a4d3979)
2018-11-28 19:25:34 -05:00
Samuel Dionne-Riel
19f0f4758e sd-image: Verifies the FAT partition before copying it.
This is to ensure `mtools`-based operations don't wreck the FS.

(cherry picked from commit 2e5eb135aa)
2018-11-28 19:25:26 -05:00
Timo Kaufmann
b7747ce27e sage: don't test the downgraded R (#51192)
Fails transiently. See https://github.com/NixOS/nixpkgs/pull/49249. The
failures look harmless and are fixed with R 3.5 which will be used in
sage 8.5.

(cherry picked from commit d6376bca6d)
2018-11-28 23:17:09 +01:00
Kristoffer Thømt Ravneberg
bb287f821f gitlab-shell: don't hardcode gitlab-shell paths in authorized_keys
(cherry picked from commit a3ec5dce2b)
2018-11-28 23:11:19 +01:00
Austin Seipp
4169ce094c postgresql: enable systemd service notification on 9.6+
This results in a marginal closure size increase of ~137mb -> ~141mb.
This only affects the 'out' output, not the 'lib' output, so
libpq-dependent expressions should not bloat as a result of this.

The type of the systemd service is changed to 'notify' on 9.6+, which
will help identify when Postgres is starting/shutting down.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 1e83cf317443cbc381af72aa09959266bc2d207b)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-28 16:42:28 +00:00
Matt McHenry
d7e3a072ec elm: extract makeDotElm and fetchElmDeps
(cherry picked from commit 206a1c00ba)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-28 16:35:35 +00:00
Peter Simons
2c848ea92d Merge pull request #51177 from peti/add-pandoc-manpage
pandoc: adapt postInstall hook to embedded-data-files build
2018-11-28 15:09:52 +01:00
Peter Simons
965b8ecccb pandoc: adapt postInstall hook to embedded-data-files build
(cherry picked from commit b38bfe18c7)
2018-11-28 13:33:18 +01:00
Léo Gaspard
aacc016422 Merge branch 'pr-51156' into release-18.09
* pr-51156:
  haskellPackages: default to ghc 8.4.4 as per Stackage LTS 12.16
2018-11-28 20:50:43 +09:00
nyanloutre
fd41dd53f1 jackett: 0.10.446 -> 0.10.471
(cherry picked from commit 6c06017137)
2018-11-28 09:58:18 +01:00
R. RyanTM
db73ad3ecd jackett: 0.10.434 -> 0.10.446
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/jackett/versions

(cherry picked from commit 91796d1020)
2018-11-28 09:58:18 +01:00
Samuel Dionne-Riel
9deeaa225b Merge pull request #51159 from samueldr/18.09/mtools-4.0.21
[18.09] mtools 4.0.18 -> 4.0.21
2018-11-28 03:30:28 +00:00
Will Dietz
84f7a5ed07 mtools: 4.0.20 -> 4.0.21
* mtools: 4.0.20 -> 4.0.21 (#50993)

https://lists.gnu.org/archive/html/info-mtools/2018-11/msg00009.html

* mtools: homepage is https-capable

(cherry picked from commit 51b526d86e)
2018-11-27 22:07:04 -05:00
Jörg Thalheim
20cdb37294 mtools: fix darwin build
(cherry picked from commit 47a239a240)
2018-11-27 22:07:00 -05:00
R. RyanTM
a58cdb9edd mtools: 4.0.19 -> 4.0.20
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/mtools/versions

(cherry picked from commit 4f99f26f9b)
2018-11-27 22:06:55 -05:00
R. RyanTM
75c1a76c6c mtools: 4.0.18 -> 4.0.19
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/mtools/versions

(cherry picked from commit aee3689349)
2018-11-27 22:06:21 -05:00
Markus Kowalewski
9be0cb168b mtools: add license
(cherry picked from commit 4f83467ba4)
2018-11-27 22:06:16 -05:00
Peter Simons
1afc9c9e56 haskellPackages: default to ghc 8.4.4 as per Stackage LTS 12.16 2018-11-27 21:07:33 -05:00
Andrew Dunham
6ea49f6f86 libtiff: 2018-11-04 -> 4.0.10
(cherry picked from commit ac3b358a8c)
2018-11-28 10:54:13 +09:00
Andrew Dunham
76fc36f75d libtiff: 4.0.9 -> 2018-11-04
This includes a bunch of security fixes (#49786), and mimics what Debian
has done in moving to a git snapshot instead of a released version +
backported security patches.

(cherry picked from commit 3137c609a4)
2018-11-28 10:54:09 +09:00
Léo Gaspard
92e700d297 Merge branch 'pr-51092' into release-18.09
* pr-51092:
  php72: 7.2.11 -> 7.2.12
  php71: 7.1.23 -> 7.1.24
  php: align Darwin and Linux versions again
  php72: 7.2.10 -> 7.2.11
  php71: 7.1.22 -> 7.1.23
2018-11-28 10:05:28 +09:00
Renaud
db561c90ef Merge pull request #51148 from c0bw3b/sec/1809/pdnsrec
pdns-recursor: 4.1.7 -> 4.1.8 (security)
2018-11-27 23:19:36 +01:00
Will Dietz
6a0c135870 pdns-recursor: 4.1.7 -> 4.1.8 (security)
https://docs.powerdns.com/recursor/changelog/4.1.html#change-4.1.8
(cherry picked from commit 14342e8c6d)
2018-11-27 22:59:00 +01:00
Pavel Goran
5c1cf68a94 gitea: include "options" directory in "data" output
This directory contains template files needed for initializing new repositories.

Fixes #49404.

(cherry picked from commit 5f3054ef70)
2018-11-27 22:38:09 +01:00
Tim Steinbach
0551730dae linux: 4.19.4 -> 4.19.5
(cherry picked from commit 08292ab3da0f4df2d1560403e0e48b289f740457)
2018-11-27 16:20:30 -05:00
Tim Steinbach
0375fe783f linux: 4.14.83 -> 4.14.84
(cherry picked from commit d435ad65664ea762b58df28fd6bda4a08bebe86b)
2018-11-27 16:20:30 -05:00
Tim Steinbach
9aff7df93e linux: 4.9.140 -> 4.9.141
(cherry picked from commit 94906bfefed6cb7c1fe53fceb81038ddc8ee8ebc)
2018-11-27 16:20:29 -05:00
Tim Steinbach
1e1faecaeb linux: 4.4.164 -> 4.4.165
(cherry picked from commit 2c3325ecf9af6f1d5a237190028d28a44ba210b3)
2018-11-27 16:20:29 -05:00
Peter Simons
86d1ba34b4 gnome3.gnome-keyring: disable test suite on i686 to fix the build
https://github.com/NixOS/nixpkgs/issues/51121
2018-11-27 17:43:09 +01:00
Pascal Bach
aa4599bef0 gitlab-runner: 11.2.0 -> 11.5.0
(cherry picked from commit c3c57c798f)
2018-11-27 13:48:59 +01:00
Vladimír Čunát
56aac496ff sssd: fix build with updated curl-7.62
Fixes #51106.

(cherry picked from commit 439bf86ca9)
The patch seems very safe to pick.
2018-11-27 12:58:10 +01:00
Jörg Thalheim
f3fbb8543d nixopsUnstable: 1.6.1pre2622_f10999a -> 1.6.1pre2706_d5ad09c
This fixes evaluation with the latest master.

(cherry picked from commit cbea2201db)
2018-11-27 11:29:49 +00:00
Pierre Bourdon
a281d8dcac php72: 7.2.11 -> 7.2.12
(cherry picked from commit ec3d829257)
2018-11-27 02:57:35 +01:00
Pierre Bourdon
574e5af5c2 php71: 7.1.23 -> 7.1.24
(cherry picked from commit 8221da343e)
2018-11-27 02:57:34 +01:00
Pierre Bourdon
df57073860 php: align Darwin and Linux versions again
Instead of pinning Darwin to older versions, add small patches to
configure.in (7.1) / configure.ac (7.2) to fix the build of the intl
extension on recent PHP versions on Darwin.

fix-paths-php7.patch also required changes -- since we now run autoconf
at build time (through ./buildconf), it needs to patch the input .m4
files instead of ./configure directly.

(cherry picked from commit ea10173045)
2018-11-27 02:57:34 +01:00
Elis Hirwing
a294c126de php72: 7.2.10 -> 7.2.11
Changelog: https://secure.php.net/ChangeLog-7.php#7.2.11
(cherry picked from commit b9773bd12e)
2018-11-27 02:41:06 +01:00
Elis Hirwing
96d56c8635 php71: 7.1.22 -> 7.1.23
Changelog: https://secure.php.net/ChangeLog-7.php#7.1.23
(cherry picked from commit 36e3fdd9b6)
2018-11-27 02:40:56 +01:00
Florian Klink
86e84c6d15 gitlab tests: enable recommendedProxySettings, test redirection works as it should
The nixos test is a bit misleading, as the given nginx configuration
would always cause gitlab to redirect to localhost, which is clearly not
what you want in a production setup.

Instead we now enable services.nginx.recommendedProxySettings,
curl against http://gitlab, and assure we get redirected to that same
hostname, too.

(cherry picked from commit 6870eafe72)
2018-11-26 18:53:20 +01:00
Florian Klink
3e65e8d949 gitaly: 0.125.1 -> 0.129.0
(cherry picked from commit 63f25471cb)
2018-11-26 18:53:13 +01:00
Florian Klink
a8b34b1f0b gitlab-workhorse: 7.0.0 -> 7.1.0
(cherry picked from commit a33622e4d4)
2018-11-26 18:53:04 +01:00
Florian Klink
808219bd72 gitlab-shell: 8.3.3 -> 8.4.1
(cherry picked from commit 293a631081)
2018-11-26 18:52:57 +01:00
Florian Klink
3d05f49362 gitlab: 11.4.4 -> 11.5.0, add data.json, make default.nix use it
(cherry picked from commit 625e66d879)
2018-11-26 18:52:49 +01:00
Florian Klink
3905118d6d gitlab-workhorse: rename srcs attribute to src
(cherry picked from commit 3233efb33b)
2018-11-26 18:52:24 +01:00
Florian Klink
c3b6aab73c gitlab-workhorse: drop deterministic-build.patch
we already set VERSION in makeFlags below.

(cherry picked from commit 8b51e837b9)
2018-11-26 18:52:14 +01:00
Florian Klink
bfc48c7774 gitlab-workhorse: move to pkgs/applications/version-management/gitlab
(cherry picked from commit d768e3967f)
2018-11-26 18:52:06 +01:00
Florian Klink
c430d13132 gitaly: move to pkgs/applications/version-management/gitlab
(cherry picked from commit cb79c1e60b)
2018-11-26 18:51:59 +01:00
Florian Klink
df9c1df139 gitlab-shell: move to pkgs/applications/version-management/gitlab
(cherry picked from commit 8e8f692e22)
2018-11-26 18:51:54 +01:00
Pierre Bourdon
a7fd4310c0 curl: cherry-pick upstream patch for ipv6 url parsing
Upstream bug: curl/curl#3218.

This causes nixos/tests/ipv6.nix to fix since the last staging merge.

(cherry picked from commit 90720d0139)
In the end I decided to pick it directly without staging,
so that the various security fixes get to stable* channels fast.
2018-11-25 14:01:31 +01:00
Joachim F
3559a6430e Merge #48084: steam: add libxcb to steamrt overrides
(cherry picked from commit 30008a1cda)

Fixes #47932.  On 18.09 we still have libxcb 1.12, but I expect the
change will help with mixing versions, and it seems safe anyway.
2018-11-25 10:46:22 +01:00
Renaud
f3cc68c505 Merge pull request #51014 from c0bw3b/pkg/1809/nvidia-legacy
[18.09] nvidia_legacy_340: 340.104 -> 340.107
2018-11-25 09:02:49 +01:00
Florian Jacob
70cf0cba42 nvidia_legacy_340: 340.104 -> 340.107
(cherry picked from commit 045575e744)
2018-11-25 08:40:43 +01:00
Renaud
5340848b61 Merge pull request #50988 from timor/release-18.09
libmtp: 1.1.15 -> 1.1.16
2018-11-24 20:26:33 +01:00
timor
5be73b4b1d libmtp: 1.1.15 -> 1.1.16
This fixes the problem of connecting android phones via MTP in kde/dolphin.

Original Bug description: https://bugs.kde.org/show_bug.cgi?id=387454

(cherry picked from commit 79f148c2e0)
2018-11-24 19:00:52 +01:00
Vladimír Čunát
87d114352c Merge branch 'staging-18.09' into release-18.09
Multiple CVE fixes.
2018-11-24 10:20:24 +01:00
Unknown
5d4a1a3897 marble: Fix include install to dev output
(cherry picked from commit 956a4b2bb6)

Fixes #50938
2018-11-24 00:40:22 -05:00
Franz Pletz
b2030e8240 browserpass: 2.0.18 -> 2.0.22
(cherry picked from commit 5ea22c49f1)
2018-11-24 01:37:01 +01:00
Franz Pletz
96550b30d1 matrix-synapse: 0.33.8 -> 0.33.9
(cherry picked from commit 2bf16cbbc3)
2018-11-23 21:13:15 +01:00
Peter Hoeg
247fea906a matrix-synapse: prepare for python3 switch
With this commit, we *can* swap python2 for python3 to run synapse using python3
instead.

The reason for not making the switch is that a number of CLI tools provided with
synapse do not yet work under py3 despite synapse running fine.

So this doesn't actually do anything on its own except to prepare for the
upcoming py3 switch.

(cherry picked from commit dc74c44e67)
2018-11-23 21:13:14 +01:00
Will Dietz
aa3f523dd5 pythonPackages.sqlalchemy: 1.2.11 -> 1.2.13
(cherry picked from commit b8229dd2dc)
2018-11-23 19:32:29 +01:00
Will Dietz
06a935b7ee sqlite: 3.25.2 -> 3.25.3
https://sqlite.org/releaselog/3_25_3.html
(cherry picked from commit 6f0c65ee3f)
2018-11-23 19:32:29 +01:00
Will Dietz
6b5273508b sqlite: 3.25.1 -> 3.25.2
(cherry picked from commit 2e2740165a)
2018-11-23 19:32:29 +01:00
Will Dietz
631572e453 sqlite: 3.25.0 -> 3.25.1
(cherry picked from commit daf738f55d)
2018-11-23 19:32:29 +01:00
Will Dietz
628ea26c63 sqlite: 3.24.0 -> 3.25.0
https://sqlite.org/releaselog/3_25_0.html
(cherry picked from commit 0c7b1576dd)
2018-11-23 19:32:29 +01:00
Andreas Rammhold
43ca58ebed libpng: 1.6.34 -> 1.6.35
(cherry picked from commit e5deb04fed)
2018-11-23 19:32:29 +01:00
Andreas Rammhold
7146449bf4 nss: 3.39 -> 3.40
(cherry picked from commit 376f4b9f05)
2018-11-23 19:32:29 +01:00
Franz Pletz
1fd295ff0d minetest: 0.4.17 -> 0.4.17.1
(cherry picked from commit f88543769e)
2018-11-23 17:54:22 +01:00
Edward Tjörnhammar
3960912a49 minetest: 0.4.16 -> 0.4.17
(cherry picked from commit 8ff9e78dc1)
2018-11-23 17:54:21 +01:00
Franz Pletz
991beddf1a riot-web: 0.17.3 -> 0.17.6
(cherry picked from commit 64da5fcfac)
2018-11-23 17:53:29 +01:00
R. RyanTM
7f2243a396 riot-web: 0.17.0 -> 0.17.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/riot-web/versions

(cherry picked from commit f091b32b16)
2018-11-23 17:53:28 +01:00
R. RyanTM
4acd14a9a4 riot-web: 0.16.5 -> 0.17.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/riot-web/versions

(cherry picked from commit 5d88d542e3)
2018-11-23 17:53:28 +01:00
Franz Pletz
3d64330807 batman_adv: 2018.2 -> 2018.4
(cherry picked from commit b62a18b0c2)
2018-11-23 17:53:28 +01:00
R. RyanTM
95137ab11b batctl: 2018.3 -> 2018.4 (#50826)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/batctl/versions

(cherry picked from commit 119e4e30c8)
2018-11-23 17:53:27 +01:00
R. RyanTM
68c6f0c399 alfred: 2018.2 -> 2018.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/alfred/versions

(cherry picked from commit 40ea9c7143)
2018-11-23 17:53:27 +01:00
R. RyanTM
d869774152 batctl: 2018.2 -> 2018.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/batctl/versions

(cherry picked from commit 6d8f22a58b)
2018-11-23 17:53:27 +01:00
Vladimír Čunát
9f5c1566d2 Merge branch 'release-18.09' into staging-18.09 2018-11-23 16:39:52 +01:00
Tim Steinbach
932e0f30c4 linux: 4.19.3 -> 4.19.4
(cherry picked from commit 13e38d8180)
2018-11-23 08:34:55 -05:00
Tim Steinbach
9fba76c579 linux: 4.14.82 -> 4.14.83
(cherry picked from commit 86f9ac22e2)
2018-11-23 08:34:55 -05:00
Tim Steinbach
67800921ed linux: 4.9.138 -> 4.9.140
(cherry picked from commit 5879586e01)
2018-11-23 08:34:54 -05:00
Bas van Dijk
a85aacc806 Merge pull request #50880 from ElvishJerricco/18.09-bump-ghcjs-2018-11-21
Backport #50879
2018-11-23 12:17:38 +01:00
Ingolf Wagner
172eb14358 bitwig-studio1: fix dependency to libxkbcommon_7
(cherry picked from commit 6fcc67e189)
2018-11-23 03:40:58 -05:00
Ingolf Wagner
fabf2dd765 libxkbcommon: split version (for bitwig)
(cherry picked from commit b499f924da)
2018-11-23 03:39:52 -05:00
Robert Schütz
636b2b2da9 linuxPackages.{spl,zfs}: 0.7.11 -> 0.7.12
(cherry picked from commit d9cd9acc24)
2018-11-22 20:54:29 +01:00
Linus Heckemann
51076ed20c lib/licenses: remove bsl10
Licence isn't used anywhere and nonfree.

(cherry picked from commit 4ef0760808)
2018-11-22 16:02:50 +01:00
Linus Heckemann
c7519bd468 lib/licenses: mark some as unfree
AMD license agreement (currently unavailable at the given URL, but
included in tarball) disallows reverse-engineering, modification,
redistribution etc;

BSL licenses limit commercial production use.

(cherry picked from commit 8fb1e5e166)
2018-11-22 16:02:46 +01:00
Jörg Thalheim
21517c60d9 netdata: create missing /etc/netdata
Since netdata 1.11.0 updated in https://github.com/NixOS/nixpkgs/pull/50459
it needs to have a /etc/netdata directory, which we did not create by default.
fixes #50893
2018-11-21 23:12:54 +00:00
Thomas Tuegel
012b9e6c21 Merge pull request #50877 from ttuegel/backport/50472
nixos/fontconfig: fix enable option of penultimate
2018-11-21 14:02:53 -06:00
Tim Steinbach
dfd23be5a3 linux: 4.19.2 -> 4.19.3
(cherry picked from commit 8f11b37a95)
2018-11-21 09:54:30 -05:00
Tim Steinbach
d0193db8af linux: 4.18.19 -> 4.18.20
(cherry picked from commit ff82d7c786)
2018-11-21 09:54:30 -05:00
Tim Steinbach
42151716eb linux: 4.14.81 -> 4.14.82
(cherry picked from commit 3667a91b78)
2018-11-21 09:54:30 -05:00
Tim Steinbach
c90a18b60b linux: 4.9.137 -> 4.9.138
(cherry picked from commit 0e7dafe8c0)
2018-11-21 09:54:29 -05:00
Tim Steinbach
bb10644e6f linux: 4.4.163 -> 4.4.164
(cherry picked from commit e822b9680b)
2018-11-21 09:54:29 -05:00
Orivej Desh
29842ed37d movit: 1.5.1 -> 1.6.2, fix build after #49310
Fixes #49883

(cherry picked from commit 6daa1938b6)
2018-11-21 14:59:02 +01:00
Will Fancher
716bacecbf Bump GHCJS 8.4 2018-11-21 08:08:30 -05:00
Johannes Frankenau
bfb89a3d12 nixos/fontconfig: fix enable option of penultimate
(cherry picked from commit eea86c9e71)
2018-11-21 06:42:33 -06:00
Peter Simons
03dc6471c1 Merge pull request #50806 from twhitehead/release-18.09
haskellPackages.generic-lens: apply patch to fix tests
2018-11-20 20:50:28 +01:00
Nathan van Doorn
869d900dca haskellPackages.generic-lens: apply patch to fix tests
(cherry picked from commit 550fe159f0)
2018-11-20 13:21:36 -05:00
Michael Raskin
f7da99c4b9 Merge pull request #50839 from taku0/flashplayer-31.0.0.153
flashplayer: 31.0.0.122 -> 31.0.0.153
(cherry picked from commit d3bdf3fe98)
2018-11-20 19:46:15 +03:00
Renaud
9feb8b74e0 Merge pull request #50698 from nyanloutre/makemkv-update-18.09
[18.09] makemkv: 1.12.3 -> 1.14.1
2018-11-20 10:33:45 +01:00
nyanloutre
e24bc96919 makemkv: using two URLs for src
This will prevent future failures due to the first URL being broken each
time a new version is released

See https://github.com/NixOS/nixpkgs/pull/50437#issuecomment-439329862
for details

(cherry picked from commit 05166dcce1)
2018-11-20 09:48:27 +01:00
Herwig Hochleitner
c1427bf45f chromium: add jdk.jre to build dependencies for versions >= 72
thanks for finding out @volth
see 6fba9250aa

(cherry picked from commit bac76e8a9e)
2018-11-20 01:03:23 +01:00
Herwig Hochleitner
7fd90514b3 chromium: 70.0.3538.102 -> 70.0.3538.110
CVE-2018-17479

(cherry picked from commit 7c79a0d4ac)
2018-11-19 23:53:30 +01:00
taku0
04005e5f71 firefox: 63.0.1 -> 63.0.3
(cherry picked from commit 917309fa62)
2018-11-19 20:34:25 +01:00
Vladyslav M
e980db62d3 Merge pull request #50660 from samueldr/auto/dbeaver/nixos-18.09/5.2.5
dbeaver: 5.2.4 -> 5.2.5 (18.09)
2018-11-19 21:22:48 +02:00
Tim Steinbach
df5ce5b5bb openjdk: 8u181 -> 8u192
(cherry picked from commit 7f7c4e423186fcd55f2f5fa6800707dd07d6b5b6)
2018-11-19 14:08:13 -05:00
Michael Raskin
d85622d616 Merge pull request #50755 from tokudan/ff6303
firefox-bin: 63.0.1 -> 63.0.3
2018-11-19 17:51:34 +00:00
taku0
01338788ac firefox-bin: 63.0.1 -> 63.0.3
(cherry picked from commit fa138b55a6)
2018-11-19 18:29:04 +01:00
nyanloutre
9071b93a71 makemkv: 1.14.0 -> 1.14.1
(cherry picked from commit 30bc36c64e)
2018-11-19 10:48:50 +01:00
Daniël de Kok
3aca7b859f makemkv: 1.12.3 -> 1.14.0
Changes: https://www.makemkv.com/download/history.html

Since this derivation only support Linux on x86_64, set the platform
meta data accordingly.

(cherry picked from commit f528731fe9)
2018-11-19 10:48:42 +01:00
Ivan Jager
50fb682075 zfsUnstable: 0.8.0-rc1 -> 0.8.0-rc2
(cherry picked from commit a995a81182)
2018-11-19 08:12:37 +01:00
Jörg Thalheim
4852b57781 zfs{Stable,Unstable}: mark as incompatible with 4.19
(cherry picked from commit 8609ff17ed)
2018-11-19 08:12:37 +01:00
Lenz Weber
2386f0982f zfs-unstable: 2018-09-02 -> 0.8.0-rc1 (#46543)
(cherry picked from commit 218ce4de50)
2018-11-19 08:12:06 +01:00
Lenz Weber
c97912743f zfs-unstable: 64e9696 -> c197a77
(cherry picked from commit 080a6385ff)
2018-11-19 08:11:48 +01:00
rnhmjoj
c2f36881f6 monero-gui: 0.13.0.3 -> 0.13.0.4
(cherry picked from commit 88a86f78a3)
2018-11-19 08:10:23 +01:00
fuwa
3d50d1bde1 monero: 0.13.0.3 -> 0.13.0.4
(cherry picked from commit 40d7e12685)
2018-11-19 08:10:20 +01:00
Samuel Dionne-Riel
58dd475e6c dbeaver: 5.2.4 -> 5.2.5
(cherry picked from commit 47d1bcc873)
2018-11-18 20:32:34 -05:00
Renaud
734cc38c75 Merge pull request #50613 from c0bw3b/sec/1809/live555
[18.09] live555: 2018.02.28 -> 2018.10.17
2018-11-18 20:14:40 +01:00
c0bw3b
d03b29fc55 live555: broken on aarch64
(cherry picked from commit 525e397f64)
2018-11-18 18:03:22 +01:00
Peter Hoeg
46d5ce21a9 live555: 2018.02.28 -> 2018.10.17
(cherry picked from commit fb81d629ac)
2018-11-18 18:03:08 +01:00
Gabriel Ebner
e1bd04a3f4 Revert "openjdk11: enable ZGC on x86_64-linux"
We don't have openjdk11 on 18.09, and this breaks openjdk10:
https://hydra.nixos.org/build/84099818/nixlog/1

This reverts commit 5d0ef3fd90.
2018-11-18 12:08:56 +01:00
Austin Seipp
b37872d426 foundationdb: set RELEASE=true for official builds
This ensures the proper version is reported in the server status
information; otherwise it has a '-PRERELEASE' suffix.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 47b3086bdf)
2018-11-17 22:13:49 -06:00
Jörg Thalheim
f0445db9b4 netdata: fix python plugins
(cherry picked from commit e08ee4971652b402888e2bc2ecec75a83ba661d8)
2018-11-17 20:34:34 +00:00
Jan Tojnar
656288f7bf Merge pull request #50507 from hedning/fix-nautilus-thumbnails
gnome3.gnome-desktop: fix path substitution
2018-11-17 19:12:06 +01:00
Tor Hedin Brønner
35c64e56c7 gnome3.gnome-desktop: fix path substitution
`substituteAll` intentionally doesn't work with all caps:
https://github.com/NixOS/nixpkgs/issues/28086
2018-11-17 16:09:24 +01:00
Jörg Thalheim
34ff87e288 nixos/netdata: own plugins must the looked up first
Otherwise netdata will not find python modules.
To make sure netdata still pick up our setuid version of apps.plugin
we rename the original executable.
2018-11-17 15:05:54 +00:00
Jörg Thalheim
aa31685d60 netdata: Disable files in /etc and /var 2018-11-17 15:05:54 +00:00
Mario Rodas
74592d67f4 netdata: 1.10.0 -> 1.11.0 2018-11-17 15:05:53 +00:00
Victor SENE
3078bca9ed fprintd: use correct path for configuration
(cherry picked from commit a70779458a)
2018-11-17 08:22:45 +01:00
Austin Seipp
0f7a562edd foundationdb60: 6.0.11pre2716 -> 6.0.15
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 8d4f8a6d26)
2018-11-16 20:38:47 -06:00
Austin Seipp
d359c39bb6 foundationdb: rework python bindings, build system
FoundationDB uses Python at build time for some code generation.
However, it also has the official python bindings inside the source code
too, and the code for the Python bindings has some of it auto-generated
at compile time.

This made building python packages unattractive: we want to use the
source code generated from the FoundationDB build, but we don't want to
rebuild it. Previously we would override the 'python' input to the
FoundationDB module, but this meant we would do a complete rebuild, as
it was a necessary build time dependency, even though the resulting
generated code itself would not change. Furthermore, FoundationDB
versions < 6.0 don't properly support Python 3 *for the build system*,
though the bindings supported it, so that caused build failures. But the
first effect is the worst: it meant building separate python2 and
python3 packages implied two complete rebuilds of a single FoundationDB
version. This meant rather than 3 FDB builds, we'd do 3*N where N = the
number of major Python versions we support.

Finally, because we did not use pip to generate a wheel that we install
with metadata recorded for the installation, the FoundationDB python
package couldn't be used as an input to other setup.py-based packages:
there would be no recorded metadata in the dist-info folder which would
say this is the foundationdb package. This greatly limits its utility.

To fix all this, we do a few things:

  - Apply some patches to fix the build system with Python 3.x for
    older FoundationDB versions. (This is nice if end-users have
    overridden the global Python version for some reason.)
  - Move python directly into nativeBuildInputs, so it is only a
    build time dependency.
  - Take the python source code from the ./bindings directory and
    tar it up use later after the build is done, so we get to keep
    the generated code. This is the new 'pythonsrc' output from the
    build. This code doesn't change based on whether or not the input
    or resulting package is using Python 2 or 3, it's totally
    deterministic.
  - The build system also patches up the python source code a little,
    so it can be installed directly with setup.py (it needs a little
    stuff that it normally expects the build system to do.)
  - Rework the python package to a separate file that uses
    buildPythonPackage directly. Because the source code is already
    prepared, it needs almost nothing else. Furthermore, this kills
    the override itself for the foundationdb package, meaning rebuilds
    are no longer needed.
  - This package is very simple and just uses foundationdb.pythonsrc
    as its source input. It also ensures a link to libfdb_c.so can
    be found by ctypes (using substituteInPlace)
  - python-packages.nix now just uses callPackage directly.

The net effect of this is, most importantly, that python packages do not
imply a full rebuild of the server source code: building python2 and
python3 packages from a version of FoundationDB now does not need to
override the foundationdb python input, reducing the number of needless
builds. They instead just run setup.py with the given version as input.

The second biggest effect is that wheel metadata is recorded correctly,
meaning dependent-python-packages that want to use the FoundationDB
bindings e.g. from PyPi should now work fine with buildPythonPackage.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 6054dabc11)
2018-11-16 20:38:41 -06:00
Austin Seipp
eec1fa5132 foundationdb: include fdb.options in .dev for binding generators
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 32948a6f3d)
2018-11-16 20:38:36 -06:00
Austin Seipp
1d3d52afe2 foundationdb60: 6.0.4pre2497_73d64cb2 -> 6.0.11pre2716_9e8c1941e
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit f1737fa646)
2018-11-16 20:38:30 -06:00
Austin Seipp
5d0ef3fd90 openjdk11: enable ZGC on x86_64-linux
The Z Garbage Collector is a concurrent, scalable, low latency garbage
collector designed to meet extremely-low-pause-time requirements for
small-to-multi-TB heap sizes.

ZGC can be enabled with the magical incantation:

    $ java -XX:+UnlockExperimentalVMOptions -XX:+UseZGC ...

Currently, ZGC is only available for x86_64-linux (though a port for
aarch64-linux may become available at a future time.) There are also a
number of other features that currently aren't present, such as JVMCI
integration (meaning compiler tools like Graal which require JVMCI will
not work with ZGC enabled.)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 1629147423)
2018-11-16 20:38:08 -06:00
Alexander V. Nikolaev
894a9994e8 glfw: hardwire path to libGL.so.1
(cherry picked from commit f664181ef2)
2018-11-17 01:38:55 +00:00
Will Dietz
5d07a3270e curl: 7.61.1 -> 7.62.0
See
https://github.com/NixOS/nixpkgs/issues/49463#issuecomment-434617623

(cherry picked from commit e9d6475e68)
2018-11-16 23:45:58 +01:00
Tim Steinbach
aff3b08b43 curl: 7.61.0 -> 7.61.1
(cherry picked from commit 16650af8c3)
2018-11-16 23:45:34 +01:00
Peter Hoeg
222fa75fde unifiStable: 5.8.30 -> 5.9.29
(cherry picked from commit ef927360e3)
2018-11-16 22:43:00 +01:00
Pascal Bach
6df7719e9e unifiStable: 5.8.28 -> 5.8.30
(cherry picked from commit 9cab954ab6)
2018-11-16 22:42:26 +01:00
Pascal Bach
4d13398cd9 unifiTesting: 5.9.22 -> 5.9.29
(cherry picked from commit 8fa7b89353)
2018-11-16 22:42:15 +01:00
Lancelot SIX
cff4cb689f gnupg22: 2.2.10 -> 2.2.11
See http://lists.gnu.org/archive/html/info-gnu/2018-11/msg00003.html for
release information

(cherry picked from commit ace631b616)
2018-11-16 13:01:16 +01:00
Rob Vermaas
e0eb712136 Update GCE image for 18.09 2018-11-16 11:42:43 +01:00
Lancelot SIX
c0f1a40da3 postgresql_10: 10.5 -> 10.6
See https://www.postgresql.org/about/news/1905/ for release information.
Fixes CVE-2018-16850

(cherry picked from commit 575151eb08)
2018-11-16 09:43:42 +01:00
Lancelot SIX
8d2a122b82 postgresql_9_6: 9.6.10 -> 9.6.11
See https://www.postgresql.org/about/news/1905/ for release information.
Fixes CVE-2018-16850

(cherry picked from commit 1670fd115d)
2018-11-16 09:42:24 +01:00
Lancelot SIX
16f5419791 postgresql_9_5: 9.5.14 -> 9.5.15
See https://www.postgresql.org/about/news/1905/ for release information.
Fixes CVE-2018-16850

(cherry picked from commit f703ea62a0)
2018-11-16 09:39:08 +01:00
Lancelot SIX
c022a69fd9 postgresql_9_4: 9.4.19 -> 9.4.20
See https://www.postgresql.org/about/news/1905/ for release information.
Fixes CVE-2018-16850

(cherry picked from commit 882c3b529c)
2018-11-16 09:37:41 +01:00
Lancelot SIX
2f3573359b postgresql_9_3: 9.3.24 -> 9.3.25
See https://www.postgresql.org/about/news/1905/ for release information.
Fixes CVE-2018-16850

(cherry picked from commit 5d37d63388)
2018-11-16 09:36:14 +01:00
Lancelot SIX
76a06b02ec gnupg22: 2.2.9 -> 2.2.11
See http://lists.gnu.org/archive/html/info-gnu/2018-11/msg00003.html for
release information

(cherry picked from commit ace631b616)
2018-11-16 09:32:42 +01:00
Tim Steinbach
a4d225c278 linux: 4.19.1 -> 4.19.2
(cherry picked from commit 248dfd2842)
2018-11-15 21:03:51 -05:00
Tim Steinbach
826e7b3bf0 linux: 4.19 -> 4.19.1
(cherry picked from commit 3e1ca4f176)
2018-11-15 21:03:50 -05:00
Tim Steinbach
21146197c3 linux: Add 4.19
(cherry picked from commit 2bb68c7017)
2018-11-15 21:03:44 -05:00
Edmund Wu
da81531c1d jetbrains.webstorm: 2018.2.5 -> 2018.2.6
(cherry picked from commit 07839a571b)
2018-11-15 23:50:24 +00:00
Edmund Wu
a3ce85af74 jetbrains.pycharm-professional: 2018.2.4 -> 2018.2.5
(cherry picked from commit 19fa47c150)
2018-11-15 23:50:23 +00:00
Edmund Wu
f2643c4498 jetbrains.pycharm-community: 2018.2.4 -> 2018.2.5
(cherry picked from commit 1a2a2aba02)
2018-11-15 23:50:23 +00:00
Edmund Wu
863f9933c1 jetbrains.idea-ultimate: 2018.2.5 -> 2018.2.6
(cherry picked from commit b48f467e1b)
2018-11-15 23:50:22 +00:00
Edmund Wu
010446f764 jetbrains.idea-community: 2018.2.5 -> 2018.2.6
(cherry picked from commit c2bbfa56ed)
2018-11-15 23:50:22 +00:00
Edmund Wu
0883f7fba3 jetbrains.goland: 2018.2.3 -> 2018.2.4
(cherry picked from commit 2787e2c75e)
2018-11-15 23:50:22 +00:00
Edmund Wu
a23ee32fc6 jetbrains.datagrip: 2018.2.4 -> 2018.2.5
(cherry picked from commit 4d20e9999b)
2018-11-15 23:50:21 +00:00
Edmund Wu
597c1abbc0 jetbrains.clion: 2018.2.5 -> 2018.2.6
(cherry picked from commit 9d1b22a909)
2018-11-15 23:50:21 +00:00
Edward Tjörnhammar
975fe6d830 jetbrains.webstorm: 2018.2.3 -> 2018.2.5
(cherry picked from commit 30422aa7d0)
2018-11-15 23:50:21 +00:00
Edward Tjörnhammar
1c16a9a551 jetbrains.ruby-mine: 2018.2.2 -> 2018.2.4
(cherry picked from commit e61f199470)
2018-11-15 23:50:20 +00:00
Edward Tjörnhammar
b3f7d81f46 jetbrains.phpstorm: 2018.2.3 -> 2018.2.5
(cherry picked from commit b8096a088e)
2018-11-15 23:50:20 +00:00
Edward Tjörnhammar
4eafa0f009 jetbrains.clion: 2018.2.4 -> 2018.2.5
(cherry picked from commit 8c084007d5)
2018-11-15 23:50:19 +00:00
Jörg Thalheim
8c898a91af Merge pull request #50436 from rafaelgg/fix-selfoss-port-backport
selfoss (service): fix port in service config (backport of #50411)
2018-11-15 23:12:32 +00:00
Rafael García Gallego
17293a833c selfoss (service): fix port in service config (#50411)
(cherry picked from commit 8bf4fe85f1)
2018-11-16 00:05:54 +01:00
Alyssa Ross
8fa2565a73 nginxMainline: 1.15.5 -> 1.15.6
CVE-2018-16843, CVE-2018-16844

https://nginx.org/en/security_advisories.html
(cherry picked from commit de9026de6e)
2018-11-15 21:11:49 +00:00
Alyssa Ross
850a8779f3 nginxStable: 1.14.0 -> 1.14.1
CVE-2018-16843, CVE-2018-16844

https://nginx.org/en/security_advisories.html
(cherry picked from commit 1908322d10)
2018-11-15 21:11:42 +00:00
Will Dietz
679ff5e5a1 flatpak: 1.0.4 -> 1.0.5
(cherry picked from commit 0e218ffc0c)
2018-11-15 21:02:00 +00:00
Oyren
533c5bcdeb write_stylus: fix loading libGL.so with libglvnd (#50395)
./Write: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

(cherry picked from commit 04b234e995)
2018-11-15 19:41:41 +00:00
Jean-Baptiste Giraudeau
2e790145d1 Fix help2man.postInstall syntax error under cygwin.
(cherry picked from commit 7fdb87a862)
2018-11-15 17:06:54 +00:00
Benjamin Hipple
dcb2e0068f docs: fix minor grammar issues in the manual 2018-11-15 15:48:49 +00:00
Peter Simons
012203f6e5 ghc: add new version 8.6.2
(cherry picked from commit 8d81cf6201)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-15 14:26:36 +00:00
taku0
24da975834 flashplayer: 31.0.0.122 -> 31.0.0.148
(cherry picked from commit 4c2d254a7f)
2018-11-15 14:20:11 +00:00
Periklis Tsirakidis
8ea0aa352e libarchive: 3.3.2 -> 3.3.3
Update includes patches for sec issues:
- CVE-2017-14166
- CVE-2017-14501
- CVE-2017-14502
- Upstream includes patch for libressl version check

fixes #49583

(cherry picked from commit 95fa7b6370)
2018-11-15 14:01:32 +00:00
Jörg Thalheim
abd0d521c3 nix-review: 0.6.0 -> 0.6.1
- blacklist for tests.nixos-functions.nixos-test
- nix-review rev HEAD: will now work as expected

(cherry picked from commit 695a157740)
2018-11-15 13:42:44 +00:00
Jörg Thalheim
95bc67101a nix-review: 0.5.3 -> 0.6.0
(cherry picked from commit 42f17d8f14)
2018-11-15 13:42:44 +00:00
Jörg Thalheim
825ecf0a0a nix-review: 0.5.2 -> 0.5.3
(cherry picked from commit 23a017fbca)
2018-11-15 13:42:43 +00:00
Robin Gloster
9bf8b0d06b gitlab: fix smtp setting
fixes #50163

(cherry picked from commit 74df0823f3)
2018-11-15 12:19:34 +01:00
John Ericson
edd03bed0f Merge pull request #50375 from obsidiansystems/haskell-bash-completion-18.09
haskellPackages: Add shell completion for 18.09
2018-11-14 19:06:07 -05:00
John Ericson
bb04322459 Merge remote-tracking branch 'upstream/release-18.09' into haskell-bash-completion-18.09 2018-11-14 18:49:25 -05:00
wucke13
bedbba6138 qgroundcontrol: fixes #49870
The `.desktop` referenced a non existent script to run `QGroundControl`. This commits adds a `sed` command, which replaces the non existent script by the name of the `QGroundControl` binary in the relevant `.desktop` file.

(cherry picked from commit c26b42be74)
2018-11-14 19:15:56 +00:00
Alexander V. Nikolaev
cf3ef93e04 openarena: fix loading libGL.so with libglvnd
(cherry picked from commit b0d470061f)
2018-11-14 17:50:31 +00:00
Daniel Peebles
435cfc8876 Merge pull request #50352 from DzmitrySudnik/release-18.09
exhibitor: fix paths for zookeeper shell scripts
2018-11-14 11:05:35 -05:00
Dzmitry Sudnik
1e3a4d644a exhibitor: fix paths for zookeeper shell scripts to point to local folders
(cherry picked from commit 5517661935)
2018-11-14 11:01:51 -05:00
Renaud
a74b08d71a Merge pull request #49549 from c0bw3b/sec/1809/openjpeg
[18.09] openjpeg: adding patch for CVE-2018-7648
2018-11-14 16:35:49 +01:00
Herwig Hochleitner
a964a33447 chromium: 70.0.3538.77 -> 70.0.3538.102
(cherry picked from commit 4b5ffcb964)
2018-11-14 03:06:19 +01:00
Herwig Hochleitner
09468e9f52 chromium: 70.0.3538.67 -> 70.0.3538.77
(cherry picked from commit 17585ff6d8)
2018-11-14 03:06:19 +01:00
Markus Kowalewski
4c72d0ce20 nixos/postgresqlBackup: set to umask to 0077
* Ensure that the backup file is only readable by the owner
* Add file permission test to tests

(cherry picked from commit a0371d4761)
2018-11-13 20:41:38 -05:00
Tim Steinbach
c293626323 linux: 4.18.18 -> 4.18.19
(cherry picked from commit aac632ce90b86d8734e2d0c5955a8f77259ff619)
2018-11-13 14:36:18 -05:00
Tim Steinbach
918e0e6fff linux: 4.14.80 -> 4.14.81
(cherry picked from commit 338d38e57b68e12a2f015e9eabe561accefcad4f)
2018-11-13 14:36:18 -05:00
Tim Steinbach
a2256b54dd linux: 4.9.136 -> 4.9.137
(cherry picked from commit 7395bd34f76e22abc4e4c79847fd978a713da932)
2018-11-13 14:36:18 -05:00
Timo Kaufmann
0f21a3e0f2 Merge pull request #50309 from nyanloutre/jackett-434-18-09
[18.09] jackett: 0.10.365 -> 0.10.434
2018-11-13 19:56:20 +01:00
Linus Heckemann
132b1d6a58 Merge pull request #50312 from WilliButz/grafana-backport
grafana: 5.3.2 -> 5.3.4 (backport)
2018-11-13 16:50:41 +01:00
WilliButz
559a34303f grafana: 5.3.2 -> 5.3.4
(cherry picked from commit ddd8f94051a452d35f463ad8927f6beae667d277)
2018-11-13 14:38:50 +01:00
nyanloutre
a97fe124c6 jackett: 0.10.420 -> 0.10.434
(cherry picked from commit 2ae0b2e19d)
2018-11-13 14:17:18 +01:00
R. RyanTM
57809e32fc jackett: 0.10.365 -> 0.10.420
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/jackett/versions

(cherry picked from commit 2af7527bd1)
2018-11-13 14:17:09 +01:00
Samuel Dionne-Riel
09dfd188bd Merge pull request #50268 from tokudan/ff6301
firefox-bin: 63.0 -> 63.0.1
2018-11-12 23:30:17 +00:00
Joachim F
d9d932fdd4 Merge pull request #50260 from pacien/release-18.09-youtube-dl-2018.11.07
youtube-dl: 2018.10.29 -> 2018.11.07 (release-18.09 backport)
2018-11-12 11:43:31 +00:00
Michael Raskin
b988f3ef58 firefox-bin: 63.0 -> 63.0.1
(cherry picked from commit 213407d471)
2018-11-12 11:31:33 +01:00
Valentin Heidelberger
297149bacb youtube-dl: 2018.10.29 -> 2018.11.07 2018-11-12 09:34:18 +01:00
Elis Hirwing
ee7b0dbaef gitea: 1.5.2 -> 1.5.3 (#50229)
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.5.3
(cherry picked from commit 090bd931e1)
2018-11-11 15:28:09 +01:00
Chris Ostrouchov
8cc5d3a84a pythonPackages.pep8: refactor move to python-modules, disable tests
We need to disable tests because of a tokenize change in python 3.6.7.

(cherry picked from commit 9c36906e1a)
2018-11-11 09:38:10 +01:00
Frederik Rietdijk
f148e894b3 python.pkgs.pycodestyle: fix building with python37
(cherry picked from commit a263ab4e5c)
2018-11-11 09:31:01 +01:00
Frederik Rietdijk
3d63c05ddf Revert "Merge staging-18.09 into release-18.09"
This reverts commit 3b2944dbcb, reversing
changes made to 496a23896f.

I wasn't aware we had a Hydra job for this. Looking at it now, it seems we
have a lot more failures, so I am reverting this merge.
2018-11-11 09:17:50 +01:00
Frederik Rietdijk
3b2944dbcb Merge staging-18.09 into release-18.09 2018-11-11 09:01:21 +01:00
Franz Pletz
496a23896f python27: add patch to fix CVE-2018-1000802
(cherry picked from commit ae3e9b5a27)
2018-11-11 09:01:08 +01:00
Silvan Mosberger
272d854642 Merge pull request #50214 from samueldr/18.09/python36
doc: Fixes default python interpreter.
2018-11-11 02:07:58 +01:00
Samuel Dionne-Riel
e30dda6092 doc: Fixes default python interpreter.
This is equivalent to the change in
a649f1c0cd, which cannot apply cleanly as
cherry-picked. The stable (18.09) nixpkgs still has python34.
2018-11-10 19:28:06 -05:00
Tim Steinbach
f9820a0a4b docker: Fix binary names
(cherry picked from commit 68c3e5f38b)
2018-11-10 19:26:38 -05:00
Tim Steinbach
88babf6209 linux: 4.4.162 -> 4.4.163
(cherry picked from commit fb44ed79d22c88145132f49c0747def014528b68)
2018-11-10 16:12:57 -05:00
Tim Steinbach
abc2258c34 linux: 4.9.135 -> 4.9.136
(cherry picked from commit 98b6ecace1eea344987f6f942e88e550825f4aca)
2018-11-10 16:12:56 -05:00
Tim Steinbach
bb62b4987b linux: 4.14.79 -> 4.14.80
(cherry picked from commit e64068cdbfe0a5d6543da6986376763e3d588711)
2018-11-10 16:12:56 -05:00
Tim Steinbach
dfc0a358c4 linux: 4.18.17 -> 4.18.18
(cherry picked from commit a1cc1c89a9de5a3fe27d88558b279a48e0efb7cd)
2018-11-10 16:12:55 -05:00
Vladimír Čunát
9110d40d20 Merge branch 'release-18.09' into staging-18.09 2018-11-10 20:25:46 +01:00
Renaud
f99bab3e61 Merge pull request #50200 from c0bw3b/sec/1809/pdns
[18.09]  powerdns: 4.1.4 -> 4.1.5 /  pdns-recursor: 4.1.3 -> 4.1.7
2018-11-10 20:01:26 +01:00
Renaud
619efcc0e5 pdns-recursor: 4.1.4 -> 4.1.7
PowerDNS Security Advisory 2018-04 (CVE-2018-10851)
PowerDNS Security Advisory 2018-06 (CVE-2018-14626)
PowerDNS Security Advisory 2018-07 (CVE-2018-14644)

(cherry picked from commit 02693e327a)
2018-11-10 18:48:03 +01:00
Michele Guerini Rocco
ddb12efaa0 pdns-recursor: 4.1.3 -> 4.1.4 (#45984)
(cherry picked from commit ca850897c8)
2018-11-10 18:47:44 +01:00
R. RyanTM
166a3d5551 powerdns: 4.1.4 -> 4.1.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/powerdns/versions

(cherry picked from commit 08cd9b812b)
2018-11-10 18:42:57 +01:00
Robert Schütz
bb72473b5b home-assistant: mark as insecure 2018-11-10 14:08:28 +01:00
Samuel Dionne-Riel
aa8c4f38ea Merge pull request #48806 from bgamari/nixos-18.09-ghc-8.4.4
[18.09] ghc: add new 8.4.4 version
2018-11-10 02:34:47 +00:00
Samuel Dionne-Riel
141f63c29b Merge pull request #49387 from tazjin/chore/backport-doc-comments
Backport documentation comment changes to release-18.09
2018-11-10 02:33:51 +00:00
Samuel Dionne-Riel
06834f7262 Merge pull request #49491 from jokogr/u-18.09/lxd-3.0.2
[18.09] lxd 3.0.0 -> 3.0.2
2018-11-10 02:13:50 +00:00
Samuel Dionne-Riel
611808937a Merge pull request #49586 from periklis/backport-uriparser-18.09
uriparser: 0.9.0 backport to 18.09
2018-11-10 02:02:48 +00:00
Renaud
e97b663dba Merge pull request #49851 from samueldr/auto/dbeaver/nixos-18.09/5.2.4
dbeaver: 5.2.2 -> 5.2.4 (18.09)
2018-11-09 10:15:28 +01:00
Renaud
7438211aaa Merge pull request #49954 from c0bw3b/1809/nixos/gitea
[18.09] nixos/gitea: fix mysql issue, add mysql socket auth, and add a nixos test
2018-11-09 00:25:13 +01:00
Aaron Andersen
369df5d24a nixos/gitea: add a nixos test to ensure the initial database migration succeeds so the application can start
(cherry picked from commit 0dde47a58a)
2018-11-08 23:53:25 +01:00
Aaron Andersen
c66f5d2219 nixos/gitea: add mysql socket authentication as an option
(cherry picked from commit 3ed52c7804)
2018-11-08 23:53:06 +01:00
Aaron Andersen
4cfa83f556 nixos/gitea: fix systemd after target when mysql is the database of choice
(cherry picked from commit 0bbb6f4f2a)
2018-11-08 23:52:04 +01:00
Domen Kožar
7819700bad Add chrome-token-signing
(cherry picked from commit 068374c0ae)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-08 18:06:24 +00:00
Tim Steinbach
deedc8803e docker: 18.06.1 -> 18.09
(cherry picked from commit f15af0047a381dd272155cf35c451d9cc8c07c69)
2018-11-08 08:40:39 -05:00
Domen Kožar
094ff6cf6a qdigidoc: 3.13.6 -> 4.1.0
(cherry picked from commit e854a7a72f)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-08 11:43:05 +00:00
Domen Kožar
43a0cfbe05 libdigidocpp: 3.13.6 -> 3.13.7
(cherry picked from commit ad521a2757)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-08 11:42:55 +00:00
Timo Kaufmann
56090c4151 Merge pull request #49888 from timokau/numpy-high-cpu-fix
numpy: fix high cpu count bug
2018-11-08 12:00:12 +01:00
Robert Hensing
4fd4f5c80d acsccid: init at 1.1.6
(cherry picked from commit 9dd7fde27f73b3ff3ecd34a2d0ffedf1aa3a82ce)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-08 10:58:28 +00:00
Tim Steinbach
3715dd31d6 subversion: 1.9.7 -> 1.9.9
(cherry picked from commit 1cfc2427c8)
2018-11-07 20:26:50 -05:00
Tim Steinbach
8764ecc478 subversion: init 1.11.0
(cherry picked from commit 451126ea6e)
2018-11-07 20:26:50 -05:00
Tim Steinbach
a4c4cbb613 gradle: 4.10 -> 4.10.2
(cherry picked from commit c1d9f57dcc)
2018-11-07 20:13:53 -05:00
Tim Steinbach
be8258fdc2 kotlin: 1.2.71 -> 1.3.0
(cherry picked from commit 619c39e5c9)
2018-11-07 20:13:30 -05:00
R. RyanTM
27405f9b87 kotlin: 1.2.70 -> 1.2.71
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/kotlin/versions

(cherry picked from commit 9d8e0819aa)
2018-11-07 20:13:30 -05:00
R. RyanTM
dd6e06b54a kotlin: 1.2.61 -> 1.2.70
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/kotlin/versions

(cherry picked from commit 4eb077bed7)
2018-11-07 20:13:29 -05:00
Tim Steinbach
b20d58f9bb ammonite: 1.2.1 -> 1.4.2
(cherry picked from commit dd46b1adb6)
2018-11-07 20:12:47 -05:00
R. RyanTM
199d87e68d ammonite: 1.2.0 -> 1.2.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/ammonite/versions

(cherry picked from commit 8cf1f60fa3)
2018-11-07 20:12:46 -05:00
Oscar Vargas Torres
b5ceebb306 ammonite: 1.1.2 -> 1.2.0
(cherry picked from commit 08b8923774)
2018-11-07 20:12:46 -05:00
Tim Steinbach
e2cf9127aa oh-my-zsh: 2018-09-19 -> 2018-11-02
(cherry picked from commit 072b2b86b0)
2018-11-07 20:11:57 -05:00
lassulus
2eddede86f dwarf-fortress: fix theme override
(cherry picked from commit 0cd1e6732d)
2018-11-08 02:01:12 +01:00
Timo Kaufmann
0d2483f059 numpy: fix high cpu count bug 2018-11-07 22:28:41 +01:00
Matthew Bauer
a8ff261660 darwin-tested: remove firefox from blocking jobs
It’s broken in the latest run and I don’t think anyone needs it right
now. Hopefully can be fixed for 19.03.
2018-11-07 12:57:13 -06:00
R. RyanTM
7cf572d87a pcsclite: 1.8.23 -> 1.8.24
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/pcsclite/versions

(cherry picked from commit f174ae0f4f8c594624b34dc2fc77fe3755e785fb)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-07 18:26:32 +00:00
Samuel Dionne-Riel
f8dc3f1416 Merge pull request #49832 from 1000101/backport-release-18.09
[18.09] backport trezord: 2.0.19 -> 2.0.24
2018-11-07 16:43:45 +00:00
Timo Kaufmann
bd151c9448 Merge pull request #49874 from rafaelgg/release-18.09
flashplayer: add libglvnd dep
2018-11-07 17:31:28 +01:00
Rafael García Gallego
e92a04197a flashplayer: add libglvnd dep
(cherry picked from commit ded5faa82e)
2018-11-07 17:02:33 +01:00
Florian Klink
1349894743 lark-parser: 2017-12-18 -> 0.6.5
This bumps lark-parser to a released version that doesn't loop forever
and consumes all memory on certain grammars.

erezsh/lark redirects now to lark-parser/lark, so also update homepage.

(cherry picked from commit becf8879f4)
2018-11-07 11:30:52 +01:00
Samuel Dionne-Riel
72ab1b44a1 dbeaver: 5.2.2 -> 5.2.4
(cherry picked from commit fada4e87b8)
2018-11-06 21:59:48 -05:00
Samuel Dionne-Riel
cf597f0926 Merge pull request #49820 from srhb/1809-backport-nix-213
18.09: backport nix 2.1.1 -> 2.1.2 -> 2.1.3
2018-11-07 02:23:26 +00:00
sveitser
6141829459 nixos/jupyter: wait for network.target
(cherry picked from commit 13892da3e7)
2018-11-06 20:46:07 +01:00
Russell O'Connor
e0be1f6c2e trezord: 2.0.19 -> 2.0.24
(cherry picked from commit 10c56c5cfb)
2018-11-06 16:11:26 +01:00
Eelco Dolstra
9f2e2ee638 nix: 2.1.2 -> 2.1.3
(cherry picked from commit 2c9265c950)
2018-11-06 12:15:27 +01:00
Eelco Dolstra
4a03292016 nix: 2.1.1 -> 2.1.2
(cherry picked from commit 869f615ff4)
2018-11-06 12:15:25 +01:00
Aaron Andersen
1c0d935fd0 filesystems: escape spaces in fstab with \040
(cherry picked from commit 36d695f696)
2018-11-06 11:09:47 +00:00
Robert Schütz
32958da2c3 radicale: 2.1.10 -> 2.1.11
(cherry picked from commit 28a6927637)
2018-11-06 11:12:32 +01:00
Samuel Dionne-Riel
6d6e4e6b55 Merge pull request #49328 from c0bw3b/nixos/gc-release
[18.09] installation-device: set GC initial heap size to 1MB
2018-11-06 00:53:46 +00:00
lassulus
0c774fa8c6 dwarf-fortress: fix most of customization options
see #49779
close #49803

(cherry picked from commit 290dd06d14)
2018-11-06 01:03:00 +01:00
John Ericson
4507926b80 Merge pull request #49800 from obsidiansystems/bump-all-cabal-hashes-18.09
all-cabal-hashes: Update all-cabal-hashes in 18.09 to match Nixpkgs master
2018-11-05 14:52:41 -05:00
Peter Simons
32124db7d2 all-cabal-hashes: update to Hackage at 2018-11-02T16:36:33Z
(cherry picked from commit f648605b4e)
2018-11-05 14:27:52 -05:00
Peter Simons
b5b3e8ca1f all-cabal-hashes: update snapshot to Hackage at 2018-10-22T08:31:54Z
(cherry picked from commit 8089b93697)
2018-11-05 14:27:52 -05:00
Peter Simons
26527be691 all-cabal-hashes: update to Hackage at 2018-10-08T09:07:42Z
(cherry picked from commit b5f43fa04e)
2018-11-05 14:27:51 -05:00
Peter Simons
314e480750 all-cabal-hashes: update to Hackage at 2018-09-27T00:15:48Z
(cherry picked from commit 0af54ac670)
2018-11-05 14:27:51 -05:00
Peter Simons
c20d3110aa all-cabal-hashes: update snapshot to Hackage at 2018-09-18T11:13:20Z
(cherry picked from commit 89972ff45f)
2018-11-05 14:27:51 -05:00
John Ericson
a13b603e5e Merge pull request #49796 from obsidiansystems/fix-pkgsFor
release-lib: Fix `pkgsFor` for 18.09
2018-11-05 14:18:32 -05:00
Falco Peijnenburg
bf7930d582 haskellPackages.*.env: Fixed shellHook being ignored
The problem was introduced in 2bafa93b75

(cherry picked from commit 0ff9a7a2cd)
2018-11-04 19:36:25 +01:00
Michael Raskin
6ea2f786b8 Merge pull request #49606 from Ekleog/synapse-0.33.8-b18.09
matrix-synapse: 0.33.6 -> 0.33.8
2018-11-04 17:29:35 +00:00
Tim Steinbach
84c2e99546 linux: 4.14.78 -> 4.14.79
(cherry picked from commit bd636c897724c4c26171a8486c153c37c2a38eac)
2018-11-04 11:45:57 -05:00
Tim Steinbach
8c8d0cdc65 linux: 4.18.16 -> 4.18.17
(cherry picked from commit 4eade6749d2777dd82fd6e279209a1d91482c490)
2018-11-04 11:45:57 -05:00
Léo Gaspard
139fd45a8e matrix-synapse: 0.33.6 -> 0.33.8
Also reworked dependencies:
 * blist and ujson are marked as no longer needed
 * pytz has no mention throughout `git log -p` on synapse's repository
 * systemd and affinity are optional (but turned on by default)

(cherry picked from commit bb86056575)
2018-11-04 23:40:16 +09:00
Vladimír Čunát
35151f695e Merge #49747: gnome3.mutter: fix crash on startup
... with nvidia drivers.
2018-11-04 15:09:28 +01:00
Austin Seipp
cc39474fd0 timescaledb: fix license (Apache 2.0, not PostgreSQL)
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit b0f7c86094)
2018-11-04 07:31:31 -06:00
Andrew Childs
3845a4ce15 gnome3.mutter: fix crash on startup with nvidia drivers
(cherry picked from commit e2e23ddd89)
2018-11-04 21:51:24 +09:00
Andreas Rammhold
faa179da40 Merge pull request #49589 from schmittlauch/jedi-vim-18.09
vimPlugins: add jedi-vim plugin
2018-11-04 13:19:38 +01:00
Robin Gloster
9ea650bb5d gitlab module: fix config handling
There could be old *.rb files in the config directory that import
non-existant gems that would cause errors in the rake task.

(cherry picked from commit eadb998581)
2018-11-04 00:28:21 +01:00
Florian Klink
386ff58ba3 gitlab: 11.4.3 -> 11.4.4
SSRF in Kubernetes integration
The GitLab Kubernetes integration was vulnerable to a SSRF issue which could allow an attacker to make requests to access any internal URLs. The issue is now mitigated in the latest release and is assigned CVE-2018-18843.

(cherry picked from commit 9e491f732a)
2018-11-03 18:20:03 +01:00
Robin Gloster
91844280a5 gitlab: refactor and fix test
(cherry picked from commit ec7cb84bf0)
2018-11-03 18:20:03 +01:00
Renaud
fb9d531efe Merge pull request #49697 from c0bw3b/sec/ansible
[18.09] ansible: 2.5.2 -> 2.5.11 and 2.6.2 -> 2.6.7
2018-11-03 17:28:44 +01:00
Vladimír Čunát
98c1150f2c systemd: apply patches from Debian
There are some security fixes among those.
2018-11-03 17:11:01 +01:00
Vladimír Čunát
0744358a7e Revert "systemd: 239 -> 239.20181031"
This reverts commit d1de23b830.
The changes turned out to be too intrusive, so we'll patch instead.
2018-11-03 17:11:00 +01:00
Vladimír Čunát
5b94195d21 Merge #49677: thunderbird*: 60.2.1 -> 60.3.0
Critical security fixes.

(cherry picked from commit f3cca2f83c)
2018-11-03 17:10:44 +01:00
Thilo Uttendorfer
9eb6e66420 ansible_2_6: 2.6.2 -> 2.6.7
(cherry picked from commit e63509a651)
2018-11-03 16:58:49 +01:00
Thilo Uttendorfer
fba092f238 ansible_2_5: 2.5.2 -> 2.5.11
(cherry picked from commit de8a3e3125)
2018-11-03 16:57:53 +01:00
Sergei Khoma
0f4978267a fix typo
based on https://www.ec2instances.info/

(cherry picked from commit c4cad45082)
2018-11-03 16:05:59 +01:00
Michael Raskin
dbda176a4c Merge pull request #48827 from clefru/gvfs-fix
gvfs: Fix-up paths to gio binary
2018-11-02 14:24:01 +00:00
Rickard Nilsson
686151998e nixos/google-compute-image: Fix network service
The google-network-daemon service should have type `simple`. (type
`oneshot` makes the service hang in startup).

See d48fc3a5e2/google_compute_engine_init/systemd/google-network-daemon.service (L10)

(cherry picked from commit c010c7547c9926dc5a235ff733a43747d34899dd)
2018-11-02 14:38:41 +01:00
Domen Kožar
46effdb883 chromium: use jumbo builds to speedup compilation
On Hetzner machine with 1 core: 4h40m
On Hetzner machine with 8 cores: 1h20m

(cherry picked from commit 89ede978a0)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-02 10:15:31 +00:00
Peter Simons
1f54d5f166 ghc: add new 8.4.4 version
(cherry picked from commit 069bf7aee3)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-11-02 10:14:34 +00:00
aszlig
13cd588afa nixos/tests/chromium: Fix sandbox info matching
As reported by @andir, the regular expressions that match the sandbox
output are no longer matching in the recent Chromium bump as of
bb03fbc2c8.

Instead of a boolean field that determines whether namespace sandboxes
are on, the namespace sandbox is now an enum within "Layer 1 Sandbox".

I've modified the regular expressions accordingly and also ran the test
for the stable branch, which now succeeds.

Signed-off-by: aszlig <aszlig@nix.build>
Issue: https://github.com/NixOS/nixpkgs/issues/49442
Cc: @bendlas, @andir
(cherry picked from commit 73cdd5a476)
2018-11-02 10:25:01 +01:00
Michael Raskin
9660896ecd Merge pull request #49563 from zarelit/ntp_upstream_patch_bp
[18.09] ntp: fix ntpd shutdown by using upstream patch
2018-11-02 08:11:44 +00:00
Periklis Tsirakidis
4292214c0a uriparser: 0.8.6 -> 0.9.0
(cherry picked from commit 2783ca5de4)
Reason: Provides security fixes for the 0.8.x branch.
2018-11-02 08:22:15 +01:00
Periklis Tsirakidis
ff43959e75 gtest: Use native cmake/ninja builder
Clean up the expression and add pkgconfig support

(cherry picked from commit 9ac64e5bb6)
Reason: Pre-Requisite to backport uriparser 0.9.0, which patches
security issues of the 0.8.x branch.
2018-11-02 08:21:33 +01:00
R. RyanTM
d97645057f gmock: 1.8.0 -> 1.8.1 (#46273)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
gtest

(cherry picked from commit 9cfbcc28d0)
Reason: Pre-Requisite to backport uriparser 0.9.0, which patches
security issues of the 0.8.x branch.
2018-11-02 08:20:43 +01:00
Franz Pletz
f71cc5f744 strongswan: patch CVE-2018-16151 & CVE-2018-16152 2018-11-02 03:14:18 +01:00
R. RyanTM
a9c8e66bde wireshark: 2.6.3 -> 2.6.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/wireshark-qt/versions

(cherry picked from commit 77d29e5f06)

Security fixes: https://www.wireshark.org/docs/relnotes/wireshark-2.6.4.html
2018-11-02 03:00:53 +01:00
Will Dietz
a57d03fcc3 teeworlds: 0.6.4 -> 0.6.5
This release adds support for building with cmake!
So switch to that eagerly instead of fighting with bam.

(if nothing else cmake is the devil we know...)

Also:

* fixup 'DATA_DIR' so programs can find resources
  (without need for wrappers)
* install readme+license as previously done ("docs")
* don't install tools since not built or installed by default
  * esp since doesn't appear to have non-adhoc method for installation
  * other distros don't seem to include

(cherry picked from commit 18258bae34)

Fixes CVE-2018-18541.
2018-11-02 02:49:23 +01:00
Franz Pletz
16087d8836 tomcat_connectors: 1.2.41-dev-1613051 -> 1.2.46
Fixes CVE-2018-11759, CVE-2018-1323, CVE-2016-6808.

(cherry picked from commit 9fe0e57d9d)
2018-11-01 22:38:11 +01:00
Uli Baum
394ca68424 Revert "virtualgl-lib: fix broken startup script (#49185)"
This reverts commit c341f56928.

See #49611.
2018-11-01 22:08:13 +01:00
Franz Pletz
23218a80a3 icecast: 2.4.3 -> 2.4.4
Fixes CVE-2018-18820.

(cherry picked from commit 24d6c0dbde)
2018-11-01 21:49:58 +01:00
John Ericson
d9934979f0 Merge pull request #49566 from obsidiansystems/release-lib-cleanup
release-lib: Cache cross nixpkgs evals too, and other fixes, for 18.09
2018-11-01 16:46:22 -04:00
Trolli Schmittlauch
18d3332147 vim-plugins: add jedi-vim plugin
This plugin needs python3 support in vim, but no other addon seems to
care about verifying that vim is built accordingly, so I don't do that
as well.
2018-11-01 15:24:20 +01:00
Franz Pletz
d1de23b830 systemd: 239 -> 239.20181031
Fixes CVE-2018-15688 and updates latest upstream stable v239 branch.

See https://github.com/NixOS/systemd/pull/24 for details.

Co-authored-by: Andreas Rammhold <andreas@rammhold.de>
(cherry picked from commit a7912ecc85)
2018-11-01 11:25:59 +01:00
Tristan Helmich (omniIT)
b1e74c01f6 sc-controller: 0.4.4 -> 0.4.5
(cherry picked from commit 0459a8c8db)
Backport of #49543
2018-11-01 09:32:16 +01:00
John Ericson
89fb76c51c Merge pull request #49568 from obsidiansystems/arm-auto-detect
lib.systems.platforms: Add more ARM autodetection for 18.09
2018-10-31 21:21:30 -04:00
David Costa
3f06ebf426 ntp: fix ntpd shutdown by using upstream patch
After a series of amendments the seccomp.patch made ntpd work properly
but only on 32-bit systems.
This commit replaces that patch with the one submitted upstream by
cleverca22 and that fixes the issue also on 64-bit systems.

Close #38627, #45885

(cherry picked from commit 6759b7900e)
2018-10-31 23:13:15 +00:00
Timon Stampfli
1f4c8583ea openjpeg: adding patch for CVE-2018-7648 2018-10-31 20:33:18 +01:00
R. RyanTM
c7dc8ec572 riot-web: 0.16.2 -> 0.16.5
(cherry picked from commit 34e8009dcb)
2018-10-31 16:49:08 +01:00
R. RyanTM
65e85c8e5b riot-web: 0.16.0 -> 0.16.2 (#46190)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
riot-web

(cherry picked from commit 57062f9072)
2018-10-31 16:49:08 +01:00
Thilo Uttendorfer
85ad2d0b02 nginxMainline: 1.15.3 -> 1.15.5 (#48127)
(cherry picked from commit 205b3d94e1)
2018-10-31 16:49:08 +01:00
Timo Kaufmann
47c4afa2a6 Merge pull request #49523 from timokau/youtube-dl-backport
youtube-dl: backports
2018-10-31 15:58:57 +01:00
Jörg Thalheim
ea30555a03 Revert "tinc: remove unnecessary networking.interfaces"
This reverts commit cde886e7c6.
This broke users using networking.interfaces since the interface
is not up when configuring addresses: https://github.com/NixOS/nixpkgs/issues/27070#issuecomment-434704624
2018-10-31 14:33:15 +00:00
Timo Kaufmann
3592ebe5f2 youtube-dl: 2018.10.05 -> 2018.10.29
(cherry picked from commit 6ff17834db)
2018-10-31 14:42:00 +01:00
Philip Nelson
9e41ec1fdb youtube-dl: 2018.09.26 -> 2018.10.05 (#47940)
(cherry picked from commit 3a0fbe3cbe)
2018-10-31 14:38:59 +01:00
nyanloutre
dbc3b8de4f youtube-dl: 2018.09.18 -> 2018.09.26
(cherry picked from commit 967baedc2a)
2018-10-31 14:38:51 +01:00
Valentin Heidelberger
ebd4599259 youtube-dl: 2018.09.10 -> 2018.09.18 (#47151)
(cherry picked from commit 4a68689bb4)
2018-10-31 14:38:39 +01:00
AndersonTorres
b4fc0d9118 youtube-dl: 2018.08.04 -> 2018.09.10
(cherry picked from commit 74047ea686)
2018-10-31 14:38:21 +01:00
Edmund Wu
bdfaa0a4d8 vscode-extensions.ms-vscode.cpptools: update build (#48850)
(cherry picked from commit e96d14d177)
2018-10-30 21:19:40 +00:00
Ioannis Koutras
1a4a9da49e lxd: 3.0.0 -> 3.0.2
(cherry picked from commit ab62fe9108)
2018-10-30 23:06:24 +02:00
Ioannis Koutras
94ffbb5a4a dqlite: initialize at 0.2.4
(cherry picked from commit 891277e6a9)
2018-10-30 23:06:23 +02:00
Ioannis Koutras
1bbe592f5b sqlite-replication: initialize at 3.24.0+replication3
(cherry picked from commit bf39304e53)
2018-10-30 23:06:23 +02:00
Michael Weiss
75836e72fd Merge pull request #49482 from primeos/signal-desktop-backport
[18.09] Backport signal-desktop

Reason: The current version (1.15.5) will expire soon (2018-11-14).
2018-10-30 20:46:39 +01:00
John Ericson
5fe3360114 Merge pull request #49479 from obsidiansystems/haskell-shell-completions
haskell-lib: Factor out shell completion scripts helper for 18.09
2018-10-30 15:25:06 -04:00
Michael Weiss
ffebc0bfd0 signal-desktop: 1.17.1 -> 1.17.2
(cherry picked from commit 46f5debb94)
2018-10-30 20:11:20 +01:00
Michael Weiss
f3d906c66b signal-desktop: 1.17.0 -> 1.17.1
(cherry picked from commit 6021a94062)
2018-10-30 20:11:20 +01:00
Michael Weiss
95a7e4912f signal-desktop: 1.16.3 -> 1.17.0
(cherry picked from commit f346289ea6)
2018-10-30 20:11:19 +01:00
Michael Weiss
18766e3fb2 signal-desktop: 1.16.2 -> 1.16.3
(cherry picked from commit 5edc1dd7a8)
2018-10-30 20:11:19 +01:00
tobiasBora
73a1b48f64 signal-desktop: enable notifications
(cherry picked from commit 820e1caf86)
2018-10-30 20:11:19 +01:00
Michael Weiss
2cbe9f990c signal-desktop: 1.16.1 -> 1.16.2
(cherry picked from commit a526719184)
2018-10-30 20:11:19 +01:00
Michael Weiss
21e9b2e499 signal-desktop: 1.16.0 -> 1.16.1
(cherry picked from commit 3410dcd90e)
2018-10-30 20:11:19 +01:00
Michael Weiss
8558acb575 signal-desktop: 1.15.5 -> 1.16.0
(cherry picked from commit 7c1b85cf6d)
2018-10-30 20:11:18 +01:00
adisbladis
65852ff2f8 firefox-beta-bin: 62.0b20 -> 64.0b5 2018-10-30 18:37:03 +00:00
adisbladis
f724b7ab8b firefox-devedition-bin: 62.0b20 -> 64.0b5 2018-10-30 18:36:09 +00:00
markuskowa
c341f56928 virtualgl-lib: fix broken startup script (#49185)
Replace /bin/sh with bash in vglrun.
'exec' fails with /bin/sh

(cherry picked from commit efd3f8b57f)
2018-10-30 16:19:25 +01:00
Eelco Dolstra
47ae5861de nixUnstable: 2.2pre6520_18b4c53f -> 2.2pre6526_9f99d624
(cherry picked from commit 81b2bfaf36)
2018-10-30 16:17:42 +01:00
Shea Levy
cbffbb1bae nixUnstable: 2.1pre6377_954d1f4d -> 2.2pre6520_18b4c53f
(cherry picked from commit bd7e0aec71)
2018-10-30 16:17:38 +01:00
Lassulus
f4deae935d nixos/bitlbee: use purple-2 as purple_plugin_path (#49440)
(cherry picked from commit 334dd6f964)
2018-10-30 15:39:28 +01:00
volth
c42d8f770d [cpan2nix] perlPackages.NetAmazonS3: 0.84 -> 0.85
dependencies:
perlPackages.TestLoadAllModules: init at 0.022

(cherry picked from commit f32975e3fd)
2018-10-30 15:04:05 +01:00
Jörg Thalheim
1855a92cea SenchaCmd: 6.5.3.6 -> 6.6.0.13
This package is internally used by rambox

(cherry picked from commit 9d9f7d27a1)
2018-10-30 13:33:07 +00:00
Jörg Thalheim
0cfdeb3baf rambox: fix crash when native filesystem dialogs are created
(cherry picked from commit ac8acb283c)
2018-10-30 13:33:07 +00:00
Jaka Hudoklin
f62293e343 google-cloud-sdk: 215.0.0 -> 222.0.0
(cherry picked from commit 7df72ad928)
2018-10-30 10:38:14 +00:00
Moritz Ulrich
6e5f7e6c3a google-cloud-sdk: 206.0.0 -> 215.0.0
(cherry picked from commit d710765f52)
2018-10-30 10:38:14 +00:00
Eric Wolf
227cf39e0c nixos/release-notes for 18.09: fix missing entry
- the addition of the groups kvm and render breaks the configuration of
   users, which added them

(cherry picked from commit 30d2792091)
2018-10-30 10:23:44 +00:00
Stefan Siegl
960c147321 tomboy: build against mono 5, refs #49369
(cherry picked from commit 74cfbd63e1)
2018-10-30 10:17:12 +00:00
David Costa
af7d54e972 crystal: fix "play" subcommand (#49422)
(backport of commit 473c890034)
2018-10-30 00:36:48 +01:00
R. RyanTM
68cf714d23 matomo: 3.6.0 -> 3.6.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/matomo/versions

(cherry picked from commit d4029e7935)
2018-10-30 00:17:04 +01:00
Robin Gloster
bf392fec56 gitlab: 11.4.0 -> 11.4.3
(cherry picked from commit 3aec530964)
2018-10-29 20:42:50 +01:00
R. RyanTM
d5814e22dc clamav: 0.100.1 -> 0.100.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/clamav/versions

(cherry picked from commit b249bcc7b4)
2018-10-29 18:05:30 +01:00
Florian Klink
ec6af332b4 Merge pull request #49240 from flokli/layered-docker-images-18.09
[18.09] layered docker images
2018-10-29 14:25:08 +00:00
Vincent Ambo
acb1efb8d7 lib/options: Update documentation comments for docs generation
Documents functions in `lib.options` for docs generation with nixdoc.

The formatting change in the `mkOption` arguments is due to the way
`nixdoc` parses documentation comments on pattern arguments. It's not
ideal, but it works.
2018-10-29 12:38:30 +01:00
Vincent Ambo
a53c60db51 lib/debug: Update documentation comments for docs generation
Documents functions in `lib.debug` for docs generation with nixdoc.

Note that type signatures and clearer descriptions are still missing
on some of these functions, but this is good enough for a first run.
2018-10-29 12:32:35 +01:00
Vincent Ambo
20d8273eb7 lib/lists: Update documentation comments for doc generation
Updates documentation comments with extra information for nixdoc[1]
compatibility.

[1]: https://github.com/tazjin/nixdoc
2018-10-29 12:32:30 +01:00
Vincent Ambo
34cd613eaf lib/strings: Update documentation comments for doc generation
Updates documentation comments with extra information for nixdoc[1]
compatibility.

Some documentation strings have additionally been reworded for
clarity.

"Faux types" are added where applicable, but some functions do things
that are not trivially representable in the type notation used so they
were ignored for this purpose.

[1]: https://github.com/tazjin/nixdoc
2018-10-29 12:32:26 +01:00
Vincent Ambo
09772db18f lib/trivial: Update function comments for doc generation
Expands on some of the function comments and add some of the
special syntaxes recognised by nixdoc.
2018-10-29 12:32:22 +01:00
Alyssa Ross
74fe437075 bb: add Darwin compatibility
It even has working sound, unlike on Linux!

(cherry picked from commit c49aa0d0df)
2018-10-29 11:22:21 +00:00
Alyssa Ross
dc98e149d0 libmikmod: remove duplicate libpulseaudio dep
This is already included as a propagatedBuildInput, so no need to have
it also be a buildInput.

(cherry picked from commit 4807e04283)
2018-10-29 11:22:11 +00:00
Limbo Peng
32c258d1f7 httping: add libintl to buildInputs on Darwin (#48188)
* httping: add libintl to buildInputs on Darwin

Otherwise it won't compile.

* httping: fix URLs

(cherry picked from commit 9f8b40c2de)
2018-10-29 11:19:04 +00:00
Tobias Pflug
5e5252c5a8 bats: add missing grep dependency
(cherry picked from commit 8284f09dcd)
2018-10-29 11:17:01 +00:00
Daiderd Jordan
38e4922373 loc: enable darwin build
It works fine there and probably other unix platforms.

(cherry picked from commit 561fb30ac6)
2018-10-29 11:13:56 +00:00
Daiderd Jordan
6092f3e87e yarn: add platforms (#48912)
(cherry picked from commit d0544a355b)
2018-10-29 11:10:23 +00:00
Timo Kaufmann
8126ce7e45 Merge pull request #49249 from timokau/sage-fix-attrname-18.09
sage: fix attrname, add sagemath alias (18.09)
2018-10-29 10:08:04 +01:00
Jörg Thalheim
c05b365541 mono44: mark as insecure 2018-10-28 23:01:17 +00:00
aki-ks
186adedc6f jetbrains.idea-ultimate: 2018.2.4 -> 2018.2.5 2018-10-28 22:28:58 +00:00
aki-ks
b582c29032 jetbrains.idea-community: 2018.2.4 -> 2018.2.5 2018-10-28 22:28:52 +00:00
Edward Tjörnhammar
381a6a9bb9 jetbrains.pycharm-professional: 2018.2.3 -> 2018.2.4
(cherry picked from commit f9c4a74b73)
2018-10-28 22:27:37 +00:00
Edward Tjörnhammar
9200307e02 jetbrains.pycharm-community: 2018.2.3 -> 2018.2.4
(cherry picked from commit feb57bc9b9)
2018-10-28 22:27:32 +00:00
Edward Tjörnhammar
2852b60839 jetbrains.goland: 2018.2.2 -> 2018.2.3
(cherry picked from commit 546dfb51a6)
2018-10-28 22:27:28 +00:00
Edmund Wu
f237eaf83d jetbrains.webstorm: 2018.2.2 -> 2018.2.3
(cherry picked from commit 4b1e3376d1)
2018-10-28 22:27:23 +00:00
Edmund Wu
c144876ecb jetbrains.ruby-mine: 2018.2.1 -> 2018.2.2
(cherry picked from commit 9b69a2520a)
2018-10-28 22:27:17 +00:00
Edmund Wu
97ae532b92 jetbrains.rider: 2018.2 -> 2018.2.3
(cherry picked from commit 88692dd376)
2018-10-28 22:26:31 +00:00
Edmund Wu
a156a78af6 jetbrains.pycharm-professional: 2018.2.2 -> 2018.2.3
(cherry picked from commit 3bc77e5977)
2018-10-28 22:26:24 +00:00
Edmund Wu
56579fd8e9 jetbrains.pycharm-community: 2018.2.2 -> 2018.2.3
(cherry picked from commit b30e64bb8a)
2018-10-28 22:26:20 +00:00
Edmund Wu
3d950f0502 jetbrains.phpstorm: 2018.2.2 -> 2018.2.3
(cherry picked from commit 6f78c882da)
2018-10-28 22:26:16 +00:00
Edmund Wu
9c1347c08b jetbrains.idea-ultimate: 2018.2.2 -> 2018.2.4
(cherry picked from commit 7ce6836e95)
2018-10-28 22:26:12 +00:00
Edmund Wu
d291ab8993 jetbrains.idea-community: 2018.2.2 -> 2018.2.4
(cherry picked from commit e2ff1bceb3)
2018-10-28 22:26:08 +00:00
Edmund Wu
388622dcc5 jetbrains.goland: 2018.2.1 -> 2018.2.2
(cherry picked from commit 397215b8b6)
2018-10-28 22:26:04 +00:00
Edmund Wu
f3d84b108c jetbrains.datagrip: 2018.2.2 -> 2018.2.4
(cherry picked from commit 0174f259ac)
2018-10-28 22:25:58 +00:00
Edmund Wu
0e85365ae9 jetbrains.clion: 2018.2.2 -> 2018.2.4
(cherry picked from commit 98fe28e5ab)
2018-10-28 22:25:52 +00:00
Silvan Mosberger
b8fc97b9e4 Merge pull request #49363 from nyanloutre/steam-update-18-09
[18.09] Steam update
2018-10-28 22:12:11 +01:00
Patrick Hilhorst
21286962a7 steam: ran update-runtime.py
(cherry picked from commit 714b6e3d17)
2018-10-28 22:04:04 +01:00
Patrick Hilhorst
29247ba14f steam: made update-runtime.py nicer
(cherry picked from commit 7c2b6b0afe)
2018-10-28 22:04:03 +01:00
Jörg Thalheim
894dc671df Merge pull request #49357 from Mic92/plasma-backport
nixos/plasma5: disable ocr tests
2018-10-28 20:34:32 +00:00
Silvan Mosberger
a6d1dcfc34 Merge pull request #49335 from bjpbakker/release-18.09
[18.09] xorg.xf86videovmware: fix for GFX support
2018-10-28 21:05:38 +01:00
Jörg Thalheim
708bdc99e1 nixos/plasma5: disable ocr tests
This is brittle and breaks the test
2018-10-28 19:59:52 +00:00
Sarah Brofeldt
8fa0017d04 Merge pull request #49297 from johanot/kubernetes-1.11.4
kubernetes: 1.11.3 -> 1.11.4
2018-10-28 16:16:38 +01:00
Bart Bakker
1264470950 xorg.xf86videovmware: fix for GFX support
Fix the mesa dependency for `xorg.xf86videovmware`. Add `llvm_6` because
`mesa_noglu` has a runtime dependency on clang (see TODO in
`development/libraries/mesa`).
2018-10-28 12:29:17 +01:00
Renaud
09740d8404 installation-device: set GC initial heap size to 1MB
100000 (100kB) is too aggressive (too low) and gets ignored by the GC
Fixes #43339
2018-10-28 11:18:43 +01:00
Timo Kaufmann
d9e7a831f8 sage: add sagemath alias
Sage is commonly referred to as sagemath (probably to improve
searchability). Many other distors call their package sagemath.

(cherry picked from commit 80833d13fe)
2018-10-27 14:19:15 +02:00
Timo Kaufmann
66d8fd1fda sage: fix attrname
This is a minimal change mainly to make sure repology recognizes this
package as sage. I plan a bit more refactoring later, but this is
intentionally kept minimally invasive so that it won't break anything
and can be backported to 18.09.

(cherry picked from commit 2513747356)
2018-10-27 14:19:07 +02:00
Renaud
76ec0982ae Merge pull request #49117 from alexeymuranov/update-flatpak-in-18.09
[18.09] flatpak: 1.0.2 -> 1.0.4 (cherry-picked from master)
2018-10-27 13:54:08 +02:00
R. RyanTM
9d07f7f098 lighttpd: 1.4.50 -> 1.4.51 (#49238)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/lighttpd/versions

(cherry picked from commit 5bccc53a50)
2018-10-27 13:30:44 +02:00
Franz Pletz
f5fcdf5530 Merge pull request #49233 from ciil/jira-update-18.09
atlassian-jira: 7.12.1 -> 7.12.3 (18.09)
2018-10-27 11:13:42 +00:00
Graham Christensen
5a4f3306b8 dockerTools: test buildLayeredImage
(cherry picked from commit fb2d153dac)
2018-10-27 12:04:04 +01:00
Graham Christensen
fbb61c14a2 dockerTools.buildLayeredImage: init
Create a many-layered Docker Image.

Implements much less than buildImage:

 - Doesn't support specific uids/gids
 - Doesn't support runninng commands after building
 - Doesn't require qemu
 - Doesn't create mutable copies of the files in the path
 - Doesn't support parent images

If you want those feature, I recommend using buildLayeredImage as an
input to buildImage.

Notably, it does support:

 - Caching low level, common paths based on a graph traversial
   algorithm, see referencesByPopularity in
   0a80233487993256e811f566b1c80a40394c03d6
 - Configurable number of layers. If you're not using AUFS or not
   extending the image, you can specify a larger number of layers at
   build time:

       pkgs.dockerTools.buildLayeredImage {
         name = "hello";
         maxLayers = 128;
         config.Cmd = [ "${pkgs.gitFull}/bin/git" ];
       };

 - Parallelized creation of the layers, improving build speed.
 - The contents of the image includes the closure of the configuration,
   so you don't have to specify paths in contents and config.

   With buildImage, paths referred to by the config were not included
   automatically in the image. Thus, if you wanted to call Git, you
   had to specify it twice:

       pkgs.dockerTools.buildImage {
         name = "hello";
         contents = [ pkgs.gitFull ];
         config.Cmd = [ "${pkgs.gitFull}/bin/git" ];
       };

   buildLayeredImage on the other hand includes the runtime closure of
   the config when calculating the contents of the image:

       pkgs.dockerTools.buildImage {
         name = "hello";
         config.Cmd = [ "${pkgs.gitFull}/bin/git" ];
       };

Minor Problems

 - If any of the store paths change, every layer will be rebuilt in
   the nix-build. However, beacuse the layers are bit-for-bit
   reproducable, when these images are loaded in to Docker they will
   match existing layers and not be imported or uploaded twice.

Common Questions

 - Aren't Docker layers ordered?

   No. People who have used a Dockerfile before assume Docker's
   Layers are inherently ordered. However, this is not true -- Docker
   layers are content-addressable and are not explicitly layered until
   they are composed in to an Image.

 - What happens if I have more than maxLayers of store paths?

   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.

(cherry picked from commit 4fe9006190)
(cherry picked from commit d1e46df24b)
2018-10-27 12:03:38 +01:00
Graham Christensen
61b4fa9ad9 referencesByPopularity: init to sort packages by a cachability heuristic
Using a simple algorithm, convert the references to a path in to a
sorted list of dependent paths based on how often they're referenced
and how deep in the tree they live. Equally-"popular" paths are then
sorted by name.

The existing writeReferencesToFile prints the paths in a simple
ascii-based sorting of the paths.

Sorting the paths by graph improves the chances that the difference
between two builds appear near the end of the list, instead of near
the beginning. This makes a difference for Nix builds which export a
closure for another program to consume, if that program implements its
own level of binary diffing.

For an example, Docker Images. If each store path is a separate layer
then Docker Images can be very efficiently transfered between systems,
and we get very good cache reuse between images built with the same
version of Nixpkgs. However, since Docker only reliably supports a
small number of layers (42) it is important to pick the individual
layers carefully. By storing very popular store paths in the first 40
layers, we improve the chances that the next Docker image will share
many of those layers.*

Given the dependency tree:

    A - B - C - D -\
     \   \   \      \
      \   \   \      \
       \   \ - E ---- F
        \- G

Nodes which have multiple references are duplicated:

    A - B - C - D - F
     \   \   \
      \   \   \- E - F
       \   \
        \   \- E - F
         \
          \- G

Each leaf node is now replaced by a counter defaulted to 1:

    A - B - C - D - (F:1)
     \   \   \
      \   \   \- E - (F:1)
       \   \
        \   \- E - (F:1)
         \
          \- (G:1)

Then each leaf counter is merged with its parent node, replacing the
parent node with a counter of 1, and each existing counter being
incremented by 1. That is to say `- D - (F:1)` becomes `- (D:1, F:2)`:

    A - B - C - (D:1, F:2)
     \   \   \
      \   \   \- (E:1, F:2)
       \   \
        \   \- (E:1, F:2)
         \
          \- (G:1)

Then each leaf counter is merged with its parent node again, merging
any counters, then incrementing each:

    A - B - (C:1, D:2, E:2, F:5)
     \   \
      \   \- (E:1, F:2)
       \
        \- (G:1)

And again:

    A - (B:1, C:2, D:3, E:4, F:8)
     \
      \- (G:1)

And again:

    (A:1, B:2, C:3, D:4, E:5, F:9, G:2)

and then paths have the following "popularity":

    A     1
    B     2
    C     3
    D     4
    E     5
    F     9
    G     2

and the popularity contest would result in the paths being printed as:

    F
    E
    D
    C
    B
    G
    A

* Note: People who have used a Dockerfile before assume Docker's
Layers are inherently ordered. However, this is not true -- Docker
layers are content-addressable and are not explicitly layered until
they are composed in to an Image.

(cherry picked from commit fd045173ce)
2018-10-27 11:57:35 +01:00
Graham Christensen
607e6140cd dockertools: tarsum: turn in to a buildInput
(cherry picked from commit 2bf0ee3b2b)
2018-10-27 11:57:28 +01:00
Andreas Rammhold
73a4857dc0 Merge pull request #49186 from andir/18.09/mosquitto
[18.09] mosquitto: 1.4.15 -> 1.5.3
2018-10-27 12:17:25 +02:00
Simon Lackerbauer
5be1827afe atlassian-jira: 7.12.1 -> 7.12.3
(cherry picked from commit 50abe602b1)
2018-10-27 11:50:38 +02:00
Bas van Dijk
cbcd5aa085 Merge pull request #48155 from ElvishJerricco/fix/haskell/shellFor/18.09
Backport #46453
2018-10-27 10:03:47 +01:00
Dmitry Kalinkin
6b60c067e1 pythonPackages.pyarrow: fix running tests on hydra
This replaces standard checkPhase using setup.py that uses pytest-runner
with an explicit call to pytest. One reason to do that is because
setup.py triggers another rebuild when asked to do "test". Another
reason is that there seems to be a conflict between possible imports for
pyarrow: `pwd`/pyarrow vs $out/pyarrow. By some unknown reason this
triggers an import error on hydra and ofborg, but not on my machine. The
solution here is to remove `pwd`/pyarrow, keep the tests and use direct
call to pytest (setup.py needs `pwd`/pyarrow). The added benefit is that
we are now testing what is installed in $out.

(cherry picked from commit 6ae3cb4d36)
2018-10-27 10:32:43 +02:00
Silvan Mosberger
9551f011b7 Merge pull request #49156 from 1000101/backport-release-18.09
[18.09] nixos/trezord: revised and updated udev rules
2018-10-27 01:19:15 +02:00
Johan Thomsen
6129945d89 kubernetes: 1.11.3 -> 1.11.4 2018-10-26 17:13:04 +01:00
Ján Hrnko
3c1ca59be7 nixos/trezord: revised and updated udev rules
(cherry picked from commit a88e0ef9aa)
2018-10-26 16:05:42 +02:00
Peter Hoeg
3581f5bfd0 mosquitto: 1.4.15 -> 1.5.3
This backport to 18.09 fixes a serious of security related issues in
mosquitto when run as a server.

Use cmake on all platforms instead of only macos.

(cherry picked from commit a45fa35742)
2018-10-26 14:58:26 +02:00
Jörg Thalheim
c2ad4bfbc0 Merge pull request #49099 from Mic92/breakpoint-backport
Backport breakpointHook [18.09]
2018-10-26 12:22:20 +01:00
Jörg Thalheim
fcca8103db doc: extend breakpointHook documentation
(cherry picked from commit 7f80fb2db4)
2018-10-26 11:15:28 +01:00
Robin Gloster
ef1e83d47c gitlab: 11.3.4 -> 11.4.0
(cherry picked from commit 02afda3fd8)
2018-10-26 11:41:28 +02:00
Robin Gloster
551d22e287 gitlab-workhorse: 6.1.1 -> 7.0.0
(cherry picked from commit eb7f8e71ad)
2018-10-26 11:41:28 +02:00
Robin Gloster
c26c4cc166 gitaly: 0.125.0 -> 0.125.1
(cherry picked from commit 1a984ccc4e)
2018-10-26 11:41:27 +02:00
Raphael Borun Das Gupta
61aa2be8ad nixpkgs docs: add missing spaces between words
(cherry picked from commit aa77e3aa4f)
2018-10-26 09:14:15 +01:00
Raphael Borun Das Gupta
7008cd8acd nixpkgs docs: remove spurious ">"
(cherry picked from commit bea0b3021c)
2018-10-26 09:14:14 +01:00
Andreas Rammhold
755108176f Merge pull request #49044 from andir/18.09/firefox
[18.09] firefox{,-bin}: 62.0.3 -> 63.0 & nss: 3.38-> 3.39
2018-10-26 00:55:12 +02:00
Joachim F
7cb7d77830 Merge pull request #49122 from schmittlauch/backport-tbb803
backport tor-browser-bundle-bin: 8.0.2 -> 8.0.3
2018-10-25 21:26:33 +00:00
Will Dietz
9e10ff6216 tor-browser-bundle-bin: 8.0.2 -> 8.0.3
reason: minor security update

https://gitweb.torproject.org/builders/tor-browser-build.git/tree/projects/tor-browser/Bundle-Data/Docs/ChangeLog.txt?h=tbb-8.0.3-build1
(cherry picked from commit 8324a938e7)
2018-10-25 22:49:23 +02:00
R. RyanTM
4b180235db flatpak: 1.0.2 -> 1.0.4
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/flatpak/versions

(cherry picked from commit 825f6210be)
2018-10-25 21:07:15 +02:00
Andreas Rammhold
e428680fb8 Merge pull request #49111 from mayflower/grafana-backport
grafana: 5.2.4 -> 5.3.2
2018-10-25 18:56:11 +02:00
Trolli Schmittlauch
dbc3d6fdd9 clarifying name arg determines vim command name
The `name` arg of `vim_configurable.customize` does not only determine
the package name, but also the name of the command/ executable to be
called.
In my opinion this is not documented properly and finding that out took
me several hours.
2018-10-25 17:51:36 +01:00
Linus Heckemann
30068ec658 Merge pull request #49109 from mayflower/nix-index-backport
nix-index: backport version bump and build fix
2018-10-25 18:48:18 +02:00
Justin Humm
3cf85cfb55 mapmap: mark broken
the mapmap binary segfaults at the moment at master and nixos-18.09. I
will speak with upstream for a fix and mark this broken in the meantime.

(cherry picked from commit 5ab10923d6)
2018-10-25 17:40:21 +01:00
WilliButz
e89bfd37a6 grafana: 5.2.4 -> 5.3.2
(cherry picked from commit e3927861d6)
2018-10-25 17:34:51 +02:00
Daiderd Jordan
fadacd10ab nix-index: fix darwin build
(cherry picked from commit 5c14decaa3)
2018-10-25 17:05:17 +02:00
Moritz Kiefer
540c63691c nix-index: 0.1.1 -> 0.1.2
(cherry picked from commit bd4301a2ae)
2018-10-25 17:05:17 +02:00
Jörg Thalheim
21cf1c4f26 Merge pull request #48984 from timokau/r8168-backport
r8168 backport
2018-10-25 15:04:12 +01:00
Jörg Thalheim
ccd398f2e4 doc/breakpointHook: add documentation
(cherry picked from commit 325a5699cb)
2018-10-25 14:09:35 +01:00
Jörg Thalheim
c80620fc27 breakpointHook: add for debugging failing builds
Usuage: Add breakpointHook to your `buildInputs` like this:

  stdenv.mkDerivation rec {
    # ...
    buildInputs = [ breakpointHook ];
  });

When the build fails as show in this example:

  pkgs.hello.overrideAttrs (old: {
    buildInputs = [ breakpointHook ];
    postPatch = ''
      false
    '';
  });

It will halt execution printing the following message:

build failed in patchPhase with exit code 1
To attach to this build run the following command as root:

   cntr attach -t command cntr-/nix/store/ynyb4n82x2r7sldd58pbb405jdqh5f00-hello-2.10

Installing cntr and running the command will provide shell access to the
build sandbox of failed build:

sudo cntr attach -t command cntr-/nix/store/ynyb4n82x2r7sldd58pbb405jdqh5f00-hello-2.10
WARNING: bad ownership on /nix/var/nix/profiles/per-user/root, should be 1000
[nixbld@localhost:/var/lib/cntr]$

At /var/lib/cntr the sandbox filesystem is mounted. All commands and
files of the system are still accessible within the shell.
To execute commands from the sandbox use the `cntr exec` subcommand.

(cherry picked from commit f10b935f84)
2018-10-25 14:09:34 +01:00
Jörg Thalheim
54dd052e56 cntr: init at 1.2.0
(cherry picked from commit 84e915a779)
2018-10-25 14:09:26 +01:00
Andreas Rammhold
3b4c03a6de firefox-esr: 60.2.2esr -> 60.3.0esr
(cherry picked from commit 3db6ca50ef0ce27b4f9765b783dcc32c0a613a2d)
2018-10-25 14:54:38 +02:00
Andreas Rammhold
e80c1fa3b2 firefox-bin: 62.0.3 -> 63.0
(cherry picked from commit 5137c04770)
2018-10-25 11:12:05 +02:00
Andreas Rammhold
344e66a524 firefox: 62.0.3 -> 63.0
(cherry picked from commit 277da59e47)
2018-10-25 11:12:04 +02:00
Andreas Rammhold
8bdbb8c922 rust_1_29: backport for rust 1.29.1 from unstable
Based on commit aef6830d3e

(cherry picked from commit dc2becf42f)
2018-10-25 11:12:04 +02:00
Vincent Laporte
9d2ff83b03 ocamlPackages.vg: 0.9.0 -> 0.9.1
(cherry picked from commit c640f024dd)
2018-10-25 08:39:17 +02:00
Gabriel Ebner
f5689d5d6b abcde: 2.8.1 -> 2.9.2
Fixes #41789.

(cherry picked from commit 47fb4859a5)
2018-10-24 20:49:19 +02:00
Herwig Hochleitner
a8fe91de2e chromium: 69.0.3497.100 -> 70.0.3538.67
(cherry picked from commit bb03fbc2c8)
2018-10-24 19:44:08 +02:00
volth
2e960de3f4 chromium: propagate stdenv for "chromium.override{ stdenv=gcc8Stdenv; }" (#48615)
(cherry picked from commit 337d140953)
2018-10-24 19:44:08 +02:00
volth
56ea01bc52 chromium 71+: there is no more option 'use_gtk3' (#48595)
(cherry picked from commit d767ba9996)
2018-10-24 19:44:08 +02:00
volth
487192196c chromium 71+: add at-spi2-core dependency (#48594)
(cherry picked from commit d039722d0e)
2018-10-24 19:44:07 +02:00
volth
77ea7d7bd5 chromium: fix aarch64 build (#48586)
* chromium: fix aarch64 build

* chromium: use more stable urls

(cherry picked from commit 0c8cdb53f6)
2018-10-24 19:44:07 +02:00
volth
c09da54fc7 chromium plugins: add meta.platforms (#48495)
to prevent their installation on aarch64

(cherry picked from commit 2ad99a662d)
2018-10-24 19:44:07 +02:00
Andreas Rammhold
e167830504 nss: 3.38 -> 3.39
(cherry picked from commit 8a9b6bc607)
2018-10-24 18:15:29 +02:00
John Ericson
06fb0253af Merge pull request #48931 from obsidiansystems/darwin-to-linux-18.09
misc pkgs: Darwin -> Linux cross compilation for 18.09
2018-10-24 10:37:15 -04:00
Timo Kaufmann
8e9b654643 r8168: init at 8.046.00
(cherry picked from commit c8b5deae19)
2018-10-24 11:50:44 +02:00
John Ericson
0afc9ca7a8 Merge remote-tracking branch 'upstream/release-18.09' into darwin-to-linux-18.09 2018-10-23 23:27:29 -04:00
Daiderd Jordan
87dc3df433 linux-headers: Temporarily avoid mass rebuild
This is only needed for 18.09, not master
2018-10-23 23:27:20 -04:00
Rob Vermaas
df29219f51 opentracing-cpp: fix version in derivation 2018-10-23 18:15:05 +02:00
Rob Vermaas
9d6184f1bc nginx-opentracing: init at 0.7.0 2018-10-23 18:07:45 +02:00
Rob Vermaas
0b695b6682 opentracing-cpp: add meta 2018-10-23 18:01:34 +02:00
Rob Vermaas
f49df04c02 opentracing-cpp: init 1.5.0 2018-10-23 17:56:28 +02:00
Wael Nasreddine
c162a0af64 gocode: 2018-07-27 -> 2018-10-22 (#48832)
github.com/nsf/gocode has also been deprecated in favor of github.com/mdempsky/gocode

(cherry picked from commit cc4b9ef40f)
2018-10-23 12:21:25 +02:00
Jörg Thalheim
1b7e30c79f Merge pull request #48822 from nyanloutre/18-09-jackett-10-365
[18.09] jackett: 0.10.250 -> 0.10.365
2018-10-23 10:43:14 +01:00
Dmitry Kalinkin
694aff67f8 mu: fix build for withMug = true (#48830)
Fixes a following build error:

/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstapp-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstaudio-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstfft-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstpbutils-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstvideo-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstbase-1.0
/nix/store/xxx-binutils-2.30/bin/ld: cannot find -lgstreamer-1.0

This workaround targets release-18.09 branch and is not needed at master (no
idea why).
2018-10-23 11:38:32 +02:00
nyanloutre
2b4f74612b jackett: update mono version to 5.14
See details here : https://github.com/NixOS/nixpkgs/pull/48821#issuecomment-431837095

(cherry picked from commit 7a44e6e365)
2018-10-23 11:01:38 +02:00
Linus Heckemann
f8d156f44f poezio: 0.11 -> 0.12 2018-10-23 09:33:44 +02:00
Linus Heckemann
af588df938 slixmpp: 1.2.4-post1 -> 1.4.0
(cherry picked from commit ec9d761628)
2018-10-23 09:33:38 +02:00
xeji
f80504e8fd Merge pull request #48150 from Vskilet/release-18.09
[18.09] nixos/emby: use the dataDir option
2018-10-23 00:45:37 +02:00
nyanloutre
25b2aeb9ca jackett: 0.10.304 -> 0.10.365
(cherry picked from commit 896ae4974e)
2018-10-22 23:56:23 +02:00
R. RyanTM
93a57b3d66 jackett: 0.10.258 -> 0.10.304
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/jackett/versions

(cherry picked from commit 7f5a809374)
2018-10-22 23:56:23 +02:00
Edward Tjörnhammar
c4cb419081 jackett: 0.10.250 -> 0.10.258
(cherry picked from commit 914c341c6f)
2018-10-22 23:56:22 +02:00
Jörg Thalheim
09bc130c1e Merge pull request #48831 from nyanloutre/18-09-slimserver-fix
[18.09] slimserver: Relax audio scan dependency (#47029)
2018-10-22 22:48:00 +01:00
Drew Hess
be9e927c95 dovecot: dovenull user should have its own group.
Quoting from https://wiki.dovecot.org/UserIds#dovenulluser:

"It should belong to its own private dovenull group where no one else
belongs to..."

(cherry picked from commit fa388534e4)
2018-10-22 22:47:00 +01:00
Philipp Hausmann
e15b5baaef slimserver: Relax audio scan dependency (#47029)
(cherry picked from commit 09df5da98f)
2018-10-22 23:45:18 +02:00
Daniël de Kok
a7325a613e samba4: 4.7.9 -> 4.7.10 (#48787)
Changes: https://www.samba.org/samba/history/samba-4.7.10.html
(cherry picked from commit d620d8fa67)
2018-10-22 15:46:01 +02:00
Clemens Fruhwirth
c00f5672d7 gvfs: Fix-up paths to gio binary 2018-10-22 15:08:04 +02:00
Peter Simons
e05517fb18 ghc: add new 8.4.4 version
(cherry picked from commit 069bf7aee3)
2018-10-21 23:33:26 -04:00
Piotr Bogdan
140867131c debootstrap: fix up paths to {chroot,unshare}, small clean up
Fixes #45915.

(cherry picked from commit be63e30563)
2018-10-21 18:45:31 +01:00
R. RyanTM
5b2a9767c5 debootstrap: 1.0.108 -> 1.0.109
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/debootstrap/versions

(cherry picked from commit 73dbb11a0d)
2018-10-21 18:45:31 +01:00
R. RyanTM
b76a8378ee debootstrap: 1.0.107 -> 1.0.108 (#46294)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/debootstrap/versions

(cherry picked from commit 8955ec6c73)
2018-10-21 18:45:30 +01:00
Jörg Thalheim
d4d4e58e33 Merge pull request #48779 from Ma27/backport-vim-clang-fix
vimPlugins.clang_complete: fix path to libclang.so (backport)
2018-10-21 17:00:35 +01:00
Leon Schuermann
08a0f3fefc nextcloud: 14.0.1 -> 14.0.3
(cherry picked from commit 6d3b54a1e9)
2018-10-21 15:40:40 +02:00
Victor SENE
2026505e5c nixos/nextcloud: add poolConfig option (#48094)
(cherry picked from commit 2dcd512e74)
2018-10-21 15:40:40 +02:00
Florian Klink
2822d45a4e nextcloud: fix sendmail path discovery
(cherry picked from commit 1fd6477b35)
2018-10-21 15:40:40 +02:00
Ruben Maher
dde8fafa69 nextcloud: 13.0.6 -> 14.0.1
(cherry picked from commit e5b3ea56e1)

Co-authored-by: Robin Gloster <mail@glob.in>
2018-10-21 15:40:40 +02:00
Franz Pletz
f1509d8b11 nixos/nextcloud: init
(cherry picked from commit ebd38185c8)

Co-authored-by: Franz Pletz <fpletz@fnordicwalking.de>
Co-authored-by: Robin Gloster <mail@glob.in>
Co-authored-by: Janne Heß <janne@hess.ooo>
Co-authored-by: Florian Klink <flokli@flokli.de>
2018-10-21 15:40:40 +02:00
Maximilian Bosch
5fa7d74d87 vimPlugins.clang_complete: fix path to libclang.so
Same fix as d301d5cb74.

A traditional backport with `git cherry-pick` is impossible as the
override approach for VIM plugins has significantly changed.
2018-10-21 15:12:20 +02:00
Vaskó László
4d9183342b kitty: fix locating libstartup-notification-1
Startup notification doesn't work in recent versions of Kitty:
> Traceback (most recent call last):
>   File "/nix/store/3a3b0xd952gp8jw70k5kh3a4zhgzf0p7-kitty-0.12.3/bin/../lib/kitty/kitty/utils.py", line 216, in init_startup_notification
>     return init_startup_notification_x11(window_handle, startup_id)
>   File "/nix/store/3a3b0xd952gp8jw70k5kh3a4zhgzf0p7-kitty-0.12.3/bin/../lib/kitty/kitty/utils.py", line 201, in init_startup_notification_x11
>     return init_x11_startup_notification(display, window_handle, sid)
> OSError: Failed to load libstartup-notification-1.so with error: libstartup-notification-1.so: cannot open shared object file: No such file or directory

Apparently dispatching of startup notification has been moved to a C
binding in kitty 0.6.0 [1] so the substituion had to be modified to reflect
that. Without this fix Kitty still works except that window managers
which depend on startup notifications to be fired (e.g. Awesome)
cannot apply special placement rules.

The substitution mechanism is also changed to use a patch file to detect
this kind of mistakes in the future.

[1]: b08f4ab593

(cherry picked from commit 1842c4aaa4)
2018-10-20 23:51:41 +01:00
Samuel Dionne-Riel
e76b112853 ruby: 2.5.2 -> 2.5.3
https://www.ruby-lang.org/en/news/2018/10/18/ruby-2-5-3-released/

This release is just for fixing the packaging issue. This release doesn’t
contain any additional bug fixes from 2.5.2.

(cherry picked from commit 87407bc7e8)
2018-10-20 21:25:20 +01:00
Frederik Rietdijk
50a6f2170d python37: 3.7.0 -> 3.7.1
(cherry picked from commit e4d84434a7)
2018-10-20 21:01:37 +02:00
Frederik Rietdijk
8a3e8bd64b python36: 3.6.6 -> 3.6.7
(cherry picked from commit 241bab3a5e)
2018-10-20 21:01:26 +02:00
Frederik Rietdijk
4a4e11f026 Merge staging into release 2018-10-20 21:00:53 +02:00
Ben Wolsieffer
0da77aaaf8 python2Packages.pylint: init at 1.9.2
Backport of pylint 1.9.2, required for older python2.7
(2.x versions of pylint work only with python 3.4+)

(cherry picked from commit 67ea56717a)
2018-10-20 20:49:59 +02:00
Ben Wolsieffer
b33fe1b101 python2Packages.astroid: init at 1.6.5
Older version backported from master, as requirement for pylint 1.9.2

(cherry picked from commit 4f09e05849)
2018-10-20 20:49:59 +02:00
John Ericson
2569506025 Merge pull request #48673 from Ericson2314/xorg-override-18.09
xorg: allow overriding via overrideScope' for 18.09
2018-10-20 13:16:45 -04:00
Jeff Slight
720af0f20f mattermost: 5.3.0 -> 5.4.0
(cherry picked from commit 321b3a224f)
2018-10-20 17:09:43 +01:00
Jeff Slight
bbc3f425e3 mattermost: 5.1.0 -> 5.3.0
(cherry picked from commit 06eeeed171)
2018-10-20 17:09:24 +01:00
Tim Steinbach
b62ae252fd linux: 4.18.15 -> 4.18.16
(cherry picked from commit 154f457bc3)
2018-10-20 11:18:45 -04:00
Tim Steinbach
617448e796 linux: 4.14.77 -> 4.14.78
(cherry picked from commit 719087fb8c)
2018-10-20 11:18:45 -04:00
Tim Steinbach
76408dd069 linux: 4.9.134 -> 4.9.135
(cherry picked from commit 560e61a3fd)
2018-10-20 11:18:44 -04:00
Tim Steinbach
9dec819286 linux: 4.4.161 -> 4.4.162
(cherry picked from commit 218bf14c3e)
2018-10-20 11:18:44 -04:00
Samuel Dionne-Riel
35421cfdf7 Merge pull request #48692 from samueldr/fix/disallow-aliases
Backports misc. fixes for the new ofborg eval time checks
2018-10-19 20:08:51 -04:00
Samuel Dionne-Riel
8713c07ca5 Merge pull request #48636 from samueldr/backport/PR48301
Update Monero for upcoming hard fork (backports #48301)
2018-10-19 20:06:30 -04:00
Tmplt
1b9888aaa0 nixos/compton: fix corrupt colours with Mesa 18 on AMD
On AMD hardware with Mesa 18, compton renders some colours incorrectly
when using the glx backend. This patch sets an environmental variable
for compton so colours are rendered correctly.

Topical bug: <https://bugs.freedesktop.org/show_bug.cgi?id=104597>
2018-10-19 15:42:11 -05:00
gnidorah
d75b725497 kvmgt module: add service restart on failure
(cherry picked from commit a6603fd8a8)
2018-10-19 10:45:31 +01:00
Edmund Wu
69a482f640 vscode: 1.28.0 -> 1.28.2
(cherry picked from commit 8861eca096)
2018-10-19 08:41:11 +01:00
Edmund Wu
a6d64776c0 vscode: 1.27.2 -> 1.28.0
(cherry picked from commit a3962299f1)
2018-10-19 08:40:58 +01:00
Bastian Köcher
d8649a8a68 vscode: 1.26.1 -> 1.27.2 (#47397)
(cherry picked from commit 0d810c5ac4)
2018-10-19 08:40:40 +01:00
Jörg Thalheim
cde886e7c6 tinc: remove unnecessary networking.interfaces
This breaks with networking backends enabled and
also creates large delays on boot when some services depends
on the network target. It is also not really required
because tinc does create those interfaces itself.

fixes #27070

(cherry picked from commit 5a1f0f9aa3)
2018-10-19 08:36:34 +01:00
John Ericson
e23b220a78 Merge remote-tracking branch 'upstream/release-18.09' into xorg-override-18.09 2018-10-19 00:59:22 -04:00
Ryan Mulligan
9dc7c3191a treewide: fix config.allowAliases = false evaluation
(cherry picked from commit f91a79ecc8)

 Conflicts:
	pkgs/misc/vim-plugins/default.nix

That file has NOT been touched in this cherry pick.
2018-10-18 21:10:02 -04:00
Ryan Mulligan
b02c65ab30 treewide: fix allowAliases = false evaluation problems
(cherry picked from commit 856fbc8dba)

 Conflicts:
	pkgs/os-specific/linux/roccat-tools/default.nix

File isn't in release-18.09
2018-10-18 21:06:21 -04:00
Milan Svoboda
9779809e05 wings: fix runtime failure. (#48681)
Erlang/OTP 18 [erts-7.3.1.4] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.3.1.4  (abort with ^G)
1>
=ERROR REPORT==== 18-Oct-2018::21:29:53 ===
beam/beam_load.c(1189): Error loading module sdl:
  mandatory chunk of type 'Atom' not found

=ERROR REPORT==== 18-Oct-2018::21:29:53 ===
Loading of /nix/store/qalvdrzjqqm3a8nsavjbhfiv1pzhw82k-esdl-1.3.1/lib/erlang/lib/esdl-1.3.1/ebin/sdl.beam failed: badfile

=ERROR REPORT==== 18-Oct-2018::21:29:53 ===
Error in process <0.35.0> with exit value:
{undef,[{sdl,init,[1048608],[]},
        {wings_init,init,0,[{file,"wings_init.erl"},{line,28}]},
        {wings,init,1,[{file,"wings.erl"},{line,105}]}]}

Fatal internal error - log written to /home/milan/wings_crash.dump

(cherry picked from commit 43fc3bbb62)
2018-10-18 21:43:01 +01:00
Silvan Mosberger
ff2b5ea471 Merge pull request #48619 from Chiiruno/release-18.09
Update bcachefs (cherry pick for 18.09)
2018-10-18 21:21:13 +02:00
John Ericson
318e45d469 Merge remote-tracking branch 'upstream/release-18.09' into xorg-override-18.09 2018-10-18 12:22:44 -04:00
Michael Raitza
cb996fdb60 nixos/openafs: Add defaultText to avoid evaluating packages
(cherry picked from commit 290a7d2ee9)
2018-10-18 16:11:57 +01:00
Michael Raitza
a2927b8477 openafs: 1.6.22.2 -> 1.6.23
Add support for 4.18 kernels.

(cherry picked from commit f8b5b5dcb7)
2018-10-18 16:11:56 +01:00
Michael Raitza
39acfb0591 openafs_1_8: 1.8.0 -> 1.8.2
This release adds support for ARM64.

(cherry picked from commit d37bb7302f)
2018-10-18 16:11:56 +01:00
Michael Raitza
72603fb252 openafs: Align package name with kernel version based on modDirVersion
(cherry picked from commit bf7600d3b5)
2018-10-18 16:11:56 +01:00
zimbatm
2f82603dbd Merge pull request #48650 from marsam/feature/update-ruby
ruby: 2.3.7 -> 2.3.8, 2.4.4 -> 2.4.5, 2.5.1 -> 2.5.2
2018-10-18 16:01:19 +02:00
Tim Steinbach
412c69ea97 linux: 4.18.14 -> 4.18.15
(cherry picked from commit 42cfc436ce)
2018-10-18 08:28:28 -04:00
Tim Steinbach
56dfc9523f linux: 4.14.76 -> 4.14.77
(cherry picked from commit 7abe0e881e)
2018-10-18 08:28:28 -04:00
Tim Steinbach
a3e4021cda linux: 4.9.133 -> 4.9.134
(cherry picked from commit ab8ff7c07c)
2018-10-18 08:28:28 -04:00
Shreyansh Khajanchi
f8847fc824 hugo: apply upstream patch to call rst2html directly on Nix
Initially, rst2html was called via the python interpreter which would
fail if the script was wrapped in a launcher as on NixOS.

(cherry picked from commit d4f88f1d0c)
2018-10-18 12:51:44 +01:00
Mario Rodas
0919505711 pythonPackages.pytest: pathlib2 is only required for python<3.6
(cherry picked from commit 0f26db59aded16119624dc520271390a08c2a07d)
2018-10-18 11:08:01 +02:00
Mario Rodas
50b8c23de8 pythonPackages.pathlib2: remove unnecessary python version check
(cherry picked from commit 0a08d69bf00ae4b2d5127455a3a0c756c2936f01)
2018-10-18 11:08:01 +02:00
rnhmjoj
499f1c7126 monero-gui: 0.13.0.2 -> 0.13.0.3
(cherry picked from commit e57438faf0)
2018-10-17 22:29:31 -04:00
rnhmjoj
636a47500a monero: 0.13.0.2 -> 0.13.0.3
(cherry picked from commit 8929e036ce)
2018-10-17 22:29:29 -04:00
rnhmjoj
fae2c59469 monero-gui: 0.12.3.0 -> 0.13.0.2
(cherry picked from commit 8e15e9c452)
2018-10-17 22:28:55 -04:00
rnhmjoj
b183e85a77 xmr-stak: 2.4.7 -> 2.5.0
(cherry picked from commit 6dc4ae5eb2)
2018-10-17 22:28:55 -04:00
rnhmjoj
6dda50f242 monero: 0.12.3.0 -> 0.13.0.2
(cherry picked from commit 028164ef05)
2018-10-17 22:28:55 -04:00
rnhmjoj
ea0853e4e0 monero-gui: 0.12.0.0 -> 0.12.3.0
(cherry picked from commit fd95d30609)
2018-10-17 22:28:51 -04:00
rnhmjoj
f430eaafcb monero: 0.12.0.0 -> 0.12.3.0
(cherry picked from commit 90ab6c8400)
2018-10-17 22:28:49 -04:00
Tim Steinbach
81f5c2698a sbt: 1.2.4 -> 1.2.6
(cherry picked from commit b2dabdc697)
2018-10-17 20:48:45 -04:00
Matt McHenry
41905d631f clementine: add gst_plugins to buildInputs so setup hooks work
when the build was refactored in ef5e212d, this was lost.  a4ba8c65
got most of it back, but missed the addition of gst_plugins to
buildInputs.

fixes #39960

(cherry picked from commit 6fcee4e1dd)
Signed-off-by: Maximilian Bosch <maximilian@mbosch.me>
2018-10-18 01:48:35 +02:00
Maximilian Bosch
bfb61a7709 nixos/weechat: add setuid wrapper for `screen' to ensure true multiuser capabilities
Previously you either had to set the setuid bit yourself or workaround
`isSystemUser = true` (for a loginable shell) to access the weechat
screen.

`programs.screen` shouldn't do this by default to avoid taking too much
assumptions about the setup, however `services.weechat` explicitly
requires tihs.

See #45728

(cherry picked from commit 018573b757)
2018-10-17 23:43:46 +02:00
volth
971b5bea49 oraclejdk8: 8u181 -> 8u191 (#48624)
(cherry picked from commit 4035086baf)
Oracle download site provides 8u191 now.
2018-10-17 18:47:42 +02:00
Jörg Thalheim
56915a59ad Merge pull request #48632 from clefru/hostapd-fix-on-18.09
Fix hostapd's place in systemd dependency tree. (#45464)
2018-10-17 16:02:36 +01:00
clefru
20ebe73f91 Fix hostapd's place in systemd dependency tree. (#45464)
* nat/bind/dhcp.service:
  Remove. Those services have nothing to do with a link-level service.

* sys-subsystem-net-devices-${if}.device:
  Add as BindsTo dependency as this will make hostapd stop when the
  device is unplugged.

* network-link-${if}.service:
  Add hostapd as dependency for this service via requiredBy clause,
  so that the network link is only considered to be established
  only after hostapd has started.

* network.target:
  Remove this from wantedBy clause as this is already implied from
  dependencies stacked above hostapd. And if it's not implied than
  starting hostapd is not required for this particular network
  configuration.

(cherry picked from commit 725fcdef3f)
2018-10-17 16:53:49 +02:00
隠岐奈
5f4617cfea bcachefs-tools: 2018-08-22 -> 2018-10-12
(cherry picked from commit 0c4a7a86fd)
2018-10-17 07:03:47 -05:00
隠岐奈
67856c9259 linux_testing_bcachefs: 4.18.2018.09.21 -> 4.18.2018.10.12
(cherry picked from commit d8410167d1)
2018-10-17 07:03:47 -05:00
Anatolii Prylutskyi
ff7413b160 rambox: fix invalid sha256
(cherry picked from commit 4051fc901b)
2018-10-17 09:34:32 +01:00
Tim Steinbach
19ee57bdaf oh-my-zsh: 2018-09-03 -> 2018-09-14
(cherry picked from commit e0a98c5dc0)
2018-10-16 16:51:11 -04:00
Rob Vermaas
3b3a2d30df julia_10: update to 1.0.1 2018-10-16 22:14:16 +02:00
zimbatm
68c70cfe9e terraform-providers.libvirt: fix plugin output (#48577)
Terraform depends on this binary name format to detect the provider
version.

(cherry picked from commit 7786575c6c)
2018-10-16 19:36:35 +02:00
Linus Heckemann
4a748215d1 libssh: 0.7.5 -> 0.7.6
Fixes CVE-2018-10933:

libssh versions 0.6 and above have an authentication bypass
vulnerability in the server code. By presenting the server an
SSH2_MSG_USERAUTH_SUCCESS message in place of the
SSH2_MSG_USERAUTH_REQUEST message which the server would expect to
initiate authentication, the attacker could successfully authentciate
without any credentials.

Source:
https://www.libssh.org/2018/10/16/libssh-0-8-4-and-0-7-6-security-and-bugfix-release/
(cherry picked from commit eca462813d)
2018-10-16 19:09:51 +02:00
Rob Vermaas
71941853a1 nixpart0.blivet: fix reference to selinux python modules 2018-10-16 17:12:05 +02:00
Rob Vermaas
7ceea6f601 blivet: fix reference to selinux python modules 2018-10-16 17:04:43 +02:00
Uli Baum
b97e1dc662 Merge branch 'release-18.09' into staging-18.09 2018-10-16 09:08:25 +02:00
florianjacob
ab27d00f39 mariadb.connector-c: 2.3.6 -> 2.3.7 (#48078)
(cherry picked from commit 98e5a0f9f4)

contains security fix for CVE-2018-3081
2018-10-16 09:05:49 +02:00
José Romildo Malaquias
8fe63a0c1e greybird: remove license cc-by-nc-sa-30 (#46802)
Greybird is dual-licensed as GPLv2 or later and CC-BY-SA 3.0 or later.
The first is free, and the second is unfree in nixpkgs. Currently both
licenses are listed in the package derivation. And nix takes that it is
unfree. If one of the licenses in the list is unfree. nix consider
that the software is unfree. Remove the unfree one.

(cherry picked from commit 1944defa4c)
2018-10-16 08:36:34 +02:00
Sarah Brofeldt
24bab87520 Merge pull request #48486 from srhb/backport-48485
Backport 18.09: haskellPackages.cryptonite: fix for aarch64 and re-enable tests
2018-10-16 00:02:05 +02:00
Drew Hess
67a7354cd5 haskellPackages.cryptonite: fix for aarch64.
This is a cherry-pick from upstream (see
https://github.com/haskell-crypto/cryptonite/issues/234); there has
been no upstream release since the fix was committed.

(cherry picked from commit 321626d5ee)
Backport of #48485
2018-10-15 23:46:26 +02:00
Drew Hess
fbb068dcc4 haskellPackages.cryptonite: re-enable tests.
This has been fixed since cryptonite-0.7:

https://github.com/haskell-crypto/cryptonite/issues/28

cryptonite is also no longer listed in expected-test-failures in
Stackage.

(cherry picked from commit c8a59e8453)
Backport of #48485
2018-10-15 23:46:08 +02:00
Eelco Dolstra
b5380ae736 ec2-amis.nix: Add 18.09 images
(cherry picked from commit 47dfe25e1b)
2018-10-15 22:52:23 +02:00
Wael M. Nasreddine
f935d5ba86 easyrsa: add support for darwin
(cherry picked from commit 1828799f47)
2018-10-15 20:28:18 +02:00
Florian Jacob
38f5b076d7 gitea: 1.5.1 -> 1.5.2
(cherry picked from commit 0a5c7cf512)
2018-10-15 19:58:46 +02:00
Jörg Thalheim
c15e342304 Merge pull request #48469 from Lassulus/df-18.09
[18.09] fix dwarf fortress package
2018-10-15 18:20:41 +01:00
Graham Christensen
1f50fc2bc5 Merge pull request #48468 from Ekleog/release-notes-backport
release-notes/18-09: add licenses marked as unfree
2018-10-15 13:17:24 -04:00
lassulus
12847b9043 dwarf-fortress: fix build error
(cherry picked from commit 0d57159eca)
2018-10-15 17:28:22 +02:00
Morgan Jones
35beccebbf Inline JSON files
(cherry picked from commit 213b5457fc)
2018-10-15 17:28:18 +02:00
Morgan Jones
0f3b98a39c Update twbt to 6.54
(cherry picked from commit 2cd2571edd)
2018-10-15 17:28:14 +02:00
Morgan Jones
982080d18b Use stdenv.mkDerivation for Therapist wrapper
(cherry picked from commit 5f1013d875)
2018-10-15 17:28:11 +02:00
Morgan Jones
811d52713e Fix dangling DFHack "Git:" version text
(cherry picked from commit 870f05c975)
2018-10-15 17:28:07 +02:00
Morgan Jones
99b1a44ab3 Therapist needs to depend on the DF version, since it uses its MD5
(cherry picked from commit fe847fcc92)
2018-10-15 17:28:03 +02:00
Morgan Jones
aa12b85056 Let the user override dfVersion in dwarf-fortress-full
(cherry picked from commit 7a5521537a)
2018-10-15 17:27:59 +02:00
Morgan Jones
5f563479b2 Fix dfhack's Dwarf Fortress MD5 in the correct environment
(cherry picked from commit f14d3b4795)
2018-10-15 17:27:55 +02:00
Morgan Jones
d66a253aad dwarf-fortress: Support multiple unfuck/dfhack/TWBT versions
(cherry picked from commit 4ada74e293)
2018-10-15 17:27:51 +02:00
Aaron VonderHaar
13e6a3e41a elm-format: 0.8.0 -> 0.8.1
(cherry picked from commit 67f58eee5e)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-10-15 16:12:52 +01:00
Léo Gaspard
3b65a51174 release-notes/18-09: add licenses marked as unfree
(cherry picked from commit 2a2c99673b)
2018-10-16 00:07:45 +09:00
Lancelot SIX
c6494972c1 pythonPackages.django_2_1: 2.1.1 -> 2.1.2
See https://docs.djangoproject.com/en/2.1/releases/2.1.2/

(cherry picked from commit 50ad0f2cc79a68b2db9d4403eacbd311eedfe38e)
2018-10-15 15:09:13 +02:00
Lancelot SIX
145076a41f pythonPackages.django_2_1: 2.0.8 -> 2.0.9
See https://docs.djangoproject.com/en/2.0/releases/2.0.9/

(cherry picked from commit cd902644bfae044449de721bedae938119e68534)
2018-10-15 15:08:10 +02:00
Lancelot SIX
7d19c136e9 pythonPackages.django: 1.11.15 -> 1.11.16
See https://docs.djangoproject.com/en/1.11/releases/1.11.16/

(cherry picked from commit 95a040f9b65ab3624a4d9a82c0fa07b6655f4790)
2018-10-15 15:07:31 +02:00
Jörg Thalheim
ae16537bf8 Merge pull request #48437 from rnhmjoj/shell-conduit-backport
haskellPackages.shell-conduit: fix build
2018-10-15 11:02:28 +01:00
rnhmjoj
2334e37f5a haskellPackages.shell-conduit: fix build
(cherry picked from commit 096be6d941)
Reason: the package is broken in NixOS stable.
2018-10-15 11:24:56 +02:00
Samuel Dionne-Riel
c06f5302f6 dbeaver: 5.2.1 -> 5.2.2 (#48442)
(cherry picked from commit 22c12da8aa)
2018-10-15 08:09:55 +02:00
Ambroz Bizjak
195a573cc8 nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
This adds configuration options which automate the configuration of NVIDIA Optimus using PRIME. This allows using the NVIDIA proprietary driver on Optimus laptops, in order to render using the NVIDIA GPU while outputting to displays connected only to the integrated Intel GPU. It also adds an option for enabling kernel modesetting for the NVIDIA driver (via a kernel command line flag); this is particularly useful together with Optimus/PRIME because it fixes tearing on PRIME-connected screens.

The user still needs to enable the Optimus/PRIME feature and specify the bus IDs of the Intel and NVIDIA GPUs, but this is still much easier for users and more reliable. The implementation handles both the X configuration file as well as getting display managers to run certain necessary `xrandr` commands just after X has started.

Configuration of commands run after X startup is done using a new configuration option `services.xserver.displayManager.setupCommands`. Support for this option is implemented for LightDM, GDM and SDDM; all of these have been tested with this feature including logging into a Plasma session.

Note: support of `setupCommands` for GDM is implemented by making GDM run the session executable via a wrapper; the wrapper will run the `setupCommands` before execing. This seemed like the simplest and most reliable approach, and solves running these commands both for GDM's X server and user X servers (GDM starts separate X servers for itself and user sessions). An alternative approach would be with autostart files but that seems harder to set up and less reliable.

Note that some simple features for X configuration file generation (in `xserver.nix`) are added which are used in the implementation:
- `services.xserver.extraConfig`: Allows adding arbitrary new sections. This is used to add the Device section for the Intel GPU.
- `deviceSection` and `screenSection` within `services.xserver.drivers`. This allows the nvidia configuration module to add additional contents into the `Device` and `Screen` sections of the "nvidia" driver, and not into such sections for other drivers that may be enabled.
2018-10-14 20:06:12 -05:00
Tycho Grouwstra
320499ca33 skypeforlinux: 8.28.0.41 -> 8.32.0.44 (#48391)
* skypeforlinux: 8.28.0.41 -> 8.32.0.44

Fixes 404 on https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.28.0.41_amd64.deb, as only [more recent versions](https://repo.skype.com/deb/pool/main/s/skypeforlinux/) are still available, as previously noted at #31047. Avoiding `x.y.76.z` releases as per the comment.

* update sha256

(cherry picked from commit 72128fcd9d)
2018-10-15 01:11:12 +03:00
Jörg Thalheim
9345561c18 rambox: 0.5.17 -> 0.6.1
(cherry picked from commit a25e765dc9)
2018-10-14 20:52:40 +01:00
Tim Steinbach
08005ede0f fail2ban: 0.10.3.1 -> 0.10.4
(cherry picked from commit 2a4bfe20d5aa2709c40f4b1d2bf55b34d3131144)
2018-10-14 10:27:15 -04:00
Jörg Thalheim
970b2937f6 Merge pull request #48377 from bgamari/cross-fixes-for-18.09
Cross fixes for 18.09
2018-10-14 09:10:26 +01:00
volth
eb1dc551af bootStage1: fix cross build (@matthewbauer's solution)
(cherry picked from commit b3dff39105)
2018-10-14 02:03:23 -04:00
volth
e1fbfca6e0 bootStage1: fix cross build
(cherry picked from commit 9dd5dc57a7)
2018-10-14 02:03:18 -04:00
Tim Steinbach
d96c7a3563 linux: 4.18.13 -> 4.18.14
(cherry picked from commit 0ba1f0aa72)
2018-10-13 12:46:01 -04:00
Tim Steinbach
d001ddcdca linux: 4.14.75 -> 4.14.76
(cherry picked from commit 43d8a40653)
2018-10-13 12:46:00 -04:00
Tim Steinbach
766d135c1f linux: 4.9.132 -> 4.9.133
(cherry picked from commit b4d4affe41)
2018-10-13 12:46:00 -04:00
Tim Steinbach
1b3c777a97 linux: 4.4.160 -> 4.4.161
(cherry picked from commit 3ad8afbf3e)
2018-10-13 12:46:00 -04:00
Franz Pletz
aa25fb3de4 wireguard: 0.0.20181006 -> 0.0.20181007
(cherry picked from commit 97d2779059)
2018-10-13 15:49:51 +02:00
Yegor Timoshenko
9787b0c11d wireguard-go: 0.0.20180613 -> 0.0.20181001
(cherry picked from commit fed0a4ec94)
2018-10-13 15:49:45 +02:00
Yegor Timoshenko
ce2715b2f6 wireguard: 0.0.20180925 -> 0.0.20181006
(cherry picked from commit 011a463d17)
2018-10-13 15:49:39 +02:00
Ben Challenor
a95db4c83e jenkins: 2.138.1 -> 2.138.2
(cherry picked from commit 88e7d7b350)
2018-10-13 14:13:01 +02:00
Justin Humm
ae53ed9d36 haskellPackages.arbtt: unbreak with jailbreak
(cherry picked from commit a01cab05c6)
Backport of #48000
2018-10-13 12:52:47 +02:00
Daiderd Jordan
a326dad536 reattach-to-user-namespace: 2.6 -> 2.7
Adds macOS Mojave (10.14) support.

(cherry picked from commit 42088e08b39cfc40b23fd7bb427fd3cf7521c2d8)
2018-10-13 11:56:45 +02:00
Frederik Rietdijk
1d61c41646 python.pkgs.pip: 18.0 -> 18.1
(cherry picked from commit 474c78a3e5)
2018-10-13 10:35:21 +02:00
Frederik Rietdijk
de7a2df9cf python.pkgs.bootstrapped-pip: update pip, setuptools and wheel
(cherry picked from commit b05a5969fc)
2018-10-13 10:35:13 +02:00
Ben Wolsieffer
6306db4f77 pythonPackages.autobahn: use checkInputs
(cherry picked from commit 1c3f7302fa)
2018-10-13 10:34:36 +02:00
Frederik Rietdijk
c918e051aa pythonPackages.autobahn: run hooks
(cherry picked from commit b75ea627c6)
2018-10-13 10:34:26 +02:00
Frederik Rietdijk
284a1283e7 pythonPackages.pytest.setupHook: run in correct phase
It was reported that the 2nd solution wasn't working as expected because
it was ran in the wrong phase.

This commit creates a new phase, in between the installCheckPhase and distPhase.

(cherry picked from commit 20a4a4b593)
2018-10-13 10:34:04 +02:00
Samuel Dionne-Riel
03bf8cd487 lib/types: enhances separatedString's description
The previous description "string" is misleading in the full options
manual pages; they are actually concatenated strings, with a specific
character.

The empty string version ("types.string") has been special-cased to
provide a better message.

(cherry picked from commit 0808c7cd31)
2018-10-12 19:57:59 -04:00
Alexander V. Nikolaev
29b9fee3fc nixos/rmilter: don't enable by default, if rspamd enabled
(cherry picked from commit b61dd2bcb7)
2018-10-12 23:54:13 +01:00
Graham Christensen
c8342644cf nixpkgs docs: document recursivelyUpdate
(cherry picked from commit 0eb3b93e1a)
2018-10-12 16:55:18 -04:00
Graham Christensen
c30b39cfb1 nixpkgs docs: document recursivelyUpdateUntil
(cherry picked from commit c100a456b1)
2018-10-12 16:55:18 -04:00
Graham Christensen
1682621057 nixpkgs docs: document zipAttrs
(cherry picked from commit 77140a9075)
2018-10-12 16:55:18 -04:00
Graham Christensen
a02495dd47 nixpkgs docs: document zipAttrsWith
(cherry picked from commit 655a5fa8bf)
2018-10-12 16:55:17 -04:00
Graham Christensen
66ce692e62 nixpkgs docs: Clarify zipAttrsWithNames's docs
(cherry picked from commit 4edb31882c)
2018-10-12 16:55:17 -04:00
Graham Christensen
b8f712ef61 nixpkgs docs: document zipAttrsWithNames
(cherry picked from commit 3b3bde463b)
2018-10-12 16:07:14 -04:00
Graham Christensen
8b02f90f3a nixpkgs docs: document optionalAttrs
(cherry picked from commit e0c6981d19)
2018-10-12 16:07:14 -04:00
Graham Christensen
3736fcdc64 nixpkgs docs: document toDerivation
(cherry picked from commit c547c3fe82)
2018-10-12 16:07:13 -04:00
Graham Christensen
1280a227f3 nixpkgs docs: document isDerivation
(cherry picked from commit f85a4ba9c3)
2018-10-12 16:07:13 -04:00
Graham Christensen
16c53e041b nixpkgs docs: document genAttrs
(cherry picked from commit ef05e1057b)
2018-10-12 16:07:13 -04:00
Graham Christensen
27b549342b nixpkgs docs: document mapAttrsRecursiveCond
(cherry picked from commit d664b8f5e3)
2018-10-12 16:07:12 -04:00
Graham Christensen
45dbf83bbc nixpkgs docs: finish up mapAttrsRecursive
(cherry picked from commit e7549b96ad)
2018-10-12 16:07:12 -04:00
Léo Gaspard
14bb2f42bf nheko: mark as insecure (#48281)
The package is no longer maintained and includes potential security
vulnerabilities (a use-after-free and several crashes) that are known
and not fixed in the version present in nixpkgs. They don't look too bad
judging from the trigger vectors mentioned in the changelog, but with
the project going unmaintained one of them becoming a security
vulnerability would likely not be noticed.

(cherry picked from commit ad992cbde1)
2018-10-12 21:29:24 +02:00
Victor SENE
2c5f94b836 nixos/emby : delete programData hardcode in pkg
(cherry picked from commit 751c64754f)
2018-10-12 16:57:01 +02:00
Victor SENE
ec61247898 nixos/emby : use the dataDir option
(cherry picked from commit 7d43e2a861)
2018-10-12 16:57:01 +02:00
nyanloutre
ca20a042cd nixos/emby: fixes binary name change introduced by #47659
(cherry picked from commit bb06b5b442)
2018-10-12 16:57:00 +02:00
nyanloutre
3f8c202c46 emby: move lib to opt
(cherry picked from commit c2e269ea05)
2018-10-12 16:56:59 +02:00
nyanloutre
36f064d341 emby: move usr/lib to lib
(cherry picked from commit 9ec17c6318)
2018-10-12 16:56:59 +02:00
nyanloutre
04d75db258 emby: add sqlite to wrapper
(cherry picked from commit f7a2e2025f)
2018-10-12 16:56:58 +02:00
nyanloutre
ef311d5c76 WIP emby: 3.5.2.0 -> 3.5.3.0
(cherry picked from commit 6e8da1ddf0)
2018-10-12 16:56:58 +02:00
worldofpeace
c2638ddfc9 emby: 3.4.1.0 -> 3.5.2.0
(cherry picked from commit bd02b3352a)
2018-10-12 16:56:57 +02:00
worldofpeace
cfd6ace6bf nixos/emby: ensure plugins are writeable
(cherry picked from commit a16c6d85a1)
2018-10-12 16:56:57 +02:00
Nick Novitski
d308e698f9 fastlane: disable update check
(cherry picked from commit 63ed3c8c5e)
2018-10-12 14:30:19 +01:00
Will Dietz
b72998bbfc chromium: update to 69.0.3497.100 (and others), ran update.sh
(cherry picked from commit ce6db5e36e)
2018-10-12 15:01:06 +02:00
Uli Baum
589d270ce4 nixos/network-interfaces-scripted: fix container networking bug
When a bridge interface was reconfigured, running containers using
this bridge lost connectivity: restarting network-addresses-brN.service
triggered a restart of network-setup.service via a "partOf" relationship
introduced in 07e0c0e0a2.
This in turn restarted brN-netdev.service.
The bridge was thus destroyed and recreated with the same name but a new
interface id, causing attached veth interfaces to lose their connection.

This change removes the "partOf" relationship between
network-setup.service and network-addresses-brN.service for all bridges.

(cherry picked from commit 2742063677)
2018-10-12 10:50:52 +02:00
Periklis Tsirakidis
c0c867ddb7 minikube: bump version 0.29.0 -> 0.30.0
This is a fix release for CVE-2018-1002103. More details in
https://github.com/kubernetes/minikube/issues/3208

(cherry picked from commit e5ee89f758)
Backport of #48256
2018-10-12 10:48:59 +02:00
Vincent Demeester
c0c5ea193f minikube: 0.28.1 -> 0.29.0
Hard-code kubernetes version as the upstream python script is broken/not-up-to-date

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
(cherry picked from commit ba98a7aea1)
Backport of #47765
2018-10-12 10:33:06 +02:00
taku0
3cff2fbc0a oraclejdk: deprecate oraclejdk 10
(cherry picked from commit 628fa1d50f)
2018-10-12 00:06:57 +02:00
Franz Pletz
e6630c9f90 Merge pull request #48237 from andir/18.09/apacheHttpd
[18.09] apacheHttpd: 2.4.34 -> 2.4.35
2018-10-11 21:51:29 +00:00
R. RyanTM
d720d5f697 apacheHttpd: 2.4.34 -> 2.4.35
Picked from master since it fixes CVE-2018-11763 which allows a remote
DoS against a server with HTTP/2 enabled.

Reference: https://lists.apache.org/thread.html/d435b0267a76501b9e06c552b20c887171064cde38e46d678da4d3dd@%3Cannounce.httpd.apache.org%3E

(cherry picked from commit 524c2120f9)
2018-10-11 23:09:10 +02:00
Silvan Mosberger
b97b32cf1d Merge pull request #48227 from Infinisil/issue-46038
[18.09] nix-daemon service: Ensure `ssh` is on PATH. Fixes #46038.
2018-10-11 22:18:15 +02:00
Niklas Hambüchen
6e2c08b68c nix-daemon service: Ensure ssh is on PATH. Fixes #46038.
This fixes a regression introduced in commit
  700e21d6da

nix needs ssh on path for the SSH substituter functionality,
not only the distributed builds functionality.

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
(cherry picked from commit 31919bce6b)
2018-10-11 21:53:00 +02:00
Silvan Mosberger
b91cb0607d Merge pull request #48220 from prusnak/backport_nm_plugins
openvpn plugins: use absolute paths to configuration gui
2018-10-11 20:53:34 +02:00
John Ericson
b413cfd3ff Merge pull request #48221 from obsidiansystems/versatile-__splicedPackages
__splicedPackages: Don't include xorg for 18.09
2018-10-11 13:54:25 -04:00
Michael Raskin
1a75f83903 Merge pull request #48189 from aanderse/redmine
redmine: refactor, cleanup, bug fix, and add functionality
(cherry picked from commit a29603344a)
2018-10-11 20:53:00 +03:00
Symphorien Gibol
a582a32e24 openvpn plugins: use absolute paths to configuration gui
(cherry picked from commit 5bfe8bfcea)
2018-10-11 19:28:02 +02:00
zimbatm
8d9756ef56 vault: 0.11.1 -> 0.11.2
changelog: https://github.com/hashicorp/vault/blob/v0.11.2/CHANGELOG.md
(cherry picked from commit 0bcbb97879)
2018-10-11 18:28:26 +02:00
John Ericson
5fdfc6f4ae Merge pull request #48216 from LumiGuide/fix-overrideScope-warning
lib: fix wording of the `overrideScope` warning
(cherry picked from commit 041119528c)
2018-10-11 12:04:44 -04:00
WilliButz
2cae2b9a84 nixos/tests: add test for prometheus exporters
(cherry picked from commit 0febc64ed1)
2018-10-11 16:00:02 +02:00
WilliButz
7277b1d908 nixos/prometheus-exporters: fix unapplied service config
Prior to this commit, the default values for `Restart`, `PrivateTmp` and
`WorkingDirectory` were falsely ignored.

I also added myself as maintainer.

(cherry picked from commit fbb7e0c82f)
2018-10-11 16:00:01 +02:00
WilliButz
59940fbcd6 nixos/prometheus-varnish-exporter: avoid crash on restart
(cherry picked from commit 24320f4a9e)
2018-10-11 16:00:00 +02:00
Pavol Rusnak
a8ad1fbe92 spotify: fix icon
(cherry picked from commit 33171befdb)
2018-10-11 15:24:26 +02:00
Franz Pletz
6d6bc0a58c equilux-theme: init at 20180927
(cherry picked from commit 6892cbce09)
2018-10-11 14:14:39 +02:00
Franz Pletz
97ba5aac8d xsecurelock: hardcode path to xset
(cherry picked from commit c04e6e04e2)
2018-10-11 14:14:36 +02:00
Jörg Thalheim
85b269a5d5 alacritty: 0.2.0 -> 0.2.1
(cherry picked from commit 3bc454fda7)
2018-10-11 11:14:42 +01:00
Tim Steinbach
42725274ef linux: 4.18.12 -> 4.18.13
(cherry picked from commit cf440dae56)
2018-10-10 19:57:12 -04:00
Tim Steinbach
f5bd6040ee linux: 4.14.74 -> 4.14.75
(cherry picked from commit fab0c8824a)
2018-10-10 19:57:10 -04:00
Tim Steinbach
a3a6780a52 linux: 4.9.131 -> 4.9.132
(cherry picked from commit 8f9743d2b7)
2018-10-10 19:57:07 -04:00
Tim Steinbach
515f4a7522 linux: 4.4.159 -> 4.4.160
(cherry picked from commit 33b68f8768)
2018-10-10 19:57:05 -04:00
xeji
3997e8d617 flashplayer: 31.0.0.108 -> 31.0.0.122 (#48126)
previous version was removed upstream (404)

(cherry picked from commit bde4483d13)
2018-10-10 23:50:09 +02:00
Daniël de Kok
cbf6eede26 resilio-sync: 2.6.0 -> 2.6.1 (#47973)
Changelog: https://help.resilio.com/hc/en-us/articles/206216855-Sync-2-x-change-log
(cherry picked from commit 632ae0502e)
2018-10-10 23:47:38 +02:00
Dmitry Kalinkin
abd6a5bff3 dia: fix on darwin (#48176)
Fixes runtime error:
  GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

(cherry picked from commit c047572a17)
2018-10-10 23:21:05 +02:00
Justin Humm
d60bd3f681 ja2-stracciatella: fix build due to #47709 2018-10-10 21:55:45 +02:00
Kristoffer Thømt Ravneberg
71f195761f gitlab-ee: Add ee rubyEnv, fixes regression introduced by 11.3.0 in #45574
(cherry picked from commit 0083ca1266)
2018-10-10 21:41:21 +02:00
Kristoffer Thømt Ravneberg
0d110efa2b gitlab: 11.2.3 -> 11.3.4
(cherry picked from commit d837338d6b)
2018-10-10 21:41:21 +02:00
Kristoffer Thømt Ravneberg
dbd9fed2fb gitlab-workhorse: 6.1.0 -> 6.1.1, make build deterministic
(cherry picked from commit 998d4e4e2c)
2018-10-10 21:41:20 +02:00
Kristoffer Thømt Ravneberg
e86dd58b29 gitaly: 0.117.2 -> 0.120.0
(cherry picked from commit 908a75a3ae)
2018-10-10 21:41:20 +02:00
Andreas Rammhold
c7e72a70f0 Merge pull request #48125 from andir/18.09/net_snmp
[18.09] net_snmp: fix CVE-2018-18065
2018-10-10 21:05:19 +02:00
Justin Humm
5647e9ae4e buildRustPackage: fix regex for separating lib and bin
E.g. exa was wrongly put into /lib, as it matches

  .*.a

but not

  .*\.a

(cherry picked from commit 64d0676fe1)
2018-10-10 19:34:49 +02:00
Silvan Mosberger
2bafa93b75 haskellPackages.*.env: Use shellFor 2018-10-10 08:46:39 -04:00
Silvan Mosberger
08814b72cf haskellPackages.shellFor: Clean and fixup
- Now correctly sets NIX_GHC* env vars
2018-10-10 08:46:39 -04:00
Silvan Mosberger
fdaa426452 haskell.lib.getBuildInputs: Use generic builder passthru to implement 2018-10-10 08:46:39 -04:00
Eelco Dolstra
4dd9cd3f69 libqtav: Reduce closure size from 734 to 457 MiB
(cherry picked from commit cd3a0b7f38)
2018-10-10 13:28:22 +02:00
Eelco Dolstra
f8e3e22055 marble: Add dev output
(cherry picked from commit 13c1f26807)
2018-10-10 13:28:03 +02:00
Eelco Dolstra
a1dc97e7ba digikam: libGLU_combined -> libGL + libGLU
This prevents a runtime dependency on a large number of -dev outputs.

(cherry picked from commit a3382a85b3)
2018-10-10 13:28:00 +02:00
Eelco Dolstra
70647250bb opencv3: Reduce closure size from 520 to 154 MiB
(cherry picked from commit c8a2533516)
2018-10-10 13:27:12 +02:00
Eelco Dolstra
e11239eb6d thunderbird: Remove buildconfig
This reduces the closure size from 1689 MiB to 425 MiB.

(cherry picked from commit 2be42950c3)
2018-10-10 13:26:45 +02:00
Eelco Dolstra
0465040d06 qtgraphicaleffects: Add dev output
This shrank my system closure by about 192 MiB.

(cherry picked from commit 9bbd4f653f)
2018-10-10 13:26:40 +02:00
Eelco Dolstra
fd1e5b2550 lsof: Don't record compiler flags / build kernel
This removed glibc.dev from the closure and improves binary
reproducibility.

(cherry picked from commit 1eff910a15)
2018-10-10 13:26:20 +02:00
Matthew Bauer
1c3945ad25 nfs-utils: properly strip system-generators
nfs-utils had a dependency on gcc through
etc/systemd/system-generators/*-server-generator. It was not stripped
correctly because it’s not in an expected path. This adds it to the
strip list.

(cherry picked from commit 1427c50cea)
2018-10-10 13:25:43 +02:00
Eelco Dolstra
383bbb9626 git: Strip libsecret
This reduces gitFull's closure size from 412 MiB to 271 MiB.

(cherry picked from commit 7b9c4954f2)
2018-10-10 13:25:09 +02:00
Samuel Dionne-Riel
8cfce968b1 nixos/doc: Actually fix partitioning instructions.
The previous tentative to the fix got the order mixed up a bit. This
new fix has been re-verified to get them in the good order as per the
instructions in the following chapters.

(cherry picked from commit 467bec34bb)
2018-10-09 23:02:00 -04:00
lassulus
c93665d440 nixos/gnome3: don't autoenable gdm
This seems to cause problems if people have other display-managers
enabled

(cherry picked from commit 5a752ad879)
2018-10-09 23:31:04 +01:00
Vincent Ambo
59fe4c7f17 journaldriver: 1.0.0 -> 1.1.0 (#48106)
Included changes:

* upstream repository has moved, URLs changed accordingly
* journaldriver bumped to new upstream release

The new release includes an important workaround for an issue that
could cause log-forwarding to fail after service restarts due to
invalid journal cursors being persisted.

(cherry picked from commit 5ead27394d)

backported because of moved upstream repo
2018-10-09 23:46:38 +02:00
Andreas Rammhold
9bf0cd9ccb net_snmp: fix CVE-2018-18065
(cherry picked from commit 2f7c242953)
2018-10-09 23:09:04 +02:00
Gabriel Ebner
de37b4c18c vdirsyncer: fix build
I'm not entirely sure what's going on here.  The exact same code works
on master.
2018-10-09 13:25:11 +02:00
Erlend Pedersen
df6d40feb6 kbd: Rename some keymaps.
From upstream kbd, some keymap names are reused across very different
keyboard layouts. This is a a problem because loadkeys just picks the
first keymap it sees. The clashing names lead to e.g.  "loadkeys no"
defaulting to a norwegian dvorak map instead of the much more common
qwerty one.

Used Arch Linux's list of keymaps that need renaming, with a small
deviation: the norwegian dvorak map becomes dvorak-no instead of
no-dvorak, to match the naming scheme for all the other dvorak maps.

fixes #47878

(cherry picked from commit f1987fb58f)
2018-10-09 08:19:44 +01:00
Tim Steinbach
01762972be sbt: 1.2.3 -> 1.2.4
(cherry picked from commit 844bcbd137)
2018-10-08 20:14:08 -04:00
Arian van Putten
1ada6fcde1 nixos/containers: Add regression test for #40355
(cherry picked from commit 0668906e84)
2018-10-08 17:00:33 -04:00
Arian van Putten
cf9b801b60 Revert "Revert "Revert "doc: Update section about imperative containers"""
nixos-container can now execute nix commands again inside the container

This reverts commit 9622cd3b38.

(cherry picked from commit bb31835b1d)
2018-10-08 17:00:33 -04:00
Arian van Putten
76c1cd35d0 nixos-container: Force container to talk to host nix-daemon
When logging into a container by using
  nixos-container root-login
all nix-related commands in the container would fail, as they
tried to modify the nix db and nix store, which are mounted
read-only in the container.  We want nixos-container to not
try to modify the nix store at all, but instead delegate
any build commands to the nix daemon of the host operating system.

This already works for non-root users inside a nixos-container,
as it doesn't 'own' the nix-store, and thus defaults
to talking to the daemon socket at /nix/var/nix/daemon-socket/,
which is bind-mounted to the host daemon-socket, causing all nix
commands to be delegated to the host.

However, when we are the root user inside the container, we have the
same uid as the nix store owner, eventhough it's not actually
the same root user (due to user namespaces). Nix gets confused,
and is convinced it's running in single-user mode, and tries
to modify the nix store directly instead.

By setting `NIX_REMOTE=daemon` in `/etc/profile`, we force nix
to operate in multi-user mode, so that it will talk to the host
daemon instead, which will modify the nix store for the container.

This fixes #40355

(cherry picked from commit 3624bb5362)
2018-10-08 17:00:33 -04:00
Linus Heckemann
d0b24be55d debian vm tools: use snapshot.debian.org
snapshot.debian.org actually keeps track of all of the updates as they
come in rather than doing arbitrary (?) snapshots.

(cherry picked from commit 9cc18fa7f9)
2018-10-08 17:34:41 +01:00
Vladimír Čunát
3cee341f06 Merge branch 'staging-18.09' into release-18.09 2018-10-08 17:14:59 +02:00
pacien
21293d2576 tinc: 1.0.34 -> 1.0.35, 1.1pre16 -> 1.1pre17
Critical security update (CVE-2018-16737, CVE-2018-16738, CVE-2018-16758)

(cherry picked from commit 15a190eb27)
2018-10-08 17:04:13 +02:00
Rob Vermaas
1eb1fec3ae Fix build for rPackages.units 2018-10-08 12:53:07 +02:00
Vladimír Čunát
3ab942ef67 openssh: fix tunnel forwarding (upstream patch)
Close #48031, fixes #48016.  I didn't use the PR commit
because I think it's better to fetch the patch.

(cherry picked from commit c2e6ca501e)
2018-10-08 12:06:06 +02:00
Vladimír Čunát
41cc5c414b Merge branch 'release-18.09' into staging-18.09 2018-10-08 12:05:59 +02:00
Ben Gamari
2fdba72c05 qpdf: Drop CVE-2018-9918.patch (#47935)
This has been merged upstream in 8.2.1.

(cherry picked from commit 58a02af417)
2018-10-08 08:41:53 +02:00
lassulus
617607e043 charybdis service: bin/charybdis-ircd -> bin/charybdis
(cherry picked from commit 99c8dc4a11)
2018-10-07 20:44:43 +01:00
Andreas Rammhold
76e4d162ab Merge pull request #48014 from schmittlauch/backport-tbb-bin-8.0.2
backport tor-browser-bundle-bin minor update
2018-10-07 20:05:25 +02:00
Andreas Rammhold
34eb9f7d10 backport tor-browser-bundle-bin minor update
tor-browser-bundle-bin: 8.0.1 -> 8.0.2

Update to latest version due to security updates and 8.0.1 not being
available on the mirrors anymore.

Release notes: https://blog.torproject.org/new-release-tor-browser-802

(cherry picked from commit 248ed3575c)

reason: The binary dist-file of tor-browser-bundle-bin-8.0.2 is gone
from the mirrors, making the derivation for v8.0.1 fail.
This is just a minor version bump.
2018-10-07 19:25:24 +02:00
Alex Leferry 2
5cc757117d cool-retro-term: Fix link to home page
(cherry picked from commit 82b2b9135a)
2018-10-07 11:56:23 +01:00
Justin Humm
45c83d91b8 borgbackup: patch bug that allowed for exceeding quotas
See also https://github.com/borgbackup/borg/issues/4093 for this.

(cherry picked from commit 0cfc923813)
2018-10-07 11:53:54 +01:00
Andrew Childs
2b3b607ea9 nixos/prometheus-snmp-exporter: fix command line argument format
(cherry picked from commit c477d6658c)
2018-10-07 11:50:35 +01:00
Chris Hodapp
090f5e0955 gdal: Add libxml2 to build
(cherry picked from commit 4af38a2516)
Backport of #47972
2018-10-07 10:00:50 +02:00
Samuel Dionne-Riel
be47bab9e4 nano: 3.0 -> 3.1
(cherry picked from commit 65eb3e38e8)
Backport of #47991
2018-10-07 09:56:17 +02:00
Samuel Dionne-Riel
f4bb9c421f Merge pull request #47956 from samueldr/18.09/backport-46443
[backport] Miniupnpd and bittorrent improvements (#46443)
2018-10-06 12:27:07 -04:00
schneefux
299814b385 nodePackages.webtorrent-cli: add node-gyp dependency, fixes build
(cherry picked from commit ce4072c662)
2018-10-06 16:41:03 +01:00
Jaka Hudoklin
9eb724f85e telepresence: 0.85 -> 0.93 (#47966)
(cherry picked from commit a134b9a3dd)

backported because previouse version failed to build
2018-10-06 15:22:20 +02:00
Andreas Rammhold
98e6fa3738 firefox: provide clang configure flags on i686
With the upgrade to firefox 62 clang flags are now required on i686.

(cherry picked from commit acf4a4eff3)
2018-10-06 10:43:58 +02:00
Andreas Rammhold
f26df1572d firefox-esr-52: mark as unsupported
The ESR release is no longer supported by Mozilla. We should mark it as
insecure as we did on 18.03 and master.

Originally marked as insecure on master in 0a3f07077b.
2018-10-06 10:42:10 +02:00
Jörg Thalheim
c7dc01c287 Merge pull request #47952 from samueldr/auto/dbeaver/nixos-18.09/5.2.1
dbeaver: 5.2.0 -> 5.2.1 (18.09)
2018-10-06 08:03:17 +01:00
Florian Klink
dbcbf7cce8 ghostscript: 9.24 -> 9.25 (#47948)
Highlights in this release include:

This release fixes problems with argument handling, some unintended results of the security fixes to the SAFER file access restrictions (specifically accessing ICC profile files), and some additional security issues over the recent 9.24 release.

CVE-2018-16802
CVE-2018-17183

Note: The ps2epsi utility does not, and cannot call Ghostscript with the -dSAFER command line option. It should never be called with input from untrusted sources.

Security issues have been the primary focus of this release, including solving several (well publicised) real and potential exploits.
PLEASE NOTE: We strongly urge users to upgrade to this latest release to avoid these issues.

As well as Ghostscript itself, jbig2dec has had a significant amount of work improving its robustness in the face of out specification files.

IMPORTANT: We are in the process of forking LittleCMS. LCMS2 is not thread safe, and cannot be made thread safe without breaking the ABI. Our fork will be thread safe, and include performance enhancements (these changes have all be been offered and rejected upstream). We will maintain compatibility between Ghostscript and LCMS2 for a time, but not in perpetuity. Our fork will be available as its own package separately from Ghostscript (and MuPDF).

The usual round of bug fixes, compatibility changes, and incremental improvements.

(cherry picked from commit 5b77b0d2f1eda9a42fe188eafb499230741e7925)
2018-10-06 08:47:09 +02:00
Bob van der Linden
fc8769dbfc tests: bittorrent: add bobvanderlinden as maintainer
(cherry picked from commit 5fbc521bf9)
2018-10-06 00:36:38 -04:00
Bob van der Linden
b453212005 tests: bittorrent: improve stability
This attempts to improve stability of the test by using existing
services for miniupnpd and transmission.

It also uses explicit addresses for the network interfaces so that the
external IP addresses are valid internet addresses (thus fixing
validation problems from upnpc).

Also disable eth0 from being used to transfer torrents over without that
being the intention.

(cherry picked from commit 276ffc5656)
2018-10-06 00:36:38 -04:00
Bob van der Linden
3ab4c76382 tests: upnp: init test for upnp using miniupnpd / miniupnpc
(cherry picked from commit 32c63c6905)
2018-10-06 00:36:38 -04:00
Bob van der Linden
4342bdd79d nixos: miniupnpd: use iptables scripts
(cherry picked from commit d3eff01076)
2018-10-06 00:36:37 -04:00
Bob van der Linden
9dc6bdcc09 miniupnpd: wrap iptables scripts to use correct PATH
(cherry picked from commit 2039327879)
2018-10-06 00:36:37 -04:00
Samuel Dionne-Riel
8810238efa dbeaver: 5.2.0 -> 5.2.1
(cherry picked from commit 2012860e7e)
2018-10-05 22:37:28 -04:00
Samuel Dionne-Riel
6a3f5bcb06 nixos/doc: Updates release date for 18.09
(cherry picked from commit 82d1bf9691)
2018-10-05 18:33:19 -04:00
Samuel Dionne-Riel
1863faca75 README: 18.03 -> 18.09
(cherry picked from commit 29b479eb72)
2018-10-05 18:25:14 -04:00
Samuel Dionne-Riel
0ea9623aa4 Updates 18.09 release notes for release.
(cherry picked from commit 6487a47996)
2018-10-05 18:19:39 -04:00
Andreas Rammhold
b0b0a6cf3b Merge pull request #47925 from edef1c/git-2.18.1
git: 2.18.0 -> 2.18.1 (CVE-2018-17456)
2018-10-05 22:12:29 +02:00
edef
def2618c09 git: 2.18.0 -> 2.18.1 (CVE-2018-17456) 2018-10-05 18:41:59 +00:00
Graham Christensen
d916a0f9ce docs: Delete assert functions since they don't exist in 18.09 2018-10-05 13:18:04 -04:00
Graham Christensen
3bf2c2f2d1 Generate links to function definitions
Hydra passes the full revision in to the input, which we pass through.

If we don't get this ,we try to get it from other sources, or default to
master which should have the definition in a close-ish location.

All published docs should have theURL resolve properly, only local
hackers will have the link break.

(cherry picked from commit 5daee73ce4)
2018-10-05 13:14:11 -04:00
Graham Christensen
09b8ed042a version.nix: extract revision-fetching function
(cherry picked from commit 4312cfdbda)
2018-10-05 13:14:07 -04:00
Samuel Dionne-Riel
9d5f0ba8e3 Merge pull request #47898 from peterhoeg/f/activation_1809
nixos system-activation: support activation scripts run in a user context
2018-10-05 12:26:32 -04:00
Graham Christensen
131cb302ab nixpkgs: Start documenting library functions in XML
Covers assert functions and about half of the attrsets functions.

Some internal consistency around IDs could be improved.

(cherry picked from commit f835f77e02)
2018-10-05 10:20:39 -04:00
Notkea
4e73b76ede matrix-synapse: 0.33.5 -> 0.33.6
(cherry picked from commit 570b9bab25)
Backport of #47880
2018-10-05 10:33:18 +02:00
Peter Hoeg
c8b3a26aec plasma5: run kbuildsycoca5 in the user context
(cherry picked from commit 4dada63a17)
2018-10-05 11:27:17 +08:00
Peter Hoeg
092f82b803 switch-to-configuration.pl: activate the nixos-activation.service user service
(cherry picked from commit 8118d6eb2e)
2018-10-05 11:27:03 +08:00
Peter Hoeg
c5b97d47b8 system-activation: support script fragments to run in a user context
(cherry picked from commit 1353ba2678)
2018-10-05 11:26:22 +08:00
Alex Leferry 2
b4d7324678 GRV: Fix typos in description
(cherry picked from commit 1bb4b16b3b)
2018-10-04 23:27:50 +01:00
Vladimír Čunát
8dae912c28 Merge #47699: nixos on hyperv improvements 2018-10-05 00:11:57 +02:00
Michael Weiss
cb08cb4333 Merge pull request #47884 from primeos/security-backports-for-18.09
[18.09] gollum, jekyll (security backports)
2018-10-04 21:50:44 +02:00
Andreas Rammhold
7c3459b027 Merge pull request #47874 from andir/18.09/thunderbird
[18.09] thunderbird:  60.0 -> 60.2.1, thunderbird-bin: 60.0 -> 60.2.1
2018-10-04 21:43:55 +02:00
Michael Weiss
1f96d2f3e4 gollum: 4.1.3 -> 4.1.4 (security, CVE-2018-3740)
(cherry picked from commit 18b468ed81)
Reason: Security update: "Depend on new version of gollum-lib that
relies on a patched version of sanitize, which solves a vulnerability
(CVE-2018-3740). See https://github.com/gollum/gollum-lib/pull/296."
2018-10-04 21:15:38 +02:00
Michael Weiss
5ca268d7cf jekyll: 3.8.3 -> 3.8.4 (security)
(cherry picked from commit e8a35913e1)
Reason: Security update: "fix include bypass of EntryFilter#filter
symlink check".
2018-10-04 21:14:46 +02:00
Michael Weiss
69d32c2a33 gollum: 4.1.2 -> 4.1.3
(cherry picked from commit 265c5fc485)
Reason: Security update: "Solves a vulnerability in the File view and
All Pages view that would allow XSS."
2018-10-04 21:13:50 +02:00
zimbatm
5399898b86 elvish: provide the compiled version
Without this fix, `elvish -version` displays "unknown"

(cherry picked from commit 9d49cf1808)
2018-10-04 19:54:45 +01:00
taku0
20063233d6 thunderbird-bin: 60.0 -> 60.2.1
(cherry picked from commit d4de3b2d34)
2018-10-04 19:20:58 +02:00
taku0
5669552c91 thunderbird: 60.0 -> 60.2.1
(cherry picked from commit d802524def)
2018-10-04 19:20:29 +02:00
Vladimír Čunát
c78e3b7cfb nixos-option: fix #47722 when missing ~/.nix-defexpr/channels
The problem was that the non-fatal warning was not omitted
from the output when constructing a nix expression.
Now it seems OK for me.  When return code is OK,
the warnings don't get passed anywhere, but I expect
that won't matter for this utility.  Fatal errors are still shown.

(cherry picked from commit de93b32f90)
2018-10-04 17:22:05 +02:00
Florian Klink
c02f213dfa terraform-providers.matchbox: init at 0.2.2 (#47863)
(cherry picked from commit e4f4e9fd1d)
2018-10-04 16:15:49 +02:00
Jörg Thalheim
be38959376 Merge pull request #47407 from kalbasit/nixpkgs_add-terraform-provider-nixos
terraform: update all providers and move nixos provider under terraform.withPlugins
(cherry picked from commit 5547a8b6a5)
2018-10-04 11:40:57 +02:00
Vladimír Čunát
11ec1cd1a6 Merge branch 'staging-18.09' into release-18.09 2018-10-04 08:45:49 +02:00
Tim Steinbach
6cbd1ec4b0 linux: 4.18.11 -> 4.18.12
(cherry picked from commit 21db680d32522ece1cbb3999b8e468f2e8b57906)
2018-10-03 23:48:23 -04:00
Tim Steinbach
a4d4490254 linux: 4.14.73 -> 4.14.74
(cherry picked from commit 575c118a6469cd2148ed3092de90f0d8d3aaec53)
2018-10-03 23:48:16 -04:00
Tim Steinbach
e468090878 linux: 4.9.130 -> 4.9.131
(cherry picked from commit e6ff57b328e913ae656e038a819b12926eadd230)
2018-10-03 23:48:08 -04:00
Samuel Dionne-Riel
91c3bc1dfe doc: installing-usb: removes notes about unetbootin.
They are known to cause more issues than solving issues; futhermore
using `dd` should work everywhere without fail.

(cherry picked from commit 8467dc857b)
2018-10-03 22:57:04 -04:00
Samuel Dionne-Riel
9da278dc38 doc: Reviews partitioning instructions to use parted.
The tests in <nixos/tests/installer.nix> are using `parted`, so they are
bound to be better tested than `fdisk`.

This is brought on by a couple issues, plus reports on IRC that the
`fdisk` instructions didn't work as expected.

 * #39354
 * #46309
 * #39942
 * #45478

Care was taken so that the other documented steps did not need changes.

In all this kerfufle, a slight re-organization of the Chapter has been
made, allowing better deep linking.

(cherry picked from commit 6cfbf403ca)
2018-10-03 22:57:00 -04:00
Samuel Dionne-Riel
292d4fce90 nixos/doc: Adds sub-folder to input files.
(cherry picked from commit 2c0d56f007)
2018-10-03 22:56:54 -04:00
Samuel Dionne-Riel
59f5dea6bd doc: installing-usb make macOS note a note.
While it seemingly brings more attention to the macOS notes with the
default docbook template, it better represents which parts of the
section are about macOS, and which parts are simply in the flow of the
text; otherwise the last paragraph may be lost into the details for
macOS.

(cherry picked from commit 8192fcd0fd)
2018-10-03 22:56:33 -04:00
Graham Christensen
e13c208665 nixpkgs docs: format 2018-10-03 22:01:16 -04:00
Graham Christensen
4a0da7f3ac nixpkgs docs: Rebuild manual-full if nested XML docs change 2018-10-03 22:00:29 -04:00
Graham Christensen
ce5e6466b6 shell functions: rewrite as xml 2018-10-03 22:00:29 -04:00
Graham Christensen
5954454dd1 nixpkgs docs: move shell section to its own file 2018-10-03 22:00:28 -04:00
Graham Christensen
7413dce611 nixpkgs docs: move dockertool to its own file 2018-10-03 22:00:27 -04:00
Graham Christensen
191745989c nixpkgs docs: move fhs-environments to its own file 2018-10-03 21:58:37 -04:00
Graham Christensen
05519f21fc nixpkgs docs: move debug to its own file 2018-10-03 21:58:37 -04:00
Graham Christensen
b66df5c45d nixpkgs docs: move generators to its own file 2018-10-03 21:58:37 -04:00
Graham Christensen
3b739c0daf nixpkgs docs: move overrides to its own file 2018-10-03 21:57:26 -04:00
Jörg Thalheim
46069d481c Merge pull request #47709 from et4te/rustbuild-fix-staging
buildRustPackage: install binaries to bin and libraries to lib correctly
2018-10-04 00:03:15 +01:00
Jan Tojnar
d6ff529d05 Merge pull request #47515 from alexeymuranov/update-flatpak-on-18.09
[18.09] flatpak: 0.99.3 -> 1.0.2 (cherry-picked from master)
2018-10-03 21:05:19 +02:00
Matthew Bauer
c090089aad Merge pull request #47788 from prusnak/gcc-arm-embedded_update-18.09
gcc-arm-embedded: 6-2017-q2-update -> 7-2018-q2-update
2018-10-03 13:49:53 -05:00
Jörg Thalheim
e6a6523818 Merge pull request #47757 from nyanloutre/cherry-pick-jackett
[18.09] jackett: cherry-pick 0.10.250
2018-10-03 18:55:12 +01:00
Pavol Rusnak
9fc3dc917a gcc-arm-embedded: 6-2017-q2-update -> 7-2018-q2-update
+ update blackmagic to latest commit which includes gcc7 fixes

(cherry picked from commit b3531b9719)
2018-10-03 19:49:53 +02:00
Keshav Kini
536f6e86cf makeself: backport megastep/makeself#142
Currently, a self-extracting archive created by makeself will fail to
properly execute on NixOS because the boilerplate Bash code it uses to
clean up the temporary directory it extracted its contents into
assumes that the `rm` command is installed at `/bin/rm`, which is not
the case on NixOS.

This commit, a backport of a pull request I made to the upstream
repository at megastep/makeself#142, fixes the issue by causing the
boilerplate code to call `rm` without specifying an absolute path,
which allows the version of `rm` from one's current Nix environment to
be used instead.

(cherry picked from commit eb84586cad)
2018-10-03 18:38:48 +01:00
R. RyanTM
9a8c266656 libressl_2_8: 2.8.0 -> 2.8.1
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libressl/versions

(cherry picked from commit 807d73c391)
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-10-03 11:59:21 -05:00
nyanloutre
4507f60278 jackett: 0.10.198 -> 0.10.250 2018-10-03 15:24:37 +02:00
R. RyanTM
b8e9aff1d7 jackett: 0.10.160 -> 0.10.198
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/jackett/versions
2018-10-03 15:24:36 +02:00
Paul TREHIOU
5a725dcbd0 jackett: 0.9.41 -> 0.10.160 (#46114)
* jackett: update mono to 5.8

Jackett needs mono version >= 5.8

https://github.com/Jackett/Jackett/blob/master/README.md#supported-systems

* jackett: 0.9.41 -> 0.10.160
2018-10-03 15:24:36 +02:00
taku0
04675c8aaa thunderbird: 60.0 -> 60.2.1
(cherry picked from commit d802524def)
2018-10-03 14:54:36 +02:00
taku0
964489f201 thunderbird-bin: 60.0 -> 60.2.1
(cherry picked from commit d4de3b2d34)
2018-10-03 14:54:14 +02:00
Márton Boros
1ae800be28 Fix systemd timer unit documentation
Fixes #36210

(cherry picked from commit d8a555d819)
2018-10-03 08:46:40 -04:00
zimbatm
6e0c9ffbd4 google-compute-engine: 20180510 -> 20180905
The list of corresponding NixOS services are also updated

(cherry picked from commit 9fb79868ab)
2018-10-03 14:11:36 +02:00
Periklis Tsirakidis
f12ea6195e kubectx: 0.5.1 -> 0.6.1
Also provides shell completions for zsh, bash and fish

(cherry picked from commit b9f9b05c37)
Backport of #47731
2018-10-03 13:19:50 +02:00
Maximilian Bosch
6e93cdfe35 nixos/activation: fix systemd-user daemon-reload in auto-upgrade service (#47695)
The autoupgrade service defined in `system.autoUpgrade`
(`nixos/modules/installer/tools/auto-upgrade.nix`) doesn't have `su` in
its path and thus yields a warning during the `daemon-reload`.

Specifying the absolute path fixes the issue.

Fixes #47648

(cherry picked from commit 7297cc5501 and
resolved conflict)
2018-10-03 12:43:20 +02:00
R. RyanTM
b7bfb4180e wireguard-tools: 0.0.20180918 -> 0.0.20180925
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/wireguard-tools/versions

(cherry picked from commit 1491848406)
2018-10-03 11:34:38 +01:00
Andreas Rammhold
1e81ff3244 Merge pull request #47714 from andir/18.09/firefox
[18.09] firefox{-bin,}: 62.0.2 -> 62.0.3, firefox-esr-60: 60.2.1 -> 60.2.2
2018-10-03 11:24:01 +02:00
Andreas Rammhold
f4b24ac5e4 firefox-esr-60: 60.2.1 -> 60.2.2 [critical security fixes]
This update bumps the package to the latest stable version containing a
few security fixes:

- CVE-2018-12386: Type confusion in JavaScript
  A vulnerability in register allocation in JavaScript can lead to type
  confusion, allowing for an arbitrary read and write. This leads to
  remote code execution inside the sandboxed content process when
  triggered.

- CVE-2018-12387
  A vulnerability where the JavaScript JIT compiler inlines
  Array.prototype.push with multiple arguments that results in the stack
  pointer being off by 8 bytes after a bailout. This leaks a memory
  address to the calling function which can be used as part of an
  exploit inside the sandboxed content process.

Source: https://www.mozilla.org/en-US/security/advisories/mfsa2018-24/
(cherry picked from commit 246d2848ff)
2018-10-03 09:54:47 +02:00
Andreas Rammhold
22502e78be firefox: 62.0.2 -> 62.0.3 [critical security fixes]
This update bumps the package to the latest stable version containing a
few security fixes:

- CVE-2018-12386: Type confusion in JavaScript
  A vulnerability in register allocation in JavaScript can lead to type
  confusion, allowing for an arbitrary read and write. This leads to
  remote code execution inside the sandboxed content process when
  triggered.

- CVE-2018-12387
  A vulnerability where the JavaScript JIT compiler inlines
  Array.prototype.push with multiple arguments that results in the stack
  pointer being off by 8 bytes after a bailout. This leaks a memory
  address to the calling function which can be used as part of an
  exploit inside the sandboxed content process.

Source: https://www.mozilla.org/en-US/security/advisories/mfsa2018-24/
(cherry picked from commit e7785f1148)
2018-10-03 09:54:41 +02:00
Andreas Rammhold
4663251636 firefox-bin: 62.0.2 -> 62.0.3 [critical security fixes]
This update bumps the package to the latest stable version containing a
few security fixes:

- CVE-2018-12386: Type confusion in JavaScript
  A vulnerability in register allocation in JavaScript can lead to type
  confusion, allowing for an arbitrary read and write. This leads to
  remote code execution inside the sandboxed content process when
  triggered.

- CVE-2018-12387
  A vulnerability where the JavaScript JIT compiler inlines
  Array.prototype.push with multiple arguments that results in the stack
  pointer being off by 8 bytes after a bailout. This leaks a memory
  address to the calling function which can be used as part of an
  exploit inside the sandboxed content process.

Source: https://www.mozilla.org/en-US/security/advisories/mfsa2018-24/
(cherry picked from commit 64d02660cb)
2018-10-03 09:54:35 +02:00
Edward Tate
c3f8368f97 Shortened rmdir, improved regex to support shared libs with multiple integers at the end. 2018-10-03 09:25:53 +02:00
Edward Tate
f08cebd8d2 Use regex instead of -name in find with -print0 and xargs -0. 2018-10-03 09:25:53 +02:00
Edward Tate
6f37fa7c99 buildRustPackage now correctly installs binaries to bin and libraries to lib. 2018-10-03 09:25:53 +02:00
Peter Hoeg
9ffdaa1f19 nixos on hyperv: hot-add CPU
(cherry picked from commit 6e3e136f77)
2018-10-03 11:46:48 +08:00
Peter Hoeg
18ae457bc7 nixos-installer: use the hyperv module on hyperv
(cherry picked from commit ca6d41ae65)
2018-10-03 11:46:42 +08:00
Peter Hoeg
42968c07c5 nixos on hyperv: load modules and set video mode
(cherry picked from commit 3a76bc7a79)
2018-10-03 11:46:36 +08:00
R. RyanTM
7f70ebf30b matomo: 3.5.1 -> 3.6.0 (#46242)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
matomo

(cherry picked from commit c45dd04946)

backported for security updates
2018-10-02 22:47:39 +02:00
Matthew Bauer
79bbe4d543 haskell: fix x509-system on mojave
darwin.security_tool is currently broken in Mojave. See issue #45042
for more info. Our security_tool stuff comes from 10.9 so I suspect
that it needs an update.

Here I am putting in a hack to get things working again. This uses the
system provided security binary at /usr/bin/security to avoid the
issue in Haskell’s x509-system package. Unfortunately, this will break
with the sandbox. I am also working on a proper fix, but this requires
updating lots of Apple stuff (and also copumpkin’s new CF). You can
follow the progress on this branch:

  https://github.com/matthewbauer/nixpkgs/tree/xcode-security

This commit should be backported to release-18.03 and release-18.09.

/cc @copumpkin @lnl7 @pikajude
2018-10-02 15:20:55 -05:00
Philipp Middendorf
9934f413da jetbrains: add libnotify to wrapper to enable notifications
(cherry picked from commit 0b2f2f3d96)
2018-10-02 20:12:05 +01:00
Philipp Middendorf
0f51003a5b jshint: depend on phantomjs2
(cherry picked from commit 22e9c0a6fa)
2018-10-02 19:34:35 +01:00
R. RyanTM
3e44d2f2b5 verilator: 3.926 -> 4.002
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/verilator/versions

(cherry picked from commit 609f9198f2)
2018-10-02 09:58:38 -05:00
Léo Gaspard
18749a72b7 jetbrains.idea-community: add IntelliJ keyword to the longDescription (#47650)
This should make it easier to find the package under the name
IntelliJ in eg. [1]

[1] https://nixos.org/nixos/packages.html#intellij

(cherry picked from commit 5f5905e30e)
2018-10-02 16:03:42 +02:00
Josef Kemetmüller
0d8c62c15c libcanberra: fix darwin build (#47634)
(cherry picked from commit aeee761aba)
2018-10-02 12:56:34 +02:00
Matthew Pickering
0a198954be gdal: 2.3.1 -> 2.3.2
(cherry picked from commit f80730d903)
Backport of #47565
2018-10-02 09:09:54 +02:00
WilliButz
b8ef448e95 nvtop: use version-independent libnvidia-ml.so symlink
(cherry picked from commit 781206217e)
2018-10-02 08:42:57 +02:00
John Ericson
3e55299b41 Merge pull request #47646 from obsidiansystems/ghc-8.2.2-change-patch
ghc-8.2.2: Oops, added adjacent patch the one I wanted
2018-10-02 01:46:39 -04:00
John Ericson
0ce0851442 Merge pull request #47645 from obsidiansystems/ghc-8.2-hsc2hs
ghc-8.2.2: Fix which hsc2hs is installed on cross for 18.09
2018-10-02 01:10:51 -04:00
Austin Seipp
7b05874c1b perlPackages.Mojolicious: 8.0 -> 8.01
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 5a179ffb01)
2018-10-01 23:26:47 -05:00
Austin Seipp
2e06ce8e98 perlPackages.MojoliciousPluginStatus: init at 1.0
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 37ce9316bf)
2018-10-01 23:26:47 -05:00
Austin Seipp
56f5ff8a3c perlPackages: init Sereal package family at 4.005
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 65923ede17)
2018-10-01 23:26:47 -05:00
Austin Seipp
029d9c8173 symbiyosys: 2018.07.26 -> 2018.09.12
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 919a3b7f9c)
2018-10-01 23:26:47 -05:00
Austin Seipp
bcad3bb1e8 yosys: 2018.08.08 -> 2018.09.30
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit d7393024d1)
2018-10-01 23:26:47 -05:00
Austin Seipp
8edbdae43d arachne-pnr: 2018.05.13 -> 2018.09.08
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 7b0b895053)
2018-10-01 23:26:47 -05:00
Austin Seipp
aa4177b408 icestorm: 2018.08.01 -> 2018.09.04
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 1e9e3adfb1)
2018-10-01 23:26:47 -05:00
Franz Pletz
66fd61163a nixos/clamav: fix freshclam service if db up to date
(cherry picked from commit 11ba2f270f)
2018-10-02 00:27:24 +02:00
Franz Pletz
5fc5a4fb21 nixos/clamav: fix daemon/updater services toggling
(cherry picked from commit f8d681a91f)
2018-10-02 00:27:23 +02:00
Franz Pletz
b3038ade6f shairport-sync: fix pulseaudio support & default arguments
(cherry picked from commit e7ca9af4cc)
2018-10-02 00:27:23 +02:00
Uli Baum
f2faf3299e Merge branch 'release-18.09' into staging-18.09 2018-10-02 00:17:52 +02:00
Will Dietz
1f1c8079b3 lz4: 1.8.2 -> 1.8.3 (#47547)
(cherry picked from commit 55b6cad537)
2018-10-02 00:16:26 +02:00
John Ericson
d296abb484 Merge pull request #47627 from obsidiansystems/ghc-cross-fixes
ghc: Misc cross fixes for 18.09
2018-10-01 17:19:34 -04:00
Sarah Brofeldt
a54dadb950 nixos/tests/nix-ssh-serve.nix: Use stable nix (#47584)
(cherry picked from commit 358a1c8a28)
2018-10-01 23:02:10 +02:00
xeji
10eec00131 linux kernel: increase build timeout from 1hr to 4 hrs (#47564)
We've recently seen a lot of kernel build timeouts on hydra,
so let's increase the timeout.

(cherry picked from commit 83fd9785f6 and
resolved conflict)
2018-10-01 17:45:27 +02:00
Jörg Thalheim
ec3497a084 Merge pull request #47592 from Mic92/alacritty-backport
alacritty: 2018-08-30 -> 0.2.0 (backport)
2018-10-01 12:23:10 +01:00
Jörg Thalheim
57a4034bd0 alacritty: spell darwin platform correctly
(cherry picked from commit 13b2903169)
2018-10-01 12:09:21 +01:00
Jörg Thalheim
44125457d4 alacritty: restrict platforms to x86_64-{linux,darwin}
(cherry picked from commit 350c79f983)
2018-10-01 12:03:31 +01:00
Jörg Thalheim
2d84895618 alacritty: 2018-08-30 -> 0.2.0
Based on popular demand I decided to upgraded alacritty from my own fork.
We currently also have a version in staging that works without but we
cannot easily backport this one because it relies on some changes in the rust
build infrastructure

(cherry picked from commit cb6ccb6a7e)
2018-10-01 12:03:28 +01:00
Sarah Brofeldt
ff37ba7028 dockerTools: Use nix instead of nixUnstable
(cherry picked from commit b256df4937)
2018-10-01 10:05:50 +02:00
Florian Klink
b550b7d9e3 pythonPackages.pystemd: init at 0.5.0 (#47517)
(cherry picked from commit 2be514d5c3)
2018-10-01 07:36:56 +01:00
Josef Kemetmüller
0f1911eea2 pythonPackages.py-cpuinfo: Fix darwin build (#47558)
(cherry picked from commit 49dcf7be62)
2018-09-30 21:19:24 +02:00
volth
a3e5e6e792 language_subtag_registry: fix hash (#47555)
(cherry picked from commit 61007c0e96)
2018-09-30 21:15:36 +02:00
Josef Kemetmüller
f2a1d990ec pythonPackages.python-mapnik: Fix build
There were two things to fix:
- Boost started shipping libboost_python.so as libboost_python{Major}{Minor}
- Make sure that mapnik and boost link to the correct version of python.

(cherry picked from commit be6451e020)
2018-09-30 21:13:26 +02:00
Josef Kemetmüller
8b3bff1de7 mapnik: 3.0.13 -> 3.0.20
(cherry picked from commit b1857daa25)
2018-09-30 21:13:25 +02:00
Graham Christensen
26537f5379 docs: format 2018-09-29 20:49:27 -04:00
Graham Christensen
4867086bc7 Revert "Revert "doc: Update section about imperative containers""
I fixed the problem.

This reverts commit 29624f6bb2.
2018-09-29 20:47:03 -04:00
Will Dietz
4c3a0ae445 nix-daemon: only add channels dir to NIX_PATH if exists
Per reviewer comment (thanks!).

(cherry picked from commit 243e28bc96)
2018-09-29 20:34:13 -04:00
Tuomas Tynkkynen
aa0c7bd5ed nixos/kexec: Replace meta.available checks
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

[dezgeg: Also squash in the bugfix commit "nixos/kexec: Fix typo in meta.platforms" by aszlig]

(cherry picked from commit 599c4df46a)
(cherry picked from commit fd8bca45c9)
2018-09-30 03:09:46 +03:00
Tuomas Tynkkynen
5330abad53 ghc: Replace meta.available checks for enableIntegerSimple
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

(cherry picked from commit f4dd2fed7f)
2018-09-30 02:13:48 +03:00
Tuomas Tynkkynen
ae63055af9 treewide: Replace meta.available checks in shouldUsePackages copypasta
This reverts commit 79d8353b5e.

This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

(cherry picked from commit 5e84926a66)
2018-09-30 02:13:48 +03:00
Tuomas Tynkkynen
2c3443e2d2 apparmor: Replace meta.available checks
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

(cherry picked from commit 50d0360888)
2018-09-30 02:13:47 +03:00
Tuomas Tynkkynen
50da319891 nix: Replace meta.available checks
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

(cherry picked from commit cdeafe7cdf)

Conflicts:
	pkgs/tools/package-management/nix/default.nix
2018-09-30 02:13:41 +03:00
Tuomas Tynkkynen
6b1ebeb5eb systemd: Replace meta.available checks
This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
true by making them do unpredictable things.

(cherry picked from commit fe7919f7a1)
2018-09-30 02:12:30 +03:00
Tuomas Tynkkynen
29624f6bb2 Revert "doc: Update section about imperative containers"
This reverts commit b72abcf861.

Breaks manual build:

https://nix-cache.s3.amazonaws.com/log/wnjcy6n5f871bpyy9nd06smiz1ggv99c-nixos-manual-combined.drv
2018-09-30 01:02:45 +03:00
Tim Steinbach
b7cab85b26 linux: 4.18.10 -> 4.18.11
(cherry picked from commit 5eefdebf49)
2018-09-29 17:55:08 -04:00
Tim Steinbach
99b696927a linux: 4.14.72 -> 4.14.73
(cherry picked from commit 00e57782bc)
2018-09-29 17:54:57 -04:00
Tim Steinbach
9bd9306c36 linux: 4.9.129 -> 4.9.130
(cherry picked from commit 74f56e14d9)
2018-09-29 17:54:46 -04:00
Tim Steinbach
c2e605e9d1 linux: 4.4.158 -> 4.4.159
(cherry picked from commit 7769fd6a80)
2018-09-29 17:54:36 -04:00
Tycho Grouwstra
1d5b7a7d42 gitkraken: 4.0.2 -> 4.0.5 (#47512)
Fixes #47498. Note that the releases have moved to a new URL; I'm not sure they still host the earlier versions.

(cherry picked from commit 9d727e0a91)

backported because previous source url returns 404.
2018-09-29 20:51:42 +02:00
Arian van Putten
b72abcf861 doc: Update section about imperative containers
Nix commands inside the container have been broken since 18.03,
and no fix is yet in sight.  Lets remove from the documentation
that this is a usecase that we support, as it doesn't seem
likely that this will be fixed before 18.09 either.

See #40355

(cherry picked from commit f309440ee3)
2018-09-29 19:18:54 +01:00
Jan Tojnar
0f9355abb2 flatpak-builder: add libyaml
(cherry picked from commit 7d2c8bbe9a)
2018-09-29 13:21:22 +02:00
Jan Tojnar
941941b151 xdg-dbus-proxy: init at 0.1.0
(cherry picked from commit 2d19ee6247)
2018-09-29 13:21:22 +02:00
Tor Hedin Brønner
7569e96508 ostree: 2018.6 -> 2018.8
(cherry picked from commit 87d11ae99c)
2018-09-29 13:21:22 +02:00
Tor Hedin Brønner
8063903183 xdg-desktop-portal-gtk: 0.99 -> 1.0.2
(cherry picked from commit b6c17cd46f)
2018-09-29 13:21:22 +02:00
Tor Hedin Brønner
3f0618a7ed flatpak: 0.99.3 -> 1.0.2
(cherry picked from commit 37a828ec27)
2018-09-29 13:21:22 +02:00
Tor Hedin Brønner
e80820d5b7 xdg-desktop-portal: 0.99 -> 1.0.2
(cherry picked from commit 0d994736a1)
2018-09-29 13:21:22 +02:00
Tor Hedin Brønner
727eb5ed78 pipewire: 0.1.9 -> 0.2.3
I also removed pipewire from mutter temporarily, since it is not compatible.

(cherry picked from commit c32b0409a9)
2018-09-29 13:21:21 +02:00
Vladimír Čunát
c5668bd183 Merge branch 'staging-18.09' into release-18.09 2018-09-29 11:09:27 +02:00
Vladimír Čunát
fe195c03ed Merge #45683: nvidia_x11: 390.77 -> 390.87
(cherry picked from commit d9f7d27ef5)
2018-09-29 11:09:16 +02:00
Tom Bereknyei
6c68068a52 gnuradio: 3.7.13.3 -> 3.7.13.4
(cherry picked from commit a054f269bf)
Backport of #47491
2018-09-29 10:57:01 +02:00
Wael M. Nasreddine
56591a244e browsh: 1.4.10 -> 1.4.13
(cherry picked from commit fa46ce3828)
Backport of #47501
2018-09-29 10:00:28 +02:00
symphorien
c922e20b5d exempi: patch CVE-2018-12648, enable tests on linux (#47496)
(cherry picked from commit e502c72773)
2018-09-29 00:16:18 +02:00
Daiderd Jordan
f5db056efd freedroidrpg: don't build on hydra
Similar to some other builds, sdl-config gets stuck and times out.

    checking for sdl-config... /nix/store/q2hm1ka0qxs2gv5bmrxj7j80lygk4b5z-SDL-1.2.15-dev/bin/sdl-config
    building of '/nix/store/m2d7v0n5hd2498vfxp18i37p7r1lf76p-freedroidrpg-0.16.1' timed out after 7200 seconds of silence

/cc ZHF #45961

(cherry picked from commit 9b99819283)
2018-09-28 22:33:32 +02:00
Daiderd Jordan
e087e20239 flpsed: mark linux only
Doesn't build on darwin and probably other platforms.

    GsWidget.H:26:3: error: 'Atom' does not name a type; did you mean 'tm'?
       Atom atoms[5];
       ^~~~
       tm
    GsWidget.cxx: In member function 'void GsWidget::setProps()':
    GsWidget.cxx:47:2: error: 'atoms' was not declared in this scope
      atoms[0] = XInternAtom(fl_display,"GHOSTVIEW" , false);
      ^~~~~

/cc ZHF #45961

(cherry picked from commit cd78d0cc3f)
2018-09-28 22:33:32 +02:00
Daiderd Jordan
c1f9ffc740 fox: mark broken on darwin
Undefined symbols for architecture x86_64:
      "_MPCreateSemaphore", referenced from:
          FX::FXSemaphore::FXSemaphore(int) in FXThread.o
          FX::FXSemaphore::FXSemaphore(int) in FXThread.o
      "_MPDeleteSemaphore", referenced from:
          FX::FXSemaphore::~FXSemaphore() in FXThread.o
          FX::FXSemaphore::~FXSemaphore() in FXThread.o
      "_MPSignalSemaphore", referenced from:
          FX::FXSemaphore::post() in FXThread.o
      "_MPWaitOnSemaphore", referenced from:
          FX::FXSemaphore::wait() in FXThread.o
          FX::FXSemaphore::trywait() in FXThread.o
    ld: symbol(s) not found for architecture x86_64

/cc ZHF #45961

(cherry picked from commit 6390b8b63e)
2018-09-28 22:33:31 +02:00
Brian Olsen
3108f741fe nixos/rspamd: Remove non-working socket activation
The socket activation I added to the rspamd module doesn't actually work
and can't be made to work without changes to rspamd.

See: #47421
See: rspamd/rspamd#2035
(cherry picked from commit 783a58f363)
2018-09-28 21:04:41 +02:00
John Ericson
aab182ebea Merge pull request #47488 from obsidiansystems/ghcjs-ghc-version
ghcjs-*: Expose the version of GHC used
2018-09-28 12:33:35 -04:00
Jörg Thalheim
1e9f50f156 systemd: don't restart user-runtime-dir@ on upgrades
Likewise logind we should not try to restart this service after upgrade,
the user's current session depends on it.

(cherry picked from commit aa69bb5743)
2018-09-28 12:10:36 +01:00
Orivej Desh
1e1821c166 retroshare: mark as broken (#47350)
Broken by libupnp: 1.6.21 -> 1.8.3 (#41684).

(cherry picked from commit eeac44c81a)
2018-09-28 11:57:57 +02:00
xeji
0c29a51467 linuxPackages.jool: 3.5.7 -> unstable-20180706 (#47284)
3.5.7 doesn't build with kernel 4.14.71.
Needs most recent upstream revision to build, which supports
kernels up to 4.17.

(cherry picked from commit f0e4b31eb2)
2018-09-28 11:55:12 +02:00
Tuomas Tynkkynen
a7fa8e1aa8 Add ssh backdoor to VM tests infrastructure.
Thanks to @dezgeg for prototype implementation, I've
cleaned it up and added documentation.

(cherry picked from commit d6e3db44cf)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-28 10:54:09 +01:00
Sarah Brofeldt
0e0cd2fc30 haskellPackages.term-rewriting: doJailbreak and dontCheck
(cherry picked from commit 5c45ca0943)
Backport of #47456
2018-09-28 10:48:19 +02:00
John Ericson
3768913cc9 Merge pull request #47445 from obsidiansystems/ghcjs-no-double-callPackage
ghcjs-{7.10, 8.0}: Improve overriding situation for 18.09
2018-09-27 19:11:52 -04:00
Brian Olsen
0f4e117054 nixos/rspamd: Preserve runtime directory when using socket activation
(cherry picked from commit 458bcc8f7a)
2018-09-27 14:09:54 +01:00
Jean-Philippe Cugnet
cdb33d1ddc erlangR19: 19.3.6.6 -> 19.3.6.11
(cherry picked from commit bf22712993)
Backport of #47367
2018-09-27 10:44:30 +02:00
Jean-Philippe Cugnet
d101614d71 erlangR20: 20.3.8 -> 20.3.8.9
(cherry picked from commit 6e5682ab41)
Backport #47369
2018-09-27 10:22:32 +02:00
Florian Klink
cf64adec53 golden-cheetah: add desktop item and icon
(cherry picked from commit bb51ba9bb8)
2018-09-27 09:54:37 +02:00
Austin Seipp
3c85e586b3 libiio: install python bindings
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit af48e5783a)
2018-09-26 19:40:41 -05:00
Corey O'Connor
d26e830997 vlc: 3.0.3 -> 3.0.4 (#47406)
(cherry picked from commit 26ce265258)

Didn't build, invalid url for vlc-qt5.11.patch.
2018-09-26 23:27:42 +02:00
John Ericson
8e2e8bb882 Merge remote-tracking branch 'upstream/release-18.09' into staging-18.09 2018-09-26 15:55:37 -04:00
John Ericson
3b5c708ac8 Merge pull request #47401 from obsidiansystems/paxctl-darwin-no-mass-rebuild
paxctl: Fix darwin and cross without mass-rebuild for 18.09
2018-09-26 15:52:44 -04:00
xeji
e5eabccb00 Merge pull request #47396 from rycee/backport/noti
Backport the noti package to 18.09
2018-09-26 19:31:44 +02:00
Mario Rodas
583a32148c noti: fix darwin build
(cherry picked from commit 4c56eb81e9)
2018-09-26 18:54:57 +02:00
stites
e835796a18 noti: init at 3.1.0
(cherry picked from commit f1c30cf772)
2018-09-26 18:54:56 +02:00
stites
e861f31344 add stites to maintainers list
(cherry picked from commit 82f980828d)
2018-09-26 18:54:56 +02:00
John Ericson
6bc58a9438 Merge branch 'release-18.09' into staging-18.09 2018-09-26 11:23:49 -04:00
John Ericson
e06de91855 Merge commit '607063f61be3b19a2da054776b360d9c5b03038a' into release-18.09
This gets the partial revert on the common ancestor of master and
release-18.09, easier further devlopment.
2018-09-26 11:22:28 -04:00
Tim Steinbach
a3b7cd1fa3 linux: 4.18.9 -> 4.18.10
(cherry picked from commit 24c31d43bb)
2018-09-26 08:02:35 -04:00
Tim Steinbach
74680cff73 linux: 4.14.71 -> 4.14.72
(cherry picked from commit 61452c82ae)
2018-09-26 08:02:29 -04:00
Tim Steinbach
1c7a4320e8 linux: 4.9.128 -> 4.9.129
(cherry picked from commit 8e4d980904)
2018-09-26 08:02:23 -04:00
Tim Steinbach
a4cedc0981 linux: 4.4.157 -> 4.4.158
(cherry picked from commit 656ca2296c)
2018-09-26 08:02:18 -04:00
Domen Kožar
29660a2085 postgresql: give postgres user a shell
(cherry picked from commit 82feb4b66e)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-26 12:12:29 +01:00
Matthew Bauer
f9c4075873 stdenv: partial revert of f2bb59e
/cc @Ericson2314

PR was https://github.com/NixOS/nixpkgs/pull/46857

This line broke MacOS cross compilation. paxctl cannot be built on
macOS. Maybe it can be fixed, but no reason to break things
unnecessarily.

Regardless, you definitely need to be more careful about backporting.
I think it’s fine to move fast and break things on master but
with release-18.09 we should be more careful. Something like more
automated testing for cross compilation would also be
helpful (hopefully even making it block).
2018-09-26 02:23:07 -05:00
Okina Matara
0b70148bd6 linux_testing_bcachefs: 4.18.2018.08.31 -> 4.18.2018.09.21
(cherry picked from commit d98b0805cc)
2018-09-26 08:49:53 +02:00
xeji
391bf82ca3 qboot: 20150603 -> 20170330, fix build (#47364)
Switch back to original upstream project which is more recent
than the fork we used.

(cherry picked from commit 4ad424fbd6)
2018-09-25 22:33:46 +02:00
John Ericson
372d0cc4f4 Merge pull request #47363 from obsidiansystems/ghc-sphinx
ghc: Sphinx is a build-time dependency
2018-09-25 16:31:27 -04:00
Luke Clifton
67e53e0c6d abduco: refactor (compile on darwin) (#47124)
(cherry picked from commit 3d8f6b6188)
2018-09-25 22:30:03 +02:00
Luke Clifton
b018ccca8f dvtm: refactor (fix on darwin) (#47103)
(cherry picked from commit 4eebe205fe)
2018-09-25 22:28:48 +02:00
Michael Roitzsch
0253b1e38f podofo: fix library linkage on Darwin (#47214)
* podofo: fix library linkage on Darwin

Because the library is not yet installed when the tools are build, it does not contain its final store path as its install name. Linking the tools picks up this incorrect install name and needs to be fixed after installing.

(cherry picked from commit 4b1ffa0b00)
2018-09-25 22:12:17 +02:00
gnidorah
f2210522d2 tdesktop: support opening urls under wayland
(cherry picked from commit e79ccc1100)
2018-09-25 21:10:33 +01:00
John Ericson
1d542e7e8f Merge pull request #47361 from obsidiansystems/python-format
python-*: Format `pythonPackages` bindings for 18.09
2018-09-25 15:40:01 -04:00
John Ericson
3252c48c29 Merge commit 'a70aeacbf770757212e1845b97ea7d561b5f7af4' into staging-18.09 2018-09-25 14:48:54 -04:00
John Ericson
a70aeacbf7 Merge remote-tracking branch 'upstream/release-18.09' 2018-09-25 14:48:31 -04:00
John Ericson
37a5fcb775 Merge pull request #47356 from obsidiansystems/numpy-fortran
numpy, scipy: Fix some nativeBuildInputs  for 18.09
2018-09-25 14:45:45 -04:00
John Ericson
b7dbd81c9c Merge remote-tracking branch 'upstream/release-18.09' into staging-18.09 2018-09-25 14:19:32 -04:00
zimbatm
35832681f1 firefox-bin: fix channel patching
The patchPhase wasn't being applied at all.

This patch re-enables that and also re-thinks the setting that we want
to have. Turning off the auto-update is more accurate and doesn't lose
information like it did before.

(cherry picked from commit 6060940c24)
2018-09-25 15:49:32 +01:00
Uli Baum
69514d78a6 herqq: mark broken
- build fails with qt511 and qt59
  (it used to build with qt510 which is not available anymore)
- no nixpkgs maintainer
- upstream repo looks inactive, last commit a year ago

(cherry picked from commit 9beaa6dcad)
2018-09-25 12:26:45 +02:00
Uli Baum
a7792ffa4f monodevelop: mark broken
build has failed since 2018-03-08
cc maintainer @obadz

(cherry picked from commit 6b4abb9fa7)
2018-09-25 12:26:45 +02:00
Uli Baum
da6b7f6d84 gtk-sharp-3_0: mark broken
build has failed since 2018-04-28
no maintainer

(cherry picked from commit 395a1528f0)
2018-09-25 12:26:45 +02:00
Uli Baum
294060d163 Revert "virtualization/qemu-vm: fix and improve virtio/scsi switching"
This reverts commit 174e19d1f6.

It broke nixos.ova and eval of some tests.
2018-09-25 11:05:31 +02:00
Notkea
52799425f8 matrix-synapse: 0.33.3.1 -> 0.33.5
Upgrade matrix-synapse to the latest version,
adding a new required dependency (treq)

(cherry picked from commit 4cd6502925)
2018-09-25 10:03:10 +01:00
Colin Rice
86406e24bb go: Remove pkg/obj directory from the build outputs.
This appears to be causing the go package to be roughly 900MB in size.

(cherry picked from commit cdeb26ee76)
2018-09-25 09:47:55 +01:00
Florian Klink
e2d0b3be8d pythonPackages.elasticsearch-dsl: 0.0.9 -> 6.2.1
(cherry picked from commit 18c7fbd78d)
2018-09-25 08:58:11 +01:00
William Casarin
3b175f5d2a clightning: 0.6.0 -> 0.6.1
Update to the latest release.

Highlights for c-lightning users
--------------------------------

  - Less stuck payments: Liveness ping test before locking up funds with peers.
  - Better routing: now considers size of channels.
  - Fewer spurious closes: fee estimate improvements, and new feerates command
  - Several annoying bugs fixed.

Highlights for the network
--------------------------

  - Gossipd now less spammy with channel_update.
  - option_data_loss_protect to protect peers against being out-of-date.
  - Payment errors now refer to the correct channel.

Internal Improvements
---------------------

  - Simplified client flow; after init message exchange by connectd, each is
    isolated in its own daemon.
  - JSON parameter handling vastly simplfied.
  - Python testing framework now uses proper fixtures, and split into separate
    files.
  - Many other cleanups and clarifications.
  - We keepachangelog.com!

Signed-off-by: William Casarin <jb55@jb55.com>

(cherry picked from commit 2aa0b85653)
Backport of #47286
2018-09-25 08:49:32 +02:00
Michael Raskin
2039adfb4c Merge pull request #47289 from 1000101/master
trezord: 2.0.14 -> 2.0.19 and nixos/trezord: revised and updated udev rules
(cherry picked from commit ce411911e8)
2018-09-25 08:38:34 +02:00
Matthew Bauer
633e7ee7fb emacsMacport: 7.1 → 7.2
Fixes a critical issue with macOS

[NEWS](https://bitbucket.org/mituharu/emacs-mac/raw/master/NEWS-mac)

* emacs-26.1-mac-7.2 (2018-09-09)

** Fixed bugs

*** Buffer contents are not displayed on macOS 10.14.
This is mainly because now NSViews are backed by Core Animation Layer
(layer-backed) by default and non-deferred drawing into views no
longer works.  Instead of switching to deferred drawing (i.e., draw
only inside -[NSView drawRect:]), we draw into our own backing bitmap
in a non-deferred way as before, and update the view contents with the
resulting image via -[NSView updateLayer].  This "application-side
double buffering" is also available on OS X 10.8 - macOS 10.13 if you
set the frame parameter `inhibit-double-buffering' to nil when
creating a frame.  Just like on macOS 10.14, such a frame does not do
LCD smoothing.

*** Screenshot grabbed via Services is displayed in wrong size when we
have display mirroring between Retina and non-Retina displays.

*** Cursor movement just after frame resize sometimes leaves garbage.

*** Crash by the Fall_threads call from the GUI thread at the select
emulation when there are multiple Lisp threads.

*** Info title has ASCII underline unlike other window systems.

*** Vertical scroll bar is created as horizontal if frame font height
is short.

** Improvements

*** macOS 10.14 adds property :appearance to (mac-application-state).
The value may be "NSAppearanceNameAqua" or "NSAppearanceNameDarkAqua".

*** Add new color format "mac:COLOR-LIST-NAME:COLOR-NAME" and
"mac:COLOR-NAME" (shorthand for "mac:System:COLOR-NAME").  The actual
color may be different depending on the global appearance setting on
macOS 10.14.  For example, "mac:textColor" is black on the Light Mode
but is white on the Dark Mode.

*** Default frame colors respect appearance setting on macOS 10.14.
Now the default frame foreground/background color is
"mac:textColor"/"mac:textBackgroundColor", respectively.  Changes of
the system setting of the global appearance are dynamically reflected.

*** New function `mac-color-list-alist' to get the available
combinations of COLOR-LIST-NAMEs and COLOR-NAMEs.  Note that this
value is dependent on user environment and OS version.  Also, some
combinations may represent image patterns rather than colors.  For the
former cases, `(color-values "mac:COLOR-LIST-NAME:COLOR-NAME")'
returns nil.
2018-09-24 21:40:01 -05:00
WilliButz
9684fc03bb nixos/gitlab: rebuild authorized_keys during preStart
This updates the path to the 'gitlab-shell' to the
correct store path when gitlab is restarted.

(cherry picked from commit 78ad8d4a62)
2018-09-25 03:54:51 +02:00
Robin Gloster
6c4993b4f6 gitlab module: workhorse may start before gitlab
(cherry picked from commit dc915565ba)
2018-09-25 03:54:50 +02:00
Robin Gloster
6fc98d4d98 gitlab: 11.2.3 -> 11.3.0
(cherry picked from commit ed85eb5433)
2018-09-25 03:54:50 +02:00
Robin Gloster
63e305ba8d gitaly: 0.117.2 -> 0.120.0
(cherry picked from commit cbc21b8b90)
2018-09-25 03:54:49 +02:00
Robin Gloster
7cd7f188bc gitlab-shell: 8.1.1 -> 8.3.3
(cherry picked from commit 545c07108f)
2018-09-25 03:54:49 +02:00
Robin Gloster
450f2f5e5b gitlab-workhorse: 6.0.0 -> 6.1.0
(cherry picked from commit 96c1765bac)
2018-09-25 03:54:49 +02:00
Kristoffer Thømt Ravneberg
2676927ffc nixos/gitlab: avoid creating recursive symlinks, add gitlab-rake deps
(cherry picked from commit f17f59ca8e)
2018-09-25 03:54:48 +02:00
Kristoffer Thømt Ravneberg
2b4a105b8d gitlab-ee: init at 11.2.3
(cherry picked from commit 6946d97ce4)
2018-09-25 03:54:48 +02:00
Kristoffer Thømt Ravneberg
b57d410e1b gitlab: 10.8.0 -> 11.2.3
(cherry picked from commit 51c1830147)
2018-09-25 03:54:47 +02:00
Kristoffer Thømt Ravneberg
c50434a505 gitlab-shell: 7.1.2 -> 8.1.1
(cherry picked from commit bfc8d80c6e)
2018-09-25 03:54:47 +02:00
Kristoffer Thømt Ravneberg
cdb7f84118 gitaly: 0.100.0 -> 0.117.2
(cherry picked from commit 949172f289)
2018-09-25 03:54:46 +02:00
Kristoffer Thømt Ravneberg
b3a1678ce4 gitlab-workhorse: 4.2.0 -> 6.0.0
(cherry picked from commit 45aa373fa9)
2018-09-25 03:54:46 +02:00
John Ericson
0cf38d9921 Merge pull request #47304 from obsidiansystems/haskell-no-rec-18.09
ghc, ghcjs: Get rid of extraneous alex, happy, and hscolour args for 18.09
2018-09-24 20:28:07 -04:00
John Ericson
d6e2a2c4da Merge remote-tracking branch 'upstream/release-18.09' into haskell-no-rec-18.09 2018-09-24 20:11:48 -04:00
John Ericson
5b6fc8f87d Merge remote-tracking branch 'upstream/release-18.09' into haskell-no-rec-18.09 2018-09-24 20:10:19 -04:00
John Ericson
da6e61fedd Merge pull request #47301 from obsidiansystems/haskell-no-rec
haskellPackages: Avoid outer `rec { .. }` for 18.09
2018-09-24 18:59:12 -04:00
Uli Baum
04b04e9745 Merge branch 'release-18.09' into staging-18.09 2018-09-25 00:07:47 +02:00
John Ericson
c896936cd1 Merge pull request #47299 from obsidiansystems/overrideScope-order
lib: Deprecate `overrideScope` in lieu of `overrideScope'` taking arguments in the conventional order for 18.09
2018-09-24 18:04:35 -04:00
Peter Simons
b719e29d95 ghc: add release version for 8.6.1
(cherry picked from commit 2ffcbeda13)
2018-09-24 18:03:16 -04:00
Austin Seipp
b0f8181432 nixos/chrony: clean up, rework to be a little closer to upstream
Most importantly, this sets PrivateTmp, ProtectHome, and ProtectSystem
so that Chrony flaws are mitigated, should they occur.

Moving to ProtectSystem=full however, requires moving the chrony key
files under /var/lib/chrony -- which should be fine, anyway.

This also ensures ConditionCapability=CAP_SYS_TIME is set, ensuring
that chronyd will only be launched in an environment where such a
capability can be granted.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 0ce90d58cc)
2018-09-24 15:43:23 -05:00
baracoder
f34ef9e746 dotnet-sdk: Reduce closure: Unpack to a subdirectory to prevent copying build files (#47269)
(cherry picked from commit 7f0865bac8)
2018-09-24 21:38:59 +01:00
Domen Kožar
31432d4b88 nixos tests: move common configuration into separate file
This allows tests outside nixos to use acme setup.

(cherry picked from commit 6eacc17157)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-24 20:09:32 +01:00
Andreas Rammhold
2373df6dcc Merge pull request #47277 from andir/18.09/firefox
[18.09] firefox, firefox-bin 61.0.2 -> 62.0.2, firefox-esr: 60.2.0esr -> 60.2.1esr [Moderate security fixes]
2018-09-24 20:46:38 +02:00
Lorenzo Manacorda
71fd97dd05 *: remove DappHub projects
DappHub maintains a separate overlay at
https://github.com/dapphub/dapptools/blob/master/overlay.nix

(cherry picked from commit 6017c6fa5b)
2018-09-24 18:49:45 +01:00
Maximilian Bosch
32af342e46 eztrace: 1.0.6 -> 1.1-7 (#47282)
See https://hydra.nixos.org/build/80721509
Addresses #45960

(cherry picked from commit 2babfb5a88)
2018-09-24 19:35:22 +02:00
Uli Baum
570ec19f39 nixos/tests/installer: stop udev queue before calling mdadm
In the swraid test, temporarily stop udev queue execution while
creating mdraid devices to prevent a race with udev, see
https://groups.google.com/forum/#!topic/scylladb-dev/u87yHgo3ylU

(cherry picked from commit 7dd6a5192d)
2018-09-24 19:00:29 +02:00
Uli Baum
c2ab695557 nixos/tests/installer: use flock for all parted calls
to further reduce risk of race with udev, like util-linux
recommends for sfdisk:
https://github.com/karelzak/util-linux/blob/v2.32/disk-utils/sfdisk.8#L71

(cherry picked from commit c46677fec2)
2018-09-24 19:00:29 +02:00
Uli Baum
dc74ab0eac nixos/tests/installer: prevent race between parted and udev
by combining all parted commands into a single parted call.
This eliminates one cause of non-deterministic failure.

(cherry picked from commit a5183762c5)
2018-09-24 19:00:29 +02:00
Andrew Dunham
35271fdb2f boost: limit concurrent jobs to the maximum supported number (#47255)
(cherry picked from commit ba278c3b87)
2018-09-24 18:23:05 +02:00
Stefan Junker
174e19d1f6 virtualization/qemu-vm: fix and improve virtio/scsi switching
(cherry picked from commit f777d2b719)
2018-09-24 18:05:15 +02:00
taku0
02429f790b firefox-esr: 60.1.0esr -> 60.2.1esr
(cherry picked from commit e5778a9991)
2018-09-24 17:41:00 +02:00
taku0
53dee62105 firefox: 61.0.2 -> 62.0.2
(cherry picked from commit da9823672f)
2018-09-24 17:40:04 +02:00
taku0
10db65e530 firefox-bin: 61.0.2 -> 62.0.2
(cherry picked from commit 5b79f81a39)
2018-09-24 17:39:05 +02:00
xeji
4f4807ae66 nixos/tests/hound: fix non-deterministic failure (#47152)
The test failed on Hydra in one instance because a request to the
server was sent before indexing was finished.
Retry the request until it succeeds (or times out).

(cherry picked from commit c525111133)
2018-09-24 17:32:51 +02:00
Bas van Dijk
afe328bb5e opencv: 3.4.2 -> 3.4.3
(cherry picked from commit 252c0d4c82)
2018-09-24 16:02:10 +02:00
Maximilian Bosch
32a5d08507 python3Packages.google-compute-engine: fix build (#47267)
The dependency `distro` was missing.
See https://hydra.nixos.org/build/81330387

Addresses #45960

(cherry picked from commit baa7e52fe0)
2018-09-24 15:52:47 +02:00
Daiderd Jordan
3cee0ce5b8 eiskaltdcpp: mark linux only
The darwin build fails and other platforms will probably run into
similar issues.

    Determining if the Q_WS_QWS exist failed with the following output:
    Change Dir: /tmp/nix-build-eiskaltdcpp-2.2.10.drv-0/source/build/CMakeFiles/CMakeTmp

    Run Build Command:"/nix/store/qfag24z6xsr6jkyi8gb4cv62rp945rbk-gnumake-4.2.1/bin/make" "cmTC_14e67/fast"
    /nix/store/qfag24z6xsr6jkyi8gb4cv62rp945rbk-gnumake-4.2.1/bin/make -f CMakeFiles/cmTC_14e67.dir/build.make CMakeFiles/cmTC_14e67.dir/build
    make[1]: Entering directory '/private/tmp/nix-build-eiskaltdcpp-2.2.10.drv-0/source/build/CMakeFiles/CMakeTmp'
    Building CXX object CMakeFiles/cmTC_14e67.dir/CheckSymbolExists.cxx.o
    /nix/store/2gdwhdzhy4iwkp7fh8v6gy6nxj1zi9pv-clang-wrapper-5.0.2/bin/clang++   -I/nix/store/8dzqilmdr0p3qmmrxh51xk7wli6grm0i-qt-4.8.7/include -F/nix/store/8dzqilmdr0p3qmmrxh51xk7wli6grm0i-qt-4.8.7/lib  -std=c++0x -pipe -Wformat -Werror=format-security  -arch x86_64   -o CMakeFiles/cmTC_14e67.dir/CheckSymbolExists.cxx.o -c /tmp/nix-build-eiskaltdcpp-2.2.10.drv-0/source/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
    /tmp/nix-build-eiskaltdcpp-2.2.10.drv-0/source/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: use of undeclared identifier 'Q_WS_QWS'
      return ((int*)(&Q_WS_QWS))[argc];
                  ^

/cc ZHF #45961

(cherry picked from commit 52ad963b50)
2018-09-24 13:59:28 +01:00
Maximilian Bosch
20d144b58c python3Packages.py3exiv2: fix build
Recent boost versions name their `python3` shared objects
`boost_python3x` rather than `boost_python3`.

See https://hydra.nixos.org/build/80712295
Addresses #45960

(cherry picked from commit 50f23da8e6)
2018-09-24 13:53:14 +01:00
Jörg Thalheim
ea48d53c8c Merge pull request #47247 from danme/release-18.09
nvidia-x11: Fix vulkan VK_KHR_xcb_surface
2018-09-24 13:20:02 +01:00
Maximilian Bosch
34cafeee32 Revert "python: ldappool: 2.2.0 -> 2.3.0"
This reverts commit 29acc8339f.

(cherry picked from commit fbeb94dd46)
2018-09-24 13:17:54 +01:00
Florian Klink
7eb1fa2845 systemd: update to fix nspawn containers (#47264)
This fixes nspawn containers with older systemd inside currently failing
to start.

See:
https://github.com/NixOS/systemd/pull/23
https://github.com/systemd/systemd/pull/10104
https://github.com/NixOS/nixpkgs/issues/47253
(cherry picked from commit c3cc34f20a)
2018-09-24 10:03:16 +01:00
Eelco Dolstra
e4966591ef Revert "nixos: set nixos in nixPath"
This reverts commit 67c8c49177.

'nix run nixos.firefox' is *not* supposed to work - the Nix 2.x
interface attempts to standardize on nixpkgs.*, to get rid of the
nixos/nixpkgs confusion that existed with the channels interface. So
let's not bring that confusion back.

(cherry picked from commit 9c53116d49)
2018-09-24 10:44:47 +02:00
Will Dietz
ee582a32d2 NIX_PATH: don't prepend $HOME-based value in session variable, set later
environment.sessionVariables cannot refer to the values of env vars,
and as a result this has caused problems in a variety of scenarios.

One use for these is that they're injected into /etc/profile,
elewhere these are used to populate an 'envfile' for pam
(`pam 5 pam_env.conf`) which mentions use of HOME being
potentially problematic.

Anyway if the goal is to make things easier for users,
simply do the NIX_PATH modification as extraInit.

This fixes the annoying problems generated by the current approach
(#40165 and others) while hopefully serving the original goal.

One way to check if things are borked is to try:

$ sudo env | grep NIX_PATH

Which (before this change) prints NIX_PATH variable with
an unexpanded $HOME in the value.

-------

This does mean the following won't contain user channels for 'will':
$ sudo -u will nix-instantiate --eval -E builtins.nixPath

However AFAICT currently they won't be present either,
due to unescaped $HOME.  Unsure if similar situation for other users
of sessionVariables (not sudo) work with current situation
(if they exist they will regress after this change AFAIK).

(cherry picked from commit fa67ca15430e96b9d165972552403be6b3f4817e)
2018-09-23 20:08:33 -05:00
Alexander V. Nikolaev
4307b37781 rmilter: deprecation notice
(cherry picked from commit 868040ee22)
2018-09-24 01:41:27 +01:00
Alexander V. Nikolaev
1a159fe86b rmilter: move rmilter.sock out of /run/rmilter
/run/rmilter is set by systemd, and have root:root ownership, which
prevent pid file to write.

This fix suggested to be promoted to 18.09 branch.
(Although rmilter itself is deprecated, and I plan to remove it, after
18.09 would be released)

(cherry picked from commit 08f266490b)
2018-09-24 01:41:26 +01:00
Bas van Dijk
fa3e193e27 haskellPackages.haddock-api: fix build
Also remove haddock-library == 1.4.4 since it's not needed anymore

(cherry picked from commit 77c73cc8eb29da2154d2e9087d7efd7fd9af10f9)
2018-09-24 01:58:08 +02:00
Bas van Dijk
aeb114f7c9 haskellPackages.yi-core: use overrideScope instead of override
(cherry picked from commit 2de9705b9fcaa3650ea85a9f5e2aee834948fc8f)
2018-09-24 01:58:01 +02:00
Bas van Dijk
d99f352d1d haskellPackages.safe-money-*: use overrideScope instead of override
(cherry picked from commit 2481b366f6ea964889d1010e4159055cef7b5b95)
2018-09-24 01:57:55 +02:00
Bas van Dijk
21808eca2b haskellPackages.Frames: use overrideScope instead of override
(cherry picked from commit f1f2c2d3fc74d52f445f08f0f0410d1be586532b)
2018-09-24 01:57:49 +02:00
Matthew Bauer
9b696718bb nixos: make firefox default browser
Without this the graphical installer has no way to open the manual.
You can fix it yourself by installing any HTML browser but this might
be unfamiliar to users new to NixOS and without any other way to open
the manual. The downside is it will also increase download sizes.

Fixes #46537
2018-09-23 18:49:09 -05:00
Matthew Bauer
cb52ea4f19 kde: add kdoctools to default environment
khelpcenter needs meinproc5 to work properly. Hopefully doesn’t effect
closure sizes too much - kdoctools is rather small.

Fixes #46539

/cc @ttuegel
2018-09-23 18:48:53 -05:00
Matthew Bauer
95f31078f5 nixos: set nixos in nixPath
This makes using the nixos channel work out of the box with the new
Nix commands. For example:

$ nix run nixos.firefox -c firefox

Fixes #46536
2018-09-23 18:48:40 -05:00
Andrew Dunham
18a7c1df64 hdf4: fix build on aarch64-linux (#47209)
Pull in the Debian patches for AArch64 support, and a bonus patch for
reproducible builds while we're at it.

(cherry picked from commit 104014c6ba)
2018-09-23 23:57:59 +02:00
Bas van Dijk
9b4d87cec5 haskellPackages.Euterpea: fix build by using PortMidi == 0.2
(cherry picked from commit 9b67908e67)
2018-09-23 22:50:45 +02:00
Maximilian Bosch
c49fa222a7 pythonPackages.pyftgl: fix build (#47232)
See https://hydra.nixos.org/build/80705583

Recent `boost` versions with `python` enabled have changed their naming
scheme for `boost_python` shared objects which causes issues with the
proper linking when building `pyftgl`.

Previously the library was named `boost_python3`, no it's named
`boost_python36` for current python (3.6.x).

The same issue applies for the `python2`.

Addresses #45960

(cherry picked from commit 5ad7aedf63)
2018-09-23 22:39:44 +02:00
danme
3ab740ad40 nvidia-x11: Fix vulkan VK_KHR_xcb_surface
Fixes the issue: https://github.com/NixOS/nixpkgs/issues/39149

Problem was that the Nvidia driver did not find the libxcb-glx at runtime.

(cherry picked from commit bda072cafc)
2018-09-23 22:18:17 +02:00
Bas van Dijk
ef9e8bd933 haskellPackages.Frames-beam: disable tests because it requires a running PostgreSQL server
(cherry picked from commit 73cf1c26d8)
2018-09-23 21:59:02 +02:00
Bas van Dijk
9e57b836ca haskellPackages.Frames: fix build by using vinyl-0.10.0
(cherry picked from commit ff6122c993)
2018-09-23 21:58:53 +02:00
Maximilian Bosch
19e8f7c977 tig: fix zsh completion
The ZSH completion script of `tig` basically imports the bash completion
script and uses it as completion approach. Unfortunately the script
takes several assumptions about the directory structure using
`$funcsourcetrace`[1] that don't apply on NixOS.

The easiest workaround is t opatch the completion script and import the
bash completion script from `$out`.

[1] http://zsh.sourceforge.net/Doc/Release/Zsh-Modules.html#index-funcsourcetrace
2018-09-23 19:21:58 +01:00
John Ericson
8b60c7d088 doc: Don't mention top-level {build, host, target}Platform
For technical reasons, we cannot easily add a warning to top-level
definitions, so 2a6e4ae49a and
e51f736076 reverted the deprecation. But
we can still remove mention of the would-be deprecated definitions to
steer people towards using the preferred alternatives.

(cherry picked from commit e39a73cc55)
2018-09-23 13:29:08 -04:00
John Ericson
7ca9ae5c2b top-level: system should still come from the host platform
2a6e4ae49a and
e51f736076 reverted a bit too much, and I
initially missed this when reviewing. The release notes already still
mention this change, too.

(cherry picked from commit 359d00f8b0)
2018-09-23 13:29:06 -04:00
Bas van Dijk
e611a82197 Revert "libtensorflow: 1.9.0 -> 1.10.0"
This reverts commit 713991132e.

libtensorflow is only used by the Haskell tensorflow packages and they
don't work with tensorflow-1.10 yet. So the easiest solution is to
just revert this commit and add it back when they do gain support.

(cherry picked from commit 6e14b9fc2d)
2018-09-23 19:17:12 +02:00
Bas van Dijk
b2c49a7750 Revert "libtensorflow: fix hashes for darwin and cuda downloads"
This reverts commit 93ed13f86b.

libtensorflow is only used by the Haskell tensorflow packages and they
don't work with tensorflow-1.10 yet. So the easiest solution is to
just revert this commit and add it back when they do gain support.

(cherry picked from commit 39d35e77ee)
2018-09-23 19:17:05 +02:00
John Ericson
9f4d633d93 Merge commit '84c8e397d234bcdbd7ee4a41bf6b705d1250250c' into release-18.09 2018-09-23 13:06:12 -04:00
volth
8b20d98e82 alternative for iproute module (#41801)
(cherry picked from commit 0fa04d646d)

It is unfortunate to cherry-pick something with release notes to the
release staging branch so close to the release. But the change is to a
new service so no one comming from 18.03 would be surprised to a
last-minute change in behavior. Furthermore, the change is a month old
and it appears it only wasn't cherry-picked already by mistake.
2018-09-23 12:24:08 -04:00
John Ericson
afa89e9408 Merge remote-tracking branch 'upstream/release-18.09' into staging-18.09 2018-09-23 12:17:37 -04:00
Florian Klink
5bb85cd45c php: set mysql socket path if mysql[i] or pdo_mysql support is enabled
PHP tries to discover the mysql default socket path during configure
phase by probing the file system:
cf3b852109/ext/mysqli/config.m4 (L4)

This obviously fails to discover /run/mysqld/mysqld.sock, which is being
used (hardcoded) across all MySQL flavours.

This leads to PHP having no mysql socket path set for the mysql[i]
extensions, and `/tmp/mysql.sock` set for pdo_mysql,
meaning one currently has to manually configure and set it in php.ini.

Luckily, PHP supports setting that path via
`--with-mysql-sock=/run/mysqld/mysqld.sock` during configure phase,
so let's do this as soon as one of the three modules is enabled.

(cherry picked from commit baa04e4204)
2018-09-23 16:19:18 +01:00
John Ericson
a06d703851 Merge commit '45f40f5fe02d71f9863e54277a50fe7e1dc46afa' into release-18.09 2018-09-23 11:03:47 -04:00
Andrew Dunham
48625909dc erlangR18: apply upstream patches to fix nondeterministic build failures (#47202)
As per the following bug report, sometimes erts/start_scripts will fail
to compile because of a Makefile ordering issue. Apply the upstream
patches to fix this.
  https://bugs.erlang.org/browse/ERL-241

(cherry picked from commit c987ed0896)
2018-09-23 11:02:47 +02:00
xeji
2c83b339c6 nixos/tests/prosody: use sqlite database (#47185)
The test didn't catch an issue with luadbi because it used
internal storage only. Switch to sqlite to test sql access.

(cherry picked from commit 589b290b43)
2018-09-23 10:46:55 +02:00
Vladimír Čunát
317ce1b622 Merge: nixos/weechat backports
Close #46861 - it's exactly the same commits, just with -x annotations.
2018-09-23 10:41:01 +02:00
adisbladis
e44b6cd961 weechat: Add version and meta to buildEnv package
Currently the output from `nix search` and similar tools are lacking
important meta data

(cherry picked from commit 230fd49738)
2018-09-23 10:39:19 +02:00
Maximilian Bosch
a1c48b9ea6 weechatScripts.weechat-matrix-bridge: don't export `olm.lua' as script (#46582)
Loading olm.lua as weechat script with `/script load olm.lua' causes
errors like this:

```
/nix/store/43jbh7yxh8j4gjfzbvpd9clncah5dip1-weechat-matrix-bridge-2018-05-29/lib/ffi.so: undefined symbol: lua_tointeger
```

As `olm.lua' is loaded by `matrix.lua' it doesn't need to be included
manually by the weechat configuration.

(cherry picked from commit 61a9463498)
2018-09-23 10:37:51 +02:00
Maximilian Bosch
9ceff9e3e5 weechat: fix quoting for ${} syntax
In my previous PR I missed that ${sec.foobar} (syntax to retrieve
secrets in a weechat runtime) breaks the shell evaluation.

Furthermore `;` shall be used rather than `\n` to concat scripts and the
init config.

(cherry picked from commit e2b4644f9c)
2018-09-23 10:37:27 +02:00
Maximilian Bosch
79b38a9795 weechatScripts.wee-slack: init at 2.1.1
(cherry picked from commit f5becfb5b0)
2018-09-23 10:34:59 +02:00
Maximilian Bosch
d74a291ea6 nixos/weechat: cleanup module, add module documentation
This adds several improvements the previously introduced
`services.weechat` module:

* Dropped `services.weechat.init` as the initialization script can now
  be done on package-level since 2af41719bc using the `configure`
  function.

* Added `sessionName` option to explicitly configure a name for the
  `screen` session (by default: weechat-screen).

* Added `binary` option to configure the binary name (e.g.
  `weechat-headless`).

* Added docs regarding `screen` session and `weechat.service`.

(cherry picked from commit 18d419141d)
2018-09-23 10:34:24 +02:00
Maximilian Bosch
27c2215684 weechat: 2.1 -> 2.2; improve package configuration
This aims to make the `weechat` package even more configurable. It
allows to specify scripts and commands using the `configure` function
inside a `weechat.override` expression.

The package can be configured like this:

```
with import <nixpkgs> { };
weechat.override {
  plugins = { availablePlugins, ... }: {
    plugins = builtins.attrValues availablePlugins;

    init = ''
      /set foo bar
      /server add freenode chat.freenode.org
    '';

    scripts = [ "/path/to/script.py" ];
  };
}
```

All commands are passed to `weechat --run-command "/set foo bar;/server ..."`.

The `plugins' attribute is not necessarily required anymore, if it's
sufficient to add `init' commands, the `plugins' will be
`builtins.attrValues availablePlugins' by default.

Additionally the result contains `weechat` and `weechat-headless`
(introduced in WeeChat 2.1) now.

(cherry picked from commit a8efe61412)
2018-09-23 10:33:56 +02:00
Yegor Timoshenko
b4f299eddb weechat: add NixOS module
(cherry picked from commit b54987715b)
2018-09-23 10:33:09 +02:00
Samuel Dionne-Riel
7c7f9623dc qesteidutil: Fixes build from Qt upgrade. (#46083)
(cherry picked from commit ef2b217812)
2018-09-23 10:15:18 +02:00
Andrew Dunham
0d7c472fd7 pythonPackages.flask_assets: fix tests (#47203)
(cherry picked from commit e141f7cd2f)
2018-09-23 10:03:35 +02:00
Andrew Dunham
233328cde5 xsecurelock: 1.0 -> 1.1
(cherry picked from commit da18ffac6b)
Backport of #47190
2018-09-23 09:56:59 +02:00
Uli Baum
73ceb7742c nixos/iso-image: fix 32bit UEFI boot
UEFI iso image for i686 didn't boot because the
default boot file was incorrectly named bootx32.efi.
The correct name is bootia32.efi.

(cherry picked from commit 845ae983f6)
2018-09-23 00:47:29 -04:00
Daiderd Jordan
1cae9ef0fd ffmpeg: don't use gcc on darwin (#47189)
This isn't necessary and causes build failures for certain versions.

    CC      libavfilter/libmpcodecs/vf_eq2.o
    CC      libavfilter/libmpcodecs/vf_fil.o
    CC      libavfilter/libmpcodecs/vf_fspp.o
    libavfilter/libmpcodecs/vf_fspp.c:939:18: error: unknown token in expression
            movq %mm2, 0*8+(%rsp)

/cc ZHF #45961

(cherry picked from commit 52a1179b6c)
2018-09-22 23:13:40 +02:00
Jörg Thalheim
2de47a73c8 luaPackages.luadbi: 0.5 -> 0.6 (#47156)
Switch to maintained fork that is compatible with lua5.2/lua5.3.
This package was tested with prosody.

(cherry picked from commit a8413d816a)

Backported because prosody database access is broken without it.
2018-09-22 22:30:02 +02:00
Uli Baum
10a9c597ad Merge branch 'release-18.09' into staging-18.09 2018-09-22 21:53:17 +02:00
Elis Hirwing
11aa1784b1 php: Refactor so we can upgrade PHP per platform (#47162)
This way we don't need to disable flags etc by platform and can still
backport new versions to stable for linux even if there's a bug or
something in the darwin build.

(cherry picked from commit 0b82fbc3af)
2018-09-22 20:27:44 +02:00
Elis Hirwing
e7ffc978c7 php71: 7.1.21 -> 7.1.22
Changelog: https://secure.php.net/ChangeLog-7.php#7.1.22
(cherry picked from commit 89b7ad263e)
2018-09-22 20:27:26 +02:00
Elis Hirwing
922f74af6d php: 7.2.8 -> 7.2.10
Changelog 7.2.9: http://php.net/ChangeLog-7.php#7.2.9
Changelog 7.2.10: http://php.net/ChangeLog-7.php#7.2.10

(cherry picked from commit 5a868df967)
2018-09-22 20:27:16 +02:00
Joachim Fasting
2625469949 tor-browser-bundle-bin: 8.0 -> 8.0.1
(cherry picked from commit f2ba1a4284)
2018-09-22 20:19:23 +02:00
Andrew Dunham
ad9e8ea664 libsndfile: Add patch for CVE-2018-13139 (#47160)
(cherry picked from commit fcde178ed5)
2018-09-22 19:34:30 +02:00
Christian Kauhaus
b831700b8f lua: 5.2.3 -> 5.2.4 (#47126)
Lua 5.2.4 is the EOL point release of the 5.2 series.

(cherry picked from commit 6adb944cb6)
2018-09-22 19:11:47 +02:00
xeji
9e4916b84d devpi-client: 3.1.0 -> 4.1.0, fix tests (#47142)
(cherry picked from commit c770699524)
2018-09-22 18:08:37 +02:00
Jean-Paul Calderone
8342f255e1 nixos/tor: Correct "transparent" typo
(cherry picked from commit 57834da7fc)
2018-09-22 15:46:45 +02:00
Joachim Fasting
d25ed2c9f7 electrum: 3.1.3 -> 3.2.3
(cherry picked from commit 1e379f29f7)
2018-09-22 15:46:45 +02:00
Joachim Fasting
2cbfd84d80 tor-browser-bundle-bin: stdenv.shell -> runtimeShell in wrapper
(cherry picked from commit aacf68a635)
2018-09-22 15:46:44 +02:00
Joachim Fasting
f683eaaedc tor-browser-bundle-bin: parameterize icon theme
(cherry picked from commit 546e511edc)
2018-09-22 15:46:43 +02:00
Joachim Fasting
9a7d79c221 tor-browser-bundle-bin: add gsettings-schemas
See https://github.com/NixOS/nixpkgs/issues/46587

(cherry picked from commit 5710ee3bef)
2018-09-22 15:46:42 +02:00
Joachim Fasting
95258ee051 tor-browser-bundle-bin: 7.5.6 -> 8.0
(cherry picked from commit ed5283fcf5)
2018-09-22 15:46:41 +02:00
Joachim Fasting
26152dfaa1 tor: 0.3.3.9 -> 0.3.4.8
(cherry picked from commit 48abf865bc)
2018-09-22 15:46:36 +02:00
Leo R. Lundgren
1e46ead867 open-vm-tools: 10.1.10 -> 10.3.0
(cherry picked from commit bbb30c320e)
2018-09-22 20:19:04 +08:00
xeji
4a620decd3 zathura: 0.4.0 -> 0.4.1 (#47140)
This fixes the synctex-related build failure with texlive 2018
(currently on 18.09).

(cherry picked from commit 9e87b56dd1)
2018-09-22 14:18:09 +02:00
John Ericson
409fd48e64 Merge pull request #47146 from obsidiansystems/fetchzip-cross
fetchzip: Use unzip from buildPackages
2018-09-21 14:52:21 -04:00
John Ericson
2ef1d084c5 Merge pull request #47144 from obsidiansystems/windows-libusb
libusb1: Build everywhere, since MinGW works, for 18.09
2018-09-21 14:28:40 -04:00
Daiderd Jordan
5165dfe9de docker-proxy: mark linux only
Unlike docker (cli only) this probably won't work on darwin.

    github.com/docker/libnetwork/networkdb
    can't load package: package github.com/docker/libnetwork/ns: build constraints exclude all Go files in /private/tmp/nix-build-docker-proxy-7b2b1feb1de4817d522cc372af149ff48d25028e.drv-0/go/src/github.com/docker/libnetwork/ns

/cc ZHF #45961

(cherry picked from commit 33f818198b)
2018-09-21 20:15:55 +02:00
Daiderd Jordan
61ce290c2b dico: mark linux only.
Never built successfully.

    Undefined symbols for architecture x86_64:
      "_rpl_strerror", referenced from:
          _default_print_diag in libgrecs.a(diag.o)
          _grecs_symtab_strerror in libgrecs.a(symtab.o)
          _parse_inet in libgrecs.a(sockaddr.o)
    ld: symbol(s) not found for architecture x86_64

/cc ZHF #45961

(cherry picked from commit 709a828e71)
2018-09-21 20:15:53 +02:00
Daiderd Jordan
488a45d7a2 dolphinEmuMaster: mark broken on darwin
The default version isn't enabled on darwin either, however it did work
at some point.

    /tmp/nix-build-dolphin-emu-2018-08-17.drv-0/source/Source/Core/Core/NetPlayServer.cpp:1180:26: error: unknown type name 'lzo_uint32_t'; did you mean 'lzo_uint32'?
      std::vector<u8> wrkmem(LZO1X_1_MEM_COMPRESS);

/cc ZHF #45961

(cherry picked from commit f6bc086b21)
2018-09-21 20:15:52 +02:00
Bas van Dijk
93506c3a0b haskellPackages.mandrill: fix build for ghc843
(cherry picked from commit 73862bf812)
2018-09-21 19:12:50 +02:00
Christoph Hrdinka
fc3cfe3af5 libretro.mame: 2017-03-02 -> 2018-09-13
Fixes build of the MAME libretro core.

Closes #47137.

Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
2018-09-21 18:55:26 +02:00
José Romildo Malaquias
c16b9dacb4 ephoto: add dependency on mesa_noglu.dev (#47136)
(cherry picked from commit e372ab4626)
2018-09-21 18:26:18 +02:00
Michael Raskin
fd6930685c acl2: 8.1.post.2018.09.20 -> 8.1; turns out there is a release
(cherry picked from commit 60b6d5f8a8)
2018-09-21 18:08:05 +02:00
José Romildo Malaquias
edf5020042 rage: add dependency on mesa_noglu.dev (#47132)
(cherry picked from commit 7ac0ecc12b)
2018-09-21 17:41:54 +02:00
Michael Raskin
d10c5b88de acl2: 8.0 -> 8.0.post.2018.09.20; fixes build with fresher SBCL
(cherry picked from commit de764e65f0)
2018-09-21 12:13:49 +02:00
Vladimír Čunát
7eec667f5b Merge branch 'staging-18.09' into release-18.09
The comparison seems very good on Hydra.
2018-09-21 12:02:35 +02:00
Uli Baum
793776b730 nixos/tests/ferm: disable dhcpcd
The test failed in one run on Hydra, logs look like
dhcpcd changed ipv6 routing at just the wrong time.
Disable dhcpcd. It's not needed, the test uses static IPs anyway.

(cherry picked from commit 5e7b7b805a)
2018-09-21 09:59:16 +01:00
Mario Rodas
c1328a1779 bat: install man page (#47099)
(cherry picked from commit ba33eac477)
2018-09-21 10:23:57 +02:00
Uli Baum
711ff4b687 nixos/tests/atd: wait for atd to start
The test failed non-deterministically when an at command was
issued before the atd daemon was running.

(cherry picked from commit 8ffd65b12e)
Backport to 18.09
2018-09-21 10:10:16 +02:00
John Ericson
ef450efb9d Merge pull request #47097 from obsidiansystems/fix-x509-system
haskellPackages.x509-system: Override based on the host, not target platform for 18.09
2018-09-20 21:55:29 -04:00
Graham Christensen
a84a302732 Clarfy the binary reproducibility problems of created=now with dockerTools.buildImage.
(cherry picked from commit 7736337916)
2018-09-20 20:31:52 -04:00
Graham Christensen
9eefd1e846 dockerTools.buildImage: test that created=now makes an unstable date
(cherry picked from commit aedc651903)
2018-09-20 20:31:52 -04:00
Graham Christensen
0fe015a70c dockerTools.buildImage: support impure dates
Because dates are an impurity, by default buildImage will use a static
date of one second past the UNIX Epoch. This can be a bit frustrating
when listing docker images in the CLI:

    $ docker image list
    REPOSITORY   TAG      IMAGE ID       CREATED        SIZE
    hello        latest   08c791c7846e   48 years ago   25.2MB

If you want to trade the purity for a better user experience, you can
set created to now.

    pkgs.dockerTools.buildImage {
      name = "hello";
      tag = "latest";
      created = "now";
      contents = pkgs.hello;

      config.Cmd = [ "/bin/hello" ];
    }

and now the Docker CLI will display a reasonable date and sort the
images as expected:

    $ docker image list
    REPOSITORY   TAG      IMAGE ID       CREATED              SIZE
    hello        latest   de2bf4786de6   About a minute ago   25.2MB

(cherry picked from commit a32d7e0c74)
2018-09-20 20:31:51 -04:00
Austin Seipp
f40d13666e perlPackages.MojoIOLoopForkCall: 0.19 -> 0.20
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 0214f9e25e)
2018-09-20 18:40:58 -05:00
Austin Seipp
b59c61198a perlPackages.Mojolicious: 7.88 -> 8.0
Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 08815b9af8)
2018-09-20 18:40:47 -05:00
Austin Seipp
e4b0c7bbd2 libiio: init at 0.15
(cherry picked from commit 0f2b10d1ac)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-09-20 18:39:17 -05:00
Nathan van Doorn
70ecb51beb haskellPackages.sbv: fix location of z3 executable
A lot of the functionality of the z3 library depends on it being able to
find the z3 executable on $PATH. Hard-coding it here means it will never
be unable to find it and z3 doesn't need to pollute $PATH.

(cherry picked from commit c8598daad4)

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2018-09-20 18:32:04 -05:00
roconnor
40d22a78b7 bitcoin: 0.16.2 -> 0.16.3 (#46891)
(cherry picked from commit fab901ddd3)

security: fixes CVE-2018-17144
2018-09-21 00:36:12 +02:00
xeji
a31fc1ca57 liquidwar: fix build (#47064)
- add missing dependencies readline and libtool that used to be
  propagated by guile but aren't anymore
- build with guile 2.0 instead of 1.8

(cherry picked from commit 2c5ae2ae61)
2018-09-21 00:21:31 +02:00
xeji
abdbf1ccd6 pythonPackages.circus: fix build, add meta (#47066)
(cherry picked from commit 9c02914b42)
2018-09-21 00:21:31 +02:00
xeji
af334fe875 nixos/tests/gdk-pixbuf: fix test on i686 (#46916)
Test didn't run because it tried to create a VM with 4096M RAM
but qemu-system-i386 has a hard 2047M memory limit.
- reduce memory to 2047M on i686.
- increase timeout 300s -> 1800s because the tests are much slower
  on i686 and timed out.

(cherry picked from commit e40d850fd1)
2018-09-20 21:30:06 +02:00
Vincent Laporte
355a0377b1 ocaml ≤ 4.05: mark as broken on Aarch64 (#47010)
(cherry picked from commit ce03af969e)
2018-09-20 21:19:00 +02:00
Tim Steinbach
6ec64973bc linux: 4.18.8 -> 4.18.9
(cherry picked from commit 3e4377cf15fb153010ff8d49dcaf131f1dfe0af9)
2018-09-20 09:53:19 -04:00
Tim Steinbach
3f2aa18db8 linux: 4.14.70 -> 4.14.71
(cherry picked from commit 1c620c669655c1aa7a101a7fafba7327a60293c1)
2018-09-20 09:53:13 -04:00
Tim Steinbach
e8f3acd155 linux: 4.9.127 -> 4.9.128
(cherry picked from commit 172e43335443b15ba25989759eb4085bed55542a)
2018-09-20 09:53:02 -04:00
Tim Steinbach
672b375dfc linux: 4.4.156 -> 4.4.157
(cherry picked from commit 9d678ecf88ee0691cd85d348a790802239faaa10)
2018-09-20 09:52:55 -04:00
xeji
d5cbdecd3b nixos/tests/networking.virtual: prevent non-deterministic failure (#46949)
The test failed non-deterministically on Hydra because interfaces
sometimes weren't yet fully cleaned up when the result was checked.

(cherry picked from commit 05659962cd)
2018-09-20 13:21:24 +02:00
Uli Baum
43809bd8d4 gitlab: add missing meta.platforms
(cherry picked from commit 8cd90e40be)
2018-09-20 12:57:46 +02:00
Maximilian Bosch
b89050daac nixos/yabar: fix module & test (#46954)
The `pkgs.yabar` package is relatively old (2016-04) and contains
several issues fixed on master. `yabar-unstable` containsa recent master
build with several fixes and a lot of new features (I use
`yabar-unstable` for some time now and had no issues with it).

In the upstream bugtracker some bugs could be fixed on ArchLinux by
simply installing `yabar-git` (an AUR package which builds a recent
master).

To stabilize the module, the option `programs.yabar.package` now
defaults to `pkgs.yabar-unstable` and yields a warning with several
linked issues that are known on `pkgs.yabar`.

The test has been refactored as well to ensure that `yabar` actually
starts (and avoid non-deterministic random success) and takes a
screenshot of a very minimalistic configuration on IceWM.

Fixes #46899

(cherry picked from commit 8b58a7187c)
2018-09-20 12:48:21 +02:00
R. RyanTM
d4e9c35441 wireguard-tools: 0.0.20180904 -> 0.0.20180918
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/wireguard-tools/versions

(cherry picked from commit 03d8620098)
2018-09-20 08:33:56 +01:00
xeji
175d49256f pythonPackages.nilearn: disable still failing tests (#46918)
A previous attempt to fix tests failing on some machines (#46850)
was unsuccessful, they still failed on Hydra sometimes while
succeeding locally. Revert #46850 and disable these tests instead.

(cherry picked from commit f3a0c8a3aa)
2018-09-19 23:50:53 +02:00
xeji
08c39f8d47 arelle: fix build, use current python3 (#46862)
It was pinned to python34, build failed in dependency
python34Packages.pytest. Use python3(6) instead.

(cherry picked from commit a0c5dd8a09)
2018-09-19 22:19:17 +02:00
Domen Kožar
b8f71e3c79 datadog-agent: remove privateTmp=true
This allows postgres integration to connect to socket in /tmp

(cherry picked from commit 5715aa1951)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-19 18:56:25 +01:00
John Ericson
90e9b8d0f9 Merge pull request #46904 from obsidiansystems/zlib-ios
zlib: Fix iOS cross build for 18.09
2018-09-19 12:49:14 -04:00
Edmund Wu
d3905a3ddf lightdm: fix tmpfiles path (#46886)
(cherry picked from commit 1a15b10ae3)
2018-09-19 16:54:40 +02:00
xeji
3af2eb2072 exempi: fix i686 build (#46884)
failed with `unknown symbol __divmoddi4`.
Standard fix is to use gcc6.

(cherry picked from commit d57c9ec407)
2018-09-19 16:20:35 +02:00
xeji
d5d36e5d2c nixos/tests/hibernate: prevent non-deterministic failure (#46882)
... that occurred mostly on i686. Improve timing.
With this, the failures are no longer reproducible on my machine.

(cherry picked from commit beb8ca2887)
2018-09-19 16:20:35 +02:00
xeji
842b9054e8 nixos/tests/containers-imperative: fix on i686 (#46874)
Test failed on i686 in a sandbox because some packages required
to build the nixos manual for the container were missing. Add them.

(cherry picked from commit daf40ab165)
2018-09-19 16:20:34 +02:00
xeji
2c43ad2498 openxpki: fix build, use current python3Packages (#46860)
Build used python34Packages and failed because python34Packages.pytest
didn't build anymore. Use python3Packages instead.

(cherry picked from commit 012682222f)
2018-09-19 16:17:27 +02:00
xeji
1bc047d46e czmq: 4.0.2 -> 4.1.1 (#46855)
(cherry picked from commit c9969162ab)
2018-09-19 16:17:27 +02:00
xeji
fd0c124cd6 pythonPackages.nilearn: fix test_signal tests (#46850)
These tests failed on some machines, probably due to lower arithmetic
presicion. Reduce required precision from 13 to 8 decimal digits.

(cherry picked from commit 970393c34a)
2018-09-19 16:17:27 +02:00
Jörg Thalheim
09d8df5b21 python3.pkgs.typeguard: fix builds by applying utf-8 locales
ZHF #45960

(cherry picked from commit b224eef108)
2018-09-19 15:14:15 +01:00
Pascal Wittmann
86f9a958cf homebank: 5.1.8 -> 5.2.1 2018-09-19 15:06:55 +02:00
aszlig
d07dbd4490 python/hetzner: 0.8.0 -> 0.8.1
This is only a minor bugfix release and updates the fallback CA root
certificates. For NixOS this is usually not required as the probe paths
will match there, but for non-NixOS users it might be helpful.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 48d1c50f7a)
Reason: This might be relevant for NixOps users on Mac OS X and the
        update won't break anything that wasn't broken before.
2018-09-19 14:32:20 +02:00
Jack Kelly
adb467eeaf dockerTools.pullImage: correct default arch
(cherry picked from commit af5eab6ea6)
2018-09-19 09:28:35 +02:00
John Ericson
b853e73d52 Merge pull request #46873 from obsidiansystems/cross-haskell-ar-flag
haskell infra: Also pass `--with-ar` in cross builds for 18.09
2018-09-18 19:14:17 -04:00
John Ericson
d29a153655 Merge remote-tracking branch 'upstream/release-18.09' into staging-18.09 2018-09-18 16:56:24 -04:00
John Ericson
5b053b4697 Merge pull request #46858 from obsidiansystems/darwin-to-linux-prep
misc pkgs: various cross fixes in preparation for darwin->linux for 18.09
2018-09-18 16:52:36 -04:00
Elis Hirwing
4c4aff3293 nixos/activation: Switch from bash to sh to avoid reading users bash config (#46851)
This fixes #46750. This should also work with non-POSIX shells like in #46042.

(cherry picked from commit 5664e64a01)
2018-09-18 21:48:02 +02:00
Domen Kožar
68c956914b datadog-integrtaions-core: 2018-05-27 -> 2018-09-18
(cherry picked from commit 943871a866)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-18 20:23:44 +01:00
xeji
bc7ec9b651 nixos/release.nix: disable tests.ec2-config (#46830)
This test doesn't work in a sandbox and never succeeded on Hydra.
It simulates an EC2 instance reconfiguring itself at runtime,
which needs network access.

(cherry picked from commit a83d61b708)
2018-09-18 19:27:57 +02:00
Graham Christensen
374d22d68d Merge pull request #46838 from grahamc/check-outputs-in-meta-18.09
stdenv: Validate meta.outputsToInstall
2018-09-18 12:45:01 -04:00
Uli Baum
3d949911c0 gtk-doc: don't build with dblatex by default
make it optional: withDblatex ? false
This removes the dependency of gtk-doc on texlive.

(cherry picked from commit d6ecbe1410)
2018-09-18 18:39:04 +02:00
Robin Gloster
69da311f79 texlive: fix missing synctex header
The automake file was patched but `automake` not run.
Also since the texk/web2c folder is not in autoconfig's
SUBDIRS the autoreconfHook has to be run in there.

Completely fixes #46376

(cherry picked from commit ce6e72a11c)
2018-09-18 18:34:54 +02:00
Graham Christensen
24ad8ada2e elf-header-real: fixup outputsToInstall
(cherry picked from commit 301109a2dd)
2018-09-18 12:28:23 -04:00
Graham Christensen
da5fd39d21 stdenv: Validate meta.outputsToInstall
If meta.outputsToInstall is set to include absent outputs, various
tools break including channel updates and nix-env.

    grahamc@Morbo> nix-env -i -f . -A elf-header-real
    installing 'elf-header'
    error: this derivation has bad 'meta.outputsToInstall'

This patch verifies each value in meta.outputsToInstall is a valid
output. It validates this condition only if checkMeta is true.

    grahamc@Morbo> nix-build . -A elf-header-real
    error: Package ‘elf-header’ in /home/grahamc/projects/nixpkgs/pkgs/development/libraries/elf-header/default.nix:36 has invalid meta.outputsToInstall, refusing to evaluate.

    The package elf-header has set meta.outputsToInstall to: bin

    however elf-header only has the outputs: out

    and is missing the following ouputs:

      - bin

    (use '--show-trace' to show detailed location information)

Note, now the nix-env experience is decidedly worse for users who have
checkMeta set to true:

    grahamc@Morbo> nix-env -i -f . -A elf-header-real; echo $?
    0

though since this is already an issue for unfree, broken, unsupported,
and insecure validity problems I'm not sure we should do something
different here.

(cherry picked from commit b80c9ce4a9)
2018-09-18 12:28:23 -04:00
WilliButz
6ffa699c86 prometheus-json-exporter: add patch to support bool parsing
(cherry picked from commit b59cd2bc17)
2018-09-18 18:22:47 +02:00
WilliButz
ef7921a342 prometheus-json-exporter: 2016-09-13 -> 2017-10-06
(cherry picked from commit b712736283)
2018-09-18 18:22:47 +02:00
Adam Finn Tulinius
81884ce1b4 OVMF: update homepage
Tianocore was apparently moved from SourceForge to GitHub.

(cherry picked from commit 8b8474b1b5)
2018-09-18 13:16:53 +01:00
Clemens Fruhwirth
f339ca57cc mpack: Invoke /run/wrappers/bin/sendmail via execvp
Calling /run/current-sw/bin/sendmail fails under postfix because
setgid bits are not set. Switching the hardcoded path to an invocation
via execvp should cover both cases, when the sendmail binary is
setgid-wrapped and when it is not.

(cherry picked from commit 6d97096d8b)
2018-09-18 10:01:56 +01:00
pacien
083237f061 exim: enable LMTP support
This makes the LMTP transport available by default.
No additional dependency is required.

(cherry picked from commit c3dd421a2e)
2018-09-18 09:51:28 +02:00
José Romildo Malaquias
e97e63bd63 efl: 1.21.0 -> 1.21.1
(cherry picked from commit 5f1c33efce)
2018-09-18 09:43:53 +02:00
John Ericson
4bd5b51c3a Merge pull request #46816 from obsidiansystems/darwin-android-ndk
androidndk: Add Darwin support for 18.09
2018-09-17 23:01:41 -04:00
Yegor Timoshenko
a001c45db2 Merge pull request #46803 from vaibhavsagar/bump-all-cabal-hashes-18.09
all-cabal-hashes: update snapshot to Hackage at 2018-09-12T08:26:27Z
2018-09-17 23:48:28 +00:00
Jörg Thalheim
0ad7d4feb7 heroku: fix homepage
(cherry picked from commit 11dcb770b9)
2018-09-17 22:39:50 +01:00
Bob van der Linden
4ba68be6d5 heroku: set HEROKU_DISABLE_AUTOUPDATE=1
(cherry picked from commit db571e9b78)
2018-09-17 22:39:50 +01:00
Bob van der Linden
c922f7b92a heroku: skip build phase
(cherry picked from commit 1f8dc21c94)
2018-09-17 22:39:49 +01:00
Bob van der Linden
1934cbb6a6 heroku: 5.6.32 -> 7.16.0
(cherry picked from commit 6ab1ee4951)
2018-09-17 22:39:49 +01:00
John Ericson
62dadfbd0e Merge pull request #46796 from obsidiansystems/late-bind-buildHaskellPackages
haskell infra: "late bind" `buildHaskellPackages` for 18.09
2018-09-17 16:21:01 -04:00
Peter Simons
fa90e003a3 all-cabal-hashes: update snapshot to Hackage at 2018-09-12T08:26:27Z
(cherry picked from commit ee6ecb0eaf)
2018-09-17 16:12:28 -04:00
Maximilian Bosch
ff791c8c1d pythonPackages.mahotas: skip test_moments.test_normalize and test_texture.test_haralick3d testcase (#46793)
As stated in #46368, this package seems to have issues with impure tests
(reported in https://github.com/luispedro/mahotas/issues/97).

Unfortunately the `release-18.09` job on Hydra fails at the attempt to
build this package since `test_moments.test_normalize1` and
`test_texture.test_haralick3d` breaks. Until
the root cause is identified, we skip the disabled tests to ensure that
the resulting package is not entirely broken (which can't be confirmed
with `doCheck = false`).

See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python27Packages.mahotas.x86_64-linux
See https://hydra.nixos.org/job/nixos/release-18.09/nixpkgs.python36Packages.mahotas.x86_64-linux
See https://logs.nix.ci/?key=nixos/nixpkgs.46793&attempt_id=b85a638d-dcb0-41d3-ab2a-9616a3bb0175

/cc @xeji @luispedro

(cherry picked from commit 5f2eacccf6)
2018-09-17 21:34:52 +02:00
Uli Baum
347723980a ipfs-migrator: update dependencies in deps.nix
Most dependencies are vendored in the upstream source anyway,
deps.nix just contains the few that are not.
Dependencies were updated manually because go2nix doesn't
work correctly for this package - it produces an empty deps.nix.

(cherry picked from commit f896867ae5)
2018-09-17 19:17:41 +02:00
Uli Baum
96859fd9eb ipfs-migrator: 6 -> 7
New version is required to migrate existing ipfs repos to repo v7.

(cherry picked from commit 6823fe9fb0)
2018-09-17 19:17:41 +02:00
Samuel Dionne-Riel
95b11f3cb9 nixos/tests/installer: grub1 needs /tmp to exist.
(cherry picked from commit b63c539bdc)
2018-09-17 19:13:49 +02:00
Samuel Dionne-Riel
7a811a3dbd grub: grub-0.97-patch-1.15 -> grub-0.97-73
Instead of using Gentoo's patchset, uses Debian's.

Gentoo's doesn't work anymore.

(cherry picked from commit 932c8f4c13)
2018-09-17 19:13:48 +02:00
Samuel Dionne-Riel
8174365dd1 grub: Use gcc6
GCC 7 wasn't kind to grub.

(cherry picked from commit ba09b05702)
2018-09-17 19:13:48 +02:00
aanderse
409abea609 php: add option to enable argon2
(cherry picked from commit e48811f83d)
2018-09-17 19:05:30 +02:00
Danylo Hlynskyi
9d77b35f68 zoom-us: 2.3.128305.0716 -> 2.4.129780.0915, QT downgrade (#46778)
Qt 5.11 was downgraded to 5.9 because of two issues:
- spawns errors like
```
qrc:/qml/SignInWaiting.qml:20:9: QML BusyIndicator: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:26:9: QML Text: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:20:9: QML BusyIndicator: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:26:9: QML Text: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:20:9: QML BusyIndicator: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:26:9: QML Text: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:20:9: QML BusyIndicator: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:26:9: QML Text: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:20:9: QML BusyIndicator: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
qrc:/qml/SignInWaiting.qml:26:9: QML Text: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
```
- Google login doesn't work. It just doesn't start embedded webbrowser

(cherry picked from commit 969a39bd09)
2018-09-17 16:10:10 +02:00
Vladimír Čunát
8b04b63c76 Merge branch 'staging-18.09' into release-18.09 2018-09-17 12:55:39 +02:00
worldofpeace
03f1f355ad nixos/lightdm: use systemd.tmpfiles (#46734)
This also makes logs appear at /var/log/lightdm

(cherry picked from commit 67e9571ba4)
2018-09-17 11:03:20 +02:00
Notkea
48bdc51a72 exim: add optional support for PAM (#46744)
(cherry picked from commit f607f45f33)
2018-09-17 10:50:38 +02:00
Uli Baum
39c585aab1 ostree: fix tests
- Workarounds for https://github.com/ostreedev/ostree/issues/1592
- Disable failing test-gpg-verify-result.test, see
  https://github.com/ostreedev/ostree/issues/1634

(cherry picked from commit d734328f5d)
2018-09-17 09:25:57 +02:00
Vladimír Čunát
1c9013dd34 Merge branch 'release-18.09' into staging-18.09 2018-09-17 09:10:38 +02:00
pacien
026d0c8ae5 exim: parametrise package
This allows the definition of a custom derivation of Exim,
which can be used to enable custom features such as LDAP and PAM support.

The default behaviour remains unchanged (defaulting to pkgs.exim).

(cherry picked from commit d73ed4264f)
2018-09-17 00:42:45 +01:00
Uli Baum
3e10c3705f pythonPackages.dendropy: fix build
Build failed after update to 4.4.0 because the tests are incorrectly
packages in the pypi version.
Switch to upstream github repo, fix tests, disable failing test cases

(cherry picked from commit a66c00d780)
2018-09-16 22:26:14 +01:00
Jörg Thalheim
92f867daae Merge pull request #46525 from Chiiruno/dev/zeronet
nixos/zeronet: Fix TOR permissions, add torAlways option
2018-09-16 22:20:55 +01:00
Matthew Bauer
a86020b885 Revert "Merge pull request #46108 from obsidiansystems/cross-patch-shebangs"
This reverts commit 6877b4c13e, reversing
changes made to 69b6db0ec5.
2018-09-16 15:29:50 -05:00
Pascal Wittmann
50fa8ebf70 tmsu: 0.7.0 -> 0.7.1
(cherry picked from commit c314092164)
2018-09-16 19:21:35 +02:00
Matt McHenry
3c670aad43 elm: patch to widen dependency after hackage update 1b1cb6305c
works around missing dependency 'language-glsl >=0.0.2 && <0.3'

patch from https://github.com/elm/compiler/pull/1784

(cherry picked from commit e78f60475b)
2018-09-16 13:02:43 +02:00
Matt McHenry
9c4e77d4e1 elm: pick up some recent minor updates to 0.19.0
(cherry picked from commit 04d8e267b7)
2018-09-16 13:02:43 +02:00
Bob van der Linden
91792592f0 go: skip flaky os/exec TestExtraFiles
This seems to only happen on i686 on go 1.11. It also happens on
Debian. For more information:

https://github.com/golang/go/issues/25628
(cherry picked from commit 0bf6b440d9)
2018-09-16 11:09:49 +01:00
Vincent Laporte
deebbe43fb ocaml ≤ 4.05: mark as broken on Aarch64
(cherry picked from commit 4f3868b72d)
2018-09-16 09:29:42 +01:00
Vincent Laporte
8a26f19782 pythonPackages.libnacl: fix build on darwin
(cherry picked from commit 5b8b9a08e7)
2018-09-16 09:26:45 +01:00
Peter Simons
bb78d66906 haskell-stm: update overrides that use version 2.4.5.0 to version 2.4.5.1
(cherry picked from commit 53d34305f6)
2018-09-15 21:02:05 -04:00
xeji
a0ba8bba23 pythonPackages.pyodbc: fix build (#46703)
Build with unixODBC instead of libiodbc, see discussion in
https://github.com/mkleehammer/pyodbc/issues/444

(cherry picked from commit 13c500ae16)
2018-09-15 23:14:23 +02:00
John Ericson
ce1cc9dd81 Merge pull request #46713 from obsidiansystems/ios-depoy
ios-depoy: Add missing rsync dep
2018-09-15 15:09:18 -04:00
worldofpeace
3ac0a6c74a rust.section.md: remove nixcrate reference
nixcrate is deprecated

(cherry picked from commit 6dae5de436)
2018-09-15 19:46:35 +01:00
Sarah Brofeldt
a55a1363c3 darcs: unpin ghc (use 8.4.x) version
(cherry picked from commit 0fe0f481c7)
2018-09-15 19:15:00 +02:00
Bob van der Linden
f829dbfaaa Deedle: 1.2.0 -> 1.2.5 (#46702)
(cherry picked from commit 76001b8509)
2018-09-15 16:18:47 +02:00
Bob van der Linden
4aea85a89f Paket: 1.18.2 -> 5.179.1 (#46701)
(cherry picked from commit 6a4b9dfa2f)
2018-09-15 16:03:48 +02:00
Tim Steinbach
0d5e4c9dba sbt: 1.2.1 -> 1.2.3
(cherry picked from commit 795488491c)
2018-09-15 09:57:55 -04:00
Tim Steinbach
53c8df749a linux: 4.18.7 -> 4.18.8
(cherry picked from commit 2193518801)
2018-09-15 09:48:16 -04:00
Tim Steinbach
ed197e7ceb linux: 4.14.69 -> 4.14.70
(cherry picked from commit 1a13067273)
2018-09-15 09:48:07 -04:00
Tim Steinbach
580831c518 linux: 4.9.126 -> 4.9.127
(cherry picked from commit c1d7826a8a)
2018-09-15 09:47:56 -04:00
Tim Steinbach
f071d81afb linux: 4.4.155 -> 4.4.156
(cherry picked from commit b9ca4ac95c)
2018-09-15 09:47:48 -04:00
Jesper Geertsen Jonsson
d36f38a38c Fixes the lldpd service failing to start
Backports a patch that will be included in later upstream versions.
The patch removes a call to /bin/mkdir.

(cherry picked from commit 8a03ec0a32)
2018-09-15 15:38:06 +02:00
volth
38710e66cd libguestfs-appliance: do not build on Hydra
(cherry picked from commit ac52817bd9)
2018-09-15 15:37:16 +02:00
Franz Pletz
2aaebeecdd matrique: init at 250
(cherry picked from commit d79e201851)
2018-09-15 15:28:33 +02:00
Franz Pletz
4010c783ca nheko: 0.4.3 -> 0.5.5
(cherry picked from commit ff8fc5c46c)
2018-09-15 15:16:00 +02:00
Franz Pletz
8ee65ee040 spdlog_1: init 1.1.0
(cherry picked from commit 4d11a37c69)
2018-09-15 15:16:00 +02:00
Franz Pletz
fdd5647264 mtxclient: init at 0.1.0
(cherry picked from commit 8473168bef)
2018-09-15 15:16:00 +02:00
Ben Challenor
ba90765578 jenkins: 2.121.2 -> 2.138.1
(cherry picked from commit 16ce28ed72)
2018-09-15 15:10:44 +02:00
Maximilian Bode
14ccf337ba salt: fix darwin build by specifying dependency on tornado 4
/cc ZHF #45961

(cherry picked from commit 2438ceb5b4)
2018-09-15 12:41:40 +02:00
Maximilian Bode
c96aee40b0 click: 0.3.1 -> 0.3.2
patch necessary to fix "error: the lock file needs to be updated but --frozen was passed to prevent this"

(cherry picked from commit 95c7d8300f)
2018-09-15 11:03:09 +01:00
Peter Simons
4e96a5fc5f cabal2nix: fix (and clean up)override for hpack dependency
(cherry picked from commit 1c5d7ad52e)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-15 10:33:30 +01:00
Peter Simons
52f36810cd haskell-Cabal: keep a copy of the 2.2.x version around in the package set
(cherry picked from commit 838b4fe552)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-15 10:33:29 +01:00
Peter Simons
1c02221724 haskell-cabal2nix: update override for hpack 0.31.0
* pkgs/development/haskell-modules/configuration-common.nix:

(cherry picked from commit e0c081c6ac)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-15 10:33:29 +01:00
Peter Simons
942e0be544 hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.11-9-gb3613cb from Hackage revision
3869e8d541.

(cherry picked from commit 1b1cb6305c)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-15 10:33:29 +01:00
Peter Simons
84d9adf76c LTS Haskell 12.9
(cherry picked from commit 3c1af12544)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-15 10:33:11 +01:00
Will Dietz
373d615198 zsh: 5.6.1 -> 5.6.2
From upstream's NEWS:

> Changes from 5.6.1 to 5.6.2
> ---------------------------
>
> Fix another SIGTTOU case.
>
> Fix SIGWINCH being ignored when zsh is not in the foreground.
>
> The release tarballs are now compressed using xz(1), whereas previously
> both xz(1) and gzip(1) versions were available.  If this gets in your way,
> give us a shout.
>

(cherry picked from commit ef21db9bd3)
2018-09-15 10:54:38 +02:00
Will Dietz
420bfb1405 kmsxx: 2017-10-10 -> 2018-09-10
Various improvements -- if nothing else the 'kmstest'
utility now explains properly when permissions problem :).

(cherry picked from commit 4c1f27a4fc)
2018-09-15 10:53:23 +02:00
Will Dietz
b567484b16 kmscube: 2017-03-19 -> 2018-06-17 (and fix homepage!)
(cherry picked from commit 268d72ec5e)
2018-09-15 10:53:21 +02:00
John Ericson
d1593baffd Merge pull request #46684 from obsidiansystems/elf-header
elf-header: Init at <libc version> for 18.09
2018-09-15 02:01:01 -04:00
Bob van der Linden
b998319b6a Newtonsoft.Json: 6.0.8 -> 11.0.2 (#46679)
(cherry picked from commit fb11065050)
2018-09-15 01:50:27 +02:00
Clemens Fruhwirth
28f3ce334f spl/zfs: 0.7.10 -> 0.7.11
(cherry picked from commit 81082c6c60)
2018-09-15 01:24:43 +02:00
Uli Baum
47d922fc54 qt56.qtwebengine: mark as broken
- no successful build since 2018-04-25
- not used in nixpkgs anymore

(cherry picked from commit 83e5bbfb58)
2018-09-15 00:55:29 +02:00
Uli Baum
fc31a4b195 btanks: mark as broken
no successful hydra build since 2018-03-16, last upstream release 2009.

(cherry picked from commit ba757ffdc9)
2018-09-15 00:55:29 +02:00
Uli Baum
22e09e7007 leksah: mark as broken
no successful build since 2017-08-19

(cherry picked from commit ab5a8b69b0)
2018-09-15 00:55:29 +02:00
Uli Baum
1de40e2160 kippo: mark as broken
no successful hydra build since 2017-12-11

(cherry picked from commit 19d1daedd0)
2018-09-15 00:55:29 +02:00
Uli Baum
7d5f1dad42 frab: mark as broken
No successful hydra build since 2018-02-14.
The build fails in the ruby gem json-1.8.3, which we cannot
mark directly as broken in nixpkgs, so we mark this as broken.

(cherry picked from commit 15fedb51b3)
2018-09-15 00:55:28 +02:00
Uli Baum
380b44f4fe clasp-common-lisp: mark as broken
no successful hydra build since 2018-01-03

(cherry picked from commit 4c2388dee3)
2018-09-15 00:55:28 +02:00
Uli Baum
f04e126009 darwin.maloader: mark as broken
no successfull build in Hydra history back to 2017-08-21

(cherry picked from commit 4795c2a23a)
2018-09-15 00:55:28 +02:00
xeji
0da7a40fca geis: fix build (#46663)
disable format hardening, ignore some compiler warnings

(cherry picked from commit 57ee141696)
2018-09-14 23:59:32 +02:00
Maximilian Bode
b158a30bb1 gitAndTools.grv: fix darwin build by using go 1.9
cf. https://github.com/fsnotify/fsevents/issues/40

/cc ZHF #45961

(cherry picked from commit 6b7cefdc58)
2018-09-14 23:20:16 +02:00
brocking
9fa6a261fb scaleway-cli: 1.14 -> 1.17
(cherry picked from commit 10a6ab75a8)
2018-09-14 16:59:19 +01:00
Michael Raskin
7956bfb364 Merge pull request #46643 from taku0/flashplayer-31.0.0.108
flashplayer: 30.0.0.154 -> 31.0.0.108 [Important security fix]
(cherry picked from commit a9e50ec21a)
2018-09-14 14:34:53 +03:00
Uli Baum
5eb4258a9a pythonPackages.nilearn: fix tests
disable failing tests

(cherry picked from commit d9bdd64f04)
2018-09-14 10:58:22 +02:00
Uli Baum
297a082708 pythonPackages.wordfreq: 2.0 -> 2.2.0, fix build
Previous version didn't build (test failure).
Update to latest, tests use pytest now, disable failing tests.

(cherry picked from commit be12bb81aa)
2018-09-14 10:58:22 +02:00
Uli Baum
837e7c6925 pythonPackages.pytest-rerunfailures: fix build
some tests fail since pytest 3.7.2 -> 3.7.4 update, disable them

(cherry picked from commit 0bda601ee5)
2018-09-14 10:58:21 +02:00
Uli Baum
6678badb1b pythonPackages.flask-pymongo: fix build
add missing dependency: vcversioner

(cherry picked from commit 781eaa1377)
2018-09-14 10:58:21 +02:00
Uli Baum
25f3b47320 pythonPackages.eve: fix build, drop incorrect dependencies
Build failed because of dependency Flask-PyMongo, which actually
isn't a dependency of eve as they have their own flask_pymongo code.

- Drop incorrect dependency flask-pymongo
- Drop redunant dependencies already propageted by flask:
  itsdangerous, werkzeug, jinja2
- Drop dependency markupsafe, not required any more

(cherry picked from commit 9e4b0b795c)
2018-09-14 10:58:21 +02:00
Uli Baum
c2bb2fb269 pythonPackages.daphne: 2.1.0 -> 2.2.2
Update, re-enable all tests on linux, disable tests on darwin.
This fixes the build of pythonPackages.channels

(cherry picked from commit abe97e9446)
2018-09-14 10:58:21 +02:00
Daiderd Jordan
8a93d258cd cargo-web: mark broken on darwin
Looks CoreFoundation related.

    Undefined symbols for architecture x86_64:
      "_CFURLResourceIsReachable", referenced from:
          fsevent_sys::core_foundation::str_path_to_cfstring_ref::h0ea4bd94e2c613f2 in libfsevent_sys-ef30b6879660a6c1.rlib(fsevent_sys-ef30b6879660a6c1.fsevent_sys7-49ce33334334dd3a5c7883bf4070f954.rs.rcgu.o)
    ld: symbol(s) not found for architecture x86_64

/cc ZHF #45961

(cherry picked from commit 327edb4b1d)
2018-09-14 10:44:52 +02:00
Daiderd Jordan
3b0dddd940 csfml: mark linux only
While it's possible to build on darwin, we never had a successful build.

    Undefined symbols for architecture x86_64:
      "sf::microseconds(long long)", referenced from:
          _sfSleep in Sleep.cpp.o

/cc ZHF #45961

(cherry picked from commit 54b4000d54)
2018-09-14 10:44:51 +02:00
Daiderd Jordan
fffefe7901 cernlib: mark broken on darwin
Using gccStdenv makes the build go further, but then it fails with.

    kuipc /private/tmp/nix-build-cernlib-2006.drv-0/2006/src/packlib/kuip/code_kuip/kuipcdf.cdf kuipcdf.c
    Makefile:413: archive/kuipcdf.d: No such file or directory
    make[3]: *** [Makefile:473: kuipcdf.c] Abort trap: 6

/cc ZHF #45961

(cherry picked from commit 68f7e75517)
2018-09-14 10:44:51 +02:00
WilliButz
221ec615f8 prometheus-dovecot-exporter: 0.1.1 -> 0.1.3
(cherry picked from commit 21324ef0e4)
2018-09-14 03:59:38 +02:00
Daiderd Jordan
0b3e0cdab2 ceres-solver: fix darwin build (#46626)
The Basel BUILD file conflicts with the cmake build directory on
case-insensitive filesystems, eg. darwin.

/cc ZHF #45961

(cherry picked from commit 807b0105b4)
2018-09-13 23:44:27 +02:00
Daiderd Jordan
4199eb48fa calaos_installer: fix darwin install (#46629)
On darwin this builds an application instead of a binary.

/cc ZHF #45961

(cherry picked from commit 68956555c1)
2018-09-13 23:40:52 +02:00
Daiderd Jordan
ce1f20f43c cargo-update: fix darwin build (#46625)
On darwin libcurl is also needed.

/cc ZHF #45961

(cherry picked from commit d782c4eba5)
2018-09-13 23:36:54 +02:00
Daiderd Jordan
381c09b225 brlaser: cleanup and mark linux only (#46622)
The test binaries depend use open_memstream which isn't available on
darwin.

    error: use of undeclared identifier 'open_memstream'

/cc ZHF #45961

(cherry picked from commit 04cba83e7f)
2018-09-13 22:48:30 +02:00
R. RyanTM
4293f9f252 google-compute-engine: 20180129 -> 20180510 (#46278)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
google-compute-engine

(cherry picked from commit 035b2f5250)
2018-09-13 20:09:47 +01:00
Simon Lackerbauer
8b5f311616 atlassian-jira: 7.12.0 -> 7.12.1
(cherry picked from commit a431f3e35d)
2018-09-13 19:59:24 +02:00
Simon Lackerbauer
8ade355e59 atlassian-crowd: 3.1.2 -> 3.2.5
(cherry picked from commit f05e51abed)
2018-09-13 19:59:24 +02:00
Simon Lackerbauer
00ba14dcb7 atlassian-confluence: 6.8.0 -> 6.11.1
(cherry picked from commit 4d962b6dcd)
2018-09-13 19:59:24 +02:00
WilliButz
214e4e57eb grafana: 5.2.3 -> 5.2.4
(cherry picked from commit 68b25008e2)
2018-09-13 19:56:54 +02:00
Eelco Dolstra
51b62e6a8c Revert "aliases: add nixos-rebuild"
This reverts commit 0b124c1e91. We
should really stop adding things that are not packages to
all-packages.nix. For example, having nixos-rebuild.nix in
all-packages.nix causes 'nix-env -qa' to evaluate a NixOS
configuration, which obviously is not good for performance. (We should
probably also remove the 'nixos' attribute from all-packages.nix, but
at least that's a function so nix-env will ignore it.)

(cherry picked from commit f1c978aca0)
2018-09-13 18:27:36 +01:00
Samuel Dionne-Riel
43a15a7f55 Merge pull request #46598 from srhb/kube-1.11-backport-1809
18.09: kubernetes: 1.10.5 -> 1.11.3
2018-09-13 13:06:22 -04:00
Uli Baum
77d9ad1f26 pythonPackages.zodb: fix tests
Tests failed after `persistent` was updated to 4.4.
Apply an upstream patch to fix them.

(cherry picked from commit b54677969b)
2018-09-13 17:02:31 +01:00
Matthew Bauer
d9f1e37ec7 aliases: add nixos-rebuild
Fixes #44135

(cherry picked from commit 0b124c1e91)
2018-09-13 14:46:30 +01:00
Maximilian Bosch
3625ce7a44 tamarin-prover: fix ghc 8.4 build (#46597)
See https://hydra.nixos.org/build/81125645

`tamarin-prover' upstream has a patch to fix GHC 8.4 compilation (and
uses stack lts-12.1 now), but it's not released yet:

a08f6e4007

The build is divided in several derivations, therefore the patch had to
be splitted and rebased for `lib/term', `lib/theory' and `lib/utils' to
ensure that the patch applies properly during the `patchPhase'.

Addresses #45960

(cherry picked from commit 2cfc0bb7ee)
2018-09-13 14:11:52 +02:00
Matthias C. M. Troffaes
755710dbf5 wolfssl: enable all features
(cherry picked from commit 66e6ee73d4)
2018-09-13 12:06:05 +01:00
Jaakko Luttinen
1851422f61 syncthing: 0.14.48 -> 0.14.50
(cherry picked from commit 6400d4b4aa)
2018-09-13 11:47:26 +01:00
xeji
17f538bd06 leo-editor: 5.6 -> 5.7.3, fix build (#46589)
Previous version depended on qt56.qtwebengine which was broken.

(cherry picked from commit eb88142c4b)
2018-09-13 12:18:31 +02:00
Uli Baum
ae181c387a pythonPackages.restview: fix tests
Failed after readme_renderer was updated. Apply an upstream patch.

(cherry picked from commit 6dc57134da)
2018-09-13 11:41:32 +02:00
Uli Baum
c8b1f54b89 pythonPackages.pyfakefs: fix darwin build
One test failed on darwin due to case-insensitive file system,
disable it.

(cherry picked from commit bd02a1931a)
2018-09-13 11:41:32 +02:00
Uli Baum
7e47d1a020 pythonPackages.pydub: fix aarch64 build
one test failed due to rounding errors, disable it

(cherry picked from commit bc036397a3)
2018-09-13 11:41:31 +02:00
Uli Baum
38f6951e38 pythonPackages.pydub: remove obsolete patch
(cherry picked from commit 40c469e56b)
2018-09-13 11:41:31 +02:00
Uli Baum
671205b3e5 pythonPackages.pydub: fix build and tests
- remove obsolete patch that caused build failure
- no tests were run because required data files were missing in pypi
  version; use github version instead

(cherry picked from commit 80ecef8e4b)
2018-09-13 11:41:31 +02:00
Uli Baum
a700d468ba pythonPackages.pyfakefs: 3.4.1 -> 3.4.3, fix build
Update and disable some failing test cases

(cherry picked from commit d2a885a3b5)
2018-09-13 11:41:31 +02:00
Uli Baum
27159aee90 pythonPackages.readme_renderer: fix build
Disable one test case that has failed since last bleach update.

(cherry picked from commit bb1f3422e0)
2018-09-13 11:41:31 +02:00
Uli Baum
2880ca71fa pythonPackages.us: fix build
Required jellyfish==0.5.6 but we have 0.6.1. Loosen requirements.

(cherry picked from commit a7166cdc35)
2018-09-13 11:41:31 +02:00
Johan Thomsen
0c84b5cab7 kubernetes: 1.10.5 -> 1.11.3
Fixed minor issue where kube-addon manager complaints about
/opt/namespace.yaml missing.

Added release notes with reference to Kubernetes 1.11 release notes.

closes #43882

(cherry picked from commit a49f56c3b1)
2018-09-13 11:30:34 +02:00
Domen Kožar
cedae2bbec nixos: datadog-agent: fix systemd support
(cherry picked from commit 595ae18797)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-13 09:12:44 +01:00
Domen Kožar
160eea3602 datadog: add live process monitoring
(cherry picked from commit bef541c569)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-13 09:12:37 +01:00
Domen Kožar
4fce4287ff nixos: remove unneeded api_key from config
(cherry picked from commit 049b3a6cc2)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-13 09:12:30 +01:00
Jörg Thalheim
29f4541a82 pythonPackage.backports-shutil-which: enable tests
(cherry picked from commit 8d4afa5f2e)
2018-09-12 22:08:30 -04:00
Jaakko Luttinen
ed0fc7dc1d pythonPackages.libagent: fix propagatedBuildInputs
(cherry picked from commit d0ce8834ae)
2018-09-12 22:08:30 -04:00
Jaakko Luttinen
91f488c3bf pythonPackage.backports-shutil-which: init at 3.5.1
(cherry picked from commit 80b64a2e04)
2018-09-12 22:08:30 -04:00
Jaakko Luttinen
825f91bdcc pythonPackage.pymsgbox: init at 1.0.6
(cherry picked from commit c9bf7f67b9)
2018-09-12 22:08:30 -04:00
Jaakko Luttinen
ff6e4d0369 pythonPackages.ledgerblue: fix build inputs
(cherry picked from commit 5c9db2f02f)
2018-09-12 22:08:29 -04:00
Jaakko Luttinen
f8c8a23389 pythonPackages.python-u2flib-host: init at 3.0.3
(cherry picked from commit 38e86a8f1e)
2018-09-12 22:08:29 -04:00
Jaakko Luttinen
832dcfdb11 pythonPackages.rlp: fix build
(cherry picked from commit f053daf36c)
2018-09-12 22:08:29 -04:00
Jaakko Luttinen
d72f81ed5a pythonPackages.eth-utils: init at 1.2.0
(cherry picked from commit 9f8e6148c5)
2018-09-12 22:08:29 -04:00
Jaakko Luttinen
923a6b22e6 pythonPackages.eth-typing: init at 1.1.0
(cherry picked from commit 541a13ca0a)
2018-09-12 22:08:29 -04:00
Jaakko Luttinen
735b1e10b4 pythonPackages.eth-hash: init at 0.1.14
(cherry picked from commit c44504410b)
2018-09-12 22:08:29 -04:00
xeji
3e31aa326e pythonPackages.BTrees: fix build (#46588)
a test case failed since the update to 4.5.1, disable it

(cherry picked from commit 68b7de9e2e)
2018-09-13 02:33:04 +02:00
Uli Baum
b55e3054b9 mitmproxy: 3.0.4 -> 4.0.4, fix tests
- add missing checkInputs
- apply upstream patch to fix some tests that failed due to
  expired test ssl certs
- re-enable a previously disabled test case

(cherry picked from commit d225a91b7c)
2018-09-13 02:19:56 +02:00
Daiderd Jordan
9c9c04f918 asymptote: mark broken on darwin
It only builds with gc-7.6.0 on darwin for some reason.

/cc ZHF #45961

(cherry picked from commit 9fc6f1123d)
2018-09-13 00:07:09 +02:00
Daiderd Jordan
642d69b527 aws-okta: mark broken on darwin
Could be caused by our older 10.10.5 CoreFoundation.

    # github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain
    go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:35:33: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFDataCreate
    go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:61: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
    go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:98:41: cannot use nil as type _Ctype_CFAllocatorRef in argument to _Cfunc_CFStringCreateWithBytes
    go/src/github.com/segmentio/aws-okta/vendor/github.com/keybase/go-keychain/corefoundation_go110.go:133: cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal

/cc ZHF #45961

(cherry picked from commit b814881394)
2018-09-13 00:07:05 +02:00
Daiderd Jordan
91da313b87 litecoin: add missing framework and mark broken on darwin
In file included from qt/bitcoin.cpp:9:
    ./qt/bitcoingui.h:14:10: fatal error: 'QLabel' file not found
    #include <QLabel>
             ^~~~~~~~
    1 error generated.

/cc ZHF #45961

(cherry picked from commit 0dff3d5c73)
2018-09-13 00:07:01 +02:00
Daiderd Jordan
70f2abee3d ethsign: mark broken on darwin
Could be caused by our older 10.10.5 CoreFoundation.

    go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:51:216:
    cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal
    go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:162:47:
    cannot use nil as type _Ctype_CFAllocatorRef in argument to
    _Cfunc_CFStringCreateWithCStringNoCopy
    go/src/github.com/ethereum/go-ethereum/vendor/github.com/rjeczalik/notify/watcher_fsevents_cgo.go:163:225:
    cannot use nil as type _Ctype_CFAllocatorRef in argument to func literal

/cc ZHF #45961

(cherry picked from commit e7ecf593e2)
2018-09-13 00:06:57 +02:00
Daiderd Jordan
3c2e66d746 bitcoin-xt: mark broken on darwin
/cc ZHF #45961

(cherry picked from commit 8f6ede967e)
2018-09-13 00:06:53 +02:00
Daiderd Jordan
72830db1a0 bitcoin-unlimited: mark broken on darwin
/cc ZHF #45961

(cherry picked from commit eaff0b74c0)
2018-09-13 00:06:49 +02:00
Daiderd Jordan
509e79eec5 bitcoin-classic: mark broken on darwin
Last successful build https://hydra.nixos.org/build/74552951.

/cc ZHF #45961

(cherry picked from commit d990bae6ef)
2018-09-13 00:06:44 +02:00
Daiderd Jordan
a95c041252 bitcoin-abc: mark broken on darwin
Last successful build https://hydra.nixos.org/build/74552872.

/cc ZHF #45961

(cherry picked from commit cf9d1a6d30)
2018-09-13 00:06:41 +02:00
Daiderd Jordan
7b82c4f182 atlas: mark broken on darwin
Started to fail since 3.10.3.

    /private/tmp/nix-build-atlas-3.10.3.drv-0/ATLAS/build/bin/ATLrun.sh: line 4: 31119 Segmentation fault: 11  $atldir/$*
    make[3]: *** [Makefile:1695: ssanity_test] Error 139

/cc ZHF #45961

(cherry picked from commit f1542f612b)
2018-09-13 00:06:37 +02:00
Daiderd Jordan
93f4bb6a62 asio: mark broken on darwin
Started to fail since 1.12.1.

    Undefined symbols for architecture x86_64:
      "boost::chrono::steady_clock::now()", referenced from:
          pinger::start_send() in ping.o
          asio::detail::timer_queue<asio::detail::chrono_time_traits<boost::chrono::steady_clock, asio::wait_traits<boost::chrono::steady_clock> > >::wait_duration_msec(long) const in ping.o
          asio::detail::timer_queue<asio::detail::chrono_time_traits<boost::chrono::steady_clock, asio::wait_traits<boost::chrono::steady_clock> > >::wait_duration_usec(long) const in ping.o
          asio::detail::timer_queue<asio::detail::chrono_time_traits<boost::chrono::steady_clock, asio::wait_traits<boost::chrono::steady_clock> > >::get_ready_timers(asio::detail::op_queue<asio::detail::scheduler_operation>&) in ping.o
          pinger::handle_receive(unsigned long) in p

/cc ZHF #45961

(cherry picked from commit 80a4e48e45)
2018-09-13 00:06:34 +02:00
Daiderd Jordan
5bf79832e6 alock: mark linux only
The darwin build fails and it's probably not particularly useful there.

    utils.c:33:19: error: use of undeclared identifier 'CLOCK_MONOTONIC'
        clock_gettime(CLOCK_MONOTONIC, &t);

/cc ZHF #45961

(cherry picked from commit 139eb11a6d)
2018-09-13 00:06:24 +02:00
Uli Baum
7d5b1d14c6 banshee: remove
- was broken since June 2016 because it depends on `boo`
- no visible attempts to fix in over 2 years

(cherry picked from commit 2953d4c994)
2018-09-12 23:26:23 +02:00
Uli Baum
e586eda60d nant: remove
- our version is from 2015
- it doesn't build
- upstream project is dead, last release 2012, last commit Oct 2016.
- used by only 1 nixpkgs package: `boo`, marked broken since 2016.

(cherry picked from commit dc84de59d1)
2018-09-12 23:26:23 +02:00
Uli Baum
18e9a5c8e4 boo: remove, broken since Jun 2016
marked broken in June 2016, no visible attempt to fix it,
so let's get rid of it

(cherry picked from commit 5a166ffd47)
2018-09-12 23:26:23 +02:00
zimbatm
770ee0b279 vault: 0.10.4 -> 0.11.1
changelog: https://github.com/hashicorp/vault/blob/v0.11.1/CHANGELOG.md
(cherry picked from commit 7880cd6752)
2018-09-12 23:12:34 +02:00
worldofpeace
362498c6fe eolie: 0.9.35 -> 0.9.36
(cherry picked from commit 508e353fd4)
2018-09-12 21:30:23 +01:00
Josef Kemetmüller
84361ab3e1 scs: Fix darwin build
Additionally we make the unit-test deterministic by specifying a seed
instead of using something random.

(cherry picked from commit d726c0ff1d)
2018-09-12 21:25:52 +02:00
Robin Gloster
088e1bdf7d grafana module: allow path for extraConfig vals
(cherry picked from commit 929f71d381)
2018-09-12 14:22:21 +02:00
Robin Gloster
1ffb47ad48 acme module: fix self-signed cert with openssl 1.1
(cherry picked from commit 515a7aa452)
2018-09-12 13:41:50 +02:00
Michael Raskin
32c008a946 lispPackages.quicklisp: 2018-04-30 -> 2018-08-31 ; regenerate packages
Added a wrapper package that creates symlinks to OpenSSL libraries with
the actual versions, because we have 1.0.2 with .so-suffix .1.0.0 and
cl-async-ssl is unhappy because of that.

I continue to dislike cl-postgres and simple-date upstream packaging.

This fixes cl-libuv and dependent packages.

Progress on #45960

(cherry picked from commit 5048b0d1f9)
2018-09-12 11:59:56 +03:00
Christoph Hrdinka
8e20e5ee35 zsh: 5.6 -> 5.6.1
Signed-off-by: Christoph Hrdinka <c.github@hrdinka.at>
2018-09-12 09:35:55 +02:00
Elis Hirwing
8468a4bfc7 nano: 2.9.8 -> 3.0
Changelog: http://lists.gnu.org/archive/html/info-nano/2018-09/msg00000.html

Also updated the nix highlighting for nano

(cherry picked from commit b47c5870f4)
2018-09-11 20:28:07 -04:00
Matthew Bauer
7bc168e4b5 Merge pull request #46518 from srhb/revert-build-host-target-platform-deprecation-1809
Revert build host target platform deprecation on release-18.09
2018-09-11 18:55:05 -05:00
Maximilian Bosch
f95ddad29f python3Packages.pyowm: fix python3 build (#46549)
See https://hydra.nixos.org/build/80714323

Version 2.9 requires `geojson==2.x'. To allow 2.4, the constraint
required some patching using `substituteInPlace'.

Addresses #45960

(cherry picked from commit a25dcb6607)
2018-09-12 01:24:15 +02:00
Daiderd Jordan
40e4aee577 aria2: fix darwin build (#46548)
Not released yet, see https://github.com/aria2/aria2/issues/1198

/cc ZHF #45961

(cherry picked from commit 2164e39eaa)
2018-09-12 00:11:53 +02:00
John Ericson
3ef52f02a9 Merge pull request #46546 from obsidiansystems/glibc-configureFlags-cleanup
glibc: Use lib.enableFeature and friends for 18.09
2018-09-11 17:51:08 -04:00
Maximilian Bosch
f0972029de pants: fix build (#46545)
See https://hydra.nixos.org/build/80727495

`pants' works with requests==2.19 to build successfully and `nixpkgs' currently uses `requests==2.19.1`.
Patching the version constraint in `setup.py' accordingly fixes the problem.

Addresses #45960

(cherry picked from commit 46d1166b80)
2018-09-11 23:22:50 +02:00
Florian Bruhin
23200f56e8 qutebrowser: Fix patching of standarddir.py
The original patch was broken since a85e19a5e1 because an `APPNAME` variable was introduced there.

(cherry picked from commit 84a0dc8191)
2018-09-11 23:09:56 +02:00
John Ericson
6877b4c13e Merge pull request #46108 from obsidiansystems/cross-patch-shebangs
patch-shebangs: respect cross compilation for 18.09
2018-09-11 16:41:04 -04:00
Matthew Bauer
e9b63007e5 patch-shebangs: respect cross compilation
This hopefully makes patchShebangs respect cross compilation. It
introduces the concept of the HOST_PATH. Nothing is ever executed on
it but instead used as a way to get the proper path using ‘command
-v’. Needs more testing.

/cc @ericson2314 @dtzwill

Fixes #33956
Fixes #21138

(Modified backport of f06942327a. See
previous commit to understand the differences between this and the
original.)
2018-09-11 16:16:09 -04:00
John Ericson
c72c865560 stdenv: Define HOST_PATH more loosely when strictDeps isn't set
This ensures this change is safe last minute for 18.09. Master won't
have this.
2018-09-11 16:15:19 -04:00
Daiderd Jordan
03c8cbe813 perl-TestRunCmdLine: disable tests on darwin
/cc ZHF #45961

(cherry picked from commit f61279e45b)
2018-09-11 22:05:25 +02:00
Mario Rodas
81969394b4 nodejs-6_x: 6.14.3 -> 6.14.4
(cherry picked from commit bfdfb73ff1)
2018-09-11 14:26:31 -04:00
Mario Rodas
ad5046d8b8 nodejs: use https for downloading
(cherry picked from commit 36b5ffa40b)
2018-09-11 14:26:31 -04:00
Samuel Dionne-Riel
fce2d40051 qt5.qtwebkit: Fixes modules src being subtly broken.
b785d4813e introduced breakage in Qt
modules for 5.6 and 5.9, especially visible is Qt Webkit.

This was manifested by having a non-sensical build log where it is using
the top-level `src` attribute as source instead of Qt Webkit's own
source.

Were it not for the `src` top-level attribute (which is a legit
package), the error would have been made obvious by passing `null` to
`src`.

This partily reverts newly introduced way `src` can be passed to a
qtModule, instead relying on extending the `srcs` attrset.

For ZHF #45960

(cherry picked from commit cb380983ed)
2018-09-11 11:05:16 -04:00
Okina Matara
3091eb6537 nixos/zeronet: Fix TOR permissions, add torAlways option
(cherry picked from commit 9c97f37761)
Reason: Fixing an important zeronet feature for a new release.
2018-09-11 09:27:05 -05:00
Daiderd Jordan
bd1c922388 perl-Mouse: fix darwin build
/cc ZHF #45961

(cherry picked from commit 5e8fd8792b)
2018-09-11 09:59:34 -04:00
Daiderd Jordan
676841e61d perl-Module-Build-XSUtil: fix darwin build
While building the tests LD gets called with -mmacosx-version-min=10.10
which is a CC flag, causing the build to fail with LD=ld.  This is
pretty common with perl packages.

/cc ZHF #45961

(cherry picked from commit dc6b36b994)
2018-09-11 09:59:31 -04:00
Sarah Brofeldt
bf7c2e35f1 nixos/doc: Add stable pre-release warning (#46473)
(cherry picked from commit 66f6105978)
2018-09-11 15:42:49 +02:00
Domen Kožar
1c852070e8 datadog-agent: 6.1.4 -> 6.4.2
(cherry picked from commit 2c18d48c0e)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-11 13:17:41 +01:00
Domen Kožar
d25939132f dep2nix: fix eval (no IFD)
(cherry picked from commit e8621a45a2)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-11 13:17:23 +01:00
Domen Kožar
b2fc0f0234 dep2nix: 0.0.1 -> 0.0.2
(cherry picked from commit 35df0f7f0c)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-11 13:17:10 +01:00
Sarah Brofeldt
ea4d36a2e5 Revert "top-level: Deprecate top-level {build,host,target}Platform"
This reverts commit e51f736076.
2018-09-11 12:07:22 +02:00
Erik Arvstedt
c1713a14db networking.hostId: fix cmd in description
1. Simplify the command by reading directly from /etc/machine-id which
is already a random, lower-case hex string
2. Previously, the command output could be too short because of missing
leading digits. This is now fixed.

(cherry picked from commit 7a42623c23)
2018-09-11 10:32:18 +01:00
Sarah Brofeldt
c36aedb1c8 Merge pull request #46503 from ento/aws-vault-4-3-0
aws-vault: 4.1.0 -> 4.3.0, pass linker flag for specifying app version
(cherry picked from commit 5984aae9a7)
2018-09-11 11:30:38 +02:00
Wael M. Nasreddine
f461c933a1 bazel: 0.16.0 -> 0.16.1
(cherry picked from commit d24f81b825)
2018-09-11 11:27:36 +02:00
xeji
dd13aedbdb pythonPackages.pytestflakes: fix build (#46500)
- disable a failing test case that looks broken
- remove pytestcache depencency that was dropped upstream

(cherry picked from commit f201f8c3fd)
2018-09-11 11:16:03 +02:00
Clemens Fruhwirth
766d15ddd9 spl/zfs: 0.7.9 -> 0.7.10
(cherry picked from commit 05f122c561)
2018-09-11 07:07:44 +02:00
José Romildo Malaquias
f02eb7d337 lxqt: mv contents of base, core and optional to parent directory (#46484)
(cherry picked from commit 2047e28c7f)

a noop change, backported for easier maintenance
2018-09-10 23:01:21 +02:00
Maximilian Bosch
7666310ebf pythonPackages.mahotas: fix build, move expression
See https://hydra.nixos.org/build/80828287

Moves `mahotas` out of `python-packages.nix` into its own file and fixes
broken test cases by skipping them using nosetest's `@nottest`
annotation.

These tests broke from time to time in a sandbox and are therefore
considered impure.

Addresses #45960

(cherry picked from commit ee897b64ff)
2018-09-10 22:59:10 +02:00
Maximilian Bosch
cde1edebd6 openbsm: fix linux build
See https://hydra.nixos.org/build/80705916

To fix the linux build the patch `bsm-add-audit_token_to_pid.patch`
mustn't be applied during Linux builds, only for Darwin as it's an
Apple-only fix.

The compiler failure occurred because `audit_token_t` is part of
`<mach/mach.h>` which is not available on Linux.

Addresses #45960

(cherry picked from commit 080b2fdd8c)
2018-09-10 22:58:46 +02:00
Michele Guerini Rocco
d164d7eb89 antimony: 0.9.3 -> 2018-10-17 (#46486)
(cherry picked from commit fd7e69be1c)
2018-09-10 22:17:36 +02:00
volth
1b0c262aad perlPackages: ZHF 18.09 (#46493)
(cherry picked from commit 50789a0b19)
2018-09-10 22:14:34 +02:00
Daiderd Jordan
a1f2a67850 bullet: fix darwin build
The examples fail with an opengl related issue:

    Undefined symbols for architecture x86_64:
      "SimpleOpenGL3App::SimpleOpenGL3App(char const*, int, int, bool)", referenced from:
          _main in main_opengl_single_example.o
      "_useShadowMap", referenced from:
          GL_ShapeDrawer::drawScene(btDiscreteDynamicsWorld const*, bool, int) in GL_ShapeDrawer.o
    ld: symbol(s) not found for architecture x86_64

And the tests need an extra dependencly, possibley related to
https://github.com/bulletphysics/bullet3/issues/819

    ld: library not found for -lBussIK

/cc ZHF #45961

(cherry picked from commit 939debc7a4)
2018-09-10 21:35:26 +02:00
zimbatm
57268a967f govendor: init at 1.0.9 (#46485)
(cherry picked from commit 404b224529)
2018-09-10 17:48:34 +01:00
Urban Skudnik
0be60455c8 hcloud: Add autocomplete support for bash and zsh
Currently one would need to manually run the command to generate
completion and insert it into `.bashrc`/`.zshrc` to get the
autocompletion to work. This patch will automatically generate
both docs and save them to correct position so it should continue
to work even if user changes the shell at a later stage.

(cherry picked from commit d23c357f1c)
2018-09-10 15:20:10 +01:00
Linus Heckemann
12703a0c06 earlyoom: fix version number (#46481)
earlyoom's Makefile attempts to detect the current version using git,
but we don't keep .git in its source, so this fails. We can however
set the VERSION environment variable to override this, as we now do.

(cherry picked from commit ac679e721f)
2018-09-10 13:23:28 +01:00
Arian van Putten
23bbe26bde safe-money: Fix dependencies for safe-money-*
They all depend on safe-money-0.7, but hackage2nix made them incorrectly
depend on safe-money-0.6

We should be able to remove this 'hack' as soon as the new Stackage LTS
comes out, as safe-money-0.7 will then be the default version.
2018-09-10 13:14:53 +01:00
Shea Levy
406e0a6dca Merge branch 'haskell-updates-18.09' into release-18.09 2018-09-10 07:48:30 -04:00
Maximilian Bosch
b7be61673c pythonmagick: fix build (#46469)
The original build broke with the following linker issue:

```
  CXXLD    _PythonMagick.la
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld: cannot find -l-L/nix/store/4gh6ynzsd5ndx37hmkl62xa8z30k43y1-imagemagick-6.9.9-34/lib
collect2: error: ld returned 1 exit status
```

This happens since `BOOST_PYTHON_LIB` wasn't set properly, however
`_PythonMagick.la` was linked with `-l$(BOOST_PYTHON_LIB)
$(MAGICK_LIBS)`. With an empty `BOOST_PYTHON_LIB` the linker got
confused.

To work around this, the `boost` library directory needs to be specified
explicitly. To ensure that the changes take effect, the original
`configure` script shipped with `$src` needs to be removed and recreated
using the `autoreconfHook`.

Additionally the `imagemagick` license (https://spdx.org/licenses/ImageMagick.html)
needs to be added to `lib/licenses.nix` to document the proper license
of `pythonmagick` in the meta section.

(cherry picked from commit 6d6cbd316d)
2018-09-10 12:00:38 +02:00
Amine Chikhaoui
ee22050f05 ZHF 18.09: fix crypsetup build with python enabled. (#46468)
Fixes https://hydra.nixos.org/build/81028247.

(cherry picked from commit 00064c21cc)
2018-09-10 11:54:23 +02:00
Eelco Dolstra
821c67d51b Merge pull request #46401 from matthewbauer/revert-nix-minver
[18.09] set min version back to 1.11
2018-09-10 09:50:17 +02:00
Will Dietz
93e78c721c busybox: 1.29.2 -> 1.29.3 (#46458)
(cherry picked from commit 30500d23bc)
2018-09-10 08:44:21 +02:00
Samuel Dionne-Riel
55c8b29523 dbeaver: 5.1.6 -> 5.2.0 (#46457)
(cherry picked from commit cf3795a25e)
2018-09-10 08:20:31 +02:00
Tim Steinbach
f7f88636a2 linux: 4.18.6 -> 4.18.7
(cherry picked from commit ea765b2e2b)
2018-09-09 19:35:03 -04:00
Tim Steinbach
caeb83bdd3 linux: 4.14.68 -> 4.14.69
(cherry picked from commit 276b2ab892)
2018-09-09 19:34:53 -04:00
Tim Steinbach
f4b248e4b0 linux: 4.9.125 -> 4.9.126
(cherry picked from commit d40f4159ed)
2018-09-09 19:34:41 -04:00
Tim Steinbach
db9849f1c3 linux: 4.4.154 -> 4.4.155
(cherry picked from commit 13728ed2b5)
2018-09-09 19:34:31 -04:00
Josef Kemetmüller
9cb6025551 pythonPackages.joblib: Disable flaky test (#46439)
The test `test_nested_parallelism_limit` fails on darwin.

(cherry picked from commit 6f891ff66e)
2018-09-09 22:42:34 +02:00
Josef Kemetmüller
3143d6bd2e pythonPackages.fiona: Fix darwin build (#46435)
(cherry picked from commit 5e0c468737)
2018-09-09 22:41:12 +02:00
Josef Kemetmüller
bbfa5d87dc pythonPackages.libusb1: Disable flaky test
(cherry picked from commit b633fc4fb4)
2018-09-09 22:25:31 +02:00
Josef Kemetmüller
43387f069a pythonPackages.libusb1: Fix darwin build
(cherry picked from commit 063aa389df)
2018-09-09 22:25:31 +02:00
Josef Kemetmüller
b682a408fd castxml: Fix build (#46442)
(cherry picked from commit 4ab5625c95)
2018-09-09 22:19:01 +02:00
Josef Kemetmüller
ff81358447 pythonPackages.flask_ldap_login: Disable on python3
(cherry picked from commit b667a76eac)
2018-09-09 22:01:40 +02:00
Josef Kemetmüller
6ef71d09b8 pythonPackages.flask_ldap_login: 0.3.0 -> 0.3.4
(cherry picked from commit 25f8753bf4)
2018-09-09 22:01:40 +02:00
Josef Kemetmüller
3925e7486f pythonPackages.flask_ldap_login: Fix build
(cherry picked from commit d4e89680d2)
2018-09-09 22:01:40 +02:00
Josef Kemetmüller
34059be473 pythonPackages.cozy: Disable on python2 (#46436)
Cozy does not support python2.

(cherry picked from commit a4b040e69f)
2018-09-09 21:34:20 +02:00
Janne Heß
a38d70855b treewide: Use http/https for homepages
(cherry picked from commit 9ef77854f7)
2018-09-09 15:51:08 +01:00
Tad Fisher
3dc8898536 vkquake: fix build
(cherry picked from commit b19cdc31c1)
2018-09-09 15:48:49 +01:00
Maximilian Bosch
5170f7219f pdf2htmlEX: mark as broken
See https://hydra.nixos.org/build/81003667

The build is currently broken on Hydra due to the following error:

```
CairoFontEngine.cc:681:17: error: 'void Object::free()' is private within this context
```

This issue is was also reported in AUR (https://aur.archlinux.org/packages/pdf2htmlex/)
and in the upstream issue tracker (https://github.com/coolwanglu/pdf2htmlEX/issues/753) with
no answer until now.

The current README.md states that the project is no longer under active
development and it seems as there are currently no active maintainers
who could fix this:

* 5d0a2239fc
* https://github.com/coolwanglu/pdf2htmlEX/issues/772

(cherry picked from commit de6544b50e)
2018-09-09 15:46:54 +01:00
José Romildo Malaquias
fa3cc6bf23 xsettingsd: git-2015-06-14 -> 1.0.0
- Update to version 1.0.0
- Install man pages
- Fix license
- Add maintainer

(cherry picked from commit 68102e793d)
2018-09-09 14:17:35 +01:00
Jörg Thalheim
7490ec9ed3 doc/vim: improve plugin documentation
(cherry picked from commit 97acac9a81)
2018-09-09 14:15:52 +01:00
zimbatm
6142a2ef4b strongswan: set the right dir for TLS CA cert
This fixes an issue where the strongswan NM client is not able to
connect to a VPN. By default it tries to load the trust CA from
/usr/share/ca-certificates which doesn't exist in NixOS and most modern
distros.

See debian-related issue:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835095

(cherry picked from commit 71e6dfdaea)
2018-09-09 14:14:29 +01:00
Sarah Brofeldt
0a46d6f6b9 Merge pull request #46419 from srhb/backport-nix21-perl-bindings
nix.perl-bindings: Fix build in 18.09
2018-09-09 14:59:23 +02:00
Daniël de Kok
7d404b9103 cgit: use full path of groff in man2html
groff may not be installed system-wide or may be outside cgit's path
(e.g. when running cgit using uwsgi). As a result, the man2html filter
fails. Replace groff by its full path in man2html.

(cherry picked from commit bbcf5eb130)
2018-09-09 13:56:44 +01:00
Daiderd Jordan
b68bfbceab altcoins.btc1: fix darwin build (#46398)
Only hexdump was needed from utillinux which is also available on darwin
through the unixtools meta package.

(cherry picked from commit 4e282e295f)
2018-09-09 14:54:42 +02:00
Eelco Dolstra
ddd3d98ccc nix.perl-bindings: Fix build
(cherry picked from commit b06ad6199f)
2018-09-09 14:52:35 +02:00
Maximilian Bode
32a4cbc756 pythonPackages.tifffile: fix python 2 build (#46415)
(cherry picked from commit c020a59ccd)
2018-09-09 12:14:04 +02:00
Maximilian Bode
50bc216165 pythonPackages.CDDB: fix darwin build (#46412)
(cherry picked from commit 5b1b4adb2a)
2018-09-09 12:11:13 +02:00
Jan Malakhovski
69b6db0ec5 gpgme: use default texinfo
(cherry picked from commit 53c9efe9e5)
2018-09-09 12:05:37 +02:00
Jan Malakhovski
4ce4c247db git: use default texinfo
(cherry picked from commit 7705c76c49)
2018-09-09 12:05:37 +02:00
Samuel Dionne-Riel
97916acf08 texlive: Adds patch for missing synctex header. (#46376)
This seems like a known issue as other distributions (ArchLinux here)
have patches fixing the issue.

This hopefully fixes more than one dependant builds for ZHF 18.09.

(cherry picked from commit 1ac912bf1b)
2018-09-09 11:39:43 +02:00
Uli Baum
33e2a6dc9f Merge branch 'release-18.09' into staging-18.09 2018-09-09 11:39:09 +02:00
Maximilian Bode
17456d8082 pythonPackages.django-raster: fix build (#46413)
(cherry picked from commit dfcf07d9d3)
2018-09-09 11:35:29 +02:00
Yannik Sander
546fe710b1 build with pythonPackages
(cherry picked from commit 1245621497)
2018-09-08 18:18:31 -04:00
Matthew Bauer
d3a113eb3f rpcbind: remove placeholder 2018-09-08 17:03:49 -05:00
Matthew Bauer
ed948341ce Revert "Merge pull request #37693 from jtojnar/min-nix-two"
This reverts commit 4caab41c1b, reversing
changes made to 11dab7bd4a.
2018-09-08 17:02:10 -05:00
Matthew Bauer
f4bfc63727 Revert "nfs-utils: simplify code using placeholders"
This reverts commit 037d27ed00.
2018-09-08 17:00:33 -05:00
Matthew Bauer
02bb97e5bb Revert "nixos docs: add release notes for nix 2.0 requiremnt bump"
This reverts commit 18f9539655.
2018-09-08 16:57:46 -05:00
Matthew Bauer
891b025fc2 Revert "Nix minimal version: 1.11 -> 2.0"
This reverts commit 7d1968c0e3.
2018-09-08 16:56:57 -05:00
Matthew Bauer
01f75ae0fd xdg/mime.nix: ensure $out/share/mime/packages exists
For update-mime-database to work, you must have to have some mime
packages installed. In some DEs like XFCE this is not guaranteed to
happen. In that case just skip the update-mime-database call.

Fixes #46162
2018-09-08 16:55:48 -05:00
xeji
3ecacb1cb6 pythonPackages.persistent: fix build (#46364)
Documentation-related tests failed, the docs didn't build correctly
because of missing dependencies sphinx and manuel. Add them.

(cherry picked from commit 113f4d7b44)
2018-09-08 21:35:58 +02:00
Maximilian Bode
52a9286bcb pythonPackages.confluent-kafka: fix build (#46380)
cc #45960

(cherry picked from commit 73e75a7d16)
2018-09-08 21:32:36 +02:00
xeji
0817f94f76 cryptsetup: enable and fix tests (#46346)
Some tests use O_DIRECT which is filesystem dependent and fails in a
sandbox as well as on some filesystems without sandboxing.
Patch out O_DIRECT and disable the 4 test cases that still fail in a
sandbox. See discussion in #46151.

(cherry picked from commit 8c6cf3de3d)
2018-09-08 21:24:50 +02:00
Michael Raskin
f890192b9c Merge #46348: chromium: 68.0.3440.106 -> 69.0.3497.81
(cherry picked from commit 7c69ae6259)
2018-09-08 20:10:59 +02:00
Maximilian Bosch
a05c49a22f jbake: fix sandbox build (#46363)
See https://hydra.nixos.org/build/80999410

Without a sandbox the `checkPhase` breaks with the following error:

```
/nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux/setup: bin/jbake: /usr/bin/env: bad interpreter: No such file or directory
jbake did not return correct version
```

Running `patchShebangs` before fixes the issue.

Addresses #45960

(cherry picked from commit 6960a96a0c)
2018-09-08 15:21:30 +02:00
Graham Christensen
07cfc2fa56 Merge pull request #46343 from obsidiansystems/fix-46320
nixpkgs module: Fix defaulting of `localSystem` and `system` for 18.09
2018-09-08 09:16:56 -04:00
Tad Fisher
43c9869dc5 nixos/networkmanager: fix VPN plugin service definition targets (#46201)
(cherry picked from commit 56b3c5b2dd)
2018-09-08 14:36:35 +02:00
Maximilian Bosch
3be4b8afc3 chessx: fix build (#46359)
See https://hydra.nixos.org/build/80998335.

Upstream doesn't support QT 5.11 ATM which broke compilation:

```
src/dialogs/savedialog.cpp: In constructor ‘SaveDialog::SaveDialog(QWidget*, Qt::WindowFlags)’:
src/dialogs/savedialog.cpp:37:34: error: invalid use of incomplete type ‘class QButtonGroup’
     group = new QButtonGroup(this);
```

The Arch community recommends to use an older QT version to fix
this (https://aur.archlinux.org/packages/chessx/).

Furthermore the `QT_PLUGIN_PATH` wasn't set properly which broke the
runtime since QT coudln't find the `xcb` plugin:

```
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized.
Reinstalling the application may fix this problem.
```

Finally, some minor style fixes were made for consistent indentation.

Addresses #45960

(cherry picked from commit 37032db583)
2018-09-08 14:20:01 +02:00
Samuel Dionne-Riel
5fa7404db9 yabause: 0.9.14 -> 0.9.15 (#46353)
+ fixes for Qt 5.11 build.

(cherry picked from commit 2c751dcdc9)
2018-09-08 13:59:29 +02:00
Maximilian Bosch
4eaa7ef159 pythonPackages.pycaption: fix build (#46356)
The `beaitufulsoup4` package distributed by `nixpkgs` is now at `4.6.3`.

Additionally it fixes `gnomecaption` which depends on the broken
`pycaption` package.

See https://hydra.nixos.org/build/81000247
See https://hydra.nixos.org/build/80723223

Addresses #45960

(cherry picked from commit a02002deba)
2018-09-08 12:10:47 +02:00
worldofpeace
26d65faa62 mono-addins: fix build (#46354)
(cherry picked from commit 2031c0ebfe)
2018-09-08 10:07:44 +02:00
Bastian Köcher
0df87918e5 kdecoration-viewer: Fixes build (#46339)
(cherry picked from commit 0f8c58afd2)
2018-09-08 01:40:05 +02:00
Maximilian Bosch
0842915312 pythonPackages.trio: fix build (#46342)
Fixes the build for `python3Packages.trio' for the next ZHF iteration.
Please refer to the Hydra build for further reference: https://hydra.nixos.org/build/80617356

`python3Packages.sniffio` is needed for the build, otherwise the build
aborts with an error like this:

```
  Could not find a version that satisfies the requirement sniffio (from trio==0.6.0) (from versions: )
No matching distribution found for sniffio (from trio==0.6.0)
```

See #45960

(cherry picked from commit 218ac50fd4)
2018-09-08 01:05:14 +02:00
Timo Kaufmann
cc05d938f9 youtube-dl: fix youtube video download
(cherry picked from commit 8ef940a038)
2018-09-07 21:24:07 +02:00
Timo Kaufmann
441226d374 youtube-dl: 2018.08.28 -> 2018.09.01
(cherry picked from commit fa76f75c7b)
2018-09-07 21:24:05 +02:00
Timo Kaufmann
97577f0057 sage: fix numpy and scipy integration
(cherry picked from commit 7521f2863d)
2018-09-07 18:56:17 +02:00
Chris Ostrouchov
17e17700e2 pythonPackages.ncclient: refactor
adding selectors2 as dependency of ncclient. Added recently 20 days
ago in August. 8ef20f2828

(cherry picked from commit a726956b42)
2018-09-07 17:34:52 +02:00
Chris Ostrouchov
010fc6b762 pythonPackages.selectors2: init at 2.0.1
Added package becuase now dependency of ncclient.

(cherry picked from commit 11c3fe2258)
2018-09-07 17:34:52 +02:00
Michael Raskin
4a62ef0800 julia: readd julia_06 name, make julia an alias that selects a version, as we usually do for incompatible versions
(cherry picked from commit 0e4197b34b)
2018-09-07 15:57:32 +01:00
Daniël de Kok
4f475fee74 python2Packages.spacy_models: update all models to version 2.0.0 (#46182)
Update the model list to those models that are compatibly with the
latest spaCy version:

https://github.com/explosion/spacy-models/blob/master/compatibility.json

The updated model file evaluates to the following packages:

python2Packages.spacy_models.de_core_news_sm
python2Packages.spacy_models.en_core_web_lg
python2Packages.spacy_models.en_core_web_md
python2Packages.spacy_models.en_core_web_sm
python2Packages.spacy_models.en_vectors_web_lg
python2Packages.spacy_models.es_core_news_md
python2Packages.spacy_models.es_core_news_sm
python2Packages.spacy_models.fr_core_news_md
python2Packages.spacy_models.fr_core_news_sm
python2Packages.spacy_models.it_core_news_sm
python2Packages.spacy_models.nl_core_news_sm
python2Packages.spacy_models.pt_core_news_sm
python2Packages.spacy_models.xx_ent_wiki_sm
python3Packages.spacy_models.de_core_news_sm
python3Packages.spacy_models.en_core_web_lg
python3Packages.spacy_models.en_core_web_md
python3Packages.spacy_models.en_core_web_sm
python3Packages.spacy_models.en_vectors_web_lg
python3Packages.spacy_models.es_core_news_md
python3Packages.spacy_models.es_core_news_sm
python3Packages.spacy_models.fr_core_news_md
python3Packages.spacy_models.fr_core_news_sm
python3Packages.spacy_models.it_core_news_sm
python3Packages.spacy_models.nl_core_news_sm
python3Packages.spacy_models.pt_core_news_sm
python3Packages.spacy_models.xx_ent_wiki_sm

(cherry picked from commit d261df5fc1)
2018-09-07 13:00:14 +02:00
Christopher Ostrouchov
5974311abe pythonPackages.kubernetes: add missing dependency (#46179)
fix build issue from missing dependency `adal`. This is due to `adal`
being added as a dependency in July
23rd. 9afec55f4a (diff-b4ef698db8ca845e5845c4618278f29a)

(cherry picked from commit 66e1288962)
2018-09-07 11:26:36 +02:00
Christopher Ostrouchov
a16ba12a82 pythonPackages.ordered-set: add missing dependency (#46183)
missing dependency for doing tests (pytestrunner) added three months
ago June c0b9308988.

(cherry picked from commit 427e4910ec)
2018-09-07 09:29:43 +02:00
Christopher Ostrouchov
53b906236e pythonPackages.phonopy: refactor (#46161)
Fixing phonopy not building. Tests were moved on Jul 30.

(cherry picked from commit 6586765a8f)
2018-09-07 08:41:50 +02:00
Christopher Ostrouchov
1857e03ed4 pythonPackages.locustio: 0.8.1 -> 0.9.0 (#46191)
Fixing build issue. Additionally fetching from github becuase pypi
packge does not come with README which is a buildtime dependency.

(cherry picked from commit b5b48c0a91)
2018-09-07 08:39:17 +02:00
Christopher Ostrouchov
796c736318 pythonPackages.pyslurm: 20180604 -> 20180811 (#46187)
Update version to support latest version of slurm. Fixes since
previously did not build.

(cherry picked from commit b1d6d159aa)
2018-09-07 08:29:11 +02:00
Bas van Dijk
415b1be6b6 Merge pull request #46212 from vaibhavsagar/bump-all-cabal-hashes-18.09
all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z
2018-09-07 01:19:29 +02:00
Vladimír Čunát
ef96e79597 Merge branch 'staging-18.09' into release-18.09 2018-09-07 00:50:42 +02:00
Vaibhav Sagar
a55b95691b all-cabal-hashes: update snapshot to Hackage at 2018-09-04T11:59:40Z
(cherry picked from commit d376ceb6ff)
2018-09-06 17:27:30 -04:00
Graham Christensen
3d83234c08 Merge pull request #46192 from grahamc/nix-2.1-on-18.09
Nix 2.1 on 18.09
2018-09-06 15:44:49 -04:00
Graham Christensen
16188edaff Revert "Revert "nix-plugins: 4.0.5 -> 5.0.0.""
This reverts commit 5acc35215f.
2018-09-06 15:31:15 -04:00
Graham Christensen
e52cd2e27f Revert "Revert "nix: 2.1 -> 2.1.1""
This reverts commit 1e2124583d.
2018-09-06 15:31:14 -04:00
Graham Christensen
a385819d8f Revert "Revert "nix: 2.0.4 -> 2.1""
This reverts commit 7fba61a49c.
2018-09-06 15:31:12 -04:00
Graham Christensen
7fba61a49c Revert "nix: 2.0.4 -> 2.1"
This reverts commit 95a907b72b.

Premature, doesn't evaluate.
2018-09-06 15:30:05 -04:00
Graham Christensen
1e2124583d Revert "nix: 2.1 -> 2.1.1"
This reverts commit 4d33c0eea8.

Premature, doesn't evaluate.
2018-09-06 15:29:51 -04:00
Graham Christensen
5acc35215f Revert "nix-plugins: 4.0.5 -> 5.0.0."
This reverts commit 91e057d1b7.

Premature. Doesn't evaluate.
2018-09-06 15:29:45 -04:00
Shea Levy
91e057d1b7 nix-plugins: 4.0.5 -> 5.0.0.
Fixes build against nix 2.1.

(cherry picked from commit 56a605c8b9)
2018-09-06 15:27:27 -04:00
Eelco Dolstra
4d33c0eea8 nix: 2.1 -> 2.1.1
(cherry picked from commit 1510f324a3)
2018-09-06 15:26:14 -04:00
Eelco Dolstra
95a907b72b nix: 2.0.4 -> 2.1
(cherry picked from commit 347638ccfe)
2018-09-06 15:26:10 -04:00
Christopher Ostrouchov
b871c68e4d pythonPackages.jupyterlab_launcher: refactor (#46178)
jupyterlab_launcher does not support python version < 3.5. Disabled
for older versions

(cherry picked from commit 7bcc2870c7)
2018-09-06 20:41:14 +02:00
Jan Malakhovski
23da995a02 nixos/shells: fix indent everywhere
to comply with `doc/coding-conventions.xml`

(cherry picked from commit 8952375b48)
2018-09-06 20:32:40 +02:00
Tor Hedin Brønner
0cf3e0ba00 nixos/shells: avoid overriding the environment for child shells
A shared exported guard `__NIXOS_SET_ENVIRONMENT_DONE` is introduced that can
be used to prevent child shells from sourcing `system.build.setEnvironment`
the second time.

This fixes e.g. `nix run derivation` when run from e.g. ZSH through the console or
ssh. Before this Bash would resource the common environment resetting the `PATH`
environment variable.

We also export `system.build.setEnvironment` to `/etc/set-environment` making it
easy to reset the common environment with `. /etc/set-environment` when
needed and to grep for environment variables in `/etc` (which was the
motivation of #30418).

This reverts changes made in b00a3fc6fd
(the original #30418).

(cherry picked from commit d273db48c6)
2018-09-06 20:32:40 +02:00
John Ericson
e981546ab7 doc: Add release notes for top-level {build,host,target}Platform deprecation
I forgot to do this in e51f736076.

(cherry picked from commit f66257cfce)
2018-09-06 14:28:26 -04:00
Matthieu Coudron
efa7ab7f7f python3Packages.genanki: init at 0.6.0
Library to generate anki flashcards.

(cherry picked from commit 13050ccc0b)
2018-09-06 18:52:43 +02:00
Chris Ostrouchov
8167419324 pythonPackages.geopandas: 0.3.0 -> 0.4.0
Additionally fix issue with tests failing for 18.09 release.

Tests required url fetch. Disabled with "not web".

(cherry picked from commit 1d6fd65957)
2018-09-06 18:50:46 +02:00
Shea Levy
7f345622bc haskell.compiler.ghc861: Apply fix to abi-hash with backpack.
See https://phabricator.haskell.org/D5123.

(cherry picked from commit 06a3db6e5457b603f898cadc99351e7c27e368fd)
2018-09-06 11:40:57 -04:00
Shea Levy
328fc49235 ghc: Apply fix to abi-hash with backpack.
See https://phabricator.haskell.org/D5123.

(cherry picked from commit cbf194384f74033738de240cb4132d2d31985d01)
2018-09-06 11:40:47 -04:00
Alexander Biehl
f3ced683ba More conservative SCC tagging for Haskell libraries
`all-functions` corresponds to `-fprof-auto` which places an SCC on every binding. It is well known that SCCs hinder GHC from doing its optimization magic and really slows down profiled code to a point where the profiling reports are completely skewed towards things that were completely optimized away in production settings. Concretely this shows up with things like lenses which do not carry runtime overhead when properly simplified.

`exported-functions` corresponds to GHCs `-fprof-auto-exported` which doesn't put SCCs on `INLINE`d code and in turn doesn't influence simplification of this basic but important stuff.

(cherry picked from commit 3c70c4c6af75138565e6295cb801565e0a4b33e9)
2018-09-06 11:40:31 -04:00
Alex Biehl
f071c8b135 Haskell builder: Use $abi/$libname as --libsubdir
(cherry picked from commit a7d8800b1eaa4c4faa8a1dd48931f9374b6864aa)
2018-09-06 11:40:05 -04:00
Michael Raskin
e0404ef024 matrix-synapse: 0.33.3 -> 0.33.3.1
(cherry picked from commit 6ea0c3e271)
2018-09-06 16:58:14 +02:00
Sebastien Maret
0ba0f158ef gildas: add alternative url for the source code (#46145)
For each new release, the upstream developers of Gildas move the
source code of the previous release to a different directory. Add this
directory to the list of url to avoid build failure at each new
release.

(cherry picked from commit 5b58c6ac76)
2018-09-06 15:11:20 +01:00
John Ericson
813ed8fade Merge pull request #46149 from obsidiansystems/plain-system-host
top-level, stdenv: Make `system` and `stdenv.system` describe the hostPlatform for 18.09
2018-09-06 09:37:51 -04:00
John Ericson
5e3f2d4a95 Merge pull request #46146 from obsidiansystems/deprecate-top-level-platform-aliases
top-level: Deprecate top-level `{build,host,target}Platform` for 18.09
2018-09-06 08:11:16 -04:00
Matthieu Coudron
77a56c9e56 pythonPackages.alot: install zsh completion
(cherry picked from commit 97816bed33)
2018-09-06 11:28:33 +01:00
Ashley Gillman
cec33e25d6 python.pkgs.nipype: Futures is python 2 only. Also fix building.
(cherry picked from commit 12c0dd5432)
2018-09-06 10:48:41 +01:00
Chris Ostrouchov
eedff96832 pythonPackages.pymatgen: 2018.8.10 -> 2018.9.1
Also 2018.8.10 does not build in previous state because auto updating
from pypi did not account for a new requirement `networkx`. This has
been added.

(cherry picked from commit 63cf879d6c)
2018-09-06 10:34:56 +01:00
Matthieu Coudron
caf9d779d7 khal: add zsh completion
(cherry picked from commit 61df695f65)
2018-09-06 09:50:57 +01:00
Vladimír Čunát
5381f0c2f7 Merge branch 'release-18.09' into staging-18.09 2018-09-06 09:53:44 +02:00
Vladimír Čunát
f03d1058d9 Merge #46075: texinfoInteractive: fix for new perl
(cherry picked from commit b5bd566172)
2018-09-06 09:16:48 +02:00
Tim Steinbach
6f3bd5db2f linux: Remove 4.17
(cherry picked from commit f89d6d92b7)
2018-09-05 21:03:18 -04:00
Uli Baum
5b82747057 gnu-smalltalk: fix build
disable format hardening

(cherry picked from commit e5d9c16f2a)
2018-09-05 23:47:05 +01:00
Jörg Thalheim
e207071779 iana-etc: 20180711 -> 20180905 2018-09-05 22:57:52 +01:00
Robert Schütz
76b654c4d5 python.pkgs.py3status: fix build
(cherry picked from commit 041043420f)
2018-09-05 23:36:57 +02:00
Maximilian Bosch
a015527b1b nixos/activation: fix activation script for non-POSIX shells (#46042)
This fixes an issue with shells like fish that are not fully POSIX
compliant. The syntax `ENV=val cmd' doesn't work properly in there.

This issue has been addressed in #45932 and #45945, however it has been
recommended to use a single shell (`stdenv.shell' which is either
`bash' or `sh') to significantly reduce the maintenance overload in the
future.

See https://github.com/NixOS/nixpkgs/issues/45897#issuecomment-417923464

Fixes #45897

/cc @FRidh @xaverdh @etu

(cherry picked from commit df05618f2a)
2018-09-05 22:50:03 +02:00
xeji
a6e2a55611 nixos/tests/opensmtpd: prevent non-deterministic failure (#46071)
A sporadic failure occured on Hydra because a request was sent
to smtpd after the systemd unit was started, but before the daemon
was actually listening. Fix by checking for open ports first.

(cherry picked from commit f70dc57ad3)
2018-09-05 22:36:38 +02:00
Jethro Kuan
c3796a7d1b pythonPackages.tflearn: 0.2.1 -> 0.3.2 (#46102)
(cherry picked from commit a9a380b259)
2018-09-05 17:39:17 +01:00
John Ericson
d3cc8c6b1d Merge pull request #46105 from obsidiansystems/trace-to-warn
stdenv, neovim: Use `lib.warn` for deprecation warnings for 18.09
2018-09-05 11:54:41 -04:00
Timo Kaufmann
79b736ef42 spotify: 1.0.88.353.g15c26ea1-14 -> 1.0.83.316.ge96b6e67-5
The recent update is broken. Playing a song causes spotify to segfault.
This is probably
https://community.spotify.com/t5/Desktop-Linux/Segfault-with-the-new-update/td-p/4554830#,
which was recognized by upstream and will hopefully be fixed soon.

(cherry picked from commit d89b1f0fbf)
2018-09-05 17:36:41 +02:00
Vladyslav Mykhailichenko
7357961cf4 wireguard: 0.0.20180809 -> 0.0.20180904
(cherry picked from commit 4cd94bb5b8)
2018-09-05 16:08:37 +01:00
xeji
3f70d89181 statsd: mark broken, disable nixos test (#46097)
It's broken with node v8 and the upstream project is dead
(last commit Nov. 2016), see #45946 and
https://github.com/etsy/statsd/issues/646

(cherry picked from commit ba52f4cb76)
2018-09-05 16:49:05 +02:00
Daniël de Kok
e36e682d08 pythonPackages.thinc: fix darwin build (#46092)
thinc uses Accelerate on macOS as a blas library. Add the necessary
dependencies to allow building on unsandboxed Darwin machines.

(cherry picked from commit 348a153781)
2018-09-05 16:23:26 +02:00
Daniël de Kok
dd6d9aecca python[23]Packages.mxnet: fix build
Relax graphviz, numpy, requests dependency version bounds.

(cherry picked from commit e57e92bfa2)
2018-09-05 16:10:54 +02:00
Daniël de Kok
81b8016e39 python[23]Packages.graphviz: 0.5.2 -> 0.9
(cherry picked from commit 19ac917707)
2018-09-05 16:10:54 +02:00
Daniël de Kok
e2baf6a7bb mxnet: fix library dependencies.
- mxnet now builds the open source MKL DNN library. However, this
  was not included with the build.
- mxnet builds its own OpenMP library, even when OpenMP is provided
  by the system. This leads to problems, so remove the included
  OpenMP implementation:

  https://github.com/apache/incubator-mxnet/pull/12160

(cherry picked from commit 590ce7d1ae)
2018-09-05 16:10:54 +02:00
Sebastien Maret
d23bc7fc56 gildas: ignore clang warnings for unused command line arguments
See #46044

(cherry picked from commit b76cf0b54c)
2018-09-05 16:04:47 +02:00
Sebastien Maret
38f590a034 gildas: fix makefile rule
(cherry picked from commit 3bc898035d)
2018-09-05 16:04:47 +02:00
Tim Steinbach
6f01302d9e linux: 4.18.5 -> 4.18.6
(cherry picked from commit 25cad43f85)
2018-09-05 08:24:17 -04:00
Tim Steinbach
b232cee0c3 linux: 4.14.67 -> 4.14.68
(cherry picked from commit de9a2fd061)
2018-09-05 08:24:17 -04:00
Tim Steinbach
2bb649fd65 linux: 4.9.124 -> 4.9.125
(cherry picked from commit 92010b7a88)
2018-09-05 08:24:17 -04:00
Tim Steinbach
6db1351f15 linux: 4.4.153 -> 4.4.154
(cherry picked from commit f685edba08)
2018-09-05 08:24:17 -04:00
Urban Skudnik
96ae9a3522 restic: Fix autocomplete for zsh
zsh requires for files to be prepended with underscore to be
recognized as widgets, see [1] for more details.

[1] https://github.com/NixOS/nixpkgs/pull/46001#issuecomment-418567160

(cherry picked from commit e9fe3a334b)
2018-09-05 10:42:46 +01:00
Daniël de Kok
e928fd9f33 spacy: relax dependency versions
(cherry picked from commit da8475736e)
2018-09-05 10:35:42 +01:00
Daniël de Kok
7888e2602e thinc: relax dependency version requirements
(cherry picked from commit ffb094f939)
2018-09-05 10:35:42 +01:00
Vladimír Čunát
cba0654682 Merge #46047: ghostscript: 9.22 -> 9.24 (security)
(cherry picked from commit 281a629c2a)
2018-09-05 11:15:16 +02:00
Samuel Dionne-Riel
dea9a04ae6 qtkeychain: Fixes Qt4 build. (#46085)
(cherry picked from commit c59d9d371e)
2018-09-05 09:29:39 +02:00
Samuel Dionne-Riel
dd1afaab7d solarus-quest-editor: 1.4.5 -> 1.5.3
(cherry picked from commit 455f8151fd)
2018-09-05 08:54:42 +02:00
Samuel Dionne-Riel
508608d572 solarus: 1.4.5 -> 1.5.3
(cherry picked from commit 83a0d5d013)
2018-09-05 08:54:24 +02:00
Samuel Dionne-Riel
f8585bb4d5 qmapshack: 1.11.1 -> 1.12.0 (#46084)
(cherry picked from commit a394d08f11)
2018-09-05 08:39:57 +02:00
Samuel Dionne-Riel
85a10bcdd2 qtchan: Fixes build from Qt upgrade. (#46082)
Uses an upstream fix.

(cherry picked from commit 7ec9a333df)
2018-09-05 08:24:21 +02:00
Sarah Brofeldt
3e87977e38 go_1_11: Allow only one of GOARM={5,6,7}
(cherry picked from commit e153a988ec)
Backport of #46031 to release-18.09
2018-09-05 01:05:58 +02:00
Andreas Rammhold
2c844ce13a python.pkgs.pytest-fixture-config: disable tests (#46021)
Tests seem to fail on all recent versions even outside of our build
system. The upstream CI tests seem to somehow succeed but I wasn't able
to reproduce that locally. For not it is probably best to disable them.

(cherry picked from commit d814c98ec8)
2018-09-05 01:03:07 +02:00
Orivej Desh
b25eb04b03 swift-im: fix build with Qt 5.11 and split QtWebKit
(cherry picked from commit 205f3e941a)
2018-09-04 21:52:05 +00:00
Orivej Desh
ebaaaf693e psi-plus: 1.2.235 -> 1.3.410
(cherry picked from commit 6767396e38)
2018-09-04 21:51:56 +00:00
Orivej Desh
375234df52 libsignal-protocol-c: init at 2.3.2
(cherry picked from commit 2e0befd22e)
2018-09-04 21:51:45 +00:00
Orivej Desh
90d0fdaa4d psi: specify license (#43716)
(cherry picked from commit 0f1125975a)
2018-09-04 21:51:30 +00:00
worldofpeace
ac690fc18d dbus-sharp-2_0: fix build (#46060)
(cherry picked from commit 33fa23f6b3)
2018-09-04 23:38:37 +02:00
Will Dietz
6c449eb729 zsh: 5.5.1 -> 5.6 (#46052)
Security, see:

https://github.com/zsh-users/zsh/blob/zsh-5.6/NEWS#L7
(cherry picked from commit 59f5a65e72)

Backported because it contains a CVE fix
2018-09-04 23:33:29 +02:00
Uli Baum
1ee95ca8c9 nixos/tests/novacomd: prevent non-deterministic failure
A sporadic failure occured on Hydra because a request was sent
to the daemon after the systemd unit was started, but before the
daemon was actually listening. Fix by checking for open port first.

(cherry picked from commit 62086c6be6)
2018-09-04 23:20:56 +02:00
Tim Steinbach
d38c50caf4 oh-my-zsh: 2018-07-29 -> 2018-09-03
(cherry picked from commit 98ef33ec74)
2018-09-04 16:20:17 -04:00
symphorien
94b8a71dc3 sound-juicer: fix build (#46051)
(cherry picked from commit 16e776fde7)
2018-09-04 21:16:34 +02:00
Uli Baum
11c2595e40 boost: fix faulty cherry-pick in c70ff28
the change in c70ff28 accidentally ended up in the wrong line
2018-09-04 18:28:46 +02:00
Stephen
c70ff28968 boost: disable python explicitly in b2Args (#45679)
fixes the build of boost_162

(cherry picked from commit 775d1ecf57)
2018-09-04 18:23:33 +02:00
Uli Baum
8fb90de88c systemd: don't use options from fstab on remount
Include fix by @aszlig to fix remount with comment/application-specific
fstab options.

(cherry picked from commit 03c1f567d5)
2018-09-04 13:03:32 +02:00
Uli Baum
f3ed8122dc texlive: add IPFS URL for package source snapshot
(cherry picked from commit 20d88c1a4b)
2018-09-04 12:59:20 +02:00
Uli Baum
b9a33159b6 biber: 2.10 -> 2.11
2.11 is the version used in TexLive 2018

(cherry picked from commit 5c9ebf4fc7)
2018-09-04 12:59:20 +02:00
Uli Baum
6ce6f557ce texlive.bin.core-big: disable luatex53
build failed on Darwin
Patch by @veprbl

(cherry picked from commit 831551a9a1)
2018-09-04 12:59:20 +02:00
Uli Baum
1fab25f991 texlive.bin.core-big: remove unneeded compiler flags
(cherry picked from commit ac03d2e571)
2018-09-04 12:59:20 +02:00
Uli Baum
1ab0bd7190 texlive: add detailed upgrade instructions in separate file
(cherry picked from commit 2737f17d38)
2018-09-04 12:59:19 +02:00
Uli Baum
1bec29aec6 texlive-packages: snapshot 2017-final -> 20180827
and use fixed hashes

(cherry picked from commit f3961e5dae)
2018-09-04 12:59:19 +02:00
Uli Baum
292413f567 texlive: make packages fixed-output derivations
This reverts a part of the changes made in #40826.
Fixed-output derivations save time and space on rebuilds.

(cherry picked from commit 738bae4ec2)
2018-09-04 12:59:19 +02:00
Uli Baum
d2c300b757 texlive: update server URLs
(cherry picked from commit d5816c9bcb)
2018-09-04 12:59:19 +02:00
Uli Baum
0bf565747f texlive.bin: 20170524 -> 20180414
(cherry picked from commit 149b180f18)
2018-09-04 12:59:19 +02:00
Uli Baum
17bcaf17f7 poppler_min: 0.61 -> 0.67
currently only used for texlive

(cherry picked from commit c52174030e)
2018-09-04 12:59:18 +02:00
Timo Kaufmann
6f8e07ac0f Merge #46016: openblas: fix pkg-config alias name
(cherry picked from commit a774988e44)
2018-09-04 12:11:35 +02:00
Daniël de Kok
4b666f1118 mxnet: 1.1.0 -> 1.2.1 (#46026)
Update and fix the build:

- Perl is a build-time requirement.
- Fix hardcoded /bin/bash invocation.

(cherry picked from commit 93a5947158)
2018-09-04 11:38:35 +02:00
Daniël de Kok
b4479796e3 vowpalwabbit: mark broken on aarch64.
(cherry picked from commit 69d418aeac)
2018-09-04 08:59:28 +02:00
Daniël de Kok
07ec5b577b vowpal-wabbit: fix Darwin build.
- Follow the same logic for finding boost-python as for Linux.
- Set DYLD_LIBRARY_PATH so that ctypes find_library can find
  boost-python.
- Do not use '-mt' suffix when linking against boost-serialization
  and boost-program_options on Darwin.

(cherry picked from commit fe7e89ba3b)
2018-09-04 08:59:28 +02:00
Daniël de Kok
8f33594a10 vowpalwabbit: fix build against boost-python.
Patch setup.py to look for libboost_python{Major}{Minor}.

(cherry picked from commit 875bb6bcb9)
2018-09-04 08:59:28 +02:00
John Ericson
46f4a934dc Merge pull request #46024 from Ericson2314/fix-45993
mkDerivation: Fix cross compilation for 18.09
2018-09-04 01:29:10 -04:00
markuskowa
a2aacb218c gnss-sdr: set boost version to 1.66 (#46014)
(cherry picked from commit 7c915abd52)
2018-09-04 00:21:22 +02:00
Daniël de Kok
d0182e0917 magit-todos: fix build by providing git as input. (#45999)
magit-todos requires git during builds. Fixes #45868.

(cherry picked from commit 9d6ff38f70)
2018-09-03 23:43:17 +02:00
symphorien
f391f6fe73 gede: 2.6.1 -> 2.10.9 (#45995)
reverting to qt 5.9 fixed the build.

(cherry picked from commit 3549879b45)
2018-09-03 23:25:08 +02:00
Dmitry Kalinkin
6c988bce77 Revert "arrow-cpp: 0.9.0 -> 0.10.0" (#45991)
Hold off the upgrade until parquet 1.5.0 is released.

This reverts commit 72d630779d.

(cherry picked from commit 992d64bf3e7210185e7145014bfc63f9b3719a9f)
2018-09-03 22:44:54 +02:00
Vladyslav M
05c52a7afb ion: broken on darwin (#46010)
(cherry picked from commit 8954c1f719)
2018-09-03 22:38:51 +02:00
aanderse
427ac1a21a kodi: fix nfs support (#46006)
libnfs is required to be in the LD_LIBRARY_PATH for kodi if you want nfs support 
see: https://www.reddit.com/r/NixOS/comments/9aiquo/how_to_enable_nfs_support_in_kodi/

(cherry picked from commit 435eccf15e)
2018-09-03 22:34:12 +02:00
worldofpeace
00a43c05d9 photoflow: mark broken for aarch64
(cherry picked from commit 507dfccdf8)
2018-09-03 22:29:53 +02:00
worldofpeace
d22277b59d sayonara: 1.0.0-git5-20180115 -> 1.1.1-git1-20180828
(cherry picked from commit 3149f84a92)
2018-09-03 22:29:52 +02:00
worldofpeace
2aab2027be photoflow: 2018-03-06 -> 2018-08-28
(cherry picked from commit a3db67282d)
2018-09-03 22:29:52 +02:00
worldofpeace
46733c68f9 imgcat: fix build
(cherry picked from commit 66385a66dc)
2018-09-03 22:29:52 +02:00
worldofpeace
c5c046907d amule: fix build
(cherry picked from commit 9069908680)
2018-09-03 22:29:52 +02:00
worldofpeace
e36aa2dd95 xfce4-mixer: fix build
(cherry picked from commit 6ed0823e15)
2018-09-03 22:29:51 +02:00
worldofpeace
74dfea0922 SkypeExport: fix build
(cherry picked from commit 451e04fb4d)
2018-09-03 22:29:51 +02:00
worldofpeace
2fd6a4a224 valadoc: fix build
(cherry picked from commit f828bb313b)
2018-09-03 22:29:51 +02:00
volth
f370254427 perlPackages.TestAggregate: broken with perl 5.26+ (#46003)
(cherry picked from commit c36bfa7211)
2018-09-03 22:05:18 +02:00
volth
414202cd18 perlPackages.UNIVERSALref: broken with perl 5.26+
(cherry picked from commit 9173c37e05)
2018-09-03 21:04:24 +01:00
Daniël de Kok
08a86afbb7 Keras: fix build by updating expected dependencies. (#45992)
Keras expects keras_preprocessing 1.0.2 and 1.0.4. 1.0.3 and 1.0.5
are respectively in nixpkgs.

ZHF #45960

(cherry picked from commit e33be2ab56)
2018-09-03 22:00:08 +02:00
Uli Baum
4c00a04f47 Revert "[cpan2nix] perlPackages.GetoptLongDescriptive: 0.102 -> 0.103"
It broke perlPackages.MouseXGetOpt

This reverts commit ad47c381bd.

(cherry picked from commit 9889c0f241)
2018-09-03 21:54:21 +02:00
Elis Hirwing
d7cd099d6f gitea: 1.5.0 -> 1.5.1 (#45968)
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.5.1
(cherry picked from commit fcccb9e5ca)
2018-09-03 20:30:48 +02:00
Tim Steinbach
c0bde692f6 kernel: Remove Copperhead
The patches are unmaintained and suggest a false sense of security

(cherry picked from commit 5fccac2b8d)
2018-09-03 11:19:10 -04:00
Vladimír Čunát
e185954cf9 treewide: fix various links (homepage, src)
(cherry picked from commit 9b48a67731)
2018-09-03 16:55:08 +02:00
Vladimír Čunát
ad8c446c20 aefs: fix meta.homepage
(cherry picked from commit 0d388e1bb6)
2018-09-03 16:30:35 +02:00
Vladimír Čunát
347e4c26f0 Merge #45974: purple-matrix: 2016-07-11 -> 2018-08-02
(cherry picked from commit 956790acaf)
2018-09-03 16:16:01 +02:00
Vladimír Čunát
2ba2f91a7f knot-dns: 2.7.1 -> 2.7.2
https://lists.nic.cz/pipermail/knot-dns-users/2018-August/001423.html
(cherry picked from commit 0a5b8ef8c4)
2018-09-03 14:41:00 +02:00
Vladimír Čunát
efe9acb17f tarball job: more --show-trace
Without that I couldn't well do the parent commit.

(cherry picked from commit 8d7439eb19)
2018-09-03 14:29:16 +02:00
Vladimír Čunát
102e0168dd lib/trivial.nix: fix missing parens
Broken in 62dca7c9a; the tricky thing is that it depends on nix version.

(cherry picked from commit 608730af44)
2018-09-03 14:29:12 +02:00
Domen Kožar
e62269f3c8 nix-prefetch-git: needs findutils as it depends on find/xargs
(cherry picked from commit 66d6e847bb)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-09-03 13:23:41 +01:00
Christian Kauhaus
1845c6e3f7 poppler 0.61: patch against CVE-2018-13988 (#45916)
Out of bounds vulnerability in versions up to 0.62.

Generally, we use a newer poppler version but some pkgs still depend on
0.61. Patch named in https://nvd.nist.gov/vuln/detail/CVE-2018-13988.

(cherry picked from commit 542a86037d)
2018-09-03 08:56:35 +02:00
Uli Baum
4d0a22db7f nixos/release.nix: fix eval of closures
missing parentheses

cc: @samueldr
2018-09-03 08:55:58 +02:00
Samuel Dionne-Riel
0d8c216dd2 nixos: Sets channel and version for 18.09 2018-09-02 21:58:13 -04:00
aszlig
ee2463cd71 nixos: Document option description changes
This adds a release notes entry to make users (and especially
developers) aware so they no longer need to use </para><para> in option
descriptions as this is now done automatically on every two consecutive
newlines.

More details can be found in the commit message of f865d0feab.

Signed-off-by: aszlig <aszlig@nix.build>
(cherry picked from commit 4652f2f87e)
2018-09-03 01:15:18 +02:00
aszlig
0d3cfcb958 nixos: Split paras by \n\n in option descriptions
What annoyed me for a long time was the fact, that in order to break
into a new paragraph, you need to insert </para><para> in the
description attribute of an option.

Now we will automatically create <para/> elements for every block that
is separated by two consecutive newlines.

I first tried to do this within options-to-docbook.xsl, but it turns
out[1] that this isn't directly possible with XSLT 1.0, so I added
another XSLT file that postprocesses the option descriptions that are
now enclosed in <nixos:option-description/> by options-to-docbook.xsl.

The splitting itself is a bit more involved, because we can't simply
split on every \n\n because we'd also split text nodes of elements, for
example:

  <screen><![CDATA[

    one line

    another one

  ]]></screen>

This would create one <para/> element for "one line" and another for
"another line", which we obviously don't want because <screen/> is used
to display verbatim contents of what a user is seeing on the screen.

So what we do instead is splitting *only* the top-level text nodes
within the outermost <para/> and leave all elements as-is. If there are
more than one <para/> elements at the top-level, we simply don't process
it at all, because the description then already contains </para><para>.

https://www.mhonarc.org/archive/html/xsl-list/2012-09/msg00319.html

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @edolstra, @domenkozar
(cherry picked from commit f865d0feab)
2018-09-02 18:31:36 -04:00
38740 changed files with 930003 additions and 3569843 deletions

8
.dir-locals.el Normal file
View File

@@ -0,0 +1,8 @@
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((nil
(bug-reference-bug-regexp . "\\(\\(?:[Ii]ssue \\|[Ff]ixe[ds] \\|[Rr]esolve[ds]? \\|[Cc]lose[ds]? \\|[Pp]\\(?:ull [Rr]equest\\|[Rr]\\) \\|(\\)#\\([0-9]+\\))?\\)")
(bug-reference-url-format . "https://github.com/NixOS/nixpkgs/issues/%s"))
(nix-mode
(tab-width . 2)))

View File

@@ -1,5 +1,5 @@
# EditorConfig configuration for nixpkgs
# https://EditorConfig.org
# http://EditorConfig.org
# Top-most EditorConfig file
root = true
@@ -11,97 +11,18 @@ 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}]
# Match nix/ruby/docbook files, set indent to spaces with width of two
[*.{nix,rb,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}]
# Match shell/python/perl scripts, set indent to spaces with width of four
[*.{sh,py,pl}]
indent_style = space
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
[lib/tests/*.plist]
indent_style = tab
insert_final_newline = unset
# Match diffs, avoid to trim trailing whitespace
[*.{diff,patch}]
trim_trailing_whitespace = false

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

2
.gitattributes vendored
View File

@@ -1,6 +1,4 @@
**/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

311
.github/CODEOWNERS vendored
View File

@@ -6,70 +6,31 @@
#
# 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 @edolstra @nbp
/lib/systems @nbp @ericson2314
/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
/default.nix @nbp
/pkgs/top-level/default.nix @nbp @Ericson2314
/pkgs/top-level/impure.nix @nbp @Ericson2314
/pkgs/top-level/stage.nix @nbp @Ericson2314
/pkgs/stdenv/generic @Ericson2314
/pkgs/stdenv/cross @Ericson2314
/pkgs/build-support/cc-wrapper @Ericson2314 @orivej
/pkgs/build-support/bintools-wrapper @Ericson2314 @orivej
/pkgs/build-support/setup-hooks @Ericson2314
# NixOS Internals
/nixos/default.nix @nbp @infinisil
/nixos/lib/from-env.nix @nbp @infinisil
/nixos/lib/eval-config.nix @nbp @infinisil
/nixos/default.nix @nbp
/nixos/lib/from-env.nix @nbp
/nixos/lib/eval-config.nix @nbp
/nixos/doc/manual/configuration/abstractions.xml @nbp
/nixos/doc/manual/configuration/config-file.xml @nbp
/nixos/doc/manual/configuration/config-syntax.xml @nbp
@@ -83,238 +44,56 @@
/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
/maintainers/scripts/update-python-libraries @FRidh
/pkgs/top-level/python-packages.nix @FRidh
/pkgs/development/interpreters/python @FRidh
/pkgs/development/python-modules @FRidh
/doc/languages-frameworks/python.md @FRidh
# 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
/pkgs/development/compilers/ghc @peti @ryantm @basvandijk
/pkgs/development/haskell-modules @peti @ryantm @basvandijk
/pkgs/development/haskell-modules/default.nix @peti @ryantm @basvandijk
/pkgs/development/haskell-modules/generic-builder.nix @peti @ryantm @basvandijk
/pkgs/development/haskell-modules/hoogle.nix @peti @ryantm @basvandijk
# R
/pkgs/applications/science/math/R @jbedo
/pkgs/development/r-modules @jbedo
/pkgs/applications/science/math/R @peti
/pkgs/development/r-modules @peti
# Ruby
/pkgs/development/interpreters/ruby @marsam
/pkgs/development/ruby-modules @marsam
/pkgs/development/interpreters/ruby @zimbatm
/pkgs/development/ruby-modules @zimbatm
# 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
/pkgs/development/compilers/rust @Mic92 @LnL7
# C compilers
/pkgs/development/compilers/gcc @matthewbauer
/pkgs/development/compilers/llvm @matthewbauer @RaitoBezarius
# Darwin-related
/pkgs/stdenv/darwin @NixOS/darwin-maintainers
/pkgs/os-specific/darwin @NixOS/darwin-maintainers
# 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
# Beam-related (Erlang, Elixir, LFE, etc)
/pkgs/development/beam-modules @gleber
/pkgs/development/interpreters/erlang @gleber
/pkgs/development/interpreters/lfe @gleber
/pkgs/development/interpreters/elixir @gleber
/pkgs/development/tools/build-managers/rebar @gleber
/pkgs/development/tools/build-managers/rebar3 @gleber
/pkgs/development/tools/erlang @gleber
# Jetbrains
/pkgs/applications/editors/jetbrains @edwtjo
# Licenses
/lib/licenses.nix @alyssais
# Eclipse
/pkgs/applications/editors/eclipse @rycee
# https://github.com/NixOS/nixpkgs/issues/31401
/lib/licenses.nix @ghost
# 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

52
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,52 @@
# 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 commit messages in the following way:
```
(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc)
(Motivation for change. Additional information.)
```
Examples:
* nginx: init at 2.0.1
* firefox: 54.0.1 -> 55.0
* 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 capitalized.
* Not start with the package name.
* Not have a period at the end.
* `meta.license` must be set and fit the upstream license.
* If there is no upstream license, `meta.license` should default to `stdenv.lib.licenses.unfree`.
* `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) and on how to [submit changes to nixpkgs](https://nixos.org/nixpkgs/manual/#chap-submitting-changes).
## 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.
For package version upgrades and such a one-line commit message is usually sufficient.
## 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,5 @@
## Technical details
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the
results.

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,20 @@
###### 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.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` 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
- [ ] macOS
- [ ] other Linux distributions
- [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- [ ] 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/`)
- [ ] Determined the impact on package closure size (by running `nix path-info -S` before and after)
- [ ] 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>

View File

@@ -1 +1 @@
23.05
18.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).

11
COPYING
View File

@@ -1,4 +1,4 @@
Copyright (c) 2003-2023 Eelco Dolstra and the Nixpkgs/NixOS contributors
Copyright (c) 2003-2018 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,12 @@ 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.). 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.

146
README.md
View File

@@ -1,119 +1,41 @@
<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="https://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>
[![Code Triagers Badge](https://www.codetriage.com/nixos/nixpkgs/badges/users.svg)](https://www.codetriage.com/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](https://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 https://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-18.09` for the latest
release and `nixos-unstable` for the latest successful build of master:
# Community
```
% git remote update channels
% git rebase channels/nixos-18.09
```
For pull-requests, please rebase onto nixpkgs `master`.
[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/)
* [Community maintained wiki](https://nixos.wiki/)
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for 18.09 release](https://hydra.nixos.org/jobset/nixos/release-18.09)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for 18.09 release](https://hydra.nixos.org/job/nixos/release-18.09/tested#tabs-constituents)
Communication:
* [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.)
# 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/).
* [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)
* [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)
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).
# 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.
* [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)

View File

@@ -14,11 +14,11 @@ if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.
- 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
curl 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}.
${toString ./doc/manual/release-notes}.
If you need further help, see https://nixos.org/nixos/support.html
''

10
doc/.gitignore vendored
View File

@@ -1,11 +1,7 @@
*.chapter.xml
*.section.xml
.version
functions/library/generated
functions/library/locations.xml
highlightjs
manual-full.xml
out
result
result-*
media
manual-full.xml
highlightjs
functions/library/locations.xml

View File

@@ -1,37 +1,16 @@
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
MD_TARGETS=$(addsuffix .xml, $(basename $(wildcard ./*.md ./**/*.md)))
.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
format:
find . -iname '*.xml' -type f -print0 | xargs -0 -I{} -n1 \
xmlformat --config-file "$$XMLFORMAT_CONFIG" -i {}
.PHONY: fix-misc-xml
fix-misc-xml:
@@ -40,80 +19,86 @@ fix-misc-xml:
.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
rm -f ${MD_TARGETS} .version manual-full.xml functions/library/locations.xml
rm -rf ./out/ ./highlightjs
.PHONY: validate
validate: manual-full.xml doc-support/result
jing doc-support/result/docbook.rng manual-full.xml
validate: manual-full.xml
jing "$$RNG" manual-full.xml
out/html/index.html: doc-support/result manual-full.xml style.css highlightjs
out/html/index.html: manual-full.xml style.css highlightjs
mkdir -p out/html
xsltproc \
xsltproc ${xsltFlags} \
--nonet --xinclude \
--output $@ \
doc-support/result/xhtml.xsl \
"$$XSL/docbook/xhtml/docbook.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/
cp "$$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 \
xsltproc ${xsltFlags} --nonet \
--output out/epub/scratch/ \
doc-support/result/epub.xsl \
"$$XSL/docbook/epub/docbook.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/
cp "$$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
highlightjs:
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/
cp -r "$$HIGHLIGHTJS/highlight.pack.js" highlightjs/
cp -r "$$HIGHLIGHTJS/LICENSE" highlightjs/
cp -r "$$HIGHLIGHTJS/mono-blue.css" highlightjs/
cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml *.xml **/*.xml **/**/*.xml
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
.version: doc-support/result
ln -rfs ./doc-support/result/version .version
.version:
nix-instantiate --eval \
-E '(import ../lib).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
functions/library/locations.xml:
nix-build ./lib-function-locations.nix \
--out-link ./functions/library/locations.xml
%.section.xml: %.section.md
$(PANDOC) $^ -t docbook \
$(pandoc_flags) \
-o $@
pandoc $^ -w docbook+smart \
-f markdown+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|\(<[^ ]* \)|\1xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" |' \
| cat > $@
%.chapter.xml: %.chapter.md
$(PANDOC) $^ -t docbook \
pandoc $^ -w docbook+smart \
--top-level-division=chapter \
$(pandoc_flags) \
-o $@
-f markdown+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|' \
| cat > $@

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 = lib.importJSON (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.

922
doc/coding-conventions.xml Normal file
View File

@@ -0,0 +1,922 @@
<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>. Note, this rule does not apply to
package attribute names, which instead follow the rules in
<xref linkend="sec-package-naming"/>.
</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. Typically this is called the
<emphasis>package attribute name</emphasis>. 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 or camel cased — e.g.,
<varname>http-parser</varname> instead of <varname>http_parser</varname>
or <varname>httpParser</varname>. The hyphenated style is preferred in
all three package names.
</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 intended 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>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
guideline 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>
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>
<para>
Otherwise, you can add a <literal>.patch</literal> file to the
<literal>nixpkgs</literal> repository. In the interest of keeping our
maintenance burden to a minimum, only patches that are unique to
<literal>nixpkgs</literal> should be added in this way.
</para>
<para>
<programlisting>
patches = [ ./0001-changes.patch ];
</programlisting>
</para>
<para>
If you do need to do create this sort of patch file, one way to do so is
with git:
<orderedlist>
<listitem>
<para>
Move to the root directory of the source code you're patching.
<screen>
$ cd the/program/source</screen>
</para>
</listitem>
<listitem>
<para>
If a git repository is not already present, create one and stage all of
the source files.
<screen>
$ git init
$ git add .</screen>
</para>
</listitem>
<listitem>
<para>
Edit some files to make whatever changes need to be included in the
patch.
</para>
</listitem>
<listitem>
<para>
Use git to create a diff, and pipe the output to a patch file:
<screen>
$ git diff > nixpkgs/pkgs/the/package/0001-changes.patch</screen>
</para>
</listitem>
</orderedlist>
</para>
</section>
</chapter>

509
doc/configuration.xml Normal file
View File

@@ -0,0 +1,509 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-packageconfig">
<title>Global configuration</title>
<para>
Nix comes with certain defaults about what packages can and cannot be
installed, based on a package's metadata. By default, Nix will prevent
installation if any of the following criteria are true:
</para>
<itemizedlist>
<listitem>
<para>
The package is thought to be broken, and has had its
<literal>meta.broken</literal> set to <literal>true</literal>.
</para>
</listitem>
<listitem>
<para>
The package isn't intended to run on the given system, as none of its
<literal>meta.platforms</literal> match the given system.
</para>
</listitem>
<listitem>
<para>
The package's <literal>meta.license</literal> is set to a license which is
considered to be unfree.
</para>
</listitem>
<listitem>
<para>
The package has known security vulnerabilities but has not or can not be
updated for some reason, and a list of issues has been entered in to the
package's <literal>meta.knownVulnerabilities</literal>.
</para>
</listitem>
</itemizedlist>
<para>
Note that all this is checked during evaluation already, and the check
includes any package that is evaluated. In particular, all build-time
dependencies are checked. <literal>nix-env -qa</literal> will (attempt to)
hide any packages that would be refused.
</para>
<para>
Each of these criteria can be altered in the nixpkgs configuration.
</para>
<para>
The nixpkgs configuration for a NixOS system is set in the
<literal>configuration.nix</literal>, as in the following example:
<programlisting>
{
nixpkgs.config = {
allowUnfree = true;
};
}
</programlisting>
However, this does not allow unfree software for individual users. Their
configurations are managed separately.
</para>
<para>
A user's of nixpkgs configuration is stored in a user-specific configuration
file located at <filename>~/.config/nixpkgs/config.nix</filename>. For
example:
<programlisting>
{
allowUnfree = true;
}
</programlisting>
</para>
<para>
Note that we are not able to test or build unfree software on Hydra due to
policy. Most unfree licenses prohibit us from either executing or
distributing the software.
</para>
<section xml:id="sec-allow-broken">
<title>Installing broken packages</title>
<para>
There are two ways to try compiling a package which has been marked as
broken.
</para>
<itemizedlist>
<listitem>
<para>
For allowing the build of a broken package once, you can use an
environment variable for a single invocation of the nix tools:
<programlisting>$ export NIXPKGS_ALLOW_BROKEN=1</programlisting>
</para>
</listitem>
<listitem>
<para>
For permanently allowing broken packages to be built, you may add
<literal>allowBroken = true;</literal> to your user's configuration file,
like this:
<programlisting>
{
allowBroken = true;
}
</programlisting>
</para>
</listitem>
</itemizedlist>
</section>
<section xml:id="sec-allow-unsupported-system">
<title>Installing packages on unsupported systems</title>
<para>
There are also two ways to try compiling a package which has been marked as
unsuported for the given system.
</para>
<itemizedlist>
<listitem>
<para>
For allowing the build of a broken package once, you can use an
environment variable for a single invocation of the nix tools:
<programlisting>$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1</programlisting>
</para>
</listitem>
<listitem>
<para>
For permanently allowing broken packages to be built, you may add
<literal>allowUnsupportedSystem = true;</literal> to your user's
configuration file, like this:
<programlisting>
{
allowUnsupportedSystem = true;
}
</programlisting>
</para>
</listitem>
</itemizedlist>
<para>
The difference between an a package being unsupported on some system and
being broken is admittedly a bit fuzzy. If a program
<emphasis>ought</emphasis> to work on a certain platform, but doesn't, the
platform should be included in <literal>meta.platforms</literal>, but marked
as broken with e.g. <literal>meta.broken =
!hostPlatform.isWindows</literal>. Of course, this begs the question of what
"ought" means exactly. That is left to the package maintainer.
</para>
</section>
<section xml:id="sec-allow-unfree">
<title>Installing unfree packages</title>
<para>
There are several ways to tweak how Nix handles a package which has been
marked as unfree.
</para>
<itemizedlist>
<listitem>
<para>
To temporarily allow all unfree packages, you can use an environment
variable for a single invocation of the nix tools:
<programlisting>$ export NIXPKGS_ALLOW_UNFREE=1</programlisting>
</para>
</listitem>
<listitem>
<para>
It is possible to permanently allow individual unfree packages, while
still blocking unfree packages by default using the
<literal>allowUnfreePredicate</literal> configuration option in the user
configuration file.
</para>
<para>
This option is a function which accepts a package as a parameter, and
returns a boolean. The following example configuration accepts a package
and always returns false:
<programlisting>
{
allowUnfreePredicate = (pkg: false);
}
</programlisting>
</para>
<para>
A more useful example, the following configuration allows only allows
flash player and visual studio code:
<programlisting>
{
allowUnfreePredicate = (pkg: elem (builtins.parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);
}
</programlisting>
</para>
</listitem>
<listitem>
<para>
It is also possible to whitelist and blacklist licenses that are
specifically acceptable or not acceptable, using
<literal>whitelistedLicenses</literal> and
<literal>blacklistedLicenses</literal>, respectively.
</para>
<para>
The following example configuration whitelists the licenses
<literal>amd</literal> and <literal>wtfpl</literal>:
<programlisting>
{
whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
}
</programlisting>
</para>
<para>
The following example configuration blacklists the <literal>gpl3</literal>
and <literal>agpl3</literal> licenses:
<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 nixpkgs tree.
</para>
</section>
<section xml:id="sec-allow-insecure">
<title>Installing insecure packages</title>
<para>
There are several ways to tweak how Nix handles a package which has been
marked as insecure.
</para>
<itemizedlist>
<listitem>
<para>
To temporarily allow all insecure packages, you can use an environment
variable for a single invocation of the nix tools:
<programlisting>$ export NIXPKGS_ALLOW_INSECURE=1</programlisting>
</para>
</listitem>
<listitem>
<para>
It is possible to permanently allow individual insecure packages, while
still blocking other insecure packages by default using the
<literal>permittedInsecurePackages</literal> configuration option in the
user configuration file.
</para>
<para>
The following example configuration permits the installation of the
hypothetically insecure package <literal>hello</literal>, version
<literal>1.2.3</literal>:
<programlisting>
{
permittedInsecurePackages = [
"hello-1.2.3"
];
}
</programlisting>
</para>
</listitem>
<listitem>
<para>
It is also possible to create a custom policy around which insecure
packages to allow and deny, by overriding the
<literal>allowInsecurePredicate</literal> configuration option.
</para>
<para>
The <literal>allowInsecurePredicate</literal> option is a function which
accepts a package and returns a boolean, much like
<literal>allowUnfreePredicate</literal>.
</para>
<para>
The following configuration example only allows insecure packages with
very short names:
<programlisting>
{
allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) &lt;= 5);
}
</programlisting>
</para>
<para>
Note that <literal>permittedInsecurePackages</literal> is only checked if
<literal>allowInsecurePredicate</literal> is not specified.
</para>
</listitem>
</itemizedlist>
</section>
<!--============================================================-->
<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>~/.config/nixpkgs/config.nix</filename> to override 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>
<section xml:id="sec-declarative-package-management">
<title>Declarative Package Management</title>
<section xml:id="sec-building-environment">
<title>Build an environment</title>
<para>
Using <literal>packageOverrides</literal>, it is possible to manage
packages declaratively. This means that we can list all of our desired
packages within a declarative Nix expression. For example, to have
<literal>aspell</literal>, <literal>bc</literal>,
<literal>ffmpeg</literal>, <literal>coreutils</literal>,
<literal>gdb</literal>, <literal>nixUnstable</literal>,
<literal>emscripten</literal>, <literal>jq</literal>,
<literal>nox</literal>, and <literal>silver-searcher</literal>, we could
use the following in <filename>~/.config/nixpkgs/config.nix</filename>:
</para>
<screen>
{
packageOverrides = pkgs: with pkgs; {
myPackages = pkgs.buildEnv {
name = "my-packages";
paths = [ aspell bc coreutils gdb ffmpeg nixUnstable emscripten jq nox silver-searcher ];
};
};
}
</screen>
<para>
To install it into our environment, you can just run <literal>nix-env -iA
nixpkgs.myPackages</literal>. If you want to load the packages to be built
from a working copy of <literal>nixpkgs</literal> you just run
<literal>nix-env -f. -iA myPackages</literal>. To explore what's been
installed, just look through <filename>~/.nix-profile/</filename>. You can
see that a lot of stuff has been installed. Some of this stuff is useful
some of it isn't. Let's tell Nixpkgs to only link the stuff that we want:
</para>
<screen>
{
packageOverrides = pkgs: with pkgs; {
myPackages = pkgs.buildEnv {
name = "my-packages";
paths = [ aspell bc coreutils gdb ffmpeg nixUnstable emscripten jq nox silver-searcher ];
pathsToLink = [ "/share" "/bin" ];
};
};
}
</screen>
<para>
<literal>pathsToLink</literal> tells Nixpkgs to only link the paths listed
which gets rid of the extra stuff in the profile. <filename>/bin</filename>
and <filename>/share</filename> are good defaults for a user environment,
getting rid of the clutter. If you are running on Nix on MacOS, you may
want to add another path as well, <filename>/Applications</filename>, that
makes GUI apps available.
</para>
</section>
<section xml:id="sec-getting-documentation">
<title>Getting documentation</title>
<para>
After building that new environment, look through
<filename>~/.nix-profile</filename> to make sure everything is there that
we wanted. Discerning readers will note that some files are missing. Look
inside <filename>~/.nix-profile/share/man/man1/</filename> to verify this.
There are no man pages for any of the Nix tools! This is because some
packages like Nix have multiple outputs for things like documentation (see
section 4). Let's make Nix install those as well.
</para>
<screen>
{
packageOverrides = pkgs: with pkgs; {
myPackages = pkgs.buildEnv {
name = "my-packages";
paths = [ aspell bc coreutils ffmpeg nixUnstable emscripten jq nox silver-searcher ];
pathsToLink = [ "/share/man" "/share/doc" "/bin" ];
extraOutputsToInstall = [ "man" "doc" ];
};
};
}
</screen>
<para>
This provides us with some useful documentation for using our packages.
However, if we actually want those manpages to be detected by man, we need
to set up our environment. This can also be managed within Nix expressions.
</para>
<screen>
{
packageOverrides = pkgs: with pkgs; rec {
myProfile = writeText "my-profile" ''
export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin
export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man
'';
myPackages = pkgs.buildEnv {
name = "my-packages";
paths = [
(runCommand "profile" {} ''
mkdir -p $out/etc/profile.d
cp ${myProfile} $out/etc/profile.d/my-profile.sh
'')
aspell
bc
coreutils
ffmpeg
man
nixUnstable
emscripten
jq
nox
silver-searcher
];
pathsToLink = [ "/share/man" "/share/doc" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" ];
};
};
}
</screen>
<para>
For this to work fully, you must also have this script sourced when you are
logged in. Try adding something like this to your
<filename>~/.profile</filename> file:
</para>
<screen>
#!/bin/sh
if [ -d $HOME/.nix-profile/etc/profile.d ]; then
for i in $HOME/.nix-profile/etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
fi
</screen>
<para>
Now just run <literal>source $HOME/.profile</literal> and you can starting
loading man pages from your environent.
</para>
</section>
<section xml:id="sec-gnu-info-setup">
<title>GNU info setup</title>
<para>
Configuring GNU info is a little bit trickier than man pages. To work
correctly, info needs a database to be generated. This can be done with
some small modifications to our environment scripts.
</para>
<screen>
{
packageOverrides = pkgs: with pkgs; rec {
myProfile = writeText "my-profile" ''
export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin
export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man
export INFOPATH=$HOME/.nix-profile/share/info:/nix/var/nix/profiles/default/share/info:/usr/share/info
'';
myPackages = pkgs.buildEnv {
name = "my-packages";
paths = [
(runCommand "profile" {} ''
mkdir -p $out/etc/profile.d
cp ${myProfile} $out/etc/profile.d/my-profile.sh
'')
aspell
bc
coreutils
ffmpeg
man
nixUnstable
emscripten
jq
nox
silver-searcher
texinfoInteractive
];
pathsToLink = [ "/share/man" "/share/doc" "/share/info" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" "info" ];
postBuild = ''
if [ -x $out/bin/install-info -a -w $out/share/info ]; then
shopt -s nullglob
for i in $out/share/info/*.info $out/share/info/*.info.gz; do
$out/bin/install-info $i $out/share/info/dir
done
fi
'';
};
};
}
</screen>
<para>
<literal>postBuild</literal> tells Nixpkgs to run a command after building
the environment. In this case, <literal>install-info</literal> adds the
installed info pages to <literal>dir</literal> which is GNU info's default
root node. Note that <literal>texinfoInteractive</literal> is added to the
environment to give the <literal>install-info</literal> command.
</para>
</section>
</section>
</chapter>

35
doc/contributing.xml Normal file
View File

@@ -0,0 +1,35 @@
<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.
</para>
<para>
You can quickly check your edits with <command>make</command>:
</para>
<screen>
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make
</screen>
<para>
If you experience problems, run <command>make debug</command> to help
understand the docbook errors.
</para>
<para>
After making modifications to the manual, it's important to build it before
committing. You can do that as follows:
<screen>
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make clean
[nix-shell]$ nix-build .
</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).

475
doc/cross-compilation.xml Normal file
View File

@@ -0,0 +1,475 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-cross">
<title>Cross-compilation</title>
<section xml:id="sec-cross-intro">
<title>Introduction</title>
<para>
"Cross-compilation" means compiling a program on one machine for another
type of machine. For example, a typical use of cross compilation is to
compile programs for embedded devices. These devices often don't have the
computing power and memory to compile their own programs. One might think
that cross-compilation is a fairly niche concern, but there are advantages
to being rigorous about distinguishing build-time vs run-time environments
even when one is developing and deploying on the same machine. Nixpkgs is
increasingly adopting the opinion that packages should be written with
cross-compilation in mind, and nixpkgs should evaluate in a similar way (by
minimizing cross-compilation-specific special cases) whether or not one is
cross-compiling.
</para>
<para>
This chapter will be organized in three parts. First, it will describe the
basics of how to package software in a way that supports cross-compilation.
Second, it will describe how to use Nixpkgs when cross-compiling. Third, it
will describe the internal infrastructure supporting cross-compilation.
</para>
</section>
<!--============================================================-->
<section xml:id="sec-cross-packaging">
<title>Packaging in a cross-friendly manner</title>
<section xml:id="sec-cross-platform-parameters">
<title>Platform parameters</title>
<para>
Nixpkgs follows the
<link xlink:href="https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html">common
historical convention of GNU autoconf</link> of distinguishing between 3
types of platform: <wordasword>build</wordasword>,
<wordasword>host</wordasword>, and <wordasword>target</wordasword>. In
summary, <wordasword>build</wordasword> is the platform on which a package
is being built, <wordasword>host</wordasword> is the platform on which it
is to run. The third attribute, <wordasword>target</wordasword>, is
relevant only for certain specific compilers and build tools.
</para>
<para>
In Nixpkgs, these three platforms are defined as attribute sets under the
names <literal>buildPlatform</literal>, <literal>hostPlatform</literal>,
and <literal>targetPlatform</literal>. They are always defined as
attributes in the standard environment. That means one can access them
like:
<programlisting>{ stdenv, fooDep, barDep, .. }: ...stdenv.buildPlatform...</programlisting>
.
</para>
<variablelist>
<varlistentry>
<term>
<varname>buildPlatform</varname>
</term>
<listitem>
<para>
The "build platform" is the platform on which a package is built. Once
someone has a built package, or pre-built binary package, the build
platform should not matter and be safe to ignore.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>hostPlatform</varname>
</term>
<listitem>
<para>
The "host platform" is the platform on which a package will be run. This
is the simplest platform to understand, but also the one with the worst
name.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>targetPlatform</varname>
</term>
<listitem>
<para>
The "target platform" attribute is, unlike the other two attributes, not
actually fundamental to the process of building software. Instead, it is
only relevant for compatibility with building certain specific compilers
and build tools. It can be safely ignored for all other packages.
</para>
<para>
The build process of certain compilers is written in such a way that the
compiler resulting from a single build can itself only produce binaries
for a single platform. The task specifying this single "target platform"
is thus pushed to build time of the compiler. The root cause of this
mistake is often that the compiler (which will be run on the host) and
the the standard library/runtime (which will be run on the target) are
built by a single build process.
</para>
<para>
There is no fundamental need to think about a single target ahead of
time like this. If the tool supports modular or pluggable backends, both
the need to specify the target at build time and the constraint of
having only a single target disappear. An example of such a tool is
LLVM.
</para>
<para>
Although the existence of a "target platfom" is arguably a historical
mistake, it is a common one: examples of tools that suffer from it are
GCC, Binutils, GHC and Autoconf. Nixpkgs tries to avoid sharing in the
mistake where possible. Still, because the concept of a target platform
is so ingrained, it is best to support it as is.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
The exact schema these fields follow is a bit ill-defined due to a long and
convoluted evolution, but this is slowly being cleaned up. You can see
examples of ones used in practice in
<literal>lib.systems.examples</literal>; note how they are not all very
consistent. For now, here are few fields can count on them containing:
</para>
<variablelist>
<varlistentry>
<term>
<varname>system</varname>
</term>
<listitem>
<para>
This is a two-component shorthand for the platform. Examples of this
would be "x86_64-darwin" and "i686-linux"; see
<literal>lib.systems.doubles</literal> for more. This format isn't very
standard, but has built-in support in Nix, such as the
<varname>builtins.currentSystem</varname> impure string.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>config</varname>
</term>
<listitem>
<para>
This is a 3- or 4- component shorthand for the platform. Examples of
this would be "x86_64-unknown-linux-gnu" and "aarch64-apple-darwin14".
This is a standard format called the "LLVM target triple", as they are
pioneered by LLVM and traditionally just used for the
<varname>targetPlatform</varname>. This format is strictly more
informative than the "Nix host double", as the previous format could
analogously be termed. This needs a better name than
<varname>config</varname>!
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>parsed</varname>
</term>
<listitem>
<para>
This is a nix representation of a parsed LLVM target triple with
white-listed components. This can be specified directly, or actually
parsed from the <varname>config</varname>. [Technically, only one need
be specified and the others can be inferred, though the precision of
inference may not be very good.] See
<literal>lib.systems.parse</literal> for the exact representation.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>libc</varname>
</term>
<listitem>
<para>
This is a string identifying the standard C library used. Valid
identifiers include "glibc" for GNU libc, "libSystem" for Darwin's
Libsystem, and "uclibc" for µClibc. It should probably be refactored to
use the module system, like <varname>parse</varname>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>is*</varname>
</term>
<listitem>
<para>
These predicates are defined in <literal>lib.systems.inspect</literal>,
and slapped on every platform. They are superior to the ones in
<varname>stdenv</varname> as they force the user to be explicit about
which platform they are inspecting. Please use these instead of those.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>platform</varname>
</term>
<listitem>
<para>
This is, quite frankly, a dumping ground of ad-hoc settings (it's an
attribute set). See <literal>lib.systems.platforms</literal> for
examples—there's hopefully one in there that will work verbatim for
each platform that is working. Please help us triage these flags and
give them better homes!
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="sec-cross-specifying-dependencies">
<title>Specifying Dependencies</title>
<para>
In this section we explore the relationship between both runtime and
buildtime dependencies and the 3 Autoconf platforms.
</para>
<para>
A runtime dependency between 2 packages implies that between them both the
host and target platforms match. This is directly implied by the meaning of
"host platform" and "runtime dependency": The package dependency exists
while both packages are running on a single host platform.
</para>
<para>
A build time dependency, however, implies a shift in platforms between the
depending package and the depended-on package. The meaning of a build time
dependency is that to build the depending package we need to be able to run
the depended-on's package. The depending package's build platform is
therefore equal to the depended-on package's host platform. Analogously,
the depending package's host platform is equal to the depended-on package's
target platform.
</para>
<para>
In this manner, given the 3 platforms for one package, we can determine the
three platforms for all its transitive dependencies. This is the most
important guiding principle behind cross-compilation with Nixpkgs, and will
be called the <wordasword>sliding window principle</wordasword>.
</para>
<para>
Some examples will probably make this clearer. If a package is being built
with a <literal>(build, host, target)</literal> platform triple of
<literal>(foo, bar, bar)</literal>, then its build-time dependencies would
have a triple of <literal>(foo, foo, bar)</literal>, and <emphasis>those
packages'</emphasis> build-time dependencies would have triple of
<literal>(foo, foo, foo)</literal>. In other words, it should take two
"rounds" of following build-time dependency edges before one reaches a
fixed point where, by the sliding window principle, the platform triple no
longer changes. Indeed, this happens with cross compilation, where only
rounds of native dependencies starting with the second necessarily coincide
with native packages.
</para>
<note>
<para>
The depending package's target platform is unconstrained by the sliding
window principle, which makes sense in that one can in principle build
cross compilers targeting arbitrary platforms.
</para>
</note>
<para>
How does this work in practice? Nixpkgs is now structured so that
build-time dependencies are taken from <varname>buildPackages</varname>,
whereas run-time dependencies are taken from the top level attribute set.
For example, <varname>buildPackages.gcc</varname> should be used at build
time, while <varname>gcc</varname> should be used at run time. Now, for
most of Nixpkgs's history, there was no <varname>buildPackages</varname>,
and most packages have not been refactored to use it explicitly. Instead,
one can use the six (<emphasis>gasp</emphasis>) attributes used for
specifying dependencies as documented in
<xref linkend="ssec-stdenv-dependencies"/>. We "splice" together the
run-time and build-time package sets with <varname>callPackage</varname>,
and then <varname>mkDerivation</varname> for each of four attributes pulls
the right derivation out. This splicing can be skipped when not cross
compiling as the package sets are the same, but is a bit slow for cross
compiling. Because of this, a best-of-both-worlds solution is in the works
with no splicing or explicit access of <varname>buildPackages</varname>
needed. For now, feel free to use either method.
</para>
<note>
<para>
There is also a "backlink" <varname>targetPackages</varname>, yielding a
package set whose <varname>buildPackages</varname> is the current package
set. This is a hack, though, to accommodate compilers with lousy build
systems. Please do not use this unless you are absolutely sure you are
packaging such a compiler and there is no other way.
</para>
</note>
</section>
<section xml:id="sec-cross-cookbook">
<title>Cross packaging cookbook</title>
<para>
Some frequently problems when packaging for cross compilation are good to
just spell and answer. Ideally the information above is exhaustive, so this
section cannot provide any new information, but its ludicrous and cruel to
expect everyone to spend effort working through the interaction of many
features just to figure out the same answer to the same common problem.
Feel free to add to this list!
</para>
<qandaset>
<qandaentry xml:id="cross-qa-build-c-program-in-build-environment">
<question>
<para>
What if my package's build system needs to build a C program to be run
under the build environment?
</para>
</question>
<answer>
<para>
<programlisting>depsBuildBuild = [ buildPackages.stdenv.cc ];</programlisting>
Add it to your <function>mkDerivation</function> invocation.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="cross-qa-fails-to-find-ar">
<question>
<para>
My package fails to find <command>ar</command>.
</para>
</question>
<answer>
<para>
Many packages assume that an unprefixed <command>ar</command> is
available, but Nix doesn't provide one. It only provides a prefixed one,
just as it only does for all the other binutils programs. It may be
necessary to patch the package to fix the build system to use a prefixed
`ar`.
</para>
</answer>
</qandaentry>
<qandaentry xml:id="cross-testsuite-runs-host-code">
<question>
<para>
My package's testsuite needs to run host platform code.
</para>
</question>
<answer>
<para>
<programlisting>doCheck = stdenv.hostPlatform != stdenv.buildPlatfrom;</programlisting>
Add it to your <function>mkDerivation</function> invocation.
</para>
</answer>
</qandaentry>
</qandaset>
</section>
</section>
<!--============================================================-->
<section xml:id="sec-cross-usage">
<title>Cross-building packages</title>
<note>
<para>
More information needs to moved from the old wiki, especially
<link xlink:href="https://nixos.org/wiki/CrossCompiling" />, for this
section.
</para>
</note>
<para>
Nixpkgs can be instantiated with <varname>localSystem</varname> alone, in
which case there is no cross compiling and everything is built by and for
that system, or also with <varname>crossSystem</varname>, in which case
packages run on the latter, but all building happens on the former. Both
parameters take the same schema as the 3 (build, host, and target) platforms
defined in the previous section. As mentioned above,
<literal>lib.systems.examples</literal> has some platforms which are used as
arguments for these parameters in practice. You can use them
programmatically, or on the command line:
<programlisting>
nix-build &lt;nixpkgs&gt; --arg crossSystem '(import &lt;nixpkgs/lib&gt;).systems.examples.fooBarBaz' -A whatever</programlisting>
</para>
<note>
<para>
Eventually we would like to make these platform examples an unnecessary
convenience so that
<programlisting>
nix-build &lt;nixpkgs&gt; --arg crossSystem.config '&lt;arch&gt;-&lt;os&gt;-&lt;vendor&gt;-&lt;abi&gt;' -A whatever</programlisting>
works in the vast majority of cases. The problem today is dependencies on
other sorts of configuration which aren't given proper defaults. We rely on
the examples to crudely to set those configuration parameters in some
vaguely sane manner on the users behalf. Issue
<link xlink:href="https://github.com/NixOS/nixpkgs/issues/34274">#34274</link>
tracks this inconvenience along with its root cause in crufty configuration
options.
</para>
</note>
<para>
While one is free to pass both parameters in full, there's a lot of logic to
fill in missing fields. As discussed in the previous section, only one of
<varname>system</varname>, <varname>config</varname>, and
<varname>parsed</varname> is needed to infer the other two. Additionally,
<varname>libc</varname> will be inferred from <varname>parse</varname>.
Finally, <literal>localSystem.system</literal> is also
<emphasis>impurely</emphasis> inferred based on the platform evaluation
occurs. This means it is often not necessary to pass
<varname>localSystem</varname> at all, as in the command-line example in the
previous paragraph.
</para>
<note>
<para>
Many sources (manual, wiki, etc) probably mention passing
<varname>system</varname>, <varname>platform</varname>, along with the
optional <varname>crossSystem</varname> to nixpkgs: <literal>import
&lt;nixpkgs&gt; { system = ..; platform = ..; crossSystem = ..;
}</literal>. Passing those two instead of <varname>localSystem</varname> is
still supported for compatibility, but is discouraged. Indeed, much of the
inference we do for these parameters is motivated by compatibility as much
as convenience.
</para>
</note>
<para>
One would think that <varname>localSystem</varname> and
<varname>crossSystem</varname> overlap horribly with the three
<varname>*Platforms</varname> (<varname>buildPlatform</varname>,
<varname>hostPlatform,</varname> and <varname>targetPlatform</varname>; see
<varname>stage.nix</varname> or the manual). Actually, those identifiers are
purposefully not used here to draw a subtle but important distinction: While
the granularity of having 3 platforms is necessary to properly *build*
packages, it is overkill for specifying the user's *intent* when making a
build plan or package set. A simple "build vs deploy" dichotomy is adequate:
the sliding window principle described in the previous section shows how to
interpolate between the these two "end points" to get the 3 platform triple
for each bootstrapping stage. That means for any package a given package
set, even those not bound on the top level but only reachable via
dependencies or <varname>buildPackages</varname>, the three platforms will
be defined as one of <varname>localSystem</varname> or
<varname>crossSystem</varname>, with the former replacing the latter as one
traverses build-time dependencies. A last simple difference then is
<varname>crossSystem</varname> should be null when one doesn't want to
cross-compile, while the <varname>*Platform</varname>s are always non-null.
<varname>localSystem</varname> is always non-null.
</para>
</section>
<!--============================================================-->
<section xml:id="sec-cross-infra">
<title>Cross-compilation infrastructure</title>
<para>
To be written.
</para>
<note>
<para>
If one explores nixpkgs, they will see derivations with names like
<literal>gccCross</literal>. Such <literal>*Cross</literal> derivations is
a holdover from before we properly distinguished between the host and
target platforms —the derivation with "Cross" in the name covered the
<literal>build = host != target</literal> case, while the other covered the
<literal>host = target</literal>, with build platform the same or not based
on whether one was using its <literal>.nativeDrv</literal> or
<literal>.crossDrv</literal>. This ugliness will disappear soon.
</para>
</note>
</section>
</chapter>

View File

@@ -1,27 +1,38 @@
{ pkgs ? (import ./.. { }), nixpkgs ? { }}:
let
doc-support = import ./doc-support { inherit pkgs nixpkgs; };
in pkgs.stdenv.mkDerivation {
lib = pkgs.lib;
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs; };
in
pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual";
nativeBuildInputs = with pkgs; [
pandoc
graphviz
libxml2
libxslt
zip
jing
xmlformat
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing xmlformat ];
src = ./.;
# Hacking on these variables? Make sure to close and open
# nix-shell between each test, maybe even:
# $ nix-shell --run "make clean all"
# otherwise they won't reapply :)
HIGHLIGHTJS = pkgs.documentation-highlighter;
XSL = "${pkgs.docbook_xsl_ns}/xml/xsl";
RNG = "${pkgs.docbook5}/xml/rng/docbook/docbook.rng";
XMLFORMAT_CONFIG = ../nixos/doc/xmlformat.conf;
xsltFlags = lib.concatStringsSep " " [
"--param section.autolabel 1"
"--param section.label.includes.component.label 1"
"--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
"--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
"--param xref.with.number.and.title 1"
"--param toc.section.depth 3"
"--stringparam admon.style ''"
"--stringparam callout.graphics.extension .svg"
];
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
postPatch = ''
ln -s ${doc-support} ./doc-support/result
'';
preBuild = ''
make -j$NIX_BUILD_CORES render-md
rm -rf ./functions/library/locations.xml
ln -s ${locationsXml} ./functions/library/locations.xml
echo ${lib.version} > .version
'';
installPhase = ''
@@ -36,8 +47,4 @@ in pkgs.stdenv.mkDerivation {
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,87 +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 ];
class = "nixpkgsConfig";
}) 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