Compare commits

..

1430 Commits

Author SHA1 Message Date
Robin Gloster
39cd40f7be NixOS 17.09 "Hummingbird" is released on 2017-09-29 2017-09-29 06:06:15 +02:00
Robin Gloster
e73c24084a manual/releasing: update 2017-09-29 06:05:46 +02:00
Robin Gloster
3663760225 tests.hibernate: disable on 32 bit
very flaky due to not having 9pfs mounted after hibernation and
therefore needs nc in memory, which often fails on 32bit
2017-09-29 03:36:18 +02:00
Robin Gloster
309f965c91 tests.cjdns: only on 64-bit + python pkg fixup 2017-09-29 03:33:07 +02:00
WilliButz
4dbde1f10e spotify: 1.0.49.125.g72ee7853-111 -> 1.0.64.401.g9d720389-21
(cherry picked from commit ee6b48cc1f)
2017-09-29 03:24:40 +02:00
Franz Pletz
72550585cd pythonPackages.pyalgotrade: fix typo
(cherry picked from commit e68e149447)
2017-09-29 03:24:34 +02:00
Franz Pletz
b772ca9d21 pythonPackages.pyalgotrade: incompatible with python3
(cherry picked from commit 538b016ae0)
2017-09-29 03:24:26 +02:00
Franz Pletz
4beb7d1196 djbdns: don't try to build on hydra 2017-09-29 02:14:42 +02:00
Franz Pletz
5b09ca07b8 gplates: mark as broken 2017-09-29 02:13:55 +02:00
Franz Pletz
90c8b6eb51 pythonPackages.pyalgotrade: incompatible with python3
(cherry picked from commit 538b016ae0)
2017-09-29 02:11:31 +02:00
Franz Pletz
d9298e3a00 openmodelica: mark as broken, unmaintained 2017-09-29 02:00:12 +02:00
Franz Pletz
1a5acb9883 17.09 release notes: mention KDE upgrades
(cherry picked from commit 5b8a798137)
2017-09-29 01:55:11 +02:00
Franz Pletz
1e2711efd8 17.09 release notes: fix typos & ordering
(cherry picked from commit c22d717c75)
2017-09-29 01:55:11 +02:00
Franz Pletz
dcf1273fe1 firefox-bin: 55.0.3 -> 56.0
(cherry picked from commit 5b71411413)
2017-09-29 01:55:10 +02:00
Franz Pletz
c5c082a111 kicad: don't try to build on hydra
(cherry picked from commit 0dc882e3d4)
2017-09-29 01:55:10 +02:00
Robin Gloster
4b5cc4e808 python packages: mark as broken/disabled 2017-09-29 00:38:34 +02:00
Robin Gloster
ecd2a1a398 python.pkgs.futurist: dontCheck
(cherry picked from commit 169a344ab8)
2017-09-29 00:38:34 +02:00
Franz Pletz
49d34a4965 17.09 release notes: add network interface rename note
Fixes #29197.

(cherry picked from commit 49f175cd0c)
2017-09-29 00:08:21 +02:00
Franz Pletz
273e4afda5 virt-what: init at 1.18
(cherry picked from commit df86f19968)
2017-09-29 00:08:21 +02:00
Robin Gloster
23fdbaa375 treewide: mark a bunch of failing builds as broken 2017-09-28 23:16:18 +02:00
Robin Gloster
be9cd9aef7 qpid-cpp: fix build
(cherry picked from commit f0fa565dfb)
2017-09-28 23:16:14 +02:00
Robin Gloster
f349c2338c 17.09 release notes: update information on gitlab
(cherry picked from commit 83405798e6)
2017-09-28 23:15:58 +02:00
Joerg Thalheim
c12a3e2d47 nullmailer: simplify config generation
(cherry picked from commit 91eb6cf82c)
2017-09-28 22:43:50 +02:00
Marius Bergmann
4a8c74019e nullmailer: add remotesFile option
The current `remotes` option is a string option containing nullmailer remote
definitions. However, those definitions may contain secret credentials and
should therefore not be put world-readable in the nix store.

I added a `remotesFile` option, which allows to specify a path to the remotes
definition file instead. This way, the definitions can be kept outside of the
nix store with more secure file permissions.

(cherry picked from commit e741cc4881)
2017-09-28 22:43:50 +02:00
Marius Bergmann
e9356fd0df nullmailer: use proper description for remotes option
(cherry picked from commit 02e89de71c)
2017-09-28 22:43:50 +02:00
Marius Bergmann
89b75ba92f nullmailer: fix relative -> absolute path in preStart script
(cherry picked from commit f9d64a068b)
2017-09-28 22:43:49 +02:00
Cray Elliott
5b6ec42ca3 nvidia-x11: fix eval error from 4ef82339c9
(cherry picked from commit d4bdf302a3)
2017-09-28 22:43:49 +02:00
volth
75fe95076e collectd: fix darwin build (#29841)
- liboping supported on darwin since #29849
- libmicrohttpd supported on darwin since #29848

(cherry picked from commit e713349922)
2017-09-28 22:06:17 +02:00
Valérian Galliat
e9e037f871 perl-Mail-SPF: fix lib path
(cherry picked from commit f68b1c1a1c)
2017-09-28 21:56:20 +02:00
volth
bd0b1fedc5 mosquitto: fix darwin build (#29851)
(cherry picked from commit 144914121c)
2017-09-28 21:19:13 +02:00
volth
8133dbf9b2 libmicrohttpd: fix darwin build
(cherry picked from commit 547dba10c0)
2017-09-28 21:16:23 +02:00
Robin Gloster
3011e93486 mesos: fix for different protobuf outputs vs master 2017-09-28 21:05:01 +02:00
berdario
1f3087b069 rhino: enable on darwin
(cherry picked from commit d84d8af862)
2017-09-28 20:51:52 +02:00
Robin Gloster
3c31adf461 gitlab: 9.5.5 -> 10.0.2
(cherry picked from commit 19681fbffb8ba92284eada496ce68e500434c0ef)
2017-09-28 20:33:49 +02:00
Herwig Hochleitner
1c914df4c1 chromium: 61.0.3163.79 -> 61.0.3163.100
(cherry picked from commit e78bf2d1e9)
2017-09-28 20:33:49 +02:00
Orivej Desh
ad9c16bad1 gcsfuse: 0.19.0 -> 0.23.0
(cherry picked from commit ad3efa3b54)
2017-09-28 20:33:48 +02:00
Franz Pletz
3ac8986fb6 flightgear: 2016.4.4 -> 2017.3.1 for CVE-2017-13709
(cherry picked from commit dffd77b037)
2017-09-28 19:13:29 +02:00
Robin Gloster
53749d8eb2 openrw: 2016-06-29 -> 2017-09-17
fixes build

(cherry picked from commit 595c8fad83)
2017-09-28 19:00:14 +02:00
Robin Gloster
93a80a4a29 firebirdSuper: pin to gcc5
(cherry picked from commit 8e38de4e0c)
2017-09-28 19:00:14 +02:00
Eelco Dolstra
7d52f83676 Don't generate instance-store AMIs
These are obsolete, use EBS AMIs instead.

(cherry picked from commit 6c72efe0ba)
2017-09-28 19:00:06 +02:00
Mathias Schreck
794aaaa71b nodejs: 8.5.0 -> 8.6.0
(cherry picked from commit f8ffbcb520)
2017-09-28 19:00:06 +02:00
Robin Gloster
7bc3afdf5b amtterm: fix build
(cherry picked from commit 8fb9d37f27)
2017-09-28 18:59:48 +02:00
Yegor Timoshenko
6a0d99f840 fakenes: mark as broken
(cherry picked from commit 9aae605fe7)
2017-09-28 18:59:47 +02:00
Jan Tojnar
373dc7a130 nixos/tests/gnome3-gdm: Increase memory limit
The test was failing on x86_64 prematurely due to memory being exhausted.

See also 3b9f0c6a46

(cherry picked from commit dfdfb97f0f)
2017-09-28 18:59:47 +02:00
Robin Gloster
5faf5c25b6 treewide: mark batch of packages broken for 17.09 2017-09-28 18:59:17 +02:00
Franz Pletz
f8eac437a5 qemu: 2.9.0 -> 2.9.1
Security and bugfix release.

(cherry picked from commit 536ab403d4)
2017-09-28 17:09:04 +02:00
Franz Pletz
16dacbaad0 ettercap: fix CVE-2017-8366 & CVE-2017-6430
(cherry picked from commit b29051b2f5)
2017-09-28 17:09:04 +02:00
Franz Pletz
45a92ea43c fossil: 2.2 -> 2.3
Fixes XSS vulnerability on the /help webpage. No CVE known.

(cherry picked from commit faed026cd4)
2017-09-28 17:09:03 +02:00
Franz Pletz
1c82f5f98e augeas: 1.8.0 -> 1.8.1 for CVE-2017-7555
(cherry picked from commit d2b6e9cdb0)
2017-09-28 17:09:03 +02:00
Franz Pletz
9c5ce7642e postfix: 3.1.3 -> 3.2.3
Possibly fixes security issues. No CVE yet.

(cherry picked from commit 14e53aa0b1)
2017-09-28 17:09:03 +02:00
Franz Pletz
3411c42fca mpg123: 1.25.4 -> 1.25.7 for multiple CVEs
Fixes at least CVE-2017-10683, CVE-2017-11126, CVE-2017-9545,
CVE-2017-12797.

(cherry picked from commit 6c283ae8f3)
2017-09-28 17:09:02 +02:00
Robin Gloster
2231930b7d 17.09 release notes: reformat and generate added services
(cherry picked from commit a19c52a101)
2017-09-28 16:42:32 +02:00
Alastair Pharo
2d521bfb4f purePackages.gen: Don't build on Hydra (#29763)
Until https://github.com/agraef/pure-lang/issues/8 is resolved, this
package can't be compiled.  This patch turns off Hydra builds of this
package as part of #28643 (zero Hydra failures)

(cherry picked from commit 8ac4682e85)
2017-09-28 15:59:50 +02:00
Robin Gloster
06cf955c7a Revert "hsevm: project was renamed to hevm"
This reverts commit 743a1d5609.

needs haskell dependency only on master
2017-09-28 15:31:45 +02:00
Tom Hunger
ec24d2b24b flake8-future-import: Add patch to fix tests.
(cherry picked from commit 09fa385995)
2017-09-28 15:13:14 +02:00
Franz Pletz
9418365655 mongoc: don't use bundled zlib & snappy
(cherry picked from commit bc5ec7b1d4)
2017-09-28 15:12:46 +02:00
Robin Gloster
481fe76e63 guile-gnome: nitpicks fixed
(cherry picked from commit b3dab5b088)
2017-09-28 14:56:28 +02:00
xd1le
3d45679923 gwrap: set version in mkDerivation
(cherry picked from commit d063880986)
2017-09-28 14:56:28 +02:00
xd1le
3d9e5a1bc0 gwrap: switch maintainer from taktoa to vyp
(cherry picked from commit de9c86f81a)
2017-09-28 14:56:28 +02:00
xd1le
37f1f9b40a gwrap: code style nits
(cherry picked from commit 468626ce86)
2017-09-28 14:56:28 +02:00
xd1le
1daada3988 guile-gnome: fix build by building gwrap with guile-2.0
Apparently gwrap will not compile with guile-2.2 [1], even though the
news for version 1.9.15 says it "allows" Guile 2.2 [2]:

> it will _not_ compile using 2.2

Furthermore, it seems like it isn't being developed anymore either [1]:

> Also note that g-wrap itself is not being further developed anymore,
> it is recommended for new projects to use Guile's dynamic FFI.

Also, guile-gnome-2.16.5 is apparently compatible with guile-2.2 [3],
but I'm not sure how they built it with guile-2.2 because gwrap 1.9.15
(latest release) apparently doesn't build with guile-2.2. (And certainly
when I try to build gwrap 1.9.15 with guile-2.2 it doesn't work. Maybe
it can be made to work with certain compile flags, but I haven't pursued
that further due to [1] anyway.) This is why guile-gnome is still on
2.16.4 here. Because, although 2.16.5 can still (apparently) build with
guile-2.0.14, guile_2_0 is only at guile-2.0.13.

So to update guile-gnome to 2.16.5, guile_2_0 would first have to be
updated to 2.0.14.

[1]: http://lists.nongnu.org/archive/html/g-wrap-dev/2016-08/msg00001.html
[2]: http://www.nongnu.org/g-wrap/news.html
[3]: https://www.gnu.org/software/guile-gnome/news.html

(cherry picked from commit f1b7d0a54f)
2017-09-28 14:56:28 +02:00
xd1le
3062d28673 guile-gnome: code style formatting nitpicks
(cherry picked from commit 88ef99e2c3)
2017-09-28 14:56:27 +02:00
xd1le
3deecec6d1 guile-gnome: remove taktoa and amiloradovsky from maintainers and add
vyp

See discussion in [1].

[1]: https://github.com/NixOS/nixpkgs/pull/29732

(cherry picked from commit 16012ff98a)
2017-09-28 14:56:27 +02:00
xd1le
0aa13f1f3c guile-modules: stylistic nix expression changes to modules with sole
maintainer vyp

(cherry picked from commit 3579d7e2b2)
2017-09-28 14:56:27 +02:00
xd1le
8530b3ab73 guile-modules: add vyp as maintainer to unmaintained guile modules
(cherry picked from commit 796b69318f)
2017-09-28 14:56:27 +02:00
xd1le
debc5a9514 guile-modules: rename top level attributes to be consistent
(cherry picked from commit d7d33bd17c)
2017-09-28 14:56:27 +02:00
Franz Pletz
65e93e3f5c pyjwt: 1.4.2 -> 1.5.3 for CVE-2017-11424
(cherry picked from commit 232340f35b)
2017-09-28 14:54:14 +02:00
Franz Pletz
ddcdfea18c kerberos: 1.15 -> 1.15.2 for CVE-2017-11462
(cherry picked from commit 8678f14ac9)
2017-09-28 14:54:14 +02:00
Franz Pletz
d043bbb05e php71: 7.1.8 -> 7.1.9
(cherry picked from commit 09b6f1e605)
2017-09-28 14:54:13 +02:00
Franz Pletz
77d6cd7ec9 php70: 7.0.22 -> 7.0.24
(cherry picked from commit d27ebcbae3)
2017-09-28 14:54:13 +02:00
Franz Pletz
73454e4be2 unrar: 5.5.5 -> 5.5.7 for multiple CVEs
Fixes CVE-2012-6706, CVE-2017-12940, CVE-2017-12941, CVE-2017-12942.

(cherry picked from commit 58f15c1f95)
2017-09-28 14:54:13 +02:00
Franz Pletz
adaceb1331 libraw: 0.18.2 -> 0.18.5 for multiple CVEs
Fixes at least CVE-2017-13735, CVE-2017-14265, CVE-2017-14348.

(cherry picked from commit c7e16f5ce5)
2017-09-28 14:54:12 +02:00
Franz Pletz
e678842b76 oniguruma: 5.9.5 -> 6.6.1 for multiple CVEs
Fixes CVE-2017-9224, CVE-2017-9225, CVE-2017-9226, CVE-2017-9227,
 CVE-2017-9228, CVE-2017-9229.

(cherry picked from commit 41b43b201e)
2017-09-28 14:54:12 +02:00
Franz Pletz
a71be13260 samba3: mark as vulnerable
(cherry picked from commit c02c47d1eb)
2017-09-28 14:53:39 +02:00
Franz Pletz
dc9fe44312 samba: 4.6.7 -> 4.6.8 for multiple CVEs
Fixes CVE-2017-12150, CVE-2017-12151, CVE-2017-12163.

(cherry picked from commit 15a6c2c4fc)
2017-09-28 14:53:39 +02:00
Franz Pletz
c680d7fce3 libtiff: use patches from newer debian revision
(cherry picked from commit 8a5b8aeaf5)
2017-09-28 14:53:39 +02:00
Franz Pletz
d9b4e70c5f mongoc: 1.7.0 -> 1.8.0
(cherry picked from commit cc258a671a)
2017-09-28 14:53:38 +02:00
Franz Pletz
9e2e252e57 libbson: 1.6.1 -> 1.8.0 for CVE-2017-14227
(cherry picked from commit 6dd6f10615)
2017-09-28 14:53:38 +02:00
Robin Gloster
9766dde7b1 Revert "kubernetes: fix hashes after dockerTools change"
This reverts commit 9ba024f6d8.

(cherry picked from commit 4aeb38e5b9)
2017-09-28 14:12:11 +02:00
Robin Gloster
00dc83bfa0 dockerTools: fix hash to accomodate the pullImage revert
(cherry picked from commit 20677fca59)
2017-09-28 14:12:10 +02:00
Robin Gloster
289358e277 Revert "dockerTools.pullImage: use skopeo to pull the image"
This reverts commit 01174c5f4d.

See https://github.com/NixOS/nixpkgs/pull/29302#issuecomment-332809092
for more information. This broke image format compatibility and
therefore amongst others mesos.

(cherry picked from commit 5c6dc717a6)
2017-09-28 14:12:10 +02:00
Robin Gloster
8f923bfa48 mesos: use static protobuf libraries
(cherry picked from commit c2ce38473b)
2017-09-28 13:21:28 +02:00
Robin Gloster
5d7edb8e81 protobuf: build static libraries
mesos needs them

(cherry picked from commit 49e9a26e77)
2017-09-28 13:21:28 +02:00
Robin Gloster
38fd0a2f23 Revert "dockerTools.buildImage: Switch to the format image generated by Skopeo"
This reverts commit 35f205a4b6.

This does not use a standard format and by that breaks mesos

(cherry picked from commit dabb296c76)
2017-09-28 13:21:28 +02:00
lassulus
604aed80a4 electron-cash: init at 2.9.3
(cherry picked from commit 64d63907d8)
2017-09-28 13:20:58 +02:00
Yann Hodique
e3b405b521 hugo: 0.27.1 -> 0.29
(cherry picked from commit b3433aba3a)
2017-09-28 13:20:43 +02:00
Mikael Brockman
743a1d5609 hsevm: project was renamed to hevm
This also upgrades the hsevm package from v0.6.4 to v0.8.5.

The project `dapp` which depends on hsevm was also updated to use the
new name, so I have also upgraded that package from version v0.5.3 to
v0.5.7.

I also added a `dontCheck` to a Hackage dependency because its test
suite depends on Git and runs a bunch of Git repository manipulations.

(cherry picked from commit 74edd2c5db)
2017-09-28 13:20:23 +02:00
amorsillo
c92059e422 mongodb-tools: 3.0.12 -> 3.5.13 (#29884)
* Upgrade mongodb-tools to 3.5.13 with ssl

* mongodb-tools: fix go references

(cherry picked from commit b46b0468ca)
2017-09-28 13:19:10 +02:00
Orivej Desh
55b305a94d go: fix tests and impurity
(cherry picked from commit 589574e5c9)
2017-09-28 13:18:29 +02:00
Daiderd Jordan
f1955bf826 go: fix darwin build
(cherry picked from commit 57ef1a3564)
2017-09-28 13:18:25 +02:00
Charles Strahan
bf5c474db9 go: init 1.9 (and set as default)
(cherry picked from commit 3189b01647)
2017-09-28 13:18:15 +02:00
Orivej Desh
a2cf76a122 envoy: mark as broken
building
Extracting Bazel installation...
Loading:
Analyzing: target //source/exe:envoy-static
ERROR: java.io.IOException: Could not read the crosstool configuration file 'CROSSTOOL file /tmp/nix-build-envoy-1.3.0.drv-0/envoy-v1.3.0-src/.home/.cache/bazel/_bazel_nixbld1/cbe181aaebf3d7253cbcf6057028e514/external/local_config_cc/CROSSTOOL', because of a parser error (945:1: Expected identifier. Found '%')
INFO: Elapsed time: 3.065s
FAILED: Build did NOT complete successfully
builder for ‘/nix/store/09wh9hd81529pgr3ddwfw68higfzkfgr-envoy-1.3.0.drv’ failed with exit code 2
error: build of ‘/nix/store/09wh9hd81529pgr3ddwfw68higfzkfgr-envoy-1.3.0.drv’ failed

(cherry picked from commit 49a060ea1f)
2017-09-28 13:17:44 +02:00
Orivej Desh
2f2d1af65b docker: fix docker_17_06 build
Broken by #29843

(cherry picked from commit f1ffca9ac6)
2017-09-28 13:15:38 +02:00
Cray Elliott
01a800595b nvidia-x11: 384.69 -> 384.90
(cherry picked from commit 56d1a14419)
2017-09-28 13:13:59 +02:00
Joachim Fasting
0aa0af6d8b tinycc: 0.9.27pre-20170911 -> 0.9.27pre-20170924
Improves `long` handling

(cherry picked from commit 35c15d4a61)
2017-09-28 13:13:27 +02:00
Nikolay Amiantov
5fc4188780 octoprint-plugins.m33-fio: 1.20 -> 1.21
(cherry picked from commit c766092193)
2017-09-28 13:13:21 +02:00
Franz Pletz
9a10cd16dc network-interfaces: device routes for default gateway
Iff interface is set, it makes sense to add device route by default.

(cherry picked from commit d0435ba032)
2017-09-28 13:13:04 +02:00
Joerg Thalheim
a1f349b401 bitcoin-abc: build against qt5
(cherry picked from commit 589cff44bc)
2017-09-28 13:12:38 +02:00
lassulus
2d4e9aca23 bitcoin-abc: init at 0.15.0
(cherry picked from commit d82578addb)
2017-09-28 13:12:33 +02:00
Ryan Mulligan
0554733f57 nixos/monit: install monit as system package, use default config file path
(cherry picked from commit c6f513b56a)
2017-09-28 13:12:21 +02:00
Silvan Mosberger
890ab83a8b xwinwrap: init at 4
(cherry picked from commit 5a9e28190c)
2017-09-28 13:12:03 +02:00
Robin Gloster
938fcba622 mesos test: fix python handling
Still does not succeed but advances further

(cherry picked from commit 30d09f717aa94a78105bff22da548b904887b394)
(cherry picked from commit d05b0b6b70)
2017-09-28 13:11:51 +02:00
Samuel Leathers
3544c4f6da mesos: 1.1.1 -> 1.4.0
(cherry picked from commit 80021094b7)
2017-09-28 13:11:35 +02:00
Pascal Bach
1e137755f4 ipxe: 20160831 -> 20170922
(cherry picked from commit ece9245a4d)
2017-09-28 13:11:04 +02:00
Yegor Timoshenko
faf6166b4f snes9x-gtk: 1.53 -> 1.54.1
(cherry picked from commit 22b0c966aa)
2017-09-28 13:10:57 +02:00
Robin Gloster
179b357a66 freebayes: clean up build
(cherry picked from commit 7cbf3a27de)
2017-09-28 13:10:37 +02:00
Samuel Leathers
9bed9124e3 freebayes: 1.1.0 -> 2017-08-23
(cherry picked from commit a3e2ecd7f7)
2017-09-28 13:10:30 +02:00
José Romildo Malaquias
a7ca4e2909 lxqt.screengrab: 2017-02-18 -> 1.97 (#29835)
(cherry picked from commit 7d883056a0)
2017-09-28 13:10:23 +02:00
Tim Steinbach
34af32d860 i3-gaps: 4.14 -> 4.14.1
(cherry picked from commit bee055fa96)
2017-09-28 13:10:10 +02:00
Tim Steinbach
e0ee3d01e6 i3: 4.14 -> 4.14.1
(cherry picked from commit fc7f4f6fc3)
2017-09-28 13:10:05 +02:00
volth
8473519bf3 liboping: 1.9.0 -> 1.10.0
(cherry picked from commit ad38b7c9ae)
2017-09-28 13:10:00 +02:00
PanAeon
fd1b89a142 buildGo19Package: init (#29470)
(cherry picked from commit b39c42d5d0)
2017-09-28 13:06:56 +02:00
Samuel Leathers
f2d5a450d7 opencascade: remove 6.5.5 and 6.6.0
(cherry picked from commit 672a402122)
2017-09-28 13:06:01 +02:00
Nikolay Amiantov
7ae513564a mupdf: cleanup dependencies
This slims down build inputs (notably not requiring mesa anymore).

(cherry picked from commit 47f099777c)
2017-09-28 13:05:24 +02:00
Nikolay Amiantov
29810aea4d glfw3: cleanup dependencies, propagate mesa_noglu
(cherry picked from commit 98ef62e51a)
2017-09-28 13:05:09 +02:00
Nikolay Amiantov
d6a9d78d53 glfw2: don't use mesa
(cherry picked from commit d68e9b4938)
2017-09-28 13:05:04 +02:00
Franz Pletz
dc4750b3c3 weechat: 1.9 -> 1.9.1 for CVE-2017-14727
https://lists.nongnu.org/archive/html/weechat-security/2017-09/msg00000.html
(cherry picked from commit 15189140dd)
2017-09-28 13:02:33 +02:00
Franz Pletz
94fd15e1dc openvpn: 2.4.3 -> 2.4.4 for CVE-2017-12166
https://community.openvpn.net/openvpn/wiki/CVE-2017-12166
(cherry picked from commit 8e4586d077)
2017-09-28 12:28:02 +02:00
Sukant Hajra
3b83be98be hdf5: remove references to stdenv.cc
The build provides as text a summary of the build, including the
absolute path of the compiler used for compilation.  Unfortunately, this
pulls in stdenv.cc as a transitive closure.

So this change just calls remove-references-to as a postInstall step for
the one stdenv.cc dependency.

See #29889 for details.

(cherry picked from commit 405c7f9e437a89bbebc3e2663e8fcc74e69783d6)
2017-09-28 10:42:19 +02:00
Bjørn Forsman
772d5c03c0 nixos/iso-image.nix: add top-level /version.txt file
This makes it easy to identify which NixOS version is written to an USB
stick without actually booting it.

(cherry picked from commit 3c6eb3a247)
2017-09-28 08:11:30 +02:00
Robin Gloster
64a73dfc08 elasticsearch: use jre_headless
(cherry picked from commit c57e5d1aa9)
2017-09-28 04:17:20 +02:00
volth
c868d427cb nixos/tinc: add "restartTriggers" back
Add "restartTriggers" back to restart the Tinc daemon when its peer is removed.
Reverted #27660
2017-09-28 00:58:15 +01:00
Niklas Hambüchen
e9bbe85605 consul service: Restart on failure.
Consul is a service you typically want to have running all the time;
it's not supposed to quit by itself.

(cherry picked from commit f4c53f1940)

Closes #29861.
2017-09-28 00:44:55 +02:00
makefu
e1bcebfd2a udpt: 2016-02-20 -> 2017-09-27
(cherry picked from commit 9636e75464)
2017-09-28 00:44:55 +02:00
Nick Novitski
e5ebf5cdc9 youtube-dl: 2017.09.15 -> 2017.09.24 (#29866)
(cherry picked from commit ff15b852c1)
2017-09-28 00:44:55 +02:00
Yann Hodique
31bc7c0075 dgraph: 0.8.1 -> 0.8.2
(cherry picked from commit d02fac35a5)
2017-09-28 00:44:54 +02:00
Yann Hodique
bf87b8091d lftp: 4.8.0 -> 4.8.2
(cherry picked from commit ae259ff83b)
2017-09-28 00:44:54 +02:00
Rostislav Beneš
33494a75d7 nixos/xserver,gdm: let GDM handle X server verbosity.
(cherry picked from commit 0cad98dde1)
2017-09-28 00:44:54 +02:00
Rostislav Beneš
4500e11fda nixos/gdm,nvidia: new options to enable GDM on Wayland and disabling it for nvidia drivers.
(cherry picked from commit 4ef82339c9)
2017-09-28 00:44:53 +02:00
Rostislav Beneš
9e280b0c16 nixos/nvidia: populating /dev with nvidia devices at boot
(cherry picked from commit 4f91397c98)
2017-09-28 00:44:53 +02:00
Joachim Fasting
46c4c62373 nixos/release-notes: notable changes to the dnscrypt-proxy service
(cherry picked from commit a06f839439)
2017-09-28 00:44:53 +02:00
Franz Pletz
f76d2aa6e3 kbd service: systemd-vconsole-setup is triggered by udev
cc #22470

(cherry picked from commit 0ee866ed72)
2017-09-28 00:44:53 +02:00
Franz Pletz
2ae16ef5d7 wpa_supplicant service: restart instead of stop & start
We now wait for dhcpcd to acquire a lease but dhcpcd is restarted on
system activation. As wpa_supplicant is stopped while dhcpcd is
restarting a significant delay is introduced on systems with wireless
network connections only. This changes the wpa_supplicant service to
also be restarted together with dhcpcd in case both services were
changed.

(cherry picked from commit 725dee203a)
2017-09-28 00:44:52 +02:00
Alexander Ried
48465ae259 Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"
This reverts commit 0c81594a29.

It's no longer needed since systemd-vconsole-setup enumerates all ttys
until it finds a suitable one since systemd v234.

(cherry picked from commit 4a2442032e)
2017-09-28 00:44:52 +02:00
Marius Bergmann
b9935c7c5d znc: fix openFirewall option
The current version is broken:
- there's no `openFirewall` attribute directly in the `cfg` set
- the `port` option is an attribute of the `confOptions` set

I used the proper attribute for the firewall port and moved the `openFirewall`
option directly up to the `services.znc` set, as it's rather a general option
for the whole service than a znc-specific option (which are located inside the
`confOptions` set).
2017-09-27 23:09:56 +01:00
Joerg Thalheim
24f0aecab7 nixos: skip restarting systemd-logind to not break x11
(cherry picked from commit 23f398012b)

fixes #29579
2017-09-27 22:29:04 +01:00
Robin Gloster
455ed26f20 17.09 release notes: redis cluster mass-restart needed
see #29516

(cherry picked from commit 34750bb51c)
2017-09-27 22:15:28 +02:00
Franz Pletz
6f938a1115 postgresql: default to 9.6 like in the nixos module
(cherry picked from commit 259df64ef5)
2017-09-27 22:06:41 +02:00
Robin Gloster
81a229e0f9 Revert "postgresql: Add dev output"
Firstly this creates a cycle in 9.6 .out <-> .dev after fixing the PGXS
path.

Secondly this breaks extension handling and the pg_config as it
resolves a lot of paths relatively resulting in the following bogus
output:

BINDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/bin
DOCDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/share/doc
HTMLDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/share/doc
INCLUDEDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/include
PKGINCLUDEDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/include
INCLUDEDIR-SERVER = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/include/server
LIBDIR = /nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib
PKGLIBDIR = /nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib
LOCALEDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/share/locale
MANDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/share/man
SHAREDIR = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/share
SYSCONFDIR = /etc/postgresql
PGXS = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/nix/store/irqqq4g173g9xrk1mh12kxv0s1d8dbyh-postgresql-9.5.9' '--with-openssl' '--with-libxml' '--sysconfdir=/etc' '--libdir=/nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib' '--with-ossp-uuid' 'CC=gcc'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/nix/store/z6r0j2b4bcdfw3pck2x6ay0vvx0qzb92-libxml2-2.9.5-dev/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2
CFLAGS_SL = -fPIC
LDFLAGS = -L../../../src/common -L/nix/store/ighspl5sa3qi1zy7nkih0c9p73xjfqa6-libxml2-2.9.5/lib -Wl,--as-needed -Wl,-rpath,'/nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lxml2 -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 9.5.9

This can probably only be properly fixed by rewriting pg_config in large
parts as it does not in any way respect splitting the postgres tree and
assumes it can simply resolve paths relative to its location. This does
not even handle symlinks:

$ result-dev/bin/pg_config
BINDIR = /home/robin/dev/nixpkgs-upstream/result-dev/bin
DOCDIR = /home/robin/dev/nixpkgs-upstream/result-dev/share/doc
HTMLDIR = /home/robin/dev/nixpkgs-upstream/result-dev/share/doc
INCLUDEDIR = /home/robin/dev/nixpkgs-upstream/result-dev/include
PKGINCLUDEDIR = /home/robin/dev/nixpkgs-upstream/result-dev/include
INCLUDEDIR-SERVER = /home/robin/dev/nixpkgs-upstream/result-dev/include/server
LIBDIR = /nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib
PKGLIBDIR = /nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib
LOCALEDIR = /home/robin/dev/nixpkgs-upstream/result-dev/share/locale
MANDIR = /home/robin/dev/nixpkgs-upstream/result-dev/share/man
SHAREDIR = /home/robin/dev/nixpkgs-upstream/result-dev/share
SYSCONFDIR = /etc/postgresql
PGXS = /nix/store/csiq6zkn2c994kkdjln461jvgbka4yb1-postgresql-9.5.9-dev/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/nix/store/irqqq4g173g9xrk1mh12kxv0s1d8dbyh-postgresql-9.5.9' '--with-openssl' '--with-libxml' '--sysconfdir=/etc' '--libdir=/nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib' '--with-ossp-uuid' 'CC=gcc'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/nix/store/z6r0j2b4bcdfw3pck2x6ay0vvx0qzb92-libxml2-2.9.5-dev/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2
CFLAGS_SL = -fPIC
LDFLAGS = -L../../../src/common -L/nix/store/ighspl5sa3qi1zy7nkih0c9p73xjfqa6-libxml2-2.9.5/lib -Wl,--as-needed -Wl,-rpath,'/nix/store/85s9m7hpfzsl93wcb5gr6ii2km9mpx3z-postgresql-9.5.9-lib/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lxml2 -lssl -lcrypto -lz -lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 9.5.9

cc @edolstra

Revert "bacula: fix after postgresql output splitting"

This reverts commit 13c9cbacdd.

Revert "postgresql: fix pgxs dir in pg_config"

This reverts commit 21998d597b.

Revert "rubyGems.pg: fix postgresql path"

This reverts commit e253ae7d3a.

Revert "kea: fix path to pg_config"

This reverts commit 086c636eb7.

Revert "php: fix build wrt. new postgres.dev build output"

This reverts commit 2f23a83920.

Revert "gdal: fix path to pg_config"

This reverts commit 032c50d45b.

Revert "postgresql: Add dev output"

This reverts commit b0280f598e.

(cherry picked from commit 6b05651c20)
2017-09-27 21:59:45 +02:00
Robin Gloster
ef52776f70 bluez: remove unneeded dependencies and fix test bins
(cherry picked from commit 50fb62994b)
2017-09-27 21:27:00 +02:00
Lancelot SIX
394aa5af2b ibus-engines.hangul: add python dependency
(cherry picked from commit f39ead7c74)
2017-09-27 20:48:54 +02:00
Vladimír Čunát
9fbad9bf16 manuals: document removal of newStdcpp from steam
/cc #29180.
(cherry-picked from 4013b381b3 and f2955e4fde)
2017-09-27 20:35:16 +02:00
Lancelot SIX
86e35b7b9b ibus-anthy: fix pygobject3 dependency
(cherry picked from commit be697dca4c)
2017-09-27 20:31:56 +02:00
Michael Weiss
c35be631b4 wlc: Downgrade back to 0.0.9
Unfortunately wlc 0.0.10 seems to be the cause for segfaults on sway,
way-cooler and orbment.

This will also build wlc with all optional packages (i.e. zlib,
valgrind and doxygen).

(cherry picked from commit 2d640b9d6e)
2017-09-27 20:25:27 +02:00
Stefan Siegl
53068f41ad kea: fix path to pg_config
refs commit b0280f598e

(cherry picked from commit 086c636eb7)
2017-09-27 20:20:31 +02:00
Robin Gloster
cdf4d69b1c bacula: fix after postgresql output splitting
(cherry picked from commit 13c9cbacdd)
2017-09-27 20:10:06 +02:00
Robin Gloster
ba86884c61 Revert "ibus: Move ibus-setup to .dev"
This reverts commit af44f99dca.

ibus-with-plugins was broken by this.

cc @edolstra

(cherry picked from commit e0771a2410)
2017-09-27 19:42:53 +02:00
Robin Gloster
645c591949 postgresql: fix pgxs dir in pg_config
(cherry picked from commit 21998d597b)
2017-09-27 19:20:44 +02:00
Tim Steinbach
165bc51f41 linux: 4.13.3 -> 4.13.4
(cherry picked from commit ab3ff4af9f)
2017-09-27 13:08:51 -04:00
Tim Steinbach
67402a34d3 linux: 4.9.51 -> 4.9.52
(cherry picked from commit 2ca84cfa29)
2017-09-27 13:08:50 -04:00
Tim Steinbach
65a718c4d4 linux: Remove 4.12 (EOL)
(cherry picked from commit 964672dde5)
2017-09-27 13:08:50 -04:00
Rodney Lorrimar
86528f928a mysqlBackup service: let it work with default settings
* Grants enough privileges to the configured user so that it can run
  mysqldump.

* Adds a nixos test.

* Use systemd timers instead of a cronjob (by @fadenb).

* Creates a new user for backups by default, instead of using mysql
  user.

* Ensures that backup user has write permissions on backup location.

* Write backup to a temporary file before renaming so that a failed
  backup won't overwrite the previous backup, and so that the backup
  location will never contain a partial backup.

Breaking changes:

 * Renamed period to calendar to reflect the change in how to
   configure the backup time.

 * A failed backup will no longer result in cron sending an e-mail --
   users' monitoring systems must be updated.

Resolves #24728

(cherry picked from commit 56eba66f77)
2017-09-27 18:46:21 +02:00
Rodney Lorrimar
d2cb5cd0cd nixos/release-notes: MySQL backup service breaking changes
(cherry picked from commit 34eefdfb9d)
2017-09-27 18:46:02 +02:00
Joerg Thalheim
e8278f584f nixos/tinc: remove useless script argument
ExecStart is sufficient and more transparent to the user.

(cherry picked from commit 75ba415fbc)
2017-09-27 18:21:27 +02:00
Joerg Thalheim
3615636fa0 nixos/tinc: do not add Device= by default
tinc can figure this out based on DeviceType.
I also got `/dev/net/tun FD in bad state` after a particular upgrade.

(cherry picked from commit ad8cb0917f)
2017-09-27 18:21:22 +02:00
Joerg Thalheim
b7ebe55ea2 metasploit: use makeWrapper instead
(cherry picked from commit b775b2cd4f)
2017-09-27 18:21:14 +02:00
Eelco Dolstra
861987c70e nix-daemon: Bump the default number of build users
While it's annoying to pollute the user database with a lot of nixbld*
users, 10 users is really too low for many modern systems.

(cherry picked from commit 79d547b4bb)
2017-09-27 18:20:55 +02:00
Tristan Helmich
dc4c56ab7f emby: 3.2.30.0 -> 3.2.32.0
(cherry picked from commit 71cc54300e)
2017-09-27 18:20:38 +02:00
Robin Gloster
e6e7c0fe5a libnfs: fix eval
(cherry picked from commit c0235ef611)
2017-09-27 18:20:27 +02:00
Peter Simons
930759d024 libnfs: fix broken meta.license attribute
A license called "bsd" does not exist. Ping @peterhoeg.

(cherry picked from commit 4398872523)
2017-09-27 18:20:19 +02:00
makefu
9fc37e24dd gdal: fix path to pg_config
(cherry picked from commit 032c50d45b)
2017-09-27 17:41:51 +02:00
Tim Steinbach
57e1610901 docker: add 17.09.0-ce
(cherry picked from commit 825e417457)
2017-09-27 11:36:00 -04:00
Tim Steinbach
8f09851a98 openjdk: Fix build
(cherry picked from commit 24bed29809)
2017-09-27 11:33:50 -04:00
Matt McHenry
20aa2dc228 openjdk9: init at 9.0.0+180
* openjdk 8: code cleanup

as recommended by 0xABAB in #27194

* openjdk 9: init at ea build 176

this starts with copy of 8.nix and just updates hashes and replaces 8
with 9.  it also tweaks the version handling because we aren't dealing
with an update version yet.

* openjdk 9: adapt patches from openjdk 8

fix-java-home: surrounding code changed slightly

swing-use-gtk-jdk9: location of the file being patched changed due to
modularization

read-truststore-from-env: the code that handles the trustStore was
refactored out into a helper class in upstream commit
http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/904861872c0e

adlc_updater: this isn't present anymore

* openjdk 9: make two more warnings-as-errors non-fatal

this requires that we switch to configureFlagsArray to deal with
whitespace

the errors being suppressed are show below:

* For target support_native_java.desktop_libawt_xawt_awt_Robot.o:
/tmp/nix-build-openjdk-9ea-b176.drv-0/jdk9-jdk-9+176/jdk/src/java.desktop/unix/native/libawt_xawt/awt/awt_Robot.c: In function 'isXCompositeDisplay':
/tmp/nix-build-openjdk-9ea-b176.drv-0/jdk9-jdk-9+176/jdk/src/java.desktop/unix/native/libawt_xawt/awt/awt_Robot.c:152:50: error: embedded '\0' in format
[-Werror=format-contains-nul]
     snprintf(NET_WM_CM_Sn, sizeof(NET_WM_CM_Sn), "_NET_WM_CM_S%d\0", screenNumber);
                                                  ^
/tmp/nix-build-openjdk-9ea-b176.drv-0/jdk9-jdk-9+176/jdk/src/java.desktop/unix/native/libawt_xawt/awt/awt_Robot.c:152:50: error: embedded '\0' in format
[-Werror=format-contains-nul]
cc1: all warnings being treated as errors
* For target support_native_jdk.hotspot.agent_libsa_ps_core.o:
/tmp/nix-build-openjdk-9ea-b176.drv-0/jdk9-jdk-9+176/hotspot/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c: In function 'read_exec_segments':
/tmp/nix-build-openjdk-9ea-b176.drv-0/jdk9-jdk-9+176/hotspot/src/jdk.hotspot.agent/linux/native/libsaproc/ps_core.c:834:7: error: ignoring return value of 'pread', declared
with attribute warn_unused_result [-Werror=unused-result]
       pread(ph->core->exec_fd, interp_name, exec_php->p_filesz, exec_php->p_offset);
       ^
cc1: all warnings being treated as errors

* openjdk 9: ea+176 -> ea+180

* openjdk 9: TODO disable infinality patches, at least to start

the code being patched here seems to have changed substantially or
perhaps even disappeared altogether.  need to investigate whether
these patches are still relevant.

* openjdk 9: update installPhase for modularization

* separate jdk and jre images are now present under build/*/images

* samples have been removed (JEP 298)
  -- TODO that JEP says demos will be gone too, but it seems some are still present?

* bina directory is no longer present

* openjdk 9: TODO handle *.pf files or purge this code completely

* openjdk 9: update minimal jre components

in particular, the name of the config option for headless has changed,
per https://bugs.openjdk.java.net/browse/JDK-8163102

* TODO about echo -n vs printWords, #27427

(cherry picked from commit 02fe1207ab)
2017-09-27 11:33:49 -04:00
Robin Gloster
4d59b04bd9 rubyGems.pg: fix postgresql path
(cherry picked from commit e253ae7d3a)
2017-09-27 17:26:10 +02:00
Robin Gloster
794a22bfed urllib3: revert multiple outputs
only moved propagated build inputs to dev which broke packages depending
on it e.g. glusterfs

cc @edolstra

(cherry picked from commit d0d992a9a0)
2017-09-27 17:11:21 +02:00
WilliButz
9da34752a7 splUnstable: fix hash
(cherry picked from commit 43b7e69d13)
2017-09-27 15:35:17 +02:00
makefu
cbe02b52ba pyramid: fix propagated builds
hupper and plaster need to be propagated to dependent packages

(cherry picked from commit 3abee357e6)
2017-09-27 15:35:16 +02:00
Tristan Helmich
15c5cfd600 pythonPackages.phonenumbers: 8.8.1 -> 8.8.2
(cherry picked from commit b015f62965)
2017-09-27 15:35:16 +02:00
Rodney Lorrimar
9dd4263464 bower2nix: 3.1.1 -> 3.2.0
(cherry picked from commit 3d4ed0181e)
2017-09-27 15:35:16 +02:00
Peter Hoeg
f79ef8d63d cwiid: boy scout cleanups
(cherry picked from commit eba5dd84ef)
2017-09-27 15:35:16 +02:00
Peter Hoeg
c6ca4c3ce9 libnfs: init at 2.0.0
(cherry picked from commit 97e586b812)
2017-09-27 15:35:16 +02:00
Peter Simons
11d0942d66 nixos(spamassassin): fix trailing whitespace
(cherry picked from commit 99e24590cb)
2017-09-27 14:51:42 +02:00
Peter Simons
a30571c1cf nixos(spamassassin): provide /etc/spamassassin to fix sa-learn et al
Spamassassin expects its system-wide configuration at /etc/spamassassin, and
some user tools (like sa-learn) need to read those configuration files.
Therefore, we provide a symlink from /etc/spamassassin to the appropriate Nix
store path to make sure those tools work without the user having to pass an
elaborate --siteconfig path that, potentially, changes every time the system
updates.

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

(cherry picked from commit bfab392e6e)
2017-09-27 14:51:42 +02:00
Florian Jacob
d30e143c05 mariadb: 10.1.25 -> 10.1.26
(cherry picked from commit e911e39c26)
2017-09-27 07:30:34 -04:00
Stefan Siegl
9b4b940fb6 php: fix build wrt. new postgres.dev build output
Refs commit b0280f598e

(cherry picked from commit 2f23a83920)
2017-09-27 12:33:27 +02:00
Eelco Dolstra
ea6947d6d2 Add even more dev outputs
(cherry picked from commit 28299f669a)
2017-09-27 12:33:12 +02:00
Eelco Dolstra
a97a8771bb network-manager-applet: Don't depend on webkitgtk by default
This added significant bloat to non-Gnome systems.

(cherry picked from commit 65b04b8bef)
2017-09-27 12:33:07 +02:00
Eelco Dolstra
25b76f8c4f ibus: Move ibus-setup to .dev
This removes python3.buildEnv from the runtime closure.

(cherry picked from commit af44f99dca)
2017-09-27 12:33:02 +02:00
Eelco Dolstra
5d348cf891 firefox: Remove about:buildconfig
Storing the build configuration caused Firefox to retain a dependency
on gcc, glibc.dev and icu4c.dev.

This reduces the size of the firefox closure from 587 to 415 MiB.

(cherry picked from commit c03326445b)
2017-09-27 12:32:58 +02:00
Eelco Dolstra
0208f54229 Add more dev outputs
(cherry picked from commit 8ccce8de89)
2017-09-27 12:32:51 +02:00
Eelco Dolstra
71e6e0c1d1 emacs: Clear the environment while dumping
This reduces the closure size of Emacs from 575 to 279 MiB. Dumping
Emacs had a chance of leaking parts of the environment (such as $PATH)
into the dumped executable. This hopefully fixes it. (It's a bit hard
to tell since the effect is not deterministic.)

(cherry picked from commit cf599d3f99)
2017-09-27 12:32:33 +02:00
Joerg Thalheim
cba8066e9f libproxy: 0.4.13 -> 0.4.15
reduces closure size from ~200mb to ~100mb

fixes #29775

(cherry picked from commit 30c380556c)
2017-09-27 12:32:28 +02:00
Eelco Dolstra
bf92abb6ab Add some dev outputs
(cherry picked from commit 60aaced9a0)
2017-09-27 12:32:23 +02:00
Eelco Dolstra
d2bfefe9bf postgresql: Add dev output
This reduces the closure size of postgresql.out by 72 MiB.

(cherry picked from commit b0280f598e)
2017-09-27 12:32:18 +02:00
Eelco Dolstra
f50da7bbca kdoctools: Move bin stuff to the "out" output
In particular, this moves share/kf5 to the "out" output. This prevents
kdelibs4support from pulling kdoctools.dev into its closure (via
share/kf5/kdoctools/customization/dtd/kdex.dtd, which references
${kdoctools}/share/kf5).

This reduces the closure size of kdelibs4support by 156 MiB.

(cherry picked from commit b790a31204)
2017-09-27 12:32:13 +02:00
Robin Gloster
b06336377b gdal: fix backport 2017-09-27 00:59:35 +02:00
Dario Bertini
f9db9c8ff1 sshuttle: fix tests for darwin
(cherry picked from commit 7055b4aa45)
2017-09-26 23:47:36 +02:00
Tuomas Tynkkynen
3dcd59f164 caffe: Make 'bin' the first output
So ${caffe}/bin/foo always works in scripts.

(cherry picked from commit 9824ca6975)
2017-09-27 00:41:13 +03:00
Tuomas Tynkkynen
9a3658d6f2 imlib2: Make 'bin' the first output
(cherry picked from commit 3ee733aafb)
2017-09-27 00:20:03 +03:00
John Ericson
21d9031802 ghc prebuilt: Fix indentation
Doing this separately so the other commits are more readable

(cherry picked from commit 2d52156793)
2017-09-26 17:16:07 -04:00
John Ericson
ab9218d01c ghc prebuilt: Clean up syntax, without changes hashes
If I'm going to make a bunch more of these, I think it's a good idea to
make them more uniform first.

(cherry picked from commit a8ef3f6742)
2017-09-26 17:16:07 -04:00
John Ericson
d626fc602d ghc prebuilt: Don't hardcode the version in a few more places
This removes noise in the diff, making creating new versions easier. No
hashes should be changed.

(cherry picked from commit 17de435533)
2017-09-26 17:16:07 -04:00
John Ericson
95f22fbfc1 ghc-6.10.2-binary: Remove dead Darwin code
This looks like a WIP attempt from 2008

(cherry picked from commit d72647bc05)
2017-09-26 17:16:07 -04:00
Vaibhav Sagar
189ec715ac vim: 8.0.0442 -> 8.0.1150
(cherry picked from commit 6498ac609a)
2017-09-26 23:13:35 +02:00
Robin Gloster
0405eaf127 17.09 release notes: fix typo
(cherry picked from commit 6ab200b066)
2017-09-26 23:12:53 +02:00
Yegor Timoshenko
fdf61a4269 epsxe: fix install, 32-bit executable uses mixed case
(cherry picked from commit c3e6e9b765)
2017-09-26 23:12:45 +02:00
Yegor Timoshenko
2de0784f22 epsxe: init at 2.0.5 (#29810)
* epsxe: init at 2.0.5

* epsxe: nitpicks

(cherry picked from commit 0ddca0715a)
2017-09-26 23:10:38 +02:00
Yegor Timoshenko
b2fd3ebb2f mba6x_bl: update to 2016-12-08
(cherry picked from commit fbc8fa8b42)
2017-09-26 23:10:15 +02:00
Frederik Rietdijk
8e3dc8999d wlc: fix homepage / eval
(cherry picked from commit a33402b890)
2017-09-26 23:08:46 +02:00
Yegor Timoshenko
145eeb6809 sct: fix segfault when DISPLAY is empty, clean up derivation
(cherry picked from commit 44beb56540)
2017-09-26 23:08:28 +02:00
Michael Weiss
87557cbab6 sway: Fix the build
While the last wlc upgrade (05d79c03ec)
makes it possible to build sway 0.14.0 it also breaks the current build
of sway 0.13.0.

Unfortunately sway 0.14.0 segfaults on launch and I couldn't fix it yet
(there are multiple upstream issues as well). I'll overwrite the wlc
version for sway in order to have a usable version in nixpkgs for the
meantime.

(cherry picked from commit 676f5cb02c)
2017-09-26 23:08:13 +02:00
Michael Weiss
6b6989e552 wlc: 0.0.9 -> 0.0.10
Initially the build was failing but it seems like
4b85b23534 already fixed it.

(cherry picked from commit 05d79c03ec)
2017-09-26 23:07:20 +02:00
Michael Weiss
1ee3559c4c wlc: Refactor the code
The code was a bit messy (unused parameters, etc.) and caused some
warnings/errors which could potentially cause some problems.

(cherry picked from commit 4b85b23534)
2017-09-26 23:07:12 +02:00
taku0
d2f824f5b9 oraclejdk: add version 9
Oracle JDK 9 does not seems to contain jre directory, so oraclejre9
package now uses a dedicated archive file.

There is no 32-bit version nor arm version (yet). If Oracle releases
them, I will update the package.

(cherry picked from commit 692fcd9f53)
2017-09-26 23:06:53 +02:00
Tim Steinbach
276cddd260 skopeo: 0.1.22 -> 0.1.23
(cherry picked from commit 4ec02cc332)
2017-09-26 23:06:01 +02:00
Yegor Timoshenko
e96e0a21c6 libmirage: add to top level
(cherry picked from commit 8815b81926)
2017-09-26 23:05:15 +02:00
Tristan Helmich
aaed97d6c5 oath-toolkit: 2.6.1 -> 2.6.2
(cherry picked from commit 62597385c3)
2017-09-26 23:05:02 +02:00
Yegor Timoshenko
a9f7a2e44b clojure: correct license (three-clause BSD -> EPLv1.0)
This is retroactive. See: https://clojure.org/community/license

(cherry picked from commit 2f3af251be)
2017-09-26 23:04:43 +02:00
Tim Steinbach
03ff20e53b kotlin: 1.1.4-2 -> 1.1.50
(cherry picked from commit bec98b765d)
2017-09-26 23:03:50 +02:00
berdario
17c4f379df rhino: remove dependency on GCJ (#29759)
(cherry picked from commit 472bb9681d)
2017-09-26 23:02:30 +02:00
Peter Hoeg
df997bd717 uchiwa: 0.25.3 -> 0.26.0
(cherry picked from commit dd6591c506)
2017-09-26 23:02:16 +02:00
makefu
9e8f046940 gdal: fix path to pg_config
(cherry picked from commit 032c50d45b)
2017-09-26 23:01:54 +02:00
Joerg Thalheim
d1b41428a8 celery: fix eventlet tests
(cherry picked from commit 1b628fb023)
2017-09-26 23:01:46 +02:00
makefu
27c46a7cd9 pyramid: 1.7 -> 1.9.1
(cherry picked from commit dcc36a4a04)
2017-09-26 23:01:39 +02:00
makefu
7f532c37e4 celery: disable eventlet tests
eventlet cannot be imported in any tests because it fails to be imported
inside the sandboxed environment

(cherry picked from commit d00ba8091f)
2017-09-26 23:01:32 +02:00
makefu
a3969e2f0d oslo-config,sqlalchemy: add makefu to list of maintainers
(cherry picked from commit d7c26f24b9)
2017-09-26 23:01:26 +02:00
makefu
743e2cc3b4 oslo-service: 0.10.0 -> 1.26.0, with dependencies
oslo-service:
  needs to disable tests due to network errors when importing eventlet
  for tests ( socket.getprotobyname('tcp') -> no such protocol )
eventlet: 0.17.4 -> 0.20.0
  cannot update to 0.21.0 due to version pinning ( < 0.21.0 ) of oslo-service
monotonic: 0.4 -> 1.3
oslo-serialization: 1.10.0 -> 2.20.0
oslo-utils: 2.6.0 -> 3.29.0
oslo-concurrency: 2.7.0 -> 3.22.0
oslo-log: 1.12.1 -> 3.31.0
oslo-context: 0.7.0 -> 2.18.1
routes: 1.12.3 -> 2.4.1
webob: 1.4.1 -> 1.7.3

when updating i rewrote the package to use fetchPypi for making future
updating easier

(cherry picked from commit 78621e384c)
2017-09-26 23:01:20 +02:00
makefu
4b26ccd475 sqlalchemy-migrate: re-enable tests
(cherry picked from commit 42edc6f35e)
2017-09-26 22:54:29 +02:00
makefu
7af7e873b3 keystoneauth1: enable tests
requires a later version of betamax, bumped to 0.8.0

(cherry picked from commit 97644a9f4f)
2017-09-26 22:53:13 +02:00
makefu
e6fff35eb7 oslo-config: 4.11.0 -> 4.12.0, fix build
also updated the following dependencies:
keystoneauth1: 3.1.0 -> 3.2.0
  disabled tests which require oslo-config, oslo-test or requests-kerberos
oslo-i18n: 2.7.0 -> 3.18.0
oslotest: 1.12.0 -> 2.18.0
os-client-config: 1.8.1 -> 1.28.0
  needed to disable testing due to circular dependency with oslotest
mox3: 0.11.0 -> 0.23.0
  disable tests for py36 due to upstream bug
debtcollector: 0.9.0 -> 1.17.0
  tests enabled

extra packages:
requestsexceptions: init at 1.3.0

(cherry picked from commit 7251699081)
2017-09-26 22:52:57 +02:00
Joerg Thalheim
16ad9ed52f {zfsUnstable,splUnstable}: 2017-09-12 -> 2017-09-26
(cherry picked from commit 8fcf95f102)
2017-09-26 22:52:48 +02:00
Jörg Thalheim
b97384ac14 nixos/zfs: import encrypted datasets by default for zfsUnstable
(cherry picked from commit 9164517c18)
2017-09-26 22:52:27 +02:00
Samuel Dionne-Riel
b968e8af94 mediawiki: 1.27.3 -> 1.29.1
(cherry picked from commit 0b1c73f4da)
2017-09-26 22:49:33 +02:00
Lancelot SIX
877c957ebc pythonPackages.channels: 1.1.6 -> 1.1.8 (#29772)
(cherry picked from commit f1a2b8627e)
2017-09-26 22:49:24 +02:00
Dan Peebles
a9d62189e7 nixos-install: re-enable --chroot option
I forgot to implement it the first time around. Whoops!

(cherry picked from commit 186c120bed)
2017-09-26 21:57:01 +02:00
Jan Solanti
c7842d024d nvidia-x11: generate nvidia_icd.json from template
(cherry picked from commit 4ec3d311cb)
2017-09-26 21:54:41 +02:00
Jörg Thalheim
9726f8edf8 dino: 2017-06-21 -> 2017-09-20
(cherry picked from commit f27feb5481)
2017-09-26 19:48:58 +01:00
Franz Pletz
abaa8ce24c libressl_2_6: 2.6.0 -> 2.6.2
(cherry picked from commit 4d7d5c8c34)
2017-09-26 17:29:46 +02:00
Franz Pletz
defa5d664a imagemagick7: 7.0.6-4 -> 7.0.7-4 for multiple CVEs
Too many CVEs to list because they are not tracked upstream by release
versions.

(cherry picked from commit de4abf7054)
2017-09-26 17:29:46 +02:00
Franz Pletz
614c302796 imagemagick: 6.9.9-7 -> 6.9.9-15 for multiple CVEs
Too many CVEs to list because they are not tracked upstream by release
versions.

(cherry picked from commit 2d854c4c92)
2017-09-26 17:29:46 +02:00
Tim Steinbach
a193400216 oh-my-zsh: 2017-06-22 -> 2017-09-24
(cherry picked from commit 1c3ba450acf6739429ea24af742b5ad55479a38e)
2017-09-26 08:59:24 -04:00
Tim Steinbach
735329ab9e git: 2.14.1 -> 2.14.2
(cherry picked from commit 5a2a35aef3)
2017-09-26 08:50:22 -04:00
Rodney Lorrimar
10bb7fddb9 gnuradio: fix build for gcc6 and newer boost (#29740)
(cherry picked from commit 3766637bdd)
2017-09-26 03:31:14 +02:00
Joerg Thalheim
461fab1376 sysdig: 0.17.0 -> 0.18.0
(cherry picked from commit b064137b7b)
2017-09-26 03:30:53 +02:00
Robin Gloster
0c9f99e01b 17.09 release notes: add module changes
(cherry picked from commit 3414265efa)
2017-09-26 03:29:03 +02:00
Robin Gloster
e6f075b07e termite: fix eval 2017-09-26 02:20:58 +02:00
Jan Tojnar
edf780b54f gnome3.at-spi2-core: fix service not found error
The service was not registered as a systemd service resulting in errors
in the system journal every time a GNOME application was launched.

See: #16327
2017-09-26 00:40:57 +01:00
Daiderd Jordan
e19b5ef047 reattach-to-user-namespace: 2.5 -> 2.6
(cherry picked from commit b196241f42)
2017-09-26 01:03:07 +02:00
Thomas Tuegel
e5a864fa6d hplip: remove 3.15.9
hplip-3.15.9 has not been buildable in some time due to changes in CUPS.

(cherry picked from commit 4c09acad5c)
2017-09-26 00:34:06 +02:00
Tim Steinbach
a6e79559fa linux: 4.14-rc1 -> 4.14-rc2
(cherry picked from commit b13a6d5720)
2017-09-26 00:32:15 +02:00
Tim Steinbach
65494c8b28 linux: 4.13-rc7 -> 4.14-rc1
(cherry picked from commit c8f43edaf5)
2017-09-26 00:32:07 +02:00
Jörg Thalheim
c6f102bbce docs/python: more infos regarding failing tests
(cherry picked from commit 9d9a28f014)
2017-09-26 00:31:00 +02:00
Elis Hirwing
8b7634aa43 testssl.sh: init at 2.9.5-1
Add testssl.sh which is a nice utility for testing TLS/SSL
capabilities of servers without having to use any kind of
web-service. It's very useful for testing setups of services before
deployment and such.

(cherry picked from commit 02d9d40d99)
2017-09-26 00:27:13 +02:00
Joachim Fasting
629b3f3835 mg: 20161005 -> 20170828
(cherry picked from commit 4429559aa1)
2017-09-26 00:26:11 +02:00
Kamil Chmielewski
4b9aae63fb ponyc: 0.19.1 -> 0.19.2
https://github.com/ponylang/ponyc/issues/2248
(cherry picked from commit 5835b1a156)
2017-09-26 00:25:48 +02:00
Antoine Eiche
572a0e1b12 dockerTools.examples.nix: set NIX_PAGER=cat environment variable
(cherry picked from commit ff4d7f0fd2)
2017-09-26 00:25:24 +02:00
Antoine Eiche
1231f40731 dockerTools.buildImageWithNixDb: populate the Nix Db of the image Nix store
Currently, the contents closure is copied to the layer but there is no
nix database initialization. If pkgs.nix is added in the contents,
nix-store doesn't work because there is no nix database.

From the contents of the layer, this commit generates and loads the
database in the nix store of the container. This only works if there
is no parent layer that already have a nix store (to support several
nix layers, we would have to merge nix databases of parent layers).

We also add an example to play with the nix store inside the
container. Note it seems `more` is a missing dependency of the nix
package!

(cherry picked from commit df589a438e)
2017-09-26 00:25:24 +02:00
Peter Hoeg
83dcd01968 open-vm-tools: 10.1.0 -> 10.1.10
(cherry picked from commit 4f25b7b6b3)
2017-09-26 00:19:38 +02:00
ibor
fcfd281892 js_of_ocaml: fix jbuild (explicitly call bash) (#29749)
* js_of_ocaml: fix jbuild (explicitly call bash)

* js_of_ocaml: Use patchShebangs instead of manual patch

(cherry picked from commit 00422b2279)
2017-09-26 00:19:24 +02:00
Aneesh Agrawal
fbe380a5d2 audit: Remove openldap dependency
The openldap dependency is only used for the audisp z/OS plugin.
This is not useful on Linux, so always disable this.

(cherry picked from commit 49fc06ed0a)
2017-09-26 00:16:48 +02:00
Vladimír Čunát
b5ec075d9e perl-XML-LibXML: update and avoid failing tests
The test failures were caused by #29431: libxml-2.9.4 -> 2.9.5

(cherry picked from commit c88fa59559)
2017-09-26 00:16:27 +02:00
Orivej Desh
e9c0481881 libxml2: 2.9.4 -> 2.9.5
(cherry picked from commit 604ca93182)
2017-09-26 00:14:24 +02:00
Richard Ipsum
434a0e7e7a luxio: Add maintainer
(cherry picked from commit 3d278be9ae)
2017-09-26 00:11:15 +02:00
Joerg Thalheim
3f1ef725c3 luxio: fix package build
(cherry picked from commit dd6691aa05)
2017-09-26 00:11:03 +02:00
Richard Ipsum
88683846c6 luxio: init at 13
(cherry picked from commit d42c062821)
2017-09-26 00:10:54 +02:00
David Izquierdo
2310682c56 latte dock: 0.6.0 -> 0.7.1
(cherry picked from commit 4105d02f70)
2017-09-26 00:10:34 +02:00
David Izquierdo
ce56b5a1db tdesktop: 1.1.22 -> 1.1.23
(cherry picked from commit f79c0b8627)
2017-09-26 00:10:25 +02:00
Joerg Thalheim
3e1940744a python.pkgs.simanneal: enable tests
(cherry picked from commit dd99592952)
2017-09-26 00:10:17 +02:00
Dmitry Kalinkin
1a747a017c pythonPackages.simanneal: init at 0.4.1
(cherry picked from commit de1480e079)
2017-09-26 00:10:12 +02:00
Joerg Thalheim
cd54c92211 nixos/tinydns: default data to empty string
(not strictly required to start the service)

(cherry picked from commit 735b41c34f)
2017-09-26 00:09:24 +02:00
Matt McHenry
80e8a10c47 nixos/dnscache: add module
with improvements suggested by Jörg Thalheim <joerg@thalheim.io>

(cherry picked from commit 1b7e5eaa79)
2017-09-26 00:09:08 +02:00
Matt McHenry
e92e498ad5 nixos/tinydns: add module
with improvements suggested by Jörg Thalheim <joerg@thalheim.io>

(cherry picked from commit ab851b63da)
2017-09-26 00:08:51 +02:00
Matt McHenry
7eeda5754e djbdns: init at 1.05
(cherry picked from commit a80ef5b88a)
2017-09-26 00:08:23 +02:00
Francois-Rene Rideau
bc149176ac nfsd: add extraNfsdConfig
(cherry picked from commit 62983f5cae)
2017-09-26 00:03:09 +02:00
gnidorah
5d00e52de8 termite: fix fonts in wayland
(cherry picked from commit 42dcf914d1)
2017-09-26 00:01:22 +02:00
Kranium Gikos Mendoza
2bbc6958da gpxsee: 4.9 -> 4.14
(cherry picked from commit 12b1852301)
2017-09-26 00:00:56 +02:00
Maximilian Bosch
42349942f6 vimPlugins.xptemplate: init at 2017-04-18
(cherry picked from commit 0a5d4ca5a8)
2017-09-26 00:00:32 +02:00
Matthias Beyer
9c7c88d044 mutt: 1.9.0 -> 1.9.1
(cherry picked from commit 3491f6a873)
2017-09-26 00:00:17 +02:00
Kranium Gikos Mendoza
8a3d960bd6 pick: 1.7.0 -> 1.9.0
(cherry picked from commit f43baf94a3)
2017-09-25 23:59:34 +02:00
Itai Zukerman
9c6cabe758 plex: 1.8.4 -> 1.9.1
(cherry picked from commit e24dc4d7ba)
2017-09-25 23:59:19 +02:00
Francois-Rene Rideau
1ff620567b gerbil: 0.12-DEV -> 0.12-DEV-777-gd855915
(cherry picked from commit fc82bad4a9)
2017-09-25 23:59:02 +02:00
Francois-Rene Rideau
53779dd249 gambit: 4.8.8-f3ffeb6 -> 4.8.8-300db59
(cherry picked from commit 34739b3cc6)
2017-09-25 23:57:59 +02:00
Neil Mayhew
21934a1a9b spideroak: 6.0.1 -> 6.1.9
(cherry picked from commit 9d01b511b5)
2017-09-25 23:57:31 +02:00
Bjørn Forsman
9da04799cc vimPlugins.robotframework-vim: init at 2017-04-14
(cherry picked from commit d757d8142e)
2017-09-25 22:41:13 +02:00
Pavel Goran
a35620e5f2 nixos/gitolite: add enableGitAnnex option
(cherry picked from commit cee657f9a3)
2017-09-25 22:12:59 +02:00
Peter Hoeg
f5af8a757a pywbem: hash keeps changing - why? Embed the patch
(cherry picked from commit 23ef826139)
2017-09-25 21:32:59 +08:00
Silvan Mosberger
6a1978f7b4 nixos/radicale: fix default version (#29743)
(cherry picked from commit a8c97ad23e)
2017-09-25 14:12:43 +02:00
Joachim Fasting
66384f9e52 tor-browser-bundle-bin: optionally disable multiprocess support
Multiprocess tabs always crash, as first reported by the issue mentioned
below.  It is now consistently reproducible both on NixOS and non-NixOS
for me, so I've decided to add a toggle to conveniently disable
multiprocess support as a work-around.

Closes https://github.com/NixOS/nixpkgs/issues/27759 but does
not really fix the underlying problem ...

(cherry picked from commit 69e3817eb6)
2017-09-25 14:12:41 +02:00
Jan Malakhovski
7c80f69bb6 linuxPackages: properly propagate features and extraConfig
`kernel.override { features = ... }` didn't work before, now it works as
expected.

(cherry picked from commit 8525b78d05)
2017-09-25 14:12:40 +02:00
Franz Pletz
cc7ed96716 nixos/network-interfaces: ensure slave interfaces are up
Fixes #28620.

(cherry picked from commit 263185aa68)
2017-09-25 14:07:25 +02:00
Franz Pletz
35cbbeb146 nixos/network-interfaces: cannot delay device units
Systemd is complaining that it can't delay the startup of device units.
We have a before dependency on the respective device unit for every
netdev service, which doesn't make any sense because we create the
actual interface in this service.

(cherry picked from commit 13a110e696)
2017-09-25 14:07:24 +02:00
Franz Pletz
2d178d8793 nixos/network-interfaces: IPs must always be set
Previously, depending on the environment and the type of interface that
was created, the configured IPs of an interface wouldn't be applied on a
nixos-rebuild switch. It works after a reboot.

This patch ensures that the network-addresses service is started
either via the network-link service or if the networking target is
activated (i.e. on system activation).

Fixes #28474 #16230.

(cherry picked from commit 3a670daa98)
2017-09-25 14:07:24 +02:00
Kai Harries
d9dabb0e66 libvirt: Add qemu to runtime closure
The program `qemu-img` is needed during creation of virtual machines
with qcow2 images. Otherwise creation of such VMs (e.g. with
virt-manager) are failing.

(cherry picked from commit 32e4e2c47b)
2017-09-25 07:52:45 +02:00
Peter Hoeg
e075c65956 pywbem: changed hash
(cherry picked from commit 0353ddc5c5)
2017-09-25 09:51:50 +08:00
Peter Hoeg
6540bc5b02 pywbem: make the tests pass again with patch from upstream
(cherry picked from commit 4c496c0232)
2017-09-25 09:44:20 +08:00
Jean-François Roche
773e5ddef1 Update kbfs: 20170429.44efa06 -> 20170922.f76290 (#29716)
kbfs was not working with the lastest keybase update
(ef3cb5cc47).

We should enforce update of keybase/keybase-ui and kbfs (like done here:
f74a1e6bcb)
all together to avoid API problems.

(cherry picked from commit b50ae94ed3)
2017-09-24 18:09:10 +01:00
zimbatm
58b7abc2fc keybase: add darwin support
Fixes the cyclic dependency issue as described in #18131.

(cherry picked from commit eaa0e19a34)
2017-09-24 17:53:54 +01:00
Kranium Gikos
ad0f639d43 influxdb sevice: make postStart test work with non-localhost configurations (#29734)
make postStart test work with non-localhost configurations

(cherry picked from commit 412fa16bff)
2017-09-24 15:38:16 +01:00
Robert Scott
40b0653486 python.pkgs.pyscss: 1.3.4 -> 1.3.5
this also:
 - enables tests (properly)
 - fixes build on python 3.6

(cherry picked from commit a358c43975)
2017-09-24 15:11:09 +01:00
Joerg Thalheim
550a7c9fbb termite: use wrapGAppsHook
(cherry picked from commit 4d4c32504a)
2017-09-24 14:50:02 +01:00
Robin Gloster
49be64017f kupfer: fixup merge
This had not been backported and does not exist in 17.09 (cc @zimbatm)
2017-09-24 13:57:09 +02:00
Robin Gloster
34cc80018d kube-dns: fixup merge
Should've been removed here, is built with kubernetes.
2017-09-24 13:54:06 +02:00
Jan Tojnar
bc28875f8c gnome3: only maintain single GNOME 3 package set (#29397)
* gnome3: only maintain single GNOME 3 package set

GNOME 3 was split into 3.10 and 3.12 in #2694. Unfortunately, we barely have the resources
to update a single version of GNOME. Maintaining multiple versions just does not make sense.
Additionally, it makes viewing history using most Git tools bothersome.

This commit renames `pkgs/desktops/gnome-3/3.24` to `pkgs/desktops/gnome-3`, removes
the config variable for choosing packageset (`environment.gnome3.packageSet`), updates
the hint in maintainer script, and removes the `gnome3_24` derivation from `all-packages.nix`.

Closes: #29329

* maintainers/scripts/gnome: Use fixed GNOME 3 directory

Since we now allow only a single GNOME 3 package set, specifying
the working directory is not necessary.

This commit sets the directory to `pkgs/desktops/gnome-3`.

(cherry picked from commit 69698ec11c)
2017-09-24 12:45:23 +01:00
zimbatm
0e60332559 kubernetes-helm: 2.5.1 -> 2.6.1
(cherry picked from commit f069ee7af6)

Conflicts:
	pkgs/top-level/all-packages.nix
2017-09-24 12:40:07 +01:00
Stefan Siegl
c05c38296c owncloud-client: 2.3.2 -> 2.3.3
(cherry picked from commit 9fc87cc376)
2017-09-24 13:24:51 +02:00
Robin Gloster
1c641c46d6 systemd-tmpfiles: fix docs
We have been doing this since 4e4161c212

(cherry picked from commit 43404d9acf)
2017-09-24 13:22:15 +02:00
Peter Jones
f4653e55b2 playbar2: init at 2.5
(cherry picked from commit f1355079b9)
2017-09-24 13:06:21 +02:00
Michal Rus
7efb9fa5f9 xpad: init at 5.0.0 (#29720)
* xpad: init at 5.0.0

* xpad: wrapGAppsHook is required

(cherry picked from commit 0e71e03583)
2017-09-24 13:05:47 +02:00
Robin Gloster
24a8c6d5a4 kubernetes: fix bad merge 2017-09-24 13:05:04 +02:00
Robin Gloster
cc668d5dea kubernetes: fix hashes after dockerTools change
(cherry picked from commit 9ba024f6d8)
2017-09-24 13:05:04 +02:00
Matej Cotman
0a029ead07 kubernetes: fix tests
(cherry picked from commit 6ef8cad2a7)
2017-09-24 13:05:04 +02:00
Matej Cotman
65120b99e2 kubernetes: build e2e.test
(cherry picked from commit 1febe07de7)
2017-09-24 13:05:03 +02:00
Matej Cotman
0c7ff1e626 kubernetes: fix dns addon hashes, fix clusterDns, enable proxy on master
(cherry picked from commit 6ea272ced4)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
d4c9d7ed0e kubernetes module: refactor module system, kube-dns as module
(cherry picked from commit ddf5de5de0)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
30b99fed97 kubernetes module: seedDockerImages option for seeding docker images built with nix
(cherry picked from commit 2beadcf181)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
bbefc9eb13 kubernetes module: webhook authorization for kubelet
(cherry picked from commit 9d97c92d68)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
b913ef9358 kubernetes module: fix documentation links
(cherry picked from commit 7c893623d4)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
e901b8c15e kubernetes module: add featureGates option
(cherry picked from commit 74f99525e0)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
bffd00bb38 kuberentes: expose kube-addons script
(cherry picked from commit f10138bd32)
2017-09-24 13:05:03 +02:00
Jaka Hudoklin
db96b84055 kubernetes: 1.6.4 -> 1.7.1
(cherry picked from commit bff428616a)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
0c543a52ff cni: 0.3.0 -> 0.5.2
(cherry picked from commit ff6413850b)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
f8971667d1 kubernetes module: kubelet, add socat to path for kubectl portforward
(cherry picked from commit 55dbbfd899)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
613cc03b62 kubernetes module: enable leader elect by default
(cherry picked from commit 8e48fff268)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
0603b6c6f1 kubernetes module: add storage and tolerations addmission controllers
(cherry picked from commit 856ca7347f)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
77f08ce157 kubernetes module: fix cidr ranges
(cherry picked from commit d842d539d9)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
cec76e3b8a kubernetes module: default auth mode to only RBAC
(cherry picked from commit b25d155976)
2017-09-24 13:05:02 +02:00
Jaka Hudoklin
c75998c202 kubernetes module: add support for common CA file
(cherry picked from commit c2622910ab)
2017-09-24 13:05:01 +02:00
Jaka Hudoklin
99af0a66e5 kubernetes module: per service kubeconfig support
(cherry picked from commit c96ca5f3bd)
2017-09-24 13:05:01 +02:00
Jaka Hudoklin
11bbff3883 kubernetes module: flannel support, minor fixes
- add flannel support
- remove deprecated authorizationRBACSuperAdmin option
- rename from deprecated poratalNet to serviceClusterIpRange
- add nodeIp option for kubelet
- kubelet, add br_netfilter to kernelModules
- enable firewall by default
- enable dns by default on node and on master
- disable iptables for docker by default on nodes
- dns, restart on failure
- update tests

and other minor changes

(cherry picked from commit 7dfeac88ac)
2017-09-24 13:05:01 +02:00
Matej Cotman
29617dfc97 kubernetes: fix minor issues
(cherry picked from commit 8e14e978c8)
2017-09-24 13:05:01 +02:00
Matej Cotman
4b93a73f32 kubernetes: add tests
(cherry picked from commit 7f9d1a7aaf)
2017-09-24 13:05:01 +02:00
Matej Cotman
05dc4e6bf6 kubernetes: update service
(cherry picked from commit ed322f4235)
2017-09-24 13:05:01 +02:00
Matej Cotman
dc596ef734 kube-dns: 1.14.1
(cherry picked from commit 7332179285)
2017-09-24 13:05:01 +02:00
Jaka Hudoklin
51f0056f85 kubernetes module: authorization improvements
(cherry picked from commit 90d5468ad6)
2017-09-24 13:05:01 +02:00
Florian Jacob
4fad98082e tinc: 1.0.31 -> 1.0.32
(cherry picked from commit 8704e82eba)
2017-09-24 13:05:00 +02:00
Robin Gloster
5f41bf128c maintainers/hydra-eval-failures: fix with new lib
lib/maintainers.nix now is a function

(cherry picked from commit 1554282290)
2017-09-24 13:05:00 +02:00
Matt McHenry
3b03b528ec minecraft-server: 1.12 -> 1.12.2
(cherry picked from commit aedfc0d8d3)
2017-09-24 13:05:00 +02:00
Pascal Bach
b662fcd5f4 riot-web: 0.12.5 -> 0.12.6
(cherry picked from commit 8a249c51b6)
2017-09-24 13:05:00 +02:00
danbst
a164105477 salt: 2016.11.5 -> 2017.7.1, patch fix
The libcrypto patch didn't work well with `salt-ssh` (that code failed on
remote machines), so let's make Nix-based library lookup as fallback.

https://github.com/saltstack/salt/issues/43350
(cherry picked from commit a5b8c0c2de)
2017-09-24 13:05:00 +02:00
Joachim Fasting
a769d908fc encfs: 1.9.1 -> 1.9.2
See https://github.com/vgough/encfs/releases/tag/v1.9.2

(cherry picked from commit c951a0ad07)
2017-09-24 13:05:00 +02:00
Joachim Fasting
f439ce677e openafs-client: 1.6.21 -> 1.6.21.1
Per https://www.openafs.org/dl/openafs/1.6.21.1/RELNOTES-1.6.21.1
this release adds support for linux 4.13

Related to https://github.com/NixOS/nixpkgs/issues/28643

(cherry picked from commit cb94feb2d1)
2017-09-24 13:05:00 +02:00
Michael Weiss
af367259ab sshfs: 3.2.0 -> 3.3.0
(cherry picked from commit 699231ed78)
2017-09-24 13:05:00 +02:00
Joachim Fasting
be26a1c06f apulse: 0.1.6 -> 0.1.10
(cherry picked from commit c97e5f2670)
2017-09-24 13:04:59 +02:00
Michael Weiss
d020624a16 fuse3: 3.1.1 -> 3.2.0
(cherry picked from commit 1a9467edd5)
2017-09-24 13:04:59 +02:00
mimadrid
f09a976729 axel: 2.13.1 -> 2.14.1
(cherry picked from commit 9c46ef3d9a)
2017-09-24 13:04:59 +02:00
mimadrid
b971730f58 entr: 3.7 -> 3.8
(cherry picked from commit 47974b2670)
2017-09-24 13:04:59 +02:00
mimadrid
2da5e958dd filezilla: 3.27.0.1 -> 3.27.1
(cherry picked from commit ece5c1482b)
2017-09-24 13:04:59 +02:00
mimadrid
47edac9039 libfilezilla: 0.10.0 -> 0.10.1
(cherry picked from commit 00bdbcd99e)
2017-09-24 13:04:59 +02:00
mimadrid
5a9ac44972 gsource: 0.44 -> 0.47
(cherry picked from commit 80a14bf5fb)
2017-09-24 13:04:59 +02:00
Robert Scott
93441f1a69 python.pkgs.python-gnupg: disable failing test test_search_keys
reading the code, it's hard to see how this test was *ever* supposed to
pass. interestingly, peeking across the fence, guix have disabled this test
too for the same reason.

note that tests don't actually run *at all* on py27 but that's a problem
for another day

(cherry picked from commit 9ca4f39b97)
2017-09-24 13:04:58 +02:00
Rodney Lorrimar
240f529269 guile-lib: Disable a test which doesn't work with Guile 2.2
Error is:

    ERROR: In procedure %resolve-variable:
    ERROR: Unbound variable: use-syntax
    FAIL: sxml.ssax.scm

Also add pkg-config so that configure script can find libguile.

Relevant to #28643

(cherry picked from commit 913e770fa8)
2017-09-24 11:35:33 +01:00
Graham Christensen
beb1f1ea91 nixos/rabbitmq: fix restarts and sasl logs
1. The chmod 400 with the preset cookie prevented restarts, as
on the second boot it would fail to write to the cookie. Oops.

2. As far as I can tell, sasl logs were disabled because of the
following error:

{error,{cannot_log_to_tty,sasl_report_tty_h,not_installed}}

Not because we actually wanted to disable them. This meant the
management plugin wasn't usable due to a bug set to be fixed in
3.7.0.

(cherry picked from commit f3b9ac73e2)
2017-09-23 17:59:07 -04:00
Daiderd Jordan
5a59b45811 libjack2: fix darwin build
(cherry picked from commit 7d98316a97)
2017-09-23 22:37:09 +02:00
Daiderd Jordan
cb78d96a64 darwin-frameworks: add impure version of CoreFoundation
(cherry picked from commit bb02b800a2)
2017-09-23 22:36:57 +02:00
Patrick Callahan
8d34b090a7 varnish: enable Darwin build
(cherry picked from commit 8be447b522)
2017-09-23 21:33:03 +02:00
Daiderd Jordan
ae583307ef qt5-qtbase: fix darwin build
Fixes #27474

(cherry picked from commit db2538fb0c)
2017-09-23 21:07:06 +02:00
Franz Pletz
7bd9dac1bd nixos-generate-config: add programs options examples
(cherry picked from commit 0f5cd17f2c)
2017-09-23 20:05:01 +02:00
Franz Pletz
8c5fdf1baf nixos/install: disable kernel debug console logging
Add another option for debugging instead. Lots of users have been
complaining about this default behaviour.

This patch also cleans up the EFI bootloader entries in the ISO.

(cherry picked from commit 3d040f9305)
2017-09-23 20:05:01 +02:00
Silvan Mosberger
aca6a2bd3f encrypted devices: add label set assertion (#29651) 2017-09-23 19:02:58 +01:00
Michael Raskin
81e4fbefda asymptote: do not install sty-files, let texlive care of it
TeXLive version is effectively identical anyway, and it caused an
unneccessary file name collision.

Fixes: #29671
(cherry picked from commit 8d001911db)
2017-09-23 19:36:01 +02:00
Robin Gloster
5825331856 fanctl, fan module: remove
This has been broken nearly all the time due to the patches needed to
iproute2 not being compatible with the newer versions we have been
shipping. As long as Ubuntu does not manage to upstream these changes
so they are maintained with iproute2 and we don't have a maintainer
updating these patches to new iproute2 versions it is not feasible to
have this available.

(cherry picked from commit 08b09fdc5c)
2017-09-23 18:00:40 +02:00
Peter Simons
bfbbfa09e1 yi: mark builds broken
Yi and its libraries have inconsistent versions because some of them are in LTS
Haskell and others aren't. Ping @fuuzetsu.
2017-09-23 17:28:27 +02:00
Bjørn Forsman
1cdb055879 nixos/gitolite: use group 'gitolite' instead of 'nogroup'
Having files (git repositories) owned by 'nogroup' is a bad idea.

(cherry picked from commit 3a58e41e43)
2017-09-23 17:13:06 +02:00
Samuel Leathers
5aa76ba06d kodi: 17.3 -> 17.4
(cherry picked from commit 694e7e08d6)
2017-09-23 17:08:12 +02:00
Peter Simons
23a021d12e Revert "nixos: add option for bind to not resolve local queries (#29503)"
This reverts commit 670b4e29ad. The change
added in this commit was controversial when it was originally suggested
in https://github.com/NixOS/nixpkgs/pull/29205. Then that PR was closed
and a new one opened, https://github.com/NixOS/nixpkgs/pull/29503,
effectively circumventing the review process. I don't agree with this
modification. Adding an option 'resolveLocalQueries' to tell the locally
running name server that it should resolve local DNS queries feels
outright nuts. I agree that the current state is unsatisfactory and that
it should be improved, but this is not the right way.
2017-09-23 16:36:05 +02:00
aszlig
f7411b81ed nixos/dovecot: Fix createMailUser implementation
This option got introduced in 7904499542
and it didn't check whether mailUser and mailGroup are null, which they
are by default.

Now we're only creating the user if createMailUser is set in conjunction
with mailUser and the group if mailGroup is set as well.

I've added a NixOS VM test so that we can verify whether dovecot works
without any additional options set, so it serves as a regression test
for issue #29466 and other issues that might come up with future changes
to the Dovecot service.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Fixes: #29466
Cc: @qknight, @abbradar, @ixmatus, @siddharthist, @peti
(cherry picked from commit 3ba2095a42)
2017-09-23 15:00:33 +02:00
Jörg Thalheim
3b2e3dfef3 traefik: link against libc, set build version/codename
this way gethostbyname() works as indented

(cherry picked from commit ad2004afd3)
2017-09-23 14:06:31 +02:00
Hamish Hutchings
c0f4005e4a Change to using source files to build traefik
(cherry picked from commit 0cc4cb96bb)
2017-09-23 14:06:25 +02:00
Hamish Hutchings
ea18f35e76 Traefik init at 1.3.8
(cherry picked from commit e0b81b9c3c)
2017-09-23 14:06:17 +02:00
Antoine Eiche
d41f20e9cc dockerTools.buildImage: Switch to the format image generated by Skopeo
We were using 'Combined Image JSON + Filesystem Changeset Format' [1] to
unpack and pack image and this patch switches to the format used by the registry.

We used the 'repository' file which is not generated by Skopeo when it
pulls an image. Moreover, all information of this file are also in the
manifest.json file.
We then use the manifest.json file instead of 'repository' file. Note
also the manifest.json file is required to push an image with Skopeo.

Fix #29636

[1] 749d90e10f/image/spec/v1.1.md (combined-image-json--filesystem-changeset-format)

(cherry picked from commit 35f205a4b6)
2017-09-23 14:00:32 +02:00
Michael Raskin
5cf35d7ae4 singular: use gcc5
Progress on: #28643
Fixes: #29682

(cherry picked from commit f7d7c7bedf)
2017-09-23 14:00:25 +02:00
Frederik Rietdijk
d5cc00eca4 python.pkgs: alias dateutil to python-dateutil
(cherry picked from commit 5e916914ef)
2017-09-23 13:58:44 +02:00
Andreas Rammhold
7dda5471d7 ferm: 2.3.1 -> 2.4.1
(cherry picked from commit e9a56e798a)
2017-09-23 13:31:06 +02:00
Joachim Fasting
8dd308c031 nixos/lock-kernel-modules: fix deferred fileSystem mounts
Ensure that modules required by all declared fileSystems are explicitly
loaded.  A little ugly but fixes the deferred mount test.

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

(cherry picked from commit 1df6cf5d1d)
2017-09-23 13:30:18 +02:00
Joachim Fasting
cf4e7c0181 nixos/hardened test: add failing test-case for deferred mounts
(cherry picked from commit bccaf63067)
2017-09-23 13:29:47 +02:00
Joachim Fasting
ce59db3423 nixos/hardened: simplify script
(cherry picked from commit 15a4f9d8ef)
2017-09-23 13:29:35 +02:00
Joachim Fasting
6a17d11ff7 snapper: 0.3.3 -> 0.5.0
(cherry picked from commit 6bf56656f0)
2017-09-23 13:29:17 +02:00
Joachim Fasting
a8120e1828 tor: enable parallel building
(cherry picked from commit fd3a9e6468)
2017-09-23 13:27:42 +02:00
Kranium Gikos Mendoza
06caa2ac3a trackballs: 1.1.4 (broken) -> 1.2.3
(cherry picked from commit 92ec5cddbc)
2017-09-23 13:25:55 +02:00
Kranium Gikos Mendoza
99d7dcdf61 giv: 20150811-git (broken) -> 0.9.26
(cherry picked from commit 5da75526f7)
2017-09-23 13:22:17 +02:00
mimadrid
8d4cb4e214 calc: 2.12.6.1 -> 2.12.6.3
(cherry picked from commit 676db57c37)
2017-09-23 09:10:01 +02:00
Daiderd Jordan
980cbaea1e lmdb: fix library id on darwin
(cherry picked from commit 84bd2f4ab0)
2017-09-22 23:35:28 +02:00
Daiderd Jordan
90a034b67c textql: fix darwin build
(cherry picked from commit 1acf6716aa)
2017-09-22 21:26:19 +02:00
Tuomas Tynkkynen
83b72a90c5 darwin: Disable yet another bunch of packages never having built successfully
cjdns: https://hydra.nixos.org/build/61134279
jonprl: https://hydra.nixos.org/build/61123711
mate.libmatemixer: https://hydra.nixos.org/build/61126968
dirac: https://hydra.nixos.org/build/61132432
idnkit: https://hydra.nixos.org/build/61123544
trousers: https://hydra.nixos.org/build/61109766
packetdrill: https://hydra.nixos.org/build/61116190
osm2pgsql: https://hydra.nixos.org/build/61118017
nawk: https://hydra.nixos.org/build/61139000

(cherry picked from commit 4acb425c39)
2017-09-22 21:20:08 +03:00
Daiderd Jordan
a8214f6e33 tw-rs: fix darwin build
(cherry picked from commit 8a0d857aa9)
2017-09-22 19:46:02 +02:00
Tuomas Tynkkynen
71f5290b4a hdf5: Re-enable on darwin
Oops, ab71280823 intended to only disable hdf5-fortran but also
disabled the others that are fine.

(cherry picked from commit a7440aa7c6)
2017-09-22 19:59:02 +03:00
Tuomas Tynkkynen
733336153d darwin: Disable another bunch of packages never having built successfully
tecoc: https://hydra.nixos.org/build/61141995
shallot: https://hydra.nixos.org/build/61145497
plink-ng: https://hydra.nixos.org/build/61130149
tshark: https://hydra.nixos.org/build/61479600
(cherry picked from commit 4b4bfbf3e5)
2017-09-22 19:59:01 +03:00
Pavel Goran
5b1d686a22 nixos/gitolite: customize .gitolite.rc declaratively
Add the `extraGitoliteRc` option to customize the `.gitolite.rc`
configuration file declaratively.

Resolves #29249.

(cherry picked from commit c73a3813fa)
2017-09-22 18:30:22 +02:00
Michael Weiss
b8919e7ba0 sshfs-fuse: Fix the build on i686-linux
The last upgrade (137142a72c) broke the
build on i686. Thanks @globin for noticing this.

(cherry picked from commit 6f02c3bf77)
2017-09-22 17:23:44 +02:00
Tuomas Tynkkynen
f5d5180562 darwin: Disable some packages that have never built successfully
mate.mate-desktop: https://hydra.nixos.org/build/61110037
gdmap: https://hydra.nixos.org/build/61144743
redsocks: https://hydra.nixos.org/build/61123106
resolv_wrapper: https://hydra.nixos.org/build/61121132
ogmtools: https://hydra.nixos.org/build/61108726
mp3info: https://hydra.nixos.org/build/61139015
lxappearance-gtk3: https://hydra.nixos.org/build/61126327
hdf5-fortran: https://hydra.nixos.org/build/61146631
pqiv: https://hydra.nixos.org/build/61124724

(cherry picked from commit ab71280823)
2017-09-22 17:27:49 +03:00
Michael Weiss
d108cafd0e pythonPackages.raven: 6.1.0 -> 6.2.0
(cherry picked from commit 8758a4dde2)
2017-09-22 16:03:47 +02:00
Joerg Thalheim
18822c3263 jetbrains.datagrip: 2017.1.5 -> 2017.2.2
(cherry picked from commit e4a859a95d)
2017-09-22 16:03:36 +02:00
Lancelot SIX
b05b750eb3 qtcreator: 4.3.1 -> 4.4.0
See http://blog.qt.io/blog/2017/09/05/qt-creator-4-4-0-released/ for
release information

(cherry picked from commit bd170e778b)
2017-09-22 16:02:58 +02:00
Joerg Thalheim
2007c5171b neomutt: fix missing libidn
(cherry picked from commit a2444a2831)
2017-09-22 16:02:14 +02:00
Brandon Barker
56d062ea3a jetbrains: update.pl fixes
* indentation, retab
  * url handling for alternative version names
  * handling for alt. download url format
  * made unknown channel error non-fatal

(cherry picked from commit 14f2e0cd36)
2017-09-22 16:02:07 +02:00
André-Patrick Bubel
f9efede475 nixos/fileystems: Fix boot fails with encrypted fs
Boot fails when a keyfile is configured for all encrypted filesystems
and no other luks devices are configured. This is because luks support is only
enabled in the initrd, when boot.initrd.luks.devices has entries. When a
fileystem has a keyfile configured though, it is setup by a custom
command, not by boot.initrd.luks.

This commit adds an internal config flag to enable luks support in the
initrd file, even if there are no luks devices configured.

(cherry picked from commit 2000fba561)
2017-09-22 16:01:53 +02:00
Mathias Schreck
1fdd60ff08 nodejs: 8.4.0 -> 8.5.0
(cherry picked from commit 9d2a2dc43e)
2017-09-22 16:01:19 +02:00
Mathias Schreck
4abcec18f9 libuv: 1.13.1 -> 1.14.1
(cherry picked from commit f4b207438d)
2017-09-22 16:01:12 +02:00
John M. Harris, Jr
5d20f56ca5 pim-data-exporter: init at 17.08.1
* Add pim-data-exporter

* pim-data-exporter: fix indentation

(cherry picked from commit b2924389ac)
2017-09-22 16:00:57 +02:00
Edward Tjörnhammar
f7182dc53d jetbrains.clion: set CL_JDK
(cherry picked from commit 4e12dbb092)
2017-09-22 16:00:06 +02:00
Russell O'Connor
8694cec1be bitcoin: 0.15.0 -> 0.15.0.1
(cherry picked from commit 6075d4ad07)
2017-09-22 15:59:58 +02:00
Cray Elliott
19a0166eb8 wineUnstable: 2.16 -> 2.17
per usual, staging has been updated as well!

(cherry picked from commit 5522cd5cb1)
2017-09-22 15:59:28 +02:00
Vincent Laporte
6aa5fbed97 abella: fix build with OCaml ≥ 4.03
(cherry picked from commit 3b7c68615e)
2017-09-22 15:59:15 +02:00
Ruben Maher
4070c95d3c nfs-utils: set /etc/krb5.keytab as default path for rpc-gssd
Currently the `rpc-gssd.service` has a `ConditionPathExists` clause that can
never be met, because it's looking for stateful data inside `/nix/store`.

`auth-rpcgss-module.service` also only starts if this file exists.

Fixes NixOS/nixpkgs#29509.

(cherry picked from commit 98a2316166)
2017-09-22 15:59:06 +02:00
Thomas Mader
d59fd99b90 dmd: Disable check phase because some tests are not working if build has
sandboxing enabled

(cherry picked from commit 4535008a4c)
2017-09-22 15:57:50 +02:00
Thomas Mader
6fd611c5ba dmd: Fix bootstrap dmd to build with sandboxing of nixUnstable
(cherry picked from commit 8fa1b39279)
2017-09-22 15:57:39 +02:00
Ben Darwin
f36c13564f ants: bump version and fix sandboxed build
(cherry picked from commit c7bbe471b0)
2017-09-22 15:57:21 +02:00
Jörg Thalheim
4d86845c68 assh: add openssh to PATH
(cherry picked from commit 81569ecd72)
2017-09-22 15:56:56 +02:00
Diego Zamboni
631bed3947 assh: init at 2.6.0
Powerful wrapper around ssh.

(cherry picked from commit 334dfc3086)
2017-09-22 15:56:47 +02:00
Michael Weiss
c1c0717f81 sshfs-fuse: 2.10 -> 3.2.0
(cherry picked from commit 137142a72c)
2017-09-22 15:55:09 +02:00
Michael Weiss
586db45da0 fuse3: init at 3.1.1
This includes fuse-common (fusePackages.fuse_3.common) as recommended by
upstream. But while fuse(2) and fuse3 would normally depend on
fuse-common we can't do that in nixpkgs while fuse-common is just
another output from the fuse3 multiple-output derivation (i.e. this
would result in a circular dependency). To avoid building fuse3 twice I
decided it would be best to copy the shared files (i.e. the ones
provided by fuse(2) and fuse3) from fuse-common to fuse (version 2) and
avoid collision warnings by defining priorities. Now it should be
possible to install an arbitrary combination of "fuse", "fuse3", and
"fuse-common" without getting any collision warnings. The end result
should be the same and all changes should be backwards compatible
(assuming that mount.fuse from fuse3 is backwards compatible as stated
by upstream [0] - if not this might break some /etc/fstab definitions
but that should be very unlikely).

My tests with sshfs (version 2 and 3) didn't show any problems.

See #28409 for some additional information.

[0]: https://github.com/libfuse/libfuse/releases/tag/fuse-3.0.0

(cherry picked from commit 351f5fc585)
2017-09-22 15:54:59 +02:00
Joachim Fasting
47d2582533 hydra: 2017-07-27 -> 2017-09-14
Builds against recent nixUnstable

(cherry picked from commit 3e96cee147)
2017-09-22 15:54:23 +02:00
Pascal Bach
85ae319351 gluster service: use str instead of path for private key
This pervents the user from accidently commiting the key to the nix store.
If providing a path instead of a string.

(cherry picked from commit 8ed758696c)
2017-09-22 15:53:49 +02:00
Pascal Bach
5f996d59d9 glusterfs service: add support for TLS communication
TLS settings are implemented as submodule.

(cherry picked from commit c68118ce65)
2017-09-22 15:53:35 +02:00
Pascal Bach
2f3e3c6348 riot-web: 0.12.3 -> 0.12.5
(cherry picked from commit 50f12373af)
2017-09-22 15:53:15 +02:00
José Romildo Malaquias
f1e01bc2b2 google-drive-ocamlfuse: 0.6.17 -> 0.6.21
(cherry picked from commit 2bbef7658a)
2017-09-22 15:52:16 +02:00
dywedir
be0f44bd1a tokei: 6.0.1 -> 6.1.2
(cherry picked from commit 69379fcf10)
2017-09-22 15:52:05 +02:00
Théo Zimmermann
16254ddb63 compcert: fix license
The license of CompCert is not a generic "INRIA" license. It is "INRIA Non-Commercial
Agreement for the CompCert verified compiler". As unfortunate as it may seem, this
is a non-free license (clearly mentioned as such in its preamble). See also #20256.

(cherry picked from commit 8fde5790b4)
2017-09-22 15:48:24 +02:00
Théo Zimmermann
a955480320 compcert: 3.0.1 -> 3.1
Note that the fix of the VERSION file can likely be removed at the next update.

(cherry picked from commit 3370615a7f)
2017-09-22 15:48:11 +02:00
Robert Helgesson
7972f6c59a perl-Scope-Upper: 0.24 -> 0.29
(cherry picked from commit 41cca299ef)
2017-09-22 15:46:13 +02:00
Robert Helgesson
bdda999ce8 perl-File-Slurper: 0.009 -> 0.010
(cherry picked from commit 2dae9980cc)
2017-09-22 15:46:04 +02:00
Robert Helgesson
9264d3d413 svtplay-dl: 1.9.4 -> 1.9.6
(cherry picked from commit 25a2b4b3ec)
2017-09-22 15:45:58 +02:00
Edward Tjörnhammar
d699866fd2 jetbrains.jdk: style fixes, platform restriction
(cherry picked from commit 85cd648778)
2017-09-22 15:45:34 +02:00
Aleksey Kladov
c94a1f6a18 jetbrains.jdk: init at 152b970.2
(cherry picked from commit 53337c0fc8)
2017-09-22 15:45:11 +02:00
Andreas Rammhold
1df3a94254 jetbrains.webstorm: 2017.2.2 -> 2017.2.4
(cherry picked from commit ac9353b815)
2017-09-22 15:45:01 +02:00
Andreas Rammhold
5ab5ba8684 jetbrains.rider: 171.4456.1432 -> 2017.1.1
(cherry picked from commit 4948b09524)
2017-09-22 15:44:49 +02:00
Andreas Rammhold
b72287dd40 jetbrains.pycharm-professional: 2017.2.2 -> 2017.2.3
(cherry picked from commit eb363ff3dc)
2017-09-22 15:44:41 +02:00
Andreas Rammhold
5bf43ab50e jetbrains.pycharm-community: 2017.2.2 -> 2017.2.3
(cherry picked from commit 0d6b50f2eb)
2017-09-22 15:44:33 +02:00
Andreas Rammhold
491227305e jetbrains.phpstorm: 2017.2.1 -> 2017.2.2
(cherry picked from commit 5f9a4cb163)
2017-09-22 15:44:25 +02:00
Andreas Rammhold
af9fef4777 jetbrains.idea-ultimate: 2017.2.2 -> 2017.2.4
(cherry picked from commit 74d7542892)
2017-09-22 15:44:15 +02:00
Andreas Rammhold
7ed7f686a7 jetbrains.idea-community: 2017.2.2 -> 2017.2.4
(cherry picked from commit d6663a559c)
2017-09-22 15:44:09 +02:00
Andreas Rammhold
1466d9f375 jetbrains.gogland: 172.3757.46 -> 172.3968.45
(cherry picked from commit 5b3dad3b1c)
2017-09-22 15:44:00 +02:00
Andreas Rammhold
8cfa0f8a3c jetbrains.clion: 2017.2.1 -> 2017.2.2
(cherry picked from commit 42e13a85ed)
2017-09-22 15:43:52 +02:00
Neil Mayhew
f7ca2a5d47 spideroak: fix crash due to zlib version mismatch
Fixes #23960

(cherry picked from commit 4d7dd8169c)
2017-09-22 15:43:44 +02:00
Jörg Thalheim
b9e95f5c43 khal: use fetchPypi
(cherry picked from commit d5b46fdd80)
2017-09-22 15:43:33 +02:00
Matthias Beyer
e85ec8617b khal: 0.9.5 -> 0.9.7
(cherry picked from commit d697403303)
2017-09-22 15:43:22 +02:00
Diego Zamboni
50fd6b73f3 elvish: 0.9 -> 0.10; fix darwin build (#29587)
* First attempt at making elvish compile on darwin

* Fixed cyclic dependency on darwin

This fixes the "cycle detected in the references of" error when building
on darwin. The fix is based on the solution in issue #18131.

* Use version 0.10 and not 0.10.1, which is not officially released yet

(cherry picked from commit 8b8a2fd542)
2017-09-22 15:42:44 +02:00
José Romildo Malaquias
41fdc7aa34 ocamlfuse: 2.7-3 -> 2.7.1_cvs5 (#29606)
(cherry picked from commit 595d92eb7a)
2017-09-22 15:42:23 +02:00
Linus Heckemann
d5549f722d oil: 0.0.0 -> 0.1.0
(cherry picked from commit 6988537835)
2017-09-22 15:41:55 +02:00
Robert Schütz
92fc55b281 texworks: init at 0.6.2
(cherry picked from commit 50d52ac8a8)
2017-09-22 15:41:28 +02:00
Andreas Rammhold
b1f0ae87c0 afew: git-2017-02-8 -> 1.2.0
(cherry picked from commit 559d8d4c3a)
2017-09-22 15:25:45 +02:00
Jörg Thalheim
4ec394bf1b nifticlib: use mirror for sourceforge
(cherry picked from commit aab8f8df4b)
2017-09-22 15:25:27 +02:00
Ben Darwin
31614f59f2 nifticlib: init at 2.0.0
(cherry picked from commit 0d981c5761)
2017-09-22 15:25:19 +02:00
Nick Novitski
6e4da2a7e1 gemconfig: add curb
(cherry picked from commit 5ddfcc774c)
2017-09-22 15:24:15 +02:00
Robert Schütz
828dcf805a pythonPackages.py3status: add file as a dependency
(cherry picked from commit d58a88277d)
2017-09-22 15:22:39 +02:00
Raphael Das Gupta
47bc25a916 xonsh: fix typo ("xnosh") in "enable" description
(cherry picked from commit 42d6e933d6)
2017-09-22 15:22:29 +02:00
Bas van Dijk
9858d7ee80 elk: 5.5.2 -> 5.6.1
Release notes:

* https://www.elastic.co/guide/en/elasticsearch/reference/5.6/release-notes-5.6.1.html
* https://www.elastic.co/guide/en/logstash/5.6/logstash-5-6-1.html
* https://www.elastic.co/guide/en/kibana/current/release-notes-5.6.1.html

(cherry picked from commit ea8e7ed1e3)
2017-09-22 15:22:19 +02:00
José Romildo Malaquias
6c08148ec2 tint2: 0.14.6 -> 15.1
(cherry picked from commit ee88bd3424)
2017-09-22 15:21:28 +02:00
José Romildo Malaquias
739a070db0 numix-icon-theme: 2017-01-25 -> 2017-09-17
(cherry picked from commit b9907fc6fe)
2017-09-22 15:21:17 +02:00
José Romildo Malaquias
6d263a3658 numix-icon-theme-circle: 2016-11-10 -> 17-09-13
(cherry picked from commit c40b6862f2)
2017-09-22 15:21:11 +02:00
José Romildo Malaquias
7d1ffbaf2f numix-icon-theme-square: 2016-11-23 -> 17-09-13
(cherry picked from commit 79941a3bf4)
2017-09-22 15:21:05 +02:00
José Romildo Malaquias
5ee4a2044f flat-plat: 20170605 -> 20170917
(cherry picked from commit f89ba64f00)
2017-09-22 15:20:55 +02:00
Samuel Leathers
b331778066 mqtt-bench: init at 0.3.0
(cherry picked from commit f8ad84ad23)
2017-09-22 15:19:56 +02:00
Michael Weiss
638abc6b49 gengetopt: Fix the build
Thanks @orivej for providing this fix.

Fix #28255 (the build was broken since
2bc7b4e134).

(cherry picked from commit 9182927998)
2017-09-22 15:17:44 +02:00
Tuomas Tynkkynen
5b8be60bee esptool: Fix tests in sandbox
It actually requires flake8-future-import but manages to download it
from the Internet when run outside the sandbox.

(cherry picked from commit 2c2cd34b54)
2017-09-22 15:11:39 +02:00
Tuomas Tynkkynen
4acbf1ed2b pythonPackages.flake8-future-import: Init at 0.4.3
(cherry picked from commit ecebb6090a)
2017-09-22 15:11:07 +02:00
Peter Hoeg
b347e5951b calibre: 3.5.0 -> 3.7.0
(cherry picked from commit 55c58c0826)
2017-09-22 15:09:31 +02:00
Jörg Thalheim
4eff61a87b valauncher: 1.2 -> 1.3.1
(cherry picked from commit e3141bc1b1)
2017-09-22 15:08:33 +02:00
Jörg Thalheim
0d5f45340a nvim-cm-racer: init at 2017-07-27
(cherry picked from commit 2ebfdf972f)
2017-09-22 15:07:57 +02:00
Jörg Thalheim
7d4b13f1fa vimPlugins.LanguageClient-neovim: init at 2017-09-05
(cherry picked from commit 276d234659)
2017-09-22 15:07:50 +02:00
Jean-Francois Roche
68d7d26616 openfortivpn: 1.2.0 -> 1.5.0
fixes #29578

(cherry picked from commit 0b39118494)
2017-09-22 15:07:23 +02:00
Lancelot SIX
a654fa6af9 gnupg: 2.2.0 -> 2.2.1
See http://lists.gnu.org/archive/html/info-gnu/2017-09/msg00010.html
for release information

(cherry picked from commit 4935d5f376)
2017-09-22 15:07:07 +02:00
John Ericson
dfff946215 vim: Properly categorize pkgconfig dependency
(cherry picked from commit 100db4fa3b)
2017-09-22 15:06:18 +02:00
Jörg Thalheim
2dd2baaf97 libwebsockets: revert making libuv a propagated build input
it is possible to use libwebsockets without libuv

cc @volth

(cherry picked from commit c1de354a3d)
2017-09-22 15:05:52 +02:00
Bas van Dijk
5eadc1fe7a journalbeat: 5.5.0 -> 5.6.0
(cherry picked from commit 8d07b99b96)
2017-09-22 15:05:31 +02:00
Ruben Maher
a34dc6cd1c flow: 0.54.0 -> 0.55.0
(cherry picked from commit 1787043323)
2017-09-22 15:05:25 +02:00
Peter Hoeg
eef72844de syncthing: 0.14.37 -> 0.14.38
(cherry picked from commit f170dbe16f)
2017-09-22 15:05:18 +02:00
Frank Doepper
8c853bbf67 circumvent hdaps name clash
(cherry picked from commit 28dd1158ff)
2017-09-22 15:05:10 +02:00
Frank Doepper
6f6602b93d tp_smapi with hdaps
(cherry picked from commit a3e806ef0f)
2017-09-22 15:04:58 +02:00
Samuel Leathers
91aa0f43f5 lenmus: removing custom cmakeFlags
(cherry picked from commit 2c2252247c)
2017-09-22 15:03:20 +02:00
Thomas Tuegel
c57bf23a76 alacritty: respect pre- and post-hooks of overridden phases
Failing to `runHook` when overriding phases can have unpredictable results.

fixes #29572

(cherry picked from commit 6e01011211)
2017-09-22 15:03:06 +02:00
Thomas Tuegel
63c5978fae alacritty: install desktop icon
(cherry picked from commit a50d0b719f)
2017-09-22 15:02:53 +02:00
Joerg Thalheim
053d9a4dab topydo: use throw instead of trace to not break evaluation
(cherry picked from commit f2aecac5c7)
2017-09-22 10:56:21 +01:00
Joerg Thalheim
ae26449964 topydo: really move out of python-packages
(cherry picked from commit 446f9c96f5)
2017-09-22 10:56:21 +01:00
Samuel Leathers
1c8872bfeb topydo: 0.9 -> 0.13
(cherry picked from commit be530263bc)
2017-09-22 10:56:21 +01:00
Vladimír Čunát
beacbecfd7 knot-resolver: 1.3.3 -> 1.4.0
Also drop rarely used dependencies, by default,
and utilize root server addresses from nixpkgs.

(cherry picked from commit fd56648a04)
2017-09-22 11:31:12 +02:00
timor
ee06b11141 ParaView: 4.0.1 -> 5.4.0
(cherry picked from commit 274333e222)
2017-09-22 08:32:28 +01:00
Florian Jacob
e6ca475e24 piwik: 3.1.0 -> 3.1.1
(cherry picked from commit 6aea372e28)
2017-09-21 23:54:04 +01:00
Daiderd Jordan
e53621734e transfig: cleanup and fix darwin clang
(cherry picked from commit 570c0b3a72)
2017-09-22 00:26:05 +02:00
Daiderd Jordan
c2affb9c90 vapoursynth: fix darwin build
(cherry picked from commit 62f8e255a4)
2017-09-21 22:33:15 +02:00
Pascal Bach
0269045390 node-exporter service: fix documentation for enabledCollectors
(cherry picked from commit a217d73381)
2017-09-21 21:04:57 +01:00
Daiderd Jordan
6c34d1dc26 vmmlib: fix darwin frameworks
(cherry picked from commit 7c30c83b7b)
2017-09-21 21:52:33 +02:00
Daiderd Jordan
1f60b1e18b erlang: remove erlangR16 and all versioned variants from all-packages
(re-applies commit 0fafa0d7d7)
2017-09-21 21:34:53 +02:00
Daiderd Jordan
af8d8bf049 vsqlite: fix darwin build
(cherry picked from commit bafb9c4d50)
2017-09-21 21:34:52 +02:00
Vladimír Čunát
1c6357cc0f Merge #29612: unbound: 1.6.5 -> 1.6.6
(cherry picked from commit e15123092c)
2017-09-21 21:14:18 +02:00
Thomas Tuegel
db0b50da2a hplip: fix Python wrappers
We cannot rely on wrapPythonPrograms to wrap the installed executables because
they are symlinks (which it ignores). Instead, we have to emulate it to make
the wrappers ourselves.

(cherry picked from commit 1e2ebee42a)
2017-09-21 13:59:35 -05:00
Thomas Tuegel
ae580c8dbf hplip: install PPDs where CUPS will find them
(cherry picked from commit 5ab37fb913)
2017-09-21 13:59:28 -05:00
Daiderd Jordan
fce9c33905 zroc-ice: cleanup and fix darwin build
(cherry picked from commit 1ae204d2fa)
2017-09-21 20:49:43 +02:00
Tim Steinbach
79cc48735a linux-copperhead: 4.13.2.a -> 4.13.3.a
(cherry picked from commit 28071e9d9c4f6f1bbc7818e6b46a76ec3b8002a6)
2017-09-21 14:38:00 -04:00
Jörg Thalheim
0c59c5f406 Merge pull request #29420 from roberth/release-17.09-arelle
arelle: enable only on python 3.4 (merge as necessary)
2017-09-21 19:32:37 +01:00
Robin Gloster
0ca5090fd8 gitlab: 9.5.2 -> 9.5.5
(cherry picked from commit e2822f6384)
2017-09-21 20:26:59 +02:00
rnhmjoj
1a3072133a vapoursynth-mvtools: 17 -> 19
(cherry picked from commit a7eb2e01bc)
2017-09-21 16:23:37 +01:00
rnhmjoj
80fea39662 vapoursynth: R36 -> R38
(cherry picked from commit 3f9661588b)
2017-09-21 16:23:37 +01:00
Shea Levy
4a5c1a3fe6 openldap: Use a global localstatedir
(cherry picked from commit c3b41a77e6)
2017-09-21 08:18:54 -06:00
Théophane Hufschmitt
6052d2b6cc pythonPackages.pafy: 0.5.2 -> 0.5.3.1 (#29588)
* pythonPackages.pafy: 0.5.2 -> 0.5.3.1

* pythonPackages.pafy: move to its own file

* pythonPackages.pafy: fetchurl -> fetchPypi

(cherry picked from commit e76c2c1496)
2017-09-21 12:46:32 +01:00
Thomas Tuegel
811f15305a dropbox: 34.4.22 -> 35.4.20
(cherry picked from commit b0deb1ed48)
2017-09-21 06:12:47 -05:00
Vaibhav Sagar
3f44159ae1 nginxModules.echo: 0.57 -> 0.61
This fixes #29555.

(cherry picked from commit dea2affe6c)
2017-09-21 12:03:13 +01:00
Linus Heckemann
4a17dea467 impressive: fixes and improvements
- Fix finding SDL (would previously fail unless gcc was in environment)
- Use ghostscript rather than xpdf for rendering as it has a slightly
  smaller closure
- Fix broken link for reasoning behind name change
- Add self to maintainers
- Add reference to DejaVu fonts so it can always find the OSD fonts
- Install manpage into correct location

(cherry picked from commit 05101d32c0)
2017-09-21 08:53:50 +01:00
Peter Hoeg
34efc5b056 kmscon: reset ExecStart to allow override
The getty@.service unit already has an ExecStart so we cannot simply set a new
one in order to override it or we will get this error:

systemd[1]: getty@tty1.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

Instead "reset" ExecStart by setting it to empty which is the systemd way of
doing it.

(cherry picked from commit 6558f81bc9)
2017-09-21 10:03:18 +08:00
aszlig
5f5eb7f0d8 nixos/tests/virtualbox: Fix netcat invocation
This is a backwards-incompatibility in netcat-openbsd introduced due to
bumping the netcat version to 1.130 in
a72ba661ac.

Version 1.130 no longer exits on EOF but now needs to be passed the -N
flag in order to exit on EOF.

The upstream change reads[1] like this:

  Don't shutdown nc(1)'s network socket when stdin closes. Matches
  *Hobbit*'s original netcat and GNU netcat; revert to old behaviour
  with the new -N flag if needed. After much discussion with otto
  deraadt tedu and Martin Pelikan.  ok deraadt@

Here is the diff of this change:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c.diff?r1=1.110&r2=1.111&f=h

[1]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c?rev=1.111&content-type=text/x-cvsweb-markup

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit a75265924f)
2017-09-21 03:50:20 +02:00
Samuel Leathers
00ca2b3a6c jfbview: 0.5.3 -> 0.5.4
(cherry picked from commit 2fdb8f9b8f)
2017-09-21 00:52:24 +02:00
Franz Pletz
883ea76934 unifi: 5.5.20 -> 5.6.16
(cherry picked from commit 94a5de61af)
2017-09-20 23:53:09 +02:00
Simon Lackerbauer
a4754a575f atlassian-jira: 7.4.1 -> 7.5.0
(cherry picked from commit 27ed570445)
2017-09-20 23:53:09 +02:00
Simon Lackerbauer
7d0fe7b86e atlassian-confluence: 6.3.1 -> 6.4.0
(cherry picked from commit c95e158143)
2017-09-20 23:53:09 +02:00
Robin Gloster
0fccf291f2 gitlab module: fix shell hook path
(cherry picked from commit 370ac6275e)
2017-09-20 23:53:08 +02:00
Tim Steinbach
ec43a30698 sbt: 1.0.1 -> 1.0.2
(cherry picked from commit e200cfbae1)
2017-09-20 09:42:23 -04:00
Tim Steinbach
31f048e624 vscode: 1.16.0 -> 1.16.1
(cherry picked from commit 605dba0ac9)
2017-09-20 08:41:58 -04:00
Tim Steinbach
0859004342 linux: 4.13.2 -> 4.13.3
(cherry picked from commit eab480ac3d)
2017-09-20 08:37:39 -04:00
Tim Steinbach
93862afe6b linux: 4.12.13 -> 4.12.14
(cherry picked from commit 726765404b)
2017-09-20 08:37:38 -04:00
Tim Steinbach
1eb54ed156 linux: 4.9.50 -> 4.9.51
(cherry picked from commit 7cfa6895e8)
2017-09-20 08:37:38 -04:00
Peter Hoeg
1d7ba9f7d6 mtr nixos module: wrap the proper binary
(cherry picked from commit 4b78d44ab6)
2017-09-20 20:15:44 +08:00
Rob Vermaas
eb873f6c78 Make sure dummy kernel module is loaded for hologram-agent. 2017-09-20 10:57:54 +00:00
Gauthier POGAM--LE MONTAGNER
a695feff16 jetbrains.phpstorm10: remove
(cherry picked from commit bca1c64f4afcbdb208d345ff8c322699aa4bcb38)
2017-09-20 10:48:00 +02:00
Gauthier POGAM--LE MONTAGNER
f276d4fdb5 jetbrains.idea{14,15}-{community,ultimate}: remove
(cherry picked from commit d132887ef30fcd371b0a3ee9a94c124d6ca087d5)
2017-09-20 10:48:00 +02:00
Gauthier POGAM--LE MONTAGNER
27bcf11646 jetbrains.webstorm{10,11}: remove
(cherry picked from commit 3287c23f8edb21ef35d6015f86131096eb5b6c4b)
2017-09-20 10:48:00 +02:00
Gauthier POGAM--LE MONTAGNER
9443496c8e jetbrains.ruby-mine{7,8}: remove
(cherry picked from commit 1487a344bc1de108cd933fa57862552535530b18)
2017-09-20 10:47:59 +02:00
Franz Pletz
f837532664 p11_kit: don't build documentation
This depends ultimately on texlive which is a big build and depends on
lots of libraries which often get security updates. This triggers
mass rebuilds because systemd depends on gnutls which depends on
p11_kit.

This was introduced with 93d80f1951.

(cherry picked from commit 0a2c39e205)
2017-09-19 22:30:37 +02:00
Benjamin Staffin
609290bd94 slack: 2.7.1 -> 2.8.0 (#29339)
(cherry picked from commit 7e6011083d)
2017-09-19 22:30:37 +02:00
Vincent Demeester
aed3fe9676 runc: 1.0.0-rc3 -> 1.0.0-rc4
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
(cherry picked from commit 19ba982b40)
2017-09-19 22:30:37 +02:00
dywedir
8e0e4d8343 fd: 3.0.0 -> 3.1.0
(cherry picked from commit 72129c2cb4)
2017-09-19 22:30:37 +02:00
John Mercier
2c75bfedae obnam: 1.21 -> 1.22
(cherry picked from commit 90e572f40a)
2017-09-19 22:30:37 +02:00
Edward Tjörnhammar
1564b3284e jetbrains: update.pl, make sure hashes are in base32
(cherry picked from commit add7faf539)
2017-09-19 22:30:37 +02:00
Tuomas Tynkkynen
09bf503231 qt4: Add aarch64 patch
(cherry picked from commit bc850cfed5)
2017-09-19 22:30:36 +02:00
Matthieu Coudron
e27e62b9d1 tshark: init at 2.4.0
as an alias to wireshark-cli

(cherry picked from commit bfd6d20c3e)
2017-09-19 22:30:36 +02:00
zimbatm
f8d73885c3 fixes missing attributes
(cherry picked from commit 3920a44628)
2017-09-19 22:30:36 +02:00
timor
4716b5b442 perl-Term-Animation: init at 2.6
(cherry picked from commit ccfce4b958)
2017-09-19 22:30:36 +02:00
Samuel Leathers
dd83590578 pydub 0.16.7 -> 0.20.0
(cherry picked from commit bef916338d)
2017-09-19 22:30:36 +02:00
rybern
6245eb0ab5 pythonPackages.pomegranate: init at 0.7.7 (#29338)
(cherry picked from commit 1d0c8f8687)
2017-09-19 22:30:36 +02:00
Samuel Leathers
652985b233 eve: 0.6.1 -> 0.7.4
(cherry picked from commit 6d367ba9f3)
2017-09-19 22:30:35 +02:00
Samuel Leathers
7569c375e1 pymongo: 3.0.3 -> 3.5.1
(cherry picked from commit 756cd8a6c4)
2017-09-19 22:30:35 +02:00
Ryan Mulligan
9e36b98c9c matterbridge: fix src hash
I used the wrong source hash because of some kind of metadata problem.
See https://github.com/NixOS/nixpkgs/pull/28892#issuecomment-330344570
for details.

(cherry picked from commit 20f949376f)
2017-09-19 22:30:35 +02:00
Samuel Leathers
69a76a3277 dyn: 1.5.0 -> 1.6.3
(cherry picked from commit 96bd8daebc)
2017-09-19 22:30:35 +02:00
Robert Schütz
1476291405 esptool: 1.3 -> 2.1
(cherry picked from commit 7f89abd820)
2017-09-19 22:30:35 +02:00
Samuel Leathers
58405c1332 awesome-slugify: fixes tests
(cherry picked from commit 7fa2c54a60)
2017-09-19 22:30:35 +02:00
Samuel Leathers
88c71be748 logilab_common: 0.63.2 -> 1.4.1
(cherry picked from commit dce4276d5e)
2017-09-19 22:30:34 +02:00
Samuel Leathers
ccefc74081 logilab-constraint: move to python-modules
(cherry picked from commit 4db4f70be6)
2017-09-19 22:30:34 +02:00
Aneesh Agrawal
2c1879863e radicale: Test migration functionality
This also provides an example of how to migrate.

(cherry picked from commit 28c2cea847)
2017-09-19 22:30:34 +02:00
Aneesh Agrawal
e6d5a7828f radicale: 2.1.2 -> 2.1.6
Radicale 2.1.5 is the first to support the `--verify-storage` option.

(cherry picked from commit 61de150aa8)
2017-09-19 22:30:34 +02:00
Aneesh Agrawal
3e9f43b6f3 radicale: Add extraArgs option to assist in data migration
(cherry picked from commit fcd590d116)
2017-09-19 22:30:34 +02:00
Elis Hirwing
1dad6c1010 gocode: 20170530 -> 20170903
(cherry picked from commit 0eb1fdc50a)
2017-09-19 22:30:33 +02:00
volth
64e3f1f1d3 haxe: 3.4.2 -> 3.4.3
(cherry picked from commit 9efe27ee3b)
2017-09-19 22:30:33 +02:00
Franz Pletz
10b71b2a15 newsbeuter: fix CVE-2017-14500
(cherry picked from commit 38c14d7132)
2017-09-19 22:30:33 +02:00
Franz Pletz
09227354cc gd: 2.2.4 -> 2.2.5 for multiple CVEs
Fixes:
  * CVE-2017-6362
  * CVE-2017-7890
(cherry picked from commit 0653abc07a)
2017-09-19 22:30:33 +02:00
Franz Pletz
3347e007d8 geolite-legacy: 2017-05-26 -> 2017-09-17
(cherry picked from commit c7ed26b6a9)
2017-09-19 22:30:33 +02:00
Franz Pletz
562090ebd6 mirrorbits: init at 0.4
(cherry picked from commit ad13618c9b)
2017-09-19 22:30:33 +02:00
Franz Pletz
70882471df mercurial: 4.3.1 -> 4.3.2
(cherry picked from commit 316858466a)
2017-09-19 22:30:32 +02:00
Franz Pletz
a3f35a270a ssh service: add sftpFlags option
(cherry picked from commit dc08dcf6e7)
2017-09-19 22:30:32 +02:00
Franz Pletz
58f7a2dd41 clawsMail: 3.15.0 -> 3.15.1
(cherry picked from commit a796d692c4)
2017-09-19 22:30:32 +02:00
Franz Pletz
1deeb8b7f2 matterircd: 0.11.4 -> 0.12.0
This version is compatible with our current Mattermost.

(cherry picked from commit 05b1e514bc)
2017-09-19 22:30:32 +02:00
Franz Pletz
950d032311 bluez4: remove, unused and probably vulnerable
(cherry picked from commit 94bbe7db22)
2017-09-19 22:30:32 +02:00
Franz Pletz
c8b1784ed4 bluez: 5.43 -> 5.47 for CVE-2017-1000250
Fixes #29289.

(cherry picked from commit dadb16a57f)
2017-09-19 22:30:32 +02:00
WilliButz
17f97e8c93 grafana: 4.5.0 -> 4.5.1
(cherry picked from commit 8eb3e45f37)
2017-09-19 22:30:31 +02:00
Maximilian König
baf06fd7e6 palemoon: 27.4.1 -> 27.4.2
(cherry picked from commit 460cd80729)
2017-09-19 22:30:31 +02:00
Samuel Leathers
49c2e9dc79 mpi4py: disabling tests
(cherry picked from commit 2f9cb45bd4)
2017-09-19 22:30:31 +02:00
Bastian Köcher
05c5b3b669 teamspeak_client: Adds missing dependency
(cherry picked from commit 34b1e4c3db)
2017-09-19 22:30:31 +02:00
Robert Klotzner
00b7744d46 coturn service: Fix coturn to properly come up (#29415)
properly also in case dhcpcd being used.

Without network-online.target, coturn will fail to listen on addresses that
come up with dhcpcd.

(cherry picked from commit a9f60224f8)
2017-09-19 22:30:31 +02:00
Franz Pletz
e4e7f61d8d nixos/networking: network is online if default gw set
Previously services depending on network-online.target would wait until
dhcpcd times out if it was enabled and a static network address
configuration was used. Setting the default gateway statically is enough
for the networking to be considered online.

This also adjusts the relevant networking tests to wait for
network-online.target instead of just network.target.

(cherry picked from commit b179908414)
2017-09-19 22:30:31 +02:00
Maximilian Güntner
50b5587fe5 tests: ipfs: enable autoMount tests
(cherry picked from commit 44475cae27)
2017-09-19 22:30:30 +02:00
Eric Litak
0f2484c34f ipfs: autoMount working without root
(cherry picked from commit 1a15c5d8c6)
2017-09-19 22:30:30 +02:00
Eric Litak
a8d411e3cb ipfs: workaround for upstream bug; doc fixes
(cherry picked from commit 6324317c76)
2017-09-19 22:30:30 +02:00
Florian Jacob
ddbec38741 nixos/mysql: declarative users & databases
using Unix socket authentication, ensured on every rebuild.

(cherry picked from commit 839e3c7666)
2017-09-19 22:30:30 +02:00
Russell O'Connor
daafea2788 bitcoin: 0.14.0 -> 0.15.0
(cherry picked from commit 08824d7ae0)
2017-09-19 22:30:30 +02:00
Samuel Leathers
e90b75dd2c trollius: fix tests
(cherry picked from commit 3a33ed7c46)
2017-09-19 22:30:30 +02:00
Samuel Leathers
68e20d5871 discogs_client: 2.0.2 -> 2.2.0
(cherry picked from commit 28a9f74769)
2017-09-19 22:30:30 +02:00
Kranium Gikos
66eccc7c23 influxdb service: fixup postStart script to handle TLS
(cherry picked from commit 662b409b72)
2017-09-19 22:30:29 +02:00
Justin Humm
e2197ade16 gollum service: init
(cherry picked from commit b5a5d0ba84)
2017-09-19 22:30:29 +02:00
Samuel Leathers
1ae126fd28 marionette-harness: disable for python 3
(cherry picked from commit 700b0945b1)
2017-09-19 22:30:29 +02:00
Samuel Leathers
ca4c570dfe marionette-driver: disable for python 3
(cherry picked from commit cbea57b9c7)
2017-09-19 22:30:29 +02:00
Samuel Leathers
47a8bddcac interruptingcow: 0.6 -> 0.7
(cherry picked from commit d355b55e82)
2017-09-19 22:30:29 +02:00
Bastian Köcher
45a02ffb91 teamspeak_client: 3.1.4 -> 3.1.6
(cherry picked from commit afa8c106fb)
2017-09-19 22:30:29 +02:00
Yurii Rashkovskii
192a73c5fd awesome: specify version
By default, awesome will use "devel" as a version name
(or `git describe`). This has led to awesome always
showing "devel" for its version.

Some extensions depend on version information to figure
out what features they can use.

This change overrides the version for the build from the
derivations' `version` attribute.

(cherry picked from commit 824b30a715)
2017-09-19 22:30:28 +02:00
Kranium Gikos Mendoza
0afa3c0ddb freeswitch: fix build
(cherry picked from commit 50edaffb0c)
2017-09-19 22:30:28 +02:00
Pascal Bach
594b193c7b arangodb: 3.2.2 -> 3.2.3
(cherry picked from commit 6af8b104fd)
2017-09-19 22:30:28 +02:00
Pascal Bach
f6d4769b34 squid service: intial service based on default config
(cherry picked from commit 2ed89eddf3)
2017-09-19 22:30:28 +02:00
yesbox
071e8251db netdata: 1.5.0 -> 1.7.0
(cherry picked from commit 6b3d9144b0)
2017-09-19 22:30:28 +02:00
k0ral
0bee7f3c25 youtube-dl: 2017.08.27 -> 2017.09.15
(cherry picked from commit 579a190cfd)
2017-09-19 22:30:28 +02:00
Rodney Lorrimar
f3c517d5e0 nixos/gogs: Fix module when no passwords provided
If neither database.password or database.passwordFile were provided,
it would try and fail to coerce null to a string.

This fixes the situation where there is no password for the database.

Resolves #27950

(cherry picked from commit 6460e459de)
2017-09-19 22:30:27 +02:00
Jörg Thalheim
841b32a49e libwebsockets: fix eval
(cherry picked from commit 6d423da7cc)
2017-09-19 21:16:48 +01:00
Volth
910eb529a0 mosquitto: 1.4 -> 1.4.14
fixes #29567

(cherry picked from commit 6950da832d)
2017-09-19 20:35:23 +01:00
volth
9383721f46 libwebsockets: 1.4 -> 2.3.0
(cherry picked from commit 4916f64948)
2017-09-19 20:35:23 +01:00
Graham Christensen
97452cc795 Convert libs to a fixed-point
This does break the API of being able to import any lib file and get
its libs, however I'm not sure people did this.

I made this while exploring being able to swap out docFn with a stub
in #2305, to avoid functor performance problems. I don't know if that
is going to move forward (or if it is a problem or not,) but after
doing all this work figured I'd put it up anyway :)

Two notable advantages to this approach:

1. when a lib inherits another lib's functions, it doesn't
   automatically get put in to the scope of lib
2. when a lib implements a new obscure functions, it doesn't
   automatically get put in to the scope of lib

Using the test script (later in this commit) I got the following diff
on the API:

  + diff master fixed-lib
  11764a11765,11766
  > .types.defaultFunctor
  > .types.defaultTypeMerge
  11774a11777,11778
  > .types.isOptionType
  > .types.isType
  11781a11786
  > .types.mkOptionType
  11788a11794
  > .types.setType
  11795a11802
  > .types.types

This means that this commit _adds_ to the API, however I can't find a
way to fix these last remaining discrepancies. At least none are
_removed_.

Test script (run with nix-repl in the PATH):

  #!/bin/sh

  set -eux

  repl() {
      suff=${1:-}
      echo "(import ./lib)$suff" \
          | nix-repl 2>&1
  }

  attrs_to_check() {
      repl "${1:-}" \
          | tr ';'  $'\n' \
          | grep "\.\.\." \
          | cut -d' ' -f2 \
          | sed -e "s/^/${1:-}./" \
          | sort
  }

  summ() {
      repl "${1:-}" \
          | tr ' ' $'\n' \
          | sort \
          | uniq
  }

  deep_summ() {
      suff="${1:-}"
      depth="${2:-4}"
      depth=$((depth - 1))
      summ "$suff"

      for attr in $(attrs_to_check "$suff" | grep -v "types.types"); do
          if [ $depth -eq 0 ]; then
              summ "$attr" | sed -e "s/^/$attr./"
          else
              deep_summ "$attr" "$depth" | sed -e "s/^/$attr./"
          fi
      done
  }

  (
      cd nixpkgs

      #git add .
      #git commit -m "Auto-commit, sorry" || true
      git checkout fixed-lib
      deep_summ > ../fixed-lib
      git checkout master
      deep_summ > ../master
  )

  if diff master fixed-lib; then
      echo "SHALLOW MATCH!"
  fi

  (
      cd nixpkgs
      git checkout fixed-lib
      repl .types
  )

(cherry picked from commit 152c63c9ff)
2017-09-19 10:53:10 -04:00
Peter Simons
db849d3c66 haskell-generic-builder: rename withBenchmarkDepends argument to doBenchmark
This partially undoes the change from 8788bfe762.
The 'doBenchmark' name is more consistent with the naming scheme used for
other phases, like 'doCheck', 'doHaddock', etc.

(cherry picked from commit 33e34aa95b)
2017-09-19 15:46:35 +02:00
Robin Gloster
fb16e57508 dmtcp: fix buffer overflow due to too long ld-linux.so path
fixes #29565

(cherry picked from commit 5c18c55062)
2017-09-19 13:42:48 +02:00
Joachim Fasting
4a524b55ec tor: 0.3.0.10 -> 0.3.1.7
(cherry picked from commit 1ee60e98e2)
2017-09-19 13:32:29 +02:00
dywedir
9c9a10650c feh: 2.19.3 -> 2.20
(cherry picked from commit 1b261730f2)
2017-09-19 13:32:23 +02:00
Robert Hensing
4f7e6a2c20 arelle: enable only on python 3.4 2017-09-19 13:15:10 +02:00
Rob Vermaas
06896f2648 keybase: update to 1.0.30 2017-09-19 07:34:35 +00:00
Jonathan Rudenberg
4197ff7086 kodiPlugins: fix path for shared object links
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2017-09-19 08:13:14 +02:00
Tuomas Tynkkynen
f5daefbef6 linuxPackages.mxu11x0: Mark broken on >= 4.13
https://hydra.nixos.org/build/61465503
(cherry picked from commit 779aea8868)
2017-09-19 08:43:31 +03:00
Tuomas Tynkkynen
b54190b8ac linuxPackages.cryptodev: Mark broken on >= 4.13
https://hydra.nixos.org/build/61470492
(cherry picked from commit 3e495bfd94)
2017-09-19 08:43:30 +03:00
Franz Pletz
5fa2fe91c0 Merge branch 'staging-17.09' into release-17.09 2017-09-19 01:36:17 +02:00
Rodney Lorrimar
9e0896334c pythonPackages.unidecode: 0.04.18 -> 0.04.21
Higher version is a requirement of textacy.

(cherry picked from commit 151d0fde19)
2017-09-18 23:20:32 +02:00
Daiderd Jordan
c7957215e0 gperftools: fix darwin build
(cherry picked from commit 69bf06ad6c)
2017-09-18 22:29:45 +02:00
Daiderd Jordan
17c6710100 nmap: patch vendored libz for darwin
(cherry picked from commit 6b7e103870)
2017-09-18 22:04:36 +02:00
Franz Pletz
50bd460ddc Revert "libreoffice-still: 5.2.6.2 -> 5.3.6.1"
This reverts commit fcec6aec78.
2017-09-18 20:14:22 +02:00
Franz Pletz
c9202ce956 Revert "libreoffice-fresh: 5.3.1.2 -> 5.4.1.2; fixes #29379"
This reverts commit 2c131c5e16.
2017-09-18 20:14:14 +02:00
Franz Pletz
ee18a31907 Revert "xmlsec: 1.2.23 -> 1.2.25; enable nss (for LO)"
This reverts commit ab526141b0.
2017-09-18 20:14:05 +02:00
Franz Pletz
3dba8b2a29 potrace: 1.14 -> 1.15
Fixes CVE-2017-12067 and other security issues.

Fixes NixOS/security#107.

(cherry picked from commit ede0ecdc69)
2017-09-18 20:13:44 +02:00
Frederik Rietdijk
9dee43f188 python27: support test/support
In the maintenance release bump in
90059701a8 a certain change to /test/ was
backported from Python 3:

- bpo-30207: To simplify backports from Python 3, the test.test_support
  module was converted into a package and renamed to test.support.  The
  test.script_helper module was moved into the test.support package.
  Names test.test_support and test.script_helper are left as aliases to
  test.support and test.support.script_helper.

(cherry picked from commit 96d15eaddb)
2017-09-18 19:46:41 +02:00
Frederik Rietdijk
b516a2e4fb python.pkgs.subprocess32: 3.2.6 -> 3.2.7
(cherry picked from commit bebdd7ac61)
2017-09-18 19:46:31 +02:00
Frederik Rietdijk
e532d32e03 python27: 2.7.13 -> 2.7.14
The enosys patch is not needed anymore since the patch is included in
this maintenance release.

(cherry picked from commit 90059701a8)
2017-09-18 19:46:21 +02:00
Josef Kemetmueller
f8f126b9a1 valgrind: Fix darwin build
The bzero-patch was merged upstream in
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16103, so it does no
longer apply.

Additionally - to make the build succeed on darwin systems more recent
than our nixpkgs.darwin.xnu kernel version - we need to teach the build
the version of the xnu headers we provide, instead of letting the build
figure out the actual system version using `uname -r`.

(cherry picked from commit c71fd76822)
(cherry picked from commit cab5d25d3081a6d13773264000a308a7e07938b8)
2017-09-18 18:53:54 +02:00
Franz Pletz
e7d8bc1574 apacheHttpd: fix CVE-2017-9798 (Optionsbleed)
https://blog.fuzzing-project.org/60-Optionsbleed-HTTP-OPTIONS-method-can-leak-Apaches-server-memory.html
(cherry picked from commit c9d11b8a1d)
2017-09-18 16:04:29 +02:00
gwitmond
670b4e29ad nixos: add option for bind to not resolve local queries (#29503)
When the user specifies the networking.nameservers setting in the
configuration file, it must take precedence over automatically
derived settings.

The culprit was services.bind that made the resolver set to
127.0.0.1 and ignore the nameserver setting.

This patch adds a flag to services.bind to override the nameserver
to localhost. It defaults to true. Setting this to false prevents the
service.bind and dnsmasq.resolveLocalQueries settings from
overriding the users' settings.

Also, when the user specifies a domain to search, it must be set in
the resolver configuration, even if the user does not specify any
nameservers.
2017-09-18 13:21:44 +02:00
Franz Pletz
49c3ca3f05 Revert "cppunit: 1.14.0"
This reverts commit 12f460962b.
2017-09-18 02:01:14 +02:00
Daiderd Jordan
3ff962d844 gcc: add gccStdenv for darwin
(cherry picked from commit a5168fe457)
2017-09-17 20:06:56 +02:00
Daiderd Jordan
2cbe9488ff darwin-frameworks: move fixup setup-hook
(cherry picked from commit 5a28fd660a)
2017-09-17 19:10:14 +02:00
Daiderd Jordan
f4af3c5408 darwin-frameworks: use the system CF when frameworks are used
This will get propagated down to other libraries loaded because
everything in nixpkgs references CF based on an rpath entry.

(cherry picked from commit cc1bfbd9a7)
2017-09-17 19:10:13 +02:00
Daiderd Jordan
285ed1fdae darwin-CF: use @rpath for library id and add an rpath entry for CF based on NIX_COREFOUNDATION_RPATH
(cherry picked from commit 92652b4d79)
2017-09-17 19:10:13 +02:00
lassulus
07b24cc2e5 altcoins: remove obsolete boost override
(cherry picked from commit 077dd9fca3)
2017-09-17 18:37:18 +02:00
Michael Raskin
fcec6aec78 libreoffice-still: 5.2.6.2 -> 5.3.6.1
(cherry picked from commit ea1d5e9c7a)
2017-09-17 18:33:27 +02:00
Vaibhav Sagar
4d0052dbfb nginx-modules: remove unused fetchpatch
(cherry picked from commit 70eb31c853)
2017-09-17 18:32:28 +02:00
romildo
5976b3514d gnome-shell-extensions: enable all extensions
(cherry picked from commit 349782cee4)
2017-09-17 18:31:44 +02:00
rnhmjoj
0c53e6b7b7 lua-nginx-module: 0.10.5 -> 0.10.10
(cherry picked from commit d0aa64a8e2)
2017-09-17 18:31:25 +02:00
Michael Raskin
2c131c5e16 libreoffice-fresh: 5.3.1.2 -> 5.4.1.2; fixes #29379
(cherry picked from commit 08b1bc9fcb)
2017-09-17 18:31:18 +02:00
Michael Raskin
12f460962b cppunit: 1.14.0
(cherry picked from commit 02f439d062)
2017-09-17 18:31:12 +02:00
Michael Raskin
ab526141b0 xmlsec: 1.2.23 -> 1.2.25; enable nss (for LO)
(cherry picked from commit 44db65d61c)
2017-09-17 18:30:40 +02:00
Vladimír Čunát
90b1a1ad37 gtkmm3: maintenance 3.22.0 -> 3.22.2
(cherry picked from commit 222e18698a)
2017-09-17 18:28:34 +02:00
Eelco Dolstra
96a3fda34a blender: Fix CUDA support
CUDA toolkit 8 doesn't support gcc 6, so we have to build opensubdiv
and blender with gcc 5.

(cherry picked from commit afc0218ecd)
2017-09-17 18:28:26 +02:00
Eelco Dolstra
43e2f2087c cudatoolkit: Move libcudart to a separate output
This prevents opensubdiv (and thus blender) from having all of
cudatoolkit in its closure.

(cherry picked from commit bb1c9b027d)
2017-09-17 18:28:26 +02:00
Eelco Dolstra
e7114a503f opencollada: 1.3 -> 1.6.59
(cherry picked from commit 63f3b35204)
2017-09-17 18:28:26 +02:00
Eelco Dolstra
5845606631 openimage: 1.7.12 -> 1.7.17
(cherry picked from commit 9f740f1f7c)
2017-09-17 18:27:48 +02:00
Georges Dubus
66ae29c09e nox: 0.0.5 -> 0.0.6
(cherry picked from commit 94400c0cd2)
2017-09-17 18:27:33 +02:00
aszlig
6f03d690fa krita: 3.1.4 -> 3.2.1
New features since version 3.2.0:

  * G'MIC Plugin
  * Touch Painting
  * Smart Patch Tool
  * New Brush Presets

The full release notes can be found at:

https://krita.org/en/release-notes-for-krita-3-2/

Version 3.2.1 contains these fixes:

  * Crash on startup if only OpenGL 2.1 is found: if you had to disable
    opengl for 3.2.0, you can try to enable it again
  * A crash when changing layer types in the gmic-qt plugin
  * A bug where gmic-qt could crash on odd-sized images
  * A regression where using the text tool would break the brush tool
  * The option to use the native platform's file dialogs was restored
  * A bug where selecting the line tool would disable the flow slider
  * Some issues with the LUT docker were fixed

Upstream release notes for 3.2.1:

https://krita.org/en/item/krita-3-2-1-released/

I've dropped the patch, because it was already from the upstream
development version and thus is also included in this release.

Built and tested using a few images and just playing around with a few
new features.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @abbradar, @Mic92, @kragniz
(cherry picked from commit 8180085733)
2017-09-17 18:27:14 +02:00
Joachim Fasting
15abcf6237 nixos/tests: move sysctl test to misc
(cherry picked from commit c85cf60c83)
2017-09-17 18:26:32 +02:00
Jaka Hudoklin
b677fa83d3 pkgs/telepresence: init at 0.65
(cherry picked from commit 18245fd222)
2017-09-17 18:25:54 +02:00
Ryan Mulligan
b81ef1e31d matterbridge, modules/matterbridge: init at 1.1.0
(cherry picked from commit 9c786d82f2)
2017-09-17 18:25:27 +02:00
adisbladis
6c60ce8f8b caddy: 0.10.7 -> 0.10.9
(cherry picked from commit 9ede0dea45)
2017-09-17 18:24:54 +02:00
Matt McHenry
73f34f1c7a systemd: better document enabled, wantedBy, and requiredBy (#29453)
the systemd.unit(5) discussion of wantedBy and requiredBy is in the
[Install] section, and thus focused on stateful 'systemctl enable'.
so, clarify that in NixOS, wantedBy & requiredBy are still what most
users want, and not to be confused with enabled.

(cherry picked from commit cfbac1beb4)
2017-09-17 18:24:07 +02:00
Cray Elliott
2f7733c20e zandronum: fix soundfont support, minor cleanup
also add myself to maintainers

(cherry picked from commit 8080285966)
2017-09-17 18:22:12 +02:00
Jörg Thalheim
a3793f7a1f kerberos: store state in /var/lib instead of $out/var
(cherry picked from commit 0016d925e4)
2017-09-17 18:20:51 +02:00
Tuomas Tynkkynen
545d8e7cb4 sd-image-aarch64: Increase CMA memory so RPi3 virtual console works again
(cherry picked from commit c8e7aab0c8)
2017-09-17 18:19:46 +02:00
Cray Elliott
41882d76f4 zandronum: 2.1.2 -> 3.0
remove sqlite-amalgamation and put it internal to the zandronum folder,
as it is only used by zandronum. Patches needed to avoid build impurities
and to get the correct protocol version to connect to public servers.

remove zandronum_bin as it is no longer needed

(cherry picked from commit 990ea8789d)
2017-09-17 18:19:46 +02:00
Cray Elliott
6091fa7c3d doomseeker: 1.0 -> 1.1
(cherry picked from commit ae624c89c1)
2017-09-17 18:19:46 +02:00
Daniel Fullmer
8fbd366a0c gocr: Install libraries and includes
(cherry picked from commit 6182b67228)
2017-09-17 18:19:45 +02:00
Samuel Leathers
ccc94bfd3c cram: fix ignored tests causing failures
(cherry picked from commit a4633ca5a3)
2017-09-17 18:19:45 +02:00
joachim schiele
4ddf1959d0 dovecot2: added quota, changed pop3 default
(cherry picked from commit 7904499542)
2017-09-17 18:19:45 +02:00
Jörg Thalheim
f6d4327d55 zfsUnstable: init at 2017-09-12
(cherry picked from commit 1ecf3e862f)
2017-09-17 18:19:45 +02:00
lassulus
d89d8e818c tinc_pre: 1.1pre14 -> 1.1pre15
Remove an obsolete patch
Add lassulus to maintainers
Supply the build with the correct version number and changelog

(cherry picked from commit f4dfa30d24)
2017-09-17 18:19:45 +02:00
WilliButz
48cd0f7bbf grafana: 4.4.3 -> 4.5.0
(cherry picked from commit e13e3dd2fb)
2017-09-17 18:19:45 +02:00
Maximilian Güntner
79b92d787c emscriptenfastcomp: move wrap magic to own file, use newScope
(cherry picked from commit 8550e4e520)
2017-09-17 18:19:45 +02:00
Linus Heckemann
787bf9292f nixos-install: use FIFO for system closure
This avoids running out of space in space-constrained environments,
e.g. VMs with relatively small amounts of memory and tmp on tmpfs

(cherry picked from commit 77ce02201e)
2017-09-17 18:19:44 +02:00
Linus Heckemann
d0edf75d99 nixos-install: only search for nixpkgs when needed
(cherry picked from commit 8b1f1d93fa)
2017-09-17 18:19:44 +02:00
Eelco Dolstra
887d60d5aa nix: 1.11.14 -> 1.11.15
(cherry picked from commit 6dad1f70ce)
2017-09-17 18:19:44 +02:00
Joachim Fasting
e6dfef0eda tinycc: 0.9.27pre-20170821 -> 0.9.27pre-20170911
Contains various fixes.

(cherry picked from commit 3f7ac92175)
2017-09-17 18:19:44 +02:00
Michael Fellinger
62e6dcf20b ruby: 2.4.1 -> 2.4.2 (#29417)
(cherry picked from commit 2edb7e9b2d)
2017-09-17 18:19:44 +02:00
Robert Schütz
4d2f667df3 abcMIDI: init at 2017.06.10
(cherry picked from commit 608045aed5)
2017-09-17 18:19:44 +02:00
Muhammad Herdiansyah
a45d99a1b2 neofetch: 3.2.0 -> 3.3.0
(cherry picked from commit 25944370e1)
2017-09-17 18:19:43 +02:00
Muhammad Herdiansyah
b92266c1db maintainer: change email
(cherry picked from commit 0e09b79bcc)
2017-09-17 18:19:43 +02:00
Lancelot SIX
9ce29fd755 xorriso: 1.4.6 -> 1.4.8
See http://lists.gnu.org/archive/html/info-gnu/2017-09/msg00009.html
for release information

(cherry picked from commit 259d61b34a)
2017-09-17 18:19:43 +02:00
Nadrieril
33a014211a bitlbee-facebook: 1.1.1 -> 1.1.2
(cherry picked from commit d0090c0941)
2017-09-17 18:19:43 +02:00
adisbladis
5a98afc530 go-ethereum: 1.6.7 -> 1.7.0
(cherry picked from commit 090947b285)
2017-09-17 18:19:43 +02:00
romildo
030ff06053 clearlooks-phenix: 5.0.7 -> 7.0.1
(cherry picked from commit 17c3599ee3)
2017-09-17 18:19:43 +02:00
romildo
534a0a8880 numix-gtk-theme: 2017-02-15 -> 2017-07-26
(cherry picked from commit 32f7c567cd)
2017-09-17 18:19:42 +02:00
romildo
5ba3e43924 zuki-themes: 3.24.2017-06-26 -> 3.24-2
- Update to version 3.24-2, released on 2017 Aug 3

- Remove versions for GNOME 3.22 and 3.20. The version for 3.24 should
  work with them as well.

(cherry picked from commit 6319210b8a)
2017-09-17 18:19:42 +02:00
Gabriel Ebner
ba17627adb lean: 3.2.0 -> 3.3.0
(cherry picked from commit aad00e35db)
2017-09-17 18:19:42 +02:00
Cray Elliott
f74cb90455 ffmpeg, ffmpeg-full: 3.3.3 -> 3.3.4
(cherry picked from commit 739b4091cf)
2017-09-17 18:19:42 +02:00
Tuomas Tynkkynen
0cbb125748 diffoscope: Move cbfstool and poppler_utils to bloat category
(cherry picked from commit 0dc4672d36)
2017-09-17 18:19:42 +02:00
Tuomas Tynkkynen
79862c96c0 diffoscope: Add even more tools
(cherry picked from commit 2581865717)
2017-09-17 18:19:42 +02:00
Kamil Chmielewski
ecbbef8c7b ponyc: 0.19.0 -> 0.19.1
https://github.com/ponylang/ponyc/issues/2226
(cherry picked from commit a2666e3668)
2017-09-17 18:19:41 +02:00
Peter Hoeg
2874ab06dd pdf2odt: 20141217 -> 20170207
(cherry picked from commit d29a8f25c3)
2017-09-17 18:19:41 +02:00
Jörg Thalheim
04d81781b0 vimPlugins.nvim-completion-manager: init at 2017-09-05
(cherry picked from commit 5c544b8c78)
2017-09-17 18:19:41 +02:00
Jörg Thalheim
c2769d7388 vimPlugins.vim-devicons: init at 2017-05-29
(cherry picked from commit e477fa94b5)
2017-09-17 18:19:41 +02:00
romildo
9ee486ec9d adapta-gtk-theme: 3.91.2.10 -> 3.91.2.147
(cherry picked from commit 9b985dfb2f)
2017-09-17 18:19:41 +02:00
Jörg Thalheim
fc592b13ad perlPackages.SCGI: init at 0.6
(cherry picked from commit 4addea54ae)
2017-09-17 18:19:41 +02:00
Jörg Thalheim
97e5fa4cb1 perlPackages.ProtocolHTTP2: init at 1.08
(cherry picked from commit 9b960686bf)
2017-09-17 18:19:40 +02:00
Jörg Thalheim
86071abcb9 perlPackages.HTTPDAV: init at 0.44
(cherry picked from commit 94dc132ff9)
2017-09-17 18:19:40 +02:00
Jörg Thalheim
afd1a906aa perlPackages.TermReadKey: 2.31 -> 2.37
(cherry picked from commit 068fd9fb8e)
2017-09-17 18:19:40 +02:00
Peter Hoeg
9616c99871 mtr: 0.87 -> 0.92
(cherry picked from commit 68764d50b3)
2017-09-17 18:19:40 +02:00
Robert Helgesson
a9a39a201d josm: minor cleanups
- Use `makeWrapper` to generate wrapper script.

- Use `buildCommand` instead of explicit phases.`

(cherry picked from commit 2a36c6c185)
2017-09-17 18:19:40 +02:00
Robert Helgesson
abda418b45 josm: 12545 -> 12712
(cherry picked from commit fd4d957ac4)
2017-09-17 18:19:40 +02:00
Robert Helgesson
b7bab3ca98 cloc: add myself as maintainer
(cherry picked from commit a3a8887b7f)
2017-09-17 18:19:39 +02:00
Robert Helgesson
1173b76249 cloc: 1.72 -> 1.74
(cherry picked from commit d35e4439dd)
2017-09-17 18:19:39 +02:00
zraexy
1b801b8acd streamlink: 0.7.0 -> 0.8.1
(cherry picked from commit e87a72caef)
2017-09-17 18:19:39 +02:00
AndersonTorres
d11e20300a mgba: 0.5.2 -> 0.6.0
(cherry picked from commit 4a67ee9893)
2017-09-17 18:19:39 +02:00
Peter Hoeg
7edb3f1fe5 neomutt: 20170907 -> 20170912
(cherry picked from commit addfb83852)
2017-09-17 18:19:39 +02:00
Sarah Brofeldt
56cb9ef008 s3fs: 1.80 -> 1.82
(cherry picked from commit fc2566e966)
2017-09-17 18:19:39 +02:00
geistesk
05bd6d0549 racket: 6.10 -> 6.10.1
(cherry picked from commit af2ceaf63c)
2017-09-17 18:19:38 +02:00
Frank Doepper
d54a6379ee oysttyer: init at 2.9.1
A Perl Console Twitter Client

(cherry picked from commit 9c4233f7b6)
2017-09-17 18:19:38 +02:00
Tim Steinbach
db92b49ade atom: 1.19.7 -> 1.20.0
(cherry picked from commit 3d812d2037)
2017-09-17 18:19:38 +02:00
Jan Tojnar
7dd575d610 meson: 0.41.2 → 0.42.1
(cherry picked from commit ad8e4c272a)
2017-09-17 18:19:38 +02:00
Emanuele Peruffo
ddf427ec42 epson-alc1100: init at version 1.2-0
Driver for printer Epson AcuLaser C1100

(cherry picked from commit 03187c3e15)
2017-09-17 18:19:38 +02:00
Jan Tojnar
75bc3407dd sublime3: 3126 → 3143
(cherry picked from commit 74065fc780)
2017-09-17 18:19:38 +02:00
Tuomas Tynkkynen
74ca4b651f strace: 4.18 -> 4.19
(cherry picked from commit 1e84bb90d4)
2017-09-17 18:19:37 +02:00
Yann Hodique
5bfb2a80af hugo: 0.27 -> 0.27.1
(cherry picked from commit 85f3834bad)
2017-09-17 18:19:37 +02:00
Robin Gloster
55f626fbb6 nixos/redmine: fix create role
postgresql create role no longer supports NOCREATEUSER option. See
https://www.postgresql.org/docs/9.6/static/release-9-6.html for
details.

(cherry picked from commit f5e0e94b2a)
2017-09-17 18:19:37 +02:00
Matthias Beyer
7e71499756 bean-add: 2017-04-16 -> 2017-09-13
(cherry picked from commit b0237f767e)
2017-09-17 18:19:37 +02:00
Matthias Beyer
195b25c23a rtv: 1.15.1 -> 1.18.0
Disable tests, which try to access the network.

(cherry picked from commit 8c1403066c)
2017-09-17 18:19:37 +02:00
Matthias Beyer
48aaf6237a mdp: 1.0.9 -> 1.0.10
(cherry picked from commit 495dbc2cc2)
2017-09-17 18:19:37 +02:00
Matthias Beyer
f10058e774 ctodo: 1.2 -> 1.3
(cherry picked from commit 30a1e189ac)
2017-09-17 18:19:36 +02:00
Matthias Beyer
36de5d341b buku: 3.0 -> 3.3.1
(cherry picked from commit 678c149e53)
2017-09-17 18:19:36 +02:00
Matthias Beyer
cfbe0fb72b toot: 0.13.0 -> 0.15.0
(cherry picked from commit 56cf561581)
2017-09-17 18:19:36 +02:00
Ryan Mulligan
cc7c4bb36f nixos/mattermost: fix create role
postgresql create role no longer supports NOCREATEUSER option. See
https://www.postgresql.org/docs/9.6/static/release-9-6.html for
details.

(cherry picked from commit 8585898909)
2017-09-17 18:19:36 +02:00
Ryan Mulligan
68374e59aa mattermost: 3.8.2 -> 4.1.0
(cherry picked from commit 65ee687439)
2017-09-17 18:19:36 +02:00
Gabriel Adomnicai
87a687d101 meteor: 1.4.2.3 -> 1.5 (#28905)
(cherry picked from commit 49eb1664d8)
2017-09-17 18:19:36 +02:00
Domen Kožar
f64a4878eb Add atom-beta
(cherry picked from commit 4ffa9ace43)
2017-09-17 18:19:35 +02:00
Symphorien Gibol
ae046076e4 bombono: init at 1.2.4
(cherry picked from commit 945f346f60)
2017-09-17 18:19:35 +02:00
Vincent Laporte
daa0ccd626 proverif: 1.95 -> 1.97pl1
(cherry picked from commit cc5491d02c)
2017-09-17 18:19:35 +02:00
geistesk
935dbdc30a nixos/fireqos: add service
(cherry picked from commit 2316f16ac0)
2017-09-17 18:19:35 +02:00
geistesk
8df4af5e4d firehol: init at 3.1.4
(cherry picked from commit f84a8fb605)
2017-09-17 18:19:35 +02:00
geistesk
b7e4dd7f8a iprange: init at 1.0.3
(cherry picked from commit 5e25459144)
2017-09-17 18:19:35 +02:00
Michael Alan Dorman
b273ab6454 melpa-packages: 2017-09-13
Removals:
 - debian-bug: removed from melpa
 - debian-changelog-mode: removed from melpa
 - rcirc-color: removed from melpa
 - sentence-highlight: removed from melpa
(cherry picked from commit 9feb5bdf06)
2017-09-17 18:19:34 +02:00
Michael Alan Dorman
f5afacd499 melpa-stable-packages: 2017-09-13
Removals:
 - sentence-highlight: removed from melpa
(cherry picked from commit b9eb2d3348)
2017-09-17 18:19:34 +02:00
Michael Alan Dorman
4b9ba2c1ad org-packages: 2017-09-13
(cherry picked from commit cfe5664e04)
2017-09-17 18:19:34 +02:00
Michael Alan Dorman
21cced0782 elpa-packages: 2017-09-13
(cherry picked from commit bae9557826)
2017-09-17 18:19:34 +02:00
Silvan Mosberger
7ba40a38ed s-tui: init at 0.6.0
(cherry picked from commit 753d114b34)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
02886260f7 afl: 2.48b -> 2.51b
(cherry picked from commit 42a3be191d)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
827c4689c7 _915resolution: Only works on x86
https://hydra.nixos.org/build/60928068
(cherry picked from commit 204a15ec42)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
2c1436ac02 libsmbios: Only works on x86
https://hydra.nixos.org/build/60942499
(cherry picked from commit 9aa998eb48)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
6224ed46f2 reptyr: Only works on x86
https://hydra.nixos.org/build/60933200
(cherry picked from commit 4f34a3b230)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
c02952a8b3 seabios: Only works on x86
https://hydra.nixos.org/build/60949790
(cherry picked from commit 84544c5bc2)
2017-09-17 18:19:33 +02:00
Tuomas Tynkkynen
1fea5575c8 syslinux: Only works on x86
https://hydra.nixos.org/build/60930963
(cherry picked from commit f567d0a5a6)
2017-09-17 18:19:32 +02:00
Tuomas Tynkkynen
d55ec1aad2 x86info: only works on x86
https://hydra.nixos.org/build/60931250
(cherry picked from commit 21298fd3f7)
2017-09-17 18:19:32 +02:00
dywedir
8e7ea87607 mpv: 0.26.0 -> 0.27.0
(cherry picked from commit 15002fbf7e)
2017-09-17 18:19:32 +02:00
Robert Schütz
b14457605c seafile-client: add optional Shibboleth support
(cherry picked from commit 7cceee29fb)
2017-09-17 18:19:32 +02:00
Peter Hoeg
2149004768 arc-theme: docs were going to the wrong directory
(cherry picked from commit 3f56114223)
2017-09-17 18:19:32 +02:00
Winnie Quinn
1adc4dd110 aspcud: add darwin platform support
This works because `gringo` now builds on Darwin.

(cherry picked from commit abeb6af482)
2017-09-17 18:19:32 +02:00
Orivej Desh
96e838764f aseprite: install desktop icons
(cherry picked from commit 247fa20962)
2017-09-17 18:19:31 +02:00
Orivej Desh
6b59cddaeb aseprite unfree: init at 1.2-beta12
(cherry picked from commit f0483d59f3)
2017-09-17 18:19:31 +02:00
Orivej Desh
74ed524310 aseprite: 0.9.5 -> 1.1.7
(cherry picked from commit 05eb7ba6e4)
2017-09-17 18:19:31 +02:00
Tristan Helmich
5964f952b5 graylogPlugins: update and add plugins
(cherry picked from commit ea5e03085a)
2017-09-17 18:19:31 +02:00
Yann Hodique
395c626161 hugo: 0.26 -> 0.27
(cherry picked from commit ebf1f8c4e6)
2017-09-17 18:19:31 +02:00
Daiderd Jordan
18fc3525af nginx: disable pie on darwin
(cherry picked from commit 734788b71d)
2017-09-17 18:19:31 +02:00
Franz Pletz
c99d568261 ncurses: 6.0-20170729 -> 6.0-20170902
Fixes issues with xterm terminfo.

(cherry picked from commit fea02e30f1)
2017-09-17 18:19:30 +02:00
Maximilian Güntner
a2238d2ea2 samba: 4.6.4 -> 4.6.7
(cherry picked from commit e6353a82bf)
2017-09-17 18:19:30 +02:00
Robin Gloster
43ea0d6dc0 systemd: use fetchpatch for patch with the correct hash
the fetchurl failed on hydra sometimes

(cherry picked from commit 61733ed6cc)
2017-09-17 18:19:30 +02:00
Vladimír Čunát
22852e0627 pango: maintenance 1.40.9 -> 1.40.11
(cherry picked from commit daa12ab7b9)
2017-09-17 18:19:30 +02:00
Vladimír Čunát
e8e53043ca mesa: maintenance 17.1.7 -> 17.1.8
(cherry picked from commit 6d2d7d5f46)
2017-09-17 18:19:30 +02:00
Tim Steinbach
4bb826c760 gnutls: 3.5.14 -> 3.5.15
(cherry picked from commit 5c66a4e221)
2017-09-17 18:19:30 +02:00
Frederik Rietdijk
a729a1d933 systemd: use fetchurl for patch
because a hash corresponding to fetchurl was provided.

(cherry picked from commit 91ede67a5a)
2017-09-17 18:19:29 +02:00
teh
35e06baae7 systemd: add patch to fix suspend.target
(cherry picked from commit 3e50f0ae0e)
2017-09-17 18:19:29 +02:00
Matthew Robbetts
a62fbe0922 openldap: Fix build with LibreSSL.
(cherry picked from commit e82cb3dfa4)
2017-09-17 18:19:29 +02:00
Casey Rodarmor
3c42f36ff5 ncurses: put tic binary in bin
(cherry picked from commit 555900081d)
2017-09-17 18:19:29 +02:00
WilliButz
e7ffb76a75 highlight: 3.35 -> 3.39
(cherry picked from commit 5b36d3993f)
2017-09-17 18:19:29 +02:00
Jörg Thalheim
a3f5e1c642 openssh: update gssapi patch
(cherry picked from commit 7786aab173)
2017-09-17 18:19:29 +02:00
gnidorah
50e57c4e59 maxx: allow launching individual components
(cherry picked from commit d627ded461)
2017-09-17 18:19:29 +02:00
yesbox
74d1043c9b jackett: 0.7.1308 -> 0.8.151
(cherry picked from commit e70e5de2c7)
2017-09-17 18:19:28 +02:00
Chris Burr
11dbd1876f dns-root-data: 2017-07-26 -> 2017-08-29
(cherry picked from commit 0b356dfb75)
2017-09-17 18:19:28 +02:00
Jörg Thalheim
be8038d7ec cheat: 2.2.0 -> 2.2.1
(cherry picked from commit 7f2f427e8f)
2017-09-17 18:19:28 +02:00
mingchuan
28f6b7fba5 spin: 6.4.6 -> 6.4.7
(cherry picked from commit cb8bfbdbba)
2017-09-17 18:19:28 +02:00
Edward Tjörnhammar
5cd35fe367 i2pd: 2.14.0 -> 2.15.0
(cherry picked from commit 90e78aafad)
2017-09-17 18:19:28 +02:00
Edward Tjörnhammar
fe0ea07417 nixos, i2pd: nat option, default true
(cherry picked from commit 847ce53ab1)
2017-09-17 18:19:28 +02:00
timor
5218059660 physlock: 0.5 -> 11-dev
Update physlock to a more current version which supports PAM and
systemd-logind.  Amongst others, this should work now with the slim
login manager without any additional configuration, because it does
not rely on the utmp mechanism anymore.

(cherry picked from commit ae87a30a83)
2017-09-17 18:19:27 +02:00
Orivej Desh
c6425e3c2b gopherclient: init at 2016-10-02
(cherry picked from commit e47543f1be)
2017-09-17 18:19:27 +02:00
Winnie Quinn
8c23e20e23 gringo: add darwin platform support
(cherry picked from commit a1013287f3)
2017-09-17 18:19:27 +02:00
Jörg Thalheim
141e50fdac buildbot-full: also include wsgi-dashboards
(cherry picked from commit 6844b1375b)
2017-09-17 18:19:27 +02:00
Artem Kazakov
9bb346312d buildbot: add wsgi dashboards plugin
fixes #29236

(cherry picked from commit 60709abb82)
2017-09-17 18:19:27 +02:00
rnhmjoj
83264136ce vapoursynth-mvtools: 17 -> 19
(cherry picked from commit a7eb2e01bc)
2017-09-17 18:19:27 +02:00
rnhmjoj
b99022efba vapoursynth: R36 -> R38
(cherry picked from commit 3f9661588b)
2017-09-17 18:19:26 +02:00
AndersonTorres
c994dbce04 Moe: init at 1.9
Moe is a small text editor.

(cherry picked from commit 6126e3add4)
2017-09-17 18:19:26 +02:00
Tristan Helmich
a26af0221d pythonPackages.phonenumbers: 8.8.0 -> 8.8.1
(cherry picked from commit c3b304e811)
2017-09-17 18:19:26 +02:00
Michael Weiss
29c9481f6d lf: 2017-05-15 -> 2017-09-06
(cherry picked from commit 9f4fa7339b)
2017-09-17 18:19:26 +02:00
Pascal Bach
8e2391d169 nixos/prometheus-collectd-exporter: init module (#29212)
* prometheus-collectd-exporter service: init module

Supports JSON and binary (optional) protocol
of collectd.

* nixos/prometheus-collectd-exporter: submodule is not needed for collectdBinary

(cherry picked from commit 334e23d244)
2017-09-17 18:19:26 +02:00
romildo
80a387df9b greybird: 3.22.4 -> 3.22.5
(cherry picked from commit 3c02edc290)
2017-09-17 18:19:26 +02:00
Roman Volosatovs
ecb46b8f5b mopidy-iris: 3.3.3 -> 3.4.1
(cherry picked from commit 383b7c658a)
2017-09-17 18:19:25 +02:00
lewo
a6bf07155a nixos/nova-image: cleanup image builders (#29242)
There are currently two ways to build Openstack image. This just picks
best of both, to keep only one!

- Image is resizable
- Cloudinit is enable
- Password authentication is disable by default
- Use the same layer than other image builders (ec2, gce...)

(cherry picked from commit 3a377e26b2)
2017-09-17 18:19:25 +02:00
Robert
8563cb9f15 NixOS Manual: document assertions and warnings (#29206)
* NixOS Manual: document assertions and warnings

* NixOS manual: re-wrap assertions text

(cherry picked from commit 1b1fc65505)
2017-09-17 18:19:25 +02:00
lassulus
2117b2ea29 bitcoin-classic: 1.2.5 -> 1.3.6
(cherry picked from commit 0a4a6f71cb)
2017-09-17 18:19:25 +02:00
AndersonTorres
f144015dc7 jupp: init at 3.1
jupp is a fork of joe's editor.

(cherry picked from commit 4f976bdd3e)
2017-09-17 18:19:25 +02:00
Klaas van Schelven
d55e0c9330 andviro/flake8-vim: init at 2017-02-17
(cherry picked from commit 6e6a3c9ba5)
2017-09-17 18:19:25 +02:00
James Kay
d6060457d1 buildbot: 0.9.9post2 -> 0.9.11
(cherry picked from commit cf497c60f0)
2017-09-17 18:19:24 +02:00
Michael Weiss
b5763e0054 dynamips: init at 0.2.17
(cherry picked from commit 1011c76598)
2017-09-17 18:19:24 +02:00
hiberno (Christian Lask)
10cb4e312b tasksh: Add readline support.
(cherry picked from commit 38563d6130)
2017-09-17 18:19:24 +02:00
Ioannis Koutras
a90af04760 sddm: 0.14.0 -> 0.15.0
(cherry picked from commit 01b4c3c13b)
2017-09-17 18:19:24 +02:00
Peter Hoeg
00364fa6bd qtox: drop gtk2 dependency
Tray icon still works without gtk2.

(cherry picked from commit 90b3d2db91)
2017-09-17 18:19:24 +02:00
Thomas Bach
a819f3b18f manual: reworked submodule section for better readability
The section was strange to read, as the initial example already used
`listOf' which is mentioned in the very first paragraph. Then you read
in a subsection about `listOf' and the exact same example is given
once again.

(cherry picked from commit 4d101993bf)
2017-09-17 18:19:24 +02:00
Thomas Bach
d9afaff2be manual: fixed remaining placeholder literal
(cherry picked from commit f37a1e155e)
2017-09-17 18:19:23 +02:00
Thomas Bach
fd059ca1a9 manual: name' is not an argument for mkOption'
(cherry picked from commit 572726a570)
2017-09-17 18:19:21 +02:00
Vaibhav Sagar
07425e43ed nginx-modules: remove unused fetchpatch
(cherry picked from commit 70eb31c853)
2017-09-17 18:17:33 +02:00
rnhmjoj
5687327e29 lua-nginx-module: 0.10.5 -> 0.10.10
(cherry picked from commit d0aa64a8e2)
2017-09-17 18:17:32 +02:00
Anthony Cowley
e7e8d1fd21 emacsMacport: emacs-25.2 => 25.3, macport-6.3 => 6.7
(cherry picked from commit 50a33089c6)
2017-09-17 18:17:27 +02:00
Maximilian Güntner
800e422653 hostapd/wpa_supplicant: update urls
(cherry picked from commit daf07c9d62)
2017-09-17 17:43:40 +02:00
Daniel Fullmer
4f7e499315 k2pdfopt: 2.32 -> 2.42
(cherry picked from commit 8c2895400f)
2017-09-17 17:43:37 +02:00
Matt Smith
777e002054 monero: 0.10.3.1 -> 0.11.0.0
(cherry picked from commit 21e135c8bd)
2017-09-17 17:43:36 +02:00
Paul Hendry
9882b7fcbf ktorrent: Add missing meta.license
(cherry picked from commit f814c3d090)
2017-09-17 17:43:35 +02:00
Hoang Xuan Phu
76b36ad9a6 rabbitmq_server: 3.6.6 -> 3.6.10
(cherry picked from commit 2c58562d48)

Addresses some known vulns in 3.6.6: https://pivotal.io/security/cve-2017-4965
2017-09-17 17:43:34 +02:00
Florian Jacob
c69ee73db1 nixos/tinc: Fix tinc cli wrapper for tinc 1.0.
tinc prior to 1.1 doesn't have the `tinc` executable,
and `tincd` isn't of any use while the daemon already runs.

(cherry picked from commit 8cea87c1eb)
2017-09-17 17:43:33 +02:00
Silvan Mosberger
2fd44d9847 namecoin service: fix typo
(cherry picked from commit fea9e081a9)
2017-09-17 17:43:33 +02:00
Joachim Fasting
884ac056a5 nixos/tests: expand hardened tests
(cherry picked from commit 586d04c588)
2017-09-17 17:43:32 +02:00
Jan Malakhovski
5ae9a94cb0 linuxPackages: hardened-config: enable DEBUG_PI_LIST
(cherry picked from commit 62fa45eac5)
2017-09-17 17:43:31 +02:00
Jan Malakhovski
e8af562d48 linuxPackages: hardened-config: check kernelArch, not system
(cherry picked from commit c345761c13)
2017-09-17 17:43:30 +02:00
Jan Malakhovski
ec00da8d10 linuxPackages: hardened-config: disable BUG_ON_DATA_CORRUPTION for older kernels
They don't support it.

(cherry picked from commit 616a7fe237)
2017-09-17 17:43:30 +02:00
Joachim Fasting
34f867d96e hardened-config: build with fortify source
(cherry picked from commit dd170cd5df)
2017-09-17 17:43:29 +02:00
Joachim Fasting
e15669fa07 hardened-config: enable the randstruct plugin
(cherry picked from commit 9a763f8f59)
2017-09-17 17:43:28 +02:00
Joachim Fasting
84f5bb3e43 hardened-config: additional refcount checking
(cherry picked from commit edd0d2f2e9)
2017-09-17 17:43:23 +02:00
Daiderd Jordan
523fb3c77e opensc: add darwin frameworks
(cherry picked from commit 64bf283104)
2017-09-17 16:26:31 +02:00
Frederik Rietdijk
fe2f16e289 niff: init at 0.1
(cherry picked from commit 8a09e51dc2)
2017-09-17 15:37:59 +02:00
Bjørn Forsman
1d156a60fc fpart: init at 0.9.3
(cherry picked from commit 983d01421e)
2017-09-17 13:07:04 +02:00
Joachim Fasting
676560af25 lttng-uts: 2.9.1 -> 2.10.0
(cherry picked from commit 40d6414863)
2017-09-17 09:49:48 +02:00
Joachim Fasting
622afa9dc7 lttng-tools: 2.9.5 -> 2.10.1
(cherry picked from commit 969db57853)
2017-09-17 09:49:46 +02:00
Joachim Fasting
b967357400 linuxPackages.lttng-modules: broken on kernels >4.11
(cherry picked from commit 7d69e5a18f)
2017-09-17 09:49:45 +02:00
Joachim Fasting
5946d7d2c7 linuxPackages.lttng-modules: 2.9.3 -> 2.10.0
(cherry picked from commit 9e395545e8)
2017-09-17 09:49:43 +02:00
Frederik Rietdijk
20e1833914 aspellWithDicts: use a single env
In c0cf19608f the function
`aspellWithDicts` was introduced, that allows to build a derivation
consisting of aspell and specified dictionaries. In
96457d26dd a fix was included to properly
find the dictionaries.

Issue #29429 describes that, while the current method works for the
aspell binary, it does not in case of the API.

This commit rewrites the wrapper into a single derivation, create a
single tree of symbolic references to both the binary and the
dictionaries so that its possible to find the dictionaries with the API.
Furthermore, the binary is wrapped so it can still find the dictionaries
as well.

(cherry picked from commit 91f7042aa0)
2017-09-17 09:30:19 +02:00
Antoine Eiche
b94ee1a9b5 dockerTools.pullImage: release note regarding sha256 argument value
(cherry picked from commit ea6d37c2bb)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-09-17 09:27:11 +02:00
Antoine Eiche
dc4178e15a dockerTools.pullImage: use skopeo to pull the image
Before this patch, a VM was used to spawn docker that pulled the
VM. Now, the tool Skopeo does this job well so we can simplify our
dockerTools since we doesn't need Docker anymore:)

This also fixe the regression described in
https://github.com/NixOS/nixpkgs/issues/29271 : cntlm proxy doesn't
work in 17.09 while it worked in 17.03.

Note Skopeo doesn't produce the same output than docker pull so, we
have to update sha.

(cherry picked from commit 01174c5f4d)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-09-17 09:27:04 +02:00
Samuel Leathers
f22378c383 python pies: remove packages
(cherry picked from commit 0f0aeed803)
2017-09-17 09:03:41 +02:00
Daiderd Jordan
2ad805568c python-cffi: fix test failures when using clang
(cherry picked from commit 35649750c3)
2017-09-16 17:11:10 +02:00
Vladimír Čunát
a4bf452eb3 vivaldi-ffmpeg-codecs: fix evaluation (forgotten file)
(cherry picked from commit d5724ef2dd)
2017-09-16 15:28:48 +02:00
Samuel Leathers
9284617344 arelle: 2017-06-01 -> 2017-08-24
(cherry picked from commit d15c019edd)
2017-09-16 14:06:16 +01:00
Tim Steinbach
27809dd7a7 linux-copperhead: 4.13.1.b -> 4.13.2.a
(cherry picked from commit 7de078ccae4c9e0a81df7da3440295cc7d8459c7)
2017-09-16 08:58:13 -04:00
Jörg Thalheim
b83dde56bb gns3: 2.0.3 -> 2.1.0rc1
(cherry picked from commit 27e87d8bc8)
2017-09-16 13:57:41 +01:00
Samuel Leathers
ee4c2cbac7 aiohttp-cors: 0.5.1 -> 0.5.3
(cherry picked from commit eb125adf24)
2017-09-16 13:57:41 +01:00
Vladimír Čunát
902a863df5 vivaldi-ffmpeg-codecs: fix evaluation
The patch was removed during chromium update.
It won't build, but the error seems the same as before chromium update...

(cherry picked from commit 9a55f74e43)
2017-09-16 14:32:48 +02:00
Samuel Leathers
2001001d7c hglib: 1.7 -> 2.4
(cherry picked from commit c256a685e8)
2017-09-16 13:27:39 +01:00
Jörg Thalheim
2dceddeaf6 python.pkgs.hcs_utils: fix tests; disable python2
(cherry picked from commit 46c30b2232)
2017-09-16 13:08:11 +01:00
Samuel Leathers
fba5537677 hcs_utils: 1.5 -> 2.0
(cherry picked from commit 755e6eb22e)
2017-09-16 13:07:59 +01:00
Samuel Leathers
4285cdb4b1 jscoverage: fix build with gcc6 (#29423) 2017-09-16 13:21:32 +02:00
Samuel Leathers
81e650b451 moto: 0.4.25 -> 0.4.31
(cherry picked from commit 49fac1f824)
2017-09-16 12:33:24 +02:00
Frederik Rietdijk
0ab6f09539 python.pkgs.PyXAPI: remove old package
url of source and homepage is dead as well.

(cherry picked from commit bb57df26dd)
2017-09-16 12:23:38 +02:00
Frederik Rietdijk
66d3d19b31 python.pkgs.{pitz, clepy}: remove old packages
These were added in 2013 by @bjornfor but haven't been touched since.
They seem to be unmaintained, both in Nixpkgs and by upstream.
2017-09-16 11:47:50 +02:00
Vladimír Čunát
adfd4fe950 Merge #29335: chromium: 60.0.3112.90 -> 61.0.3163.79 [security]
(cherry picked from commit b82b23b25b)
2017-09-16 11:23:04 +02:00
Peter Hoeg
bf75da298b dropbox: 34.4.20 -> 34.4.22
(cherry picked from commit 569867b3e8)
2017-09-16 10:35:48 +08:00
Samuel Leathers
11c88047b8 nilearn: 0.2.5 -> 0.3.1
fixes #29178

(cherry picked from commit f8f62d5216)
2017-09-16 00:26:26 +01:00
Bjørn Forsman
8f37a144e1 nixos/wpa_supplicant: use literalExample
For various reasons, big Nix attrsets look ugly in the generated manual
page[1]. Use literalExample to fix it.

[1] Quotes around attribute names are lost, newlines inside multi-line
strings are shown as '\n' and attrs written on multiple lines are joined
into one.

(cherry picked from commit 6b7a9376f1)
2017-09-15 20:31:53 +02:00
Daiderd Jordan
c90c29550f nntp-proxy: fix clang build
(cherry picked from commit 8554eafb78)
2017-09-15 20:01:47 +02:00
Vincent Laporte
46a68c8680 gtk+: 3.22.19 -> 3.22.21
(cherry picked from commit 2f70241e21)
2017-09-15 20:30:14 +03:00
Vladimír Čunát
831e310f24 gkt3: maintenance 3.22.18 -> 3.22.19
(cherry picked from commit 3980abe191)
2017-09-15 20:30:07 +03:00
Joachim Fasting
838f8617ce pharo-launcher: fix build
As noted by @dtzWill at https://github.com/NixOS/nixpkgs/pull/26924/files#r126686231

(cherry picked from commit 42f2439228)

Re: https://github.com/NixOS/nixpkgs/issues/28643
2017-09-15 18:53:08 +02:00
Peter Simons
2f90efacab ghc-7.2.2 is broken
(cherry picked from commit 33b09c0f0e)
2017-09-15 13:56:33 +02:00
Rob Vermaas
38883f8ddc google-instance-setup: add openssh to path
(cherry picked from commit 0783efb41c)
2017-09-15 10:49:01 +00:00
Frederik Rietdijk
baee496f37 Merge pull request #29353 from disassembler/pgpdump
pgpdump: disable tests
(cherry picked from commit 56f8b3626f)
2017-09-15 12:36:58 +02:00
Frederik Rietdijk
e13c4975c1 Merge pull request #29357 from FRidh/ld_library_path
Python 3.4 and 3.5: support LD_LIBRARY_PATH

(cherry picked from commit fdbe81bab0)
2017-09-15 12:36:18 +02:00
Frederik Rietdijk
631b96acbf Merge pull request #29407 from disassembler/cxfreeze
cx_Freeze: 4.3.4 -> 5.3.2

(cherry picked from commit beaada6c2d)
2017-09-15 12:32:07 +02:00
Samuel Leathers
8067485230 mdp: disable tests
(cherry picked from commit 140136ad95)
2017-09-15 12:29:42 +02:00
Frederik Rietdijk
01aafc644f Merge pull request #29388 from disassembler/arelle
arelle: add py3to2 as a buildInput
(cherry picked from commit 47e1751fd0)
2017-09-15 12:27:05 +02:00
Frederik Rietdijk
329d844c81 Merge pull request #29405 from disassembler/jedi
jedi: disable tests
(cherry picked from commit f5ea99f195)
2017-09-15 12:16:46 +02:00
Eelco Dolstra
cb3203645a nixUnstable: 1.12pre5511_c94f3d55 -> 1.12pre5619_346aeee1
(cherry picked from commit b86fd340f0)
2017-09-15 11:41:10 +02:00
Eelco Dolstra
8e80fa158b blender: 2.78c -> 2.79
(cherry picked from commit e3b562e0e2)
2017-09-15 11:40:54 +02:00
Jörg Thalheim
a3a0594820 dmd: remove broken flag
(cherry picked from commit 3b5245f0c4)
2017-09-15 04:38:39 -05:00
Thomas Mader
7bfde1d2b9 apple-sdk: Move cf-private first in list, otherwise the build fails because CoreFoundation/CFAttributedString.h could not be found.
The problem appeared when building ldc on Mac OSX. See also 13778.

(cherry picked from commit 2a0f1ecdc8)
2017-09-15 04:38:30 -05:00
Thomas Mader
463656e755 dtools: Fix rdmd test when building with newer phobos version which doesn't include std.stdiobase.d anymore.
(cherry picked from commit 930b01ab3d)
2017-09-15 04:38:21 -05:00
Thomas Mader
f5fe80a042 dmd: Run dmd-testsuite in checkPhase
Remove cppa test for now because it isn't working.

(cherry picked from commit 5a35b0707f)
2017-09-15 04:37:54 -05:00
Thomas Mader
e357ee4589 dmd: Fix bootstrap dmd compiler build. Doesn't work with gcc6.
(cherry picked from commit e17fdb9607)
2017-09-15 04:37:44 -05:00
Samuel Leathers
706f3a3833 PyWebDAV: Fix src url
(cherry picked from commit 95f88c458b)
2017-09-15 10:42:15 +02:00
Maarten Hoogendoorn
ec76904f30 mount is in utillinux
(cherry picked from commit d27f710b87)
2017-09-15 08:55:23 +01:00
Maarten Hoogendoorn
d8f979d0e2 Fix oc cluster up
The command `oc cluster up` mainly runs code though Docker containers.

However, in pkg/bootstrap/docker/host/host.go, nsenter is used to run
some commands on the host. For this to work on NixOS, we need to provide
the absolute path to the required programs.

(cherry picked from commit a3dde7776b)
2017-09-15 08:55:23 +01:00
Maarten Hoogendoorn
57ae49b05a openshift: 1.5.0 -> 3.6.0
- Updated from 1.5.0 to 3.6.0 (this is just the next version, but Red
  Hat did quite the version bump there)
- Added 'v' to the version; it is used by `oc cluster up` to determine
  which image should be downloaded.
- Added myself as a maintainer.

(cherry picked from commit f8a72662cf)
2017-09-15 08:55:22 +01:00
Orivej Desh
84cb90d690 include-what-you-use: 0.6 -> 0.8
(cherry picked from commit a4a187fe5f)
2017-09-15 01:04:34 +02:00
Daiderd Jordan
b1c115e211 nixpkgs-tests: add tests for llvm 3.9
(cherry picked from commit 70c4ac12cd)
2017-09-15 00:56:19 +02:00
Daiderd Jordan
af12478dfb llvm-packages: apply cc-wrapper/stdenv changes to older versions
(cherry picked from commit ad486c48a6)
2017-09-15 00:56:06 +02:00
Daiderd Jordan
c13335a5ca clang-stdenv: move libstdcxxHook to cc-wrapper
(cherry picked from commit ac88515052)
2017-09-15 00:55:37 +02:00
Matthias Beyer
bec8a34469 sqlitebrowser: 3.9.1 -> 3.10.0
(cherry picked from commit 65b91cd23b)
2017-09-14 22:31:37 +02:00
Daiderd Jordan
f17ceeab18 irony-server: don't use wrapped clang
(cherry picked from commit d1260ea6aa)
2017-09-14 22:25:40 +02:00
Daiderd Jordan
56b2df0923 rtags: use clang-unwrapped
(cherry picked from commit cd97211358)
2017-09-14 22:04:56 +02:00
Thomas Tuegel
4515d4af50 Merge pull request #29369 from bkchr/remove_kde4_workspace_kde_telepathy
Remove kde4workspace and kdetelepathy

(cherry picked from commit 815135f31b)
2017-09-14 11:19:36 -05:00
Tuomas Tynkkynen
5190526d1c linuxPackages.evdi: Mark broken on >= 4.13
(cherry picked from commit 94454384c2)
2017-09-14 18:55:06 +03:00
Tuomas Tynkkynen
7545ab5f31 linuxPackages.netatop: Mark broken on >= 4.13
(cherry picked from commit 2459616f0f)
2017-09-14 18:55:06 +03:00
Tuomas Tynkkynen
6529d7d2c1 linuxPackages.sch_cake: Mark broken on >= 4.13
(cherry picked from commit 808ddd86fc)
2017-09-14 18:55:06 +03:00
Tuomas Tynkkynen
4215b390d3 swfmill: Fix build on GCC 6
https://hydra.nixos.org/build/60900173
(cherry picked from commit c8c82a67f0)
2017-09-14 18:21:41 +03:00
Bastian Köcher
9475c13a7f mailnag: 1.1.0 -> 1.2.1
(cherry picked from commit 5b91f125aa)
2017-09-14 17:07:00 +03:00
Jörg Thalheim
bd98103fac Merge pull request #29370 from mguentner/urltypofixes
fix src.url typos

(cherry picked from commit 610eac1773)
2017-09-14 14:50:22 +02:00
Tuomas Tynkkynen
6baffd9af5 awesomebump: Yet another RPATH-contains-TMPDIR hack
https://github.com/NixOS/patchelf/pull/98
(cherry picked from commit 14b833e560)
2017-09-14 15:46:16 +03:00
Tuomas Tynkkynen
058cb603f2 pythonmagick: Fix sha256
(cherry picked from commit eab8124939)
2017-09-14 15:46:07 +03:00
Tim Steinbach
1e588f9bc3 linux: 4.9.49 -> 4.9.50
(cherry picked from commit 5e4fcb63ac76e10aa36623477ebbafc00e3bcda1)
2017-09-14 08:40:27 -04:00
Tim Steinbach
ede357afda linux: 4.12.12 -> 4.12.13
(cherry picked from commit e5beeced7a1fd725e203ad88acf1c67b16d5e5fa)
2017-09-14 08:40:27 -04:00
Tim Steinbach
eec780b687 linux: 4.13.1 -> 4.13.2
(cherry picked from commit 0e9599181dd85d68c32c089e95055e7dbffd9f5c)
2017-09-14 08:40:27 -04:00
Samuel Leathers
c6eb5fbe87 ws4py: add git to checkInputs
(cherry picked from commit 3f5f208d13)
2017-09-14 13:19:39 +02:00
Frederik Rietdijk
8822c7f348 python.pkgs.mwlib: mark as broken
(cherry picked from commit 1e16bceb46)
2017-09-14 13:07:38 +02:00
Domen Kožar
71fb65709c vm: remove trusty-updates hash as it changes too often
(cherry picked from commit f49b7d3c88)
Signed-off-by: Domen Kožar <domen@dev.si>
2017-09-14 11:31:00 +02:00
Samuel Leathers
cd2ecbe919 credstash: 1.13.2 -> 1.13.3
(cherry picked from commit dabf89fadd)
2017-09-14 09:52:43 +02:00
Samuel Leathers
304d3a4bce colanderalchemy: fixes tests
(cherry picked from commit 746f20fc7f)
2017-09-14 09:31:43 +02:00
Bjørn Forsman
5e860f6737 OVMF: add 'src' attribute
No functional change, but allows getting the source via the standard
attribute: `nix-build -A OVMF.src`.

(cherry picked from commit 67c70aa581)
2017-09-14 08:08:01 +02:00
Ruben Maher
e61f1a24c4 nextcloud-client: provide optional gnome-keyring integration
`qtkeyring` can use `gnome-keyring`, but it needs some help to find it.

I have not enabled this by default because not everyone who uses this will want
to pull in GNOME dependencies.

(cherry picked from commit e828dcb5cd)
2017-09-14 08:01:06 +02:00
Ruben Maher
d1414523f2 nextcloud-client: enable parallel building
So that the client can build faster.

(cherry picked from commit 4ce18c8367)
2017-09-14 08:01:05 +02:00
Ruben Maher
bb290c95e5 nextcloud-client: add inotify dependency when building on linux
This allows for more efficient change detection.

(cherry picked from commit e02f936b27)
2017-09-14 08:01:04 +02:00
Ruben Maher
6bd0b33261 nextcloud-client: use cmakeDir and cmakeFlags attrs
(cherry picked from commit ebb6488e74)
2017-09-14 08:01:03 +02:00
Jörg Thalheim
892015000a tor: skip ControlPort in torrc, if not set. 2017-09-13 23:34:04 +01:00
Tuomas Tynkkynen
7d7e9673fc treewide: Escape backslash in strings properly
"\." is apparently the same as "." wheras the correct one is "\\."

(cherry picked from commit 0c368ef02f)
2017-09-14 01:06:31 +03:00
Sarah Brofeldt
9483d1641f steam: Get rid of newStdcpp option, always on
(cherry picked from commit 734a04800a)
2017-09-13 22:05:03 +01:00
Daiderd Jordan
70cc6fa727 prometheus-node-exported: fix output cycle on darwin
(cherry picked from commit 56ea313c29)
2017-09-13 22:10:35 +02:00
Tuomas Tynkkynen
708f1683c6 diffoscope: Update tool list
(cherry picked from commit 98d84b1375)
2017-09-13 22:44:42 +03:00
Tuomas Tynkkynen
9e8da964d4 diffoscope: Remove obsolete and unreferenced patch
(cherry picked from commit ab5bd5e596)
2017-09-13 22:44:42 +03:00
Tuomas Tynkkynen
94bba27fed diffoscope: Revive hard links patch
(cherry picked from commit 890d4a2853)
2017-09-13 22:44:42 +03:00
Tuomas Tynkkynen
39acaf7c25 diffoscope: 85 -> 86
(cherry picked from commit 4b28da6fd8)
2017-09-13 22:44:42 +03:00
Andreas Rammhold
f1d6e24bdf afewmail: update meta.homepage (#29313)
(cherry picked from commit f47ab6c2fe)
2017-09-13 20:05:26 +02:00
Samuel Leathers
5879433aa9 irods-icommands: 4.2.0 -> 4.2.1
(cherry picked from commit 5fb93524b3)
2017-09-13 20:05:20 +02:00
Joachim Fasting
1939476ec1 socklog: properly disable the chkshsgr test
My previous attempt d438cbb0b6 was
bogus ...

(cherry picked from commit 705f47f50e)
2017-09-13 18:31:44 +02:00
taku0
23b2ca654b flashplayer: 26.0.0.151 -> 27.0.0.130
(cherry picked from commit c2e7d1f1f2)
2017-09-13 18:31:42 +02:00
Florian Jacob
c4674a88bb piwik: 3.0.4 -> 3.1.0
Patch for Nix was merged upstream and therefore could be removed.

(cherry picked from commit 556dfedda7)
2017-09-13 18:31:39 +02:00
Joachim Fasting
11f8e12aec libffcall: 1.10 -> 2.0
Thanks to Bruno Haible for a notifying me of this.

(cherry picked from commit e2ddc7ffd2)
2017-09-13 18:31:30 +02:00
John Ericson
a9ccf26c3b treewide: Use *Platform.extensions
(cherry picked from commit 5aec3f96a2)
2017-09-13 11:25:02 -04:00
John Ericson
e8e99f7466 lib: Add *Platform.extensions
This is used to platform specific library and exectuable extensions. In
the next commit I'll replace a bunch of ad-hoc logic with it.

(cherry picked from commit 741839a687)
2017-09-13 11:23:01 -04:00
Tim Steinbach
97eef25947 linux-copperhead: 4.13.1.a -> 4.13.1.b
(cherry picked from commit 87fa247867)
2017-09-13 08:21:21 -04:00
Bjørn Forsman
dcb66ca0d7 doc/submitting-changes.xml: suggest "nixos/<module>" prefix for NixOS changes
Commit 8537cf0f81
("CONTRIBUTING.md: suggest "nixos/<module>" prefix for NixOS changes")
only changed CONTRIBUTING.md file and forgot about the Nixpkgs manual.
(I didn't know this information was stored in two places.)

(cherry picked from commit 56a047c7a1)
2017-09-13 14:14:24 +02:00
Tuomas Tynkkynen
221a743514 prelink: Disable on Darwin
https://hydra.nixos.org/build/60439488

A tool that works on ELF files only isn't probably that useful on
Darwin.

(cherry picked from commit 2cd2ee5f85)
2017-09-13 14:49:50 +03:00
Tuomas Tynkkynen
62eeec7486 firebird: Fix build by using gcc5
https://hydra.nixos.org/build/59941948
(cherry picked from commit c78c565245)
2017-09-13 14:43:41 +03:00
Tuomas Tynkkynen
439c2073d2 policycoreutils: Fix setuid install
(cherry picked from commit 4d205eb044)
2017-09-13 14:21:40 +03:00
Antoine Eiche
7c1278d94f dockerTools.pullImage: change the docker deamon readiness mechanism
To wait for the docker deamon, curl requests are sent. However, if a
http proxy is set, it will respond instead of the docker daemon.
To avoid this, we send docker ps command instead of curl command.

(cherry picked from commit 132e790735)
2017-09-13 10:40:43 +01:00
Frederik Rietdijk
6076d9f31b python.pkgs.jupyter_console: 5.0.0 -> 5.2.0
(cherry picked from commit 8d4e37710f)
2017-09-13 10:25:04 +02:00
Frederik Rietdijk
64478a07fe python.pkgs.joblib: move expression
(cherry picked from commit 47dcf634bb)
2017-09-13 09:37:40 +02:00
Rodney Lorrimar
5ea5dbcd56 pythonPackages.ftfy: 5.1.1 -> 4.4.3
ftfy package was added for spaCy and is only used by spaCy.

This change downgrades its version to meet the bounds specified by
spaCy (>=4.4.2,<5.0.0).

Relevant to #28643.

(cherry picked from commit 566f5e9e8d)
2017-09-13 09:19:40 +02:00
Klaas van Schelven
f8cb04b96c PyBrain: Mark as broken
It's broken on all versions of Python (I've tried 2.7, 3.4, 3.5, 3.6)

I think the root cause is that PyBrain is not working with numpy >= 1.12.0 as I reported here:
https://github.com/pybrain/pybrain/issues/217

(The relevant release notes may be found here):
https://docs.scipy.org/doc/numpy-1.12.0/release.html#compatibility-notes

The PyBrain github repo does not seem very active (last commit 18 months ago, last release 3 years),
so I have some doubts as to whether this will be fixed any time soon.

I suppose an alternative solution could be to reintroduce the explicit dependency to numpy 1.11. But,
this is not entirely trivial: in c9b4a2f319, the versions 1.10, 1.11, 1.12 were folded into a single version.
Also, the numpy dependency is not a direct one, but is implied via scipy

(cherry picked from commit 50d36558a4)
2017-09-13 09:09:03 +02:00
Frederik Rietdijk
9bf53d18b5 python.pkgs.wheel: 0.29.0 -> 0.30.0
(cherry picked from commit 88367b1e78)
2017-09-13 09:06:58 +02:00
Vladimír Čunát
0b131dfaeb hpsa service: fallout from #28557 merge and revert
(cherry picked from commit 97ac29cafc)
2017-09-13 07:58:29 +02:00
Jan Tojnar
fd1b9e357d gnome-disk-utility: fix missing schemas for gnome-disk-image-mounter
Continuation of #28053

gnome-disk-image-mounter from gnome-disk-utility was not wrapped, resulting in an
error due to the inability to find gsettings schemas.

This commit replaces the manual wrapping of gnome-disks binary with wrapGAppsHook
so that all binaries are wrapped correctly.

(cherry picked from commit b64f149ea9)
2017-09-13 07:41:26 +02:00
rnhmjoj
3a52fb941a btfs: 2.13 -> 2.17
(cherry picked from commit b9dc49e847)
2017-09-13 01:02:43 +02:00
rnhmjoj
6adb5cbcfb pirate-get: 0.2.10 -> 0.2.12
(cherry picked from commit 375ff71380)
2017-09-13 01:02:40 +02:00
Mikael Brockman
a19583934f emacs: 25.2 -> 25.3
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00211.html

> This is an emergency release to fix a security vulnerability in Emacs.
>
> Enriched Text mode has its support for decoding 'x-display' disabled.
> This feature allows saving 'display' properties as part of text.
> Emacs 'display' properties support evaluation of arbitrary Lisp forms
> as part of instantiating the property, so decoding 'x-display' is
> vulnerable to executing arbitrary malicious Lisp code included in the
> text (e.g., sent as part of an email message).

(cherry picked from commit 78f457c76c)
2017-09-13 01:02:34 +02:00
Joachim F
68778d0b77 Merge pull request #29286 from abuibrahim/release-17.09
odp-dpdk: fix a typo
2017-09-12 22:42:28 +00:00
Ruslan Babayev
d88ec014ef odp-dpdk: fix a typo
(cherry picked from commit 4ac8529dd4)
2017-09-12 13:43:52 -07:00
Daiderd Jordan
5fe5c843d0 kyotocabinet: fix darwin build
(cherry picked from commit 4d7c3b2f5f)
2017-09-12 22:16:16 +02:00
Daiderd Jordan
b16c73697a python-keyring: disable tests on darwin
(cherry picked from commit f0956b7baf)
2017-09-12 21:04:14 +02:00
Josef Kemetmueller
947f295ef1 pythonPackages.audiotools: Fix darwin build
(cherry picked from commit 6d760d970f)
2017-09-12 19:55:14 +02:00
Jörg Thalheim
30d6f55f47 nixos/openafs-client: update cellServDB 2009-06-29 -> 2017-03-14
(cherry picked from commit 39e327eeb5)
2017-09-12 13:14:01 +01:00
Tuomas Tynkkynen
e39775fd49 lib.cleanSourceFilter: Fix VIM swap file filtering
The backslash wasn't properly escaped, and "\." is apparently equal to
".". So it's accidentally filtering out these valid file names (in
Nixpkgs):

trace: excluding clfswm
trace: excluding larswm
trace: excluding mkpasswd

While at it, turn the file filter stricter to what it was before
e2589b3ca2. That is, the file name must
start with a dot: '.swp', '.foo.swo' are filtered but 'bar.swf' is not.

(cherry picked from commit 9275c3387e)
2017-09-12 15:01:15 +03:00
Tuomas Tynkkynen
6b5eeca9b7 pythonPackages.audiotools: Disable on Darwin
Last successful build 2015-09-20 07:44:17

https://hydra.nixos.org/build/60587519
(cherry picked from commit 8f566f4bde)
2017-09-12 15:01:09 +03:00
Tuomas Tynkkynen
7b05f25ffb pythonPackages.alot: Disable on Darwin
Last successful build 2015-12-31 19:17:08

https://hydra.nixos.org/build/60775312
(cherry picked from commit 8d85d279f2)
2017-09-12 15:01:06 +03:00
Tuomas Tynkkynen
1b6e075e59 toxic: Disable on Darwin
Last successful build 2014-03-12 17:47:58

https://hydra.nixos.org/build/59716009
(cherry picked from commit e6e8565131)
2017-09-12 15:01:03 +03:00
Tuomas Tynkkynen
37fc2c0c0a chromaprint: Disable on Darwin
Last successful build 2015-09-20 08:03:33

https://hydra.nixos.org/build/60589826
(cherry picked from commit 817c20c7ee)
2017-09-12 15:00:59 +03:00
Domen Kožar
3418e73469 pyopenssl: 17.0.0 -> 17.2.0
An attempt to fix tests under 32bit linux to unblock nix build
2017-09-12 13:37:03 +02:00
Dmitry Vyal
eb7b9e1edf tensorflow-1.1.0 for python3.6
Google publishes prebuilt tensorflow whl for python 3.4, 3.5, 3.6,
but nix expression for tensorflow only supported 3.5.
This change adds support for python-3.6.
2017-09-12 12:52:14 +02:00
Maximilian Güntner
124555b7b6 simavr: fix build for separate avr toolchain
(cherry picked from commit b22718d51c)
2017-09-12 10:33:31 +01:00
Maximilian Güntner
bc6561132b microscheme: replaced avrgcclibc with separate dependencies
(cherry picked from commit 414f5eff2d)
2017-09-12 10:33:31 +01:00
Maximilian Güntner
4ed547b94a arduino/ino: remove avrgcclibc as a dependency (see TODO)
(cherry picked from commit 6e54dbb49e)
2017-09-12 10:33:30 +01:00
Maximilian Güntner
ace472e343 avrdudess: add separate avr-{gcc, binutils} dependencies
(cherry picked from commit 0f74f11b03)
2017-09-12 10:33:30 +01:00
Maximilian Güntner
64d008cb73 avr-*: split avr-gcc-libc into separate packages
- avr-gcc 5.3.0 -> 5.4.0

closes #28220

Since the packages do not share a common prefix anymore, you need
to define the current store paths in your project's Makefile.

Example for an atmega644 build:

CFLAGS += -I /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/include
CFLAGS += -B /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5
CFLAGS += -L /nix/store/9rffxzds5crcpm76g3nr03jx0aa657cf-avr-libc-2.0.0/avr/lib/avr5
CFLAGS += -L /nix/store/8409dj9js4i5901i63275wxdm783l0p6-avr-gcc-5.4.0/lib/gcc/avr/5.4.0/avr5

(cherry picked from commit 6a458c169b)
2017-09-12 10:33:30 +01:00
Tuomas Tynkkynen
99d9f74d9f Revert "libgcrypt: Add pre-ARMv7 patch"
This reverts commit 1cfe9539f9.

No longer needed after the upgrade in 095af3e63b.

(cherry picked from commit ab62b7e9b9)
2017-09-12 12:26:06 +03:00
Bjørn Forsman
b98fda5cad nixos/gitolite: don't leak nix store hash into gitolite-admin username/key
It doesn't look good when the initial admin user is named
"<hash>-gitolite-admin" and the key stored as
"<hash>-gitolite-admin.pub". Instead, make it simply "gitolite-admin"
and "gitolite-admin.pub".

(cherry picked from commit 6b9ee30672)
2017-09-12 10:59:30 +02:00
pvgoran
898924ed5e services.gitolite: Add RequiresMountsFor unit option ...
... to ensure that the filesystem where `dataDir` resides is mounted when we do initialization or upgrade.

(cherry picked from commit 4c4f73c0eb)
2017-09-12 07:04:05 +00:00
rnhmjoj
6d7530563a vapoursynth-mvtools: 17 -> 19
(cherry picked from commit a7eb2e01bc)
2017-09-12 06:58:30 +00:00
rnhmjoj
902afad78e vapoursynth: R36 -> R38
(cherry picked from commit 3f9661588b)
2017-09-12 06:58:22 +00:00
Silvan Mosberger
37340f2f2c namecoin: legacy 0.3.80 -> core 0.13.0rc1
This updates namecoin from a legacy version from about 3 years ago
(https://github.com/namecoin/namecoin-legacy) to
the new namecoin-core.

(cherry picked from commit 8bd3664f373cb78a0526dc8a86e750f55b96420a)
(cherry picked from commit 31f349dbb4)
2017-09-12 07:17:49 +01:00
lassulus
20b9942065 bitcoin-xt: 0.11F -> 0.11G2
(cherry picked from commit f87d4ac2c1)
2017-09-12 07:17:49 +01:00
lassulus
f70f4c68bf altcoins: remove obsolete boost override
(cherry picked from commit 077dd9fca3)
2017-09-12 07:17:49 +01:00
Bjørn Forsman
726c294cae nixos/samba: remove space in "[ global ]" heading
Use consistent no-space style. (All documentation I've seen use no
space, and the generated section headings from the NixOS module also use
no space.)

(cherry picked from commit fc02a0265a)
2017-09-12 08:04:02 +02:00
Daiderd Jordan
5f165451c0 jbigkit: fix substituteInPlace
(cherry picked from commit 2509b629d7)
2017-09-12 00:17:52 +02:00
Daiderd Jordan
f155c98522 html2text: fix clang build
(cherry picked from commit 7b00a6ef15)
2017-09-11 23:42:02 +02:00
Daiderd Jordan
f15742bbaf go-mtpfs: fix darwin build
(cherry picked from commit 77294205ac)
2017-09-11 23:05:01 +02:00
timor
5566ca9fcd coin3d: include fix for newer compilers
This manifests as a segfault in any applications that use the library.

(cherry picked from commit cf32537210)
2017-09-11 21:32:43 +01:00
Jörg Thalheim
a82fe0ec5e Merge pull request #29187 from vanschelven/recaptcha-client
python.pkgs.recaptcha-client: disable broken versions
2017-09-11 19:41:02 +01:00
Markus Mueller
b7144b2db8 desmume: fix build with gcc6 by adding debian patch
Debian also removed the package in testing when building
with gcc7.

(cherry picked from commit 55b5a94d84)
2017-09-11 19:33:01 +01:00
Markus Mueller
6fb2a7c676 dmenu-wayland: git-2014-11-02 -> git-2017-04-07 fix build
Bumped and fixed substitution for package to build successfully.

(cherry picked from commit 301ab39213)
2017-09-11 19:31:28 +01:00
timor
9be724d65b qfsm: fix build with gcc 6 (#29245) 2017-09-11 20:29:16 +02:00
Aristid Breitkreuz
2248565ea4 blitz++: mark as broken 2017-09-11 20:15:15 +02:00
Bjørn Forsman
da832b5855 qmmp: 1.1.9 -> 1.1.10
(cherry picked from commit 88ae298467)
2017-09-11 20:10:04 +02:00
Bjørn Forsman
42caac39d8 qmmp: 1.1.5 -> 1.1.9
(cherry picked from commit 4b84127f1c)
2017-09-11 20:03:58 +02:00
timor
5bdfcbbea2 perl-Class-Autouse: 1.99_02 -> 2.01
(cherry picked from commit f717af03ad)
2017-09-11 18:50:35 +02:00
Robert Helgesson
c5f150d5ed perl-Data-Dumper-Concise: 2.022 -> 2.023
(cherry picked from commit 99b09a2006)
2017-09-11 18:44:54 +02:00
Robert Helgesson
6c773d3ae8 perl-Log-Contextual: 0.006003 -> 0.007001
(cherry picked from commit f6537dafe2)
2017-09-11 18:44:54 +02:00
timor
656cffa68d perl-Data-Dumper: 2.154 -> 2.161 + build fix
(cherry picked from commit dcdbe960f8)
2017-09-11 18:44:54 +02:00
Franz Pletz
cc5202c941 borgbackup: fix build with python36
cffi fails to build with python34.
2017-09-11 18:44:34 +02:00
timor
c22ff5213a perl-Devel-NYTProf: init at 6.04
(cherry picked from commit fdaaaea31e)
2017-09-11 17:43:35 +01:00
timor
2b7db2ea76 perl-Devel-DProf: deprecated, remove
does not build

(cherry picked from commit 60bb058cf5)
2017-09-11 17:38:37 +01:00
Tuomas Tynkkynen
a95a9fb4af make-fonts-cache.nix: Don't build-depend on unnecessary outputs of fontconfig
(cherry picked from commit 886837f479)
2017-09-11 19:22:46 +03:00
Bjørn Forsman
9355706fdb wireshark: 2.4.0 -> 2.4.1
Remove patches that have been merged upstream.

(cherry picked from commit f4bac5cdb7)
2017-09-11 18:01:52 +02:00
Bjørn Forsman
fd65540aa7 t1utils: 1.39 -> 1.41
(cherry picked from commit 835b2ccfa8)
2017-09-11 18:01:52 +02:00
Bjørn Forsman
038580c0c9 gsoap: 2.8.49 -> 2.8.53
(cherry picked from commit 421949e436)
2017-09-11 18:01:52 +02:00
Bjørn Forsman
28fbe0a7cf basex: 8.6.4 -> 8.6.6
(cherry picked from commit 0a7d124eb0)
2017-09-11 18:01:52 +02:00
Bjørn Forsman
b5607c41ca ascii: 3.15 -> 3.18
(cherry picked from commit 0177902337)
2017-09-11 18:01:52 +02:00
Jörg Thalheim
90f8d926ab altcoins: remove pkgs non-sense
(cherry picked from commit bb2e6d131e)
2017-09-11 16:59:14 +01:00
lassulus
4740b2c658 bitcoin-classic: 1.2.5 -> 1.3.6
(cherry picked from commit 0a4a6f71cb)
2017-09-11 16:59:06 +01:00
lassulus
773268eede mupen64plus: 1.5 -> 2.5
(cherry picked from commit f068f3f209)
2017-09-11 15:39:30 +01:00
Tuomas Tynkkynen
ebd90bfdb9 dbench: Disable on Darwin
Assumes Linux versions of xattr system calls. Has never built
successfully.

https://hydra.nixos.org/build/60443210
(cherry picked from commit e61022ac55)
2017-09-11 16:35:22 +03:00
Bjørn Forsman
92ca300cc6 eagle: 7.5 -> 7.7
This is the latest release from Cadsoft, before they were bought by
Autocad. Autocad has released 8.x, but

- it requires reworking the Nix expression (different packaging)
- the paid license version requires a monthly subscription fee, you never
  "own" the software (AFAICT).

Due to the licensing change in 8.x, I think keeping Eagle 7.x around is
a good idea.

(cherry picked from commit 28f780b320)
2017-09-11 14:48:16 +02:00
Domen Kožar
64a563f15b vm: bump trusty-updates hash
In future we might just not use the updates if hash changes too
often.
2017-09-11 13:00:30 +02:00
Tuomas Tynkkynen
b1cb7ee364 pythonPackages.ssdeep: Mark broken
https://hydra.nixos.org/build/59943791

This package is a library and has no reverse dependencies. (It was once
used by diffoscope, but it changed to use a different library).

(cherry picked from commit 373b2231be)
2017-09-11 13:53:06 +03:00
Thomas Tuegel
7921852a33 Merge pull request #29117 from bkchr/kde_applications_17_08_1
kdeApplications: 17.08.0 -> 17.08.1
(cherry picked from commit 6299659da6)
2017-09-11 05:11:16 -05:00
Tim Steinbach
15c04be775 linux-copperhead: 4.13.a -> 4.13.1.a
(cherry picked from commit 114a2bcc80)
2017-09-10 19:22:11 -04:00
John Ericson
b3128d3c48 ghc-8.2.1: Get rid of preReleaseName binding now that it is released
No hashes should be changed

(cherry picked from commit e916917acf)
2017-09-10 17:36:40 -04:00
Daiderd Jordan
2e65ad64fa nixpkgs-tests: add basic test for buildInputs
(cherry picked from commit b91307c2e1)
2017-09-10 22:56:54 +02:00
Daiderd Jordan
6e8d22e851 nixpkgs-tests: add basic test for cc-wrapper
(cherry picked from commit 19c4673310)
2017-09-10 22:56:40 +02:00
Sander van der Burg
471bea8fe6 fast-cli: fix build
(cherry picked from commit 397fc0daca)
2017-09-10 16:30:46 +00:00
Tim Steinbach
2f0cf23905 linux: 4.13 -> 4.13.1
(cherry picked from commit 54a4a22719451ae5b9a899025087d4a6e7f7095d)
2017-09-10 12:13:26 -04:00
Tim Steinbach
f7b2a625ca linux: 4.12.11 -> 4.12.12
(cherry picked from commit e5e8836cd1564ed675678bd4a3f8f279afd22b5a)
2017-09-10 12:13:26 -04:00
Tim Steinbach
b8a8f6f174 linux: 4.9.48 -> 4.9.49
(cherry picked from commit 2ec7d290cd96d7bfb1ed61a1a8a2d5b0625bf260)
2017-09-10 12:13:26 -04:00
Daiderd Jordan
3307386d45 perl-moose: fix darwin build
(cherry picked from commit 259e73d678)
2017-09-10 18:08:15 +02:00
Vaibhav Sagar
cd19919d1e znc: add openFirewall configuration option
(cherry picked from commit c7dd5e146b)
2017-09-10 18:00:34 +02:00
Vaibhav Sagar
d2b00a6a85 znc: open firewall with configured port
The configuration doesn't currently open the configured port, which is
less convenient than opening it.

(cherry picked from commit 83d89e9b22)
2017-09-10 18:00:34 +02:00
Pascal Bach
656f90717c riot-web: 1.12.2 -> 1.12.3
(cherry picked from commit 44ec317a13)
2017-09-10 17:55:52 +02:00
Eelco Dolstra
eeec388ac9 tribler: 7.0.0-beta -> 7.0.0-rc2
Also, fix the xcb plugin error
(https://github.com/NixOS/nixpkgs/issues/24256) and add service-identity which is a required dependency now.

(cherry picked from commit bcd382f032)
2017-09-10 17:55:52 +02:00
dywedir
ec8cc52bc5 fd: 2.0.0 -> 3.0.0
(cherry picked from commit bb0f86be43)
2017-09-10 17:55:52 +02:00
Peter Hoeg
69502062cf sane-frontends: boy scout cleanups
(cherry picked from commit af1f99143f)
2017-09-10 17:55:52 +02:00
Peter Hoeg
e872c9eedf sane-backends: 1.0.25 -> 1.0.27
Use a proper upstream as well.

(cherry picked from commit 67c949a8b6)
2017-09-10 17:55:52 +02:00
Peter Hoeg
8c3343e19d sane-backends: support parallel building
(cherry picked from commit 2dff799a10)
2017-09-10 17:55:52 +02:00
Vaibhav Sagar
a3d4721d3f znc: fix network example configuration
s/ssl/useSSL/

(cherry picked from commit 405050b2cb)
2017-09-10 17:55:51 +02:00
Peter Hoeg
557e1d2030 kget: init at 20170903
(cherry picked from commit 758c597696)
2017-09-10 17:55:51 +02:00
Ruslan Babayev
23d2db8876 ofp: mark as broken due to odp-dpdk change
(cherry picked from commit f319314c35)
2017-09-10 17:55:51 +02:00
Ruslan Babayev
8de61c321c pktgen: 3.1.0 -> 3.4.0
(cherry picked from commit f1e1d71494)
2017-09-10 17:55:51 +02:00
Ruslan Babayev
5053b8144b dpdk: drop examples output; simplify install phase
(cherry picked from commit f6075fc211)
2017-09-10 17:55:51 +02:00
Ruslan Babayev
b0df0af34f odp-dpdk: 1.12.0.0 -> 1.15.0.0
(cherry picked from commit ec85e42c0b)
2017-09-10 17:55:51 +02:00
Peter Hoeg
e6f2c4d51b manual: steam on nouveau also requires newStdCpp
(cherry picked from commit a9a3af423f)
2017-09-10 17:55:50 +02:00
Dan Peebles
46dc8a5450 yubikey-manager: 3.1 -> 4.0
Also, support Darwin properly

(cherry picked from commit 15502421c7)
2017-09-10 17:55:50 +02:00
Ruben Maher
05f1c244dd nixos/transmission: make it possible to use a different home directory (#29138)
(cherry picked from commit 4ff9e9e333)
2017-09-10 17:55:50 +02:00
John Mercier
659f53a05d notion: 3-2015061300 -> 3-2017050501
(cherry picked from commit fc0e22b7a7)
2017-09-10 17:55:50 +02:00
Joachim Fasting
fc7d2aaec9 nixos/hardened: blacklist a few obscure net protocols
(cherry picked from commit 8aa0618cf0)
2017-09-10 17:55:50 +02:00
Joachim Fasting
e7e99f3642 nixos/hardened: set mmap_min_addr
This is set in the hardened linux config as well but sysctl is more
flexible & works with any boot.kernelPackages

(cherry picked from commit 2bce0b13e7)
2017-09-10 17:55:50 +02:00
Joachim Fasting
6bb5c1ba49 tor-browser-bundle-bin: runtime purity improvements
These changes reduce file accesses outside TBB_HOME or the Nix store, as
determined by running under strace -e access,open,stat.

(cherry picked from commit f84125c3b1)
2017-09-10 17:55:49 +02:00
Joachim Fasting
481ccb82c8 tor-browser-bundle-bin: hard-code path to desktop Icon
(cherry picked from commit c8f2dbae9f)
2017-09-10 17:55:49 +02:00
Michael Weiss
639848651b androidenv: Add the Android Instant Apps SDK
(cherry picked from commit af78d76718)
2017-09-10 17:55:49 +02:00
Michael Weiss
cace24242c androidenv: Update all packages using fetch.sh
(cherry picked from commit 498e3a9989)
2017-09-10 17:55:49 +02:00
Thomas Bach
b9638c2014 haproxy: 1.7.8 -> 1.7.9
(cherry picked from commit d34386792d)
2017-09-10 17:55:49 +02:00
Thomas Bach
4d4280a834 haproxy: haproxy.org is now accessible via https
(cherry picked from commit fd84128595)
2017-09-10 17:55:49 +02:00
Michael Weiss
790036dbee pythonPackages.glances: 2.11 -> 2.11.1
(cherry picked from commit 8e3681d8bb)
2017-09-10 17:55:49 +02:00
Vincent Laporte
307ce6c0dc smplayer: 17.8.0 -> 17.9.0
(cherry picked from commit b5c9a47b85)
2017-09-10 17:55:48 +02:00
Will Dietz
d0a976e872 rr: 4.5.0 -> 5.0.0
(cherry picked from commit b95dc6f7d6)
2017-09-10 17:55:48 +02:00
timor
8687d7885e perl-ExtUtils-XSpp: 0.1700 -> 0.18
(cherry picked from commit dd07d9a04d)
2017-09-10 17:55:48 +02:00
timor
8c602e0e82 perl-ExtUtils-ParseXS: 3.24 -> 3.35
(cherry picked from commit 34c76e463e)
2017-09-10 17:55:48 +02:00
Tim Steinbach
2a33eaa7d8 vscode: 1.15.1 -> 1.16.0
(cherry picked from commit 58963fda09)
2017-09-10 17:55:48 +02:00
dywedir
b261baf607 minidlna: 1.1.5 -> 1.2.1
(cherry picked from commit 79770136ff)
2017-09-10 17:55:48 +02:00
Vincent Laporte
9a1253c064 aften: init at 0.0.8
Aften is an audio encoder which generates compressed audio streams based on
ATSC A/52 specification. This type of audio is also known as AC-3 or Dolby®
Digital and is one of the audio codecs used in DVD-Video content.

Homepage: http://aften.sourceforge.net/
(cherry picked from commit 6e009edc41)
2017-09-10 17:55:47 +02:00
Peter Hoeg
de84d8446b neovim-qt: 0.2.7 -> 0.2.8
We now also run some of the tests which is better than nothing.

(cherry picked from commit 608fe16482)
2017-09-10 17:55:47 +02:00
Peter Hoeg
6f1eacac88 neomutt: 20170714 -> 20170907
(cherry picked from commit b21778f43e)
2017-09-10 17:55:47 +02:00
Cray Elliott
77c46580ec wineUnstable: 2.15 -> 2.16
bump staging as well

(cherry picked from commit c892f77e37)
2017-09-10 17:55:47 +02:00
romildo
7a2f00d288 efl: 1.20.2 -> 1.20.3
(cherry picked from commit b776cd02bf)
2017-09-10 17:55:47 +02:00
Jason Miller
f8e518817f tigervnc: correct default ssh client path (#29084)
* tigervnc: correct default ssh client path

The -via command sets up an ssh tunnel, but is hardcoded to /usr/bin/ssh
upstream.  This patches it to use the nixpkgs openssh client.

* tigervnc: patch ssh path correctly

(cherry picked from commit e9183fd2d4)
2017-09-10 17:55:47 +02:00
Jaakko Luttinen
bfa5987ab6 rssguard: 3.4.0 -> 3.4.2
(cherry picked from commit b17ccf39c4)
2017-09-10 17:55:46 +02:00
gnidorah
bc5d6e3250 rambox: 0.5.10 -> 0.5.12
(cherry picked from commit 9810c0c911)
2017-09-10 17:55:46 +02:00
Matthieu Coudron
9530cd9219 offlineimap: 7.1.1 -> 7.1.2
(cherry picked from commit 4551099cb8)
2017-09-10 17:55:46 +02:00
Markus Mueller
300b9f13de mcrl2: 201409 -> 201707
(cherry picked from commit edd94f5fcd)
2017-09-10 17:55:46 +02:00
lassulus
e09335914e centerim: 4.22.10 -> 5.0.1
(cherry picked from commit 72699348c8)
2017-09-10 17:55:46 +02:00
Lancelot SIX
5bedd80b09 gdb: 8.0 -> 8.0.1
See http://lists.gnu.org/archive/html/info-gnu/2017-09/msg00005.html
for release information.

(cherry picked from commit 653cad7a3c)
2017-09-10 17:55:46 +02:00
Andraz Brodnik
9d7ee2e897 Add gosu
(cherry picked from commit 4955943101)
2017-09-10 17:55:46 +02:00
AndersonTorres
586d90215a mcomix: fixup
MComix is failing in the check phase; so, we'll not check it.

(cherry picked from commit f93a019816)
2017-09-10 17:55:45 +02:00
Kamil Chmielewski
dd978b3101 yEd: 3.17 -> 3.17.1
(cherry picked from commit d70e64ceff)
2017-09-10 17:55:43 +02:00
Daiderd Jordan
07602a9176 glslviewer: fix darwin build
(cherry picked from commit 92163ec65c)
2017-09-10 17:26:48 +02:00
Aristid Breitkreuz
302b5af7d6 v8: fix v3 builds by switching to GCC 5 (mksnapshot segfaults with GCC 6) 2017-09-10 17:17:11 +02:00
Daiderd Jordan
4e1bc40607 fox-1.6: add missing frameworks
(cherry picked from commit b310053c01)
2017-09-10 17:11:10 +02:00
Niklas Hambüchen
cf9c0199dc glusterfs: Fix glusterfind's crawlers dlopen() error.
This fixes:

  Traceback (most recent call last):
    File "/nix/store/7f9arl3f9xyj8sm05mkanh2mlp217192-glusterfs-3.10.2/libexec/glusterfs/glusterfind/changelog.py", line 22, in <module>
      import libgfchangelog
    File "/nix/store/7f9arl3f9xyj8sm05mkanh2mlp217192-glusterfs-3.10.2/libexec/glusterfs/glusterfind/libgfchangelog.py", line 21, in <module>
      libgfc = CDLL("libgfchangelog.so", use_errno=True, mode=RTLD_GLOBAL)
    File "/nix/store/nlyr5ankhi7yvva8zndi718zj37js270-python-2.7.13-env/lib/python2.7/ctypes/__init__.py", line 362, in __init__
      self._handle = _dlopen(self._name, mode)
  OSError: libgfchangelog.so: cannot open shared object file: No such file or directory
  Connection to 10.0.0.2 closed.

when running `glusterfind pre`.

Done by setting PYTHONPATH/LD_LIBRARY_PATH as for the other
Python scripts.

(cherry picked from commit abc96aae47)
2017-09-10 16:53:06 +02:00
Niklas Hambüchen
f0a12b8848 glusterfs: Patch upstream bug preventing glusterfind from running.
See: https://bugzilla.redhat.com/show_bug.cgi?id=1489610

Also add patch to correctly log stderr from remote nodes
when glusterfind fails.
This, too, should be removed when fixed upstream.

(cherry picked from commit e7325f82a3)
2017-09-10 16:53:06 +02:00
Niklas Hambüchen
49da03dfff glusterfs: Fix wrong xattr package: xattr -> pyxattr.
Fixes error

  File "/nix/store/lxpsl84km87xpk59nai6a33ihgpfs7qr-glusterfs-3.10.2/libexec/glusterfs/glusterfind/changelog.py", line 105, in populate_pgfid_and_inodegfid
      file_xattrs = xattr.list(p)
  AttributeError: 'module' object has no attribute 'list'

when using `glusterfind pre`.

(cherry picked from commit 8e329da496)
2017-09-10 16:53:06 +02:00
Niklas Hambüchen
6830087d7b glusterfs service: Ensure dirs needed by glusterfind exist
(cherry picked from commit 5bc38fc089)
2017-09-10 16:53:06 +02:00
Sander van der Burg
71f0a68a82 fs-uae: build on x86 linux only
(cherry picked from commit bf9b88f154)
2017-09-10 14:52:00 +00:00
Sander van der Burg
726f45a323 tomcat: bump versions
(cherry picked from commit 631abf835e)
2017-09-10 14:43:28 +00:00
Sander van der Burg
59b18ebd9e fs-uae: 2.8.0 -> 2.8.3
(cherry picked from commit 345e570921)
2017-09-10 14:26:33 +00:00
Rob Vermaas
7f47214526 mpich2: use gfortran 5 2017-09-10 14:11:40 +00:00
Sander van der Burg
3c148e1a54 vice: 2.2 -> 3.1 + fix build procedure
(cherry picked from commit 6e1eedd64e)
2017-09-10 14:00:45 +00:00
Sander van der Burg
cfbb20c8b5 zsnes: restrict building to x86-based Linux platforms only, znses' core is written in x86 asm code
(cherry picked from commit 0d8e157d61)
2017-09-10 14:00:28 +00:00
Aristid Breitkreuz
4d40df403b ispc: use newer version and LLVM 4.0 due to bug in clang++ 3.9 wrapper (see #29204) 2017-09-10 15:44:28 +02:00
Rob Vermaas
9ec0e863b6 Missing self reference 2017-09-10 13:43:45 +00:00
Rob Vermaas
2252998878 Missing semicolon 2017-09-10 13:42:29 +00:00
Jörg Thalheim
ee539d672e python.pkgs.python_simple_hipchat: move out of python-packages
(cherry picked from commit cfb64bdbbd)
2017-09-10 14:33:13 +01:00
Klaas van Schelven
f3522ede1e python-simple-hipchat: 0.1.0 => 0.4.0
0.1.0 does not work on Python 3 but versions >= 0.2 do.

(cherry picked from commit 70fe7ed01e)
2017-09-10 14:33:06 +01:00
Jörg Thalheim
02dd90a3c5 python.pkgs.unicorn: disable python3
fixes #29200

(cherry picked from commit 8f3f64e512)
2017-09-10 14:23:36 +01:00
Matthias Beyer
27e42497b9 audacity: 2.1.2 -> 2.1.3
* Remove gcc-6 patch to make it compile
* Add autoreconf call in preConfigure phase
  Inspired by
  https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/audacity

Suggested-by: Moritz Ulrich <moritz@tarn-vedra.de>
(cherry picked from commit fd1e362205)
2017-09-10 14:23:36 +01:00
Rob Vermaas
eb970de5b6 xonsh: use python 3.5 2017-09-10 13:22:11 +00:00
Rob Vermaas
2ccdac8c9e shaderc: mark as broken 2017-09-10 12:37:55 +00:00
Tristan Helmich
2b1521bfc7 radarr: 0.2.0.778 -> 0.2.0.846
(cherry picked from commit 6d6637549f)
2017-09-10 12:51:41 +01:00
Rob Vermaas
c90698c0a2 seeks: use gcc5, no upstream patch/version available that builds with gcc6 2017-09-10 11:49:26 +00:00
Jörg Thalheim
0f9cda064d perlPackages.Apache-Test: 1.38 -> 1.40
fixes #29155

(cherry picked from commit 87eafdc887)
2017-09-10 12:28:34 +01:00
Jörg Thalheim
ab4a242870 oprofile: fix hardcoded rm/cp paths
(cherry picked from commit a26817b215)
2017-09-10 12:03:03 +01:00
Markus Mueller
7b106c77b1 oprofile: 1.1.0 -> 1.2.0
Fixes build with newer gcc versions.

(cherry picked from commit 79f13f19f0)
2017-09-10 12:02:55 +01:00
Falco Peijnenburg
b31807a93d tests/elk: Fixed failing build on i686.
Too much memory is required for the test.

(cherry picked from commit 11ccf69f75)
2017-09-10 11:54:58 +01:00
Michael Raskin
5d369ba6c4 Merge pull request #29192 from vanschelven/cuneiform
Trying a less disruptive patch for Cuneiform
2017-09-10 12:52:39 +02:00
Jörg Thalheim
ee1aba6ac0 arm-frc-linux-gnueabi-binutils: mark as broken
(cherry picked from commit 72673e67f2)
2017-09-10 11:41:08 +01:00
Michael Raskin
4bc42d9c35 Trying a less disruptive patch for Cuneiform 2017-09-10 12:38:37 +02:00
Aristid Breitkreuz
f6dffbf415 v8: fix 5.4 build 2017-09-10 12:35:39 +02:00
Aristid Breitkreuz
370e2e7caa v8: remove unused old versions 2017-09-10 12:03:28 +02:00
Rob Vermaas
8d5fc1beda dmd: mark as broken 2017-09-10 09:58:37 +00:00
Klaas van Schelven
35009b3a3a python.pkgs.recaptcha-client: disable broken versions
It seems that the recaptcha-client package is no longer maintained.

* The latest released version (1.0.6) is from the year 2011;
* The project page does not mention which Python versions are supported
* The project is hosted on google code, which is discontinued

I was able to succesfully build with Python versions 3.3, 3.4, but not
3.5, 3.6.
2017-09-10 11:51:54 +02:00
Vladimír Čunát
5f15a9f53e stdenv bootstrap: fix evaluation
This is probably a fallout from #28557 merge and revert.
I can't see why exactly this happened, but it seems a safe fix.

(cherry picked from commit c86eb1da5f)
2017-09-10 11:18:50 +02:00
Rob Vermaas
c651a0ccbf gnupg: add gnupg2 alias/symlink for 2.2. Otherwise signing commits with git break. 2017-09-10 09:10:24 +00:00
Rob Vermaas
fbe46c7a24 Snapper: use gcc5, as there is not upstream patch for gcc6 2017-09-10 09:05:14 +00:00
Franz Pletz
c25f2b369d nixos/release: xmonad isn't release-critical
(cherry picked from commit 0d206c0b6c)
2017-09-10 11:02:11 +02:00
Eelco Dolstra
d04de205f3 nifskope: Fix build
https://hydra.nixos.org/build/60608938
(cherry picked from commit 79c9adce65)
2017-09-10 10:58:16 +02:00
timor
32e85cdf04 openafsClient: 1.6.20.2 -> 1.6.21
(cherry picked from commit 602e851052)
2017-09-10 09:36:36 +01:00
Itai Zukerman
29363f276d plex: 1.7.5 -> 1.8.4
(cherry picked from commit 21bac5cbfb)
2017-09-10 10:23:39 +02:00
Peter Simons
f456d206e0 Agda: disable broken build 2017-09-10 09:42:10 +02:00
Peter Simons
19dad71200 Allure & LambdaHack: disable failing Hydra builds 2017-09-10 09:37:18 +02:00
Frederik Rietdijk
45e518d8f0 Merge pull request #29158 from nlewo/ofxclient
pythonPackages.ofxclient and pythonPackages.osprofiler: remove argparse from requirements

(cherry picked from commit 6521a83efe)
2017-09-10 08:54:45 +02:00
Daiderd Jordan
4075187a8c fontforge-fonttools: use $CC
(cherry picked from commit 2317a07fbb)
2017-09-10 00:11:09 +02:00
Daiderd Jordan
830b121571 et: fix build with clang
(cherry picked from commit c0e7983359)
2017-09-09 23:43:26 +02:00
Daiderd Jordan
150195bdf3 eggdrop: fix tcllib reference on darwin
(cherry picked from commit 479c15b08b)
2017-09-09 23:08:00 +02:00
timor
376eb14ac6 perl-File-Modified: 0.07 -> 0.10
(cherry picked from commit e480b4baee)
2017-09-09 17:58:09 +02:00
timor
23b4aa1a8a perl-Filter-Simple: 0.91 -> 0.94
(cherry picked from commit 4bf61ab252)
2017-09-09 17:58:08 +02:00
Peter Simons
f366faa578 haskell-text-zipper: disable test suite to fix the build
(cherry picked from commit e960eb0bf5)
2017-09-09 17:08:44 +02:00
Aleksey Kladov
a6bba8335b lxqt-session: fix the build
closes #29130

(cherry picked from commit 6ce21acf32)
2017-09-09 16:14:27 +02:00
Tim Steinbach
e3fa7ef391 tests: xmonad less dependent on timings
(cherry picked from commit 84e34d4d5d)
2017-09-09 10:07:48 -04:00
Daiderd Jordan
7ccda60ea1 dibbler: fix darwin build
(cherry picked from commit 6226fd05ba)
2017-09-09 15:24:06 +02:00
Daiderd Jordan
ab0d743166 re2: fix dylib library id
(cherry picked from commit 6058539272)
2017-09-09 15:11:53 +02:00
Bjørn Forsman
cc601675e2 kicad: 4.0.6 -> 4.0.7
(cherry picked from commit 15c18cef3d)
2017-09-09 13:37:07 +02:00
Bjørn Forsman
2195b6b50e kicad: put the full version string in name
(cherry picked from commit dfbb710375)
2017-09-09 13:37:06 +02:00
Samuel Leathers
a342d6d780 slic3r: fix build with gcc6
(cherry picked from commit 707ee76522)
2017-09-09 09:56:19 +02:00
Nikolay Amiantov
85567a0941 gfortran: default to gfortran6
This is needed to be in sync with GCC. Fixes xgboost.

(cherry picked from commit 75b3113a4d)
2017-09-09 05:52:20 +03:00
Nikolay Amiantov
4652e1c5e0 openbrf: fix build
(cherry picked from commit b3c35a3974)
2017-09-09 05:52:18 +03:00
Daiderd Jordan
f665a37231 consul: fix output cycle on darwin
(cherry picked from commit cc7b771fcf)
2017-09-09 00:29:31 +02:00
Daiderd Jordan
8210e2a236 c3d: fix darwin build
(cherry picked from commit 25f74ecc8b)
2017-09-08 22:47:12 +02:00
Daiderd Jordan
18f6996169 gsc: fix darwin build
(cherry picked from commit 76437e5e5a)
2017-09-08 22:24:18 +02:00
Tom Saeger
043737b670 pythonPackages.dotfiles: 0.6.3 -> 0.6.4
(cherry picked from commit e1385f0a9461a1112c74f22f37ed3d56b5620770)
2017-09-08 22:07:05 +02:00
Spencer Baugh
065f9d7060 pythonPackages.linuxfd: init at 1.4.4
(cherry picked from commit 4978b204e3)
2017-09-08 22:03:44 +02:00
Robert Helgesson
399101c7a3 python-gst-python: fix pygi overrides dir path
Before it created a lib directory inside the lib directory.

(cherry picked from commit 23cc97f16b)
2017-09-08 21:56:26 +02:00
Daiderd Jordan
8926c06469 bigloo: use default stdenv
(cherry picked from commit 9e142e5a3e)
2017-09-08 21:50:37 +02:00
Daiderd Jordan
fc8634427a autotrace: fix darwin build
(cherry picked from commit a8382432d9)
2017-09-08 21:11:51 +02:00
Peter Simons
33bdb2715c Synchronize Haskell infrastructure with master at f93a019816. 2017-09-08 20:29:18 +02:00
PanAeon
3a3e0d8b04 update skypeforlinux to 5.4.0.1; Fix autologin issue (#29122)
skypeforlinux: 5.3.0.1 -> 5.4.0.1
(cherry picked from commit 5d1a8ecd91)
2017-09-08 18:25:20 +01:00
Thomas Tuegel
928a1ea373 dropbox: 33.4.23 -> 34.4.20
(cherry picked from commit a6fcd2ce2f)
2017-09-08 11:36:50 -05:00
Peter Hoeg
e7345735d3 rubygems: 2.6.10 -> 2.6.13
Fixes a number of CVEs:

- a DNS request hijacking vulnerability. (CVE-2017-0902)
- an ANSI escape sequence vulnerability. (CVE-2017-0899)
- a DoS vulnerability in the query command. (CVE-2017-0900)
- a vulnerability in the gem installer that allowed a malicious gem to overwrite arbitrary files. (CVE-2017-0901)

(cherry picked from commit 9f51b3c105)
2017-09-08 16:23:09 +01:00
Robin Gloster
36fd26a6ae dmtcp: 2.5.0 -> 2.5.1
(cherry picked from commit 04f456ef94)
2017-09-08 16:26:43 +02:00
Robin Gloster
b0664831b7 rosegarden: 15.08 -> 17.04
(cherry picked from commit 3d325000ab)
2017-09-08 16:26:35 +02:00
lassulus
c81b036f73 vbam: svn-1507 -> unstable-2017-09-04
(cherry picked from commit 2524e4cfd5)
2017-09-08 16:26:29 +02:00
Samuel Leathers
e1d0bf12a1 scorched3d: fixing build with gcc6
(cherry picked from commit dc15c15338)
2017-09-08 16:26:23 +02:00
romildo
b893ee4ae2 terminology: 1.1.0 -> 1.1.1
(cherry picked from commit dce314e55b)
2017-09-08 16:25:35 +02:00
Tim Steinbach
50e0deecaa atom: 1.19.4 -> 1.19.7
(cherry picked from commit 00829717e8)
2017-09-08 16:24:54 +02:00
Vladimír Čunát
4fe48dd356 factorio: fixup my eval fixup f9ea527a02
(cherry picked from commit 3a93d9c516)
2017-09-08 16:24:24 +02:00
Samuel Leathers
7e1f3592a4 xiphos: 4.0.3 -> 4.0.6
(cherry picked from commit 4bfa7d891f)
2017-09-08 16:24:09 +02:00
Samuel Leathers
22164c314b webkitgtk-2.17: init at 2.17.91
(cherry picked from commit e11c7399a0)
2017-09-08 16:24:00 +02:00
Samuel Leathers
201d7cddc6 gnome2.gtkhtml4: init at 4.10.0
(cherry picked from commit 2aa8bc45d3)
2017-09-08 16:23:27 +02:00
Franz Pletz
de7fb48967 searx: fix build
(cherry picked from commit 5901a645a8)
2017-09-08 16:23:14 +02:00
Franz Pletz
ba03b7195d atlassian-crowd: 2.12.0 -> 3.0.1
(cherry picked from commit 0ad1d8939f)
2017-09-08 16:23:06 +02:00
Matt McHenry
6e4a7e598a amarok: fixup by building with gcc-5
due to continued lack of progress on
https://github.com/NixOS/nixpkgs/issues/16588, probably not worth the
time for anything better.

Progress on: #28643

(cherry picked from commit af57251cb9)
2017-09-08 16:21:49 +02:00
Vladimír Čunát
683d7dbe0a factorio: use throw instead of abort
Otherwise if you try to listing all available packages, you will get a
hard error on platforms not supported by this package.  Consequently the
tarball job was broken.

(cherry picked from commit f9ea527a02)
2017-09-08 16:21:39 +02:00
zimbatm
6fde181321 yarn: 0.28.4 -> 1.0.1
(cherry picked from commit 2ae7e952b2)
2017-09-08 16:21:31 +02:00
Nikolay Amiantov
bab20afa84 python.pkgs.TheanoWithoutCuda: don't propagate stdenv
Fixes errors during buildEnv.

(cherry picked from commit db5a5ccf2b)
2017-09-08 16:19:27 +02:00
Nikolay Amiantov
ed566eae64 caffe: don't use CUDA by default
CUDA currently requires old GCC. Also, this way Caffe is usable without proprietary blobs.

(cherry picked from commit f1f944f23b)
2017-09-08 16:18:29 +02:00
Nikolay Amiantov
6d9c59bda4 python.pkgs.dlib: init at 19.6
(cherry picked from commit 5a2bb4c992)
2017-09-08 16:18:15 +02:00
Nikolay Amiantov
c17926b2c8 caffe: add Python support
Move to CMake in the process.

(cherry picked from commit c4bed3043d)
2017-09-08 16:17:55 +02:00
Nikolay Amiantov
040055b375 dlib: 19.4 -> 19.6
(cherry picked from commit eb6a8c3f52)
2017-09-08 16:17:44 +02:00
Nikolay Amiantov
ced1d50d8c bazel: 0.4.5 -> 0.5.4
(cherry picked from commit e5059a8739)
2017-09-08 16:17:32 +02:00
Nikolay Amiantov
f32122f98a caffe: 2015-07-02 -> 1.0-rc5
(cherry picked from commit 88641353d6)
2017-09-08 16:17:19 +02:00
Nikolay Amiantov
98ec5f7279 gcc7: 7.1.0 -> 7.2.0
(cherry picked from commit 1704eeb930)
2017-09-08 16:16:57 +02:00
Peter Hoeg
0e899275ea dict: enable the default upstream server so the client works out of the box
(cherry picked from commit 41e7e1304e)
2017-09-08 16:16:32 +02:00
Peter Hoeg
4519468090 syncthing: 0.14.36 -> 0.14.37
(cherry picked from commit e6c40a4dee)
2017-09-08 16:12:44 +02:00
Théo Zimmermann
ab410c3ac1 coq: fetch source from GitHub
(cherry picked from commit a26bbe547e)
2017-09-08 16:12:07 +02:00
Matthew Bauer
147047d72b pinentry-mac: no ‘fill plist’ stuff
fixes #26774

(cherry picked from commit 7f860249e1)
2017-09-08 16:11:50 +02:00
Tim Steinbach
e8e8c9b9c1 docker: Allow package selection in module
(cherry picked from commit 2bb57ef776)
2017-09-08 16:08:53 +02:00
Tim Steinbach
00bf522d58 Add XMonad test
(cherry picked from commit e153fa84a5)
2017-09-08 16:08:41 +02:00
Samuel Leathers
763020823a qucs: 0.0.18 -> 0.0.19
(cherry picked from commit 00753e078d)
2017-09-08 16:08:11 +02:00
Samuel Leathers
5eeab2372d adms: init at 2.3.6
(cherry picked from commit df1d5a4827)
2017-09-08 16:07:45 +02:00
Moritz Kiefer
aa527916df haskell/natural-transformation: add dependency on semigroups for GHC 7.10
(cherry picked from commit 243952d9d4)
2017-09-08 16:06:49 +02:00
José Luis Lafuente
13bc37120b mcomix: Disable test suite for now
Regression introduced by
94351197cd

Exactly the same problem (and solution) that here:
bd2aeb4883

(cherry picked from commit 4912c68aca)
2017-09-08 16:04:58 +02:00
Balletie
843b02c008 rtags: Fix configure phase errors
Add pkgconfig as buildinput, so that the install path is correctly set
with cmake. PkgConfig is an optional dependency for rtags, but they
say it's necessary if you want to replace the prefix with
CMAKE_INSTALL_PREFIX. See:
caad9ac494/cmake/BashCompletion.cmake (L13)

Furthermore, I let the configurePhase of the rtags emacs package be a
noop.

(cherry picked from commit 311a1ee33a)
2017-09-08 16:04:42 +02:00
Michael Raskin
65c34a8375 ocropus: 20150316 -> 20170811
(cherry picked from commit 036bafe0b9)
2017-09-08 16:03:51 +02:00
Michael Raskin
8c26ccac35 silgraphite: drop graphite1 (which had version 2.x)
(cherry picked from commit 6f740953e6)
2017-09-08 16:03:51 +02:00
Michael Raskin
9ba4e92fce vacuum: 1.2.4 -> 1.3.0.20160104
(cherry picked from commit fff500fc00)
2017-09-08 16:03:51 +02:00
Michael Raskin
3e70e3842c pythonPackages.wptserve: make python2-only (upstream uses relative import in the latest release)
(cherry picked from commit f20ccd4b5e)
2017-09-08 16:03:51 +02:00
Michael Raskin
308d3752df pythonPackages.manifestparser: make python2-only
(cherry picked from commit cca09d8067)
2017-09-08 16:02:47 +02:00
Michael Raskin
66070e0c70 pythonPackages.browsermob-proxy: make python2-only
(cherry picked from commit ad44a76005)
2017-09-08 16:02:38 +02:00
Cray Elliott
f4189a8f56 winetricks: 20170614 -> 20170823
(cherry picked from commit f03964ff7c)
2017-09-08 16:01:39 +02:00
Jaka Hudoklin
24f637915e spice-vdagent: systemd-logind integration
This change adds systemd as dependency to enable user session
integration with systemd-logind

(cherry picked from commit 3ca311d74d)
2017-09-08 16:01:19 +02:00
yesbox
ff3f831243 sonarr: 2.0.0.4928 -> 2.0.0.4949
(cherry picked from commit 5059db823a)
2017-09-08 16:01:03 +02:00
Andreas Rammhold
02e47908aa rustup: 1.2.0 -> 1.3.0
(cherry picked from commit 14c3ce919b)
2017-09-08 16:00:41 +02:00
Cray Elliott
7b890e2e1f nvidia-x11: 375.66 -> 384.69
(cherry picked from commit 6df5f88aca)
2017-09-08 16:00:29 +02:00
Eric Litak
a9af2309a7 factorio: 0.15.33 -> 0.15.34
(cherry picked from commit 2164c01a53)
2017-09-08 16:00:04 +02:00
Eric Litak
d1cc587512 factorio: refactored the arch+version abstraction
(cherry picked from commit 02d715d29b)
2017-09-08 15:59:56 +02:00
WilliButz
f0369b8c1e grafana: 4.3.2 -> 4.4.3
(cherry picked from commit 226a20117d)
2017-09-08 15:59:37 +02:00
Ryan Mulligan
327e0913e8 truecrypt: fix build with gcc6 patch
The build was failing with gcc 6.4.0; using the samee gcc6 patch Arch
Linux uses fixed the build.

This commit also refactors out the builder.sh possibly fixing the
NOGUI make flag option.

(cherry picked from commit 8b0de80e55)
2017-09-08 11:53:28 +01:00
Frederik Rietdijk
85a1d86d93 Revert "python.pkgs.buildPythonPackage: use distutils-cfg to block downloads, fixes #25428"
This reverts commit b73e3bfafd.

See https://github.com/NixOS/nixpkgs/issues/29103

(cherry picked from commit c3a0c3c9f1)
2017-09-08 08:55:52 +02:00
Vladimír Čunát
399b6100c2 nixos/mfi: fix eval after removal 7ffc6db733 2017-09-08 08:41:06 +02:00
Vladimír Čunát
9efe46d94d Merge #28906: glibc: 2.25 -> 2.25-49 (upstream patches)
(cherry picked from commit 0c660ad42f)
2017-09-07 23:34:43 +02:00
Frederik Rietdijk
722c328a22 Revert "python.pkgs.pybfd: mark as broken"
This reverts commit 2f5ee4989a.

Package is no longer broken since 460df30bd8 was reverted.
2017-09-07 22:27:55 +02:00
Bjørn Forsman
0a94033ab5 perlPackages.BoostGeometryUtils: unbreak build
Set LD=$CC to fix this build error:

...
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Boost/Geometry/Utils/Utils.bs')
ld -shared -O2 -L/nix/store/sgjc1147vi5hd57ck9xgck5xjkydg5lz-glibc-2.25/lib -fstack-protector-strong -o blib/arch/auto/Boost/Geometry/Utils/Utils.so buildtmp/Utils.o -lstdc++
buildtmp/Utils.o: In function `_GLOBAL__sub_I_Utils.c':
Utils.c:(.text.startup+0x1a): undefined reference to `__dso_handle'
/nix/store/yf4p5w2v4h4i8rja9zw1akp007av624j-binutils-2.28.1/bin/ld: buildtmp/Utils.o: relocation R_X86_64_PC32 against undefined hidden symbol `__dso_handle' can not be used when making a shared object
/nix/store/yf4p5w2v4h4i8rja9zw1akp007av624j-binutils-2.28.1/bin/ld: final link failed: Bad value
error building blib/arch/auto/Boost/Geometry/Utils/Utils.so from buildtmp/Utils.o at /nix/store/7q2hps69zkj501lsmvnd2ry95mmdbh80-perl-5.24.2/lib/perl5/5.24.2/ExtUtils/CBuilder/Base.pm line 321.
builder for ‘/nix/store/bdwqvgxlgcqsmlqfh0d74jkpw96p78kh-perl-Boost-Geometry-Utils-0.15.drv’ failed with exit code 2
error: build of ‘/nix/store/bdwqvgxlgcqsmlqfh0d74jkpw96p78kh-perl-Boost-Geometry-Utils-0.15.drv’ failed

(cherry picked from commit c24820db93)
2017-09-07 21:53:01 +02:00
Bjørn Forsman
4b28be5f10 nixos/postfix: undo deprecation of extraConfig, extraMasterConf
I realize that advanced users like to configure services with Nix
attrsets, but I don't think we should remove the option to use the
(configuration) language provided by upstream.

(cherry picked from commit eed14baec3)
2017-09-07 21:46:13 +02:00
Robin Gloster
670c641c03 tcpdump: 4.9.1 -> 4.9.2
This is a security release theoretically under emgargo, but leaked by
Mageia and Fedora.

We have permission to deliver this prior to public release.

(cherry picked from commit 993a83d395)
2017-09-07 21:39:12 +02:00
Jörg Thalheim
2cfba17936 mfi: remove
(cherry picked from commit 6b6ffd5b21)
2017-09-07 20:34:45 +01:00
Jörg Thalheim
7ffc6db733 nixos/mfi: remove
(cherry picked from commit 6f0b538044)
2017-09-07 20:34:45 +01:00
Jörg Thalheim
dc8bd23dce v8: remove 3.14.5.10
was only used by mongodb248

(cherry picked from commit 9ee5727459)
2017-09-07 20:34:44 +01:00
Jörg Thalheim
e6bf7dfd5f mongodb248: remove
reason: build fails in hydra
Do still need this and want to maintain this @elitak?

(cherry picked from commit 382afe8c62)
2017-09-07 20:34:44 +01:00
Frederik Rietdijk
32f2eadbe4 Merge pull request #29072 from FRidh/python-fixes-3
Python: several fixes (3)
(cherry picked from commit 56c56fb414)
2017-09-07 19:27:12 +02:00
Nikolay Amiantov
4e6c92d548 python.pkgs.protobuf: fix build
(cherry picked from commit 4999aeb7b7)
2017-09-07 18:13:41 +02:00
Tim Steinbach
283d969a9c linux: 4.9.47 -> 4.9.48
(cherry picked from commit dc8b228a89)
2017-09-07 10:31:24 -04:00
Tim Steinbach
d144cabba9 linux: 4.12.10 -> 4.12.11
(cherry picked from commit a1912c9eb4)
2017-09-07 10:31:23 -04:00
Eelco Dolstra
460df30bd8 Revert "Merge pull request #28557 from obsidiansystems/binutils-wrapper"
This reverts commit 0a944b345e, reversing
changes made to 61733ed6cc.

I dislike these massive stdenv changes with unclear motivation,
especially when they involve gratuitous mass renames like NIX_CC ->
NIX_BINUTILS. The previous such rename (NIX_GCC -> NIX_CC) caused
months of pain, so let's not do that again.

(cherry picked from commit ec8d41f08c)
2017-09-07 12:53:33 +02:00
Frederik Rietdijk
2f5ee4989a python.pkgs.pybfd: mark as broken 2017-09-07 12:48:31 +02:00
Frederik Rietdijk
c51b089392 Merge pull request #29009 from FRidh/python-fixes-2
Python: several fixes (2)
(cherry picked from commit aabadda0c2)
2017-09-07 10:23:26 +02:00
Peter Hoeg
165fa89762 arc-theme: Fix build with gnome 3.24
(cherry picked from commit fefdc00c52)
2017-09-07 16:00:24 +08:00
Tim Steinbach
b50193f0ca tests: Fix hibernate
(cherry picked from commit 024b501907)
2017-09-06 22:02:41 -04:00
Daiderd Jordan
a6c29020c1 ucl: only pass -stc=c90 when using gcc
Also remove -fPIC, it's included in the hardening flags by default.

(cherry picked from commit 51eafbe028)
2017-09-06 21:55:10 +02:00
Tim Steinbach
de2697ea78 docker: 17.06.1-ce -> 17.06.2-ce
(cherry picked from commit 8bd1a220d9)
2017-09-06 15:05:10 -04:00
John Ericson
a23b5a1c8b macos-sierra-shared: Fix, after binutils-wrapper broke it
cctool's as needs to be told use to use gnu as, or else we'd need a
dependency cycle between cctools and clang for this case.

In general, this is not a problem because clang uses its own integrated
assembler where possible, and gnu as otherwise.

(cherry picked from commit eb326c9cb7)
2017-09-06 14:29:23 -04:00
Frederik Rietdijk
e1d6d735b9 python.pkgs.pytest-warnings: fix homepage, fixes eval
(cherry picked from commit dcbf59d8a7)
2017-09-06 20:18:24 +02:00
Markus Hauck
58ed8fa77a rawtherapee: 5.0-r1 -> 5.2
(cherry picked from commit 572361f396)
2017-09-06 19:42:26 +02:00
pbogdan
7b174993b9 nixos/fontconfig: fix substitutions option (#28895)
(cherry picked from commit 94a4183bda)
2017-09-06 19:23:45 +02:00
makefu
e642c7607c dnscrypt-wrapper module: fix permissions and options
When keys get refreshed a folder with the permissions of the root user
get created in the home directory of the user dnscrypt-wrapper. This
prevents the service from restarting.

In addition to that the parameters of dnscrypt-wrapper have
changed in upstream and in the newly packaged software.

(cherry picked from commit ca54a86162)
2017-09-06 19:23:43 +02:00
Orivej Desh
51cede6eab tiled: 1.0.1 -> 1.0.3
(cherry picked from commit cf6f900989)

Contains quite a few bug fixes
2017-09-06 19:23:38 +02:00
Tim Steinbach
5addd12c9b i3-gaps: Install man pages properly
(cherry picked from commit 41d9884067)
2017-09-06 10:20:04 -04:00
Frederik Rietdijk
52fa67fddd Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
(cherry picked from commit 67651d80bc)
2017-09-06 15:23:07 +02:00
wisut hantanong
ea825f78d1 pythonPackages.pyshp : move to separate expression
(cherry picked from commit 489bfcfa0f)
2017-09-06 15:22:55 +02:00
wisut hantanong
63e363f374 pythonPackages.tempora : move to separate expression
(cherry picked from commit 43acfe0f49)
2017-09-06 15:20:20 +02:00
wisut hantanong
444839b310 pythonPackages.pyrr : move to separate expression
(cherry picked from commit b9eebaf8bb)
2017-09-06 15:19:30 +02:00
Joachim Fasting
20f4bfd81a tinycc: 0.9.27pre-20170710 -> 0.9.27pre-20170821
(cherry picked from commit 004463152a)
2017-09-06 07:09:04 +02:00
Joachim Fasting
9da9004062 tor-browser-bundle-bin: 7.0.4 -> 7.0.5
(cherry picked from commit 5113be54a4)
2017-09-06 07:08:57 +02:00
John Ericson
28e46e2388 mplayer: depsBuildBuild isn't (yet) a parameter, so don't use it
Thanks @dezgeg for catching my error.

(cherry picked from commit f152a5d7bb)
2017-09-06 00:37:30 -04:00
John Ericson
601e989d43 zile: disable help2man for cross builds
@dezgeg caught my error--the issue isn't building help2man, but running
it on cross-compiled binaries.

This effectively reverts 0825f30fd2 as
far as behavior is concerned, but keeps the removal of `crossAttrs`.

(cherry picked from commit 28e4975bd1)
2017-09-06 00:31:40 -04:00
Daiderd Jordan
171cc193b8 afl: use clangStdenv
Fixes #28712

(cherry picked from commit 8706664ff6)
2017-09-05 22:01:44 +02:00
Daiderd Jordan
dcaa3fdb84 clang-stdenv: use libstdcxxHook when targeting linux
(cherry picked from commit 907222098a)
2017-09-05 21:48:50 +02:00
Daiderd Jordan
356a0c8de6 libstdc++: add setup-hook
(cherry picked from commit 0ea92a3c24)
2017-09-05 21:48:49 +02:00
Samuel Leathers
1134b9e2d0 libfpx: fix build with gcc6
(cherry picked from commit 402e6ac089)
2017-09-05 21:43:11 +02:00
John Ericson
d94110403e haskell infra: Make sure packages get custom stdenv
One of the goals of 74f5fe5 was to allow passing in a custom stdenv,
which would be used for genericBuilder's `mkDerivation` call. That does
work, but if packages takes `stdenv` as an parameter for any reason,
they'll get the default one instead. This change remedies it.

(cherry picked from commit 19de1f537e)
2017-09-05 15:35:57 -04:00
Franz Pletz
6d8a5d7851 file: 5.31 -> 5.32 for CVE-2017-1000249
(cherry picked from commit 84ec7ef6c3)
2017-09-05 20:23:00 +02:00
John Ericson
ae2b248bf7 mplayer: Simplify cross, no crossAttrs or crossConfig
(cherry picked from commit 10b2bb8288)
2017-09-05 14:06:13 -04:00
John Ericson
6bb6587953 links 2: Simplify cross, no crossAttrs or crossConfig
(cherry picked from commit 5de3b11960)
2017-09-05 14:06:13 -04:00
John Ericson
40ada2dac9 elinks: Simplify cross, no crossAttrs or crossConfig
(cherry picked from commit 8babcd4d2b)
2017-09-05 14:06:13 -04:00
John Ericson
d0fc9587bd zile: help2man is no longer likely to cause problems
(cherry picked from commit 0825f30fd2)
2017-09-05 14:06:13 -04:00
Franz Pletz
a5a6cd017a postgresql92: remove last references
(cherry picked from commit 279db6966ef89bd8096634fdb5a5ec77dd06a228)
2017-09-05 18:20:05 +02:00
Franz Pletz
bc36e9184a postgresql9{1,2}: fix evaluation
(cherry picked from commit 59bed53f3c)
2017-09-05 18:20:05 +02:00
Piotr Bogdan
6ba56fe18e caps: fix build with gcc6
(cherry picked from commit 3d8d9aa1dd)
2017-09-05 18:07:42 +02:00
Franz Pletz
f24a7f6fa8 i3: install manpages
cc #28976

(cherry picked from commit 101a048f95)
2017-09-05 18:04:11 +02:00
Franz Pletz
c37b132cff postgresql96: 9.6.3 -> 9.6.5
(cherry picked from commit 4743d77e57)
2017-09-05 18:04:11 +02:00
Franz Pletz
97ab9b57a9 postgresql95: 9.5.7 -> 9.5.9
(cherry picked from commit 1b0acfed50)
2017-09-05 18:04:11 +02:00
Franz Pletz
1d2ddfe7d1 postgresql94: 9.4.12 -> 9.4.14
(cherry picked from commit df0b19aedc)
2017-09-05 18:04:10 +02:00
Franz Pletz
204a1ac4d4 postgresql93: 9.3.17 -> 9.3.19
(cherry picked from commit 8b930e716a)
2017-09-05 18:04:10 +02:00
Franz Pletz
38e18a141d postgresql9{1,2}: remove, not supported anymore
See https://www.postgresql.org/support/versioning/.

(cherry picked from commit dbf6e367e8)
2017-09-05 18:04:10 +02:00
Tim Steinbach
e53117c2c0 i3: 4.13 -> 4.14
(cherry picked from commit ce38725162)
2017-09-05 18:04:06 +02:00
Tim Steinbach
83bef527f7 py3status: 3.0 -> 3.6
(cherry picked from commit 36ee9dcf70)
2017-09-05 18:04:06 +02:00
Samuel Leathers
c296005ad0 lenmus: fixing build with gcc6
(cherry picked from commit bd540d9370)
2017-09-05 18:04:05 +02:00
Michel Kuhlmann
f451490389 saga: 2.3.1 -> 5.0.0
(cherry picked from commit 7a96ec95bf)
2017-09-05 18:04:05 +02:00
Fatih Altinok
b5e566dff9 flow: 0.49.1 -> 0.54.0
(cherry picked from commit ec39670290)
2017-09-05 18:03:32 +02:00
Gabriel Adomnicai
65f47e95bf mmake: init at 1.2.0 (#28904)
* Package for mmake

* Package for mmake - build from sources

* Package name update

* Added maintainers

(cherry picked from commit 7c08e86be9)
2017-09-05 18:03:32 +02:00
Michael Alan Dorman
53ad9a097b melpa-packages: 2017-09-04
(cherry picked from commit 12e1a2b186)
2017-09-05 18:03:31 +02:00
Michael Alan Dorman
a026fad3a4 melpa-stable-packages: 2017-09-04
(cherry picked from commit cb04086a96)
2017-09-05 18:03:31 +02:00
Michael Alan Dorman
33f5cc8de8 org-packages: 2017-09-04
(cherry picked from commit e010d2d2cb)
2017-09-05 18:03:31 +02:00
Michael Alan Dorman
e0d1da48a0 elpa-packages: 2017-09-04
(cherry picked from commit 4216546642)
2017-09-05 18:03:30 +02:00
SLNOS
20f2b1ffaa firefoxPackages: tor-browser: 6.5.2 -> 7.0.1, keep 6.5.2
(cherry picked from commit 26cf9e33fa)
2017-09-05 18:01:39 +02:00
SLNOS
58d947a4fe firefoxPackages: tor-browser: reorganize expression
(cherry picked from commit 513341434c)
2017-09-05 18:01:39 +02:00
SLNOS
f7d0f713a8 firefoxPackages: add extraMakeFlags to common builder, fix official branding handling
(cherry picked from commit a681afb8f1)
2017-09-05 18:01:39 +02:00
SLNOS
886ab96d1a firefoxPackages: add extraConfigureFlags to common builder, move --disable-loop flag to tor-browser expression
(cherry picked from commit 344fbb5ddb)
2017-09-05 18:01:38 +02:00
José Luis Lafuente
431f24ee4f hyper: 1.3.3 -> 1.4.3
(cherry picked from commit 1db53fb938)
2017-09-05 18:01:38 +02:00
Samuel Leathers
2efe24ca13 libctemplate: remove 2.2
(cherry picked from commit 896f0daa1a)
2017-09-05 16:45:08 +01:00
Samuel Leathers
b5f5583bdc stunt rally: fixing build with gcc6
(cherry picked from commit 2134b928ec)
2017-09-05 16:37:42 +01:00
Lukas Werling
eba2aed324 x2goclient: 4.0.5.1 -> 4.1.0.0
Add openssh as dependency for sftp-server. When connecting, x2goclient
crashes if it can't find that executable.

(cherry picked from commit a8aef188c8)
2017-09-05 15:25:51 +01:00
Samuel Leathers
9e50f29525 herqq: 1.0.0 -> 2.1.0
(cherry picked from commit 4151e2f579)
2017-09-05 15:27:52 +02:00
Laure Tavard
941e5f65be cdo: init at 1.7.2 (#22496)
(cherry picked from commit bf491f8794)
2017-09-05 14:43:49 +02:00
Robin Gloster
9e66acf8d1 jenkins: 2.73 -> 2.77
(cherry picked from commit 8502d94b31)
2017-09-05 14:43:42 +02:00
Robin Gloster
f307c3ed69 bwa: 0.7.15 -> 0.7.16a
(cherry picked from commit a0967948d9)
2017-09-05 14:43:42 +02:00
Jörg Thalheim
e9f8acfbeb linux_chromiumos_3_18: remove kernel due lack of maintainer/breakage
There is no maintainer for this package, probably not many users.
It requires effort to fix all third-party modules for this old kernel
versions. It might contain unpatched security holes.

For Pixel chromebooks, we have the samus-kernel.
Apart from that https://github.com/GalliumOS/linux might be a good choice.

(cherry picked from commit 44f93731d6)
2017-09-05 14:43:42 +02:00
Peter Hoeg
4fd60bf174 ktorrent: 5.0.1 -> 5.1.0
(cherry picked from commit 17f4cb4eb8)
2017-09-05 14:28:28 +02:00
Peter Hoeg
c5e2076a21 libktorrent: 2.0.1 -> 2.1
(cherry picked from commit 82e0b910e7)
2017-09-05 14:28:27 +02:00
Franz Pletz
cdd2a69447 ffmpeg_2_8: 2.8.11 -> 2.8.13
(cherry picked from commit 85cffcfce0)
2017-09-05 14:28:19 +02:00
Franz Pletz
49408358f5 libav_12: 12 -> 12.1
(cherry picked from commit b1e9eff33e)
2017-09-05 14:28:19 +02:00
Franz Pletz
32cf375642 kismet: 2013-03-R1b -> 2016-07-R1
(cherry picked from commit 95d18f3509)
2017-09-05 14:28:18 +02:00
Franz Pletz
bb5ce1654f capnproto: 0.6.0 -> 0.6.1
(cherry picked from commit 3352cfc597)
2017-09-05 14:28:18 +02:00
Franz Pletz
4fbd803a04 can-utils: 20140427 -> 20170830
(cherry picked from commit bdd7630b53)
2017-09-05 14:28:18 +02:00
Franz Pletz
ed220780be cadvisor: 0.23.8 -> 0.26.1
(cherry picked from commit 6f7f5b5c85)
2017-09-05 14:28:17 +02:00
Franz Pletz
fd51bd8501 babeltrace: 1.2.4 -> 1.5.3
(cherry picked from commit c6e5fc0b36)
2017-09-05 14:28:17 +02:00
Franz Pletz
e48446fc21 avro-cpp: 1.8.1 -> 1.8.2
(cherry picked from commit 0c08a18f19)
2017-09-05 14:28:17 +02:00
Franz Pletz
0582995d67 avidemux: 2.6.20 -> 2.7.0
(cherry picked from commit df92ed29a5)
2017-09-05 14:28:16 +02:00
Franz Pletz
7205373a87 autoconf-archive: 2016.09.16 -> 2017.03.21
(cherry picked from commit 1c4d28539f)
2017-09-05 14:28:16 +02:00
Franz Pletz
50891380f5 audio-recorder: 1.9.4 -> 1.9.7
(cherry picked from commit 69549aeee5)
2017-09-05 14:28:16 +02:00
Franz Pletz
94bfbac7b8 at: 3.1.16 -> 3.1.20
(cherry picked from commit 00a9902297)
2017-09-05 14:28:15 +02:00
Gabriel Ebner
73d472999e eprover: 1.9.1 -> 2.0
(cherry picked from commit b2eff3c60d)
2017-09-05 14:28:15 +02:00
Franz Pletz
3d83c82dbf tcpdump: fix multiple CVEs
Fixes CVE-2017-11541, CVE-2017-11542, CVE-2017-11543.

Also fixes a segfault if built with openssl 1.1.

(cherry picked from commit a46f206271)
2017-09-05 13:11:29 +02:00
Franz Pletz
c6b5b198ac aptly: 1.0.1 -> 1.1.1
(cherry picked from commit f8ff9a783f)
2017-09-05 13:11:29 +02:00
Franz Pletz
db84535738 asterisk-lts: 13.15.0 -> 13.17.1
(cherry picked from commit 9d7425052b)
2017-09-05 13:11:29 +02:00
Franz Pletz
a812bc0fde asterisk-stble: 14.6.0 -> 14.6.1
(cherry picked from commit abba0b15d8)
2017-09-05 13:11:28 +02:00
Franz Pletz
dd788df85f advancecomp: 1.23 -> 2.0
(cherry picked from commit a5e9a31fb5)
2017-09-05 13:11:28 +02:00
Franz Pletz
153b9e02d3 connman: 1.34 -> 1.35
Fixes CVE-2017-12865, see http://connmando.nri-secure.co.jp/index.html.

Fixes #28967.

(cherry picked from commit 7753daa204)
2017-09-05 12:14:56 +02:00
Kamil Chmielewski
251ec42ecc ponyc: 0.18.1 -> 0.19.0
https://github.com/ponylang/ponyc/issues/2209
(cherry picked from commit b80c3646c2)
2017-09-05 12:14:44 +02:00
catern
08728dd9eb offlineimap: add Kerberos support
(cherry picked from commit b5eb923bc7)
2017-09-05 12:14:32 +02:00
catern
bd9abb16ce mutt: add Kerberos support
(cherry picked from commit bf33bf525d)
2017-09-05 12:14:17 +02:00
Ioannis Koutras
f76a08e461 skrooge: 2.8.1 -> 2.9.0
(cherry picked from commit c256e8f398)
2017-09-05 12:13:46 +02:00
Gabriel Gonzalez
0db8f35b7d Statically link dhall-* executables
This change statically links the `dhall-*` family of executables so that
they start up more quickly on NixOS.  This also updates the `dhallToNix`
utility to use the statically linked `dhall-to-nix` executable

(cherry picked from commit fd2c8d0a00)
2017-09-05 12:13:00 +02:00
Profpatsch
24071cbc19 Revert "dhall: add a static top-level executable for dhall"
This reverts commit 11cd027b30.

There is a more extensive PR.

(cherry picked from commit ffa631dd39)
2017-09-05 12:12:53 +02:00
Peter Hoeg
531d3792ad netalyzr: init at 57861
(cherry picked from commit 62ff6cb69c)
2017-09-05 12:12:18 +02:00
Vladimír Čunát
42c68301f4 maxx: license fixups
The main thing is that I'm convinced the license can't be free when it
restricts redistribution to certain platforms.  That probably holds with
the usual definitions like from Debian, FSF or OSI.

(cherry picked from commit 8414d8386b)
2017-09-05 12:11:30 +02:00
adisbladis
dbf7ed1306 go-ethereum: 1.6.6 -> 1.6.7
(cherry picked from commit 1b709c981c)
2017-09-05 08:49:11 +01:00
Samuel Leathers
a8a33fe284 srcml: fix build with gcc6
(cherry picked from commit d93e2ccdd0)
2017-09-05 07:40:49 +01:00
Peter Hoeg
5ab8db6599 dbus-broker: meson and ninja hooks handle most things for us
(cherry picked from commit 6f6a7aae8f)
2017-09-05 09:53:48 +08:00
Vladimír Čunát
ae0babcb63 licenses: fix fullName capitalization
inspired by repology.org

(cherry picked from commit 65f6e6ccb6)
2017-09-05 00:22:26 +02:00
Jörg Thalheim
eee2d17446 mitmproxy: unicode locales, skip network test
(cherry picked from commit 73c6284c2e)
2017-09-04 22:48:21 +01:00
Michele Catalano
288d1d1780 nexus: Add module for nexus.
Add also myself as maintainer
Add simple test of the nexus service

(cherry picked from commit 4ea1d49643)
2017-09-04 23:16:41 +02:00
Michele Catalano
b922f949e2 nexus: 2.12.0-01 -> 3.5.1-02
Update Nexus to version 3.5.1-02 and fix startup stript to run in nix
environment.

(cherry picked from commit e783c2b39c)
2017-09-04 23:16:32 +02:00
Profpatsch
0ad86858e7 dhall: add a static top-level executable for dhall
cc @Gabriel439

(cherry picked from commit 11cd027b30)
2017-09-04 23:16:25 +02:00
Jaka Hudoklin
1a3596a862 tor-browser: allow to pass TOR_CONTROL_PORT and TOR_SOCKS_PORT
(cherry picked from commit 0347659542)
2017-09-04 23:16:08 +02:00
Tim Steinbach
d903f48495 alacritty: 2017-08-28 -> 2017-09-02
(cherry picked from commit 0e8875285a)
2017-09-04 23:15:45 +02:00
Michael Weiss
7861d1b0a6 glances: 2.10 -> 2.11
(cherry picked from commit d70331ca61)
2017-09-04 23:14:29 +02:00
zraexy
c44d879fec ardour: fix desktop file icon path
(cherry picked from commit 1f67b17daf)
2017-09-04 23:11:44 +02:00
Felix Singer
5c237e40c7 Update homepage link of Mumble
(cherry picked from commit f37f8c4b4b)
2017-09-04 23:11:30 +02:00
Piotr Bogdan
4c587d06fc pr template: make formatting consistent
(cherry picked from commit e221d945ad)
2017-09-04 23:11:16 +02:00
aszlig
e067351e75 xournal: 0.4.8 -> 0.4.8.2016
Upstream bug fixes:

  * pen and touchscreen input handling bugfixes
  * fix a minor bug with save file paths in Windows (D. German)
  * use GDK macros (not WIN32) to disable X11-specific code (T.
    Schoonjans)
  * export to PDF and printing: fix resolution loss on some pdf
    backgrounds
  * disable xinput during modal dialog boxes
  * avoid data corruption when exporting to overwrite a PDF
  * fix path search order for toolbar bitmaps
  * text and image tools activate on button release instead of button
    press to avoid subsequent confusion between clicks in toolbar and
    drawing area
  * fix "pen disable touch" when touchscreen sends prox events (A.
    Kittenberger)
  * fix crash when pasting text or images via xclip
  * updated Italian translation (Marco Ciampa)

New upstream features:

  * add space and shift-space bindings to page down/up (D. German)
  * add A5 paper (D. German)
  * config option to export successive layers to separate PDF pages
  * config option to create new file when trying to open non-existent
    .xoj

The full change log along with bug numbers can be found at:

https://sourceforge.net/p/xournal/code/ci/Release-0_4_8_2016/tree/ChangeLog

I've dropped gdk-quartz-backend.patch, because I believe it has been
fixed upstream.

Here are the upstream changes relevant for the patch (shortened, because
SourceForge has really long URLs):

  http://bit.ly/2vXW8n0 -> src/Makefile.am
  http://bit.ly/2gDnjl7 -> src/xo-file.c
  http://bit.ly/2xJ5K7A -> src/xo-misc.c

Tested building and using the application.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @7c6f434c, @dguibert
Cc: @johbo who has introduced the patch in #21842
(cherry picked from commit 8436e9bfcd)
2017-09-04 23:11:08 +02:00
Piotr Bogdan
7c29204edd allegro: fix sandboxed build with nixUnstable
In Nix 1.12 sandboxed builds are performed in /build/ directory which conflicts
with the regex in docs/CMakeLists.txt, and generated documentation ends up in
wrong directory -> https://hydra.nixos.org/build/53914969/nixlog/1 -> CTRL-F
abi.txt

(cherry picked from commit e22a77217d)
2017-09-04 23:10:14 +02:00
Vincent Laporte
ba1645d804 coqPackages: remove duplication in mkCoqPackages
(cherry picked from commit ebce795c5c)
2017-09-04 23:09:57 +02:00
Cray Elliott
a5fa58ef45 mwprocapture: fix build with kernels <4.13
also do some minor cleanup

(cherry picked from commit 1af75ba802)
2017-09-04 23:09:42 +02:00
Cray Elliott
9c2c4e7220 mwprocapture: 1.2.0.3269 -> 1.2.0.3589
remove linux 4.11 patch as it was included upstream, include
a new patch needed for linux 4.13

(cherry picked from commit deb50bcdc7)
2017-09-04 23:09:30 +02:00
Peter Hoeg
225f26b610 zeal: 0.3.1 -> 0.4.0
Also switch to cmake and remove the ads that are now otherwise being loaded.

(cherry picked from commit c4265cd7ee)
2017-09-04 23:05:11 +02:00
Jaka Hudoklin
4d36f29e35 tor-browser: allow to pass TOR_SKIP_LAUNCH
(cherry picked from commit ff1b18a455)
2017-09-04 23:03:55 +02:00
Jaka Hudoklin
a1415df71f nixos/xpra: allow to set extra options (#28934)
(cherry picked from commit 4521225d22)
2017-09-04 23:00:54 +02:00
Tim Steinbach
a98c19fe2c Merge pull request #28991 from copumpkin/backport-coreutils-fix-17.09
coreutils: fix on Darwin
2017-09-04 16:10:55 -04:00
John Ericson
14fbe46429 gcc-4.5: Fix typo
(cherry picked from commit 6a089581f8)
2017-09-04 15:53:31 -04:00
Dan Peebles
4951f1f01c coreutils: fix on Darwin
This patch doesn't apply because it's already applied upstream
2017-09-04 14:16:14 -04:00
Matt McHenry
cb9eb2147e pfixtools: patch to work with gcc 6
Progress on: #28643
fixes #28984

(cherry picked from commit dbf97a5afe)
2017-09-04 18:38:11 +01:00
Piotr Bogdan
4c749bd913 mps: 1.115.0 -> 1.116.0
1.115.0 doesn't build with gcc6

(cherry picked from commit fc391e7ecd)
2017-09-04 20:15:30 +03:00
Samuel Leathers
3c252dc092 libmatheval: use guile 2.0
(cherry picked from commit 6e546a514c)
2017-09-04 20:07:12 +03:00
Tuomas Tynkkynen
dd83fb4354 openlierox: Fix build
(cherry picked from commit eecf9c5bb6)
2017-09-04 20:03:53 +03:00
volth
5b3e9051a0 proggyfonts: fix output hash
See PR #28960 for details about the problem. There is some
non-determinism surrounding copies of the Speedy/Speedy11 font, so
deleting one makes it deterministic again without losing anything.

(cherry picked from commit 7d231c5435)
2017-09-04 17:55:44 +01:00
Tuomas Tynkkynen
5cb9987920 tpm-tools: 1.3.8 -> 1.3.9.1, fixes build
(cherry picked from commit 5f8e6a4fe1)
2017-09-04 19:15:47 +03:00
Tuomas Tynkkynen
4bba234334 apple-source-releases: Add some meta.platforms
Or Hydra tries to build them on Linux...

(cherry picked from commit e6a83ed89c)
2017-09-04 19:06:28 +03:00
Tuomas Tynkkynen
1b55440982 mdadm4: Fix build by including change from 7d010ab5f4
And drop `-std=gnu89` while at it.

(cherry picked from commit 19387e3123)
2017-09-04 18:57:00 +03:00
John Ericson
d07d5d4c41 top-level, linux stdenv make boootstrap tools: Fix eval
Now the NixOS tarball job succeeds again

(cherry picked from commit 9a1b7cf2ae)
2017-09-04 11:40:10 -04:00
John Ericson
b3e5bda94f binutils-wrapper: Accidentally deleted macOS Sierra reexport hack
Did this when spliting off binutils-wrapper from cc-wrapper in
40e9b2a7e6: I deleted the file instead of
moving it.

(cherry picked from commit 3601a97e3c)
2017-09-04 11:40:09 -04:00
Tim Steinbach
1d9b98fa14 linux-copperhead: 4.12.10.a -> 4.13.a
(cherry picked from commit 967077537b)
2017-09-04 11:09:48 -04:00
Robin Gloster
49cdcb3468 ruby-modules grpc: fix merge 2017-09-04 14:38:41 +02:00
Tim Steinbach
67c46eff00 linux: Add 4.13
(cherry picked from commit c1e2a0b6f4)
2017-09-03 19:42:12 -04:00
Vladimír Čunát
f09532817d Merge #28946: nixos doc: update glibc locales link
(cherry picked from commit b41d33319c)
2017-09-03 23:04:04 +02:00
Jörg Thalheim
c22764892c nestopia: fix icon theme
(cherry picked from commit 4b10de8182)
2017-09-03 17:14:16 +01:00
Samuel Leathers
b9f56a420a nestopia: 1.46.2 -> 1.47
(cherry picked from commit 7d54467ad0)
2017-09-03 17:14:12 +01:00
John Ericson
300627b46f doc: Document Binutils Wrapper
Shrunk the CC Wrapper documentation so as not to be repetative.

(cherry picked from commit 44cc709e29)
2017-09-03 11:30:38 -04:00
John Ericson
b852d2bf53 rpm: Fix to get raw binutils for headers
(cherry picked from commit b298916442)
2017-09-03 11:30:38 -04:00
John Ericson
cf9e40252b gcc_multi: Fix so binutils wrapper also has glibc_multi
(cherry picked from commit ce359d49fb)
2017-09-03 11:30:38 -04:00
John Ericson
f1c6e057e8 darwin binutils: Unwrap GNU Binutils before splicing with cctools
(cherry picked from commit b64736a8e4)
2017-09-03 11:30:38 -04:00
John Ericson
28952795b7 binutils-wrapper: Import separately from cc-wrapper
(cherry picked from commit dbf6d20d64)
2017-09-03 11:30:38 -04:00
John Ericson
89481b70ea misc pkgs: Use $NIX_BINUTILS for when needed
Certain files are now only there instead of $NIX_CC (some are in both)

(cherry picked from commit 3f30cffa55)
2017-09-03 11:30:38 -04:00
John Ericson
c2a440334e binutils-wrapper: Init
Factor a binutils wrapper out of cc-wrapper. While only LD is wrapped,
the setup hook defines environment variables on behalf of other
utilites.

(cherry picked from commit 40e9b2a7e6)
2017-09-03 11:30:38 -04:00
John Ericson
cc76444a87 cc-wrapper: Use separate mangler for "bool" variables
This avoids any `NIX_FOOBAR=1 1` not triggering conditions.

(cherry picked from commit fbb7d335db)
2017-09-03 11:30:37 -04:00
John Ericson
a1a9964c21 cc-wrapper: Pull variable mangler into utils.sh
In preparation for splitting out binutils-wrapper

(cherry picked from commit 1f5807d760)
2017-09-03 11:30:37 -04:00
John Ericson
ee7ae7b1ca cc-wrapper: Clean up dynamic linking with x86 multilib
It's better layering to do everything in ld-wrapper.

(cherry picked from commit 94c0267fc1)
2017-09-03 11:30:37 -04:00
Daiderd Jordan
2a4f41ee0f darwin: add callPackage
(cherry picked from commit 3979f48f7f)
2017-09-03 11:30:37 -04:00
Daiderd Jordan
a924f740bf darwin: move definition to separate file
(cherry picked from commit c4f18901b4)
2017-09-03 11:30:37 -04:00
Jörg Thalheim
4da94b1e50 gpaste: add adwaita-icon-theme theme
(cherry picked from commit c2881983fb)
2017-09-03 16:28:42 +01:00
Jan Tojnar
fb192f7583 gnome3.gpaste: refactor
(cherry picked from commit 4069cb2b0f)
2017-09-03 16:28:32 +01:00
Jan Tojnar
955e050ac0 nixos/gnome3.gpaste: add service
(cherry picked from commit 6ca6ea9e23)
2017-09-03 16:28:22 +01:00
Orivej Desh
12a2f532b8 stdenv-setup: list environment variables with awk
(cherry picked from commit f4044c1ccc)
2017-09-03 11:13:35 -04:00
Orivej Desh
02ad1fd89b stdenv-setup: fix substituteAll with set -eu
Environment variable filter in substituteAll was not precise and produced
undefined and invalid variable names.  Vladimír Čunát tried to fix that in [1],
but `env -0` did not work during Darwin bootstrap, so [2] reverted this change
and replaced an error due to invalid variables with a warning.  Recently in #28057
John Ericson added `set -u` to `setup.sh` and undefined variables made the setup
fail during e.g. `nix-build -A gnat` with `setup: line 519: !varName: unbound
variable`.

[1] 62fc8859c1
[2] 81df035429

(cherry picked from commit a09d9e7cd4)
2017-09-03 11:13:35 -04:00
Orivej Desh
ffb2b66c1d mkDerivation: explain "all" in hardeningDisable
https://github.com/NixOS/nixpkgs/pull/28806#discussion_r136516276
(cherry picked from commit 447240b19f)
2017-09-03 11:13:34 -04:00
John Ericson
fb1a44062a darwin-stdenv: Hack around impurity with --disable configure flag
(cherry picked from commit 8dbdc5dd51)
2017-09-03 10:58:39 -04:00
John Ericson
2a91d41a25 darwin-stdenv: Don't use nativeTools
Now, we'll actually use the wrapped ld to link

(cherry picked from commit 3b6e7fe123)
2017-09-03 10:58:15 -04:00
John Ericson
9be4014574 gettext: libiconv should be a buildInput
(cherry picked from commit 2cc7f1a731)
2017-09-03 10:53:38 -04:00
Matthieu Coudron
2eecbcc20d neovim: fix missing dependancy luajit lpeg
luajit libraries are not the same as vanilla lua ones, hence when luajit
is enabled, the build fails.
Fixes https://github.com/NixOS/nixpkgs/issues/14442

(cherry picked from commit 9889c1c661)
2017-09-03 15:40:36 +01:00
Franz Pletz
313ea79244 gitlab: 9.4.5 -> 9.5.2
(cherry picked from commit 2f48144d0e)
2017-09-03 16:00:05 +02:00
Graham Christensen
11459b001b release notes: gnupg programs are no longer suffixed
(cherry picked from commit 83043c948e)
2017-09-03 09:03:21 -04:00
Robin Gloster
b58b18d75c nginx: module fix example
Closes #28926

(cherry picked from commit 97a2cd0748)
2017-09-03 14:05:53 +02:00
Lancelot SIX
ac101a5adb libgcrypt: 1.8.0 -> 1.8.1
Fixes CVE-2017-0379

See http://lists.gnu.org/archive/html/info-gnu/2017-08/msg00014.html
for release announcement

(cherry picked from commit 095af3e63b)
2017-09-03 13:49:19 +02:00
Robin Gloster
596ac37833 ruby_2_0_0: fix eval due to nested list
(cherry picked from commit fc8fc63b67)
2017-09-03 13:49:09 +02:00
Orivej Desh
d38289a5d9 mkDerivation: fix hardening flags check
- allow "all" in hardeningDisable
- fix busybox flags
- print detailed error message

Discussed at https://github.com/NixOS/nixpkgs/pull/28555#issuecomment-326413032

(cherry picked from commit d70006c6d9)
2017-09-03 13:49:00 +02:00
John Ericson
54822bef11 cc-wrapper: Remove support for NIX_LDFLAGS_HARDEN
It has long been deprecated

(cherry picked from commit 3d3a6e0fac)
2017-09-03 13:48:47 +02:00
John Ericson
bf714257ba cc-wrapper: Remove {START,EXEC}_HOOK
These are no longer used by anything

(cherry picked from commit 46fd4bcb14)
2017-09-03 13:48:42 +02:00
John Ericson
f9a8e1d3f6 mkDerivation, cc-wrapper: Check hardening flag validity in Nix
This becomes necessary if more wrappers besides cc-wrapper start
supporting hardening flags. Also good to make the warning into an
error.

Also ensure interface is being used right: Not as a string, not just in
bash.

(cherry picked from commit 97a48835b7)
2017-09-03 13:48:00 +02:00
John Ericson
432c4f8334 cc-wrapper: Remove redundant hardening
GCC just passes `-z ...` flags to ld unaltered, and they are already
passed to LD anyways. On the other hand, `-pie` affects gcc behavior
too.

(cherry picked from commit 822a8d0148)
2017-09-03 13:47:50 +02:00
WilliButz
23c59df2a8 inkscape: 0.92.1 -> 0.92.2
(cherry picked from commit 95a4c03c7d)
2017-09-03 13:44:37 +02:00
WilliButz
a55be749fd netcat-openbsd: 1.105 -> 1.130
(cherry picked from commit a72ba661ac)
2017-09-03 13:44:36 +02:00
WilliButz
3985976214 nasm: 2.12.02 -> 2.13.01
(cherry picked from commit 164eb72403)
2017-09-03 13:44:36 +02:00
WilliButz
e17d6a95e1 freeradius: 3.0.14 -> 3.0.15
(cherry picked from commit 936fee257d)
2017-09-03 13:44:36 +02:00
Robin Gloster
3a35e6bef8 gitlab: fix merge 2017-09-03 13:42:41 +02:00
Austin Seipp
5c4602aec7 yices: now under GPLv3
This means Hydra can build it now!

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 583ebc086c)
2017-09-03 13:33:39 +02:00
Samuel Leathers
a964fd43e8 neuron: 7.4 -> 7.5
(cherry picked from commit d9cd226a6d)
2017-09-03 13:33:17 +02:00
Robert Helgesson
bead8c6048 league-of-moveable-type: fix long description
(cherry picked from commit 7889758c12)
2017-09-03 13:26:13 +02:00
Samuel Leathers
4c4a0c9f0a klick: fix build with gcc6
(cherry picked from commit 07f977572c)
2017-09-03 13:20:41 +02:00
Samuel Leathers
8fd000d529 jigdo: fix gcc build failures
(cherry picked from commit d98eb8a114)
2017-09-03 13:17:42 +02:00
Samuel Leathers
47df9a3f89 photivo: fixes build with gcc6
(cherry picked from commit 1398d5555c)
2017-09-03 13:17:17 +02:00
Vincent Laporte
2378db028d libvirt: fix build on darwin
(cherry picked from commit 4ee717d2d3)
2017-09-03 13:15:55 +02:00
Robin Gloster
d3550fb5c1 gitlab module: fix permissions and path
(cherry picked from commit eedffc5277)
2017-09-03 13:15:39 +02:00
Robin Gloster
7910480caf gitlab module: fix postgres superUser
(cherry picked from commit edd8265c366186d62d870c23e2b2437ae4de4c0d)
(cherry picked from commit aaff3fa5f3)
2017-09-03 13:15:33 +02:00
Robin Gloster
ca8fa377d7 gitlab: fix postgres calls
(cherry picked from commit 45605db3e0)
2017-09-03 13:15:19 +02:00
Philipp Steinpass
0d790f82c1 nixos/hydra postgresql: Fix #27314 and add test case
(cherry picked from commit d784b83005)
2017-09-03 13:15:08 +02:00
Tristan Helmich
cdbc5f5655 emby: 3.2.28.0 -> 3.2.30.0
(cherry picked from commit 0ca6c58d26)
2017-09-03 13:14:27 +02:00
Joachim Fasting
33725839f4 nixos/chromium-suid-sandbox: remove reference to grsecurity
(cherry picked from commit bb036a327c)
2017-09-03 13:14:11 +02:00
Joachim Fasting
b6f133101c nixos: purge remaining grsecurity bits
:(

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

(cherry picked from commit 268eb4adb7)
2017-09-03 13:14:05 +02:00
Joachim Fasting
90f5df6b97 nixos/release-notes: grsecurity support removed for 17.09
(cherry picked from commit 9935806894)
2017-09-03 13:13:51 +02:00
Kranium Gikos Mendoza
f020b9ae5f opal: fix gcc6 build
(cherry picked from commit 776d149c76)
2017-09-03 13:13:40 +02:00
Kranium Gikos Mendoza
dabafa684a ptlib: use fetchpatch
(cherry picked from commit 377b42a8ad)
2017-09-03 13:12:14 +02:00
Kranium Gikos Mendoza
aa97ee44f1 ptlib: fix gcc6 build
(cherry picked from commit 32d4a3dec8)
2017-09-03 13:12:07 +02:00
Samuel Leathers
fa74d9a73c freetalk: set guile version to 2.0
(cherry picked from commit 08fe8eacd9)
2017-09-03 13:11:26 +02:00
aszlig
6dae22b3f4 nixos/deluge: Fix last wrong package attribute
I missed this in 799435b7ca.

This time I used "git grep -F pythonPackages.deluge" just to be sure :-)

Thanks a lot to @roconnor for spotting this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: @roconnor
(cherry picked from commit 880a0409e8)
2017-09-03 13:10:46 +02:00
Kranium Gikos Mendoza
099a094883 ekiga: make debian patches use fetchpatch
(cherry picked from commit f9c2cb80a6)
2017-09-03 13:09:21 +02:00
Kranium Gikos Mendoza
c5e1d52786 ekiga: fix build
(cherry picked from commit 0604ea66c6)
2017-09-03 13:09:20 +02:00
Michael Weiss
bb76244665 android-studio-preview: 3.0.0.10 -> 3.0.0.12
(cherry picked from commit 8693cc5425)
2017-09-03 11:18:45 +02:00
Thomas Tuegel
56efb14e02 kscreenlocker: 5.10.5 -> 5.10.5.1
Fix segfault with nVidia drivers; see
https://bugs.kde.org/show_bug.cgi?id=384005

(cherry picked from commit 71d377fcb0)
2017-09-03 11:17:58 +02:00
Joachim Fasting
fd7e8832b5 libgcrypt: fix typo in meta.description
(cherry picked from commit b3f9b0d0cc)
2017-09-03 11:17:33 +02:00
Joachim Fasting
508f1c06fc kernelPatches.grsecurity_testing: remove
(cherry picked from commit 697cbbc617)
2017-09-03 11:17:22 +02:00
Joachim Fasting
317f86bf68 pkgs/top-level: remove grsec attributes
These have been throwing exceptions since grsec was deprecated, so
potential users should have had due to time to migrate their configs.

(cherry picked from commit 5125e209a9)
2017-09-03 11:17:13 +02:00
Robin Gloster
0479f227c7 bundler: 1.15.3 -> 1.14.6
bundler 1.15 breaks gitlab

(cherry picked from commit 891a1662aa)
2017-09-03 11:17:13 +02:00
Robin Gloster
3597a2e893 gitlab: unbreak
(cherry picked from commit 7c07807949)
2017-09-03 11:17:13 +02:00
roblabla
40001503c0 gitlab: 9.4.3 -> 9.4.5
(cherry picked from commit 55bc0c3836)
2017-09-03 11:17:13 +02:00
roblabla
a67e789fe2 gitlab: Fix packaging, compile gettext files before assets
(cherry picked from commit 259970d26e)
2017-09-03 11:17:13 +02:00
roblabla
47b0f2e095 gitlab: Mark as broken
(cherry picked from commit 05b8879464)
2017-09-03 11:17:12 +02:00
roblabla
7eb469246f gitlab: 9.3.4 -> 9.4.3
(cherry picked from commit 8975d153a0)
2017-09-03 11:17:12 +02:00
Vladimír Čunát
87cc891ad5 texlive: add ghostscript when containing pdfcrop
Potential disadvantage: ghostscript will become visible to user,
so there may e.g. be (new) collisions in nix-env due to this.
Fixes #28411.

(cherry picked from commit 828bc3812c)
2017-09-03 10:18:43 +02:00
Vladimír Čunát
933e02d72b lightdm: purge explicit usage of gcc6
I forgot to include the initial fix into the parent commit :-/

(cherry picked from commit 6ecf46334b)
2017-09-03 10:02:41 +02:00
Vladimír Čunát
8e9a7cc7a7 treewide: purge explicit usage of gcc6
It's now the default. /cc #19456
This makes a real build simplification, because in our current
bootstrapping+aliases, `gcc6` attribute is not the default compiler
but a derivation *built by* the default compiler.

nix-exec didn't build before this commit already

(cherry picked from commit 53998f5036)
2017-09-03 09:58:06 +02:00
Graham Christensen
c38f87d36e Include date and NixOS version in systemd-boot entries
Grub configs include the NixOS version and date they were built, now
systemd can have fun too:

    version Generation 99 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30
    version Generation 100 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30
    version Generation 101 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-31
    version Generation 102 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-01
    version Generation 103 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-02
    version Generation 104 NixOS 17.09beta41.1b8c7786ee, Linux Kernel 4.9.46, Built on 2017-09-02
    version Generation 105 NixOS 17.09.git.1b8c778, Linux Kernel 4.9.46, Built on 2017-09-02

(cherry picked from commit 62652be111)
2017-09-02 15:43:43 -04:00
Tim Steinbach
93d71f8afc coreutils: 8.27 -> 8.28
(cherry picked from commit 1c45fd01aa)
Fixes CVE-2017-7476.
2017-09-02 20:43:55 +02:00
Tim Steinbach
1e1b444df8 sbt: 1.0.0 -> 1.0.1
(cherry picked from commit aa59865333)
2017-09-02 12:55:20 -04:00
Tim Steinbach
b6829199c4 linux: 4.9.46 -> 4.9.47
(cherry picked from commit 27c8378c0c81aa17aef615615421aa5de3d8246b)
2017-09-02 11:17:07 -04:00
Tim Steinbach
2191b2ad21 Merge pull request #28780 from NeQuissimus/openjdk_8_144_01
openjdk: 8u152-04 -> 8u144-01
(cherry picked from commit 440bf7e06f)
2017-09-02 11:08:29 -04:00
Bjørn Forsman
b73e6289dc pythonPackages.pyrtlsdr: unbreak build
pyrtlsdr needs pandoc at build time. Fixes the build since commit
f6eb190e70
("python.pkgs.pyrtlsdr: disable tests to fix build"). (That commit
bumped the package to a new version.)

(cherry picked from commit 2cf1b94b82)
2017-09-02 16:48:49 +02:00
obadz
52dc8f227f python27Packages.smugline: fix to accomodate new behavior of makeWrapper
Ticks one box in #28643

(cherry picked from commit dd09675347)
2017-09-02 15:20:11 +01:00
obadz
c91b4fe989 pokerth: fix build error which was probably due to a changing C++ dependency (boost/g++?)
Ticks one box in #28643

(cherry picked from commit 5b943136fc)
2017-09-02 15:02:09 +01:00
Samuel Leathers
2e60bbae9d i-score: 1.0.0-a67 -> 1.0.0-b31
(cherry picked from commit d5c342c657)
2017-09-02 09:47:02 -04:00
Austin Seipp
437ca1f134 z3_opt: remove and replace with z3
Z3 has supported optimization features since the 4.4.x release, so this can be
removed.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
(cherry picked from commit 54ae0aa1b0)
2017-09-02 12:18:32 +02:00
romildo
fc18036bed theme-vertex: do not explicitly indicate the gnome version
(cherry picked from commit 7ef6d3ced9)
2017-09-02 12:18:31 +02:00
aszlig
bb9d591114 python/pyocr: 0.4.6 -> 0.4.7
Upstream changes:

  * Tesseract 4.00.00alpha:
    * Version parsing: Ignore suffix (so '4.00.00alpha' == (4, 0, 0))
    * Libtesseract: Load libtesseract.so.4 instead of libtesseract.so.3
      if available
  * Support for Tesseract 3.05.00:
    * Builders: Split field 'tess_conf' into 'tess_flags' and 'tess_conf'
    * Libtesseract: If available, use
                    TessBaseAPIDetectOrientationScript() instead of
                    TessBaseAPIDetectOS
  * Libtesseract:
    * Workaround: Prevents possible segfault in image_to_string() when
                  the target language is not available

Full upstream change log can be found at:

https://github.com/openpaperwork/pyocr/blob/b006123d1d002711b9/ChangeLog

The tesseract.patch for supporting Tesseract version 3.05.00 has been
applied upstream and we can safely drop it.

We now use substituteInPlace in conjunction with a patch to insert the
relevant store paths instead of sed, so it's less fragile whenever we
have upstream changes in handling of these paths.

I've tested this by reverting 48a941e29f and applying a build
fix patch of Cuneiform 1.1.0 from Arch Linux, because right now
Cuneiform is an experimental version that can't be fixed on behalf of
pyocr (the reason is that pyocr needs to get a list of languages, which
doesn't work in that version anymore).

In addition to that I've successfully built paperwork-backend which by
now is the one package which depends on pyocr. However, I didn't do
runtime tests of Paperwork.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @7c6f434c
(cherry picked from commit ca1ea69972)
2017-09-02 12:18:31 +02:00
aszlig
14b20f86e6 python/pyocr: Move package into python-modules
We already have a patch feeling lonely inside the python-modules
directory and to have everything at one place let's actually move pyocr
into its own dedicated directory so it's easier to patch it up (which
we're going to).

Right now, the package fails to build because of a few test failures, so
I haven't tested this apart from evaluating.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit 3086fc7f83)
2017-09-02 12:18:31 +02:00
aszlig
6eabdf0b1b beets: Run tests for external plugins
In order to run the tests for the external plugins of beets, we need to
have beets itself as a dependency. So in order to do that, we now pass
beets without plugins and tests to the nativeBuildInputs of the plugins
so that we can run them.

As soon as the plugins are built they become part of the final beets,
which also has tests enabled, so disabling the tests for beets
derivation that is used for external plugin tests is a non-issue here
because they're going to be executed anyway.

Enabling tests for the alternatives plugin is pretty straightforward,
but in order to run tests for the copyartifacts plugin, we need to bump
the source code to the latest Git master.

The reason for this is that the version that was in use until now
required to have the beets source directory alongside of the
copyartifacts source code, but we already have beets available as a
normal dependency.

Updating copyartifacts to latest master largely consists of unit test
changes and a few Python 3 compatibility changes. However, one change
has the biggest stat, which is
sbarakat/beets-copyartifacts@1a0c281da0.

Fortunately, the last change is just moving the implementation to a
newer API from upstream beets and by the looks of the implementation it
seems to break support for moving files. However, reverting this commit
also reveals that moving files was already broken before, so it wouldn't
matter much whether we have this version bump or not.

Tested with the following command:

nix-build -E '(import ./. {}).beets.override {
  enableAlternatives = true;
  enableCopyArtifacts = true;
}'

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @domenkozar, @pjones, @Profpatsch, @michalrus
(cherry picked from commit 40b76c8809)
2017-09-02 12:18:31 +02:00
aszlig
58335739d8 beets-alternatives: Disable test suite for now
Regression introduced by 94351197cd.

Running the tests results in the following traceback:
  ...
  File ".../unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File ".../test/regrtest.py", line 184, in <module>
    for module in sys.modules.itervalues():
RuntimeError: dictionary changed size during iteration

The reason for this is that the test directory itself is called "test"
and the package including regrtest.py is also called "test", so the
loader tries to load tests from its own implementation.

We could fix this by changing PYTHONPATH and/or making the test
directory a proper package, but we'd still have failing tests because
beets itself is required to run the tests.

However for now I'm just removing the unit_tests kwarg in setup.py so
that we have the same behaviour as before the initially mentioned
commit.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
(cherry picked from commit bd2aeb4883)
2017-09-02 12:18:31 +02:00
Daniel Fullmer
83771b8cb8 john: workaroud for build failure
(cherry picked from commit 28b1170f49)
2017-09-02 12:18:31 +02:00
Dmitry Kalinkin
3e35371789 documentation: use modern Firefox version in example
(cherry picked from commit b6a1e439e1)
2017-09-02 12:18:31 +02:00
Dmitry Kalinkin
86318964c3 documentation: fix some spelling
(cherry picked from commit 26068822d8)
2017-09-02 12:18:31 +02:00
romildo
3d9d532c64 uget: 2.0.8 -> 2.0.10
- Update to version 2.0.10
- Use wrapGAppsHook to wrap binaries
- Use gstreamer-1.0
- Add dependence on libappindicator

(cherry picked from commit 1f48ad8699)
2017-09-02 12:18:30 +02:00
aszlig
4d4e200fa9 nixos/deluge: Fix deluge package attribute
Regression introduced by fa5e343242.

The deluge package no longer resides in pythonPackages but now is a
top-level package.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @grantwwu, @fpletz
(cherry picked from commit 799435b7ca)
2017-09-02 12:18:30 +02:00
aszlig
38b7b10e8c conky: Don't enable nvidiaSupport by default
This has been introduced in 6a6fb6d31c.

Relying on non-free software by default is probably a bad idea. Apart
from the fact that (sane) people usually don't want to have it sitting
on their system even people who don't care will have to set
"allowUnfree" to true in order to install conky.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @canndrew, @Mic92
(cherry picked from commit 7f99876f50)
2017-09-02 12:18:30 +02:00
Samuel Leathers
c2284e2f7f espeakedit: fix build with gcc6
(cherry picked from commit b2fd2a8100)
2017-09-02 12:18:30 +02:00
Samuel Leathers
7ac229471a espeak-classic: fix build with gcc6
(cherry picked from commit 6c1364712a)
2017-09-02 12:18:30 +02:00
Roman Volosatovs
c5b077999f mopidy-iris: 3.2.0 -> 3.3.3
(cherry picked from commit 94649061c8)
2017-09-02 12:18:30 +02:00
Gabriel Ebner
bd6b318461 gnome3.dconf-editor: include gsettings_desktop_schemas
(cherry picked from commit 52eb0e0fbd)
2017-09-02 12:18:30 +02:00
Ignat Loskutov
7278caffa7 grml-zsh-config: generalize support to unix systems
(cherry picked from commit 9280937cd4)
2017-09-02 12:18:30 +02:00
Ricardo Ardissone
cba5d9243f openmw: 0.41 -> 0.42
(cherry picked from commit a2794ee5f6)
2017-09-02 12:18:29 +02:00
Florian Jacob
9a0e05ddec nixos/piwik: fix nginx submodule's ssl defaults
previous mkDefault did not work as expected,
as it did not overwrite the original submodule's defaults when the user
did not specify any custom options at all.

(cherry picked from commit 786e9711f5)
2017-09-02 12:18:29 +02:00
Dmitry Kalinkin
957eb785b3 sherpa: 2.2.1 -> 2.2.4
(cherry picked from commit 59b525e559)
2017-09-02 12:18:29 +02:00
Piotr Bogdan
efbaabe5a2 rethinkdb: fix build with gcc6
(cherry picked from commit 26ebbac2c4)
2017-09-02 12:18:29 +02:00
Frank
b503d8858a profanity support for unix
(cherry picked from commit cb61e27e9e)
2017-09-02 12:18:29 +02:00
Simon Lackerbauer
e3278a4dc9 rstudio: 1.1.216 -> 1.1.351
(cherry picked from commit 40cbf90861)
2017-09-02 12:18:29 +02:00
Servilio Afre Puentes
1e17186b02 gmime: updated home and description
GMime home has moved to Github as the list of commits clearly shows,
i.e.:

  b5cbc68a67

The description is updated as well to be closer to the one used there
and over at gnome.org.

(cherry picked from commit ddaa696a4e)
2017-09-02 12:18:29 +02:00
Frederik Rietdijk
005048335b Python docs: add section on tests
(cherry picked from commit b7d257a520)
2017-09-02 12:07:20 +02:00
Unai Zalakain
eb72f12c19 jrnl: support journal encryption by default
(cherry picked from commit 8a12b42361506048dd9abbec6dddcc8ac6e61a20)
2017-09-02 11:04:51 +02:00
Maximilian Güntner
39ee84f9d8 pybitmessage: add numpy + pyopencl to propagatedBuildInputs
(cherry picked from commit 235b63d96c)
2017-09-02 08:38:36 +01:00
Maximilian Güntner
8c1526e414 pytools: 2016.2.1 -> 2017.4
(cherry picked from commit 10e8214b93)
2017-09-02 08:38:36 +01:00
Samuel Leathers
75704617f9 glmark2: 2016-05-11 -> 2017-09-01
(cherry picked from commit 917a0e3e77)
2017-09-02 08:29:10 +01:00
Samuel Leathers
16bdd60576 freewheeling: UNSTABLE -> 0.6.2
(cherry picked from commit 232c6a00ce)
2017-09-02 08:29:10 +01:00
Will Dietz
0fd7ef61b2 clang_34: Disable hardening bits (#28543)
(cherry picked from commit cc45a96aea)
2017-09-01 19:41:33 +01:00
Jörg Thalheim
9c3a136667 python2Packages.jedi: fix tests
(cherry picked from commit e4bc14f6b7)
2017-09-01 19:07:11 +01:00
Jörg Thalheim
1b8c7786ee turses: fix build
(cherry picked from commit 4a6295e6fb)
2017-09-01 18:58:21 +01:00
Jörg Thalheim
cb50802127 python.pkgs.requests-oauthlib: fix source hash
Was accidentally broken during merge.

(cherry picked from commit e825cd8cf681722c9d1e610ada6e775b5230dac0)
2017-09-01 18:23:20 +01:00
Vladimír Čunát
551b4063af chromium: try to hack around Hydra problems
Discussion: https://github.com/NixOS/nixpkgs/commit/e8f1ddcbd1d
2017-09-01 18:21:14 +02:00
Maximilian Güntner
543f0f780c pybitmessage: replace find_library() calls with paths
fixes requested changes in #26616

(cherry picked from commit e9203772f2)
2017-09-01 14:16:00 +01:00
shak-mar
cbde9dae7c pybitmessage: 0.4.4 -> 0.6.2
squashed hashes:
3ee20b2de7c02761aeb7389821f31bbfb6626301
b9a3a3b6a25b998893a1d861849890792b9e664b

(details -> #26616)

(cherry picked from commit e3d7c4ca19)
2017-09-01 14:16:00 +01:00
Samuel Leathers
37568fd229 crrcsim: build with gcc6
(cherry picked from commit 6bc775cdf6)
2017-09-01 14:14:17 +01:00
Samuel Leathers
39099cd9ae crda: fix build with gcc6
(cherry picked from commit e92f5b54fb)
2017-09-01 13:49:37 +01:00
Jörg Thalheim
775ec9ebe4 python.pkgs.pytest-django: fix patch hash
(cherry picked from commit d52eaf878c)
2017-09-01 08:56:49 +01:00
Jan Tojnar
b999b800ce gnome3 tests: fix by providing more memory
/cc #28053.

(cherry picked from commit 3b9f0c6a46)
2017-09-01 07:54:25 +02:00
Samuel Leathers
490b33aa9f bossa: fix build with gcc6
(cherry picked from commit 39154ab86f)
2017-09-01 06:50:42 +01:00
Ruben Maher
e312ec12cd lftp: fix build on darwin
Add `gettext` (which provides `-lintl`) and disable `format` hardening in order
to fix build.

(cherry picked from commit d908b6a1b7)
2017-09-01 06:50:36 +01:00
Samuel Leathers
7c77ba95f3 caneda: fix build with gcc6
(cherry picked from commit 04b8a85739)
2017-09-01 06:50:31 +01:00
Servilio Afre Puentes
c105d14032 gitlab: fix permission issue in build phase
The newer DEB packages have a setuid file, creating an error when
unpacking the source during the build phase.

As dpkg doesn't have a way to pass parameters to tar, dpkg is then
told to just extract the filesystem tar file and that is unpacked by
tar directly.

Fixes #28494

(cherry picked from commit fae458c5e7)
2017-08-31 17:36:52 +01:00
Servilio Afre Puentes
53b7848dcc gitlab: 8.17.6 -> 8.17.8
Latest release has important bugfixes.

(cherry picked from commit cffb1fab3e)
2017-08-31 17:36:52 +01:00
Jörg Thalheim
9ba5678c43 pythonPkgs.html5lib_0_9999999: remove
no longer needed and fails with python3

(cherry picked from commit 0b2f9d1ce1)
2017-08-31 11:24:03 -05:00
Jörg Thalheim
c6b7effa56 pythonPackages.willie: remove
was renamed by sopel, which we already have in nixpkgs

(cherry picked from commit 6fb18561e7)
2017-08-31 11:13:59 -05:00
Jörg Thalheim
cc557ec35e photoqt: 1.3 -> 1.5.1
related to #28643

(cherry picked from commit d83cadf841)
2017-08-31 15:18:59 +01:00
Eelco Dolstra
3e31d25a60 nix: 1.11.13 -> 1.11.14
(cherry picked from commit 79954b9d1f)
2017-08-31 15:12:43 +02:00
Ryan Mulligan
0f004d063e nixos/calibre-server: fix ExecStart call
calibre-server changed the way you specify the library from using
--with-library to just allowing the directory to be specified. See
https://manual.calibre-ebook.com/generated/en/calibre-server.html for
details.

(cherry picked from commit 39a982dc3e)
2017-08-31 15:05:41 +02:00
Graham Christensen
1664e69d09 configuration.nix: Document the stateVersion more
(cherry picked from commit 8efb46b609)
2017-08-31 06:47:39 -04:00
davidak
7a15de1d84 nixos/bcachefs: init module
(cherry picked from commit 8f389f3316)
2017-08-31 05:45:11 -05:00
davidak
55a59f43d0 bcachefs-tools: 2016-05-13 -> 2017-08-28
(cherry picked from commit bd79b8c9fc)
2017-08-31 05:45:11 -05:00
davidak
910d6c30e5 linux-testing-bcachefs: init at 4.11.2017.08.23
(cherry picked from commit 4134db36d0)
2017-08-31 05:45:11 -05:00
Florian Jacob
8cb6bfe6ef mysql service: Make initialDatabases.schema attribute optional
(cherry picked from commit d22c1c0719)
2017-08-31 11:52:11 +02:00
Lancelot SIX
e22826a53b mysql-workbench: fix build with gcc6
(cherry picked from commit d9ae1b408a)
2017-08-31 10:16:21 +01:00
Symphorien Gibol
dccb66d3ab grub module: assume /nix/store is a bind mount even if it is not read only
Fixes #14999

(cherry picked from commit 90ef2183f7)
2017-08-31 10:59:23 +02:00
Valentin Robert
09ce090b1f nerdfonts: 1.0.0 -> 1.1.0
(cherry picked from commit dbba364f64)
2017-08-31 10:59:23 +02:00
Samuel Leathers
324332695d sigrok-cli: 0.6.0 -> 0.7.0
(cherry picked from commit 902dc73ee2)
2017-08-31 09:42:58 +01:00
Samuel Leathers
7d7e2aba83 pulseview: 0.3.0 -> 0.4.0
(cherry picked from commit b39462d0c3)
2017-08-31 09:42:54 +01:00
Samuel Leathers
b0ec7d790b libsigrokdecode: 0.4.1 -> 0.5.0
(cherry picked from commit 3e1fa824df)
2017-08-31 09:42:49 +01:00
Samuel Leathers
e9fc124637 libsigrok: 0.4.0 -> 0.5.0
(cherry picked from commit afa5dcbd7d)
2017-08-31 09:42:43 +01:00
David Pflug
f1e0556a6b milkytracker: 0.90.85 -> 1.01
(cherry picked from commit 7d6c3e877b)
2017-08-31 10:40:30 +02:00
Profpatsch
ea5ccf6ae8 mpvScripts.convert: fix for mpv >0.26.0
See https://gist.github.com/Zehkul/25ea7ae77b30af959be0#gistcomment-2189556

(cherry picked from commit b35972b3fa)
2017-08-31 10:40:29 +02:00
Dan Peebles
bedfed9f52 terraform: manage 0.10 plugins with Nix
Also add a few starter plugins/providers

(cherry picked from commit 80319c1238)
2017-08-31 10:34:34 +02:00
Peter Hoeg
6bd53c487d ledger: fixed with older boost 2017-08-31 11:52:28 +08:00
Peter Hoeg
ce15008c1b ledger: requires an older boost 2017-08-31 11:52:24 +08:00
Graham Christensen
400b273741 Mark synaptics as deprecated
(cherry picked from commit 9d2777a5a5)
2017-08-30 20:44:30 -04:00
Graham Christensen
dc3a666572 profiles/graphical.nix: enable libinput over synaptics
(cherry picked from commit 1b68193167)
2017-08-30 20:44:27 -04:00
Graham Christensen
c2e3e228fe installer: add a comment hinting about enabling libinput for touchpads
(cherry picked from commit af51aa79d2)
2017-08-30 20:44:23 -04:00
Robin Gloster
fe9170c191 vidalia: remove
closes #28753

(cherry picked from commit b09ab584f0)
2017-08-31 00:03:15 +02:00
Franz Pletz
82c301ec40 Update channel and version for 17.09 beta 2017-08-30 23:06:08 +02:00
38622 changed files with 880897 additions and 3661237 deletions

View File

@@ -1,5 +1,5 @@
# EditorConfig configuration for nixpkgs
# https://EditorConfig.org
# http://EditorConfig.org
# Top-most EditorConfig file
root = true
@@ -11,93 +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 files, set indent to spaces with width of two
[*.{nix,rb}]
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
# 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

18
.gitattributes vendored
View File

@@ -1,18 +0,0 @@
**/deps.nix linguist-generated
**/deps.json linguist-generated
**/deps.toml lingust-generated
**/node-packages.nix linguist-generated
pkgs/applications/editors/emacs-modes/*-generated.nix linguist-generated
pkgs/development/r-modules/*-packages.nix linguist-generated
pkgs/development/haskell-modules/hackage-packages.nix linguist-generated
pkgs/development/beam-modules/hex-packages.nix linguist-generated
doc/** linguist-documentation
doc/default.nix linguist-documentation=false
nixos/doc/** linguist-documentation
nixos/doc/default.nix linguist-documentation=false
nixos/modules/module-list.nix merge=union
# pkgs/top-level/all-packages.nix merge=union

319
.github/CODEOWNERS vendored
View File

@@ -6,315 +6,18 @@
#
# For documentation on this file, see https://help.github.com/articles/about-codeowners/
# Mentioned users will get code review requests.
#
# IMPORTANT NOTE: in order to actually get pinged, commit access is required.
# This also holds true for GitHub teams. Since almost none of our teams have write
# permissions, you need to list all members of the team with commit access individually.
# This file
/.github/CODEOWNERS @edolstra
# GitHub actions
/.github/workflows @NixOS/Security @Mic92 @zowoq
/.github/workflows/merge-staging @FRidh
# EditorConfig
/.editorconfig @Mic92 @zowoq
# Libraries
/lib @edolstra @nbp @infinisil
/lib/systems @alyssais @nbp @ericson2314 @matthewbauer
/lib/generators.nix @edolstra @nbp @Profpatsch
/lib/cli.nix @edolstra @nbp @Profpatsch
/lib/debug.nix @edolstra @nbp @Profpatsch
/lib/asserts.nix @edolstra @nbp @Profpatsch
/lib/path.* @infinisil @fricklerhandwerk
# Nixpkgs Internals
/default.nix @nbp
/pkgs/top-level/default.nix @nbp @Ericson2314
/pkgs/top-level/impure.nix @nbp @Ericson2314
/pkgs/top-level/stage.nix @nbp @Ericson2314 @matthewbauer
/pkgs/top-level/splice.nix @Ericson2314 @matthewbauer
/pkgs/top-level/release-cross.nix @Ericson2314 @matthewbauer
/pkgs/stdenv/generic @Ericson2314 @matthewbauer
/pkgs/stdenv/generic/check-meta.nix @Ericson2314 @matthewbauer @piegamesde
/pkgs/stdenv/cross @Ericson2314 @matthewbauer
/pkgs/build-support/cc-wrapper @Ericson2314
/pkgs/build-support/bintools-wrapper @Ericson2314
/pkgs/build-support/setup-hooks @Ericson2314
/pkgs/build-support/setup-hooks/auto-patchelf.sh @layus
/pkgs/build-support/setup-hooks/auto-patchelf.py @layus
/pkgs/pkgs-lib @infinisil
# Nixpkgs build-support
/pkgs/build-support/writers @lassulus @Profpatsch
# Nixpkgs make-disk-image
/doc/builders/images/makediskimage.section.md @raitobezarius
/nixos/lib/make-disk-image.nix @raitobezarius
# Nixpkgs documentation
/maintainers/scripts/db-to-md.sh @jtojnar @ryantm
/maintainers/scripts/doc @jtojnar @ryantm
/doc/* @fricklerhandwerk
/doc/build-aux/pandoc-filters @jtojnar
/doc/builders/trivial-builders.chapter.md @fricklerhandwerk
/doc/contributing/ @fricklerhandwerk
/doc/contributing/contributing-to-documentation.chapter.md @jtojnar @fricklerhandwerk
/doc/stdenv @fricklerhandwerk
/doc/using @fricklerhandwerk
# NixOS Internals
/nixos/default.nix @nbp @infinisil
/nixos/lib/from-env.nix @nbp @infinisil
/nixos/lib/eval-config.nix @nbp @infinisil
/nixos/doc/manual/configuration/abstractions.xml @nbp
/nixos/doc/manual/configuration/config-file.xml @nbp
/nixos/doc/manual/configuration/config-syntax.xml @nbp
/nixos/doc/manual/configuration/modularity.xml @nbp
/nixos/doc/manual/development/assertions.xml @nbp
/nixos/doc/manual/development/meta-attributes.xml @nbp
/nixos/doc/manual/development/option-declarations.xml @nbp
/nixos/doc/manual/development/option-def.xml @nbp
/nixos/doc/manual/development/option-types.xml @nbp
/nixos/doc/manual/development/replace-modules.xml @nbp
/nixos/doc/manual/development/writing-modules.xml @nbp
/nixos/doc/manual/man-nixos-option.xml @nbp
/nixos/modules/installer/tools/nixos-option.sh @nbp
/nixos/modules/system @dasJ
/nixos/modules/system/activation/bootspec.nix @grahamc @cole-h @raitobezarius
/nixos/modules/system/activation/bootspec.cue @grahamc @cole-h @raitobezarius
# NixOS integration test driver
/nixos/lib/test-driver @tfc
# NixOS QEMU virtualisation
/nixos/virtualisation/qemu-vm.nix @raitobezarius
# Systemd
/nixos/modules/system/boot/systemd.nix @NixOS/systemd
/nixos/modules/system/boot/systemd @NixOS/systemd
/nixos/lib/systemd-*.nix @NixOS/systemd
/pkgs/os-specific/linux/systemd @NixOS/systemd
# Updaters
## update.nix
/maintainers/scripts/update.nix @jtojnar
/maintainers/scripts/update.py @jtojnar
## common-updater-scripts
/pkgs/common-updater/scripts/update-source-version @jtojnar
# Python-related code and docs
/maintainers/scripts/update-python-libraries @FRidh
/pkgs/development/interpreters/python @FRidh
/doc/languages-frameworks/python.section.md @FRidh @mweinelt
/pkgs/development/tools/poetry2nix @adisbladis
/pkgs/development/interpreters/python/hooks @FRidh @jonringer
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
# Boostraping and core infra
pkgs/stdenv/ @Ericson2314
pkgs/build-support/cc-wrapper/ @Ericson2314
# Perl
/pkgs/development/interpreters/perl @stigtsp @zakame @dasJ
/pkgs/top-level/perl-packages.nix @stigtsp @zakame @dasJ
/pkgs/development/perl-modules @stigtsp @zakame @dasJ
# R
/pkgs/applications/science/math/R @jbedo
/pkgs/development/r-modules @jbedo
# Ruby
/pkgs/development/interpreters/ruby @marsam
/pkgs/development/ruby-modules @marsam
# Rust
/pkgs/development/compilers/rust @Mic92 @zowoq @winterqt @figsoda
/pkgs/build-support/rust @zowoq @winterqt @figsoda
/doc/languages-frameworks/rust.section.md @zowoq @winterqt @figsoda
# C compilers
/pkgs/development/compilers/gcc @matthewbauer
/pkgs/development/compilers/llvm @matthewbauer @RaitoBezarius
# Compatibility stuff
/pkgs/top-level/unix-tools.nix @matthewbauer
/pkgs/development/tools/xcbuild @matthewbauer
# Audio
/nixos/modules/services/audio/botamusique.nix @mweinelt
/nixos/modules/services/audio/snapserver.nix @mweinelt
/nixos/tests/modules/services/audio/botamusique.nix @mweinelt
/nixos/tests/snapcast.nix @mweinelt
# Browsers
/pkgs/applications/networking/browsers/firefox @mweinelt
# Certificate Authorities
pkgs/data/misc/cacert/ @ajs124 @lukegb @mweinelt
pkgs/development/libraries/nss/ @ajs124 @lukegb @mweinelt
pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
# Jetbrains
/pkgs/applications/editors/jetbrains @edwtjo
# Licenses
/lib/licenses.nix @alyssais
# Qt / KDE
/pkgs/applications/kde @ttuegel
/pkgs/desktops/plasma-5 @ttuegel
/pkgs/development/libraries/kde-frameworks @ttuegel
/pkgs/development/libraries/qt-5 @ttuegel
# PostgreSQL and related stuff
/pkgs/servers/sql/postgresql @thoughtpolice @marsam
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
/nixos/tests/postgresql.nix @thoughtpolice
# Hardened profile & related modules
/nixos/modules/profiles/hardened.nix @joachifm
/nixos/modules/security/hidepid.nix @joachifm
/nixos/modules/security/lock-kernel-modules.nix @joachifm
/nixos/modules/security/misc.nix @joachifm
/nixos/tests/hardened.nix @joachifm
/pkgs/os-specific/linux/kernel/hardened-config.nix @joachifm
# Home Automation
/nixos/modules/services/misc/home-assistant.nix @mweinelt
/nixos/modules/services/misc/zigbee2mqtt.nix @mweinelt
/nixos/tests/home-assistant.nix @mweinelt
/nixos/tests/zigbee2mqtt.nix @mweinelt
/pkgs/servers/home-assistant @mweinelt
/pkgs/tools/misc/esphome @mweinelt
# Network Time Daemons
/pkgs/tools/networking/chrony @thoughtpolice
/pkgs/tools/networking/ntp @thoughtpolice
/pkgs/tools/networking/openntpd @thoughtpolice
/nixos/modules/services/networking/ntp @thoughtpolice
# Network
/pkgs/tools/networking/kea/default.nix @mweinelt
/pkgs/tools/networking/babeld/default.nix @mweinelt
/nixos/modules/services/networking/babeld.nix @mweinelt
/nixos/modules/services/networking/kea.nix @mweinelt
/nixos/modules/services/networking/knot.nix @mweinelt
/nixos/modules/services/monitoring/prometheus/exporters/kea.nix @mweinelt
/nixos/tests/babeld.nix @mweinelt
/nixos/tests/kea.nix @mweinelt
/nixos/tests/knot.nix @mweinelt
# Dhall
/pkgs/development/dhall-modules @Gabriella439 @Profpatsch @ehmry
/pkgs/development/interpreters/dhall @Gabriella439 @Profpatsch @ehmry
# Idris
/pkgs/development/idris-modules @Infinisil
# Bazel
/pkgs/development/tools/build-managers/bazel @Profpatsch
# NixOS modules for e-mail and dns services
/nixos/modules/services/mail/mailman.nix @peti
/nixos/modules/services/mail/postfix.nix @peti
/nixos/modules/services/networking/bind.nix @peti
/nixos/modules/services/mail/rspamd.nix @peti
# Emacs
/pkgs/applications/editors/emacs/elisp-packages @adisbladis
/pkgs/applications/editors/emacs @adisbladis
/pkgs/top-level/emacs-packages.nix @adisbladis
# Neovim
/pkgs/applications/editors/neovim @figsoda @jonringer @teto
# VimPlugins
/pkgs/applications/editors/vim/plugins @figsoda @jonringer
# VsCode Extensions
/pkgs/applications/editors/vscode/extensions @jonringer
# Prometheus exporter modules and tests
/nixos/modules/services/monitoring/prometheus/exporters.nix @WilliButz
/nixos/modules/services/monitoring/prometheus/exporters.xml @WilliButz
/nixos/tests/prometheus-exporters.nix @WilliButz
# PHP interpreter, packages, extensions, tests and documentation
/doc/languages-frameworks/php.section.md @aanderse @etu @globin @ma27 @talyz
/nixos/tests/php @aanderse @etu @globin @ma27 @talyz
/pkgs/build-support/build-pecl.nix @aanderse @etu @globin @ma27 @talyz
/pkgs/development/interpreters/php @jtojnar @aanderse @etu @globin @ma27 @talyz
/pkgs/development/php-packages @aanderse @etu @globin @ma27 @talyz
/pkgs/top-level/php-packages.nix @jtojnar @aanderse @etu @globin @ma27 @talyz
# Podman, CRI-O modules and related
/nixos/modules/virtualisation/containers.nix @zowoq @adisbladis
/nixos/modules/virtualisation/cri-o.nix @zowoq @adisbladis
/nixos/modules/virtualisation/podman @zowoq @adisbladis
/nixos/tests/cri-o.nix @zowoq @adisbladis
/nixos/tests/podman @zowoq @adisbladis
# Docker tools
/pkgs/build-support/docker @roberth
/nixos/tests/docker-tools* @roberth
/doc/builders/images/dockertools.section.md @roberth
# Blockchains
/pkgs/applications/blockchains @mmahut @RaghavSood
# Go
/doc/languages-frameworks/go.section.md @kalbasit @Mic92 @zowoq
/pkgs/build-support/go @kalbasit @Mic92 @zowoq
/pkgs/development/compilers/go @kalbasit @Mic92 @zowoq
# GNOME
/pkgs/desktops/gnome @jtojnar
/pkgs/desktops/gnome/extensions @piegamesde @jtojnar
/pkgs/build-support/make-hardcode-gsettings-patch @jtojnar
# Cinnamon
/pkgs/desktops/cinnamon @mkg20001
# nim
/pkgs/development/compilers/nim @ehmry
/pkgs/development/nim-packages @ehmry
/pkgs/top-level/nim-packages.nix @ehmry
# terraform providers
/pkgs/applications/networking/cluster/terraform-providers @zowoq
# kubernetes
/nixos/doc/manual/configuration/kubernetes.chapter.md @zowoq
/nixos/modules/services/cluster/kubernetes @zowoq
/nixos/tests/kubernetes @zowoq
/pkgs/applications/networking/cluster/kubernetes @zowoq
# Matrix
/pkgs/servers/heisenbridge @piegamesde
/pkgs/servers/matrix-conduit @piegamesde
/nixos/modules/services/misc/heisenbridge.nix @piegamesde
/nixos/modules/services/misc/matrix-conduit.nix @piegamesde
/nixos/tests/matrix-conduit.nix @piegamesde
# Dotnet
/pkgs/build-support/dotnet @IvarWithoutBones
/pkgs/development/compilers/dotnet @IvarWithoutBones
# Node.js
/pkgs/build-support/node/build-npm-package @winterqt
/pkgs/build-support/node/fetch-npm-deps @winterqt
/doc/languages-frameworks/javascript.section.md @winterqt
# OCaml
/pkgs/build-support/ocaml @romildo @ulrikstrid
/pkgs/development/compilers/ocaml @romildo @ulrikstrid
/pkgs/development/ocaml-modules @romildo @ulrikstrid
# Darwin-related
pkgs/stdenv/darwin/* @copumpkin @LnL7
pkgs/os-specific/darwin/* @LnL7
pkgs/os-specific/darwin/apple-source-releases/* @copumpkin

49
.github/CONTRIBUTING.md vendored Normal file
View File

@@ -0,0 +1,49 @@
# How to contribute
Note: contributing implies licensing those contributions
under the terms of [COPYING](../COPYING), which is an MIT-like license.
## Opening issues
* Make sure you have a [GitHub account](https://github.com/signup/free)
* [Submit an issue](https://github.com/NixOS/nixpkgs/issues) - assuming one does not already exist.
* Clearly describe the issue including steps to reproduce when it is a bug.
* Include information what version of nixpkgs and Nix are you using (nixos-version or git revision).
## Submitting changes
* Format the commits in the following way:
```
(pkg-name | 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 dot at the end
See the nixpkgs manual for more details on how to [Submit changes to nixpkgs](https://nixos.org/nixpkgs/manual/#chap-submitting-changes).
## 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 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,7 @@
## Technical details
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)
* Nix version: (run `nix-env --version`)
* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`)
* Sandboxing enabled: (run `grep build-use-sandbox /etc/nix/nix.conf`)

View File

@@ -1,41 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: '0.kind: bug'
assignees: ''
---
### Describe the bug
A clear and concise description of what the bug is.
### Steps To Reproduce
Steps to reproduce the behavior:
1. ...
2. ...
3. ...
### Expected behavior
A clear and concise description of what you expected to happen.
### Screenshots
If applicable, add screenshots to help explain your problem.
### Additional context
Add any other context about the problem here.
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```

View File

@@ -1,39 +0,0 @@
---
name: Build failure
about: Create a report to help us improve
title: 'Build failure: PACKAGENAME'
labels: '0.kind: build failure'
assignees: ''
---
### Steps To Reproduce
Steps to reproduce the behavior:
1. build *X*
### Build log
```
log here if short otherwise a link to a gist
```
### Additional context
Add any other context about the problem here.
### Notify maintainers
<!--
Please @ people who are in the `meta.maintainers` list of the offending package or module.
If in doubt, check `git blame` for whoever last touched something.
-->
### Metadata
Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result.
```console
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```

View File

@@ -1,32 +0,0 @@
---
name: Missing or incorrect documentation
about: Help us improve the Nixpkgs and NixOS reference manuals
title: 'Documentation: '
labels: '9.needs: documentation'
assignees: ''
---
## Problem
<!-- describe your problem -->
## Proposal
<!-- propose a solution (optional) -->
## Checklist
<!-- make sure this issue is not redundant or obsolete -->
- [ ] checked [latest Nixpkgs manual] \([source][nixpkgs-source]) and [latest NixOS manual] \([source][nixos-source])
- [ ] checked [open documentation issues] for possible duplicates
- [ ] checked [open documentation pull requests] for possible solutions
[latest Nixpkgs manual]: https://nixos.org/manual/nixpkgs/unstable/
[latest NixOS manual]: https://nixos.org/manual/nixos/unstable/
[nixpkgs-source]: https://github.com/NixOS/nixpkgs/tree/master/doc
[nixos-source]: https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual
[open documentation issues]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+label%3A%229.needs%3A+documentation%22
[open documentation pull requests]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+is%3Apr+label%3A%228.has%3A+documentation%22%2C%226.topic%3A+documentation%22

View File

@@ -1,28 +0,0 @@
---
name: Out-of-date package reports
about: For packages that are out-of-date
title: 'Update request: PACKAGENAME OLDVERSION → NEWVERSION'
labels: '9.needs: package (update)'
assignees: ''
---
- Package name:
- Latest released version:
<!-- Search your package here: https://search.nixos.org/packages?channel=unstable -->
- Current version on the unstable channel:
- Current version on the stable/release channel:
<!--
Type the name of your package and try to find an open pull request for the package
If you find an open pull request, you can review it!
There's a high chance that you'll have the new version right away while helping the community!
-->
- [ ] Checked the [nixpkgs pull requests](https://github.com/NixOS/nixpkgs/pulls)
**Notify maintainers**
<!-- If the search.nixos.org result shows no maintainers, tag the person that last updated the package. -->
-----
Note for maintainers: Please tag this issue in your PR.

View File

@@ -1,19 +0,0 @@
---
name: Packaging requests
about: For packages that are missing
title: 'Package request: PACKAGENAME'
labels: '0.kind: packaging request'
assignees: ''
---
**Project description**
<!-- Describe the project a little: -->
**Metadata**
* homepage URL:
* source URL:
* license: mit, bsd, gpl2+ , ...
* platforms: unix, linux, darwin, ...

View File

@@ -1,31 +0,0 @@
---
name: Unreproducible package
about: A package that does not produce a bit-by-bit reproducible result each time it is built
title: ''
labels: [ '0.kind: enhancement', '6.topic: reproducible builds' ]
assignees: ''
---
Building this package twice does not produce the bit-by-bit identical result each time, making it harder to detect CI breaches. You can read more about this at https://reproducible-builds.org/ .
Fixing bit-by-bit reproducibility also has additional advantages, such as avoiding hard-to-reproduce bugs, making content-addressed storage more effective and reducing rebuilds in such systems.
### Steps To Reproduce
```
nix-build '<nixpkgs>' -A ... --check --keep-failed
```
You can use `diffoscope` to analyze the differences in the output of the two builds.
To view the build log of the build that produced the artifact in the binary cache:
```
nix-store --read-log $(nix-instantiate '<nixpkgs>' -A ...)
```
### Additional context
(please share the relevant fragment of the diffoscope output here,
and any additional analysis you may have done)

View File

@@ -1,40 +1,19 @@
###### Description of changes
###### Motivation for this change
<!--
For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
For new packages please briefly describe the package or provide a link to its homepage.
-->
###### Things done
<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->
- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `build-use-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
- [ ] Linux
- [ ] 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/`)
- [ ] 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>

35
.travis.yml Normal file
View File

@@ -0,0 +1,35 @@
language: nix
sudo: true
# 'sudo: false' == containers that start fast, but only get 4G ram;
# 'sudo: true' == VMs that start slow, but with 8G
# ..as per: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
# Nixpkgs PR tests OOM with 4G: https://github.com/NixOS/nixpkgs/issues/24200
matrix:
include:
- os: linux
sudo: required
script:
- ./maintainers/scripts/travis-nox-review-pr.sh nixpkgs-verify nixpkgs-manual nixpkgs-tarball nixpkgs-unstable
- ./maintainers/scripts/travis-nox-review-pr.sh nixos-options nixos-manual
env:
- BUILD_TYPE="Test Nixpkgs evaluation & NixOS manual build"
- os: linux
sudo: required
dist: trusty
before_script:
- sudo mount -o remount,exec,size=2G,mode=755 /run/user
script: ./maintainers/scripts/travis-nox-review-pr.sh nox pr
env:
- BUILD_TYPE="Build affected packages (Linux)"
- os: osx
osx_image: xcode7.3
script: ./maintainers/scripts/travis-nox-review-pr.sh nox pr
env:
- BUILD_TYPE="Build affected packages (macOS)"
env:
global:
- GITHUB_TOKEN=5edaaf1017f691ed34e7f80878f8f5fbd071603f
notifications:
email: false

View File

@@ -1 +1 @@
23.05
17.09

View File

@@ -1,146 +0,0 @@
# How to contribute
Note: contributing implies licensing those contributions
under the terms of [COPYING](COPYING), which is an MIT-like license.
## Opening issues
* Make sure you have a [GitHub account](https://github.com/signup/free)
* Make sure there is no open issue on the topic
* [Submit a new issue](https://github.com/NixOS/nixpkgs/issues/new/choose) by choosing the kind of topic and fill out the template
## Submitting changes
Read the ["Submitting changes"](https://nixos.org/nixpkgs/manual/#chap-submitting-changes) section of the nixpkgs manual. It explains how to write, test, and iterate on your change, and which branch to base your pull request against.
Below is a short excerpt of some points in there:
* Format the commit messages in the following way:
```
(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc)
(Motivation for change. Link to release notes. Additional information.)
```
For consistency, there should not be a period at the end of the commit message's summary line (the first line of the commit message).
Examples:
* nginx: init at 2.0.1
* firefox: 54.0.1 -> 55.0
https://www.mozilla.org/en-US/firefox/55.0/releasenotes/
* nixos/hydra: add bazBaz option
Dual baz behavior is needed to do foo.
* nixos/nginx: refactor config generation
The old config generation system used impure shell scripts and could break in specific circumstances (see #1234).
* `meta.description` should:
* Be short, just one sentence.
* Be capitalized.
* Not start with the package name.
* More generally, it should not refer to the package name.
* Not end with a period (or any punctuation for that matter).
* Aim to inform while avoiding subjective language.
* `meta.license` must be set and fit the upstream license.
* If there is no upstream license, `meta.license` should default to `lib.licenses.unfree`.
* If in doubt, try to contact the upstream developers for clarification.
* `meta.maintainers` must be set.
See the nixpkgs manual for more details on [standard meta-attributes](https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes).
## Writing good commit messages
In addition to writing properly formatted commit messages, it's important to include relevant information so other developers can later understand *why* a change was made. While this information usually can be found by digging code, mailing list/Discourse archives, pull request discussions or upstream changes, it may require a lot of work.
Package version upgrades usually allow for simpler commit messages, including attribute name, old and new version, as well as a reference to the relevant release notes/changelog. Every once in a while a package upgrade requires more extensive changes, and that subsequently warrants a more verbose message.
Pull requests should not be squash merged in order to keep complete commit messages and GPG signatures intact and must not be when the change doesn't make sense as a single commit.
This means that, when addressing review comments in order to keep the pull request in an always mergeable status, you will sometimes need to rewrite your branch's history and then force-push it with `git push --force-with-lease`.
Useful git commands that can help a lot with this are `git commit --patch --amend` and `git rebase --interactive`. For more details consult the git man pages or online resources like [git-rebase.io](https://git-rebase.io/) or [The Pro Git Book](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History).
## Rebasing between branches (i.e. from master to staging)
From time to time, changes between branches must be rebased, for example, if the
number of new rebuilds they would cause is too large for the target branch. When
rebasing, care must be taken to include only the intended changes, otherwise
many CODEOWNERS will be inadvertently requested for review. To achieve this,
rebasing should not be performed directly on the target branch, but on the merge
base between the current and target branch.
In the following example, we assume that the current branch, called `feature`,
is based on `master`, and we rebase it onto the merge base between
`master` and `staging` so that the PR can eventually be retargeted to
`staging` without causing a mess. The example uses `upstream` as the remote for `NixOS/nixpkgs.git`
while `origin` is the remote you are pushing to.
```console
# Rebase your commits onto the common merge base
git rebase --onto upstream/staging... upstream/master
# Force push your changes
git push origin feature --force-with-lease
```
The syntax `upstream/staging...` is equivalent to `upstream/staging...HEAD` and
stands for the merge base between `upstream/staging` and `HEAD` (hence between
`upstream/staging` and `upstream/master`).
Then change the base branch in the GitHub PR using the *Edit* button in the upper
right corner, and switch from `master` to `staging`. *After* the PR has been
retargeted it might be necessary to do a final rebase onto the target branch, to
resolve any outstanding merge conflicts.
```console
# Rebase onto target branch
git rebase upstream/staging
# Review and fixup possible conflicts
git status
# Force push your changes
git push origin feature --force-with-lease
```
## Backporting changes
Follow these steps to backport a change into a release branch in compliance with the [commit policy](https://nixos.org/nixpkgs/manual/#submitting-changes-stable-release-branches).
You can add a label such as `backport release-22.11` to a PR, so that merging it will
automatically create a backport (via [a GitHub Action](.github/workflows/backport.yml)).
This also works for PR's that have already been merged, and might take a couple of minutes to trigger.
You can also create the backport manually:
1. Take note of the commits in which the change was introduced into `master` branch.
2. Check out the target _release branch_, e.g. `release-22.11`. Do not use a _channel branch_ like `nixos-22.11` or `nixpkgs-22.11-darwin`.
3. Create a branch for your change, e.g. `git checkout -b backport`.
4. When the reason to backport is not obvious from the original commit message, use `git cherry-pick -xe <original commit>` and add a reason. Otherwise use `git cherry-pick -x <original commit>`. That's fine for minor version updates that only include security and bug fixes, commits that fixes an otherwise broken package or similar. Please also ensure the commits exists on the master branch; in the case of squashed or rebased merges, the commit hash will change and the new commits can be found in the merge message at the bottom of the master pull request.
5. Push to GitHub and open a backport pull request. Make sure to select the release branch (e.g. `release-22.11`) as the target branch of the pull request, and link to the pull request in which the original change was committed to `master`. The pull request title should be the commit title with the release version as prefix, e.g. `[22.11]`.
6. When the backport pull request is merged and you have the necessary privileges you can also replace the label `9.needs: port to stable` with `8.has: port to stable` on the original pull request. This way maintainers can keep track of missing backports easier.
## Criteria for Backporting changes
Anything that does not cause user or downstream dependency regressions can be backported. This includes:
- New Packages / Modules
- Security / Patch updates
- Version updates which include new functionality (but no breaking changes)
- Services which require a client to be up-to-date regardless. (E.g. `spotify`, `steam`, or `discord`)
- Security critical applications (E.g. `firefox`)
## Generating 23.05 Release Notes
<!--
note: title unchanged even though we don't need regeneration because extant
PRs will link here. definitely change the title for 23.11 though.
-->
Documentation in nixpkgs is transitioning to a markdown-centric workflow. In the past release notes required a translation step to convert from markdown to a compatible docbook document, but this is no longer necessary.
Steps for updating 23.05 Release notes:
1. Edit `nixos/doc/manual/release-notes/rl-2305.section.md` with the desired changes
2. Commit changes to `rl-2305.section.md`.
## Reviewing contributions
See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#chap-reviewing-contributions).

13
COPYING
View File

@@ -1,4 +1,4 @@
Copyright (c) 2003-2023 Eelco Dolstra and the Nixpkgs/NixOS contributors
Copyright (c) 2003-2017 Eelco Dolstra and the Nixpkgs/NixOS contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -18,3 +18,14 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
======================================================================
Note: the license above does not apply to the packages built by the
Nix Packages collection, merely to the package descriptions (i.e., Nix
expressions, build scripts, etc.). Also, the license does not apply
to some of the binaries used for bootstrapping Nixpkgs (e.g.,
pkgs/stdenv/linux/tools/bash). It also might not apply to patches
included in Nixpkgs, which may be derivative works of the packages to
which they apply. The aforementioned artifacts are all covered by the
licenses of the respective packages.

137
README.md
View File

@@ -1,119 +1,42 @@
<p align="center">
<a href="https://nixos.org#gh-light-mode-only">
<img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"/>
</a>
<a href="https://nixos.org#gh-dark-mode-only">
<img src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png" width="500px" alt="NixOS logo"/>
</a>
</p>
[<img src="http://nixos.org/logo/nixos-hires.png" width="500px" alt="logo" />](https://nixos.org/nixos)
<p align="center">
<a href="https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md"><img src="https://img.shields.io/github/contributors-anon/NixOS/nixpkgs" alt="Contributors badge" /></a>
<a href="https://opencollective.com/nixos"><img src="https://opencollective.com/nixos/tiers/supporter/badge.svg?label=supporters&color=brightgreen" alt="Open Collective supporters" /></a>
</p>
[![Build Status](https://travis-ci.org/NixOS/nixpkgs.svg?branch=master)](https://travis-ci.org/NixOS/nixpkgs)
[![Code Triagers Badge](https://www.codetriage.com/nixos/nixpkgs/badges/users.svg)](https://www.codetriage.com/nixos/nixpkgs)
[Nixpkgs](https://github.com/nixos/nixpkgs) is a collection of over
80,000 software packages that can be installed with the
[Nix](https://nixos.org/nix/) package manager. It also implements
[NixOS](https://nixos.org/nixos/), a purely-functional Linux distribution.
Nixpkgs is a collection of packages for the [Nix](https://nixos.org/nix/) package
manager. It is periodically built and tested by the [hydra](http://hydra.nixos.org/)
build daemon as so-called channels. To get channel information via git, add
[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels.git) as a remote:
# Manuals
```
% git remote add channels git://github.com/NixOS/nixpkgs-channels.git
```
* [NixOS Manual](https://nixos.org/nixos/manual) - how to install, configure, and maintain a purely-functional Linux distribution
* [Nixpkgs Manual](https://nixos.org/nixpkgs/manual/) - contributing to Nixpkgs and using programming-language-specific Nix expressions
* [Nix Package Manager Manual](https://nixos.org/nix/manual) - how to write Nix expressions (programs), and how to use Nix command line tools
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. `nixos-17.03` for the latest
release and `nixos-unstable` for the latest successful build of master:
# Community
```
% git remote update channels
% git rebase channels/nixos-17.03
```
* [Discourse Forum](https://discourse.nixos.org/)
* [Matrix Chat](https://matrix.to/#/#community:nixos.org)
* [NixOS Weekly](https://weekly.nixos.org/)
* [Community-maintained wiki](https://nixos.wiki/)
* [Community-maintained list of ways to get in touch](https://nixos.wiki/wiki/Get_In_Touch#Chat) (Discord, Telegram, IRC, etc.)
For pull-requests, please rebase onto nixpkgs `master`.
# Other Project Repositories
The sources of all official Nix-related projects are in the [NixOS
organization on GitHub](https://github.com/NixOS/). Here are some of
the main ones:
* [Nix](https://github.com/NixOS/nix) - the purely functional package manager
* [NixOps](https://github.com/NixOS/nixops) - the tool to remotely deploy NixOS machines
* [nixos-hardware](https://github.com/NixOS/nixos-hardware) - NixOS profiles to optimize settings for different hardware
* [Nix RFCs](https://github.com/NixOS/rfcs) - the formal process for making substantial changes to the community
* [NixOS homepage](https://github.com/NixOS/nixos-homepage) - the [NixOS.org](https://nixos.org) website
* [hydra](https://github.com/NixOS/hydra) - our continuous integration system
* [NixOS Artwork](https://github.com/NixOS/nixos-artwork) - NixOS artwork
# Continuous Integration and Distribution
Nixpkgs and NixOS are built and tested by our continuous integration
system, [Hydra](https://hydra.nixos.org/).
[NixOS](https://nixos.org/nixos/) linux distribution source code is located inside
`nixos/` folder.
* [NixOS installation instructions](https://nixos.org/nixos/manual/#ch-installation)
* [Documentation (Nix Expression Language chapter)](https://nixos.org/nix/manual/#ch-expression-language)
* [Manual (How to write packages for Nix)](https://nixos.org/nixpkgs/manual/)
* [Manual (NixOS)](https://nixos.org/nixos/manual/)
* [Nix Wiki](https://nixos.org/wiki/) (deprecated, see milestone ["Move the Wiki!"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Move+the+wiki%21%22))
* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
* [Continuous package builds for the NixOS 22.11 release](https://hydra.nixos.org/jobset/nixos/release-22.11)
* [Continuous package builds for 17.03 release](https://hydra.nixos.org/jobset/nixos/release-17.03)
* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
* [Tests for the NixOS 22.11 release](https://hydra.nixos.org/job/nixos/release-22.11/tested#tabs-constituents)
* [Tests for 17.03 release](https://hydra.nixos.org/job/nixos/release-17.03/tested#tabs-constituents)
Artifacts successfully built with Hydra are published to cache at
https://cache.nixos.org/. When successful build and test criteria are
met, the Nixpkgs expressions are distributed via [Nix
channels](https://nixos.org/manual/nix/stable/package-management/channels.html).
Communication:
# Contributing
Nixpkgs is among the most active projects on GitHub. While thousands
of open issues and pull requests might seem a lot at first, it helps
consider it in the context of the scope of the project. Nixpkgs
describes how to build tens of thousands of pieces of software and implements a
Linux distribution. The [GitHub Insights](https://github.com/NixOS/nixpkgs/pulse)
page gives a sense of the project activity.
Community contributions are always welcome through GitHub Issues and
Pull Requests. When pull requests are made, our tooling automation bot,
[OfBorg](https://github.com/NixOS/ofborg) will perform various checks
to help ensure expression quality.
The *Nixpkgs maintainers* are people who have assigned themselves to
maintain specific individual packages. We encourage people who care
about a package to assign themselves as a maintainer. When a pull
request is made against a package, OfBorg will notify the appropriate
maintainer(s). The *Nixpkgs committers* are people who have been given
permission to merge.
Most contributions are based on and merged into these branches:
* `master` is the main branch where all small contributions go
* `staging` is branched from master, changes that have a big impact on
Hydra builds go to this branch
* `staging-next` is branched from staging and only fixes to stabilize
and security fixes with a big impact on Hydra builds should be
contributed to this branch. This branch is merged into master when
deemed of sufficiently high quality
For more information about contributing to the project, please visit
the [contributing page](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
# Donations
The infrastructure for NixOS and related projects is maintained by a
nonprofit organization, the [NixOS
Foundation](https://nixos.org/nixos/foundation.html). To ensure the
continuity and expansion of the NixOS infrastructure, we are looking
for donations to our organization.
You can donate to the NixOS foundation through [SEPA bank
transfers](https://nixos.org/donate.html) or by using Open Collective:
<a href="https://opencollective.com/nixos#support"><img src="https://opencollective.com/nixos/tiers/supporter.svg?width=890" /></a>
# License
Nixpkgs is licensed under the [MIT License](COPYING).
Note: MIT license does not apply to the packages built by Nixpkgs,
merely to the files in this repository (the Nix expressions, build
scripts, NixOS modules, etc.). It also might not apply to patches
included in Nixpkgs, which may be derivative works of the packages to
which they apply. The aforementioned artifacts are all covered by the
licenses of the respective packages.
* [Mailing list](https://groups.google.com/forum/#!forum/nix-devel)
* [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos)

View File

@@ -6,21 +6,12 @@ if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.
This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system.
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively
upgrade Nix. You may use `nix-env --version' to check which version you have.
- If you are running NixOS, use `nixos-rebuild' to upgrade your system.
- If you installed Nix using the install script (https://nixos.org/nix/install),
it is safe to upgrade by running it again:
curl -L https://nixos.org/nix/install | sh
For more information, please see the NixOS release notes at
https://nixos.org/nixos/manual or locally at
${toString ./nixos/doc/manual/release-notes}.
If you need further help, see https://nixos.org/nixos/support.html
curl https://nixos.org/nix/install | sh
''
else

11
doc/.gitignore vendored
View File

@@ -1,11 +0,0 @@
*.chapter.xml
*.section.xml
.version
functions/library/generated
functions/library/locations.xml
highlightjs
manual-full.xml
out
result
result-*
media

View File

@@ -1,119 +0,0 @@
MD_TARGETS=$(addsuffix .xml, $(basename $(shell find . -type f -regex '.*\.md$$' -not -name README.md)))
PANDOC ?= pandoc
pandoc_media_dir = media
# NOTE: Keep in sync with conversion script (/maintainers/scripts/db-to-md.sh).
# TODO: Remove raw-attribute when we can get rid of DocBook altogether.
pandoc_commonmark_enabled_extensions = +attributes+fenced_divs+footnotes+bracketed_spans+definition_lists+pipe_tables+raw_attribute
# Not needed:
# - docbook-reader/citerefentry-to-rst-role.lua (only relevant for DocBook → MarkDown/rST/MyST)
pandoc_flags = --extract-media=$(pandoc_media_dir) \
--lua-filter=$(PANDOC_LUA_FILTERS_DIR)/diagram-generator.lua \
--lua-filter=build-aux/pandoc-filters/myst-reader/roles.lua \
--lua-filter=$(PANDOC_LINK_MANPAGES_FILTER) \
--lua-filter=build-aux/pandoc-filters/docbook-writer/rst-roles.lua \
--lua-filter=build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua \
-f commonmark$(pandoc_commonmark_enabled_extensions)+smart
.PHONY: all
all: validate format out/html/index.html out/epub/manual.epub
.PHONY: render-md
render-md: ${MD_TARGETS}
.PHONY: debug
debug:
nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
.PHONY: format
format: doc-support/result
find . -iname '*.xml' -type f | while read f; do \
echo $$f ;\
xmlformat --config-file "doc-support/result/xmlformat.conf" -i $$f ;\
done
.PHONY: fix-misc-xml
fix-misc-xml:
find . -iname '*.xml' -type f \
-exec ../nixos/doc/varlistentry-fixer.rb {} ';'
.PHONY: clean
clean:
rm -f ${MD_TARGETS} doc-support/result .version manual-full.xml functions/library/locations.xml functions/library/generated
rm -rf ./out/ ./highlightjs ./media
.PHONY: validate
validate: manual-full.xml doc-support/result
jing doc-support/result/docbook.rng manual-full.xml
out/html/index.html: doc-support/result manual-full.xml style.css highlightjs
mkdir -p out/html
xsltproc \
--nonet --xinclude \
--output $@ \
doc-support/result/xhtml.xsl \
./manual-full.xml
mkdir -p out/html/highlightjs/
cp -r highlightjs out/html/
cp -r $(pandoc_media_dir) out/html/
cp ./overrides.css out/html/
cp ./style.css out/html/style.css
mkdir -p out/html/images/callouts
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/html/images/callouts/
chmod u+w -R out/html/
out/epub/manual.epub: manual-full.xml
mkdir -p out/epub/scratch
xsltproc --nonet \
--output out/epub/scratch/ \
doc-support/result/epub.xsl \
./manual-full.xml
cp -r $(pandoc_media_dir) out/epub/scratch/OEBPS
cp ./overrides.css out/epub/scratch/OEBPS
cp ./style.css out/epub/scratch/OEBPS
mkdir -p out/epub/scratch/OEBPS/images/callouts/
cp doc-support/result/xsl/docbook/images/callouts/*.svg out/epub/scratch/OEBPS/images/callouts/
echo "application/epub+zip" > mimetype
zip -0Xq "out/epub/manual.epub" mimetype
rm mimetype
cd "out/epub/scratch/" && zip -Xr9D "../manual.epub" *
rm -rf "out/epub/scratch/"
highlightjs: doc-support/result
mkdir -p highlightjs
cp -r doc-support/result/highlightjs/highlight.pack.js highlightjs/
cp -r doc-support/result/highlightjs/LICENSE highlightjs/
cp -r doc-support/result/highlightjs/mono-blue.css highlightjs/
cp -r doc-support/result/highlightjs/loader.js highlightjs/
manual-full.xml: ${MD_TARGETS} .version functions/library/locations.xml functions/library/generated *.xml **/*.xml **/**/*.xml
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
.version: doc-support/result
ln -rfs ./doc-support/result/version .version
doc-support/result: doc-support/default.nix
(cd doc-support; nix-build)
functions/library/locations.xml: doc-support/result
ln -rfs ./doc-support/result/function-locations.xml functions/library/locations.xml
functions/library/generated: doc-support/result
ln -rfs ./doc-support/result/function-docs functions/library/generated
%.section.xml: %.section.md
$(PANDOC) $^ -t docbook \
$(pandoc_flags) \
-o $@
%.chapter.xml: %.chapter.md
$(PANDOC) $^ -t docbook \
--top-level-division=chapter \
$(pandoc_flags) \
-o $@

View File

@@ -1,12 +0,0 @@
# Nixpkgs/doc
This directory houses the sources files for the Nixpkgs manual.
You can find the [rendered documentation for Nixpkgs `unstable` on nixos.org](https://nixos.org/manual/nixpkgs/unstable/).
[Docs for Nixpkgs stable](https://nixos.org/manual/nixpkgs/stable/) are also available.
If you want to contribute to the documentation, [here's how to do it](https://nixos.org/manual/nixpkgs/unstable/#chap-contributing).
If you're only getting started with Nix, go to [nixos.org/learn](https://nixos.org/learn).

View File

@@ -1,23 +0,0 @@
--[[
Converts Code AST nodes produced by pandocs DocBook reader
from citerefentry elements into AST for corresponding role
for reStructuredText.
We use subset of MyST syntax (CommonMark with features from rST)
so lets use the rST AST for rST features.
Reference: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage
]]
function Code(elem)
elem.classes = elem.classes:map(function (x)
if x == 'citerefentry' then
elem.attributes['role'] = 'manpage'
return 'interpreted-text'
else
return x
end
end)
return elem
end

View File

@@ -1,34 +0,0 @@
--[[
Converts Link AST nodes with empty label to DocBook xref elements.
This is a temporary script to be able use cross-references conveniently
using syntax taken from MyST, while we still use docbook-xsl
for generating the documentation.
Reference: https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing
]]
local function starts_with(start, str)
return str:sub(1, #start) == start
end
local function escape_xml_arg(arg)
amps = arg:gsub('&', '&amp;')
amps_quotes = amps:gsub('"', '&quot;')
amps_quotes_lt = amps_quotes:gsub('<', '&lt;')
return amps_quotes_lt
end
function Link(elem)
has_no_content = #elem.content == 0
targets_anchor = starts_with('#', elem.target)
has_no_attributes = elem.title == '' and elem.identifier == '' and #elem.classes == 0 and #elem.attributes == 0
if has_no_content and targets_anchor and has_no_attributes then
-- xref expects idref without the pound-sign
target_without_hash = elem.target:sub(2, #elem.target)
return pandoc.RawInline('docbook', '<xref linkend="' .. escape_xml_arg(target_without_hash) .. '" />')
end
end

View File

@@ -1,44 +0,0 @@
--[[
Converts AST for reStructuredText roles into corresponding
DocBook elements.
Currently, only a subset of roles is supported.
Reference:
List of roles:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html
manpage:
https://tdg.docbook.org/tdg/5.1/citerefentry.html
file:
https://tdg.docbook.org/tdg/5.1/filename.html
]]
function Code(elem)
if elem.classes:includes('interpreted-text') then
local tag = nil
local content = elem.text
if elem.attributes['role'] == 'manpage' then
tag = 'citerefentry'
local title, volnum = content:match('^(.+)%((%w+)%)$')
if title == nil then
-- No volnum in parentheses.
title = content
end
content = '<refentrytitle>' .. title .. '</refentrytitle>' .. (volnum ~= nil and ('<manvolnum>' .. volnum .. '</manvolnum>') or '')
elseif elem.attributes['role'] == 'file' then
tag = 'filename'
elseif elem.attributes['role'] == 'command' then
tag = 'command'
elseif elem.attributes['role'] == 'option' then
tag = 'option'
elseif elem.attributes['role'] == 'var' then
tag = 'varname'
elseif elem.attributes['role'] == 'env' then
tag = 'envar'
end
if tag ~= nil then
return pandoc.RawInline('docbook', '<' .. tag .. '>' .. content .. '</' .. tag .. '>')
end
end
end

View File

@@ -1,28 +0,0 @@
{ pkgs ? import ../../.. {} }:
let
inherit (pkgs) lib;
manpageURLs = builtins.fromJSON (builtins.readFile (pkgs.path + "/doc/manpage-urls.json"));
in pkgs.writeText "link-manpages.lua" ''
--[[
Adds links to known man pages that aren't already in a link.
]]
local manpage_urls = {
${lib.concatStringsSep "\n" (lib.mapAttrsToList (man: url:
" [${builtins.toJSON man}] = ${builtins.toJSON url},") manpageURLs)}
}
traverse = 'topdown'
-- Returning false as the second value aborts processing of child elements.
function Link(elem)
return elem, false
end
function Code(elem)
local is_man_role = elem.classes:includes('interpreted-text') and elem.attributes['role'] == 'manpage'
if is_man_role and manpage_urls[elem.text] ~= nil then
return pandoc.Link(elem, manpage_urls[elem.text]), false
end
end
''

View File

@@ -1,36 +0,0 @@
--[[
Replaces Str AST nodes containing {role}, followed by a Code node
by a Code node with attrs that would be produced by rST reader
from the role syntax.
This is to emulate MyST syntax in Pandoc.
(MyST is a CommonMark flavour with rST features mixed in.)
Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point
]]
function Inlines(inlines)
for i = #inlines-1,1,-1 do
local first = inlines[i]
local second = inlines[i+1]
local correct_tags = first.tag == 'Str' and second.tag == 'Code'
if correct_tags then
-- docutils supports alphanumeric strings separated by [-._:]
-- We are slightly more liberal for simplicity.
-- Allow preceding punctuation (eg '('), otherwise '({file}`...`)'
-- does not match. Also allow anything followed by a non-breaking space
-- since pandoc emits those after certain abbreviations (e.g. e.g.).
local prefix, role = first.text:match('^(.*){([-._+:%w]+)}$')
if role ~= nil and (prefix == '' or prefix:match("^.*[%p ]$") ~= nil) then
if prefix == '' then
inlines:remove(i)
else
first.text = prefix
end
second.attributes['role'] = role
second.classes:insert('interpreted-text')
end
end
end
return inlines
end

View File

@@ -1,25 +0,0 @@
--[[
Replaces Code nodes with attrs that would be produced by rST reader
from the role syntax by a Str AST node containing {role}, followed by a Code node.
This is to emulate MyST syntax in Pandoc.
(MyST is a CommonMark flavour with rST features mixed in.)
Reference: https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point
]]
function Code(elem)
local role = elem.attributes['role']
if elem.classes:includes('interpreted-text') and role ~= nil then
elem.classes = elem.classes:filter(function (c)
return c ~= 'interpreted-text'
end)
elem.attributes['role'] = nil
return {
pandoc.Str('{' .. role .. '}'),
elem,
}
end
end

View File

@@ -1,193 +0,0 @@
# Fetchers {#chap-pkgs-fetchers}
Building software with Nix often requires downloading source code and other files from the internet.
`nixpkgs` provides *fetchers* for different protocols and services. Fetchers are functions that simplify downloading files.
## Caveats {#chap-pkgs-fetchers-caveats}
Fetchers create [fixed output derivations](https://nixos.org/manual/nix/stable/#fixed-output-drvs) from downloaded files.
Nix can reuse the downloaded files via the hash of the resulting derivation.
The fact that the hash belongs to the Nix derivation output and not the file itself can lead to confusion.
For example, consider the following fetcher:
```nix
fetchurl {
url = "http://www.example.org/hello-1.0.tar.gz";
hash = "sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=";
};
```
A common mistake is to update a fetchers URL, or a version parameter, without updating the hash.
```nix
fetchurl {
url = "http://www.example.org/hello-1.1.tar.gz";
hash = "sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=";
};
```
**This will reuse the old contents**.
Remember to invalidate the hash argument, in this case by setting the `hash` attribute to an empty string.
```nix
fetchurl {
url = "http://www.example.org/hello-1.1.tar.gz";
hash = "";
};
```
Use the resulting error message to determine the correct hash.
```
error: hash mismatch in fixed-output derivation '/path/to/my.drv':
specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
got: sha256-lTeyxzJNQeMdu1IVdovNMtgn77jRIhSybLdMbTkf2Ww=
```
A similar problem arises while testing changes to a fetcher's implementation. If the output of the derivation already exists in the Nix store, test failures can go undetected. The [`invalidateFetcherByDrvHash`](#tester-invalidateFetcherByDrvHash) function helps prevent reusing cached derivations.
## `fetchurl` and `fetchzip` {#fetchurl}
Two basic fetchers are `fetchurl` and `fetchzip`. Both of these have two required arguments, a URL and a hash. The hash is typically `hash`, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use `hash`. This hash will be used by Nix to identify your source. A typical usage of `fetchurl` is provided below.
```nix
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "hello";
src = fetchurl {
url = "http://www.example.org/hello.tar.gz";
hash = "sha256-BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=";
};
}
```
The main difference between `fetchurl` and `fetchzip` is in how they store the contents. `fetchurl` will store the unaltered contents of the URL within the Nix store. `fetchzip` on the other hand, will decompress the archive for you, making files and directories directly accessible in the future. `fetchzip` can only be used with archives. Despite the name, `fetchzip` is not limited to .zip files and can also be used with any tarball.
## `fetchpatch` {#fetchpatch}
`fetchpatch` works very similarly to `fetchurl` with the same arguments expected. It expects patch files as a source and performs normalization on them before computing the checksum. For example, it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time.
- `relative`: Similar to using `git-diff`'s `--relative` flag, only keep changes inside the specified directory, making paths relative to it.
- `stripLen`: Remove the first `stripLen` components of pathnames in the patch.
- `decode`: Pipe the downloaded data through this command before processing it as a patch.
- `extraPrefix`: Prefix pathnames by this string.
- `excludes`: Exclude files matching these patterns (applies after the above arguments).
- `includes`: Include only files matching these patterns (applies after the above arguments).
- `revert`: Revert the patch.
Note that because the checksum is computed after applying these effects, using or modifying these arguments will have no effect unless the `hash` argument is changed as well.
Most other fetchers return a directory rather than a single file.
## `fetchsvn` {#fetchsvn}
Used with Subversion. Expects `url` to a Subversion directory, `rev`, and `hash`.
## `fetchgit` {#fetchgit}
Used with Git. Expects `url` to a Git repo, `rev`, and `hash`. `rev` in this case can be full the git commit id (SHA1 hash) or a tag name like `refs/tags/v1.0`.
Additionally, the following optional arguments can be given: `fetchSubmodules = true` makes `fetchgit` also fetch the submodules of a repository. If `deepClone` is set to true, the entire repository is cloned as opposing to just creating a shallow clone. `deepClone = true` also implies `leaveDotGit = true` which means that the `.git` directory of the clone won't be removed after checkout.
If only parts of the repository are needed, `sparseCheckout` can be used. This will prevent git from fetching unnecessary blobs from server, see [git sparse-checkout](https://git-scm.com/docs/git-sparse-checkout) for more information:
```nix
{ stdenv, fetchgit }:
stdenv.mkDerivation {
name = "hello";
src = fetchgit {
url = "https://...";
sparseCheckout = [
"directory/to/be/included"
"another/directory"
];
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
}
```
## `fetchfossil` {#fetchfossil}
Used with Fossil. Expects `url` to a Fossil archive, `rev`, and `hash`.
## `fetchcvs` {#fetchcvs}
Used with CVS. Expects `cvsRoot`, `tag`, and `hash`.
## `fetchhg` {#fetchhg}
Used with Mercurial. Expects `url`, `rev`, and `hash`.
A number of fetcher functions wrap part of `fetchurl` and `fetchzip`. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below.
## `fetchFromGitea` {#fetchfromgitea}
`fetchFromGitea` expects five arguments. `domain` is the gitea server name. `owner` is a string corresponding to the Gitea user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every Gitea HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `hash` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available but `hash` is currently preferred.
## `fetchFromGitHub` {#fetchfromgithub}
`fetchFromGitHub` expects four arguments. `owner` is a string corresponding to the GitHub user or organization that controls this repository. `repo` corresponds to the name of the software repository. These are located at the top of every GitHub HTML page as `owner`/`repo`. `rev` corresponds to the Git commit hash or tag (e.g `v1.0`) that will be downloaded from Git. Finally, `hash` corresponds to the hash of the extracted directory. Again, other hash algorithms are also available, but `hash` is currently preferred.
`fetchFromGitHub` uses `fetchzip` to download the source archive generated by GitHub for the specified revision. If `leaveDotGit`, `deepClone` or `fetchSubmodules` are set to `true`, `fetchFromGitHub` will use `fetchgit` instead. Refer to its section for documentation of these options.
## `fetchFromGitLab` {#fetchfromgitlab}
This is used with GitLab repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromGitiles` {#fetchfromgitiles}
This is used with Gitiles repositories. The arguments expected are similar to `fetchgit`.
## `fetchFromBitbucket` {#fetchfrombitbucket}
This is used with BitBucket repositories. The arguments expected are very similar to fetchFromGitHub above.
## `fetchFromSavannah` {#fetchfromsavannah}
This is used with Savannah repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromRepoOrCz` {#fetchfromrepoorcz}
This is used with repo.or.cz repositories. The arguments expected are very similar to `fetchFromGitHub` above.
## `fetchFromSourcehut` {#fetchfromsourcehut}
This is used with sourcehut repositories. Similar to `fetchFromGitHub` above,
it expects `owner`, `repo`, `rev` and `hash`, but don't forget the tilde (~)
in front of the username! Expected arguments also include `vc` ("git" (default)
or "hg"), `domain` and `fetchSubmodules`.
If `fetchSubmodules` is `true`, `fetchFromSourcehut` uses `fetchgit`
or `fetchhg` with `fetchSubmodules` or `fetchSubrepos` set to `true`,
respectively. Otherwise, the fetcher uses `fetchzip`.
## `requireFile` {#requirefile}
`requireFile` allows requesting files that cannot be fetched automatically, but whose content is known.
This is a useful last-resort workaround for license restrictions that prohibit redistribution, or for downloads that are only accessible after authenticating interactively in a browser.
If the requested file is present in the Nix store, the resulting derivation will not be built, because its expected output is already available.
Otherwise, the builder will run, but fail with a message explaining to the user how to provide the file. The following code, for example:
```
requireFile {
name = "jdk-${version}_linux-x64_bin.tar.gz";
url = "https://www.oracle.com/java/technologies/javase-jdk11-downloads.html";
sha256 = "94bd34f85ee38d3ef59e5289ec7450b9443b924c55625661fffe66b03f2c8de2";
}
```
results in this error message:
```
***
Unfortunately, we cannot download file jdk-11.0.10_linux-x64_bin.tar.gz automatically.
Please go to https://www.oracle.com/java/technologies/javase-jdk11-downloads.html to download it yourself, and add it to the Nix store
using either
nix-store --add-fixed sha256 jdk-11.0.10_linux-x64_bin.tar.gz
or
nix-prefetch-url --type sha256 file:///path/to/jdk-11.0.10_linux-x64_bin.tar.gz
***
```

View File

@@ -1,15 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-images">
<title>Images</title>
<para>
This chapter describes tools for creating various types of images.
</para>
<xi:include href="images/appimagetools.section.xml" />
<xi:include href="images/dockertools.section.xml" />
<xi:include href="images/ocitools.section.xml" />
<xi:include href="images/snaptools.section.xml" />
<xi:include href="images/portableservice.section.xml" />
<xi:include href="images/makediskimage.section.xml" />
<xi:include href="images/binarycache.section.xml" />
</chapter>

View File

@@ -1,48 +0,0 @@
# pkgs.appimageTools {#sec-pkgs-appimageTools}
`pkgs.appimageTools` is a set of functions for extracting and wrapping [AppImage](https://appimage.org/) files. They are meant to be used if traditional packaging from source is infeasible, or it would take too long. To quickly run an AppImage file, `pkgs.appimage-run` can be used as well.
::: {.warning}
The `appimageTools` API is unstable and may be subject to backwards-incompatible changes in the future.
:::
## AppImage formats {#ssec-pkgs-appimageTools-formats}
There are different formats for AppImages, see [the specification](https://github.com/AppImage/AppImageSpec/blob/74ad9ca2f94bf864a4a0dac1f369dd4f00bd1c28/draft.md#image-format) for details.
- Type 1 images are ISO 9660 files that are also ELF executables.
- Type 2 images are ELF executables with an appended filesystem.
They can be told apart with `file -k`:
```ShellSession
$ file -k type1.AppImage
type1.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) ISO 9660 CD-ROM filesystem data 'AppImage' (Lepton 3.x), scale 0-0,
spot sensor temperature 0.000000, unit celsius, color scheme 0, calibration: offset 0.000000, slope 0.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=d629f6099d2344ad82818172add1d38c5e11bc6d, stripped\012- data
$ file -k type2.AppImage
type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x), scale 232-60668, spot sensor temperature -4.187500, color scheme 15, show scale bar, calibration: offset -0.000000, slope 0.000000 (Lepton 2.x), scale 4111-45000, spot sensor temperature 412442.250000, color scheme 3, minimum point enabled, calibration: offset -75402534979642766821519867692934234112.000000, slope 5815371847733706829839455140374904832.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=79dcc4e55a61c293c5e19edbd8d65b202842579f, stripped\012- data
```
Note how the type 1 AppImage is described as an `ISO 9660 CD-ROM filesystem`, and the type 2 AppImage is not.
## Wrapping {#ssec-pkgs-appimageTools-wrapping}
Depending on the type of AppImage you're wrapping, you'll have to use `wrapType1` or `wrapType2`.
```nix
appimageTools.wrapType2 { # or wrapType1
name = "patchwork";
src = fetchurl {
url = "https://github.com/ssbc/patchwork/releases/download/v3.11.4/Patchwork-3.11.4-linux-x86_64.AppImage";
hash = "sha256-OqTitCeZ6xmWbqYTXp8sDrmVgTNjPZNW0hzUPW++mq4=";
};
extraPkgs = pkgs: with pkgs; [ ];
}
```
- `name` specifies the name of the resulting image.
- `src` specifies the AppImage file to extract.
- `extraPkgs` allows you to pass a function to include additional packages inside the FHS environment your AppImage is going to run in. There are a few ways to learn which dependencies an application needs:
- Looking through the extracted AppImage files, reading its scripts and running `patchelf` and `ldd` on its executables. This can also be done in `appimage-run`, by setting `APPIMAGE_DEBUG_EXEC=bash`.
- Running `strace -vfefile` on the wrapped executable, looking for libraries that can't be found.

View File

@@ -1,49 +0,0 @@
# pkgs.mkBinaryCache {#sec-pkgs-binary-cache}
`pkgs.mkBinaryCache` is a function for creating Nix flat-file binary caches. Such a cache exists as a directory on disk, and can be used as a Nix substituter by passing `--substituter file:///path/to/cache` to Nix commands.
Nix packages are most commonly shared between machines using [HTTP, SSH, or S3](https://nixos.org/manual/nix/stable/package-management/sharing-packages.html), but a flat-file binary cache can still be useful in some situations. For example, you can copy it directly to another machine, or make it available on a network file system. It can also be a convenient way to make some Nix packages available inside a container via bind-mounting.
Note that this function is meant for advanced use-cases. The more idiomatic way to work with flat-file binary caches is via the [nix-copy-closure](https://nixos.org/manual/nix/stable/command-ref/nix-copy-closure.html) command. You may also want to consider [dockerTools](#sec-pkgs-dockerTools) for your containerization needs.
## Example {#sec-pkgs-binary-cache-example}
The following derivation will construct a flat-file binary cache containing the closure of `hello`.
```nix
mkBinaryCache {
rootPaths = [hello];
}
```
- `rootPaths` specifies a list of root derivations. The transitive closure of these derivations' outputs will be copied into the cache.
Here's an example of building and using the cache.
Build the cache on one machine, `host1`:
```shellSession
nix-build -E 'with import <nixpkgs> {}; mkBinaryCache { rootPaths = [hello]; }'
```
```shellSession
/nix/store/cc0562q828rnjqjyfj23d5q162gb424g-binary-cache
```
Copy the resulting directory to the other machine, `host2`:
```shellSession
scp result host2:/tmp/hello-cache
```
Substitute the derivation using the flat-file binary cache on the other machine, `host2`:
```shellSession
nix-build -A hello '<nixpkgs>' \
--option require-sigs false \
--option trusted-substituters file:///tmp/hello-cache \
--option substituters file:///tmp/hello-cache
```
```shellSession
/nix/store/gl5a41azbpsadfkfmbilh9yk40dh5dl0-hello-2.12.1
```

View File

@@ -1,539 +0,0 @@
# pkgs.dockerTools {#sec-pkgs-dockerTools}
`pkgs.dockerTools` is a set of functions for creating and manipulating Docker images according to the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#docker-image-specification-v120). Docker itself is not used to perform any of the operations done by these functions.
## buildImage {#ssec-pkgs-dockerTools-buildImage}
This function is analogous to the `docker build` command, in that it can be used to build a Docker-compatible repository tarball containing a single image with one or multiple layers. As such, the result is suitable for being loaded in Docker with `docker load`.
The parameters of `buildImage` with relative example values are described below:
[]{#ex-dockerTools-buildImage}
[]{#ex-dockerTools-buildImage-runAsRoot}
```nix
buildImage {
name = "redis";
tag = "latest";
fromImage = someBaseImage;
fromImageName = null;
fromImageTag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.redis ];
pathsToLink = [ "/bin" ];
};
runAsRoot = ''
#!${pkgs.runtimeShell}
mkdir -p /data
'';
config = {
Cmd = [ "/bin/redis-server" ];
WorkingDir = "/data";
Volumes = { "/data" = { }; };
};
diskSize = 1024;
buildVMMemorySize = 512;
}
```
The above example will build a Docker image `redis/latest` from the given base image. Loading and running this image in Docker results in `redis-server` being started automatically.
- `name` specifies the name of the resulting image. This is the only required argument for `buildImage`.
- `tag` specifies the tag of the resulting image. By default it's `null`, which indicates that the nix output hash will be used as tag.
- `fromImage` is the repository tarball containing the base image. It must be a valid Docker image, such as exported by `docker save`. By default it's `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
- `fromImageName` can be used to further specify the base image within the repository, in case it contains multiple images. By default it's `null`, in which case `buildImage` will peek the first image available in the repository.
- `fromImageTag` can be used to further specify the tag of the base image within the repository, in case an image contains multiple tags. By default it's `null`, in which case `buildImage` will peek the first tag available for the base image.
- `copyToRoot` is a derivation that will be copied in the new layer of the resulting image. This can be similarly seen as `ADD contents/ /` in a `Dockerfile`. By default it's `null`.
- `runAsRoot` is a bash script that will run as root in an environment that overlays the existing layers of the base image with the new resulting layer, including the previously copied `contents` derivation. This can be similarly seen as `RUN ...` in a `Dockerfile`.
> **_NOTE:_** Using this parameter requires the `kvm` device to be available.
- `config` is used to specify the configuration of the containers that will be started off the built image in Docker. The available options are listed in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
- `architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`.
- `diskSize` is used to specify the disk size of the VM used to build the image in megabytes. By default it's 1024 MiB.
- `buildVMMemorySize` is used to specify the memory size of the VM to build the image in megabytes. By default it's 512 MiB.
After the new layer has been created, its closure (to which `contents`, `config` and `runAsRoot` contribute) will be copied in the layer itself. Only new dependencies that are not already in the existing layers will be copied.
At the end of the process, only one new single layer will be produced and added to the resulting image.
The resulting repository will only list the single image `image/tag`. In the case of [the `buildImage` example](#ex-dockerTools-buildImage), it would be `redis/latest`.
It is possible to inspect the arguments with which an image was built using its `buildArgs` attribute.
> **_NOTE:_** If you see errors similar to `getProtocolByName: does not exist (no such protocol name: tcp)` you may need to add `pkgs.iana-etc` to `contents`.
> **_NOTE:_** If you see errors similar to `Error_Protocol ("certificate has unknown CA",True,UnknownCa)` you may need to add `pkgs.cacert` to `contents`.
By default `buildImage` will use a static date of one second past the UNIX Epoch. This allows `buildImage` to produce binary reproducible images. When listing images with `docker images`, the newly created images will be listed like this:
```ShellSession
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest 08c791c7846e 48 years ago 25.2MB
```
You can break binary reproducibility but have a sorted, meaningful `CREATED` column by setting `created` to `now`.
```nix
pkgs.dockerTools.buildImage {
name = "hello";
tag = "latest";
created = "now";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ pkgs.hello ];
pathsToLink = [ "/bin" ];
};
config.Cmd = [ "/bin/hello" ];
}
```
Now the Docker CLI will display a reasonable date and sort the images as expected:
```ShellSession
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest de2bf4786de6 About a minute ago 25.2MB
```
However, the produced images will not be binary reproducible.
## buildLayeredImage {#ssec-pkgs-dockerTools-buildLayeredImage}
Create a Docker image with many of the store paths being on their own layer to improve sharing between images. The image is realized into the Nix store as a gzipped tarball. Depending on the intended usage, many users might prefer to use `streamLayeredImage` instead, which this function uses internally.
`name`
: The name of the resulting image.
`tag` _optional_
: Tag of the generated image.
*Default:* the output path's hash
`fromImage` _optional_
: The repository tarball containing the base image. It must be a valid Docker image, such as one exported by `docker save`.
*Default:* `null`, which can be seen as equivalent to `FROM scratch` of a `Dockerfile`.
`contents` _optional_
: Top-level paths in the container. Either a single derivation, or a list of derivations.
*Default:* `[]`
`config` _optional_
`architecture` is _optional_ and used to specify the image architecture, this is useful for multi-architecture builds that don't need cross compiling. If not specified it will default to `hostPlatform`.
: Run-time configuration of the container. A full list of the options available is in the [Docker Image Specification v1.2.0](https://github.com/moby/moby/blob/master/image/spec/v1.2.md#image-json-field-descriptions).
*Default:* `{}`
`created` _optional_
: Date and time the layers were created. Follows the same `now` exception supported by `buildImage`.
*Default:* `1970-01-01T00:00:01Z`
`maxLayers` _optional_
: Maximum number of layers to create.
*Default:* `100`
*Maximum:* `125`
`extraCommands` _optional_
: Shell commands to run while building the final layer, without access to most of the layer contents. Changes to this layer are "on top" of all the other layers, so can create additional directories and files.
`fakeRootCommands` _optional_
: Shell commands to run while creating the archive for the final layer in a fakeroot environment. Unlike `extraCommands`, you can run `chown` to change the owners of the files in the archive, changing fakeroot's state instead of the real filesystem. The latter would require privileges that the build user does not have. Static binaries do not interact with the fakeroot environment. By default all files in the archive will be owned by root.
`enableFakechroot` _optional_
: Whether to run in `fakeRootCommands` in `fakechroot`, making programs behave as though `/` is the root of the image being created, while files in the Nix store are available as usual. This allows scripts that perform installation in `/` to work as expected. Considering that `fakechroot` is implemented via the same mechanism as `fakeroot`, the same caveats apply.
*Default:* `false`
### Behavior of `contents` in the final image {#dockerTools-buildLayeredImage-arg-contents}
Each path directly listed in `contents` will have a symlink in the root of the image.
For example:
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
contents = [ pkgs.hello ];
}
```
will create symlinks for all the paths in the `hello` package:
```ShellSession
/bin/hello -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/bin/hello
/share/info/hello.info -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/info/hello.info
/share/locale/bg/LC_MESSAGES/hello.mo -> /nix/store/h1zb1padqbbb7jicsvkmrym3r6snphxg-hello-2.10/share/locale/bg/LC_MESSAGES/hello.mo
```
### Automatic inclusion of `config` references {#dockerTools-buildLayeredImage-arg-config}
The closure of `config` is automatically included in the closure of the final image.
This allows you to make very simple Docker images with very little code. This container will start up and run `hello`:
```nix
pkgs.dockerTools.buildLayeredImage {
name = "hello";
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
}
```
### Adjusting `maxLayers` {#dockerTools-buildLayeredImage-arg-maxLayers}
Increasing the `maxLayers` increases the number of layers which have a chance to be shared between different images.
Modern Docker installations support up to 128 layers, but older versions support as few as 42.
If the produced image will not be extended by other Docker builds, it is safe to set `maxLayers` to `128`. However, it will be impossible to extend the image further.
The first (`maxLayers-2`) most "popular" paths will have their own individual layers, then layer \#`maxLayers-1` will contain all the remaining "unpopular" paths, and finally layer \#`maxLayers` will contain the Image configuration.
Docker's Layers are not inherently ordered, they are content-addressable and are not explicitly layered until they are composed in to an Image.
## streamLayeredImage {#ssec-pkgs-dockerTools-streamLayeredImage}
Builds a script which, when run, will stream an uncompressed tarball of a Docker image to stdout. The arguments to this function are as for `buildLayeredImage`. This method of constructing an image does not realize the image into the Nix store, so it saves on IO and disk/cache space, particularly with large images.
The image produced by running the output script can be piped directly into `docker load`, to load it into the local docker daemon:
```ShellSession
$(nix-build) | docker load
```
Alternatively, the image be piped via `gzip` into `skopeo`, e.g., to copy it into a registry:
```ShellSession
$(nix-build) | gzip --fast | skopeo copy docker-archive:/dev/stdin docker://some_docker_registry/myimage:tag
```
## pullImage {#ssec-pkgs-dockerTools-fetchFromRegistry}
This function is analogous to the `docker pull` command, in that it can be used to pull a Docker image from a Docker registry. By default [Docker Hub](https://hub.docker.com/) is used to pull images.
Its parameters are described in the example below:
```nix
pullImage {
imageName = "nixos/nix";
imageDigest =
"sha256:473a2b527958665554806aea24d0131bacec46d23af09fef4598eeab331850fa";
finalImageName = "nix";
finalImageTag = "2.11.1";
sha256 = "sha256-qvhj+Hlmviz+KEBVmsyPIzTB3QlVAFzwAY1zDPIBGxc=";
os = "linux";
arch = "x86_64";
}
```
- `imageName` specifies the name of the image to be downloaded, which can also include the registry namespace (e.g. `nixos`). This argument is required.
- `imageDigest` specifies the digest of the image to be downloaded. This argument is required.
- `finalImageName`, if specified, this is the name of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's equal to `imageName`.
- `finalImageTag`, if specified, this is the tag of the image to be created. Note it is never used to fetch the image since we prefer to rely on the immutable digest ID. By default it's `latest`.
- `sha256` is the checksum of the whole fetched image. This argument is required.
- `os`, if specified, is the operating system of the fetched image. By default it's `linux`.
- `arch`, if specified, is the cpu architecture of the fetched image. By default it's `x86_64`.
`nix-prefetch-docker` command can be used to get required image parameters:
```ShellSession
$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5
```
Since a given `imageName` may transparently refer to a manifest list of images which support multiple architectures and/or operating systems, you can supply the `--os` and `--arch` arguments to specify exactly which image you want. By default it will match the OS and architecture of the host the command is run on.
```ShellSession
$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux
```
Desired image name and tag can be set using `--final-image-name` and `--final-image-tag` arguments:
```ShellSession
$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod
```
## exportImage {#ssec-pkgs-dockerTools-exportImage}
This function is analogous to the `docker export` command, in that it can be used to flatten a Docker image that contains multiple layers. It is in fact the result of the merge of all the layers of the image. As such, the result is suitable for being imported in Docker with `docker import`.
> **_NOTE:_** Using this function requires the `kvm` device to be available.
The parameters of `exportImage` are the following:
```nix
exportImage {
fromImage = someLayeredImage;
fromImageName = null;
fromImageTag = null;
name = someLayeredImage.name;
}
```
The parameters relative to the base image have the same synopsis as described in [buildImage](#ssec-pkgs-dockerTools-buildImage), except that `fromImage` is the only required argument in this case.
The `name` argument is the name of the derivation output, which defaults to `fromImage.name`.
## Environment Helpers {#ssec-pkgs-dockerTools-helpers}
Some packages expect certain files to be available globally.
When building an image from scratch (i.e. without `fromImage`), these files are missing.
`pkgs.dockerTools` provides some helpers to set up an environment with the necessary files.
You can include them in `copyToRoot` like this:
```nix
buildImage {
name = "environment-example";
copyToRoot = with pkgs.dockerTools; [
usrBinEnv
binSh
caCertificates
fakeNss
];
}
```
### usrBinEnv {#sssec-pkgs-dockerTools-helpers-usrBinEnv}
This provides the `env` utility at `/usr/bin/env`.
### binSh {#sssec-pkgs-dockerTools-helpers-binSh}
This provides `bashInteractive` at `/bin/sh`.
### caCertificates {#sssec-pkgs-dockerTools-helpers-caCertificates}
This sets up `/etc/ssl/certs/ca-certificates.crt`.
### fakeNss {#sssec-pkgs-dockerTools-helpers-fakeNss}
Provides `/etc/passwd` and `/etc/group` that contain root and nobody.
Useful when packaging binaries that insist on using nss to look up
username/groups (like nginx).
### shadowSetup {#ssec-pkgs-dockerTools-shadowSetup}
This constant string is a helper for setting up the base files for managing users and groups, only if such files don't exist already. It is suitable for being used in a [`buildImage` `runAsRoot`](#ex-dockerTools-buildImage-runAsRoot) script for cases like in the example below:
```nix
buildImage {
name = "shadow-basic";
runAsRoot = ''
#!${pkgs.runtimeShell}
${pkgs.dockerTools.shadowSetup}
groupadd -r redis
useradd -r -g redis redis
mkdir /data
chown redis:redis /data
'';
}
```
Creating base files like `/etc/passwd` or `/etc/login.defs` is necessary for shadow-utils to manipulate users and groups.
## fakeNss {#ssec-pkgs-dockerTools-fakeNss}
If your primary goal is providing a basic skeleton for user lookups to work,
and/or a lesser privileged user, adding `pkgs.fakeNss` to
the container image root might be the better choice than a custom script
running `useradd` and friends.
It provides a `/etc/passwd` and `/etc/group`, containing `root` and `nobody`
users and groups.
It also provides a `/etc/nsswitch.conf`, configuring NSS host resolution to
first check `/etc/hosts`, before checking DNS, as the default in the absence of
a config file (`dns [!UNAVAIL=return] files`) is quite unexpected.
You can pair it with `binSh`, which provides `bin/sh` as a symlink
to `bashInteractive` (as `/bin/sh` is configured as a shell).
```nix
buildImage {
name = "shadow-basic";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [ binSh pkgs.fakeNss ];
pathsToLink = [ "/bin" "/etc" "/var" ];
};
}
```
## buildNixShellImage {#ssec-pkgs-dockerTools-buildNixShellImage}
Create a Docker image that sets up an environment similar to that of running `nix-shell` on a derivation.
When run in Docker, this environment somewhat resembles the Nix sandbox typically used by `nix-build`, with a major difference being that access to the internet is allowed.
It additionally also behaves like an interactive `nix-shell`, running things like `shellHook` and setting an interactive prompt.
If the derivation is fully buildable (i.e. `nix-build` can be used on it), running `buildDerivation` inside such a Docker image will build the derivation, with all its outputs being available in the correct `/nix/store` paths, pointed to by the respective environment variables like `$out`, etc.
::: {.warning}
The behavior doesn't match `nix-shell` or `nix-build` exactly and this function is known not to work correctly for e.g. fixed-output derivations, content-addressed derivations, impure derivations and other special types of derivations.
:::
### Arguments {#ssec-pkgs-dockerTools-buildNixShellImage-arguments}
`drv`
: The derivation on which to base the Docker image.
Adding packages to the Docker image is possible by e.g. extending the list of `nativeBuildInputs` of this derivation like
```nix
buildNixShellImage {
drv = someDrv.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs or [] ++ [
somethingExtra
];
});
# ...
}
```
Similarly, you can extend the image initialization script by extending `shellHook`
`name` _optional_
: The name of the resulting image.
*Default:* `drv.name + "-env"`
`tag` _optional_
: Tag of the generated image.
*Default:* the resulting image derivation output path's hash
`uid`/`gid` _optional_
: The user/group ID to run the container as. This is like a `nixbld` build user.
*Default:* 1000/1000
`homeDirectory` _optional_
: The home directory of the user the container is running as
*Default:* `/build`
`shell` _optional_
: The path to the `bash` binary to use as the shell. This shell is started when running the image.
*Default:* `pkgs.bashInteractive + "/bin/bash"`
`command` _optional_
: Run this command in the environment of the derivation, in an interactive shell. See the `--command` option in the [`nix-shell` documentation](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html?highlight=nix-shell#options).
*Default:* (none)
`run` _optional_
: Same as `command`, but runs the command in a non-interactive shell instead. See the `--run` option in the [`nix-shell` documentation](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html?highlight=nix-shell#options).
*Default:* (none)
### Example {#ssec-pkgs-dockerTools-buildNixShellImage-example}
The following shows how to build the `pkgs.hello` package inside a Docker container built with `buildNixShellImage`.
```nix
with import <nixpkgs> {};
dockerTools.buildNixShellImage {
drv = hello;
}
```
Build the derivation:
```console
nix-build hello.nix
```
these 8 derivations will be built:
/nix/store/xmw3a5ln29rdalavcxk1w3m4zb2n7kk6-nix-shell-rc.drv
...
Creating layer 56 from paths: ['/nix/store/crpnj8ssz0va2q0p5ibv9i6k6n52gcya-stdenv-linux']
Creating layer 57 with customisation...
Adding manifests...
Done.
/nix/store/cpyn1lc897ghx0rhr2xy49jvyn52bazv-hello-2.12-env.tar.gz
Load the image:
```console
docker load -i result
```
0d9f4c4cd109: Loading layer [==================================================>] 2.56MB/2.56MB
...
ab1d897c0697: Loading layer [==================================================>] 10.24kB/10.24kB
Loaded image: hello-2.12-env:pgj9h98nal555415faa43vsydg161bdz
Run the container:
```console
docker run -it hello-2.12-env:pgj9h98nal555415faa43vsydg161bdz
```
[nix-shell:/build]$
In the running container, run the build:
```console
buildDerivation
```
unpacking sources
unpacking source archive /nix/store/8nqv6kshb3vs5q5bs2k600xpj5bkavkc-hello-2.12.tar.gz
...
patching script interpreter paths in /nix/store/z5wwy5nagzy15gag42vv61c2agdpz2f2-hello-2.12
checking for references to /build/ in /nix/store/z5wwy5nagzy15gag42vv61c2agdpz2f2-hello-2.12...
Check the build result:
```console
$out/bin/hello
```
Hello, world!

View File

@@ -1,108 +0,0 @@
# `<nixpkgs/nixos/lib/make-disk-image.nix>` {#sec-make-disk-image}
`<nixpkgs/nixos/lib/make-disk-image.nix>` is a function to create _disk images_ in multiple formats: raw, QCOW2 (QEMU), QCOW2-Compressed (compressed version), VDI (VirtualBox), VPC (VirtualPC).
This function can create images in two ways:
- using `cptofs` without any virtual machine to create a Nix store disk image,
- using a virtual machine to create a full NixOS installation.
When testing early-boot or lifecycle parts of NixOS such as a bootloader or multiple generations, it is necessary to opt for a full NixOS system installation.
Whereas for many web servers, applications, it is possible to work with a Nix store only disk image and is faster to build.
NixOS tests also use this function when preparing the VM. The `cptofs` method is used when `virtualisation.useBootLoader` is false (the default). Otherwise the second method is used.
## Features {#sec-make-disk-image-features}
For reference, read the function signature source code for documentation on arguments: <https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/make-disk-image.nix>.
Features are separated in various sections depending on if you opt for a Nix-store only image or a full NixOS image.
### Common {#sec-make-disk-image-features-common}
- arbitrary NixOS configuration
- automatic or bound disk size: `diskSize` parameter, `additionalSpace` can be set when `diskSize` is `auto` to add a constant of disk space
- multiple partition table layouts: EFI, legacy, legacy + GPT, hybrid, none through `partitionTableType` parameter
- OVMF or EFI firmwares and variables templates can be customized
- root filesystem `fsType` can be customized to whatever `mkfs.${fsType}` exist during operations
- root filesystem label can be customized, defaults to `nix-store` if it's a Nix store image, otherwise `nixpkgs/nixos`
- arbitrary code can be executed after disk image was produced with `postVM`
- the current nixpkgs can be realized as a channel in the disk image, which will change the hash of the image when the sources are updated
- additional store paths can be provided through `additionalPaths`
### Full NixOS image {#sec-make-disk-image-features-full-image}
- arbitrary contents with permissions can be placed in the target filesystem using `contents`
- a `/etc/nixpkgs/nixos/configuration.nix` can be provided through `configFile`
- bootloaders are supported
- EFI variables can be mutated during image production and the result is exposed in `$out`
- boot partition size when partition table is `efi` or `hybrid`
### On bit-to-bit reproducibility {#sec-make-disk-image-features-reproducibility}
Images are **NOT** deterministic, please do not hesitate to try to fix this, source of determinisms are (not exhaustive) :
- bootloader installation have timestamps
- SQLite Nix store database contain registration times
- `/etc/shadow` is in a non-deterministic order
A `deterministic` flag is available for best efforts determinism.
## Usage {#sec-make-disk-image-usage}
To produce a Nix-store only image:
```nix
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
make-disk-image = import <nixpkgs/nixos/lib/make-disk-image.nix>;
in
make-disk-image {
inherit pkgs lib;
config = {};
additionalPaths = [ ];
format = "qcow2";
onlyNixStore = true;
partitionTableType = "none";
installBootLoader = false;
touchEFIVars = false;
diskSize = "auto";
additionalSpace = "0M"; # Defaults to 512M.
copyChannel = false;
}
```
Some arguments can be left out, they are shown explicitly for the sake of the example.
Building this derivation will provide a QCOW2 disk image containing only the Nix store and its registration information.
To produce a NixOS installation image disk with UEFI and bootloader installed:
```nix
let
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
make-disk-image = import <nixpkgs/nixos/lib/make-disk-image.nix>;
evalConfig = import <nixpkgs/nixos/lib/eval-config.nix>;
in
make-disk-image {
inherit pkgs lib;
config = evalConfig {
modules = [
{
fileSystems."/" = { device = "/dev/vda"; fsType = "ext4"; autoFormat = true; };
boot.grub.device = "/dev/vda";
}
];
};
format = "qcow2";
onlyNixStore = false;
partitionTableType = "legacy+gpt";
installBootLoader = true;
touchEFIVars = true;
diskSize = "auto";
additionalSpace = "0M"; # Defaults to 512M.
copyChannel = false;
memSize = 2048; # Qemu VM memory size in megabytes. Defaults to 1024M.
}
```

View File

@@ -1,37 +0,0 @@
# pkgs.ociTools {#sec-pkgs-ociTools}
`pkgs.ociTools` is a set of functions for creating containers according to the [OCI container specification v1.0.0](https://github.com/opencontainers/runtime-spec). Beyond that, it makes no assumptions about the container runner you choose to use to run the created container.
## buildContainer {#ssec-pkgs-ociTools-buildContainer}
This function creates a simple OCI container that runs a single command inside of it. An OCI container consists of a `config.json` and a rootfs directory. The nix store of the container will contain all referenced dependencies of the given command.
The parameters of `buildContainer` with an example value are described below:
```nix
buildContainer {
args = [
(with pkgs;
writeScript "run.sh" ''
#!${bash}/bin/bash
exec ${bash}/bin/bash
'').outPath
];
mounts = {
"/data" = {
type = "none";
source = "/var/lib/mydata";
options = [ "bind" ];
};
};
readonly = false;
}
```
- `args` specifies a set of arguments to run inside the container. This is the only required argument for `buildContainer`. All referenced packages inside the derivation will be made available inside the container.
- `mounts` specifies additional mount points chosen by the user. By default only a minimal set of necessary filesystems are mounted into the container (e.g procfs, cgroupfs)
- `readonly` makes the container's rootfs read-only if it is set to true. The default value is false `false`.

View File

@@ -1,81 +0,0 @@
# pkgs.portableService {#sec-pkgs-portableService}
`pkgs.portableService` is a function to create _portable service images_,
as read-only, immutable, `squashfs` archives.
systemd supports a concept of [Portable Services](https://systemd.io/PORTABLE_SERVICES/).
Portable Services are a delivery method for system services that uses two specific features of container management:
* Applications are bundled. I.e. multiple services, their binaries and
all their dependencies are packaged in an image, and are run directly from it.
* Stricter default security policies, i.e. sandboxing of applications.
This allows using Nix to build images which can be run on many recent Linux distributions.
The primary tool for interacting with Portable Services is `portablectl`,
and they are managed by the `systemd-portabled` system service.
::: {.note}
Portable services are supported starting with systemd 239 (released on 2018-06-22).
:::
A very simple example of using `portableService` is described below:
[]{#ex-pkgs-portableService}
```nix
pkgs.portableService {
pname = "demo";
version = "1.0";
units = [ demo-service demo-socket ];
}
```
The above example will build an squashfs archive image in `result/$pname_$version.raw`. The image will contain the
file system structure as required by the portable service specification, and a subset of the Nix store with all the
dependencies of the two derivations in the `units` list.
`units` must be a list of derivations, and their names must be prefixed with the service name (`"demo"` in this case).
Otherwise `systemd-portabled` will ignore them.
::: {.note}
The `.raw` file extension of the image is required by the portable services specification.
:::
Some other options available are:
- `description`, `homepage`
Are added to the `/etc/os-release` in the image and are shown by the portable services tooling.
Default to empty values, not added to os-release.
- `symlinks`
A list of attribute sets {object, symlink}. Symlinks will be created in the root filesystem of the image to
objects in the Nix store. Defaults to an empty list.
- `contents`
A list of additional derivations to be included in the image Nix store, as-is. Defaults to an empty list.
- `squashfsTools`
Defaults to `pkgs.squashfsTools`, allows you to override the package that provides `mksquashfs`.
- `squash-compression`, `squash-block-size`
Options to `mksquashfs`. Default to `"xz -Xdict-size 100%"` and `"1M"` respectively.
A typical usage of `symlinks` would be:
```nix
symlinks = [
{ object = "${pkgs.cacert}/etc/ssl"; symlink = "/etc/ssl"; }
{ object = "${pkgs.bash}/bin/bash"; symlink = "/bin/sh"; }
{ object = "${pkgs.php}/bin/php"; symlink = "/usr/bin/php"; }
];
```
to create these symlinks for legacy applications that assume them existing globally.
Once the image is created, and deployed on a host in `/var/lib/portables/`, you can attach the image and run the service. As root run:
```console
portablectl attach demo_1.0.raw
systemctl enable --now demo.socket
systemctl enable --now demo.service
```
::: {.note}
See the [man page](https://www.freedesktop.org/software/systemd/man/portablectl.html) of `portablectl` for more info on its usage.
:::

View File

@@ -1,71 +0,0 @@
# pkgs.snapTools {#sec-pkgs-snapTools}
`pkgs.snapTools` is a set of functions for creating Snapcraft images. Snap and Snapcraft is not used to perform these operations.
## The makeSnap Function {#ssec-pkgs-snapTools-makeSnap-signature}
`makeSnap` takes a single named argument, `meta`. This argument mirrors [the upstream `snap.yaml` format](https://docs.snapcraft.io/snap-format) exactly.
The `base` should not be specified, as `makeSnap` will force set it.
Currently, `makeSnap` does not support creating GUI stubs.
## Build a Hello World Snap {#ssec-pkgs-snapTools-build-a-snap-hello}
The following expression packages GNU Hello as a Snapcraft snap.
``` {#ex-snapTools-buildSnap-hello .nix}
let
inherit (import <nixpkgs> { }) snapTools hello;
in snapTools.makeSnap {
meta = {
name = "hello";
summary = hello.meta.description;
description = hello.meta.longDescription;
architectures = [ "amd64" ];
confinement = "strict";
apps.hello.command = "${hello}/bin/hello";
};
}
```
`nix-build` this expression and install it with `snap install ./result --dangerous`. `hello` will now be the Snapcraft version of the package.
## Build a Graphical Snap {#ssec-pkgs-snapTools-build-a-snap-firefox}
Graphical programs require many more integrations with the host. This example uses Firefox as an example because it is one of the most complicated programs we could package.
``` {#ex-snapTools-buildSnap-firefox .nix}
let
inherit (import <nixpkgs> { }) snapTools firefox;
in snapTools.makeSnap {
meta = {
name = "nix-example-firefox";
summary = firefox.meta.description;
architectures = [ "amd64" ];
apps.nix-example-firefox = {
command = "${firefox}/bin/firefox";
plugs = [
"pulseaudio"
"camera"
"browser-support"
"avahi-observe"
"cups-control"
"desktop"
"desktop-legacy"
"gsettings"
"home"
"network"
"mount-observe"
"removable-media"
"x11"
];
};
confinement = "strict";
};
}
```
`nix-build` this expression and install it with `snap install ./result --dangerous`. `nix-example-firefox` will now be the Snapcraft version of the Firefox package.
The specific meaning behind plugs can be looked up in the [Snapcraft interface documentation](https://docs.snapcraft.io/supported-interfaces).

View File

@@ -1,129 +0,0 @@
# Cataclysm: Dark Days Ahead {#cataclysm-dark-days-ahead}
## How to install Cataclysm DDA {#how-to-install-cataclysm-dda}
To install the latest stable release of Cataclysm DDA to your profile, execute
`nix-env -f "<nixpkgs>" -iA cataclysm-dda`. For the curses build (build
without tiles), install `cataclysmDDA.stable.curses`. Note: `cataclysm-dda` is
an alias to `cataclysmDDA.stable.tiles`.
If you like access to a development build of your favorite git revision,
override `cataclysm-dda-git` (or `cataclysmDDA.git.curses` if you like curses
build):
```nix
cataclysm-dda-git.override {
version = "YYYY-MM-DD";
rev = "YOUR_FAVORITE_REVISION";
sha256 = "CHECKSUM_OF_THE_REVISION";
}
```
The sha256 checksum can be obtained by
```sh
nix-prefetch-url --unpack "https://github.com/CleverRaven/Cataclysm-DDA/archive/${YOUR_FAVORITE_REVISION}.tar.gz"
```
The default configuration directory is `~/.cataclysm-dda`. If you prefer
`$XDG_CONFIG_HOME/cataclysm-dda`, override the derivation:
```nix
cataclysm-dda.override {
useXdgDir = true;
}
```
## Important note for overriding packages {#important-note-for-overriding-packages}
After applying `overrideAttrs`, you need to fix `passthru.pkgs` and
`passthru.withMods` attributes either manually or by using `attachPkgs`:
```nix
let
# You enabled parallel building.
myCDDA = cataclysm-dda-git.overrideAttrs (_: {
enableParallelBuilding = true;
});
# Unfortunately, this refers to the package before overriding and
# parallel building is still disabled.
badExample = myCDDA.withMods (_: []);
inherit (cataclysmDDA) attachPkgs pkgs wrapCDDA;
# You can fix it by hand
goodExample1 = myCDDA.overrideAttrs (old: {
passthru = old.passthru // {
pkgs = pkgs.override { build = goodExample1; };
withMods = wrapCDDA goodExample1;
};
});
# or by using a helper function `attachPkgs`.
goodExample2 = attachPkgs pkgs myCDDA;
in
# badExample # parallel building disabled
# goodExample1.withMods (_: []) # parallel building enabled
goodExample2.withMods (_: []) # parallel building enabled
```
## Customizing with mods {#customizing-with-mods}
To install Cataclysm DDA with mods of your choice, you can use `withMods`
attribute:
```nix
cataclysm-dda.withMods (mods: with mods; [
tileset.UndeadPeople
])
```
All mods, soundpacks, and tilesets available in nixpkgs are found in
`cataclysmDDA.pkgs`.
Here is an example to modify existing mods and/or add more mods not available
in nixpkgs:
```nix
let
customMods = self: super: lib.recursiveUpdate super {
# Modify existing mod
tileset.UndeadPeople = super.tileset.UndeadPeople.overrideAttrs (old: {
# If you like to apply a patch to the tileset for example
patches = [ ./path/to/your.patch ];
});
# Add another mod
mod.Awesome = cataclysmDDA.buildMod {
modName = "Awesome";
version = "0.x";
src = fetchFromGitHub {
owner = "Someone";
repo = "AwesomeMod";
rev = "...";
hash = "...";
};
# Path to be installed in the unpacked source (default: ".")
modRoot = "contents/under/this/path/will/be/installed";
};
# Add another soundpack
soundpack.Fantastic = cataclysmDDA.buildSoundPack {
# ditto
};
# Add another tileset
tileset.SuperDuper = cataclysmDDA.buildTileSet {
# ditto
};
};
in
cataclysm-dda.withMods (mods: with mods.extend customMods; [
tileset.UndeadPeople
mod.Awesome
soundpack.Fantastic
tileset.SuperDuper
])
```

View File

@@ -1,32 +0,0 @@
# Citrix Workspace {#sec-citrix}
The [Citrix Workspace App](https://www.citrix.com/products/workspace-app/) is a remote desktop viewer which provides access to [XenDesktop](https://www.citrix.com/products/xenapp-xendesktop/) installations.
## Basic usage {#sec-citrix-base}
The tarball archive needs to be downloaded manually, as the license agreements of the vendor for [Citrix Workspace](https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html) needs to be accepted first. Then run `nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz`. With the archive available in the store, the package can be built and installed with Nix.
## Citrix Self-service {#sec-citrix-selfservice}
The [self-service](https://support.citrix.com/article/CTX200337) is an application managing Citrix desktops and applications. Please note that this feature only works with at least citrix_workspace_20_06_0 and later versions.
In order to set this up, you first have to [download the `.cr` file from the Netscaler Gateway](https://its.uiowa.edu/support/article/102186). After that, you can configure the `selfservice` like this:
```ShellSession
$ storebrowse -C ~/Downloads/receiverconfig.cr
$ selfservice
```
## Custom certificates {#sec-citrix-custom-certs}
The `Citrix Workspace App` in `nixpkgs` trusts several certificates [from the Mozilla database](https://curl.haxx.se/docs/caextract.html) by default. However, several companies using Citrix might require their own corporate certificate. On distros with imperative packaging, these certs can be stored easily in [`$ICAROOT`](https://citrix.github.io/receiver-for-linux-command-reference/), however this directory is a store path in `nixpkgs`. In order to work around this issue, the package provides a simple mechanism to add custom certificates without rebuilding the entire package using `symlinkJoin`:
```nix
with import <nixpkgs> { config.allowUnfree = true; };
let
extraCerts = [
./custom-cert-1.pem
./custom-cert-2.pem # ...
];
in citrix_workspace.override { inherit extraCerts; }
```

View File

@@ -1,13 +0,0 @@
# DLib {#dlib}
[DLib](http://dlib.net/) is a modern, C++-based toolkit which provides several machine learning algorithms.
## Compiling without AVX support {#compiling-without-avx-support}
Especially older CPUs don't support [AVX](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions) (Advanced Vector Extensions) instructions that are used by DLib to optimize their algorithms.
On the affected hardware errors like `Illegal instruction` will occur. In those cases AVX support needs to be disabled:
```nix
self: super: { dlib = super.dlib.override { avxSupport = false; }; }
```

View File

@@ -1,64 +0,0 @@
# Eclipse {#sec-eclipse}
The Nix expressions related to the Eclipse platform and IDE are in [`pkgs/applications/editors/eclipse`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse).
Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
```ShellSession
$ nix-env -f '<nixpkgs>' -qaP -A eclipses --description
```
Once an Eclipse variant is installed, it can be run using the `eclipse` command, as expected. From within Eclipse, it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
If you prefer to install plugins in a more declarative manner, then Nixpkgs also offer a number of Eclipse plugins that can be installed in an _Eclipse environment_. This type of environment is created using the function `eclipseWithPlugins` found inside the `nixpkgs.eclipses` attribute set. This function takes as argument `{ eclipse, plugins ? [], jvmArgs ? [] }` where `eclipse` is a one of the Eclipse packages described above, `plugins` is a list of plugin derivations, and `jvmArgs` is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add:
```nix
packageOverrides = pkgs: {
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
eclipse = eclipse-platform;
jvmArgs = [ "-Xmx2048m" ];
plugins = [ plugins.color-theme ];
};
}
```
to your Nixpkgs configuration (`~/.config/nixpkgs/config.nix`) and install it by running `nix-env -f '<nixpkgs>' -iA myEclipse` and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using `eclipseWithPlugins` by running:
```ShellSession
$ nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
```
If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the `buildEclipseUpdateSite` and `buildEclipsePlugin` functions found in the `nixpkgs.eclipses.plugins` attribute set. Use the `buildEclipseUpdateSite` function to install a plugin distributed as an Eclipse update site. This function takes `{ name, src }` as argument, where `src` indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available, then the `buildEclipsePlugin` function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument `{ name, srcFeature, srcPlugin }` where `srcFeature` and `srcPlugin` are the feature and plugin JARs, respectively.
Expanding the previous example with two plugins using the above functions, we have:
```nix
packageOverrides = pkgs: {
myEclipse = with pkgs.eclipses; eclipseWithPlugins {
eclipse = eclipse-platform;
jvmArgs = [ "-Xmx2048m" ];
plugins = [
plugins.color-theme
(plugins.buildEclipsePlugin {
name = "myplugin1-1.0";
srcFeature = fetchurl {
url = "http:///features/myplugin1.jar";
hash = "sha256-123";
};
srcPlugin = fetchurl {
url = "http:///plugins/myplugin1.jar";
hash = "sha256-123";
};
});
(plugins.buildEclipseUpdateSite {
name = "myplugin2-1.0";
src = fetchurl {
stripRoot = false;
url = "http:///myplugin2.zip";
hash = "sha256-123";
};
});
];
};
}
```

View File

@@ -1,11 +0,0 @@
# Elm {#sec-elm}
To start a development environment, run:
```ShellSession
nix-shell -p elmPackages.elm elmPackages.elm-format
```
To update the Elm compiler, see `nixpkgs/pkgs/development/compilers/elm/README.md`.
To package Elm applications, [read about elm2nix](https://github.com/hercules-ci/elm2nix#elm2nix).

View File

@@ -1,119 +0,0 @@
# Emacs {#sec-emacs}
## Configuring Emacs {#sec-emacs-config}
The Emacs package comes with some extra helpers to make it easier to configure. `emacs.pkgs.withPackages` allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use `company` `counsel`, `flycheck`, `ivy`, `magit`, `projectile`, and `use-package` you could use this as a `~/.config/nixpkgs/config.nix` override:
```nix
{
packageOverrides = pkgs: with pkgs; {
myEmacs = emacs.pkgs.withPackages (epkgs: (with epkgs.melpaStablePackages; [
company
counsel
flycheck
ivy
magit
projectile
use-package
]));
}
}
```
You can install it like any other packages via `nix-env -iA myEmacs`. However, this will only install those packages. It will not `configure` them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provides a `default.el` file in `/share/emacs/site-start/`. Emacs knows to load this file automatically when it starts.
```nix
{
packageOverrides = pkgs: with pkgs; rec {
myEmacsConfig = writeText "default.el" ''
;; initialize package
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile
(require 'use-package))
;; load some packages
(use-package company
:bind ("<C-tab>" . company-complete)
:diminish company-mode
:commands (company-mode global-company-mode)
:defer 1
:config
(global-company-mode))
(use-package counsel
:commands (counsel-descbinds)
:bind (([remap execute-extended-command] . counsel-M-x)
("C-x C-f" . counsel-find-file)
("C-c g" . counsel-git)
("C-c j" . counsel-git-grep)
("C-c k" . counsel-ag)
("C-x l" . counsel-locate)
("M-y" . counsel-yank-pop)))
(use-package flycheck
:defer 2
:config (global-flycheck-mode))
(use-package ivy
:defer 1
:bind (("C-c C-r" . ivy-resume)
("C-x C-b" . ivy-switch-buffer)
:map ivy-minibuffer-map
("C-j" . ivy-call))
:diminish ivy-mode
:commands ivy-mode
:config
(ivy-mode 1))
(use-package magit
:defer
:if (executable-find "git")
:bind (("C-x g" . magit-status)
("C-x G" . magit-dispatch-popup))
:init
(setq magit-completing-read-function 'ivy-completing-read))
(use-package projectile
:commands projectile-mode
:bind-keymap ("C-c p" . projectile-command-map)
:defer 5
:config
(projectile-global-mode))
'';
myEmacs = emacs.pkgs.withPackages (epkgs: (with epkgs.melpaStablePackages; [
(runCommand "default.el" {} ''
mkdir -p $out/share/emacs/site-lisp
cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
'')
company
counsel
flycheck
ivy
magit
projectile
use-package
]));
};
}
```
This provides a fairly full Emacs start file. It will load in addition to the user's personal config. You can always disable it by passing `-q` to the Emacs command.
Sometimes `emacs.pkgs.withPackages` is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in `pkgs/top-level/emacs-packages.nix`). But you can't control these priorities when some package is installed as a dependency. You can override it on a per-package-basis, providing all the required dependencies manually, but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package, you can use `overrideScope'`.
```nix
overrides = self: super: rec {
haskell-mode = self.melpaPackages.haskell-mode;
...
};
((emacsPackagesFor emacs).overrideScope' overrides).withPackages
(p: with p; [
# here both these package will use haskell-mode of our own choice
ghc-mod
dante
])
```

View File

@@ -1,18 +0,0 @@
# /etc files {#etc}
Certain calls in glibc require access to runtime files found in `/etc` such as `/etc/protocols` or `/etc/services` -- [getprotobyname](https://linux.die.net/man/3/getprotobyname) is one such function.
On non-NixOS distributions these files are typically provided by packages (i.e., [netbase](https://packages.debian.org/sid/netbase)) if not already pre-installed in your distribution. This can cause non-reproducibility for code if they rely on these files being present.
If [iana-etc](https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.iana-etc.x86_64-linux) is part of your `buildInputs`, then it will set the environment variables `NIX_ETC_PROTOCOLS` and `NIX_ETC_SERVICES` to the corresponding files in the package through a setup hook.
```bash
> nix-shell -p iana-etc
[nix-shell:~]$ env | grep NIX_ETC
NIX_ETC_SERVICES=/nix/store/aj866hr8fad8flnggwdhrldm0g799ccz-iana-etc-20210225/etc/services
NIX_ETC_PROTOCOLS=/nix/store/aj866hr8fad8flnggwdhrldm0g799ccz-iana-etc-20210225/etc/protocols
```
Nixpkg's version of [glibc](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/glibc/default.nix) has been patched to check for the existence of these environment variables. If the environment variables are *not* set, then it will attempt to find the files at the default location within `/etc`.

View File

@@ -1,55 +0,0 @@
# Firefox {#sec-firefox}
## Build wrapped Firefox with extensions and policies {#build-wrapped-firefox-with-extensions-and-policies}
The `wrapFirefox` function allows to pass policies, preferences and extensions that are available to Firefox. With the help of `fetchFirefoxAddon` this allows to build a Firefox version that already comes with add-ons pre-installed:
```nix
{
# Nix firefox addons only work with the firefox-esr package.
myFirefox = wrapFirefox firefox-esr-unwrapped {
nixExtensions = [
(fetchFirefoxAddon {
name = "ublock"; # Has to be unique!
url = "https://addons.mozilla.org/firefox/downloads/file/3679754/ublock_origin-1.31.0-an+fx.xpi";
hash = "sha256-2e73AbmYZlZXCP5ptYVcFjQYdjDp4iPoEPEOSCVF5sA=";
})
];
extraPolicies = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = true;
FirefoxHome = {
Pocket = false;
Snippets = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
SecurityDevices = {
# Use a proxy module rather than `nixpkgs.config.firefox.smartcardSupport = true`
"PKCS#11 Proxy Module" = "${pkgs.p11-kit}/lib/p11-kit-proxy.so";
};
};
extraPrefs = ''
// Show more ssl cert infos
lockPref("security.identityblock.show_extended_validation", true);
'';
};
}
```
If `nixExtensions != null`, then all manually installed add-ons will be uninstalled from your browser profile.
To view available enterprise policies, visit [enterprise policies](https://github.com/mozilla/policy-templates#enterprisepoliciesenabled)
or type into the Firefox URL bar: `about:policies#documentation`.
Nix installed add-ons do not have a valid signature, which is why signature verification is disabled. This does not compromise security because downloaded add-ons are checksummed and manual add-ons can't be installed. Also, make sure that the `name` field of `fetchFirefoxAddon` is unique. If you remove an add-on from the `nixExtensions` array, rebuild and start Firefox: the removed add-on will be completely removed with all of its settings.
## Troubleshooting {#sec-firefox-troubleshooting}
If add-ons are marked as broken or the signature is invalid, make sure you have Firefox ESR installed. Normal Firefox does not provide the ability anymore to disable signature verification for add-ons thus nix add-ons get disabled by the normal Firefox binary.
If add-ons do not appear installed despite being defined in your nix configuration file, reset the local add-on state of your Firefox profile by clicking `Help -> More Troubleshooting Information -> Refresh Firefox`. This can happen if you switch from manual add-on mode to nix add-on mode and then back to manual mode and then again to nix add-on mode.

View File

@@ -1,50 +0,0 @@
# Fish {#sec-fish}
Fish is a "smart and user-friendly command line shell" with support for plugins.
## Vendor Fish scripts {#sec-fish-vendor}
Any package may ship its own Fish completions, configuration snippets, and
functions. Those should be installed to
`$out/share/fish/vendor_{completions,conf,functions}.d` respectively.
When the `programs.fish.enable` and
`programs.fish.vendor.{completions,config,functions}.enable` options from the
NixOS Fish module are set to true, those paths are symlinked in the current
system environment and automatically loaded by Fish.
## Packaging Fish plugins {#sec-fish-plugins-pkg}
While packages providing standalone executables belong to the top level,
packages which have the sole purpose of extending Fish belong to the
`fishPlugins` scope and should be registered in
`pkgs/shells/fish/plugins/default.nix`.
The `buildFishPlugin` utility function can be used to automatically copy Fish
scripts from `$src/{completions,conf,conf.d,functions}` to the standard vendor
installation paths. It also sets up the test environment so that the optional
`checkPhase` is executed in a Fish shell with other already packaged plugins
and package-local Fish functions specified in `checkPlugins` and
`checkFunctionDirs` respectively.
See `pkgs/shells/fish/plugins/pure.nix` for an example of Fish plugin package
using `buildFishPlugin` and running unit tests with the `fishtape` test runner.
## Fish wrapper {#sec-fish-wrapper}
The `wrapFish` package is a wrapper around Fish which can be used to create
Fish shells initialized with some plugins as well as completions, configuration
snippets and functions sourced from the given paths. This provides a convenient
way to test Fish plugins and scripts without having to alter the environment.
```nix
wrapFish {
pluginPkgs = with fishPlugins; [ pure foreign-env ];
completionDirs = [];
functionDirs = [];
confDirs = [ "/path/to/some/fish/init/dir/" ];
}
```

View File

@@ -1,45 +0,0 @@
# FUSE {#sec-fuse}
Some packages rely on
[FUSE](https://www.kernel.org/doc/html/latest/filesystems/fuse.html) to provide
support for additional filesystems not supported by the kernel.
In general, FUSE software are primarily developed for Linux but many of them can
also run on macOS. Nixpkgs supports FUSE packages on macOS, but it requires
[macFUSE](https://osxfuse.github.io) to be installed outside of Nix. macFUSE
currently isn't packaged in Nixpkgs mainly because it includes a kernel
extension, which isn't supported by Nix outside of NixOS.
If a package fails to run on macOS with an error message similar to the
following, it's a likely sign that you need to have macFUSE installed.
dyld: Library not loaded: /usr/local/lib/libfuse.2.dylib
Referenced from: /nix/store/w8bi72bssv0bnxhwfw3xr1mvn7myf37x-sshfs-fuse-2.10/bin/sshfs
Reason: image not found
[1] 92299 abort /nix/store/w8bi72bssv0bnxhwfw3xr1mvn7myf37x-sshfs-fuse-2.10/bin/sshfs
Package maintainers may often encounter the following error when building FUSE
packages on macOS:
checking for fuse.h... no
configure: error: No fuse.h found.
This happens on autoconf based projects that use `AC_CHECK_HEADERS` or
`AC_CHECK_LIBS` to detect libfuse, and will occur even when the `fuse` package
is included in `buildInputs`. It happens because libfuse headers throw an error
on macOS if the `FUSE_USE_VERSION` macro is undefined. Many projects do define
`FUSE_USE_VERSION`, but only inside C source files. This results in the above
error at configure time because the configure script would attempt to compile
sample FUSE programs without defining `FUSE_USE_VERSION`.
There are two possible solutions for this problem in Nixpkgs:
1. Pass `FUSE_USE_VERSION` to the configure script by adding
`CFLAGS=-DFUSE_USE_VERSION=25` in `configureFlags`. The actual value would
have to match the definition used in the upstream source code.
2. Remove `AC_CHECK_HEADERS` / `AC_CHECK_LIBS` for libfuse.
However, a better solution might be to fix the build script upstream to use
`PKG_CHECK_MODULES` instead. This approach wouldn't suffer from the problem that
`AC_CHECK_HEADERS`/`AC_CHECK_LIBS` has at the price of introducing a dependency
on pkg-config.

View File

@@ -1,38 +0,0 @@
# ibus-engines.typing-booster {#sec-ibus-typing-booster}
This package is an ibus-based completion method to speed up typing.
## Activating the engine {#sec-ibus-typing-booster-activate}
IBus needs to be configured accordingly to activate `typing-booster`. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the [upstream docs](https://mike-fabian.github.io/ibus-typing-booster/).
On NixOS, you need to explicitly enable `ibus` with given engines before customizing your desktop to use `typing-booster`. This can be achieved using the `ibus` module:
```nix
{ pkgs, ... }: {
i18n.inputMethod = {
enabled = "ibus";
ibus.engines = with pkgs.ibus-engines; [ typing-booster ];
};
}
```
## Using custom hunspell dictionaries {#sec-ibus-typing-booster-customize-hunspell}
The IBus engine is based on `hunspell` to support completion in many languages. By default, the dictionaries `de-de`, `en-us`, `fr-moderne` `es-es`, `it-it`, `sv-se` and `sv-fi` are in use. To add another dictionary, the package can be overridden like this:
```nix
ibus-engines.typing-booster.override { langs = [ "de-at" "en-gb" ]; }
```
_Note: each language passed to `langs` must be an attribute name in `pkgs.hunspellDicts`._
## Built-in emoji picker {#sec-ibus-typing-booster-emoji-picker}
The `ibus-engines.typing-booster` package contains a program named `emoji-picker`. To display all emojis correctly, a special font such as `noto-fonts-emoji` is needed:
On NixOS, it can be installed using the following expression:
```nix
{ pkgs, ... }: { fonts.fonts = with pkgs; [ noto-fonts-emoji ]; }
```

View File

@@ -1,29 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-packages">
<title>Packages</title>
<para>
This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org.
</para>
<xi:include href="citrix.section.xml" />
<xi:include href="dlib.section.xml" />
<xi:include href="eclipse.section.xml" />
<xi:include href="elm.section.xml" />
<xi:include href="emacs.section.xml" />
<xi:include href="firefox.section.xml" />
<xi:include href="fish.section.xml" />
<xi:include href="fuse.section.xml" />
<xi:include href="ibus.section.xml" />
<xi:include href="kakoune.section.xml" />
<xi:include href="linux.section.xml" />
<xi:include href="locales.section.xml" />
<xi:include href="etc-files.section.xml" />
<xi:include href="nginx.section.xml" />
<xi:include href="opengl.section.xml" />
<xi:include href="shell-helpers.section.xml" />
<xi:include href="steam.section.xml" />
<xi:include href="cataclysm-dda.section.xml" />
<xi:include href="urxvt.section.xml" />
<xi:include href="weechat.section.xml" />
<xi:include href="xorg.section.xml" />
</chapter>

View File

@@ -1,9 +0,0 @@
# Kakoune {#sec-kakoune}
Kakoune can be built to autoload plugins:
```nix
(kakoune.override {
plugins = with pkgs.kakounePlugins; [ parinfer-rust ];
})
```

View File

@@ -1,41 +0,0 @@
# Linux kernel {#sec-linux-kernel}
The Nix expressions to build the Linux kernel are in [`pkgs/os-specific/linux/kernel`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel).
The function that builds the kernel has an argument `kernelPatches` which should be a list of `{name, patch, extraConfig}` attribute sets, where `name` is the name of the patch (which is included in the kernels `meta.description` attribute), `patch` is the patch itself (possibly compressed), and `extraConfig` (optional) is a string specifying extra options to be concatenated to the kernel configuration file (`.config`).
The kernel derivation exports an attribute `features` specifying whether optional functionality is or isnt enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the `iwlwifi` feature (i.e., has built-in support for Intel wireless chipsets), then NixOS doesnt have to build the external `iwlwifi` package:
```nix
modulesTree = [kernel]
++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi
++ ...;
```
How to add a new (major) version of the Linux kernel to Nixpkgs:
1. Copy the old Nix expression (e.g., `linux-2.6.21.nix`) to the new one (e.g., `linux-2.6.22.nix`) and update it.
2. Add the new kernel to the `kernels` attribute set in `linux-kernels.nix` (e.g., create an attribute `kernel_2_6_22`).
3. Now were going to update the kernel configuration. First unpack the kernel. Then for each supported platform (`i686`, `x86_64`, `uml`) do the following:
1. Make a copy from the old config (e.g., `config-2.6.21-i686-smp`) to the new one (e.g., `config-2.6.22-i686-smp`).
2. Copy the config file for this platform (e.g., `config-2.6.22-i686-smp`) to `.config` in the kernel source tree.
3. Run `make oldconfig ARCH={i386,x86_64,um}` and answer all questions. (For the uml configuration, also add `SHELL=bash`.) Make sure to keep the configuration consistent between platforms (i.e., dont enable some feature on `i686` and disable it on `x86_64`).
4. If needed, you can also run `make menuconfig`:
```ShellSession
$ nix-env -f "<nixpkgs>" -iA ncurses
$ export NIX_CFLAGS_LINK=-lncurses
$ make menuconfig ARCH=arch
```
5. Copy `.config` over the new config file (e.g., `config-2.6.22-i686-smp`).
4. Test building the kernel: `nix-build -A linuxKernel.kernels.kernel_2_6_22`. If it compiles, ship it! For extra credit, try booting NixOS with it.
5. It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the `linuxPackagesFor` function in `linux-kernels.nix` (such as the NVIDIA drivers, AUFS, etc.). If the updated packages arent backwards compatible with older kernels, you may need to keep the older versions around.

View File

@@ -1,5 +0,0 @@
# Locales {#locales}
To allow simultaneous use of packages linked against different versions of `glibc` with different locale archive formats, Nixpkgs patches `glibc` to rely on `LOCALE_ARCHIVE` environment variable.
On non-NixOS distributions, this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the `LOCALE_ARCHIVE` variable pointing to `${glibcLocales}/lib/locale/locale-archive`. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters `allLocales` and `locales` of the package.

View File

@@ -1,11 +0,0 @@
# Nginx {#sec-nginx}
[Nginx](https://nginx.org) is a reverse proxy and lightweight webserver.
## ETags on static files served from the Nix store {#sec-nginx-etag}
HTTP has a couple of different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the [`Last-Modified`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified) response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the `Last-Modified` header. This doesn't give the desired behavior when the file is in the Nix store because all file timestamps are set to 0 (for reasons related to build reproducibility).
Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the [`ETag`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) response header. The value of the `ETag` header specifies some identifier for the particular content that the server is sending (e.g., a hash). When a client makes a second request for the same resource, it sends that value back in an `If-None-Match` header. If the ETag value is unchanged, then the server does not need to resend the content.
As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of `/nix/store`, the hash in the store path is used as the `ETag` header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior.

View File

@@ -1,15 +0,0 @@
# OpenGL {#sec-opengl}
OpenGL support varies depending on which hardware is used and which drivers are available and loaded.
Broadly, we support both GL vendors: Mesa and NVIDIA.
## NixOS Desktop {#nixos-desktop}
The NixOS desktop or other non-headless configurations are the primary target for OpenGL libraries and applications. The current solution for discovering which drivers are available is based on [libglvnd](https://gitlab.freedesktop.org/glvnd/libglvnd). `libglvnd` performs "vendor-neutral dispatch", trying a variety of techniques to find the system's GL implementation. In practice, this will be either via standard GLX for X11 users or EGL for Wayland users, and supporting either NVIDIA or Mesa extensions.
## Nix on GNU/Linux {#nix-on-gnulinux}
If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of `libglvnd` and `mesa.drivers` in `LD_LIBRARY_PATH`. For Mesa drivers, the Linux kernel version doesn't have to match nixpkgs.
For proprietary video drivers, you might have luck with also adding the corresponding video driver package.

View File

@@ -1,12 +0,0 @@
# Interactive shell helpers {#sec-shell-helpers}
Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard `share` directory location. This is why a bunch `PACKAGE-share` scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following:
- `fzf` : `fzf-share`
E.g. `fzf` can then be used in the `.bashrc` like this:
```bash
source "$(fzf-share)/completion.bash"
source "$(fzf-share)/key-bindings.bash"
```

View File

@@ -1,63 +0,0 @@
# Steam {#sec-steam}
## Steam in Nix {#sec-steam-nix}
Steam is distributed as a `.deb` file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called `steam` that in Ubuntu (their target distro) would go to `/usr/bin`. When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in `$HOME`.
Nix problems and constraints:
- We don't have `/bin/bash` and many scripts point there. Same thing for `/usr/bin/python`.
- We don't have the dynamic loader in `/lib`.
- The `steam.sh` script in `$HOME` cannot be patched, as it is checked and rewritten by steam.
- The steam binary cannot be patched, it's also checked.
The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented [here](http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html). This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment.
## How to play {#sec-steam-play}
Use `programs.steam.enable = true;` if you want to add steam to `systemPackages` and also enable a few workarounds as well as Steam controller support or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro Controller.
## Troubleshooting {#sec-steam-troub}
- **Steam fails to start. What do I do?**
Try to run
```ShellSession
strace steam
```
to see what is causing steam to fail.
- **Using the FOSS Radeon or nouveau (nvidia) drivers**
- The `newStdcpp` parameter was removed since NixOS 17.09 and should not be needed anymore.
- Steam ships statically linked with a version of `libcrypto` that conflicts with the one dynamically loaded by radeonsi_dri.so. If you get the error:
```
steam.sh: line 713: 7842 Segmentation fault (core dumped)
```
have a look at [this pull request](https://github.com/NixOS/nixpkgs/pull/20269).
- **Java**
1. There is no java in steam chrootenv by default. If you get a message like:
```
/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found
```
you need to add:
```nix
steam.override { withJava = true; };
```
## steam-run {#sec-steam-run}
The FHS-compatible chroot used for Steam can also be used to run other Linux games that expect a FHS environment. To use it, install the `steam-run` package and run the game with:
```
steam-run ./foo
```

View File

@@ -1,71 +0,0 @@
# Urxvt {#sec-urxvt}
Urxvt, also known as rxvt-unicode, is a highly customizable terminal emulator.
## Configuring urxvt {#sec-urxvt-conf}
In `nixpkgs`, urxvt is provided by the package `rxvt-unicode`. It can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, use an overlay or directly install an expression that overrides its configuration, such as:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = with availablePlugins; [ perls resize-font vtwheel ];
};
}
```
If the `configure` function returns an attrset without the `plugins` attribute, `availablePlugins` will be used automatically.
In order to add plugins but also keep all default plugins installed, it is possible to use the following method:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = (builtins.attrValues availablePlugins) ++ [ custom-plugin ];
};
}
```
To get a list of all the plugins available, open the Nix REPL and run
```ShellSession
$ nix repl
:l <nixpkgs>
map (p: p.name) pkgs.rxvt-unicode.plugins
```
Alternatively, if your shell is bash or zsh and have completion enabled, simply type `nixpkgs.rxvt-unicode.plugins.<tab>`.
In addition to `plugins` the options `extraDeps` and `perlDeps` can be used to install extra packages. `extraDeps` can be used, for example, to provide `xsel` (a clipboard manager) to the clipboard plugin, without installing it globally:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
pluginsDeps = [ xsel ];
};
}
```
`perlDeps` is a handy way to provide Perl packages to your custom plugins (in `$HOME/.urxvt/ext`). For example, if you need `AnyEvent` you can do:
```nix
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
perlDeps = with perlPackages; [ AnyEvent ];
};
}
```
## Packaging urxvt plugins {#sec-urxvt-pkg}
Urxvt plugins resides in `pkgs/applications/misc/rxvt-unicode-plugins`. To add a new plugin, create an expression in a subdirectory and add the package to the set in `pkgs/applications/misc/rxvt-unicode-plugins/default.nix`.
A plugin can be any kind of derivation, the only requirement is that it should always install perl scripts in `$out/lib/urxvt/perl`. Look for existing plugins for examples.
If the plugin is itself a Perl package that needs to be imported from other plugins or scripts, add the following passthrough:
```nix
passthru.perlPackages = [ "self" ];
```
This will make the urxvt wrapper pick up the dependency and set up the Perl path accordingly.

View File

@@ -1,85 +0,0 @@
# WeeChat {#sec-weechat}
WeeChat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration, such as:
```nix
weechat.override {configure = {availablePlugins, ...}: {
plugins = with availablePlugins; [ python perl ];
}
}
```
If the `configure` function returns an attrset without the `plugins` attribute, `availablePlugins` will be used automatically.
The plugins currently available are `python`, `perl`, `ruby`, `guile`, `tcl` and `lua`.
The Python and Perl plugins allows the addition of extra libraries. For instance, the `inotify.py` script in `weechat-scripts` requires D-Bus or libnotify, and the `fish.py` script requires `pycrypto`. To use these scripts, use the plugin's `withPackages` attribute:
```nix
weechat.override { configure = {availablePlugins, ...}: {
plugins = with availablePlugins; [
(python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
];
};
}
```
In order to also keep all default plugins installed, it is possible to use the following method:
```nix
weechat.override { configure = { availablePlugins, ... }: {
plugins = builtins.attrValues (availablePlugins // {
python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
});
}; }
```
WeeChat allows to set defaults on startup using the `--run-command`. The `configure` method can be used to pass commands to the program:
```nix
weechat.override {
configure = { availablePlugins, ... }: {
init = ''
/set foo bar
/server add libera irc.libera.chat
'';
};
}
```
Further values can be added to the list of commands when running `weechat --run-command "your-commands"`.
Additionally, it's possible to specify scripts to be loaded when starting `weechat`. These will be loaded before the commands from `init`:
```nix
weechat.override {
configure = { availablePlugins, ... }: {
scripts = with pkgs.weechatScripts; [
weechat-xmpp weechat-matrix-bridge wee-slack
];
init = ''
/set plugins.var.python.jabber.key "val"
'':
};
}
```
In `nixpkgs` there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a `passthru.scripts` attribute, which contains a list of all scripts inside the store path. Furthermore, all scripts have to live in `$out/share`. An exemplary derivation looks like this:
```nix
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "exemplary-weechat-script";
src = fetchurl {
url = "https://scripts.tld/your-scripts.tar.gz";
hash = "...";
};
passthru.scripts = [ "foo.py" "bar.lua" ];
installPhase = ''
mkdir $out/share
cp foo.py $out/share
cp bar.lua $out/share
'';
}
```

View File

@@ -1,34 +0,0 @@
# X.org {#sec-xorg}
The Nix expressions for the X.org packages reside in `pkgs/servers/x11/xorg/default.nix`. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file `pkgs/servers/x11/xorg/overrides.nix`, in which you can override or add to the derivations produced by the generator.
## Katamari Tarballs {#katamari-tarballs}
X.org upstream releases used to include [katamari](https://en.wiktionary.org/wiki/%E3%81%8B%E3%81%9F%E3%81%BE%E3%82%8A) releases, which included a holistic recommended version for each tarball, up until 7.7. To create a list of tarballs in a katamari release:
```ShellSession
export release="X11R7.7"
export url="mirror://xorg/$release/src/everything/"
cat $(PRINT_PATH=1 nix-prefetch-url $url | tail -n 1) \
| perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'url'}$2\n"; }; }' \
| sort > "tarballs-$release.list"
```
## Individual Tarballs {#individual-tarballs}
The upstream release process for [X11R7.8](https://x.org/wiki/Releases/7.8/) does not include a planned katamari. Instead, each component of X.org is released as its own tarball. We maintain `pkgs/servers/x11/xorg/tarballs.list` as a list of tarballs for each individual package. This list includes X.org core libraries and protocol descriptions, extra newer X11 interface libraries, like `xorg.libxcb`, and classic utilities which are largely unused but still available if needed, like `xorg.imake`.
## Generating Nix Expressions {#generating-nix-expressions}
The generator is invoked as follows:
```ShellSession
cd pkgs/servers/x11/xorg
<tarballs.list perl ./generate-expr-from-tarballs.pl
```
For each of the tarballs in the `.list` files, the script downloads it, unpacks it, and searches its `configure.ac` and `*.pc.in` files for dependencies. This information is used to generate `default.nix`. The generator caches downloaded tarballs between runs. Pay close attention to the `NOT FOUND: $NAME` messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.)
## Overriding the Generator {#overriding-the-generator}
If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, `patches` or a `postInstall` hook), you should modify `pkgs/servers/x11/xorg/overrides.nix`.

View File

@@ -1,13 +0,0 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="chap-special">
<title>Special builders</title>
<para>
This chapter describes several special builders.
</para>
<xi:include href="special/fhs-environments.section.xml" />
<xi:include href="special/makesetuphook.section.xml" />
<xi:include href="special/mkshell.section.xml" />
<xi:include href="special/darwin-builder.section.xml" />
<xi:include href="special/vm-tools.section.xml" />
</chapter>

View File

@@ -1,149 +0,0 @@
# darwin.builder {#sec-darwin-builder}
`darwin.builder` provides a way to bootstrap a Linux builder on a macOS machine.
This requires macOS version 12.4 or later.
This also requires that port 22 on your machine is free (since Nix does not
permit specifying a non-default SSH port for builders).
You will also need to be a trusted user for your Nix installation. In other
words, your `/etc/nix/nix.conf` should have something like:
```
extra-trusted-users = <your username goes here>
```
To launch the builder, run the following flake:
```ShellSession
$ nix run nixpkgs#darwin.builder
```
That will prompt you to enter your `sudo` password:
```
+ sudo --reset-timestamp /nix/store/…-install-credentials.sh ./keys
Password:
```
… so that it can install a private key used to `ssh` into the build server.
After that the script will launch the virtual machine and automatically log you
in as the `builder` user:
```
<<< Welcome to NixOS 22.11.20220901.1bd8d11 (aarch64) - ttyAMA0 >>>
Run 'nixos-help' for the NixOS manual.
nixos login: builder (automatic login)
[builder@nixos:~]$
```
> Note: When you need to stop the VM, run `shutdown now` as the `builder` user.
To delegate builds to the remote builder, add the following options to your
`nix.conf` file:
```
# - Replace ${ARCH} with either aarch64 or x86_64 to match your host machine
# - Replace ${MAX_JOBS} with the maximum number of builds (pick 4 if you're not sure)
builders = ssh-ng://builder@localhost ${ARCH}-linux /etc/nix/builder_ed25519 ${MAX_JOBS} - - - c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo=
# Not strictly necessary, but this will reduce your disk utilization
builders-use-substitutes = true
```
… and then restart your Nix daemon to apply the change:
```ShellSession
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
```
## Example flake usage
```
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, darwin, nixpkgs, ... }@inputs:
let
inherit (darwin.lib) darwinSystem;
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages."${system}";
linuxSystem = builtins.replaceStrings [ "darwin" ] [ "linux" ] system;
darwin-builder = nixpkgs.lib.nixosSystem {
system = linuxSystem;
modules = [
"${nixpkgs}/nixos/modules/profiles/macos-builder.nix"
{ virtualisation.host.pkgs = pkgs; }
];
};
in {
darwinConfigurations = {
machine1 = darwinSystem {
inherit system;
modules = [
{
nix.distributedBuilds = true;
nix.buildMachines = [{
hostName = "ssh://builder@localhost";
system = linuxSystem;
maxJobs = 4;
supportedFeatures = [ "kvm" "benchmark" "big-parallel" ];
}];
launchd.daemons.darwin-builder = {
command = "${darwin-builder.config.system.build.macos-builder-installer}/bin/create-builder";
serviceConfig = {
KeepAlive = true;
RunAtLoad = true;
StandardOutPath = "/var/log/darwin-builder.log";
StandardErrorPath = "/var/log/darwin-builder.log";
};
};
}
];
};
};
};
}
```
## Reconfiguring the builder
Initially you should not change the builder configuration else you will not be
able to use the binary cache. However, after you have the builder running locally
you may use it to build a modified builder with additional storage or memory.
To do this, you just need to set the `virtualisation.darwin-builder.*` parameters as
in the example below and rebuild.
```
darwin-builder = nixpkgs.lib.nixosSystem {
system = linuxSystem;
modules = [
"${nixpkgs}/nixos/modules/profiles/macos-builder.nix"
{
virtualisation.host.pkgs = pkgs;
virtualisation.darwin-builder.diskSize = 5120;
virtualisation.darwin-builder.memorySize = 1024;
virtualisation.darwin-builder.hostPort = 33022;
virtualisation.darwin-builder.workingDirectory = "/var/lib/darwin-builder";
}
];
```
You may make any other changes to your VM in this attribute set. For example,
you could enable Docker or X11 forwarding to your Darwin host.

View File

@@ -1,49 +0,0 @@
# buildFHSEnv {#sec-fhs-environments}
`buildFHSEnv` provides a way to build and run FHS-compatible lightweight sandboxes. It creates an isolated root with bound `/nix/store`, so its footprint in terms of disk space needed is quite small. This allows one to run software which is hard or unfeasible to patch for NixOS -- 3rd-party source trees with FHS assumptions, games distributed as tarballs, software with integrity checking and/or external self-updated binaries. It uses Linux namespaces feature to create temporary lightweight environments which are destroyed after all child processes exit, without root user rights requirement. Accepted arguments are:
- `name`
Environment name.
- `targetPkgs`
Packages to be installed for the main host's architecture (i.e. x86_64 on x86_64 installations). Along with libraries binaries are also installed.
- `multiPkgs`
Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default.
- `extraBuildCommands`
Additional commands to be executed for finalizing the directory structure.
- `extraBuildCommandsMulti`
Like `extraBuildCommands`, but executed only on multilib architectures.
- `extraOutputsToInstall`
Additional derivation outputs to be linked for both target and multi-architecture packages.
- `extraInstallCommands`
Additional commands to be executed for finalizing the derivation with runner script.
- `runScript`
A command that would be executed inside the sandbox and passed all the command line arguments. It defaults to `bash`.
- `profile`
Optional script for `/etc/profile` within the sandbox.
One can create a simple environment using a `shell.nix` like that:
```nix
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSEnv {
name = "simple-x11-env";
targetPkgs = pkgs: (with pkgs;
[ udev
alsa-lib
]) ++ (with pkgs.xorg;
[ libX11
libXcursor
libXrandr
]);
multiPkgs = pkgs: (with pkgs;
[ udev
alsa-lib
]);
runScript = "bash";
}).env
```
Running `nix-shell` would then drop you into a shell with these libraries and binaries available. You can use this to run closed-source applications which expect FHS structure without hassles: simply change `runScript` to the application path, e.g. `./bin/start.sh` -- relative paths are supported.
Additionally, the FHS builder links all relocated gsettings-schemas (the glib setup-hook moves them to `share/gsettings-schemas/${name}/glib-2.0/schemas`) to their standard FHS location. This means you don't need to wrap binaries with `wrapGAppsHook`.

View File

@@ -1,37 +0,0 @@
# pkgs.makeSetupHook {#sec-pkgs.makeSetupHook}
`pkgs.makeSetupHook` is a builder that produces hooks that go in to `nativeBuildInputs`
## Usage {#sec-pkgs.makeSetupHook-usage}
```nix
pkgs.makeSetupHook {
name = "something-hook";
propagatedBuildInputs = [ pkgs.commandsomething ];
depsTargetTargetPropagated = [ pkgs.libsomething ];
} ./script.sh
```
#### setup hook that depends on the hello package and runs hello and @shell@ is substituted with path to bash {#sec-pkgs.makeSetupHook-usage-example}
```nix
pkgs.makeSetupHook {
name = "run-hello-hook";
propagatedBuildInputs = [ pkgs.hello ];
substitutions = { shell = "${pkgs.bash}/bin/bash"; };
passthru.tests.greeting = callPackage ./test { };
meta.platforms = lib.platforms.linux;
} (writeScript "run-hello-hook.sh" ''
#!@shell@
hello
'')
```
## Attributes {#sec-pkgs.makeSetupHook-attributes}
* `name` Set the name of the hook.
* `propagatedBuildInputs` Runtime dependencies (such as binaries) of the hook.
* `depsTargetTargetPropagated` Non-binary dependencies.
* `meta`
* `passthru`
* `substitutions` Variables for `substituteAll`

View File

@@ -1,37 +0,0 @@
# pkgs.mkShell {#sec-pkgs-mkShell}
`pkgs.mkShell` is a specialized `stdenv.mkDerivation` that removes some
repetition when using it with `nix-shell` (or `nix develop`).
## Usage {#sec-pkgs-mkShell-usage}
Here is a common usage example:
```nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = [ pkgs.gnumake ];
inputsFrom = [ pkgs.hello pkgs.gnutar ];
shellHook = ''
export DEBUG=1
'';
}
```
## Attributes {#sec-pkgs-mkShell-attributes}
* `name` (default: `nix-shell`). Set the name of the derivation.
* `packages` (default: `[]`). Add executable packages to the `nix-shell` environment.
* `inputsFrom` (default: `[]`). Add build dependencies of the listed derivations to the `nix-shell` environment.
* `shellHook` (default: `""`). Bash statements that are executed by `nix-shell`.
... all the attributes of `stdenv.mkDerivation`.
## Building the shell {#sec-pkgs-mkShell-building}
This derivation output will contain a text file that contains a reference to
all the build inputs. This is useful in CI where we want to make sure that
every derivation, and its dependencies, build properly. Or when creating a GC
root so that the build dependencies don't get garbage-collected.

View File

@@ -1,148 +0,0 @@
# vmTools {#sec-vm-tools}
A set of VM related utilities, that help in building some packages in more advanced scenarios.
## `vmTools.createEmptyImage` {#vm-tools-createEmptyImage}
A bash script fragment that produces a disk image at `destination`.
### Attributes
* `size`. The disk size, in MiB.
* `fullName`. Name that will be written to `${destination}/nix-support/full-name`.
* `destination` (optional, default `$out`). Where to write the image files.
## `vmTools.runInLinuxVM` {#vm-tools-runInLinuxVM}
Run a derivation in a Linux virtual machine (using Qemu/KVM).
By default, there is no disk image; the root filesystem is a `tmpfs`, and the Nix store is shared with the host (via the [9P protocol](https://wiki.qemu.org/Documentation/9p#9p_Protocol)).
Thus, any pure Nix derivation should run unmodified.
If the build fails and Nix is run with the `-K/--keep-failed` option, a script `run-vm` will be left behind in the temporary build directory that allows you to boot into the VM and debug it interactively.
### Attributes
* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).
* `memSize` (optional, default `512`). The memory size of the VM in MiB.
* `diskImage` (optional). A file system image to be attached to `/dev/sda`.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
### Examples
Build the derivation hello inside a VM:
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM hello
```
Build inside a VM with extra memory:
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM (hello.overrideAttrs (_: { memSize = 1024; }))
```
Use VM with a disk image (implicitly sets `diskImage`, see [`vmTools.createEmptyImage`](#vm-tools-createEmptyImage)):
```nix
{ pkgs }: with pkgs; with vmTools;
runInLinuxVM (hello.overrideAttrs (_: {
preVM = createEmptyImage {
size = 1024;
fullName = "vm-image";
};
}))
```
## `vmTools.extractFs` {#vm-tools-extractFs}
Takes a file, such as an ISO, and extracts its contents into the store.
### Attributes
* `file`. Path to the file to be extracted.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
* `fs` (optional). Filesystem of the contents of the file.
### Examples
Extract the contents of an ISO file:
```nix
{ pkgs }: with pkgs; with vmTools;
extractFs { file = ./image.iso; }
```
## `vmTools.extractMTDfs` {#vm-tools-extractMTDfs}
Like [](#vm-tools-extractFs), but it makes use of a [Memory Technology Device (MTD)](https://en.wikipedia.org/wiki/Memory_Technology_Device).
## `vmTools.runInLinuxImage` {#vm-tools-runInLinuxImage}
Like [](#vm-tools-runInLinuxVM), but instead of using `stdenv` from the Nix store, run the build using the tools provided by `/bin`, `/usr/bin`, etc. from the specified filesystem image, which typically is a filesystem containing a [FHS](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)-based Linux distribution.
## `vmTools.makeImageTestScript` {#vm-tools-makeImageTestScript}
Generate a script that can be used to run an interactive session in the given image.
### Examples
Create a script for running a Fedora 27 VM:
```nix
{ pkgs }: with pkgs; with vmTools;
makeImageTestScript diskImages.fedora27x86_64
```
Create a script for running an Ubuntu 20.04 VM:
```nix
{ pkgs }: with pkgs; with vmTools;
makeImageTestScript diskImages.ubuntu2004x86_64
```
## `vmTools.diskImageFuns` {#vm-tools-diskImageFuns}
A set of functions that build a predefined set of minimal Linux distributions images.
### Images
* Fedora
* `fedora26x86_64`
* `fedora27x86_64`
* CentOS
* `centos6i386`
* `centos6x86_64`
* `centos7x86_64`
* Ubuntu
* `ubuntu1404i386`
* `ubuntu1404x86_64`
* `ubuntu1604i386`
* `ubuntu1604x86_64`
* `ubuntu1804i386`
* `ubuntu1804x86_64`
* `ubuntu2004i386`
* `ubuntu2004x86_64`
* `ubuntu2204i386`
* `ubuntu2204x86_64`
* Debian
* `debian10i386`
* `debian10x86_64`
* `debian11i386`
* `debian11x86_64`
### Attributes
* `size` (optional, defaults to `4096`). The size of the image, in MiB.
* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image.
### Examples
8GiB image containing Firefox in addition to the default packages:
```nix
{ pkgs }: with pkgs; with vmTools;
diskImageFuns.ubuntu2004x86_64 { extraPackages = [ "firefox" ]; size = 8192; }
```
## `vmTools.diskImageExtraFuns` {#vm-tools-diskImageExtraFuns}
Shorthand for `vmTools.diskImageFuns.<attr> { extraPackages = ... }`.
## `vmTools.diskImages` {#vm-tools-diskImages}
Shorthand for `vmTools.diskImageFuns.<attr> { }`.

View File

@@ -1,211 +0,0 @@
# Testers {#chap-testers}
This chapter describes several testing builders which are available in the <literal>testers</literal> namespace.
## `hasPkgConfigModule` {#tester-hasPkgConfigModule}
Checks whether a package exposes a certain `pkg-config` module.
Example:
```nix
passthru.tests.pkg-config = testers.hasPkgConfigModule {
package = finalAttrs.finalPackage;
moduleName = "libfoo";
}
```
## `testVersion` {#tester-testVersion}
Checks the command output contains the specified version
Although simplistic, this test assures that the main program
can run. While there's no substitute for a real test case,
it does catch dynamic linking errors and such. It also provides
some protection against accidentally building the wrong version,
for example when using an 'old' hash in a fixed-output derivation.
Examples:
```nix
passthru.tests.version = testers.testVersion { package = hello; };
passthru.tests.version = testers.testVersion {
package = seaweedfs;
command = "weed version";
};
passthru.tests.version = testers.testVersion {
package = key;
command = "KeY --help";
# Wrong '2.5' version in the code. Drop on next version.
version = "2.5";
};
passthru.tests.version = testers.testVersion {
package = ghr;
# The output needs to contain the 'version' string without any prefix or suffix.
version = "v${version}";
};
```
## `testBuildFailure` {#tester-testBuildFailure}
Make sure that a build does not succeed. This is useful for testing testers.
This returns a derivation with an override on the builder, with the following effects:
- Fail the build when the original builder succeeds
- Move `$out` to `$out/result`, if it exists (assuming `out` is the default output)
- Save the build log to `$out/testBuildFailure.log` (same)
Example:
```nix
runCommand "example" {
failed = testers.testBuildFailure (runCommand "fail" {} ''
echo ok-ish >$out
echo failing though
exit 3
'');
} ''
grep -F 'ok-ish' $failed/result
grep -F 'failing though' $failed/testBuildFailure.log
[[ 3 = $(cat $failed/testBuildFailure.exit) ]]
touch $out
'';
```
While `testBuildFailure` is designed to keep changes to the original builder's
environment to a minimum, some small changes are inevitable.
- The file `$TMPDIR/testBuildFailure.log` is present. It should not be deleted.
- `stdout` and `stderr` are a pipe instead of a tty. This could be improved.
- One or two extra processes are present in the sandbox during the original
builder's execution.
- The derivation and output hashes are different, but not unusual.
- The derivation includes a dependency on `buildPackages.bash` and
`expect-failure.sh`, which is built to include a transitive dependency on
`buildPackages.coreutils` and possibly more. These are not added to `PATH`
or any other environment variable, so they should be hard to observe.
## `testEqualContents` {#tester-equalContents}
Check that two paths have the same contents.
Example:
```nix
testers.testEqualContents {
assertion = "sed -e performs replacement";
expected = writeText "expected" ''
foo baz baz
'';
actual = runCommand "actual" {
# not really necessary for a package that's in stdenv
nativeBuildInputs = [ gnused ];
base = writeText "base" ''
foo bar baz
'';
} ''
sed -e 's/bar/baz/g' $base >$out
'';
}
```
## `testEqualDerivation` {#tester-testEqualDerivation}
Checks that two packages produce the exact same build instructions.
This can be used to make sure that a certain difference of configuration,
such as the presence of an overlay does not cause a cache miss.
When the derivations are equal, the return value is an empty file.
Otherwise, the build log explains the difference via `nix-diff`.
Example:
```nix
testers.testEqualDerivation
"The hello package must stay the same when enabling checks."
hello
(hello.overrideAttrs(o: { doCheck = true; }))
```
## `invalidateFetcherByDrvHash` {#tester-invalidateFetcherByDrvHash}
Use the derivation hash to invalidate the output via name, for testing.
Type: `(a@{ name, ... } -> Derivation) -> a -> Derivation`
Normally, fixed output derivations can and should be cached by their output
hash only, but for testing we want to re-fetch everytime the fetcher changes.
Changes to the fetcher become apparent in the drvPath, which is a hash of
how to fetch, rather than a fixed store path.
By inserting this hash into the name, we can make sure to re-run the fetcher
every time the fetcher changes.
This relies on the assumption that Nix isn't clever enough to reuse its
database of local store contents to optimize fetching.
You might notice that the "salted" name derives from the normal invocation,
not the final derivation. `invalidateFetcherByDrvHash` has to invoke the fetcher
function twice: once to get a derivation hash, and again to produce the final
fixed output derivation.
Example:
```nix
tests.fetchgit = testers.invalidateFetcherByDrvHash fetchgit {
name = "nix-source";
url = "https://github.com/NixOS/nix";
rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
hash = "sha256-7DszvbCNTjpzGRmpIVAWXk20P0/XTrWZ79KSOGLrUWY=";
};
```
## `nixosTest` {#tester-nixosTest}
Run a NixOS VM network test using this evaluation of Nixpkgs.
NOTE: This function is primarily for external use. NixOS itself uses `make-test-python.nix` directly. Packages defined in Nixpkgs [reuse NixOS tests via `nixosTests`, plural](#ssec-nixos-tests-linking).
It is mostly equivalent to the function `import ./make-test-python.nix` from the
[NixOS manual](https://nixos.org/nixos/manual/index.html#sec-nixos-tests),
except that the current application of Nixpkgs (`pkgs`) will be used, instead of
letting NixOS invoke Nixpkgs anew.
If a test machine needs to set NixOS options under `nixpkgs`, it must set only the
`nixpkgs.pkgs` option.
### Parameter {#tester-nixosTest-parameter}
A [NixOS VM test network](https://nixos.org/nixos/manual/index.html#sec-nixos-tests), or path to it. Example:
```nix
{
name = "my-test";
nodes = {
machine1 = { lib, pkgs, nodes, ... }: {
environment.systemPackages = [ pkgs.hello ];
services.foo.enable = true;
};
# machine2 = ...;
};
testScript = ''
start_all()
machine1.wait_for_unit("foo.service")
machine1.succeed("hello | foo-send")
'';
}
```
### Result {#tester-nixosTest-result}
A derivation that runs the VM test.
Notable attributes:
* `nodes`: the evaluated NixOS configurations. Useful for debugging and exploring the configuration.
* `driverInteractive`: a script that launches an interactive Python session in the context of the `testScript`.

View File

@@ -1,223 +0,0 @@
# Trivial builders {#chap-trivial-builders}
Nixpkgs provides a couple of functions that help with building derivations. The most important one, `stdenv.mkDerivation`, has already been documented above. The following functions wrap `stdenv.mkDerivation`, making it easier to use in certain cases.
## `runCommand` {#trivial-builder-runCommand}
This takes three arguments, `name`, `env`, and `buildCommand`. `name` is just the name that Nix will append to the store path in the same way that `stdenv.mkDerivation` uses its `name` attribute. `env` is an attribute set specifying environment variables that will be set for this derivation. These attributes are then passed to the wrapped `stdenv.mkDerivation`. `buildCommand` specifies the commands that will be run to create this derivation. Note that you will need to create `$out` for Nix to register the command as successful.
An example of using `runCommand` is provided below.
```nix
(import <nixpkgs> {}).runCommand "my-example" {} ''
echo My example command is running
mkdir $out
echo I can write data to the Nix store > $out/message
echo I can also run basic commands like:
echo ls
ls
echo whoami
whoami
echo date
date
''
```
## `runCommandCC` {#trivial-builder-runCommandCC}
This works just like `runCommand`. The only difference is that it also provides a C compiler in `buildCommand`'s environment. To minimize your dependencies, you should only use this if you are sure you will need a C compiler as part of running your command.
## `runCommandLocal` {#trivial-builder-runCommandLocal}
Variant of `runCommand` that forces the derivation to be built locally, it is not substituted. This is intended for very cheap commands (<1s execution time). It saves on the network round-trip and can speed up a build.
::: {.note}
This sets [`allowSubstitutes` to `false`](https://nixos.org/nix/manual/#adv-attr-allowSubstitutes), so only use `runCommandLocal` if you are certain the user will always have a builder for the `system` of the derivation. This should be true for most trivial use cases (e.g., just copying some files to a different location or adding symlinks) because there the `system` is usually the same as `builtins.currentSystem`.
:::
## `writeTextFile`, `writeText`, `writeTextDir`, `writeScript`, `writeScriptBin` {#trivial-builder-writeText}
These functions write `text` to the Nix store. This is useful for creating scripts from Nix expressions. `writeTextFile` takes an attribute set and expects two arguments, `name` and `text`. `name` corresponds to the name used in the Nix store path. `text` will be the contents of the file. You can also set `executable` to true to make this file have the executable bit set.
Many more commands wrap `writeTextFile` including `writeText`, `writeTextDir`, `writeScript`, and `writeScriptBin`. These are convenience functions over `writeTextFile`.
Here are a few examples:
```nix
# Writes my-file to /nix/store/<store path>
writeTextFile {
name = "my-file";
text = ''
Contents of File
'';
}
# See also the `writeText` helper function below.
# Writes executable my-file to /nix/store/<store path>/bin/my-file
writeTextFile {
name = "my-file";
text = ''
Contents of File
'';
executable = true;
destination = "/bin/my-file";
}
# Writes contents of file to /nix/store/<store path>
writeText "my-file"
''
Contents of File
'';
# Writes contents of file to /nix/store/<store path>/share/my-file
writeTextDir "share/my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path> and makes executable
writeScript "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path>/bin/my-file and makes executable.
writeScriptBin "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path> and makes executable.
writeShellScript "my-file"
''
Contents of File
'';
# Writes my-file to /nix/store/<store path>/bin/my-file and makes executable.
writeShellScriptBin "my-file"
''
Contents of File
'';
```
## `concatTextFile`, `concatText`, `concatScript` {#trivial-builder-concatText}
These functions concatenate `files` to the Nix store in a single file. This is useful for configuration files structured in lines of text. `concatTextFile` takes an attribute set and expects two arguments, `name` and `files`. `name` corresponds to the name used in the Nix store path. `files` will be the files to be concatenated. You can also set `executable` to true to make this file have the executable bit set.
`concatText` and`concatScript` are simple wrappers over `concatTextFile`.
Here are a few examples:
```nix
# Writes my-file to /nix/store/<store path>
concatTextFile {
name = "my-file";
files = [ drv1 "${drv2}/path/to/file" ];
}
# See also the `concatText` helper function below.
# Writes executable my-file to /nix/store/<store path>/bin/my-file
concatTextFile {
name = "my-file";
files = [ drv1 "${drv2}/path/to/file" ];
executable = true;
destination = "/bin/my-file";
}
# Writes contents of files to /nix/store/<store path>
concatText "my-file" [ file1 file2 ]
# Writes contents of files to /nix/store/<store path>
concatScript "my-file" [ file1 file2 ]
```
## `writeShellApplication` {#trivial-builder-writeShellApplication}
This can be used to easily produce a shell script that has some dependencies (`runtimeInputs`). It automatically sets the `PATH` of the script to contain all of the listed inputs, sets some sanity shellopts (`errexit`, `nounset`, `pipefail`), and checks the resulting script with [`shellcheck`](https://github.com/koalaman/shellcheck).
For example, look at the following code:
```nix
writeShellApplication {
name = "show-nixos-org";
runtimeInputs = [ curl w3m ];
text = ''
curl -s 'https://nixos.org' | w3m -dump -T text/html
'';
}
```
Unlike with normal `writeShellScriptBin`, there is no need to manually write out `${curl}/bin/curl`, setting the PATH
was handled by `writeShellApplication`. Moreover, the script is being checked with `shellcheck` for more strict
validation.
## `symlinkJoin` {#trivial-builder-symlinkJoin}
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
Here is an example:
```nix
# adds symlinks of hello and stack to current build and prints "links added"
symlinkJoin { name = "myexample"; paths = [ pkgs.hello pkgs.stack ]; postBuild = "echo links added"; }
```
This creates a derivation with a directory structure like the following:
```
/nix/store/sglsr5g079a5235hy29da3mq3hv8sjmm-myexample
|-- bin
| |-- hello -> /nix/store/qy93dp4a3rqyn2mz63fbxjg228hffwyw-hello-2.10/bin/hello
| `-- stack -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/bin/stack
`-- share
|-- bash-completion
| `-- completions
| `-- stack -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/share/bash-completion/completions/stack
|-- fish
| `-- vendor_completions.d
| `-- stack.fish -> /nix/store/6lzdpxshx78281vy056lbk553ijsdr44-stack-2.1.3.1/share/fish/vendor_completions.d/stack.fish
...
```
## `writeReferencesToFile` {#trivial-builder-writeReferencesToFile}
Writes the closure of transitive dependencies to a file.
This produces the equivalent of `nix-store -q --requisites`.
For example,
```nix
writeReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
```
produces an output path `/nix/store/<hash>-runtime-deps` containing
```nix
/nix/store/<hash>-hello-2.10
/nix/store/<hash>-hi
/nix/store/<hash>-libidn2-2.3.0
/nix/store/<hash>-libunistring-0.9.10
/nix/store/<hash>-glibc-2.32-40
```
You can see that this includes `hi`, the original input path,
`hello`, which is a direct reference, but also
the other paths that are indirectly required to run `hello`.
## `writeDirectReferencesToFile` {#trivial-builder-writeDirectReferencesToFile}
Writes the set of references to the output file, that is, their immediate dependencies.
This produces the equivalent of `nix-store -q --references`.
For example,
```nix
writeDirectReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
```
produces an output path `/nix/store/<hash>-runtime-references` containing
```nix
/nix/store/<hash>-hello-2.10
```
but none of `hello`'s dependencies because those are not referenced directly
by `hi`'s output.

680
doc/coding-conventions.xml Normal file
View File

@@ -0,0 +1,680 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-conventions">
<title>Coding conventions</title>
<section xml:id="sec-syntax"><title>Syntax</title>
<itemizedlist>
<listitem><para>Use 2 spaces of indentation per indentation level in
Nix expressions, 4 spaces in shell scripts.</para></listitem>
<listitem><para>Do not use tab characters, i.e. configure your
editor to use soft tabs. For instance, use <literal>(setq-default
indent-tabs-mode nil)</literal> in Emacs. Everybody has different
tab settings so its asking for trouble.</para></listitem>
<listitem><para>Use <literal>lowerCamelCase</literal> for variable
names, not <literal>UpperCamelCase</literal>. TODO: naming of
attributes in
<filename>all-packages.nix</filename>?</para></listitem>
<listitem><para>Function calls with attribute set arguments are
written as
<programlisting>
foo {
arg = ...;
}
</programlisting>
not
<programlisting>
foo
{
arg = ...;
}
</programlisting>
Also fine is
<programlisting>
foo { arg = ...; }
</programlisting>
if it's a short call.</para></listitem>
<listitem><para>In attribute sets or lists that span multiple lines,
the attribute names or list elements should be aligned:
<programlisting>
# A long list.
list =
[ elem1
elem2
elem3
];
# A long attribute set.
attrs =
{ attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
# Alternatively:
attrs = {
attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
</programlisting>
</para></listitem>
<listitem><para>Short lists or attribute sets can be written on one
line:
<programlisting>
# A short list.
list = [ elem1 elem2 elem3 ];
# A short set.
attrs = { x = 1280; y = 1024; };
</programlisting>
</para></listitem>
<listitem><para>Breaking in the middle of a function argument can
give hard-to-read code, like
<programlisting>
someFunction { x = 1280;
y = 1024; } otherArg
yetAnotherArg
</programlisting>
(especially if the argument is very large, spanning multiple
lines).</para>
<para>Better:
<programlisting>
someFunction
{ x = 1280; y = 1024; }
otherArg
yetAnotherArg
</programlisting>
or
<programlisting>
let res = { x = 1280; y = 1024; };
in someFunction res otherArg yetAnotherArg
</programlisting>
</para></listitem>
<listitem><para>The bodies of functions, asserts, and withs are not
indented to prevent a lot of superfluous indentation levels, i.e.
<programlisting>
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
</programlisting>
not
<programlisting>
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
</programlisting>
</para></listitem>
<listitem><para>Function formal arguments are written as:
<programlisting>
{ arg1, arg2, arg3 }:
</programlisting>
but if they don't fit on one line they're written as:
<programlisting>
{ arg1, arg2, arg3
, arg4, ...
, # Some comment...
argN
}:
</programlisting>
</para></listitem>
<listitem><para>Functions should list their expected arguments as
precisely as possible. That is, write
<programlisting>
{ stdenv, fetchurl, perl }: <replaceable>...</replaceable>
</programlisting>
instead of
<programlisting>
args: with args; <replaceable>...</replaceable>
</programlisting>
or
<programlisting>
{ stdenv, fetchurl, perl, ... }: <replaceable>...</replaceable>
</programlisting>
</para>
<para>For functions that are truly generic in the number of
arguments (such as wrappers around <varname>mkDerivation</varname>)
that have some required arguments, you should write them using an
<literal>@</literal>-pattern:
<programlisting>
{ stdenv, doCoverageAnalysis ? false, ... } @ args:
stdenv.mkDerivation (args // {
<replaceable>...</replaceable> if doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
})
</programlisting>
instead of
<programlisting>
args:
args.stdenv.mkDerivation (args // {
<replaceable>...</replaceable> if args ? doCoverageAnalysis &amp;&amp; args.doCoverageAnalysis then "bla" else "" <replaceable>...</replaceable>
})
</programlisting>
</para></listitem>
</itemizedlist>
</section>
<section xml:id="sec-package-naming"><title>Package naming</title>
<para>In Nixpkgs, there are generally three different names associated with a package:
<itemizedlist>
<listitem><para>The <varname>name</varname> attribute of the
derivation (excluding the version part). This is what most users
see, in particular when using
<command>nix-env</command>.</para></listitem>
<listitem><para>The variable name used for the instantiated package
in <filename>all-packages.nix</filename>, and when passing it as a
dependency to other functions. This is what Nix expression authors
see. It can also be used when installing using <command>nix-env
-iA</command>.</para></listitem>
<listitem><para>The filename for (the directory containing) the Nix
expression.</para></listitem>
</itemizedlist>
Most of the time, these are the same. For instance, the package
<literal>e2fsprogs</literal> has a <varname>name</varname> attribute
<literal>"e2fsprogs-<replaceable>version</replaceable>"</literal>, is
bound to the variable name <varname>e2fsprogs</varname> in
<filename>all-packages.nix</filename>, and the Nix expression is in
<filename>pkgs/os-specific/linux/e2fsprogs/default.nix</filename>.
</para>
<para>There are a few naming guidelines:
<itemizedlist>
<listitem><para>Generally, try to stick to the upstream package
name.</para></listitem>
<listitem><para>Dont use uppercase letters in the
<literal>name</literal> attribute — e.g.,
<literal>"mplayer-1.0rc2"</literal> instead of
<literal>"MPlayer-1.0rc2"</literal>.</para></listitem>
<listitem><para>The version part of the <literal>name</literal>
attribute <emphasis>must</emphasis> start with a digit (following a
dash) — e.g., <literal>"hello-0.3.1rc2"</literal>.</para></listitem>
<listitem><para>If a package is not a release but a commit from a repository, then
the version part of the name <emphasis>must</emphasis> be the date of that
(fetched) commit. The date must be in <literal>"YYYY-MM-DD"</literal> format.
Also append <literal>"unstable"</literal> to the name - e.g.,
<literal>"pkgname-unstable-2014-09-23"</literal>.</para></listitem>
<listitem><para>Dashes in the package name should be preserved
in new variable names, rather than converted to underscores
(which was convention up to around 2013 and most names
still have underscores instead of dashes) — e.g.,
<varname>http-parser</varname> instead of
<varname>http_parser</varname>.</para></listitem>
<listitem><para>If there are multiple versions of a package, this
should be reflected in the variable names in
<filename>all-packages.nix</filename>,
e.g. <varname>json-c-0-9</varname> and <varname>json-c-0-11</varname>.
If there is an obvious “default” version, make an attribute like
<literal>json-c = json-c-0-9;</literal>.
See also <xref linkend="sec-versioning" /></para></listitem>
</itemizedlist>
</para>
</section>
<section xml:id="sec-organisation"><title>File naming and organisation</title>
<para>Names of files and directories should be in lowercase, with
dashes between words — not in camel case. For instance, it should be
<filename>all-packages.nix</filename>, not
<filename>allPackages.nix</filename> or
<filename>AllPackages.nix</filename>.</para>
<section xml:id="sec-hierarchy"><title>Hierarchy</title>
<para>Each package should be stored in its own directory somewhere in
the <filename>pkgs/</filename> tree, i.e. in
<filename>pkgs/<replaceable>category</replaceable>/<replaceable>subcategory</replaceable>/<replaceable>...</replaceable>/<replaceable>pkgname</replaceable></filename>.
Below are some rules for picking the right category for a package.
Many packages fall under several categories; what matters is the
<emphasis>primary</emphasis> purpose of a package. For example, the
<literal>libxml2</literal> package builds both a library and some
tools; but its a library foremost, so it goes under
<filename>pkgs/development/libraries</filename>.</para>
<para>When in doubt, consider refactoring the
<filename>pkgs/</filename> tree, e.g. creating new categories or
splitting up an existing category.</para>
<variablelist>
<varlistentry>
<term>If its used to support <emphasis>software development</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>library</emphasis> used by other packages:</term>
<listitem>
<para><filename>development/libraries</filename> (e.g. <filename>libxml2</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>compiler</emphasis>:</term>
<listitem>
<para><filename>development/compilers</filename> (e.g. <filename>gcc</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its an <emphasis>interpreter</emphasis>:</term>
<listitem>
<para><filename>development/interpreters</filename> (e.g. <filename>guile</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a (set of) development <emphasis>tool(s)</emphasis>:</term>
<listitem>
<variablelist>
<varlistentry>
<term>If its a <emphasis>parser generator</emphasis> (including lexers):</term>
<listitem>
<para><filename>development/tools/parsing</filename> (e.g. <filename>bison</filename>, <filename>flex</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a <emphasis>build manager</emphasis>:</term>
<listitem>
<para><filename>development/tools/build-managers</filename> (e.g. <filename>gnumake</filename>)</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>development/tools/misc</filename> (e.g. <filename>binutils</filename>)</para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>Else:</term>
<listitem>
<para><filename>development/misc</filename></para>
</listitem>
</varlistentry>
</variablelist>
</listitem>
</varlistentry>
<varlistentry>
<term>If its a (set of) <emphasis>tool(s)</emphasis>:</term>
<listitem>
<para>(A tool is a relatively small program, especially one 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>Only patches that are unique to <literal>nixpkgs</literal> should be
included in <literal>nixpkgs</literal> source.</para>
<para>Patches available online should be retrieved using
<literal>fetchpatch</literal>.</para>
<para>
<programlisting>
patches = [
(fetchpatch {
name = "fix-check-for-using-shared-freetype-lib.patch";
url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285";
sha256 = "1f0k043rng7f0rfl9hhb89qzvvksqmkrikmm38p61yfx51l325xr";
})
];
</programlisting>
</para>
</section>
</chapter>

460
doc/configuration.xml Normal file
View File

@@ -0,0 +1,460 @@
<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'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>
<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-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>

20
doc/contributing.xml Normal file
View File

@@ -0,0 +1,20 @@
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="chap-contributing">
<title>Contributing to this documentation</title>
<para>The DocBook sources of the Nixpkgs manual are in the <filename
xlink:href="https://github.com/NixOS/nixpkgs/tree/master/doc">doc</filename>
subdirectory of the Nixpkgs repository. If you make modifications to
the manual, it's important to build it before committing. You can do that as follows:
<screen>
$ cd /path/to/nixpkgs
$ nix-build doc
</screen>
If the build succeeds, the manual will be in
<filename>./result/share/doc/nixpkgs/manual.html</filename>.</para>
</chapter>

View File

@@ -1,691 +0,0 @@
# Coding conventions {#chap-conventions}
## Syntax {#sec-syntax}
- Use 2 spaces of indentation per indentation level in Nix expressions, 4 spaces in shell scripts.
- Do not use tab characters, i.e. configure your editor to use soft tabs. For instance, use `(setq-default indent-tabs-mode nil)` in Emacs. Everybody has different tab settings so its asking for trouble.
- Use `lowerCamelCase` for variable names, not `UpperCamelCase`. Note, this rule does not apply to package attribute names, which instead follow the rules in [](#sec-package-naming).
- Function calls with attribute set arguments are written as
```nix
foo {
arg = ...;
}
```
not
```nix
foo
{
arg = ...;
}
```
Also fine is
```nix
foo { arg = ...; }
```
if it's a short call.
- In attribute sets or lists that span multiple lines, the attribute names or list elements should be aligned:
```nix
# A long list.
list = [
elem1
elem2
elem3
];
# A long attribute set.
attrs = {
attr1 = short_expr;
attr2 =
if true then big_expr else big_expr;
};
# Combined
listOfAttrs = [
{
attr1 = 3;
attr2 = "fff";
}
{
attr1 = 5;
attr2 = "ggg";
}
];
```
- Short lists or attribute sets can be written on one line:
```nix
# A short list.
list = [ elem1 elem2 elem3 ];
# A short set.
attrs = { x = 1280; y = 1024; };
```
- Breaking in the middle of a function argument can give hard-to-read code, like
```nix
someFunction { x = 1280;
y = 1024; } otherArg
yetAnotherArg
```
(especially if the argument is very large, spanning multiple lines).
Better:
```nix
someFunction
{ x = 1280; y = 1024; }
otherArg
yetAnotherArg
```
or
```nix
let res = { x = 1280; y = 1024; };
in someFunction res otherArg yetAnotherArg
```
- The bodies of functions, asserts, and withs are not indented to prevent a lot of superfluous indentation levels, i.e.
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
```
not
```nix
{ arg1, arg2 }:
assert system == "i686-linux";
stdenv.mkDerivation { ...
```
- Function formal arguments are written as:
```nix
{ arg1, arg2, arg3 }:
```
but if they don't fit on one line they're written as:
```nix
{ arg1, arg2, arg3
, arg4, ...
, # Some comment...
argN
}:
```
- Functions should list their expected arguments as precisely as possible. That is, write
```nix
{ stdenv, fetchurl, perl }: ...
```
instead of
```nix
args: with args; ...
```
or
```nix
{ stdenv, fetchurl, perl, ... }: ...
```
For functions that are truly generic in the number of arguments (such as wrappers around `mkDerivation`) that have some required arguments, you should write them using an `@`-pattern:
```nix
{ stdenv, doCoverageAnalysis ? false, ... } @ args:
stdenv.mkDerivation (args // {
... if doCoverageAnalysis then "bla" else "" ...
})
```
instead of
```nix
args:
args.stdenv.mkDerivation (args // {
... if args ? doCoverageAnalysis && args.doCoverageAnalysis then "bla" else "" ...
})
```
- Unnecessary string conversions should be avoided. Do
```nix
rev = version;
```
instead of
```nix
rev = "${version}";
```
- Building lists conditionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
```nix
buildInputs = lib.optional stdenv.isDarwin iconv;
```
instead of
```nix
buildInputs = if stdenv.isDarwin then [ iconv ] else null;
```
As an exception, an explicit conditional expression with null can be used when fixing a important bug without triggering a mass rebuild.
If this is done a follow up pull request _should_ be created to change the code to `lib.optional(s)`.
- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
## Package naming {#sec-package-naming}
The key words _must_, _must not_, _required_, _shall_, _shall not_, _should_, _should not_, _recommended_, _may_, and _optional_ in this section are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119). Only _emphasized_ words are to be interpreted in this way.
In Nixpkgs, there are generally three different names associated with a package:
- The `pname` attribute of the derivation. This is what most users see, in particular when using `nix-env`.
- The variable name used for the instantiated package in `all-packages.nix`, and when passing it as a dependency to other functions. Typically this is called the _package attribute name_. This is what Nix expression authors see. It can also be used when installing using `nix-env -iA`.
- The filename for (the directory containing) the Nix expression.
Most of the time, these are the same. For instance, the package `e2fsprogs` has a `pname` attribute `"e2fsprogs"`, is bound to the variable name `e2fsprogs` in `all-packages.nix`, and the Nix expression is in `pkgs/os-specific/linux/e2fsprogs/default.nix`.
There are a few naming guidelines:
- The `pname` attribute _should_ be identical to the upstream package name.
- The `pname` and the `version` attribute _must not_ contain uppercase letters — e.g., `"mplayer" instead of `"MPlayer"`.
- The `version` attribute _must_ start with a digit e.g`"0.3.1rc2".
- If a package is not a release but a commit from a repository, then the `version` attribute _must_ be the date of that (fetched) commit. The date _must_ be in `"unstable-YYYY-MM-DD"` format.
- Dashes in the package `pname` _should_ be preserved in new variable names, rather than converted to underscores or camel cased — e.g., `http-parser` instead of `http_parser` or `httpParser`. The hyphenated style is preferred in all three package names.
- If there are multiple versions of a package, this _should_ be reflected in the variable names in `all-packages.nix`, e.g. `json-c_0_9` and `json-c_0_11`. If there is an obvious “default” version, make an attribute like `json-c = json-c_0_9;`. See also [](#sec-versioning)
## File naming and organisation {#sec-organisation}
Names of files and directories should be in lowercase, with dashes between words — not in camel case. For instance, it should be `all-packages.nix`, not `allPackages.nix` or `AllPackages.nix`.
### Hierarchy {#sec-hierarchy}
Each package should be stored in its own directory somewhere in the `pkgs/` tree, i.e. in `pkgs/category/subcategory/.../pkgname`. Below are some rules for picking the right category for a package. Many packages fall under several categories; what matters is the _primary_ purpose of a package. For example, the `libxml2` package builds both a library and some tools; but its a library foremost, so it goes under `pkgs/development/libraries`.
When in doubt, consider refactoring the `pkgs/` tree, e.g. creating new categories or splitting up an existing category.
**If its used to support _software development_:**
- **If its a _library_ used by other packages:**
- `development/libraries` (e.g. `libxml2`)
- **If its a _compiler_:**
- `development/compilers` (e.g. `gcc`)
- **If its an _interpreter_:**
- `development/interpreters` (e.g. `guile`)
- **If its a (set of) development _tool(s)_:**
- **If its a _parser generator_ (including lexers):**
- `development/tools/parsing` (e.g. `bison`, `flex`)
- **If its a _build manager_:**
- `development/tools/build-managers` (e.g. `gnumake`)
- **If its a _language server_:**
- `development/tools/language-servers` (e.g. `ccls` or `rnix-lsp`)
- **Else:**
- `development/tools/misc` (e.g. `binutils`)
- **Else:**
- `development/misc`
**If its a (set of) _tool(s)_:**
(A tool is a relatively small program, especially one intended to be used non-interactively.)
- **If its for _networking_:**
- `tools/networking` (e.g. `wget`)
- **If its for _text processing_:**
- `tools/text` (e.g. `diffutils`)
- **If its a _system utility_, i.e., something related or essential to the operation of a system:**
- `tools/system` (e.g. `cron`)
- **If its an _archiver_ (which may include a compression function):**
- `tools/archivers` (e.g. `zip`, `tar`)
- **If its a _compression_ program:**
- `tools/compression` (e.g. `gzip`, `bzip2`)
- **If its a _security_-related program:**
- `tools/security` (e.g. `nmap`, `gnupg`)
- **Else:**
- `tools/misc`
**If its a _shell_:**
- `shells` (e.g. `bash`)
**If its a _server_:**
- **If its a web server:**
- `servers/http` (e.g. `apache-httpd`)
- **If its an implementation of the X Windowing System:**
- `servers/x11` (e.g. `xorg` — this includes the client libraries and programs)
- **Else:**
- `servers/misc`
**If its a _desktop environment_:**
- `desktops` (e.g. `kde`, `gnome`, `enlightenment`)
**If its a _window manager_:**
- `applications/window-managers` (e.g. `awesome`, `stumpwm`)
**If its an _application_:**
A (typically large) program with a distinct user interface, primarily used interactively.
- **If its a _version management system_:**
- `applications/version-management` (e.g. `subversion`)
- **If its a _terminal emulator_:**
- `applications/terminal-emulators` (e.g. `alacritty` or `rxvt` or `termite`)
- **If its a _file manager_:**
- `applications/file-managers` (e.g. `mc` or `ranger` or `pcmanfm`)
- **If its for _video playback / editing_:**
- `applications/video` (e.g. `vlc`)
- **If its for _graphics viewing / editing_:**
- `applications/graphics` (e.g. `gimp`)
- **If its for _networking_:**
- **If its a _mailreader_:**
- `applications/networking/mailreaders` (e.g. `thunderbird`)
- **If its a _newsreader_:**
- `applications/networking/newsreaders` (e.g. `pan`)
- **If its a _web browser_:**
- `applications/networking/browsers` (e.g. `firefox`)
- **Else:**
- `applications/networking/misc`
- **Else:**
- `applications/misc`
**If its _data_ (i.e., does not have a straight-forward executable semantics):**
- **If its a _font_:**
- `data/fonts`
- **If its an _icon theme_:**
- `data/icons`
- **If its related to _SGML/XML processing_:**
- **If its an _XML DTD_:**
- `data/sgml+xml/schemas/xml-dtd` (e.g. `docbook`)
- **If its an _XSLT stylesheet_:**
(Okay, these are executable...)
- `data/sgml+xml/stylesheets/xslt` (e.g. `docbook-xsl`)
- **If its a _theme_ for a _desktop environment_, a _window manager_ or a _display manager_:**
- `data/themes`
**If its a _game_:**
- `games`
**Else:**
- `misc`
### Versioning {#sec-versioning}
Because every version of a package in Nixpkgs creates a potential maintenance burden, old versions of a package should not be kept unless there is a good reason to do so. For instance, Nixpkgs contains several versions of GCC because other packages dont build with the latest version of GCC. Other examples are having both the latest stable and latest pre-release version of a package, or to keep several major releases of an application that differ significantly in functionality.
If there is only one version of a package, its Nix expression should be named `e2fsprogs/default.nix`. If there are multiple versions, this should be reflected in the filename, e.g. `e2fsprogs/1.41.8.nix` and `e2fsprogs/1.41.9.nix`. The version in the filename should leave out unnecessary detail. For instance, if we keep the latest Firefox 2.0.x and 3.5.x versions in Nixpkgs, they should be named `firefox/2.0.nix` and `firefox/3.5.nix`, respectively (which, at a given point, might contain versions `2.0.0.20` and `3.5.4`). If a version requires many auxiliary files, you can use a subdirectory for each version, e.g. `firefox/2.0/default.nix` and `firefox/3.5/default.nix`.
All versions of a package _must_ be included in `all-packages.nix` to make sure that they evaluate correctly.
## Fetching Sources {#sec-sources}
There are multiple ways to fetch a package source in nixpkgs. The general guideline is that you should package reproducible sources with a high degree of availability. Right now there is only one fetcher which has mirroring support and that is `fetchurl`. Note that you should also prefer protocols which have a corresponding proxy environment variable.
You can find many source fetch helpers in `pkgs/build-support/fetch*`.
In the file `pkgs/top-level/all-packages.nix` you can find fetch helpers, these have names on the form `fetchFrom*`. The intention of these are to provide snapshot fetches but using the same api as some of the version controlled fetchers from `pkgs/build-support/`. As an example going from bad to good:
- Bad: Uses `git://` which won't be proxied.
```nix
src = fetchgit {
url = "git@github.com:NixOS/nix.git"
url = "git://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "sha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
- Better: This is ok, but an archive fetch will still be faster.
```nix
src = fetchgit {
url = "https://github.com/NixOS/nix.git";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "sha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
- Best: Fetches a snapshot archive and you get the rev you want.
```nix
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae";
hash = "ha256-7D4m+saJjbSFP5hOwpQq2FGR2rr+psQMTcyb1ZvtXsQ=";
}
```
When fetching from GitHub, commits must always be referenced by their full commit hash. This is because GitHub shares commit hashes among all forks and returns `404 Not Found` when a short commit hash is ambiguous. It already happens for some short, 6-character commit hashes in `nixpkgs`.
It is a practical vector for a denial-of-service attack by pushing large amounts of auto generated commits into forks and was already [demonstrated against GitHub Actions Beta](https://blog.teddykatz.com/2019/11/12/github-actions-dos.html).
Find the value to put as `hash` by running `nix-shell -p nix-prefetch-github --run "nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix"`.
## Obtaining source hash {#sec-source-hashes}
Preferred source hash type is sha256. There are several ways to get it.
1. Prefetch URL (with `nix-prefetch-XXX URL`, where `XXX` is one of `url`, `git`, `hg`, `cvs`, `bzr`, `svn`). Hash is printed to stdout.
2. Prefetch by package source (with `nix-prefetch-url '<nixpkgs>' -A PACKAGE.src`, where `PACKAGE` is package attribute name). Hash is printed to stdout.
This works well when you've upgraded existing package version and want to find out new hash, but is useless if package can't be accessed by attribute or package has multiple sources (`.srcs`, architecture-dependent sources, etc).
3. Upstream provided hash: use it when upstream provides `sha256` or `sha512` (when upstream provides `md5`, don't use it, compute `sha256` instead).
A little nuance is that `nix-prefetch-*` tools produce hash encoded with `base32`, but upstream usually provides hexadecimal (`base16`) encoding. Fetchers understand both formats. Nixpkgs does not standardize on any one format.
You can convert between formats with nix-hash, for example:
```ShellSession
$ nix-hash --type sha256 --to-base32 HASH
```
4. Extracting hash from local source tarball can be done with `sha256sum`. Use `nix-prefetch-url file:///path/to/tarball` if you want base32 hash.
5. Fake hash: set the hash to one of
- `""`
- `lib.fakeHash`
- `lib.fakeSha256`
- `lib.fakeSha512`
in the package expression, attempt build and extract correct hash from error messages.
::: {.warning}
You must use one of these four fake hashes and not some arbitrarily-chosen hash.
See [](#sec-source-hashes-security).
:::
This is last resort method when reconstructing source URL is non-trivial and `nix-prefetch-url -A` isnt applicable (for example, [one of `kodi` dependencies](https://github.com/NixOS/nixpkgs/blob/d2ab091dd308b99e4912b805a5eb088dd536adb9/pkgs/applications/video/kodi/default.nix#L73)). The easiest way then would be replace hash with a fake one and rebuild. Nix build will fail and error message will contain desired hash.
### Obtaining hashes securely {#sec-source-hashes-security}
Let's say Man-in-the-Middle (MITM) sits close to your network. Then instead of fetching source you can fetch malware, and instead of source hash you get hash of malware. Here are security considerations for this scenario:
- `http://` URLs are not secure to prefetch hash from;
- hashes from upstream (in method 3) should be obtained via secure protocol;
- `https://` URLs are secure in methods 1, 2, 3;
- `https://` URLs are secure in method 5 *only if* you use one of the listed fake hashes. If you use any other hash, `fetchurl` will pass `--insecure` to `curl` and may then degrade to HTTP in case of TLS certificate expiration.
## Patches {#sec-patches}
Patches available online should be retrieved using `fetchpatch`.
```nix
patches = [
(fetchpatch {
name = "fix-check-for-using-shared-freetype-lib.patch";
url = "http://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=8f5d285";
hash = "sha256-uRcxaCjd+WAuGrXOmGfFeu79cUILwkRdBu48mwcBE7g=";
})
];
```
Otherwise, you can add a `.patch` file to the `nixpkgs` repository. In the interest of keeping our maintenance burden to a minimum, only patches that are unique to `nixpkgs` should be added in this way.
If a patch is available online but does not cleanly apply, it can be modified in some fixed ways by using additional optional arguments for `fetchpatch`. Check [](#fetchpatch) for details.
```nix
patches = [ ./0001-changes.patch ];
```
If you do need to do create this sort of patch file, one way to do so is with git:
1. Move to the root directory of the source code you're patching.
```ShellSession
$ cd the/program/source
```
2. If a git repository is not already present, create one and stage all of the source files.
```ShellSession
$ git init
$ git add .
```
3. Edit some files to make whatever changes need to be included in the patch.
4. Use git to create a diff, and pipe the output to a patch file:
```ShellSession
$ git diff -a > nixpkgs/pkgs/the/package/0001-changes.patch
```
## Package tests {#sec-package-tests}
Tests are important to ensure quality and make reviews and automatic updates easy.
The following types of tests exists:
* [NixOS **module tests**](https://nixos.org/manual/nixos/stable/#sec-nixos-tests), which spawn one or more NixOS VMs. They exercise both NixOS modules and the packaged programs used within them. For example, a NixOS module test can start a web server VM running the `nginx` module, and a client VM running `curl` or a graphical `firefox`, and test that they can talk to each other and display the correct content.
* Nix **package tests** are a lightweight alternative to NixOS module tests. They should be used to create simple integration tests for packages, but cannot test NixOS services, and some programs with graphical user interfaces may also be difficult to test with them.
* The **`checkPhase` of a package**, which should execute the unit tests that are included in the source code of a package.
Here in the nixpkgs manual we describe mostly _package tests_; for _module tests_ head over to the corresponding [section in the NixOS manual](https://nixos.org/manual/nixos/stable/#sec-nixos-tests).
### Writing inline package tests {#ssec-inline-package-tests-writing}
For very simple tests, they can be written inline:
```nix
{ …, yq-go }:
buildGoModule rec {
passthru.tests = {
simple = runCommand "${pname}-test" {} ''
echo "test: 1" | ${yq-go}/bin/yq eval -j > $out
[ "$(cat $out | tr -d $'\n ')" = '{"test":1}' ]
'';
};
}
```
### Writing larger package tests {#ssec-package-tests-writing}
This is an example using the `phoronix-test-suite` package with the current best practices.
Add the tests in `passthru.tests` to the package definition like this:
```nix
{ stdenv, lib, fetchurl, callPackage }:
stdenv.mkDerivation {
passthru.tests = {
simple-execution = callPackage ./tests.nix { };
};
meta = { … };
}
```
Create `tests.nix` in the package directory:
```nix
{ runCommand, phoronix-test-suite }:
let
inherit (phoronix-test-suite) pname version;
in
runCommand "${pname}-tests" { meta.timeout = 60; }
''
# automatic initial setup to prevent interactive questions
${phoronix-test-suite}/bin/phoronix-test-suite enterprise-setup >/dev/null
# get version of installed program and compare with package version
if [[ `${phoronix-test-suite}/bin/phoronix-test-suite version` != *"${version}"* ]]; then
echo "Error: program version does not match package version"
exit 1
fi
# run dummy command
${phoronix-test-suite}/bin/phoronix-test-suite dummy_module.dummy-command >/dev/null
# needed for Nix to register the command as successful
touch $out
''
```
### Running package tests {#ssec-package-tests-running}
You can run these tests with:
```ShellSession
$ cd path/to/nixpkgs
$ nix-build -A phoronix-test-suite.tests
```
### Examples of package tests {#ssec-package-tests-examples}
Here are examples of package tests:
- [Jasmin compile test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/jasmin/test-assemble-hello-world/default.nix)
- [Lobster compile test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/lobster/test-can-run-hello-world.nix)
- [Spacy annotation test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/spacy/annotation-test/default.nix)
- [Libtorch test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/science/math/libtorch/test/default.nix)
- [Multiple tests for nanopb](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/nanopb/default.nix)
### Linking NixOS module tests to a package {#ssec-nixos-tests-linking}
Like [package tests](#ssec-package-tests-writing) as shown above, [NixOS module tests](https://nixos.org/manual/nixos/stable/#sec-nixos-tests) can also be linked to a package, so that the tests can be easily run when changing the related package.
For example, assuming we're packaging `nginx`, we can link its module test via `passthru.tests`:
```nix
{ stdenv, lib, nixosTests }:
stdenv.mkDerivation {
...
passthru.tests = {
nginx = nixosTests.nginx;
};
...
}
```
### Import From Derivation {#ssec-import-from-derivation}
Import From Derivation (IFD) is disallowed in Nixpkgs for performance reasons:
[Hydra] evaluates the entire package set, and sequential builds during evaluation would increase evaluation times to become impractical.
[Hydra]: https://github.com/NixOS/hydra
Import From Derivation can be worked around in some cases by committing generated intermediate files to version control and reading those instead.
<!-- TODO: remove the following and link to Nix manual once https://github.com/NixOS/nix/pull/7332 is merged -->
See also [NixOS Wiki: Import From Derivation].
[NixOS Wiki: Import From Derivation]: https://nixos.wiki/wiki/Import_From_Derivation

View File

@@ -1,118 +0,0 @@
# Contributing to this documentation {#chap-contributing}
The sources of the Nixpkgs manual are in the [doc](https://github.com/NixOS/nixpkgs/tree/master/doc) subdirectory of the Nixpkgs repository. The manual is still partially written in DocBook but it is progressively being converted to [Markdown](#sec-contributing-markup).
You can quickly check your edits with `make`:
```ShellSession
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make
```
If you experience problems, run `make debug` to help understand the docbook errors.
After making modifications to the manual, it's important to build it before committing. You can do that as follows:
```ShellSession
$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make clean
[nix-shell]$ nix-build .
```
If the build succeeds, the manual will be in `./result/share/doc/nixpkgs/manual.html`.
## Syntax {#sec-contributing-markup}
As per [RFC 0072](https://github.com/NixOS/rfcs/pull/72), all new documentation content should be written in [CommonMark](https://commonmark.org/) Markdown dialect.
Additional syntax extensions are available, all of which can be used in NixOS option documentation. The following extensions are currently used:
- []{#ssec-contributing-markup-anchors}
Explicitly defined **anchors** on headings, to allow linking to sections. These should be always used, to ensure the anchors can be linked even when the heading text changes, and to prevent conflicts between [automatically assigned identifiers](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/auto_identifiers.md).
It uses the widely compatible [header attributes](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/attributes.md) syntax:
```markdown
## Syntax {#sec-contributing-markup}
```
::: {.note}
NixOS option documentation does not support headings in general.
:::
- []{#ssec-contributing-markup-anchors-inline}
**Inline anchors**, which allow linking arbitrary place in the text (e.g. individual list items, sentences…).
They are defined using a hybrid of the link syntax with the attributes syntax known from headings, called [bracketed spans](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/bracketed_spans.md):
```markdown
- []{#ssec-gnome-hooks-glib} `glib` setup hook will populate `GSETTINGS_SCHEMAS_PATH` and then `wrapGAppsHook` will prepend it to `XDG_DATA_DIRS`.
```
- []{#ssec-contributing-markup-automatic-links}
If you **omit a link text** for a link pointing to a section, the text will be substituted automatically. For example, `[](#chap-contributing)` will result in [](#chap-contributing).
This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing).
- []{#ssec-contributing-markup-inline-roles}
If you want to link to a man page, you can use `` {manpage}`nix.conf(5)` ``, which will turn into {manpage}`nix.conf(5)`. The references will turn into links when a mapping exists in {file}`doc/manpage-urls.json`.
A few markups for other kinds of literals are also available:
- `` {command}`rm -rfi` `` turns into {command}`rm -rfi`
- `` {env}`XDG_DATA_DIRS` `` turns into {env}`XDG_DATA_DIRS`
- `` {file}`/etc/passwd` `` turns into {file}`/etc/passwd`
- `` {option}`networking.useDHCP` `` turns into {option}`networking.useDHCP`
- `` {var}`/etc/passwd` `` turns into {var}`/etc/passwd`
These literal kinds are used mostly in NixOS option documentation.
This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point). Though, the feature originates from [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage) with slightly different syntax.
- []{#ssec-contributing-markup-admonitions}
**Admonitions**, set off from the text to bring attention to something.
It uses pandocs [fenced `div`s syntax](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/fenced_divs.md):
```markdown
::: {.warning}
This is a warning
:::
```
which renders as
> ::: {.warning}
> This is a warning.
> :::
The following are supported:
- [`caution`](https://tdg.docbook.org/tdg/5.0/caution.html)
- [`important`](https://tdg.docbook.org/tdg/5.0/important.html)
- [`note`](https://tdg.docbook.org/tdg/5.0/note.html)
- [`tip`](https://tdg.docbook.org/tdg/5.0/tip.html)
- [`warning`](https://tdg.docbook.org/tdg/5.0/warning.html)
- []{#ssec-contributing-markup-definition-lists}
[**Definition lists**](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/definition_lists.md), for defining a group of terms:
```markdown
pear
: green or yellow bulbous fruit
watermelon
: green fruit with red flesh
```
which renders as
> pear
> : green or yellow bulbous fruit
>
> watermelon
> : green fruit with red flesh
For contributing to the legacy parts, please see [DocBook: The Definitive Guide](https://tdg.docbook.org/) or the [DocBook rocks! primer](https://web.archive.org/web/20200816233747/https://docbook.rocks/).

View File

@@ -1,77 +0,0 @@
# Quick Start to Adding a Package {#chap-quick-start}
To add a package to Nixpkgs:
1. Checkout the Nixpkgs source tree:
```ShellSession
$ git clone https://github.com/NixOS/nixpkgs
$ cd nixpkgs
```
2. Find a good place in the Nixpkgs tree to add the Nix expression for your package. For instance, a library package typically goes into `pkgs/development/libraries/pkgname`, while a web browser goes into `pkgs/applications/networking/browsers/pkgname`. See [](#sec-organisation) for some hints on the tree organisation. Create a directory for your package, e.g.
```ShellSession
$ mkdir pkgs/development/libraries/libfoo
```
3. In the package directory, create a Nix expression — a piece of code that describes how to build the package. In this case, it should be a _function_ that is called with the package dependencies as arguments, and returns a build of the package in the Nix store. The expression should usually be called `default.nix`.
```ShellSession
$ emacs pkgs/development/libraries/libfoo/default.nix
$ git add pkgs/development/libraries/libfoo/default.nix
```
You can have a look at the existing Nix expressions under `pkgs/` to see how its done. Here are some good ones:
- GNU Hello: [`pkgs/applications/misc/hello/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/hello/default.nix). Trivial package, which specifies some `meta` attributes which is good practice.
- GNU cpio: [`pkgs/tools/archivers/cpio/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/archivers/cpio/default.nix). Also a simple package. The generic builder in `stdenv` does everything for you. It has no dependencies beyond `stdenv`.
- GNU Multiple Precision arithmetic library (GMP): [`pkgs/development/libraries/gmp/5.1.x.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/gmp/5.1.x.nix). Also done by the generic builder, but has a dependency on `m4`.
- Pan, a GTK-based newsreader: [`pkgs/applications/networking/newsreaders/pan/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix). Has an optional dependency on `gtkspell`, which is only built if `spellCheck` is `true`.
- Apache HTTPD: [`pkgs/servers/http/apache-httpd/2.4.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/http/apache-httpd/2.4.nix). A bunch of optional features, variable substitutions in the configure flags, a post-install hook, and miscellaneous hackery.
- buildMozillaMach: [`pkgs/applications/networking/browser/firefox/common.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/common.nix). A reusable build function for Firefox, Thunderbird and Librewolf.
- JDiskReport, a Java utility: [`pkgs/tools/misc/jdiskreport/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/jdiskreport/default.nix). Nixpkgs doesnt have a decent `stdenv` for Java yet so this is pretty ad-hoc.
- XML::Simple, a Perl module: [`pkgs/top-level/perl-packages.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/perl-packages.nix) (search for the `XMLSimple` attribute). Most Perl modules are so simple to build that they are defined directly in `perl-packages.nix`; no need to make a separate file for them.
- Adobe Reader: [`pkgs/applications/misc/adobe-reader/default.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/default.nix). Shows how binary-only packages can be supported. In particular the [builder](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/adobe-reader/builder.sh) uses `patchelf` to set the RUNPATH and ELF interpreter of the executables so that the right libraries are found at runtime.
Some notes:
- All [`meta`](#chap-meta) attributes are optional, but its still a good idea to provide at least the `description`, `homepage` and [`license`](#sec-meta-license).
- You can use `nix-prefetch-url url` to get the SHA-256 hash of source distributions. There are similar commands as `nix-prefetch-git` and `nix-prefetch-hg` available in `nix-prefetch-scripts` package.
- A list of schemes for `mirror://` URLs can be found in [`pkgs/build-support/fetchurl/mirrors.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/mirrors.nix).
The exact syntax and semantics of the Nix expression language, including the built-in function, are described in the Nix manual in the [chapter on writing Nix expressions](https://hydra.nixos.org/job/nix/trunk/tarball/latest/download-by-type/doc/manual/#chap-writing-nix-expressions).
4. Add a call to the function defined in the previous step to [`pkgs/top-level/all-packages.nix`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix) with some descriptive name for the variable, e.g. `libfoo`.
```ShellSession
$ emacs pkgs/top-level/all-packages.nix
```
The attributes in that file are sorted by category (like “Development / Libraries”) that more-or-less correspond to the directory structure of Nixpkgs, and then by attribute name.
5. To test whether the package builds, run the following command from the root of the nixpkgs source tree:
```ShellSession
$ nix-build -A libfoo
```
where `libfoo` should be the variable name defined in the previous step. You may want to add the flag `-K` to keep the temporary build directory in case something fails. If the build succeeds, a symlink `./result` to the package in the Nix store is created.
6. If you want to install the package into your profile (optional), do
```ShellSession
$ nix-env -f . -iA libfoo
```
7. Optionally commit the new package and open a pull request [to nixpkgs](https://github.com/NixOS/nixpkgs/pulls), or use [the Patches category](https://discourse.nixos.org/t/about-the-patches-category/477) on Discourse for sending a patch without a GitHub account.

View File

@@ -1,319 +0,0 @@
# Reviewing contributions {#chap-reviewing-contributions}
::: {.warning}
The following section is a draft, and the policy for reviewing is still being discussed in issues such as [#11166](https://github.com/NixOS/nixpkgs/issues/11166) and [#20836](https://github.com/NixOS/nixpkgs/issues/20836).
:::
The Nixpkgs project receives a fairly high number of contributions via GitHub pull requests. Reviewing and approving these is an important task and a way to contribute to the project.
The high change rate of Nixpkgs makes any pull request that remains open for too long subject to conflicts that will require extra work from the submitter or the merger. Reviewing pull requests in a timely manner and being responsive to the comments is the key to avoid this issue. GitHub provides sort filters that can be used to see the [most recently](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc) and the [least recently](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc) updated pull requests. We highly encourage looking at [this list of ready to merge, unreviewed pull requests](https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+review%3Anone+status%3Asuccess+-label%3A%222.status%3A+work-in-progress%22+no%3Aproject+no%3Aassignee+no%3Amilestone).
When reviewing a pull request, please always be nice and polite. Controversial changes can lead to controversial opinions, but it is important to respect every community member and their work.
GitHub provides reactions as a simple and quick way to provide feedback to pull requests or any comments. The thumb-down reaction should be used with care and if possible accompanied with some explanation so the submitter has directions to improve their contribution.
pull request reviews should include a list of what has been reviewed in a comment, so other reviewers and mergers can know the state of the review.
All the review template samples provided in this section are generic and meant as examples. Their usage is optional and the reviewer is free to adapt them to their liking.
## Package updates {#reviewing-contributions-package-updates}
A package update is the most trivial and common type of pull request. These pull requests mainly consist of updating the version part of the package name and the source hash.
It can happen that non-trivial updates include patches or more complex changes.
Reviewing process:
- Ensure that the package versioning fits the guidelines.
- Ensure that the commit text fits the guidelines.
- Ensure that the package maintainers are notified.
- [CODEOWNERS](https://help.github.com/articles/about-codeowners) will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers.
- Ensure that the meta field information is correct.
- License can change with version updates, so it should be checked to match the upstream license.
- If the package has no maintainer, a maintainer must be set. This can be the update submitter or a community member that accepts to take maintainership of the package.
- Ensure that the code contains no typos.
- Building the package locally.
- pull requests are often targeted to the master or staging branch, and building the pull request locally when it is submitted can trigger many source builds.
- It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone.
```ShellSession
$ git fetch origin nixos-unstable
$ git fetch origin pull/PRNUMBER/head
$ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD
```
- The first command fetches the nixos-unstable branch.
- The second command fetches the pull request changes, `PRNUMBER` is the number at the end of the pull request title and `BASEBRANCH` the base branch of the pull request.
- The third command rebases the pull request changes to the nixos-unstable branch.
- The [nixpkgs-review](https://github.com/Mic92/nixpkgs-review) tool can be used to review a pull request content in a single command. `PRNUMBER` should be replaced by the number at the end of the pull request title. You can also provide the full github pull request url.
```ShellSession
$ nix-shell -p nixpkgs-review --run "nixpkgs-review pr PRNUMBER"
```
- Running every binary.
Sample template for a package update review is provided below.
```markdown
##### Reviewed points
- [ ] package name fits guidelines
- [ ] package version fits guidelines
- [ ] package build on ARCHITECTURE
- [ ] executables tested on ARCHITECTURE
- [ ] all depending packages build
##### Possible improvements
##### Comments
```
## New packages {#reviewing-contributions-new-packages}
New packages are a common type of pull requests. These pull requests consists in adding a new nix-expression for a package.
Review process:
- Ensure that the package versioning fits the guidelines.
- Ensure that the commit name fits the guidelines.
- Ensure that the meta fields contain correct information.
- License must match the upstream license.
- Platforms should be set (or the package will not get binary substitutes).
- Maintainers must be set. This can be the package submitter or a community member that accepts taking up maintainership of the package.
- Report detected typos.
- Ensure the package source:
- Uses mirror URLs when available.
- Uses the most appropriate functions (e.g. packages from GitHub should use `fetchFromGitHub`).
- Building the package locally.
- Running every binary.
Sample template for a new package review is provided below.
```markdown
##### Reviewed points
- [ ] package path fits guidelines
- [ ] package name fits guidelines
- [ ] package version fits guidelines
- [ ] package build on ARCHITECTURE
- [ ] executables tested on ARCHITECTURE
- [ ] `meta.description` is set and fits guidelines
- [ ] `meta.license` fits upstream license
- [ ] `meta.platforms` is set
- [ ] `meta.maintainers` is set
- [ ] build time only dependencies are declared in `nativeBuildInputs`
- [ ] source is fetched using the appropriate function
- [ ] the list of `phases` is not overridden
- [ ] when a phase (like `installPhase`) is overridden it starts with `runHook preInstall` and ends with `runHook postInstall`.
- [ ] patches that are remotely available are fetched with `fetchpatch`
##### Possible improvements
##### Comments
```
## Module updates {#reviewing-contributions-module-updates}
Module updates are submissions changing modules in some ways. These often contains changes to the options or introduce new options.
Reviewing process:
- Ensure that the module maintainers are notified.
- [CODEOWNERS](https://help.github.com/articles/about-codeowners/) will make GitHub notify users based on the submitted changes, but it can happen that it misses some of the package maintainers.
- Ensure that the module tests, if any, are succeeding.
- Ensure that the introduced options are correct.
- Type should be appropriate (string related types differs in their merging capabilities, `loaOf` and `string` types are deprecated).
- Description, default and example should be provided.
- Ensure that option changes are backward compatible.
- `mkRenamedOptionModuleWith` provides a way to make option changes backward compatible.
- Ensure that removed options are declared with `mkRemovedOptionModule`
- Ensure that changes that are not backward compatible are mentioned in release notes.
- Ensure that documentations affected by the change is updated.
Sample template for a module update review is provided below.
```markdown
##### Reviewed points
- [ ] changes are backward compatible
- [ ] removed options are declared with `mkRemovedOptionModule`
- [ ] changes that are not backward compatible are documented in release notes
- [ ] module tests succeed on ARCHITECTURE
- [ ] options types are appropriate
- [ ] options description is set
- [ ] options example is provided
- [ ] documentation affected by the changes is updated
##### Possible improvements
##### Comments
```
## New modules {#reviewing-contributions-new-modules}
New modules submissions introduce a new module to NixOS.
Reviewing process:
- Ensure that the module tests, if any, are succeeding.
- Ensure that the introduced options are correct.
- Type should be appropriate (string related types differs in their merging capabilities, `loaOf` and `string` types are deprecated).
- Description, default and example should be provided.
- Ensure that module `meta` field is present
- Maintainers should be declared in `meta.maintainers`.
- Module documentation should be declared with `meta.doc`.
- Ensure that the module respect other modules functionality.
- For example, enabling a module should not open firewall ports by default.
Sample template for a new module review is provided below.
```markdown
##### Reviewed points
- [ ] module path fits the guidelines
- [ ] module tests succeed on ARCHITECTURE
- [ ] options have appropriate types
- [ ] options have default
- [ ] options have example
- [ ] options have descriptions
- [ ] No unneeded package is added to environment.systemPackages
- [ ] meta.maintainers is set
- [ ] module documentation is declared in meta.doc
##### Possible improvements
##### Comments
```
## Individual maintainer list {#reviewing-contributions-individual-maintainer-list}
When adding users to `maintainers/maintainer-list.nix`, the following
checks should be performed:
- If the user has specified a GPG key, verify that the commit is
signed by their key.
First, validate that the commit adding the maintainer is signed by
the key the maintainer listed. Check out the pull request and
compare its signing key with the listed key in the commit.
If the commit is not signed or it is signed by a different user, ask
them to either recommit using that key or to remove their key
information.
Given a maintainter entry like this:
``` nix
{
example = {
email = "user@example.com";
name = "Example User";
keys = [{
fingerprint = "0000 0000 2A70 6423 0AED 3C11 F04F 7A19 AAA6 3AFE";
}];
}
};
```
First receive their key from a keyserver:
$ gpg --recv-keys 0xF04F7A19AAA63AFE
gpg: key 0xF04F7A19AAA63AFE: public key "Example <user@example.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
Then check the commit is signed by that key:
$ git log --show-signature
commit b87862a4f7d32319b1de428adb6cdbdd3a960153
gpg: Signature made Wed Mar 12 13:32:24 2003 +0000
gpg: using RSA key 000000002A7064230AED3C11F04F7A19AAA63AFE
gpg: Good signature from "Example User <user@example.com>
Author: Example User <user@example.com>
Date: Wed Mar 12 13:32:24 2003 +0000
maintainers: adding example
and validate that there is a `Good signature` and the printed key
matches the user's submitted key.
Note: GitHub's "Verified" label does not display the user's full key
fingerprint, and should not be used for validating the key matches.
- If the user has specified a `github` account name, ensure they have
also specified a `githubId` and verify the two match.
Maintainer entries that include a `github` field must also include
their `githubId`. People can and do change their GitHub name
frequently, and the ID is used as the official and stable identity
of the maintainer.
Given a maintainer entry like this:
``` nix
{
example = {
email = "user@example.com";
name = "Example User";
github = "ghost";
githubId = 10137;
}
};
```
First, make sure that the listed GitHub handle matches the author of
the commit.
Then, visit the URL `https://api.github.com/users/ghost` and
validate that the `id` field matches the provided `githubId`.
## Maintainer teams {#reviewing-contributions-maintainer-teams}
Feel free to create a new maintainer team in `maintainers/team-list.nix`
when a group is collectively responsible for a collection of packages.
Use taste and personal judgement when deciding if a team is warranted.
Teams are allowed to define their own rules about membership.
For example, some teams will represent a business or other group which
wants to carefully track its members. Other teams may be very open about
who can join, and allow anybody to participate.
When reviewing changes to a team, read the team's scope and the context
around the member list for indications about the team's membership
policy.
In any case, request reviews from the existing team members. If the team
lists no specific membership policy, feel free to merge changes to the
team after giving the existing members a few days to respond.
*Important:* If a team says it is a closed group, do not merge additions
to the team without an approval by at least one existing member.
## Other submissions {#reviewing-contributions-other-submissions}
Other type of submissions requires different reviewing steps.
If you consider having enough knowledge and experience in a topic and would like to be a long-term reviewer for related submissions, please contact the current reviewers for that topic. They will give you information about the reviewing process. The main reviewers for a topic can be hard to find as there is no list, but checking past pull requests to see who reviewed or git-blaming the code to see who committed to that topic can give some hints.
Container system, boot system and library changes are some examples of the pull requests fitting this category.
## Merging pull requests {#reviewing-contributions--merging-pull-requests}
It is possible for community members that have enough knowledge and experience on a special topic to contribute by merging pull requests.
In case the PR is stuck waiting for the original author to apply a trivial
change (a typo, capitalisation change, etc.) and the author allowed the members
to modify the PR, consider applying it yourself. (or commit the existing review
suggestion) You should pay extra attention to make sure the addition doesn't go
against the idea of the original PR and would not be opposed by the author.
<!--
The following paragraphs about how to deal with unactive contributors is just a proposition and should be modified to what the community agrees to be the right policy.
Please note that contributors with commit rights unactive for more than three months will have their commit rights revoked.
-->
Please see the discussion in [GitHub nixpkgs issue #50105](https://github.com/NixOS/nixpkgs/issues/50105) for information on how to proceed to be granted this level of access.
In a case a contributor definitively leaves the Nix community, they should create an issue or post on [Discourse](https://discourse.nixos.org) with references of packages and modules they maintain so the maintainership can be taken over by other contributors.

View File

@@ -1,302 +0,0 @@
# Submitting changes {#chap-submitting-changes}
## Making patches {#submitting-changes-making-patches}
- Read [Manual (How to write packages for Nix)](https://nixos.org/nixpkgs/manual/).
- Fork [the Nixpkgs repository](https://github.com/nixos/nixpkgs/) on GitHub.
- Create a branch for your future fix.
- You can make branch from a commit of your local `nixos-version`. That will help you to avoid additional local compilations. Because you will receive packages from binary cache. For example
```ShellSession
$ nixos-version --hash
0998212
$ git checkout 0998212
$ git checkout -b 'fix/pkg-name-update'
```
- Please avoid working directly on the `master` branch.
- Make commits of logical units.
- If you removed pkgs or made some major NixOS changes, write about it in the release notes for the next stable release. For example `nixos/doc/manual/release-notes/rl-2003.xml`.
- Check for unnecessary whitespace with `git diff --check` before committing.
- Format the commit in a following way:
```
(pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc)
Additional information.
```
- Examples:
- `nginx: init at 2.0.1`
- `firefox: 54.0.1 -> 55.0`
- `nixos/hydra: add bazBaz option`
- `nixos/nginx: refactor config generation`
- Test your changes. If you work with
- nixpkgs:
- update pkg
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
- add pkg
- Make sure its in `pkgs/top-level/all-packages.nix`
- `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
- _If you dont want to install pkg in you profile_.
- `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
- If you installed your package with `nix-env`, you can run `nix-env -e pkg-name` where `pkg-name` is as reported by `nix-env -q` to uninstall it from your system.
- NixOS and its modules:
- You can add new module to your NixOS configuration file (usually its `/etc/nixos/configuration.nix`). And do `sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast`.
- If you have commits `pkg-name: oh, forgot to insert whitespace`: squash commits in this case. Use `git rebase -i`.
- [Rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) your branch against current `master`.
## Submitting changes {#submitting-changes-submitting-changes}
- Push your changes to your fork of nixpkgs.
- Create the pull request
- Follow [the contribution guidelines](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes).
## Submitting security fixes {#submitting-changes-submitting-security-fixes}
Security fixes are submitted in the same way as other changes and thus the same guidelines apply.
- If a new version fixing the vulnerability has been released, update the package;
- If the security fix comes in the form of a patch and a CVE is available, then add the patch to the Nixpkgs tree, and apply it to the package.
The name of the patch should be the CVE identifier, so e.g. `CVE-2019-13636.patch`; If a patch is fetched the name needs to be set as well, e.g.:
```nix
(fetchpatch {
name = "CVE-2019-11068.patch";
url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
hash = "sha256-SEKe/8HcW0UBHCfPTTOnpRlzmV2nQPPeL6HOMxBZd14=";
})
```
If a security fix applies to both master and a stable release then, similar to regular changes, they are preferably delivered via master first and cherry-picked to the release branch.
Critical security fixes may by-pass the staging branches and be delivered directly to release branches such as `master` and `release-*`.
## Deprecating/removing packages {#submitting-changes-deprecating-packages}
There is currently no policy when to remove a package.
Before removing a package, one should try to find a new maintainer or fix smaller issues first.
### Steps to remove a package from Nixpkgs {#steps-to-remove-a-package-from-nixpkgs}
We use jbidwatcher as an example for a discontinued project here.
1. Have Nixpkgs checked out locally and up to date.
1. Create a new branch for your change, e.g. `git checkout -b jbidwatcher`
1. Remove the actual package including its directory, e.g. `git rm -rf pkgs/applications/misc/jbidwatcher`
1. Remove the package from the list of all packages (`pkgs/top-level/all-packages.nix`).
1. Add an alias for the package name in `pkgs/top-level/aliases.nix` (There is also `pkgs/applications/editors/vim/plugins/aliases.nix`. Package sets typically do not have aliases, so we can't add them there.)
For example in this case:
```
jbidwatcher = throw "jbidwatcher was discontinued in march 2021"; # added 2021-03-15
```
The throw message should explain in short why the package was removed for users that still have it installed.
1. Test if the changes introduced any issues by running `nix-env -qaP -f . --show-trace`. It should show the list of packages without errors.
1. Commit the changes. Explain again why the package was removed. If it was declared discontinued upstream, add a link to the source.
```ShellSession
$ git add pkgs/applications/misc/jbidwatcher/default.nix pkgs/top-level/all-packages.nix pkgs/top-level/aliases.nix
$ git commit
```
Example commit message:
```
jbidwatcher: remove
project was discontinued in march 2021. the program does not work anymore because ebay changed the login.
https://web.archive.org/web/20210315205723/http://www.jbidwatcher.com/
```
1. Push changes to your GitHub fork with `git push`
1. Create a pull request against Nixpkgs. Mention the package maintainer.
This is how the pull request looks like in this case: [https://github.com/NixOS/nixpkgs/pull/116470](https://github.com/NixOS/nixpkgs/pull/116470)
## Pull Request Template {#submitting-changes-pull-request-template}
The pull request template helps determine what steps have been made for a contribution so far, and will help guide maintainers on the status of a change. The motivation section of the PR should include any extra details the title does not address and link any existing issues related to the pull request.
When a PR is created, it will be pre-populated with some checkboxes detailed below:
### Tested using sandboxing {#submitting-changes-tested-with-sandbox}
When sandbox builds are enabled, Nix will setup an isolated environment for each build process. It is used to remove further hidden dependencies set by the build environment to improve reproducibility. This includes access to the network during the build outside of `fetch*` functions and files outside the Nix store. Depending on the operating system access to other resources are blocked as well (ex. inter process communication is isolated on Linux); see [sandbox](https://nixos.org/nix/manual/#conf-sandbox) in Nix manual for details.
Sandboxing is not enabled by default in Nix due to a small performance hit on each build. In pull requests for [nixpkgs](https://github.com/NixOS/nixpkgs/) people are asked to test builds with sandboxing enabled (see `Tested using sandboxing` in the pull request template) because in<https://nixos.org/hydra/> sandboxing is also used.
Depending if you use NixOS or other platforms you can use one of the following methods to enable sandboxing **before** building the package:
- **Globally enable sandboxing on NixOS**: add the following to `configuration.nix`
```nix
nix.useSandbox = true;
```
- **Globally enable sandboxing on non-NixOS platforms**: add the following to: `/etc/nix/nix.conf`
```ini
sandbox = true
```
### Built on platform(s) {#submitting-changes-platform-diversity}
Many Nix packages are designed to run on multiple platforms. As such, its important to let the maintainer know which platforms your changes have been tested on. Its not always practical to test a change on all platforms, and is not required for a pull request to be merged. Only check the systems you tested the build on in this section.
### Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests) {#submitting-changes-nixos-tests}
Packages with automated tests are much more likely to be merged in a timely fashion because it doesnt require as much manual testing by the maintainer to verify the functionality of the package. If there are existing tests for the package, they should be run to verify your changes do not break the tests. Tests can only be run on Linux. For more details on writing and running tests, see the [section in the NixOS manual](https://nixos.org/nixos/manual/index.html#sec-nixos-tests).
### Tested compilation of all pkgs that depend on this change using `nixpkgs-review` {#submitting-changes-tested-compilation}
If you are updating a packages version, you can use `nixpkgs-review` to make sure all packages that depend on the updated package still compile correctly. The `nixpkgs-review` utility can look for and build all dependencies either based on uncommitted changes with the `wip` option or specifying a GitHub pull request number.
Review changes from pull request number 12345:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review pr 12345"
```
Alternatively, with flakes (and analogously for the other commands below):
```ShellSession
nix run nixpkgs#nixpkgs-review -- pr 12345
```
Review uncommitted changes:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
```
Review changes from last commit:
```ShellSession
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
```
### Tested execution of all binary files (usually in `./result/bin/`) {#submitting-changes-tested-execution}
Its important to test any executables generated by a build when you change or create a package in nixpkgs. This can be done by looking in `./result/bin` and running any files in there, or at a minimum, the main executable for the package. For example, if you make a change to texlive, you probably would only check the binaries associated with the change you made rather than testing all of them.
### Meets Nixpkgs contribution standards {#submitting-changes-contribution-standards}
The last checkbox is fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md). The contributing document has detailed information on standards the Nix community has for commit messages, reviews, licensing of contributions you make to the project, etc... Everyone should read and understand the standards the community has for contributing before submitting a pull request.
## Hotfixing pull requests {#submitting-changes-hotfixing-pull-requests}
- Make the appropriate changes in you branch.
- Dont create additional commits, do
- `git rebase -i`
- `git push --force` to your branch.
## Commit policy {#submitting-changes-commit-policy}
- Commits must be sufficiently tested before being merged, both for the master and staging branches.
- Hydra builds for master and staging should not be used as testing platform, its a build farm for changes that have been already tested.
- When changing the bootloader installation process, extra care must be taken. Grub installations cannot be rolled back, hence changes may break peoples installations forever. For any non-trivial change to the bootloader please file a PR asking for review, especially from \@edolstra.
```{.graphviz caption="Staging workflow"}
digraph {
"small changes" [shape=none]
"mass-rebuilds and other large changes" [shape=none]
"critical security fixes" [shape=none]
"broken staging-next fixes" [shape=none]
"small changes" -> master
"mass-rebuilds and other large changes" -> staging
"critical security fixes" -> master
"broken staging-next fixes" -> "staging-next"
"staging-next" -> master [color="#E85EB0"] [label="stabilization ends"] [fontcolor="#E85EB0"]
"staging" -> "staging-next" [color="#E85EB0"] [label="stabilization starts"] [fontcolor="#E85EB0"]
master -> "staging-next" -> staging [color="#5F5EE8"] [label="every six hours (GitHub Action)"] [fontcolor="#5F5EE8"]
}
```
[This GitHub Action](https://github.com/NixOS/nixpkgs/blob/master/.github/workflows/periodic-merge-6h.yml) brings changes from `master` to `staging-next` and from `staging-next` to `staging` every 6 hours; these are the blue arrows in the diagram above. The purple arrows in the diagram above are done manually and much less frequently. You can get an idea of how often these merges occur by looking at the git history.
### Master branch {#submitting-changes-master-branch}
The `master` branch is the main development branch. It should only see non-breaking commits that do not cause mass rebuilds.
### Staging branch {#submitting-changes-staging-branch}
The `staging` branch is a development branch where mass-rebuilds go. Mass rebuilds are commits that cause rebuilds for many packages, like more than 500 (or perhaps, if it's 'light' packages, 1000). It should only see non-breaking mass-rebuild commits. That means it is not to be used for testing, and changes must have been well tested already. If the branch is already in a broken state, please refrain from adding extra new breakages.
During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes.
### Staging-next branch {#submitting-changes-staging-next-branch}
The `staging-next` branch is for stabilizing mass-rebuilds submitted to the `staging` branch prior to merging them into `master`. Mass-rebuilds must go via the `staging` branch. It must only see non-breaking commits that are fixing issues blocking it from being merged into the `master` branch.
If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days and then merge into master.
During the process of a releasing a new NixOS version, this branch or the release-critical packages can be restricted to non-breaking changes.
### Stable release branches {#submitting-changes-stable-release-branches}
The same staging workflow applies to stable release branches, but the main branch is called `release-*` instead of `master`.
Example branch names: `release-21.11`, `staging-21.11`, `staging-next-21.11`.
Most changes added to the stable release branches are cherry-picked (“backported”) from the `master` and staging branches.
#### Automatically backporting a Pull Request {#submitting-changes-stable-release-branches-automatic-backports}
Assign label `backport <branch>` (e.g. `backport release-21.11`) to the PR and a backport PR is automatically created after the PR is merged.
#### Manually backporting changes {#submitting-changes-stable-release-branches-manual-backports}
Cherry-pick changes via `git cherry-pick -x <original commit>` so that the original commit id is included in the commit message.
Add a reason for the backport when it is not obvious from the original commit message. You can do this by cherry picking with `git cherry-pick -xe <original commit>`, which allows editing the commit message. This is not needed for minor version updates that include security and bug fixes but don't add new features or when the commit fixes an otherwise broken package.
Here is an example of a cherry-picked commit message with good reason description:
```
zfs: Keep trying root import until it works
Works around #11003.
(cherry picked from commit 98b213a11041af39b39473906b595290e2a4e2f9)
Reason: several people cannot boot with ZFS on NVMe
```
Other examples of reasons are:
- Previously the build would fail due to, e.g., `getaddrinfo` not being defined
- The previous download links were all broken
- Crash when starting on some X11 systems
#### Acceptable backport criteria {#acceptable-backport-criteria}
The stable branch does have some changes which cannot be backported. Most notable are breaking changes. The desire is to have stable users be uninterrupted when updating packages.
However, many changes are able to be backported, including:
- New Packages / Modules
- Security / Patch updates
- Version updates which include new functionality (but no breaking changes)
- Services which require a client to be up-to-date regardless. (E.g. `spotify`, `steam`, or `discord`)
- Security critical applications (E.g. `firefox`)

View File

@@ -1,45 +0,0 @@
# Vulnerability Roundup {#chap-vulnerability-roundup}
## Issues {#vulnerability-roundup-issues}
Vulnerable packages in Nixpkgs are managed using issues.
Currently opened ones can be found using the following:
[github.com/NixOS/nixpkgs/issues?q=is:issue+is:open+"Vulnerability+roundup"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+%22Vulnerability+roundup%22)
Each issue correspond to a vulnerable version of a package; As a consequence:
- One issue can contain several CVEs;
- One CVE can be shared across several issues;
- A single package can be concerned by several issues.
A "Vulnerability roundup" issue usually respects the following format:
```txt
<link to relevant package search on search.nix.gsc.io>, <link to relevant files in Nixpkgs on GitHub>
<list of related CVEs, their CVSS score, and the impacted NixOS version>
<list of the scanned Nixpkgs versions>
<list of relevant contributors>
```
Note that there can be an extra comment containing links to previously reported (and still open) issues for the same package.
## Triaging and Fixing {#vulnerability-roundup-triaging-and-fixing}
**Note**: An issue can be a "false positive" (i.e. automatically opened, but without the package it refers to being actually vulnerable).
If you find such a "false positive", comment on the issue an explanation of why it falls into this category, linking as much information as the necessary to help maintainers double check.
If you are investigating a "true positive":
- Find the earliest patched version or a code patch in the CVE details;
- Is the issue already patched (version up-to-date or patch applied manually) in Nixpkgs's `master` branch?
- **No**:
- [Submit a security fix](#submitting-changes-submitting-security-fixes);
- Once the fix is merged into `master`, [submit the change to the vulnerable release branch(es)](https://nixos.org/manual/nixpkgs/stable/#submitting-changes-stable-release-branches);
- **Yes**: [Backport the change to the vulnerable release branch(es)](https://nixos.org/manual/nixpkgs/stable/#submitting-changes-stable-release-branches).
- When the patch has made it into all the relevant branches (`master`, and the vulnerable releases), close the relevant issue(s).

248
doc/cross-compilation.xml Normal file
View File

@@ -0,0 +1,248 @@
<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 this opinion in 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>
<title>Platform parameters</title>
<para>
The three GNU Autoconf platforms, <wordasword>build</wordasword>, <wordasword>host</wordasword>, and <wordasword>target</wordasword>, are historically the result of much confusion.
<link xlink:href="https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html" /> clears this up somewhat but there is more to be said.
An important advice to get out the way is, unless you are packaging a compiler or other build tool, just worry about the build and host platforms.
Dealing with just two platforms usually better matches people's preconceptions, and in this case is completely correct.
</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>.
All three are always defined as attributes in the standard environment, and at the top level. That means one can get at them just like a dependency in a function that is imported with <literal>callPackage</literal>:
<programlisting>{ stdenv, buildPlatform, hostPlatform, fooDep, barDep, .. }: ...buildPlatform...</programlisting>, or just off <varname>stdenv</varname>:
<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 is 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" is black sheep.
The other two intrinsically apply to all compiled software—or any build process with a notion of "build-time" followed by "run-time".
The target platform only applies to programming tools, and even then only is a good for for some of them.
Briefly, GCC, Binutils, GHC, and certain other tools are written in such a way such that a single build can only compile code for a single platform.
Thus, when building them, one must think ahead about which platforms they wish to use the tool to produce machine code for, and build binaries for each.
</para>
<para>
There is no fundamental need to think about the target ahead of time like this.
LLVM, for example, was designed from the beginning with cross-compilation in mind, and so a normal LLVM binary will support every architecture that LLVM supports.
If the tool supports modular or pluggable backends, one might imagine specifying a <emphasis>set</emphasis> of target platforms / backends one wishes to support, rather than a single one.
</para>
<para>
The biggest reason for mess, if there is one, is that many compilers have the bad habit a build process that builds the compiler and standard library/runtime together.
Then the specifying target platform is essential, because it determines the host platform of the standard library/runtime.
Nixpkgs tries to avoid this where possible too, but still, because the concept of a target platform is so ingrained now in Autoconf and other tools, it is best to support it as is.
Tools like LLVM that don't need up-front target platforms can safely ignore it like normal packages, and it will do no harm.
</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>
<title>Specifying Dependencies</title>
<para>
As mentioned in the introduction to this chapter, one can think about a build time vs run time distinction whether cross-compiling or not.
In the case of cross-compilation, this corresponds with whether a derivation running on the native or foreign platform is produced.
An interesting thing to think about is how this corresponds with the three Autoconf platforms.
In the run-time case, the depending and depended-on package simply have matching build, host, and target platforms.
But in the build-time case, one can imagine "sliding" the platforms one over.
The depended-on package's host and target platforms (respectively) become the depending package's build and host platforms.
This is the most important guiding principle behind cross-compilation with Nixpkgs, and will be called the <wordasword>sliding window principle</wordasword>.
In this manner, given the 3 platforms for one package, we can determine the three platforms for all its transitive dependencies.
</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 four attributes used for specifying dependencies as documented in <xref linkend="ssec-stdenv-attributes"/>.
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>
<!--============================================================-->
<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 like <command>nix-build &lt;nixpkgs&gt; --arg crossSystem '(import &lt;nixpkgs/lib&gt;).systems.examples.fooBarBaz'</command>.
</para>
<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,43 +1,113 @@
{ pkgs ? (import ./.. { }), nixpkgs ? { }}:
let
doc-support = import ./doc-support { inherit pkgs nixpkgs; };
in pkgs.stdenv.mkDerivation {
pkgs = import ./.. { };
lib = pkgs.lib;
sources = lib.sourceFilesBySuffices ./. [".xml"];
sources-langs = ./languages-frameworks;
in
pkgs.stdenv.mkDerivation {
name = "nixpkgs-manual";
nativeBuildInputs = with pkgs; [
pandoc
graphviz
libxml2
libxslt
zip
jing
xmlformat
];
src = pkgs.nix-gitignore.gitignoreSource [] ./.;
buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
postPatch = ''
ln -s ${doc-support} ./doc-support/result
xsltFlags = ''
--param section.autolabel 1
--param section.label.includes.component.label 1
--param html.stylesheet 'style.css'
--param xref.with.number.and.title 1
--param toc.section.depth 3
--param admon.style '''
--param callout.graphics.extension '.gif'
'';
preBuild = ''
make -j$NIX_BUILD_CORES render-md
buildCommand = let toDocbook = { useChapters ? false, inputFile, outputFile }:
let
extraHeader = ''xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" '';
in ''
{
pandoc '${inputFile}' -w docbook ${lib.optionalString useChapters "--top-level-division=chapter"} \
--smart \
| sed -e 's|<ulink url=|<link xlink:href=|' \
-e 's|</ulink>|</link>|' \
-e 's|<sect. id=|<section xml:id=|' \
-e 's|</sect[0-9]>|</section>|' \
-e '1s| id=| xml:id=|' \
-e '1s|\(<[^ ]* \)|\1${extraHeader}|'
} > '${outputFile}'
'';
in
''
ln -s '${sources}/'*.xml .
mkdir ./languages-frameworks
cp -s '${sources-langs}'/* ./languages-frameworks
''
+ toDocbook {
inputFile = ./introduction.md;
outputFile = "introduction.xml";
useChapters = true;
}
+ toDocbook {
inputFile = ./languages-frameworks/python.md;
outputFile = "./languages-frameworks/python.xml";
}
+ toDocbook {
inputFile = ./languages-frameworks/haskell.md;
outputFile = "./languages-frameworks/haskell.xml";
}
+ toDocbook {
inputFile = ../pkgs/development/idris-modules/README.md;
outputFile = "languages-frameworks/idris.xml";
}
+ toDocbook {
inputFile = ../pkgs/development/node-packages/README.md;
outputFile = "languages-frameworks/node.xml";
}
+ toDocbook {
inputFile = ../pkgs/development/r-modules/README.md;
outputFile = "languages-frameworks/r.xml";
}
+ toDocbook {
inputFile = ./languages-frameworks/rust.md;
outputFile = "./languages-frameworks/rust.xml";
}
+ toDocbook {
inputFile = ./languages-frameworks/vim.md;
outputFile = "./languages-frameworks/vim.xml";
}
+ ''
echo ${lib.nixpkgsVersion} > .version
# validate against relaxng schema
xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
${pkgs.jing}/bin/jing ${pkgs.docbook5}/xml/rng/docbook/docbook.rng manual-full.xml
dst=$out/share/doc/nixpkgs
mkdir -p $dst
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/manual.html \
${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
./manual.xml
cp ${./style.css} $dst/style.css
mkdir -p $dst/images/callouts
cp "${pkgs.docbook5_xsl}/xml/xsl/docbook/images/callouts/"*.gif $dst/images/callouts/
mkdir -p $out/nix-support
echo "doc manual $dst manual.html" >> $out/nix-support/hydra-build-products
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/epub/ \
${pkgs.docbook5_xsl}/xml/xsl/docbook/epub/docbook.xsl \
./manual.xml
cp -r $dst/images $dst/epub/OEBPS
echo "application/epub+zip" > mimetype
manual="$dst/nixpkgs-manual.epub"
zip -0Xq "$manual" mimetype
cd $dst/epub && zip -Xr9D "$manual" *
rm -rf $dst/epub
'';
installPhase = ''
dest="$out/share/doc/nixpkgs"
mkdir -p "$(dirname "$dest")"
mv out/html "$dest"
mv "$dest/index.html" "$dest/manual.html"
mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
mkdir -p $out/nix-support/
echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
echo "doc manual $dest nixpkgs-manual.epub" >> $out/nix-support/hydra-build-products
'';
# Environment variables
PANDOC_LUA_FILTERS_DIR = "${pkgs.pandoc-lua-filters}/share/pandoc/filters";
PANDOC_LINK_MANPAGES_FILTER = import build-aux/pandoc-filters/link-manpages.nix { inherit pkgs; };
}

View File

@@ -1,84 +0,0 @@
{ pkgs ? (import ../.. {}), nixpkgs ? { }}:
let
inherit (pkgs) lib;
inherit (lib) hasPrefix removePrefix;
libsets = [
{ name = "asserts"; description = "assertion functions"; }
{ name = "attrsets"; description = "attribute set functions"; }
{ name = "strings"; description = "string manipulation functions"; }
{ name = "versions"; description = "version string functions"; }
{ name = "trivial"; description = "miscellaneous functions"; }
{ name = "lists"; description = "list manipulation functions"; }
{ name = "debug"; description = "debugging functions"; }
{ name = "options"; description = "NixOS / nixpkgs option handling"; }
{ name = "path"; description = "path functions"; }
{ name = "filesystem"; description = "filesystem functions"; }
{ name = "sources"; description = "source filtering functions"; }
{ name = "cli"; description = "command-line serialization functions"; }
];
locationsXml = import ./lib-function-locations.nix { inherit pkgs nixpkgs libsets; };
functionDocs = import ./lib-function-docs.nix { inherit locationsXml pkgs libsets; };
version = pkgs.lib.version;
epub-xsl = pkgs.writeText "epub.xsl" ''
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/epub/docbook.xsl" />
<xsl:import href="${./parameters.xml}"/>
</xsl:stylesheet>
'';
xhtml-xsl = pkgs.writeText "xhtml.xsl" ''
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="${pkgs.docbook_xsl_ns}/xml/xsl/docbook/xhtml/docbook.xsl" />
<xsl:import href="${./parameters.xml}"/>
</xsl:stylesheet>
'';
# NB: This file describes the Nixpkgs manual, which happens to use module
# docs infra originally developed for NixOS.
optionsDoc = pkgs.nixosOptionsDoc {
inherit (pkgs.lib.evalModules { modules = [ ../../pkgs/top-level/config.nix ]; }) options;
documentType = "none";
transformOptions = opt:
opt // {
declarations =
map
(decl:
if hasPrefix (toString ../..) (toString decl)
then
let subpath = removePrefix "/" (removePrefix (toString ../..) (toString decl));
in { url = "https://github.com/NixOS/nixpkgs/blob/master/${subpath}"; name = subpath; }
else decl)
opt.declarations;
};
};
in pkgs.runCommand "doc-support" {}
''
mkdir result
(
cd result
ln -s ${locationsXml} ./function-locations.xml
ln -s ${functionDocs} ./function-docs
ln -s ${optionsDoc.optionsDocBook} ./config-options.docbook.xml
ln -s ${pkgs.docbook5}/xml/rng/docbook/docbook.rng ./docbook.rng
ln -s ${pkgs.docbook_xsl_ns}/xml/xsl ./xsl
ln -s ${epub-xsl} ./epub.xsl
ln -s ${xhtml-xsl} ./xhtml.xsl
ln -s ${./xmlformat.conf} ./xmlformat.conf
ln -s ${pkgs.documentation-highlighter} ./highlightjs
echo -n "${version}" > ./version
)
mv result $out
''

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