Merge remote-tracking branch 'upstream/master' into aarch32
commit57723e947a5a935e71e7b0592a88f259e4969336
authorJohn Ericson <John.Ericson@Obsidian.Systems>
dateWed 25 Apr 2018, 15:57 (9 years ago)
parentb9acfb4948c8dc
3949 files changed+103143−63063
949 more files changed are not listed.
.editorconfig+4
@@ -26,3 +26,7 @@ indent_size = 4
2626# Match diffs, avoid to trim trailing whitespace
2727[*.{diff,patch}]
2828trim_trailing_whitespace = false
29+
30+# https://github.com/NixOS/nixpkgs/pull/39336#discussion_r183387754
31+[.version]
32+insert_final_newline = false
.gitattributesnew file+16
@@ -0,0 +1,16 @@
1+**/deps.nix linguist-generated
2+**/node-packages.nix linguist-generated
3+
4+pkgs/applications/editors/emacs-modes/*-generated.nix linguist-generated
5+pkgs/development/r-modules/*-packages.nix linguist-generated
6+pkgs/development/haskell-modules/hackage-packages.nix linguist-generated
7+pkgs/development/beam-modules/hex-packages.nix linguist-generated
8+
9+doc/** linguist-documentation
10+doc/default.nix linguist-documentation=false
11+
12+nixos/doc/** linguist-documentation
13+nixos/doc/default.nix linguist-documentation=false
14+
15+nixos/modules/module-list.nix merge=union
16+# pkgs/top-level/all-packages.nix merge=union
.github/CODEOWNERS+4−1
@@ -13,6 +13,7 @@
1313# Libraries
1414/lib @edolstra @nbp
1515/lib/systems @nbp @ericson2314
16+/lib/generators.nix @edolstra @nbp @Profpatsch
1617
1718# Nixpkgs Internals
1819/default.nix @nbp
@@ -63,6 +64,9 @@
6364/pkgs/development/interpreters/ruby @zimbatm
6465/pkgs/development/ruby-modules @zimbatm
6566
67+# Rust
68+/pkgs/development/compilers/rust @Mic92 @LnL7
69+
6670# Darwin-related
6771/pkgs/stdenv/darwin @NixOS/darwin-maintainers
6872/pkgs/os-specific/darwin @NixOS/darwin-maintainers
@@ -83,7 +87,6 @@
8387/pkgs/applications/editors/eclipse @rycee
8488
8589# https://github.com/NixOS/nixpkgs/issues/31401
86−/lib/maintainers.nix @ghost
8790/lib/licenses.nix @ghost
8891
8992# Qt / KDE
.version+1−1
@@ -1 +1 @@
1−18.03
1+18.09
README.md+4−4
@@ -12,12 +12,12 @@ build daemon as so-called channels. To get channel information via git, add
1212```
1313
1414For stability and maximum binary package support, it is recommended to maintain
15−custom changes on top of one of the channels, e.g. `nixos-17.09` for the latest
15+custom changes on top of one of the channels, e.g. `nixos-18.03` for the latest
1616release and `nixos-unstable` for the latest successful build of master:
1717
1818```
1919% git remote update channels
20−% git rebase channels/nixos-17.09
20+% git rebase channels/nixos-18.03
2121```
2222
2323For pull-requests, please rebase onto nixpkgs `master`.
@@ -31,9 +31,9 @@ For pull-requests, please rebase onto nixpkgs `master`.
3131* [Manual (NixOS)](https://nixos.org/nixos/manual/)
3232* [Community maintained wiki](https://nixos.wiki/)
3333* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
34−* [Continuous package builds for 17.09 release](https://hydra.nixos.org/jobset/nixos/release-17.09)
34+* [Continuous package builds for 18.03 release](https://hydra.nixos.org/jobset/nixos/release-18.03)
3535* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
36−* [Tests for 17.09 release](https://hydra.nixos.org/job/nixos/release-17.09/tested#tabs-constituents)
36+* [Tests for 18.03 release](https://hydra.nixos.org/job/nixos/release-18.03/tested#tabs-constituents)
3737
3838Communication:
3939
doc/.gitignorenew file+6
@@ -0,0 +1,6 @@
1+*.chapter.xml
2+*.section.xml
3+.version
4+out
5+manual-full.xml
6+highlightjs
doc/Makefilenew file+90
@@ -0,0 +1,90 @@
1+MD_TARGETS=$(addsuffix .xml, $(basename $(wildcard ./*.md ./**/*.md)))
2+
3+.PHONY: all
4+all: validate out/html/index.html out/epub/manual.epub
5+
6+.PHONY: debug
7+debug:
8+ nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
9+
10+.PHONY: clean
11+clean:
12+ rm -f ${MD_TARGETS} .version manual-full.xml
13+ rm -rf ./out/ ./highlightjs
14+
15+.PHONY: validate
16+validate: manual-full.xml
17+ jing "$$RNG" manual-full.xml
18+
19+out/html/index.html: manual-full.xml style.css highlightjs
20+ mkdir -p out/html
21+ xsltproc ${xsltFlags} \
22+ --nonet --xinclude \
23+ --output $@ \
24+ "$$XSL/docbook/xhtml/docbook.xsl" \
25+ ./manual-full.xml
26+
27+ mkdir -p out/html/highlightjs/
28+ cp -r highlightjs out/html/
29+
30+ cp ./overrides.css out/html/
31+ cp ./style.css out/html/style.css
32+
33+ mkdir -p out/html/images/callouts
34+ cp "$$XSL/docbook/images/callouts/"*.svg out/html/images/callouts/
35+ chmod u+w -R out/html/
36+
37+out/epub/manual.epub: manual-full.xml
38+ mkdir -p out/epub/scratch
39+ xsltproc ${xsltFlags} --nonet \
40+ --output out/epub/scratch/ \
41+ "$$XSL/docbook/epub/docbook.xsl" \
42+ ./manual-full.xml
43+
44+ cp ./overrides.css out/epub/scratch/OEBPS
45+ cp ./style.css out/epub/scratch/OEBPS
46+ mkdir -p out/epub/scratch/OEBPS/images/callouts/
47+ cp "$$XSL/docbook/images/callouts/"*.svg out/epub/scratch/OEBPS/images/callouts/
48+ echo "application/epub+zip" > mimetype
49+ zip -0Xq "out/epub/manual.epub" mimetype
50+ rm mimetype
51+ cd "out/epub/scratch/" && zip -Xr9D "../manual.epub" *
52+ rm -rf "out/epub/scratch/"
53+
54+highlightjs:
55+ mkdir -p highlightjs
56+ cp -r "$$HIGHLIGHTJS/highlight.pack.js" highlightjs/
57+ cp -r "$$HIGHLIGHTJS/LICENSE" highlightjs/
58+ cp -r "$$HIGHLIGHTJS/mono-blue.css" highlightjs/
59+ cp -r "$$HIGHLIGHTJS/loader.js" highlightjs/
60+
61+
62+manual-full.xml: ${MD_TARGETS} .version *.xml
63+ xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
64+
65+.version:
66+ nix-instantiate --eval \
67+ -E '(import ../lib).nixpkgsVersion' > .version
68+
69+%.section.xml: %.section.md
70+ pandoc $^ -w docbook+smart \
71+ -f markdown+smart \
72+ | sed -e 's|<ulink url=|<link xlink:href=|' \
73+ -e 's|</ulink>|</link>|' \
74+ -e 's|<sect. id=|<section xml:id=|' \
75+ -e 's|</sect[0-9]>|</section>|' \
76+ -e '1s| id=| xml:id=|' \
77+ -e '1s|\(<[^ ]* \)|\1xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" |' \
78+ | cat > $@
79+
80+%.chapter.xml: %.chapter.md
81+ pandoc $^ -w docbook+smart \
82+ --top-level-division=chapter \
83+ -f markdown+smart \
84+ | sed -e 's|<ulink url=|<link xlink:href=|' \
85+ -e 's|</ulink>|</link>|' \
86+ -e 's|<sect. id=|<section xml:id=|' \
87+ -e 's|</sect[0-9]>|</section>|' \
88+ -e '1s| id=| xml:id=|' \
89+ -e '1s|\(<[^ ]* \)|\1|' \
90+ | cat > $@
doc/configuration.xml+39−1
@@ -14,6 +14,8 @@ true:</para>
1414 its <literal>meta.broken</literal> set to
1515 <literal>true</literal>.</para></listitem>
1616
17+ <listitem><para>The package isn't intended to run on the given system, as none of its <literal>meta.platforms</literal> match the given system.</para></listitem>
18+
1719 <listitem><para>The package's <literal>meta.license</literal> is set
1820 to a license which is considered to be unfree.</para></listitem>
1921
@@ -88,6 +90,42 @@ distributing the software.</para>
8890 </itemizedlist>
8991</section>
9092
93+<section xml:id="sec-allow-unsupported-system">
94+ <title>Installing packages on unsupported systems</title>
95+
96+
97+ <para>
98+ There are also two ways to try compiling a package which has been marked as unsuported for the given system.
99+ </para>
100+
101+ <itemizedlist>
102+ <listitem><para>
103+ For allowing the build of a broken package once, you can use an environment variable for a single invocation of the nix tools:
104+
105+ <programlisting>$ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1</programlisting>
106+ </para></listitem>
107+
108+ <listitem>
109+ <para>
110+ For permanently allowing broken packages to be built, you may add <literal>allowUnsupportedSystem = true;</literal> to your user's configuration file, like this:
111+
112+<programlisting>
113+{
114+ allowUnsupportedSystem = true;
115+}
116+</programlisting>
117+ </para>
118+ </listitem>
119+ </itemizedlist>
120+
121+ <para>
122+ The difference between an a package being unsupported on some system and being broken is admittedly a bit fuzzy.
123+ If a program <emphasis>ought</emphasis> to work on a certain platform, but doesn't, the platform should be included in <literal>meta.platforms</literal>, but marked as broken with e.g. <literal>meta.broken = !hostPlatform.isWindows</literal>.
124+ Of course, this begs the question of what "ought" means exactly.
125+ That is left to the package maintainer.
126+ </para>
127+</section>
128+
91129<section xml:id="sec-allow-unfree">
92130 <title>Installing unfree packages</title>
93131
@@ -397,7 +435,7 @@ fi
397435 </para>
398436
399437 </section>
400−
438+
401439 <section xml:id="sec-gnu-info-setup">
402440 <title>GNU info setup</title>
403441
doc/contributing.xml+19−4
@@ -6,12 +6,27 @@
66
77<para>The DocBook sources of the Nixpkgs manual are in the <filename
88xlink:href="https://github.com/NixOS/nixpkgs/tree/master/doc">doc</filename>
9−subdirectory of the Nixpkgs repository. If you make modifications to
10−the manual, it's important to build it before committing. You can do that as follows:
9+subdirectory of the Nixpkgs repository.</para>
10+
11+<para>You can quickly check your edits with <command>make</command>:</para>
12+
13+<screen>
14+ $ cd /path/to/nixpkgs/doc
15+ $ nix-shell
16+ [nix-shell]$ make
17+</screen>
18+
19+<para>If you experience problems, run <command>make debug</command>
20+to help understand the docbook errors.</para>
21+
22+<para>After making modifications to the manual, it's important to
23+build it before committing. You can do that as follows:
1124
1225<screen>
13−$ cd /path/to/nixpkgs
14−$ nix-build doc
26+ $ cd /path/to/nixpkgs/doc
27+ $ nix-shell
28+ [nix-shell]$ make clean
29+ [nix-shell]$ nix-build .
1530</screen>
1631
1732If the build succeeds, the manual will be in
doc/default.nix+32−103
@@ -7,112 +7,41 @@ in
77pkgs.stdenv.mkDerivation {
88 name = "nixpkgs-manual";
99
10−
11− buildInputs = with pkgs; [ pandoc libxml2 libxslt zip ];
12−
13− xsltFlags = ''
14− --param section.autolabel 1
15− --param section.label.includes.component.label 1
16− --param html.stylesheet 'style.css'
17− --param xref.with.number.and.title 1
18− --param toc.section.depth 3
19− --param admon.style '''
20− --param callout.graphics.extension '.gif'
21− '';
22−
23−
24− buildCommand = let toDocbook = { useChapters ? false, inputFile, outputFile }:
25− let
26− extraHeader = lib.optionalString (!useChapters)
27− ''xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" '';
28− in ''
29− {
30− pandoc '${inputFile}' -w docbook+smart ${lib.optionalString useChapters "--top-level-division=chapter"} \
31− -f markdown+smart \
32− | sed -e 's|<ulink url=|<link xlink:href=|' \
33− -e 's|</ulink>|</link>|' \
34− -e 's|<sect. id=|<section xml:id=|' \
35− -e 's|</sect[0-9]>|</section>|' \
36− -e '1s| id=| xml:id=|' \
37− -e '1s|\(<[^ ]* \)|\1${extraHeader}|'
38− } > '${outputFile}'
39− '';
40− in
41−
42− ''
43− ln -s '${sources}/'*.xml .
44− mkdir ./languages-frameworks
45− cp -s '${sources-langs}'/* ./languages-frameworks
46− ''
47− + toDocbook {
48− inputFile = ./introduction.md;
49− outputFile = "introduction.xml";
50− useChapters = true;
51− }
52− + toDocbook {
53− inputFile = ./shell.md;
54− outputFile = "shell.xml";
55− }
56− + toDocbook {
57− inputFile = ./languages-frameworks/python.md;
58− outputFile = "./languages-frameworks/python.xml";
59− }
60− + toDocbook {
61− inputFile = ./languages-frameworks/haskell.md;
62− outputFile = "./languages-frameworks/haskell.xml";
63− }
64− + toDocbook {
65− inputFile = ../pkgs/development/idris-modules/README.md;
66− outputFile = "languages-frameworks/idris.xml";
67− }
68− + toDocbook {
69− inputFile = ../pkgs/development/node-packages/README.md;
70− outputFile = "languages-frameworks/node.xml";
71− }
72− + toDocbook {
73− inputFile = ../pkgs/development/r-modules/README.md;
74− outputFile = "languages-frameworks/r.xml";
75− }
76− + toDocbook {
77− inputFile = ./languages-frameworks/rust.md;
78− outputFile = "./languages-frameworks/rust.xml";
79− }
80− + toDocbook {
81− inputFile = ./languages-frameworks/vim.md;
82− outputFile = "./languages-frameworks/vim.xml";
83− }
84− + ''
10+ buildInputs = with pkgs; [ pandoc libxml2 libxslt zip jing ];
11+
12+ src = ./.;
13+
14+ # Hacking on these variables? Make sure to close and open
15+ # nix-shell between each test, maybe even:
16+ # $ nix-shell --run "make clean all"
17+ # otherwise they won't reapply :)
18+ HIGHLIGHTJS = pkgs.documentation-highlighter;
19+ XSL = "${pkgs.docbook5_xsl}/xml/xsl";
20+ RNG = "${pkgs.docbook5}/xml/rng/docbook/docbook.rng";
21+ xsltFlags = lib.concatStringsSep " " [
22+ "--param section.autolabel 1"
23+ "--param section.label.includes.component.label 1"
24+ "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
25+ "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
26+ "--param xref.with.number.and.title 1"
27+ "--param toc.section.depth 3"
28+ "--stringparam admon.style ''"
29+ "--stringparam callout.graphics.extension .svg"
30+ ];
31+
32+ postPatch = ''
8533 echo ${lib.nixpkgsVersion} > .version
34+ '';
8635
87− # validate against relaxng schema
88− xmllint --nonet --xinclude --noxincludenode manual.xml --output manual-full.xml
89− ${pkgs.jing}/bin/jing ${pkgs.docbook5}/xml/rng/docbook/docbook.rng manual-full.xml
90−
91− dst=$out/share/doc/nixpkgs
92− mkdir -p $dst
93− xsltproc $xsltFlags --nonet --xinclude \
94− --output $dst/manual.html \
95− ${pkgs.docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
96− ./manual.xml
97−
98− cp ${./style.css} $dst/style.css
99−
100− mkdir -p $dst/images/callouts
101− cp "${pkgs.docbook5_xsl}/xml/xsl/docbook/images/callouts/"*.gif $dst/images/callouts/
102−
103− mkdir -p $out/nix-support
104− echo "doc manual $dst manual.html" >> $out/nix-support/hydra-build-products
36+ installPhase = ''
37+ dest="$out/share/doc/nixpkgs"
38+ mkdir -p "$(dirname "$dest")"
39+ mv out/html "$dest"
40+ mv "$dest/index.html" "$dest/manual.html"
10541
106− xsltproc $xsltFlags --nonet --xinclude \
107− --output $dst/epub/ \
108− ${pkgs.docbook5_xsl}/xml/xsl/docbook/epub/docbook.xsl \
109− ./manual.xml
42+ mv out/epub/manual.epub "$dest/nixpkgs-manual.epub"
11043
111− cp -r $dst/images $dst/epub/OEBPS
112− echo "application/epub+zip" > mimetype
113− manual="$dst/nixpkgs-manual.epub"
114− zip -0Xq "$manual" mimetype
115− cd $dst/epub && zip -Xr9D "$manual" *
116− rm -rf $dst/epub
44+ mkdir -p $out/nix-support/
45+ echo "doc manual $dest manual.html" >> $out/nix-support/hydra-build-products
11746 '';
11847}
doc/functions.xml+57−4
@@ -221,16 +221,69 @@
221221
222222 <para>
223223 All generators follow a similar call interface: <code>generatorName
224− configFunctions data</code>, where <literal>configFunctions</literal> is a
225− set of user-defined functions that format variable parts of the content.
224+ configFunctions data</code>, where <literal>configFunctions</literal> is
225+ an attrset of user-defined functions that format nested parts of the
226+ content.
226227 They each have common defaults, so often they do not need to be set
227228 manually. An example is <code>mkSectionName ? (name: libStr.escape [ "[" "]"
228− ] name)</code> from the <literal>INI</literal> generator. It gets the name
229− of a section and returns a sanitized name. The default
229+ ] name)</code> from the <literal>INI</literal> generator. It receives the
230+ name of a section and sanitizes it. The default
230231 <literal>mkSectionName</literal> escapes <literal>[</literal> and
231232 <literal>]</literal> with a backslash.
232233 </para>
233234
235+ <para>
236+ Generators can be fine-tuned to produce exactly the file format required
237+ by your application/service. One example is an INI-file format which uses
238+ <literal>: </literal> as separator, the strings
239+ <literal>"yes"</literal>/<literal>"no"</literal> as boolean values
240+ and requires all string values to be quoted:
241+ </para>
242+
243+<programlisting>
244+with lib;
245+let
246+ customToINI = generators.toINI {
247+ # specifies how to format a key/value pair
248+ mkKeyValue = generators.mkKeyValueDefault {
249+ # specifies the generated string for a subset of nix values
250+ mkValueString = v:
251+ if v == true then ''"yes"''
252+ else if v == false then ''"no"''
253+ else if isString v then ''"${v}"''
254+ # and delegats all other values to the default generator
255+ else generators.mkValueStringDefault {} v;
256+ } ":";
257+ };
258+
259+# the INI file can now be given as plain old nix values
260+in customToINI {
261+ main = {
262+ pushinfo = true;
263+ autopush = false;
264+ host = "localhost";
265+ port = 42;
266+ };
267+ mergetool = {
268+ merge = "diff3";
269+ };
270+}
271+</programlisting>
272+
273+ <para>This will produce the following INI file as nix string:</para>
274+
275+<programlisting>
276+[main]
277+autopush:"no"
278+host:"localhost"
279+port:42
280+pushinfo:"yes"
281+str\:ange:"very::strange"
282+
283+[mergetool]
284+merge:"diff3"
285+</programlisting>
286+
234287 <note><para>Nix store paths can be converted to strings by enclosing a
235288 derivation attribute like so: <code>"${drv}"</code>.</para></note>
236289
doc/introduction.md → doc/introduction.chapter.mdrenamed
The content is the same.
doc/languages-frameworks/emscripten.section.mdnew file+185
@@ -0,0 +1,185 @@
1+# User's Guide to Emscripten in Nixpkgs
2+
3+[Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler
4+
5+This section of the manual covers how to use `emscripten` in nixpkgs.
6+
7+Minimal requirements:
8+
9+* nix
10+* nixpkgs
11+
12+Modes of use of `emscripten`:
13+
14+* **Imperative usage** (on the command line):
15+
16+ If you want to work with `emcc`, `emconfigure` and `emmake` as you are used to from Ubuntu and similar distributions you can use these commands:
17+
18+ * `nix-env -i emscripten`
19+ * `nix-shell -p emscripten`
20+
21+* **Declarative usage**:
22+
23+ This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`.
24+ * build and install all packages:
25+ * `nix-env -iA emscriptenPackages`
26+
27+ * dev-shell for zlib implementation hacking:
28+ * `nix-shell -A emscriptenPackages.zlib`
29+
30+
31+## Imperative usage
32+
33+A few things to note:
34+
35+* `export EMCC_DEBUG=2` is nice for debugging
36+* `~/.emscripten`, the build artifact cache sometimes creates issues and needs to be removed from time to time
37+
38+
39+## Declarative usage
40+
41+Let's see two different examples from `pkgs/top-level/emscripten-packages.nix`:
42+
43+* `pkgs.zlib.override`
44+* `pkgs.buildEmscriptenPackage`
45+
46+Both are interesting concepts.
47+
48+A special requirement of the `pkgs.buildEmscriptenPackage` is the `doCheck = true` is a default meaning that each emscriptenPackage requires a `checkPhase` implemented.
49+
50+* Use `export EMCC_DEBUG=2` from within a emscriptenPackage's `phase` to get more detailed debug output what is going wrong.
51+* ~/.emscripten cache is requiring us to set `HOME=$TMPDIR` in individual phases. This makes compilation slower but also makes it more deterministic.
52+
53+### Usage 1: pkgs.zlib.override
54+
55+This example uses `zlib` from nixpkgs but instead of compiling **C** to **ELF** it compiles **C** to **JS** since we were using `pkgs.zlib.override` and changed stdenv to `pkgs.emscriptenStdenv`. A few adaptions and hacks were set in place to make it working. One advantage is that when `pkgs.zlib` is updated, it will automatically update this package as well. However, this can also be the downside...
56+
57+See the `zlib` example:
58+
59+ zlib = (pkgs.zlib.override {
60+ stdenv = pkgs.emscriptenStdenv;
61+ }).overrideDerivation
62+ (old: rec {
63+ buildInputs = old.buildInputs ++ [ pkgconfig ];
64+ # we need to reset this setting!
65+ NIX_CFLAGS_COMPILE="";
66+ configurePhase = ''
67+ # FIXME: Some tests require writing at $HOME
68+ HOME=$TMPDIR
69+ runHook preConfigure
70+
71+ #export EMCC_DEBUG=2
72+ emconfigure ./configure --prefix=$out --shared
73+
74+ runHook postConfigure
75+ '';
76+ dontStrip = true;
77+ outputs = [ "out" ];
78+ buildPhase = ''
79+ emmake make
80+ '';
81+ installPhase = ''
82+ emmake make install
83+ '';
84+ checkPhase = ''
85+ echo "================= testing zlib using node ================="
86+
87+ echo "Compiling a custom test"
88+ set -x
89+ emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 test/example.c -DZ_SOLO \
90+ libz.so.${old.version} -I . -o example.js
91+
92+ echo "Using node to execute the test"
93+ ${pkgs.nodejs}/bin/node ./example.js
94+
95+ set +x
96+ if [ $? -ne 0 ]; then
97+ echo "test failed for some reason"
98+ exit 1;
99+ else
100+ echo "it seems to work! very good."
101+ fi
102+ echo "================= /testing zlib using node ================="
103+ '';
104+
105+ postPatch = pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
106+ substituteInPlace configure \
107+ --replace '/usr/bin/libtool' 'ar' \
108+ --replace 'AR="libtool"' 'AR="ar"' \
109+ --replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
110+ '';
111+ });
112+
113+### Usage 2: pkgs.buildEmscriptenPackage
114+
115+This `xmlmirror` example features a emscriptenPackage which is defined completely from this context and no `pkgs.zlib.override` is used.
116+
117+ xmlmirror = pkgs.buildEmscriptenPackage rec {
118+ name = "xmlmirror";
119+
120+ buildInputs = [ pkgconfig autoconf automake libtool gnumake libxml2 nodejs openjdk json_c ];
121+ nativeBuildInputs = [ pkgconfig zlib ];
122+
123+ src = pkgs.fetchgit {
124+ url = "https://gitlab.com/odfplugfest/xmlmirror.git";
125+ rev = "4fd7e86f7c9526b8f4c1733e5c8b45175860a8fd";
126+ sha256 = "1jasdqnbdnb83wbcnyrp32f36w3xwhwp0wq8lwwmhqagxrij1r4b";
127+ };
128+
129+ configurePhase = ''
130+ rm -f fastXmlLint.js*
131+ # a fix for ERROR:root:For asm.js, TOTAL_MEMORY must be a multiple of 16MB, was 234217728
132+ # https://gitlab.com/odfplugfest/xmlmirror/issues/8
133+ sed -e "s/TOTAL_MEMORY=234217728/TOTAL_MEMORY=268435456/g" -i Makefile.emEnv
134+ # https://github.com/kripken/emscripten/issues/6344
135+ # https://gitlab.com/odfplugfest/xmlmirror/issues/9
136+ sed -e "s/\$(JSONC_LDFLAGS) \$(ZLIB_LDFLAGS) \$(LIBXML20_LDFLAGS)/\$(JSONC_LDFLAGS) \$(LIBXML20_LDFLAGS) \$(ZLIB_LDFLAGS) /g" -i Makefile.emEnv
137+ # https://gitlab.com/odfplugfest/xmlmirror/issues/11
138+ sed -e "s/-o fastXmlLint.js/-s EXTRA_EXPORTED_RUNTIME_METHODS='[\"ccall\", \"cwrap\"]' -o fastXmlLint.js/g" -i Makefile.emEnv
139+ '';
140+
141+ buildPhase = ''
142+ HOME=$TMPDIR
143+ make -f Makefile.emEnv
144+ '';
145+
146+ outputs = [ "out" "doc" ];
147+
148+ installPhase = ''
149+ mkdir -p $out/share
150+ mkdir -p $doc/share/${name}
151+
152+ cp Demo* $out/share
153+ cp -R codemirror-5.12 $out/share
154+ cp fastXmlLint.js* $out/share
155+ cp *.xsd $out/share
156+ cp *.js $out/share
157+ cp *.xhtml $out/share
158+ cp *.html $out/share
159+ cp *.json $out/share
160+ cp *.rng $out/share
161+ cp README.md $doc/share/${name}
162+ '';
163+ checkPhase = ''
164+
165+ '';
166+ };
167+
168+### Declarative debugging
169+
170+Use `nix-shell -I nixpkgs=/some/dir/nixpkgs -A emscriptenPackages.libz` and from there you can go trough the individual steps. This makes it easy to build a good `unit test` or list the files of the project.
171+
172+1. `nix-shell -I nixpkgs=/some/dir/nixpkgs -A emscriptenPackages.libz`
173+2. `cd /tmp/`
174+3. `unpackPhase`
175+4. cd libz-1.2.3
176+5. `configurePhase`
177+6. `buildPhase`
178+7. ... happy hacking...
179+
180+## Summary
181+
182+Using this toolchain makes it easy to leverage `nix` from NixOS, MacOSX or even Windows (WSL+ubuntu+nix). This toolchain is reproducible, behaves like the rest of the packages from nixpkgs and contains a set of well working examples to learn and adapt from.
183+
184+If in trouble, ask the maintainers.
185+
doc/languages-frameworks/haskell.md → doc/languages-frameworks/haskell.section.mdrenamed+51−3
@@ -666,6 +666,56 @@ prefer one built with GHC 7.8.x in the first place. However, for users who
666666cannot use GHC 7.10.x at all for some reason, the approach of downgrading to an
667667older version might be useful.
668668
669+### How to override packages in all compiler-specific package sets
670+
671+In the previous section we learned how to override a package in a single
672+compiler-specific package set. You may have some overrides defined that you want
673+to use across multiple package sets. To accomplish this you could use the
674+technique that we learned in the previous section by repeating the overrides for
675+all the compiler-specific package sets. For example:
676+
677+```nix
678+{
679+ packageOverrides = super: let self = super.pkgs; in
680+ {
681+ haskell = super.haskell // {
682+ packages = super.haskell.packages // {
683+ ghc784 = super.haskell.packages.ghc784.override {
684+ overrides = self: super: {
685+ my-package = ...;
686+ my-other-package = ...;
687+ };
688+ };
689+ ghc822 = super.haskell.packages.ghc784.override {
690+ overrides = self: super: {
691+ my-package = ...;
692+ my-other-package = ...;
693+ };
694+ };
695+ ...
696+ };
697+ };
698+ };
699+}
700+```
701+
702+However there's a more convenient way to override all compiler-specific package
703+sets at once:
704+
705+```nix
706+{
707+ packageOverrides = super: let self = super.pkgs; in
708+ {
709+ haskell = super.haskell // {
710+ packageOverrides = self: super: {
711+ my-package = ...;
712+ my-other-package = ...;
713+ };
714+ };
715+ };
716+}
717+```
718+
669719### How to recover from GHC's infamous non-deterministic library ID bug
670720
671721GHC and distributed build farms don't get along well:
@@ -689,9 +739,7 @@ might be necessary to purge the local caches that store data from those
689739machines to disable these binary channels for the duration of the previous
690740command, i.e. by running:
691741```shell
692−rm /nix/var/nix/binary-cache-v3.sqlite
693−rm /nix/var/nix/manifests/*
694−rm /nix/var/nix/channel-cache/*
742+rm ~/.cache/nix/binary-cache*.sqlite
695743```
696744
697745### Builds on Darwin fail with `math.h` not found
doc/languages-frameworks/idris.section.mdnew file+39
@@ -0,0 +1,39 @@
1+Idris packages
2+==============
3+
4+This directory contains build rules for idris packages. In addition,
5+it contains several functions to build and compose those packages.
6+Everything is exposed to the user via the `idrisPackages` attribute.
7+
8+callPackage
9+------------
10+
11+This is like the normal nixpkgs callPackage function, specialized to
12+idris packages.
13+
14+builtins
15+---------
16+
17+This is a list of all of the libraries that come packaged with Idris
18+itself.
19+
20+build-idris-package
21+--------------------
22+
23+A function to build an idris package. Its sole argument is a set like
24+you might pass to `stdenv.mkDerivation`, except `build-idris-package`
25+sets several attributes for you. See `build-idris-package.nix` for
26+details.
27+
28+build-builtin-package
29+----------------------
30+
31+A version of `build-idris-package` specialized to builtin libraries.
32+Mostly for internal use.
33+
34+with-packages
35+-------------
36+
37+Bundle idris together with a list of packages. Because idris currently
38+only supports a single directory in its library path, you must include
39+all desired libraries here, including `prelude` and `base`.
doc/languages-frameworks/index.xml+8−7
@@ -17,19 +17,20 @@ such as Perl or Haskell. These are described in this chapter.</para>
1717<xi:include href="bower.xml" />
1818<xi:include href="coq.xml" />
1919<xi:include href="go.xml" />
20−<xi:include href="haskell.xml" />
21−<xi:include href="idris.xml" /> <!-- generated from ../../pkgs/development/idris-modules/README.md -->
20+<xi:include href="haskell.section.xml" />
21+<xi:include href="idris.section.xml" />
2222<xi:include href="java.xml" />
2323<xi:include href="lua.xml" />
24−<xi:include href="node.xml" /> <!-- generated from ../../pkgs/development/node-packages/README.md -->
24+<xi:include href="node.section.xml" />
2525<xi:include href="perl.xml" />
26−<xi:include href="python.xml" />
26+<xi:include href="python.section.xml" />
2727<xi:include href="qt.xml" />
28−<xi:include href="r.xml" /> <!-- generated from ../../pkgs/development/r-modules/README.md -->
28+<xi:include href="r.section.xml" />
2929<xi:include href="ruby.xml" />
30−<xi:include href="rust.xml" />
30+<xi:include href="rust.section.xml" />
3131<xi:include href="texlive.xml" />
32−<xi:include href="vim.xml" />
32+<xi:include href="vim.section.xml" />
33+<xi:include href="emscripten.section.xml" />
3334
3435
3536</chapter>
doc/languages-frameworks/java.xml+1−10
@@ -62,16 +62,7 @@ depending on the JDK at runtime.</para>
6262
6363<para>It is possible to use a different Java compiler than
6464<command>javac</command> from the OpenJDK. For instance, to use the
65−Eclipse Java Compiler:
66−
67−<programlisting>
68−buildInputs = [ jre ant ecj ];
69−</programlisting>
70−
71−(Note that here you don’t need the full JDK as an input, but just the
72−JRE.) The ECJ has a stdenv setup hook that sets some environment
73−variables to cause Ant to use ECJ, but this doesn’t work with all Ant
74−files. Similarly, you can use the GNU Java Compiler:
65+GNU Java Compiler:
7566
7667<programlisting>
7768buildInputs = [ gcj ant ];
doc/languages-frameworks/node.section.mdnew file+51
@@ -0,0 +1,51 @@
1+Node.js packages
2+================
3+The `pkgs/development/node-packages` folder contains a generated collection of
4+[NPM packages](https://npmjs.com/) that can be installed with the Nix package
5+manager.
6+
7+As a rule of thumb, the package set should only provide *end user* software
8+packages, such as command-line utilities. Libraries should only be added to the
9+package set if there is a non-NPM package that requires it.
10+
11+When it is desired to use NPM libraries in a development project, use the
12+`node2nix` generator directly on the `package.json` configuration file of the
13+project.
14+
15+The package set also provides support for multiple Node.js versions. The policy
16+is that a new package should be added to the collection for the latest stable LTS
17+release (which is currently 6.x), unless there is an explicit reason to support
18+a different release.
19+
20+If your package uses native addons, you need to examine what kind of native
21+build system it uses. Here are some examples:
22+
23+* `node-gyp`
24+* `node-gyp-builder`
25+* `node-pre-gyp`
26+
27+After you have identified the correct system, you need to override your package
28+expression while adding in build system as a build input. For example, `dat`
29+requires `node-gyp-build`, so we override its expression in `default-v6.nix`:
30+
31+```nix
32+dat = nodePackages.dat.override (oldAttrs: {
33+ buildInputs = oldAttrs.buildInputs ++ [ nodePackages.node-gyp-build ];
34+});
35+```
36+
37+To add a package from NPM to nixpkgs:
38+
39+ 1. Modify `pkgs/development/node-packages/node-packages-v6.json` to add, update
40+ or remove package entries. (Or `pkgs/development/node-packages/node-packages-v4.json`
41+ for packages depending on Node.js 4.x)
42+ 2. Run the script: `(cd pkgs/development/node-packages && ./generate.sh)`.
43+ 3. Build your new package to test your changes:
44+ `cd /path/to/nixpkgs && nix-build -A nodePackages.<new-or-updated-package>`.
45+ To build against a specific Node.js version (e.g. 4.x):
46+ `nix-build -A nodePackages_4_x.<new-or-updated-package>`
47+ 4. Add and commit all modified and generated files.
48+
49+For more information about the generation process, consult the
50+[README.md](https://github.com/svanderburg/node2nix) file of the `node2nix`
51+tool.
doc/languages-frameworks/perl.xml+14
@@ -177,5 +177,19 @@ you need it.</para>
177177
178178</section>
179179
180+<section xml:id="ssec-perl-cross-compilation"><title>Cross-compiling modules</title>
181+
182+<para>Nixpkgs has experimental support for cross-compiling Perl
183+modules. In many cases, it will just work out of the box, even for
184+modules with native extensions. Sometimes, however, the Makefile.PL
185+for a module may (indirectly) import a native module. In that case,
186+you will need to make a stub for that module that will satisfy the
187+Makefile.PL and install it into
188+<filename>lib/perl5/site_perl/cross_perl/${perl.version}</filename>.
189+See the <varname>postInstall</varname> for <varname>DBI</varname> for
190+an example.</para>
191+
192+</section>
193+
180194</section>
181195
doc/languages-frameworks/python.md → doc/languages-frameworks/python.section.mdrenamed+6−4
@@ -374,7 +374,7 @@ and `CFLAGS`.
374374 description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
375375 homepage = http://hgomersall.github.com/pyFFTW/;
376376 license = with licenses; [ bsd2 bsd3 ];
377− maintainer = with maintainers; [ fridh ];
377+ maintainers = with maintainers; [ fridh ];
378378 };
379379 };
380380}
@@ -871,8 +871,10 @@ Executing `python setup.py bdist_wheel` in a `nix-shell `fails with
871871```
872872ValueError: ZIP does not support timestamps before 1980
873873```
874−This is because files are included that depend on items in the Nix store which have a timestamp of, that is, it corresponds to January the 1st, 1970 at 00:00:00. And as the error informs you, ZIP does not support that.
875−The command `bdist_wheel` takes into account `SOURCE_DATE_EPOCH`, and `nix-shell` sets this to 1. By setting it to a value corresponding to 1980 or later, or by unsetting it, it is possible to build wheels.
874+
875+This is because files from the Nix store (which have a timestamp of the UNIX epoch of January 1, 1970) are included in the .ZIP, but .ZIP archives follow the DOS convention of counting timestamps from 1980.
876+
877+The command `bdist_wheel` reads the `SOURCE_DATE_EPOCH` environment variable, which `nix-shell` sets to 1. Unsetting this variable or giving it a value corresponding to 1980 or later enables building wheels.
876878
877879Use 1980 as timestamp:
878880```shell
@@ -882,7 +884,7 @@ or the current time:
882884```shell
883885nix-shell --run "SOURCE_DATE_EPOCH=$(date +%s) python3 setup.py bdist_wheel"
884886```
885−or unset:
887+or unset `SOURCE_DATE_EPOCH`:
886888```shell
887889nix-shell --run "unset SOURCE_DATE_EPOCH; python3 setup.py bdist_wheel"
888890```
doc/languages-frameworks/r.section.mdnew file+120
@@ -0,0 +1,120 @@
1+R packages
2+==========
3+
4+## Installation
5+
6+Define an environment for R that contains all the libraries that you'd like to
7+use by adding the following snippet to your $HOME/.config/nixpkgs/config.nix file:
8+
9+```nix
10+{
11+ packageOverrides = super: let self = super.pkgs; in
12+ {
13+
14+ rEnv = super.rWrapper.override {
15+ packages = with self.rPackages; [
16+ devtools
17+ ggplot2
18+ reshape2
19+ yaml
20+ optparse
21+ ];
22+ };
23+ };
24+}
25+```
26+
27+Then you can use `nix-env -f "<nixpkgs>" -iA rEnv` to install it into your user
28+profile. The set of available libraries can be discovered by running the
29+command `nix-env -f "<nixpkgs>" -qaP -A rPackages`. The first column from that
30+output is the name that has to be passed to rWrapper in the code snipped above.
31+
32+However, if you'd like to add a file to your project source to make the
33+environment available for other contributors, you can create a `default.nix`
34+file like so:
35+```nix
36+let
37+ pkgs = import <nixpkgs> {};
38+ stdenv = pkgs.stdenv;
39+in with pkgs; {
40+ myProject = stdenv.mkDerivation {
41+ name = "myProject";
42+ version = "1";
43+ src = if pkgs.lib.inNixShell then null else nix;
44+
45+ buildInputs = with rPackages; [
46+ R
47+ ggplot2
48+ knitr
49+ ];
50+ };
51+}
52+```
53+and then run `nix-shell .` to be dropped into a shell with those packages
54+available.
55+
56+## RStudio
57+
58+RStudio uses a standard set of packages and ignores any custom R
59+environments or installed packages you may have. To create a custom
60+environment, see `rstudioWrapper`, which functions similarly to
61+`rWrapper`:
62+
63+```nix
64+{
65+ packageOverrides = super: let self = super.pkgs; in
66+ {
67+
68+ rstudioEnv = super.rstudioWrapper.override {
69+ packages = with self.rPackages; [
70+ dplyr
71+ ggplot2
72+ reshape2
73+ ];
74+ };
75+ };
76+}
77+```
78+
79+Then like above, `nix-env -f "<nixpkgs>" -iA rstudioEnv` will install
80+this into your user profile.
81+
82+Alternatively, you can create a self-contained `shell.nix` without the need to
83+modify any configuration files:
84+
85+```nix
86+{ pkgs ? import <nixpkgs> {}
87+}:
88+
89+pkgs.rstudioWrapper.override {
90+ packages = with pkgs.rPackages; [ dplyr ggplot2 reshape2 ];
91+}
92+
93+```
94+
95+Executing `nix-shell` will then drop you into an environment equivalent to the
96+one above. If you need additional packages just add them to the list and
97+re-enter the shell.
98+
99+## Updating the package set
100+
101+```bash
102+nix-shell generate-shell.nix
103+
104+Rscript generate-r-packages.R cran > cran-packages.nix.new
105+mv cran-packages.nix.new cran-packages.nix
106+
107+Rscript generate-r-packages.R bioc > bioc-packages.nix.new
108+mv bioc-packages.nix.new bioc-packages.nix
109+```
110+
111+`generate-r-packages.R <repo>` reads `<repo>-packages.nix`, therefor the renaming.
112+
113+
114+## Testing if the Nix-expression could be evaluated
115+
116+```bash
117+nix-build test-evaluation.nix --dry-run
118+```
119+
120+If this exits fine, the expression is ok. If not, you have to edit `default.nix`
doc/languages-frameworks/rust.md → doc/languages-frameworks/rust.section.mdrenamed+85−1
@@ -16,6 +16,12 @@ cargo
1616into the `environment.systemPackages` or bring them into
1717scope with `nix-shell -p rustc cargo`.
1818
19+> If you are using NixOS and you want to use rust without a nix expression you
20+> probably want to add the following in your `configuration.nix` to build
21+> crates with C dependencies.
22+>
23+> environment.systemPackages = [binutils gcc gnumake openssl pkgconfig]
24+
1925For daily builds (beta and nightly) use either rustup from
2026nixpkgs or use the [Rust nightlies
2127overlay](#using-the-rust-nightlies-overlay).
@@ -76,7 +82,7 @@ an example for a minimal `hello` crate:
7682 Compiling hello v0.1.0 (file:///tmp/hello)
7783 Finished dev [unoptimized + debuginfo] target(s) in 0.20 secs
7884 $ carnix -o hello.nix --src ./. Cargo.lock --standalone
79− $ nix-build hello.nix
85+ $ nix-build hello.nix -A hello_0_1_0
8086
8187Now, the file produced by the call to `carnix`, called `hello.nix`, looks like:
8288
@@ -276,6 +282,84 @@ features, we would write:
276282
277283Where `diesel.nix` is the file generated by Carnix, as explained above.
278284
285+
286+## Setting Up `nix-shell`
287+Oftentimes you want to develop code from within `nix-shell`. Unfortunately
288+`buildRustCrate` does not support common `nix-shell` operations directly
289+(see [this issue](https://github.com/NixOS/nixpkgs/issues/37945))
290+so we will use `stdenv.mkDerivation` instead.
291+
292+Using the example `hello` project above, we want to do the following:
293+- Have access to `cargo` and `rustc`
294+- Have the `openssl` library available to a crate through it's _normal_
295+ compilation mechanism (`pkg-config`).
296+
297+A typical `shell.nix` might look like:
298+
299+```
300+with import <nixpkgs> {};
301+
302+stdenv.mkDerivation {
303+ name = "rust-env";
304+ buildInputs = [
305+ rustc cargo
306+
307+ # Example Additional Dependencies
308+ pkgconfig openssl
309+ ];
310+
311+ # Set Environment Variables
312+ RUST_BACKTRACE = 1;
313+}
314+```
315+
316+You should now be able to run the following:
317+```
318+$ nix-shell --pure
319+$ cargo build
320+$ cargo test
321+```
322+
323+### Controlling Rust Version Inside `nix-shell`
324+To control your rust version (i.e. use nightly) from within `shell.nix` (or
325+other nix expressions) you can use the following `shell.nix`
326+
327+```
328+# Latest Nightly
329+with import <nixpkgs> {};
330+let src = fetchFromGitHub {
331+ owner = "mozilla";
332+ repo = "nixpkgs-mozilla";
333+ # commit from: 2018-03-27
334+ rev = "2945b0b6b2fd19e7d23bac695afd65e320efcebe";
335+ sha256 = "034m1dryrzh2lmjvk3c0krgip652dql46w5yfwpvh7gavd3iypyw";
336+ };
337+in
338+with import "${src.out}/rust-overlay.nix" pkgs pkgs;
339+stdenv.mkDerivation {
340+ name = "rust-env";
341+ buildInputs = [
342+ # Note: to use use stable, just replace `nightly` with `stable`
343+ latest.rustChannels.nightly.rust
344+
345+ # Add some extra dependencies from `pkgs`
346+ pkgconfig openssl
347+ ];
348+
349+ # Set Environment Variables
350+ RUST_BACKTRACE = 1;
351+}
352+```
353+
354+Now run:
355+```
356+$ rustc --version
357+rustc 1.26.0-nightly (188e693b3 2018-03-26)
358+```
359+
360+To see that you are using nightly.
361+
362+
279363## Using the Rust nightlies overlay
280364
281365Mozilla provides an overlay for nixpkgs to bring a nightly version of Rust into scope.
doc/languages-frameworks/texlive.xml+3
@@ -39,6 +39,9 @@ nix-repl> :l <nixpkgs>
3939nix-repl> texlive.collection-<TAB>
4040 </programlisting>
4141 </para></listitem>
42+ <listitem><para>
43+ Note that the wrapper assumes that the result has a chance to be useful. For example, the core executables should be present, as well as some core data files. The supported way of ensuring this is by including some scheme, for example <varname>scheme-basic</varname>, into the combination.
44+ </para></listitem>
4245 </itemizedlist>
4346</section>
4447
doc/languages-frameworks/vim.md → doc/languages-frameworks/vim.section.mdrenamed
The content is the same.
doc/manual.xml+1−1
@@ -9,7 +9,7 @@
99
1010 </info>
1111
12− <xi:include href="introduction.xml" />
12+ <xi:include href="introduction.chapter.xml" />
1313 <xi:include href="quick-start.xml" />
1414 <xi:include href="stdenv.xml" />
1515 <xi:include href="multiple-output.xml" />
doc/meta.xml+1−1
@@ -174,7 +174,7 @@ meta-attributes</title>
174174 maintainers of this Nix expression. If
175175 you would like to be a maintainer of a package, you may want to add
176176 yourself to <link
177− xlink:href="https://github.com/NixOS/nixpkgs/blob/master/lib/maintainers.nix"><filename>nixpkgs/lib/maintainers.nix</filename></link>
177+ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/maintainers/maintainer-list.nix"><filename>nixpkgs/maintainers/maintainer-list.nix</filename></link>
178178 and write something like <literal>[ stdenv.lib.maintainers.alice
179179 stdenv.lib.maintainers.bob ]</literal>.</para></listitem>
180180 </varlistentry>
doc/multiple-output.xml+8−2
@@ -36,10 +36,16 @@
3636 <para>Here you find how to write a derivation that produces multiple outputs.</para>
3737 <para>In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in <<filename>nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh</filename>>; it's relatively well-readable. The whole machinery is triggered by defining the <varname>outputs</varname> attribute to contain the list of desired output names (strings).</para>
3838 <programlisting>outputs = [ "bin" "dev" "out" "doc" ];</programlisting>
39− <para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like <literal>${pkgs.perl}/bin/perl</literal> to always work. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
40−
39+ <para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
4140 <note><para>There is a special handling of the <varname>debug</varname> output, described at <xref linkend="stdenv-separateDebugInfo" />.</para></note>
4241
42+ <section xml:id="multiple-output-file-binaries-first-convention">
43+ <title><quote>Binaries first</quote></title>
44+ <para>A commonly adopted convention in <literal>nixpkgs</literal> is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the <literal>perl</literal> package contains a <literal>perl</literal> executable it can be referenced as <literal>${pkgs.perl}/bin/perl</literal> within a Nix derivation that needs to execute a Perl script.</para>
45+ <para>The <literal>glibc</literal> package is a deliberate single exception to the <quote>binaries first</quote> convention. The <literal>glibc</literal> has <literal>libs</literal> as its first output allowing the libraries provided by <literal>glibc</literal> to be referenced directly (e.g. <literal>${stdenv.glibc}/lib/ld-linux-x86-64.so.2</literal>). The executables provided by <literal>glibc</literal> can be accessed via its <literal>bin</literal> attribute (e.g. <literal>${stdenv.glibc.bin}/bin/ldd</literal>).</para>
46+ <para>The reason for why <literal>glibc</literal> deviates from the convention is because referencing a library provided by <literal>glibc</literal> is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of <literal>glibc</literal> libraries from Nix packages (please see the documentation on <link xlink:href="https://nixos.org/patchelf.html">patchelf</link> for more details).</para>
47+ </section>
48+
4349 <section xml:id="multiple-output-file-type-groups">
4450 <title>File type groups</title>
4551 <para>The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an <varname>outputFoo</varname> variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed – a default output name is defined, falling back to other possibilities if the output isn't defined.</para>
doc/overrides.cssnew file+9
@@ -0,0 +1,9 @@
1+.docbook .xref img[src^=images\/callouts\/],
2+.screen img,
3+.programlisting img {
4+ width: 1em;
5+}
6+
7+.calloutlist img {
8+ width: 1.5em;
9+}
doc/package-notes.xml+11−1
@@ -713,7 +713,7 @@ the <literal>inotify.py</literal> script in weechat-scripts requires
713713D-Bus or libnotify, and the <literal>fish.py</literal> script requires
714714pycrypto. To use these scripts, use the <literal>python</literal>
715715plugin's <literal>withPackages</literal> attribute:
716−<programlisting>weechat.override {configure = {availablePlugins, ...}: {
716+<programlisting>weechat.override { configure = {availablePlugins, ...}: {
717717 plugins = with availablePlugins; [
718718 (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
719719 ];
@@ -721,5 +721,15 @@ plugin's <literal>withPackages</literal> attribute:
721721}
722722</programlisting>
723723</para>
724+<para>
725+In order to also keep all default plugins installed, it is possible to use
726+the following method:
727+<programlisting>weechat.override { configure = { availablePlugins, ... }: {
728+ plugins = builtins.attrValues (availablePlugins // {
729+ python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
730+ });
731+}; }
732+</programlisting>
733+</para>
724734</section>
725735</chapter>
doc/reviewing-contributions.xml+4−2
@@ -23,7 +23,9 @@
2323 xlink:href="https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc">most
2424 recently</link> and the <link
2525 xlink:href="https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc">least
26− recently</link> updated pull-requests.</para>
26+ recently</link> updated pull-requests.
27+ We highly encourage looking at <link xlink:href="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">
28+ this list of ready to merge, unreviewed pull requests</link>.</para>
2729
2830<para>When reviewing a pull request, please always be nice and polite.
2931 Controversial changes can lead to controversial opinions, but it is important
@@ -112,7 +114,7 @@ $ git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD <co
112114 <varname>BASEBRANCH</varname> the base branch of the
113115 pull-request.</para>
114116 </callout>
115− <callout arearefs='reviewing-rebase-3'>
117+ <callout arearefs='reviewing-rebase-4'>
116118 <para>Rebasing the pull-request changes to the nixos-unstable
117119 branch.</para>
118120 </callout>
doc/shell.nixnew file+4
@@ -0,0 +1,4 @@
1+{ pkgs ? import ../. {} }:
2+(import ./default.nix).overrideAttrs (x: {
3+ buildInputs = x.buildInputs ++ [ pkgs.xmloscopy ];
4+})
doc/shell.md → doc/shell.section.mdrenamed+2
@@ -4,6 +4,8 @@ author: zimbatm
44date: 2017-10-30
55---
66
7+# mkShell
8+
79pkgs.mkShell is a special kind of derivation that is only useful when using
810it combined with nix-shell. It will in fact fail to instantiate when invoked
911with nix-build.
doc/style.css+23−7
@@ -29,8 +29,8 @@ h2 /* chapters, appendices, subtitle */
2929}
3030
3131/* Extra space between chapters, appendices. */
32−div.chapter > div.titlepage h2, div.appendix > div.titlepage h2
33−{
32+div.chapter > div.titlepage h2, div.appendix > div.titlepage h2
33+{
3434 margin-top: 1.5em;
3535}
3636
@@ -104,7 +104,7 @@ pre.screen, pre.programlisting
104104 padding: 3px 3px;
105105 margin-left: 1.5em;
106106 margin-right: 1.5em;
107− color: #600000;
107+
108108 background: #f4f4f8;
109109 font-family: monospace;
110110 border-radius: 0.4em;
@@ -118,7 +118,6 @@ div.example pre.programlisting
118118 margin: 0 0 0 0;
119119}
120120
121−
122121/***************************************************************************
123122 Notes, warnings etc:
124123 ***************************************************************************/
@@ -172,7 +171,7 @@ div.navfooter *
172171
173172
174173/***************************************************************************
175− Links colors and highlighting:
174+ Links colors and highlighting:
176175 ***************************************************************************/
177176
178177a { text-decoration: none; }
@@ -209,7 +208,7 @@ tt, code
209208.term
210209{
211210 font-weight: bold;
212−
211+
213212}
214213
215214div.variablelist dd p, div.glosslist dd p
@@ -249,7 +248,24 @@ table
249248 box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
250249}
251250
251+table.simplelist
252+{
253+ text-align: left;
254+ color: #005aa0;
255+ border: 0;
256+ padding: 5px;
257+ background: #fffff5;
258+ font-weight: normal;
259+ font-style: italic;
260+ box-shadow: none;
261+ margin-bottom: 1em;
262+}
263+
264+div.navheader table, div.navfooter table {
265+ box-shadow: none;
266+}
267+
252268div.affiliation
253269{
254270 font-style: italic;
255−}
271+}
doc/submitting-changes.xml+2−2
@@ -317,11 +317,11 @@ Additional information.
317317 </para>
318318 <para>
319319 review uncommitted changes:
320− <screen>nix-shell -p nox --run nox-review wip</screen>
320+ <screen>nix-shell -p nox --run "nox-review wip"</screen>
321321 </para>
322322 <para>
323323 review changes from pull request number 12345:
324− <screen>nix-shell -p nox --run nox-review pr 12345</screen>
324+ <screen>nix-shell -p nox --run "nox-review pr 12345"</screen>
325325 </para>
326326 </section>
327327 <section>
lib/default.nix+7−5
@@ -5,9 +5,11 @@
55 */
66let
77
8− callLibs = file: import file { inherit lib; };
8+ inherit (import ./fixed-points.nix {}) makeExtensible;
99
10− lib = rec {
10+ lib = makeExtensible (self: let
11+ callLibs = file: import file { lib = self; };
12+ in with self; {
1113
1214 # often used, or depending on very little
1315 trivial = callLibs ./trivial.nix;
@@ -21,7 +23,7 @@ let
2123
2224 # packaging
2325 customisation = callLibs ./customisation.nix;
24− maintainers = import ./maintainers-list.nix;
26+ maintainers = import ../maintainers/maintainer-list.nix;
2527 meta = callLibs ./meta.nix;
2628 sources = callLibs ./sources.nix;
2729 versions = callLibs ./versions.nix;
@@ -72,7 +74,7 @@ let
7274 inherit (lists) singleton foldr fold foldl foldl' imap0 imap1
7375 concatMap flatten remove findSingle findFirst any all count
7476 optional optionals toList range partition zipListsWith zipLists
75− reverseList listDfs toposort sort compareLists take drop sublist
77+ reverseList listDfs toposort sort naturalSort compareLists take drop sublist
7678 last init crossLists unique intersectLists subtractLists
7779 mutuallyExclusive;
7880 inherit (strings) concatStrings concatMapStrings concatImapStrings
@@ -128,5 +130,5 @@ let
128130 mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults
129131 mergeAttrsByFuncDefaultsClean mergeAttrBy
130132 prepareDerivationArgs nixType imap overridableDelayableArgs;
131− };
133+ });
132134in lib
lib/generators.nix+54−13
@@ -4,6 +4,12 @@
44 * They all follow a similar interface:
55 * generator { config-attrs } data
66 *
7+ * `config-attrs` are “holes” in the generators
8+ * with sensible default implementations that
9+ * can be overwritten. The default implementations
10+ * are mostly generators themselves, called with
11+ * their respective default values; they can be reused.
12+ *
713 * Tests can be found in ./tests.nix
814 * Documentation in the manual, #sec-generators
915 */
@@ -20,6 +26,32 @@ in
2026
2127rec {
2228
29+ ## -- HELPER FUNCTIONS & DEFAULTS --
30+
31+ /* Convert a value to a sensible default string representation.
32+ * The builtin `toString` function has some strange defaults,
33+ * suitable for bash scripts but not much else.
34+ */
35+ mkValueStringDefault = {}: v: with builtins;
36+ let err = t: v: abort
37+ ("generators.mkValueStringDefault: " +
38+ "${t} not supported: ${toPretty {} v}");
39+ in if isInt v then toString v
40+ # we default to not quoting strings
41+ else if isString v then v
42+ # isString returns "1", which is not a good default
43+ else if true == v then "true"
44+ # here it returns to "", which is even less of a good default
45+ else if false == v then "false"
46+ else if null == v then "null"
47+ # if you have lists you probably want to replace this
48+ else if isList v then err "lists" v
49+ # same as for lists, might want to replace
50+ else if isAttrs v then err "attrsets" v
51+ else if isFunction v then err "functions" v
52+ else err "this value is" (toString v);
53+
54+
2355 /* Generate a line of key k and value v, separated by
2456 * character sep. If sep appears in k, it is escaped.
2557 * Helper for synaxes with different separators.
@@ -30,11 +62,14 @@ rec {
3062 * > "f\:oo:bar"
3163 */
3264 mkKeyValueDefault = {
33− mkValueString ? toString
65+ mkValueString ? mkValueStringDefault {}
3466 }: sep: k: v:
3567 "${libStr.escape [sep] k}${sep}${mkValueString v}";
3668
3769
70+ ## -- FILE FORMAT GENERATORS --
71+
72+
3873 /* Generate a key-value-style config file from an attrset.
3974 *
4075 * mkKeyValue is the same as in toINI.
@@ -98,6 +133,7 @@ rec {
98133 */
99134 toYAML = {}@args: toJSON args;
100135
136+
101137 /* Pretty print a value, akin to `builtins.trace`.
102138 * Should probably be a builtin as well.
103139 */
@@ -107,17 +143,13 @@ rec {
107143 (This means fn is type Val -> String.) */
108144 allowPrettyValues ? false
109145 }@args: v: with builtins;
110− if isInt v then toString v
111− else if isBool v then (if v == true then "true" else "false")
112− else if isString v then "\"" + v + "\""
113− else if null == v then "null"
114− else if isFunction v then
115− let fna = lib.functionArgs v;
116− showFnas = concatStringsSep "," (libAttr.mapAttrsToList
117− (name: hasDefVal: if hasDefVal then "(${name})" else name)
118− fna);
119− in if fna == {} then "<λ>"
120− else "<λ:{${showFnas}}>"
146+ let isPath = v: typeOf v == "path";
147+ in if isInt v then toString v
148+ else if isString v then ''"${libStr.escape [''"''] v}"''
149+ else if true == v then "true"
150+ else if false == v then "false"
151+ else if null == v then "null"
152+ else if isPath v then toString v
121153 else if isList v then "[ "
122154 + libStr.concatMapStringsSep " " (toPretty args) v
123155 + " ]"
@@ -126,12 +158,21 @@ rec {
126158 if attrNames v == [ "__pretty" "val" ] && allowPrettyValues
127159 then v.__pretty v.val
128160 # TODO: there is probably a better representation?
129− else if v ? type && v.type == "derivation" then "<δ>"
161+ else if v ? type && v.type == "derivation" then
162+ "<δ:${v.name}>"
163+ # "<δ:${concatStringsSep "," (builtins.attrNames v)}>"
130164 else "{ "
131165 + libStr.concatStringsSep " " (libAttr.mapAttrsToList
132166 (name: value:
133167 "${toPretty args name} = ${toPretty args value};") v)
134168 + " }"
169+ else if isFunction v then
170+ let fna = lib.functionArgs v;
171+ showFnas = concatStringsSep "," (libAttr.mapAttrsToList
172+ (name: hasDefVal: if hasDefVal then "(${name})" else name)
173+ fna);
174+ in if fna == {} then "<λ>"
175+ else "<λ:{${showFnas}}>"
135176 else abort "toPretty: should never happen (v = ${v})";
136177
137178}
lib/licenses.nix+6−1
@@ -179,6 +179,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
179179 fullName = "CeCILL-C Free Software License Agreement";
180180 };
181181
182+ cpal10 = spdx {
183+ spdxId = "CPAL-1.0";
184+ fullName = "Common Public Attribution License 1.0";
185+ };
186+
182187 cpl10 = spdx {
183188 spdxId = "CPL-1.0";
184189 fullName = "Common Public License 1.0";
@@ -279,7 +284,7 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
279284
280285 gpl2Oss = {
281286 fullName = "GNU General Public License version 2 only (with OSI approved licenses linking exception)";
282− url = http://www.mysql.com/about/legal/licensing/foss-exception;
287+ url = https://www.mysql.com/about/legal/licensing/foss-exception;
283288 };
284289
285290 gpl2Plus = spdx {
lib/lists.nix+22−1
@@ -1,7 +1,9 @@
11# General list operations.
22{ lib }:
33with lib.trivial;
4−
4+let
5+ inherit (lib.strings) toInt;
6+in
57rec {
68
79 inherit (builtins) head tail length isList elemAt concatLists filter elem genList;
@@ -409,6 +411,25 @@ rec {
409411 then compareLists cmp (tail a) (tail b)
410412 else rel;
411413
414+ /* Sort list using "Natural sorting".
415+ Numeric portions of strings are sorted in numeric order.
416+
417+ Example:
418+ naturalSort ["disk11" "disk8" "disk100" "disk9"]
419+ => ["disk8" "disk9" "disk11" "disk100"]
420+ naturalSort ["10.46.133.149" "10.5.16.62" "10.54.16.25"]
421+ => ["10.5.16.62" "10.46.133.149" "10.54.16.25"]
422+ naturalSort ["v0.2" "v0.15" "v0.0.9"]
423+ => [ "v0.0.9" "v0.2" "v0.15" ]
424+ */
425+ naturalSort = lst:
426+ let
427+ vectorise = s: map (x: if isList x then toInt (head x) else x) (builtins.split "(0|[1-9][0-9]*)" s);
428+ prepared = map (x: [ (vectorise x) x ]) lst; # remember vectorised version for O(n) regex splits
429+ less = a: b: (compareLists compare (head a) (head b)) < 0;
430+ in
431+ map (x: elemAt x 1) (sort less prepared);
432+
412433 /* Return the first (at most) N elements of a list.
413434
414435 Example:
lib/meta.nix+2
@@ -86,4 +86,6 @@ rec {
8686 then { system = elem; }
8787 else { parsed = elem; };
8888 in lib.matchAttrs pattern platform;
89+
90+ enableIfAvailable = p: if p.meta.available or true then [ p ] else [];
8991}
lib/modules.nix+2−2
@@ -59,7 +59,7 @@ rec {
5959 };
6060 };
6161
62− closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options; lib = import ./.; } // specialArgs);
62+ closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options lib; } // specialArgs);
6363
6464 options = mergeModules prefix (reverseList (filterModules (specialArgs.modulesPath or "") closed));
6565
@@ -660,7 +660,7 @@ rec {
660660 doRename = { from, to, visible, warn, use }:
661661 let
662662 toOf = attrByPath to
663− (abort "Renaming error: option `${showOption to}' does not exists.");
663+ (abort "Renaming error: option `${showOption to}' does not exist.");
664664 in
665665 { config, options, ... }:
666666 { options = setAttrByPath from (mkOption {
lib/strings.nix+8−1
@@ -437,6 +437,13 @@ rec {
437437 */
438438 fixedWidthNumber = width: n: fixedWidthString width "0" (toString n);
439439
440+ /* Check whether a value can be coerced to a string */
441+ isCoercibleToString = x:
442+ builtins.elem (builtins.typeOf x) [ "path" "string" "null" "int" "float" "bool" ] ||
443+ (builtins.isList x && lib.all isCoercibleToString x) ||
444+ x ? outPath ||
445+ x ? __toString;
446+
440447 /* Check whether a value is a store path.
441448
442449 Example:
@@ -450,7 +457,7 @@ rec {
450457 => false
451458 */
452459 isStorePath = x:
453− builtins.isString x
460+ isCoercibleToString x
454461 && builtins.substring 0 1 (toString x) == "/"
455462 && dirOf (builtins.toPath x) == builtins.storeDir;
456463
lib/systems/default.nix+2
@@ -44,6 +44,8 @@ rec {
4444 };
4545 # Misc boolean options
4646 useAndroidPrebuilt = false;
47+ useiOSPrebuilt = false;
48+ isiPhoneSimulator = false;
4749 } // mapAttrs (n: v: v final.parsed) inspect.predicates
4850 // args;
4951 in assert final.useAndroidPrebuilt -> final.isAndroid;
lib/systems/for-meta.nix+6−2
@@ -4,8 +4,8 @@ let
44 inherit (lib.systems.inspect) patterns;
55
66in rec {
7− inherit (lib.systems.doubles) all mesaPlatforms;
8− none = [];
7+ all = [ {} ]; # `{}` matches anything
8+ none = [];
99
1010 arm = [ patterns.isAarch32 ];
1111 aarch64 = [ patterns.isAarch64 ];
@@ -13,6 +13,7 @@ in rec {
1313 i686 = [ patterns.isi686 ];
1414 x86_64 = [ patterns.isx86_64 ];
1515 mips = [ patterns.isMips ];
16+ riscv = [ patterns.isRiscV ];
1617
1718 cygwin = [ patterns.isCygwin ];
1819 darwin = [ patterns.isDarwin ];
@@ -24,4 +25,7 @@ in rec {
2425 netbsd = [ patterns.isNetBSD ];
2526 openbsd = [ patterns.isOpenBSD ];
2627 unix = patterns.isUnix; # Actually a list
28+ windows = [ patterns.isWindows ];
29+
30+ inherit (lib.systems.doubles) mesaPlatforms;
2731}
lib/systems/inspect.nix+3−5
@@ -21,9 +21,11 @@ rec {
2121 isLittleEndian = { cpu = { significantByte = significantBytes.littleEndian; }; };
2222
2323 isBSD = { kernel = { families = { inherit (kernelFamilies) bsd; }; }; };
24+ isDarwin = { kernel = { families = { inherit (kernelFamilies) darwin; }; }; };
2425 isUnix = [ isBSD isDarwin isLinux isSunOS isHurd isCygwin ];
2526
26− isDarwin = { kernel = kernels.darwin; };
27+ isMacOS = { kernel = kernels.macos; };
28+ isiOS = { kernel = kernels.ios; };
2729 isLinux = { kernel = kernels.linux; };
2830 isSunOS = { kernel = kernels.solaris; };
2931 isFreeBSD = { kernel = kernels.freebsd; };
@@ -37,12 +39,8 @@ rec {
3739 isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ];
3840 isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
3941
40− isKexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
41− [ "x86" "arm" "aarch64" "mips" ];
4242 isEfi = map (family: { cpu.family = family; })
4343 [ "x86" "arm" "aarch64" ];
44− isSeccomputable = map (family: { kernel = kernels.linux; cpu.family = family; })
45− [ "x86" "arm" "aarch64" "mips" ];
4644
4745 # Deprecated after 18.03
4846 isArm = isAarch32;
lib/systems/parse.nix+17−9
@@ -34,7 +34,7 @@ rec {
3434
3535 ################################################################################
3636
37− types.openSignifiantByte = mkOptionType {
37+ types.openSignificantByte = mkOptionType {
3838 name = "significant-byte";
3939 description = "Endianness";
4040 merge = mergeOneOption;
@@ -42,7 +42,7 @@ rec {
4242
4343 types.significantByte = enum (attrValues significantBytes);
4444
45− significantBytes = setTypes types.openSignifiantByte {
45+ significantBytes = setTypes types.openSignificantByte {
4646 bigEndian = {};
4747 littleEndian = {};
4848 };
@@ -134,6 +134,7 @@ rec {
134134
135135 kernelFamilies = setTypes types.openKernelFamily {
136136 bsd = {};
137+ darwin = {};
137138 };
138139
139140 ################################################################################
@@ -149,7 +150,10 @@ rec {
149150 types.kernel = enum (attrValues kernels);
150151
151152 kernels = with execFormats; with kernelFamilies; setTypes types.openKernel {
152− darwin = { execFormat = macho; families = { }; };
153+ # TODO(@Ericson2314): Don't want to mass-rebuild yet to keeping 'darwin' as
154+ # the nnormalized name for macOS.
155+ macos = { execFormat = macho; families = { inherit darwin; }; name = "darwin"; };
156+ ios = { execFormat = macho; families = { inherit darwin; }; };
153157 freebsd = { execFormat = elf; families = { inherit bsd; }; };
154158 hurd = { execFormat = elf; families = { }; };
155159 linux = { execFormat = elf; families = { }; };
@@ -159,9 +163,13 @@ rec {
159163 solaris = { execFormat = elf; families = { }; };
160164 windows = { execFormat = pe; families = { }; };
161165 } // { # aliases
166+ # 'darwin' is the kernel for all of them. We choose macOS by default.
167+ darwin = kernels.macos;
162168 # TODO(@Ericson2314): Handle these Darwin version suffixes more generally.
163− darwin10 = kernels.darwin;
164− darwin14 = kernels.darwin;
169+ darwin10 = kernels.macos;
170+ darwin14 = kernels.macos;
171+ watchos = kernels.ios;
172+ tvos = kernels.ios;
165173 win32 = kernels.windows;
166174 };
167175
@@ -193,7 +201,7 @@ rec {
193201
194202 ################################################################################
195203
196− types.system = mkOptionType {
204+ types.parsedPlatform = mkOptionType {
197205 name = "system";
198206 description = "fully parsed representation of llvm- or nix-style platform tuple";
199207 merge = mergeOneOption;
@@ -207,7 +215,7 @@ rec {
207215 isSystem = isType "system";
208216
209217 mkSystem = components:
210− assert types.system.check components;
218+ assert types.parsedPlatform.check components;
211219 setType "system" components;
212220
213221 mkSkeletonFromList = l: {
@@ -263,8 +271,8 @@ rec {
263271 mkSystemFromString = s: mkSystemFromSkeleton (mkSkeletonFromList (lib.splitString "-" s));
264272
265273 doubleFromSystem = { cpu, vendor, kernel, abi, ... }:
266− if abi == abis.cygnus
267− then "${cpu.name}-cygwin"
274+ /**/ if abi == abis.cygnus then "${cpu.name}-cygwin"
275+ else if kernel.families ? darwin then "${cpu.name}-darwin"
268276 else "${cpu.name}-${kernel.name}";
269277
270278 tripleFromSystem = { cpu, vendor, kernel, abi, ... } @ sys: assert isSystem sys; let
lib/tests/misc.nix+33−3
@@ -93,6 +93,7 @@ runTests {
9393 "${builtins.storeDir}/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11";
9494 in {
9595 storePath = isStorePath goodPath;
96+ storePathDerivation = isStorePath (import ../.. {}).hello;
9697 storePathAppendix = isStorePath
9798 "${goodPath}/bin/python";
9899 nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath)));
@@ -106,6 +107,7 @@ runTests {
106107 };
107108 expected = {
108109 storePath = true;
110+ storePathDerivation = true;
109111 storePathAppendix = false;
110112 nonAbsolute = false;
111113 asPath = true;
@@ -205,6 +207,29 @@ runTests {
205207 expected = ''f\:oo:bar'';
206208 };
207209
210+ testMkValueString = {
211+ expr = let
212+ vals = {
213+ int = 42;
214+ string = ''fo"o'';
215+ bool = true;
216+ bool2 = false;
217+ null = null;
218+ # float = 42.23; # floats are strange
219+ };
220+ in mapAttrs
221+ (const (generators.mkValueStringDefault {}))
222+ vals;
223+ expected = {
224+ int = "42";
225+ string = ''fo"o'';
226+ bool = "true";
227+ bool2 = "false";
228+ null = "null";
229+ # float = "42.23" true false [ "bar" ] ]'';
230+ };
231+ };
232+
208233 testToKeyValue = {
209234 expr = generators.toKeyValue {} {
210235 key = "value";
@@ -247,6 +272,8 @@ runTests {
247272 "section 1" = {
248273 attribute1 = 5;
249274 x = "Me-se JarJar Binx";
275+ # booleans are converted verbatim by default
276+ boolean = false;
250277 };
251278 "foo[]" = {
252279 "he\\h=he" = "this is okay";
@@ -258,6 +285,7 @@ runTests {
258285
259286 [section 1]
260287 attribute1=5
288+ boolean=false
261289 x=Me-se JarJar Binx
262290 '';
263291 };
@@ -289,7 +317,8 @@ runTests {
289317 expr = mapAttrs (const (generators.toPretty {})) rec {
290318 int = 42;
291319 bool = true;
292− string = "fnord";
320+ string = ''fno"rd'';
321+ path = /. + "/foo"; # toPath returns a string
293322 null_ = null;
294323 function = x: x;
295324 functionArgs = { arg ? 4, foo }: arg;
@@ -300,13 +329,14 @@ runTests {
300329 expected = rec {
301330 int = "42";
302331 bool = "true";
303− string = "\"fnord\"";
332+ string = ''"fno\"rd"'';
333+ path = "/foo";
304334 null_ = "null";
305335 function = "<λ>";
306336 functionArgs = "<λ:{(arg),foo}>";
307337 list = "[ 3 4 ${function} [ false ] ]";
308338 attrs = "{ \"foo\" = null; \"foo bar\" = \"baz\"; }";
309− drv = "<δ>";
339+ drv = "<δ:test>";
310340 };
311341 };
312342
lib/tests/release.nix+1−2
@@ -13,7 +13,6 @@ pkgs.stdenv.mkDerivation {
1313 export NIX_DB_DIR=$TEST_ROOT/db
1414 export NIX_LOCALSTATE_DIR=$TEST_ROOT/var
1515 export NIX_LOG_DIR=$TEST_ROOT/var/log/nix
16− export NIX_MANIFESTS_DIR=$TEST_ROOT/var/nix/manifests
1716 export NIX_STATE_DIR=$TEST_ROOT/var/nix
1817 export NIX_STORE_DIR=$TEST_ROOT/store
1918 export PAGER=cat
@@ -21,7 +20,7 @@ pkgs.stdenv.mkDerivation {
2120 nix-store --init
2221
2322 cd ${pkgs.path}/lib/tests
24− ./modules.sh
23+ bash ./modules.sh
2524
2625 [[ "$(nix-instantiate --eval --strict misc.nix)" == "[ ]" ]]
2726
lib/maintainers-list.nix → maintainers/maintainer-list.nixrenamed+246−13
@@ -28,6 +28,11 @@
2828 github = "AndersonTorres";
2929 name = "Anderson Torres";
3030 };
31+ Anton-Latukha = {
32+ email = "anton.latuka+nixpkgs@gmail.com";
33+ github = "Anton-Latukha";
34+ name = "Anton Latukha";
35+ };
3136 Baughn = {
3237 email = "sveina@gmail.com";
3338 github = "Baughn";
@@ -63,11 +68,20 @@
6368 github = "DmitryTsygankov";
6469 name = "Dmitry Tsygankov";
6570 };
71+ Esteth = {
72+ email = "adam.copp@gmail.com";
73+ name = "Adam Copp";
74+ };
6675 FireyFly = {
6776 email = "nix@firefly.nu";
6877 github = "FireyFly";
6978 name = "Jonas Höglund";
7079 };
80+ Fresheyeball = {
81+ email = "fresheyeball@gmail.com";
82+ github = "fresheyeball";
83+ name = "Isaac Shapira";
84+ };
7185 Gonzih = {
7286 email = "gonzih@gmail.com";
7387 github = "Gonzih";
@@ -87,6 +101,11 @@
87101 github = "MP2E";
88102 name = "Cray Elliott";
89103 };
104+ Mogria = {
105+ email = "m0gr14@gmail.com";
106+ github = "mogria";
107+ name = "Mogria";
108+ };
90109 MostAwesomeDude = {
91110 email = "cds@corbinsimpson.com";
92111 github = "MostAwesomeDude";
@@ -111,6 +130,11 @@
111130 github = "Profpatsch";
112131 name = "Profpatsch";
113132 };
133+ roosemberth = {
134+ email = "roosembert.palacios+nixpkgs@gmail.com";
135+ github = "roosemberth";
136+ name = "Roosembert (Roosemberth) Palacios";
137+ };
114138 SShrike = {
115139 email = "severen@shrike.me";
116140 github = "severen";
@@ -176,6 +200,11 @@
176200 github = "abigailbuccaneer";
177201 name = "Abigail Bunyan";
178202 };
203+ aborsu = {
204+ email = "a.borsu@gmail.com";
205+ github = "aborsu";
206+ name = "Augustin Borsu";
207+ };
179208 aboseley = {
180209 email = "adam.boseley@gmail.com";
181210 github = "aboseley";
@@ -276,6 +305,21 @@
276305 github = "akc";
277306 name = "Anders Claesson";
278307 };
308+ akru = {
309+ email = "mail@akru.me";
310+ github = "akru";
311+ name = "Alexander Krupenkin ";
312+ };
313+ alexchapman = {
314+ name = "Alex Chapman";
315+ email = "alex@farfromthere.net";
316+ github = "AJChapman";
317+ };
318+ alexfmpe = {
319+ email = "alexandre.fmp.esteves@gmail.com";
320+ github = "alexfmpe";
321+ name = "Alexandre Esteves";
322+ };
279323 alexvorobiev = {
280324 email = "alexander.vorobiev@gmail.com";
281325 github = "alexvorobiev";
@@ -314,6 +358,11 @@
314358 github = "amiloradovsky";
315359 name = "Andrew Miloradovsky";
316360 };
361+ aminechikhaoui = {
362+ email = "amine.chikhaoui91@gmail.com";
363+ github = "AmineChikhaoui";
364+ name = "Amine Chikhaoui";
365+ };
317366 amorsillo = {
318367 email = "andrew.morsillo@gmail.com";
319368 github = "AndrewMorsillo";
@@ -483,6 +532,11 @@
483532 email = "sivaraman.balaji@gmail.com";
484533 name = "Balaji Sivaraman";
485534 };
535+ bandresen = {
536+ email = "bandresen@gmail.com";
537+ github = "bandresen";
538+ name = "Benjamin Andresen";
539+ };
486540 barrucadu = {
487541 email = "mike@barrucadu.co.uk";
488542 github = "barrucadu";
@@ -543,6 +597,16 @@
543597 github = "bergey";
544598 name = "Daniel Bergey";
545599 };
600+ bfortz = {
601+ email = "bernard.fortz@gmail.com";
602+ github = "bfortz";
603+ name = "Bernard Fortz";
604+ };
605+ bgamari = {
606+ email = "ben@smart-cactus.org";
607+ github = "bgamari";
608+ name = "Ben Gamari";
609+ };
546610 bhipple = {
547611 email = "bhipple@protonmail.com";
548612 github = "bhipple";
@@ -555,7 +619,6 @@
555619 };
556620 bjg = {
557621 email = "bjg@gnu.org";
558− github = "civodul";
559622 name = "Brian Gough";
560623 };
561624 bjornfor = {
@@ -563,6 +626,11 @@
563626 github = "bjornfor";
564627 name = "Bjørn Forsman";
565628 };
629+ bkchr = {
630+ email = "nixos@kchr.de";
631+ github = "bkchr";
632+ name = "Bastian Köcher";
633+ };
566634 bluescreen303 = {
567635 email = "mathijs@bluescreen303.nl";
568636 github = "bluescreen303";
@@ -598,6 +666,11 @@
598666 github = "bradediger";
599667 name = "Brad Ediger";
600668 };
669+ brainrape = {
670+ email = "martonboros@gmail.com";
671+ github = "brainrape";
672+ name = "Marton Boros";
673+ };
601674 bramd = {
602675 email = "bram@bramd.nl";
603676 github = "bramd";
@@ -632,11 +705,6 @@
632705 github = "calbrecht";
633706 name = "Christian Albrecht";
634707 };
635− calrama = {
636− email = "moritz@ucworks.org";
637− github = "MoritzMaxeiner";
638− name = "Moritz Maxeiner";
639− };
640708 calvertvl = {
641709 email = "calvertvl@gmail.com";
642710 github = "calvertvl";
@@ -652,11 +720,21 @@
652720 github = "canndrew";
653721 name = "Andrew Cann";
654722 };
723+ carlosdagos = {
724+ email = "m@cdagostino.io";
725+ github = "carlosdagos";
726+ name = "Carlos D'Agostino";
727+ };
655728 carlsverre = {
656729 email = "accounts@carlsverre.com";
657730 github = "carlsverre";
658731 name = "Carl Sverre";
659732 };
733+ cartr = {
734+ email = "carter.sande@duodecima.technology";
735+ github = "cartr";
736+ name = "Carter Sande";
737+ };
660738 casey = {
661739 email = "casey@rodarmor.net";
662740 github = "casey";
@@ -1034,11 +1112,6 @@
10341112 github = "dtzWill";
10351113 name = "Will Dietz";
10361114 };
1037− dupgit = {
1038− email = "olivier.delhomme@free.fr";
1039− github = "dupgit";
1040− name = "Olivier Delhomme";
1041− };
10421115 dywedir = {
10431116 email = "dywedir@protonmail.ch";
10441117 github = "dywedir";
@@ -1143,6 +1216,16 @@
11431216 github = "ellis";
11441217 name = "Ellis Whitehead";
11451218 };
1219+ elvishjerricco = {
1220+ email = "elvishjerricco@gmail.com";
1221+ github = "ElvishJerricco";
1222+ name = "Will Fancher";
1223+ };
1224+ endgame = {
1225+ email = "jack@jackkelly.name";
1226+ github = "endgame";
1227+ name = "Jack Kelly";
1228+ };
11461229 enzime = {
11471230 email = "enzime@users.noreply.github.com";
11481231 github = "enzime";
@@ -1247,6 +1330,11 @@
12471330 github = "fare";
12481331 name = "Francois-Rene Rideau";
12491332 };
1333+ fdns = {
1334+ email = "fdns02@gmail.com";
1335+ github = "fdns";
1336+ name = "Felipe Espinoza";
1337+ };
12501338 fgaz = {
12511339 email = "francygazz@gmail.com";
12521340 github = "fgaz";
@@ -1524,6 +1612,11 @@
15241612 github = "hrdinka";
15251613 name = "Christoph Hrdinka";
15261614 };
1615+ hschaeidt = {
1616+ email = "he.schaeidt@gmail.com";
1617+ github = "hschaeidt";
1618+ name = "Hendrik Schaeidt";
1619+ };
15271620 htr = {
15281621 email = "hugo@linux.com";
15291622 github = "htr";
@@ -1549,6 +1642,11 @@
15491642 github = "iblech";
15501643 name = "Ingo Blechschmidt";
15511644 };
1645+ idontgetoutmuch = {
1646+ email = "dominic@steinitz.org";
1647+ github = "idontgetoutmuch";
1648+ name = "Dominic Steinitz";
1649+ };
15521650 igsha = {
15531651 email = "igor.sharonov@gmail.com";
15541652 github = "igsha";
@@ -1643,7 +1741,7 @@
16431741 name = "Jeffrey David Johnson";
16441742 };
16451743 jensbin = {
1646− email = "jensbin@protonmail.com";
1744+ email = "jensbin+git@pm.me";
16471745 github = "jensbin";
16481746 name = "Jens Binkert";
16491747 };
@@ -1663,7 +1761,7 @@
16631761 name = "Johannes Frankenau";
16641762 };
16651763 jgeerds = {
1666− email = "jascha@jgeerds.name";
1764+ email = "jascha@geerds.org";
16671765 github = "jgeerds";
16681766 name = "Jascha Geerds";
16691767 };
@@ -1726,6 +1824,11 @@
17261824 github = "johnazoidberg";
17271825 name = "Daniel Schäfer";
17281826 };
1827+ johnchildren = {
1828+ email = "john.a.children@gmail.com";
1829+ github = "johnchildren";
1830+ name = "John Children";
1831+ };
17291832 johnmh = {
17301833 email = "johnmh@openblox.org";
17311834 github = "johnmh";
@@ -1819,6 +1922,11 @@
18191922 email = "info+nix@chmist.com";
18201923 name = "karolchmist";
18211924 };
1925+ kazcw = {
1926+ email = "kaz@lambdaverse.org";
1927+ github = "kazcw";
1928+ name = "Kaz Wesley";
1929+ };
18221930 kentjames = {
18231931 email = "jameschristopherkent@gmail.com";
18241932 github = "kentjames";
@@ -1883,6 +1991,11 @@
18831991 github = "kragniz";
18841992 name = "Louis Taylor";
18851993 };
1994+ krav = {
1995+ email = "kristoffer@microdisko.no";
1996+ github = "krav";
1997+ name = "Kristoffer Thømt Ravneberg";
1998+ };
18861999 kristoff3r = {
18872000 email = "k.soeholm@gmail.com";
18882001 github = "kristoff3r";
@@ -1948,6 +2061,11 @@
19482061 github = "leenaars";
19492062 name = "Michiel Leenaars";
19502063 };
2064+ leo60228 = {
2065+ email = "iakornfeld@gmail.com";
2066+ github = "leo60228";
2067+ name = "leo60228";
2068+ };
19512069 leonardoce = {
19522070 email = "leonardo.cecchi@gmail.com";
19532071 github = "leonardoce";
@@ -2013,6 +2131,11 @@
20132131 github = "lo1tuma";
20142132 name = "Mathias Schreck";
20152133 };
2134+ lopsided98 = {
2135+ email = "benwolsieffer@gmail.com";
2136+ github = "lopsided98";
2137+ name = "Ben Wolsieffer";
2138+ };
20162139 loskutov = {
20172140 email = "ignat.loskutov@gmail.com";
20182141 github = "loskutov";
@@ -2140,6 +2263,11 @@
21402263 github = "markuskowa";
21412264 name = "Markus Kowalewski";
21422265 };
2266+ marsam = {
2267+ email = "marsam@users.noreply.github.com";
2268+ github = "marsam";
2269+ name = "Mario Rodas";
2270+ };
21432271 martijnvermaat = {
21442272 email = "martijn@vermaat.name";
21452273 github = "martijnvermaat";
@@ -2407,6 +2535,11 @@
24072535 github = "mschristiansen";
24082536 name = "Mikkel Christiansen";
24092537 };
2538+ msiedlarek = {
2539+ email = "mikolaj@siedlarek.pl";
2540+ github = "msiedlarek";
2541+ name = "Mikołaj Siedlarek";
2542+ };
24102543 mstarzyk = {
24112544 email = "mstarzyk@gmail.com";
24122545 github = "mstarzyk";
@@ -2422,6 +2555,11 @@
24222555 github = "mt-caret";
24232556 name = "Masayuki Takeda";
24242557 };
2558+ MtP = {
2559+ email = "marko.nixos@poikonen.de";
2560+ github = "MtP76";
2561+ name = "Marko Poikonen";
2562+ };
24252563 mtreskin = {
24262564 email = "zerthurd@gmail.com";
24272565 github = "Zert";
@@ -2517,6 +2655,11 @@
25172655 github = "ninjatrappeur";
25182656 name = "Félix Baylac-Jacqué";
25192657 };
2658+ nioncode = {
2659+ email = "nioncode+github@gmail.com";
2660+ github = "nioncode";
2661+ name = "Nicolas Schneider";
2662+ };
25202663 nipav = {
25212664 email = "niko.pavlinek@gmail.com";
25222665 github = "nipav";
@@ -2532,6 +2675,11 @@
25322675 github = "nmattia";
25332676 name = "Nicolas Mattia";
25342677 };
2678+ nocent = {
2679+ email = "nocent@protonmail.ch";
2680+ github = "nocent";
2681+ name = "nocent";
2682+ };
25352683 nocoolnametom = {
25362684 email = "nocoolnametom@gmail.com";
25372685 github = "nocoolnametom";
@@ -2556,6 +2704,11 @@
25562704 github = "nthorne";
25572705 name = "Niklas Thörne";
25582706 };
2707+ nyanloutre = {
2708+ email = "paul@nyanlout.re";
2709+ github = "nyanloutre";
2710+ name = "Paul Trehiou";
2711+ };
25592712 nyarly = {
25602713 email = "nyarly@gmail.com";
25612714 github = "nyarly";
@@ -2896,11 +3049,21 @@
28963049 github = "rbasso";
28973050 name = "Rafael Basso";
28983051 };
3052+ rdnetto = {
3053+ email = "rdnetto@gmail.com";
3054+ github = "rdnetto";
3055+ name = "Reuben D'Netto";
3056+ };
28993057 redbaron = {
29003058 email = "ivanov.maxim@gmail.com";
29013059 github = "redbaron";
29023060 name = "Maxim Ivanov";
29033061 };
3062+ redfish64 = {
3063+ email = "engler@gmail.com";
3064+ github = "redfish64";
3065+ name = "Tim Engler";
3066+ };
29043067 redvers = {
29053068 email = "red@infect.me";
29063069 github = "redvers";
@@ -2956,6 +3119,11 @@
29563119 github = "risicle";
29573120 name = "Robert Scott";
29583121 };
3122+ rittelle = {
3123+ email = "rittelle@posteo.de";
3124+ github = "rittelle";
3125+ name = "Lennart Rittel";
3126+ };
29593127 rlupton20 = {
29603128 email = "richard.lupton@gmail.com";
29613129 github = "rlupton20";
@@ -3016,6 +3184,11 @@
30163184 github = "rongcuid";
30173185 name = "Rongcui Dong";
30183186 };
3187+ rprospero = {
3188+ email = "rprospero+nix@gmail.com";
3189+ github = "rprospero";
3190+ name = "Adam Washington";
3191+ };
30193192 rszibele = {
30203193 email = "richard@szibele.com";
30213194 github = "rszibele";
@@ -3155,6 +3328,16 @@
31553328 github = "sellout";
31563329 name = "Greg Pfeil";
31573330 };
3331+ sengaya = {
3332+ email = "tlo@sengaya.de";
3333+ github = "sengaya";
3334+ name = "Thilo Uttendorfer";
3335+ };
3336+ sephalon = {
3337+ email = "me@sephalon.net";
3338+ github = "sephalon";
3339+ name = "Stefan Wiehler";
3340+ };
31583341 sepi = {
31593342 email = "raffael@mancini.lu";
31603343 github = "sepi";
@@ -3258,6 +3441,11 @@
32583441 github = "grwlf";
32593442 name = "Sergey Mironov";
32603443 };
3444+ sna = {
3445+ email = "abouzahra.9@wright.edu";
3446+ github = "s-na";
3447+ name = "S. Nordin Abouzahra";
3448+ };
32613449 snyh = {
32623450 email = "snyh@snyh.org";
32633451 github = "snyh";
@@ -3303,6 +3491,11 @@
33033491 github = "spwhitt";
33043492 name = "Spencer Whitt";
33053493 };
3494+ srghma = {
3495+ email = "srghma@gmail.com";
3496+ github = "srghma";
3497+ name = "Sergei Khoma";
3498+ };
33063499 srhb = {
33073500 email = "sbrofeldt@gmail.com";
33083501 github = "srhb";
@@ -3338,6 +3531,11 @@
33383531 github = "suvash";
33393532 name = "Suvash Thapaliya";
33403533 };
3534+ sveitser = {
3535+ email = "sveitser@gmail.com";
3536+ github = "sveitser";
3537+ name = "Mathis Antony";
3538+ };
33413539 svsdep = {
33423540 email = "svsdep@gmail.com";
33433541 github = "svsdep";
@@ -3363,6 +3561,11 @@
33633561 github = "symphorien";
33643562 name = "Guillaume Girol";
33653563 };
3564+ synthetica = {
3565+ email = "nix@hilhorst.be";
3566+ github = "Synthetica9";
3567+ name = "Patrick Hilhorst";
3568+ };
33663569 szczyp = {
33673570 email = "qb@szczyp.com";
33683571 github = "szczyp";
@@ -3418,6 +3621,11 @@
34183621 github = "tavyc";
34193622 name = "Octavian Cerna";
34203623 };
3624+ tazjin = {
3625+ email = "mail@tazj.in";
3626+ github = "tazjin";
3627+ name = "Vincent Ambo";
3628+ };
34213629 teh = {
34223630 email = "tehunger@gmail.com";
34233631 github = "teh";
@@ -3513,6 +3721,11 @@
35133721 github = "tnias";
35143722 name = "Philipp Bartsch";
35153723 };
3724+ tobim = {
3725+ email = "nix@tobim.fastmail.fm";
3726+ github = "tobimpub";
3727+ name = "Tobias Mayer";
3728+ };
35163729 tohl = {
35173730 email = "tom@logand.com";
35183731 github = "tohl";
@@ -3592,6 +3805,11 @@
35923805 github = "twey";
35933806 name = "James ‘Twey’ Kay";
35943807 };
3808+ typetetris = {
3809+ email = "ericwolf42@mail.com";
3810+ github = "typetetris";
3811+ name = "Eric Wolf";
3812+ };
35953813 unode = {
35963814 email = "alves.rjc@gmail.com";
35973815 github = "unode";
@@ -3607,6 +3825,11 @@
36073825 github = "utdemir";
36083826 name = "Utku Demir";
36093827 };
3828+ uvnikita = {
3829+ email = "uv.nikita@gmail.com";
3830+ github = "uvNikita";
3831+ name = "Nikita Uvarov";
3832+ };
36103833 uwap = {
36113834 email = "me@uwap.name";
36123835 github = "uwap";
@@ -3793,6 +4016,11 @@
37934016 github = "womfoo";
37944017 name = "Kranium Gikos Mendoza";
37954018 };
4019+ worldofpeace = {
4020+ email = "worldofpeace@users.noreply.github.com";
4021+ github = "worldofpeace";
4022+ name = "Worldofpeace";
4023+ };
37964024 wscott = {
37974025 email = "wsc9tt@gmail.com";
37984026 github = "wscott";
@@ -3883,6 +4111,11 @@
38834111 github = "yrashk";
38844112 name = "Yurii Rashkovskii";
38854113 };
4114+ ysndr = {
4115+ email = "me@ysndr.de";
4116+ github = "ysndr";
4117+ name = "Yannik Sander";
4118+ };
38864119 yuriaisaka = {
38874120 email = "yuri.aisaka+nix@gmail.com";
38884121 github = "yuriaisaka";
maintainers/scripts/copy-tarballs.pl+8−2
@@ -100,7 +100,10 @@ sub uploadFile {
100100 sub redirect {
101101 my ($name, $dest) = @_;
102102 #print STDERR "linking $name to $dest...\n";
103− $bucket->add_key($name, "", { 'x-amz-website-redirect-location' => "/" . $dest })
103+ $bucket->add_key($name, "", {
104+ 'x-amz-website-redirect-location' => "/" . $dest,
105+ 'x-amz-acl' => "public-read"
106+ })
104107 or die "failed to create redirect from $name to $dest\n";
105108 $cache{$name} = 1;
106109 }
@@ -112,7 +115,10 @@ sub uploadFile {
112115
113116 # Upload the file as sha512/<hash-in-base-16>.
114117 print STDERR "uploading $fn to $mainKey...\n";
115− $bucket->add_key_filename($mainKey, $fn, { 'x-amz-meta-original-name' => $name })
118+ $bucket->add_key_filename($mainKey, $fn, {
119+ 'x-amz-meta-original-name' => $name,
120+ 'x-amz-acl' => "public-read"
121+ })
116122 or die "failed to upload $fn to $mainKey\n";
117123 $cache{$mainKey} = 1;
118124}
maintainers/scripts/hydra-eval-failures.py+20−15
@@ -1,5 +1,5 @@
11#!/usr/bin/env nix-shell
2−#!nix-shell -i python -p pythonFull pythonPackages.requests pythonPackages.pyquery pythonPackages.click
2+#!nix-shell -i python3 -p 'python3.withPackages(ps: with ps; [ requests pyquery click ])'
33
44# To use, just execute this script with --help to display help.
55
@@ -13,10 +13,10 @@ from pyquery import PyQuery as pq
1313
1414
1515maintainers_json = subprocess.check_output([
16− 'nix-instantiate', '-E', 'import ./lib/maintainers.nix {}', '--eval', '--json'
16+ 'nix-instantiate', '-E', 'import ./maintainers/maintainer-list.nix {}', '--eval', '--json'
1717])
1818maintainers = json.loads(maintainers_json)
19−MAINTAINERS = {v: k for k, v in maintainers.iteritems()}
19+MAINTAINERS = {v: k for k, v in maintainers.items()}
2020
2121
2222def get_response_text(url):
@@ -45,6 +45,17 @@ def get_maintainers(attr_name):
4545 except:
4646 return []
4747
48+def print_build(table_row):
49+ a = pq(table_row)('a')[1]
50+ print("- [ ] [{}]({})".format(a.text, a.get('href')), flush=True)
51+
52+ maintainers = get_maintainers(a.text)
53+ if maintainers:
54+ print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
55+ # TODO: print last three persons that touched this file
56+ # TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
57+
58+ sys.stdout.flush()
4859
4960@click.command()
5061@click.option(
@@ -73,23 +84,17 @@ def cli(jobset):
7384
7485 # TODO: aborted evaluations
7586 # TODO: dependency failed without propagated builds
87+ print('\nFailures:')
7688 for tr in d('img[alt="Failed"]').parents('tr'):
77− a = pq(tr)('a')[1]
78− print("- [ ] [{}]({})".format(a.text, a.get('href')))
89+ print_build(tr)
7990
80− sys.stdout.flush()
81−
82− maintainers = get_maintainers(a.text)
83− if maintainers:
84− print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
85− # TODO: print last three persons that touched this file
86− # TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
87−
88− sys.stdout.flush()
91+ print('\nDependency failures:')
92+ for tr in d('img[alt="Dependency failed"]').parents('tr'):
93+ print_build(tr)
8994
9095
9196if __name__ == "__main__":
9297 try:
9398 cli()
94− except:
99+ except Exception as e:
95100 import pdb;pdb.post_mortem()
maintainers/scripts/update-python-libraries+2−2
@@ -1,5 +1,5 @@
11#! /usr/bin/env nix-shell
2−#! nix-shell -i python3 -p 'python3.withPackages(ps: with ps; [ packaging requests toolz ])' -p git
2+#! nix-shell -i python3 -p "python3.withPackages(ps: with ps; [ packaging requests toolz ])" -p git
33
44"""
55Update a Python package expression by passing in the `.nix` file, or the directory containing it.
@@ -358,4 +358,4 @@ def main():
358358
359359
360360if __name__ == '__main__':
361− main()
361+ main()
maintainers/scripts/update.nix+14−3
@@ -6,11 +6,22 @@
66# TODO: add assert statements
77
88let
9+ /* Remove duplicate elements from the list based on some extracted value. O(n^2) complexity.
10+ */
11+ nubOn = f: list:
12+ if list == [] then
13+ []
14+ else
15+ let
16+ x = pkgs.lib.head list;
17+ xs = pkgs.lib.filter (p: f x != f p) (pkgs.lib.drop 1 list);
18+ in
19+ [x] ++ nubOn f xs;
920
1021 pkgs = import ./../../default.nix { };
1122
1223 packagesWith = cond: return: set:
13− pkgs.lib.unique
24+ nubOn (pkg: pkg.updateScript)
1425 (pkgs.lib.flatten
1526 (pkgs.lib.mapAttrsToList
1627 (name: pkg:
@@ -34,7 +45,7 @@ let
3445 let
3546 maintainer =
3647 if ! builtins.hasAttr maintainer' pkgs.lib.maintainers then
37− builtins.throw "Maintainer with name `${maintainer'} does not exist in `lib/maintainers.nix`."
48+ builtins.throw "Maintainer with name `${maintainer'} does not exist in `maintainers/maintainer-list.nix`."
3849 else
3950 builtins.getAttr maintainer' pkgs.lib.maintainers;
4051 in
@@ -65,7 +76,7 @@ let
6576 if package == null then
6677 builtins.throw "Package with an attribute name `${name}` does not exists."
6778 else if ! builtins.hasAttr "updateScript" package then
68− builtins.throw "Package with an attribute name `${name}` does have an `passthru.updateScript` defined."
79+ builtins.throw "Package with an attribute name `${name}` does not have a `passthru.updateScript` attribute defined."
6980 else
7081 package;
7182
maintainers/scripts/vanity.sh+1−1
@@ -10,7 +10,7 @@ git_data="$(echo "$raw_git_log" | grep 'Author:' |
1010
1111# Name - nick - email correspondence from log and from maintainer list
1212# Also there are a few manual entries
13−maintainers="$(cat "$(dirname "$0")/../../lib/maintainers.nix" |
13+maintainers="$(cat "$(dirname "$0")/../maintainer-list.nix" |
1414 grep '=' | sed -re 's/\\"/''/g;
1515 s/[ ]*([^ =]*)[ ]*=[ ]*" *(.*[^ ]) *[<](.*)[>] *".*/\1\t\2\t\3/')"
1616git_lines="$( ( echo "$git_data";
nixos/doc/manual/default.nix+14−11
@@ -87,7 +87,7 @@ let
8787 echo "for hints about the offending path)."
8888 exit 1
8989 fi
90− ${libxslt.bin}/bin/xsltproc \
90+ ${buildPackages.libxslt.bin}/bin/xsltproc \
9191 --stringparam revision '${revision}' \
9292 -o $out ${./options-to-docbook.xsl} $optionsXML
9393 '';
@@ -124,11 +124,12 @@ let
124124 manualXsltprocOptions = toString [
125125 "--param section.autolabel 1"
126126 "--param section.label.includes.component.label 1"
127− "--stringparam html.stylesheet style.css"
127+ "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
128+ "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
128129 "--param xref.with.number.and.title 1"
129130 "--param toc.section.depth 3"
130131 "--stringparam admon.style ''"
131− "--stringparam callout.graphics.extension .gif"
132+ "--stringparam callout.graphics.extension .svg"
132133 "--stringparam current.docid manual"
133134 "--param chunk.section.depth 0"
134135 "--param chunk.first.sections 1"
@@ -139,7 +140,7 @@ let
139140
140141 manual-combined = runCommand "nixos-manual-combined"
141142 { inherit sources;
142− buildInputs = [ libxml2 libxslt ];
143+ nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin ];
143144 meta.description = "The NixOS manual as plain docbook XML";
144145 }
145146 ''
@@ -194,7 +195,7 @@ let
194195
195196 olinkDB = runCommand "manual-olinkdb"
196197 { inherit sources;
197− buildInputs = [ libxml2 libxslt ];
198+ nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin ];
198199 }
199200 ''
200201 xsltproc \
@@ -244,7 +245,7 @@ in rec {
244245 # Generate the NixOS manual.
245246 manual = runCommand "nixos-manual"
246247 { inherit sources;
247− buildInputs = [ libxml2 libxslt ];
248+ nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin ];
248249 meta.description = "The NixOS manual in HTML format";
249250 allowedReferences = ["out"];
250251 }
@@ -260,9 +261,11 @@ in rec {
260261 ${manual-combined}/manual-combined.xml
261262
262263 mkdir -p $dst/images/callouts
263− cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/
264+ cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/images/callouts/
264265
265− cp ${./style.css} $dst/style.css
266+ cp ${../../../doc/style.css} $dst/style.css
267+ cp ${../../../doc/overrides.css} $dst/overrides.css
268+ cp -r ${pkgs.documentation-highlighter} $dst/highlightjs
266269
267270 mkdir -p $out/nix-support
268271 echo "nix-build out $out" >> $out/nix-support/hydra-build-products
@@ -272,7 +275,7 @@ in rec {
272275
273276 manualEpub = runCommand "nixos-manual-epub"
274277 { inherit sources;
275− buildInputs = [ libxml2 libxslt zip ];
278+ buildInputs = [ libxml2.bin libxslt.bin zip ];
276279 }
277280 ''
278281 # Generate the epub manual.
@@ -286,7 +289,7 @@ in rec {
286289 ${manual-combined}/manual-combined.xml
287290
288291 mkdir -p $dst/epub/OEBPS/images/callouts
289− cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/epub/OEBPS/images/callouts # */
292+ cp -r ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.svg $dst/epub/OEBPS/images/callouts # */
290293 echo "application/epub+zip" > mimetype
291294 manual="$dst/nixos-manual.epub"
292295 zip -0Xq "$manual" mimetype
@@ -302,7 +305,7 @@ in rec {
302305 # Generate the NixOS manpages.
303306 manpages = runCommand "nixos-manpages"
304307 { inherit sources;
305− buildInputs = [ libxml2 libxslt ];
308+ nativeBuildInputs = [ buildPackages.libxml2.bin buildPackages.libxslt.bin ];
306309 allowedReferences = ["out"];
307310 }
308311 ''
nixos/doc/manual/development/option-types.xml+2−2
@@ -282,8 +282,8 @@ options.mod = mkOption {
282282 option set (<xref linkend='ex-submodule-listof-definition' />).</para>
283283
284284
285−<example xml:id='ex-submodule-listof-declaration'><title>Declaration of a list
286− nof submodules</title>
285+<example xml:id='ex-submodule-listof-declaration'><title>Declaration of a list
286+ of submodules</title>
287287<screen>
288288options.mod = mkOption {
289289 description = "submodule example";
nixos/doc/manual/installation/installing-from-other-distro.xml+12
@@ -227,6 +227,18 @@ $ sudo groupdel nixbld</screen>
227227 line)</para></listitem>
228228 </itemizedlist>
229229
230+ <note><para>Support for <literal>NIXOS_LUSTRATE</literal> was added
231+ in NixOS 16.09. The act of "lustrating" refers to the
232+ wiping of the existing distribution. Creating
233+ <literal>/etc/NIXOS_LUSTRATE</literal> can also be used on
234+ NixOS to remove all mutable files from your root partition
235+ (anything that's not in <literal>/nix</literal> or
236+ <literal>/boot</literal> gets "lustrated" on the next
237+ boot.</para>
238+ <para>lustrate /ˈlʌstreɪt/ verb.</para>
239+ <para>purify by expiatory sacrifice, ceremonial washing, or
240+ some other ritual action.</para></note>
241+
230242 <para>Let's create the files:</para>
231243
232244 <screen>
nixos/doc/manual/installation/installing-usb.xml+1−1
@@ -51,7 +51,7 @@ ISO, copy its contents verbatim to your drive, then either:
5151 <listitem>
5252 <para>If you want to load the contents of the ISO to ram after bootin
5353 (So you can remove the stick after bootup) you can append the parameter
54− <literal>copytoram</literal>to the <literal>options</literal> field.</para>
54+ <literal>copytoram</literal> to the <literal>options</literal> field.</para>
5555 </listitem>
5656</itemizedlist>
5757</para>
nixos/doc/manual/installation/installing.xml+7−11
@@ -115,23 +115,17 @@ for a UEFI installation is by and large the same as a BIOS installation. The dif
115115 <varlistentry><term>UEFI systems</term>
116116 <listitem><para>For creating boot partitions:
117117 <command>mkfs.fat</command>. Again it’s recommended to assign a
118− label to the boot partition: <option>-L
118+ label to the boot partition: <option>-n
119119 <replaceable>label</replaceable></option>. For example:
120120
121121<screen>
122−# mkfs.fat -F 32 -L boot /dev/sda3</screen>
122+# mkfs.fat -F 32 -n boot /dev/sda3</screen>
123123
124124 </para></listitem></varlistentry></variablelist></listitem>
125125
126126 <listitem><para>For creating LVM volumes, the LVM commands, e.g.,
127−
128−<screen>
129−# pvcreate /dev/sda1 /dev/sdb1
130−# vgcreate MyVolGroup /dev/sda1 /dev/sdb1
131−# lvcreate --size 2G --name bigdisk MyVolGroup
132−# lvcreate --size 1G --name smalldisk MyVolGroup</screen>
133−
134− </para></listitem>
127+ <command>pvcreate</command>, <command>vgcreate</command>, and
128+ <command>lvcreate</command>.</para></listitem>
135129
136130 <listitem><para>For creating software RAID devices, use
137131 <command>mdadm</command>.</para></listitem>
@@ -155,6 +149,7 @@ for a UEFI installation is by and large the same as a BIOS installation. The dif
155149 <listitem><para>Mount the boot file system on <filename>/mnt/boot</filename>, e.g.
156150
157151<screen>
152+# mkdir -p /mnt/boot
158153# mount /dev/disk/by-label/boot /mnt/boot
159154</screen>
160155
@@ -366,8 +361,9 @@ drive (here <filename>/dev/sda</filename>). <xref linkend="ex-config"
366361# mkfs.ext4 -L nixos /dev/sda1
367362# mkswap -L swap /dev/sda2
368363# swapon /dev/sda2
369−# mkfs.fat -F 32 -L boot /dev/sda3 # <lineannotation>(for UEFI systems only)</lineannotation>
364+# mkfs.fat -F 32 -n boot /dev/sda3 # <lineannotation>(for UEFI systems only)</lineannotation>
370365# mount /dev/disk/by-label/nixos /mnt
366+# mkdir -p /mnt/boot # <lineannotation>(for UEFI systems only)</lineannotation>
371367# mount /dev/disk/by-label/boot /mnt/boot # <lineannotation>(for UEFI systems only)</lineannotation>
372368# nixos-generate-config --root /mnt
373369# nano /mnt/etc/nixos/configuration.nix
nixos/doc/manual/man-nixos-build-vms.xml+3−3
@@ -40,7 +40,7 @@ points to the generated virtual network.
4040 test1 = {pkgs, config, ...}:
4141 {
4242 services.openssh.enable = true;
43− nixpkgs.system = "i686-linux";
43+ nixpkgs.localSystem.system = "i686-linux";
4444 deployment.targetHost = "test1.example.net";
4545
4646 # Other NixOS options
@@ -51,7 +51,7 @@ points to the generated virtual network.
5151 services.openssh.enable = true;
5252 services.httpd.enable = true;
5353 environment.systemPackages = [ pkgs.lynx ];
54− nixpkgs.system = "x86_64-linux";
54+ nixpkgs.localSystem.system = "x86_64-linux";
5555 deployment.targetHost = "test2.example.net";
5656
5757 # Other NixOS options
@@ -66,7 +66,7 @@ In each NixOS configuration, two attributes have a special meaning.
6666The <varname>deployment.targetHost</varname> specifies the address
6767(domain name or IP address)
6868of the system which is used by <command>ssh</command> to perform
69−remote deployment operations. The <varname>nixpkgs.system</varname>
69+remote deployment operations. The <varname>nixpkgs.localSystem.system</varname>
7070attribute can be used to specify an architecture for the target machine,
7171such as <varname>i686-linux</varname> which builds a 32-bit NixOS
7272configuration. Omitting this property will build the configuration
nixos/doc/manual/release-notes/release-notes.xml+1
@@ -9,6 +9,7 @@
99<para>This section lists the release notes for each stable version of NixOS
1010and current unstable revision.</para>
1111
12+<xi:include href="rl-1809.xml" />
1213<xi:include href="rl-1803.xml" />
1314<xi:include href="rl-1709.xml" />
1415<xi:include href="rl-1703.xml" />
nixos/doc/manual/release-notes/rl-1803.xml+116−23
@@ -4,7 +4,7 @@
44 version="5.0"
55 xml:id="sec-release-18.03">
66
7−<title>Release 18.03 (“Impala”, 2018/03/??)</title>
7+<title>Release 18.03 (“Impala”, 2018/04/04)</title>
88
99<section xmlns="http://docbook.org/ns/docbook"
1010 xmlns:xlink="http://www.w3.org/1999/xlink"
@@ -18,6 +18,20 @@
1818has the following highlights: </para>
1919
2020<itemizedlist>
21+
22+ <listitem>
23+ <para>
24+ End of support is planned for end of October 2018, handing over to 18.09.
25+ </para>
26+ </listitem>
27+
28+ <listitem>
29+ <para>
30+ Platform support: x86_64-linux and x86_64-darwin since release time (the latter isn't NixOS, really).
31+ Binaries for aarch64-linux are available, but no channel exists yet, as it's waiting for some test fixes, etc.
32+ </para>
33+ </listitem>
34+
2135 <listitem>
2236 <para>
2337 Nix now defaults to 2.0; see its
@@ -27,13 +41,13 @@ has the following highlights: </para>
2741
2842 <listitem>
2943 <para>
30− Linux kernel defaults to the 4.14 branch (it was 4.9).
44+ Core version changes: linux: 4.9 -> 4.14, glibc: 2.25 -> 2.26, gcc: 6 -> 7, systemd: 234 -> 237.
3145 </para>
3246 </listitem>
3347
3448 <listitem>
3549 <para>
36− GCC defaults to 7.x (it was 6.x).
50+ Desktop version changes: gnome: 3.24 -> 3.26, (KDE) plasma-desktop: 5.10 -> 5.12.
3751 </para>
3852 </listitem>
3953
@@ -59,13 +73,7 @@ has the following highlights: </para>
5973 </listitem>
6074
6175 <listitem>
62− <para>
63− The GNOME version is now 3.26.
64− </para>
65− </listitem>
66−
67− <listitem>
68− <para>PHP now defaults to PHP 7.2</para>
76+ <para>PHP now defaults to PHP 7.2, updated from 7.1.</para>
6977 </listitem>
7078</itemizedlist>
7179
@@ -81,9 +89,66 @@ has the following highlights: </para>
8189<para>The following new services were added since the last release:</para>
8290
8391<itemizedlist>
84− <listitem>
85− <para></para>
86− </listitem>
92+ <listitem><para><literal>./config/krb5/default.nix</literal></para></listitem>
93+ <listitem><para><literal>./hardware/digitalbitbox.nix</literal></para></listitem>
94+ <listitem><para><literal>./misc/label.nix</literal></para></listitem>
95+ <listitem><para><literal>./programs/ccache.nix</literal></para></listitem>
96+ <listitem><para><literal>./programs/criu.nix</literal></para></listitem>
97+ <listitem><para><literal>./programs/digitalbitbox/default.nix</literal></para></listitem>
98+ <listitem><para><literal>./programs/less.nix</literal></para></listitem>
99+ <listitem><para><literal>./programs/npm.nix</literal></para></listitem>
100+ <listitem><para><literal>./programs/plotinus.nix</literal></para></listitem>
101+ <listitem><para><literal>./programs/rootston.nix</literal></para></listitem>
102+ <listitem><para><literal>./programs/systemtap.nix</literal></para></listitem>
103+ <listitem><para><literal>./programs/sway.nix</literal></para></listitem>
104+ <listitem><para><literal>./programs/udevil.nix</literal></para></listitem>
105+ <listitem><para><literal>./programs/way-cooler.nix</literal></para></listitem>
106+ <listitem><para><literal>./programs/yabar.nix</literal></para></listitem>
107+ <listitem><para><literal>./programs/zsh/zsh-autoenv.nix</literal></para></listitem>
108+ <listitem><para><literal>./services/backup/borgbackup.nix</literal></para></listitem>
109+ <listitem><para><literal>./services/backup/crashplan-small-business.nix</literal></para></listitem>
110+ <listitem><para><literal>./services/desktops/dleyna-renderer.nix</literal></para></listitem>
111+ <listitem><para><literal>./services/desktops/dleyna-server.nix</literal></para></listitem>
112+ <listitem><para><literal>./services/desktops/pipewire.nix</literal></para></listitem>
113+ <listitem><para><literal>./services/desktops/gnome3/chrome-gnome-shell.nix</literal></para></listitem>
114+ <listitem><para><literal>./services/desktops/gnome3/tracker-miners.nix</literal></para></listitem>
115+ <listitem><para><literal>./services/hardware/fwupd.nix</literal></para></listitem>
116+ <listitem><para><literal>./services/hardware/interception-tools.nix</literal></para></listitem>
117+ <listitem><para><literal>./services/hardware/u2f.nix</literal></para></listitem>
118+ <listitem><para><literal>./services/hardware/usbmuxd.nix</literal></para></listitem>
119+ <listitem><para><literal>./services/mail/clamsmtp.nix</literal></para></listitem>
120+ <listitem><para><literal>./services/mail/dkimproxy-out.nix</literal></para></listitem>
121+ <listitem><para><literal>./services/mail/pfix-srsd.nix</literal></para></listitem>
122+ <listitem><para><literal>./services/misc/gitea.nix</literal></para></listitem>
123+ <listitem><para><literal>./services/misc/home-assistant.nix</literal></para></listitem>
124+ <listitem><para><literal>./services/misc/ihaskell.nix</literal></para></listitem>
125+ <listitem><para><literal>./services/misc/logkeys.nix</literal></para></listitem>
126+ <listitem><para><literal>./services/misc/novacomd.nix</literal></para></listitem>
127+ <listitem><para><literal>./services/misc/osrm.nix</literal></para></listitem>
128+ <listitem><para><literal>./services/misc/plexpy.nix</literal></para></listitem>
129+ <listitem><para><literal>./services/misc/pykms.nix</literal></para></listitem>
130+ <listitem><para><literal>./services/misc/tzupdate.nix</literal></para></listitem>
131+ <listitem><para><literal>./services/monitoring/fusion-inventory.nix</literal></para></listitem>
132+ <listitem><para><literal>./services/monitoring/prometheus/exporters.nix</literal></para></listitem>
133+ <listitem><para><literal>./services/network-filesystems/beegfs.nix</literal></para></listitem>
134+ <listitem><para><literal>./services/network-filesystems/davfs2.nix</literal></para></listitem>
135+ <listitem><para><literal>./services/network-filesystems/openafs/client.nix</literal></para></listitem>
136+ <listitem><para><literal>./services/network-filesystems/openafs/server.nix</literal></para></listitem>
137+ <listitem><para><literal>./services/network-filesystems/ceph.nix</literal></para></listitem>
138+ <listitem><para><literal>./services/networking/aria2.nix</literal></para></listitem>
139+ <listitem><para><literal>./services/networking/monero.nix</literal></para></listitem>
140+ <listitem><para><literal>./services/networking/nghttpx/default.nix</literal></para></listitem>
141+ <listitem><para><literal>./services/networking/nixops-dns.nix</literal></para></listitem>
142+ <listitem><para><literal>./services/networking/rxe.nix</literal></para></listitem>
143+ <listitem><para><literal>./services/networking/stunnel.nix</literal></para></listitem>
144+ <listitem><para><literal>./services/web-apps/matomo.nix</literal></para></listitem>
145+ <listitem><para><literal>./services/web-apps/restya-board.nix</literal></para></listitem>
146+ <listitem><para><literal>./services/web-servers/mighttpd2.nix</literal></para></listitem>
147+ <listitem><para><literal>./services/x11/fractalart.nix</literal></para></listitem>
148+ <listitem><para><literal>./system/boot/binfmt.nix</literal></para></listitem>
149+ <listitem><para><literal>./system/boot/grow-partition.nix</literal></para></listitem>
150+ <listitem><para><literal>./tasks/filesystems/ecryptfs.nix</literal></para></listitem>
151+ <listitem><para><literal>./virtualisation/hyperv-guest.nix</literal></para></listitem>
87152</itemizedlist>
88153
89154</section>
@@ -174,7 +239,7 @@ following incompatible changes:</para>
174239 the <literal>openssh_with_kerberos</literal> package
175240 is now a deprecated alias.
176241 If you do not want Kerberos support,
177− you can do <literal>openssh.override { withKerboros = false; }</literal>.
242+ you can do <literal>openssh.override { withKerberos = false; }</literal>.
178243 Note, this also applies to the <literal>openssh_hpn</literal> package.
179244 </para>
180245 </listitem>
@@ -322,6 +387,43 @@ following incompatible changes:</para>
322387 <link xlink:href="https://github.com/rvl/pump.io-nixos">external module</link>.
323388 </para>
324389 </listitem>
390+ <listitem>
391+ <para>
392+ The Prosody XMPP server has received a major update. The following modules were renamed:
393+ <itemizedlist>
394+ <listitem>
395+ <para>
396+ <option>services.prosody.modules.httpserver</option> is now <option>services.prosody.modules.http_files</option>
397+ </para>
398+ </listitem>
399+ <listitem>
400+ <para>
401+ <option>services.prosody.modules.console</option> is now <option>services.prosody.modules.admin_telnet</option>
402+ </para>
403+ </listitem>
404+ </itemizedlist>
405+ </para>
406+
407+ <para>
408+ Many new modules are now core modules, most notably <option>services.prosody.modules.carbons</option>
409+ and <option>services.prosody.modules.mam</option>.
410+ </para>
411+
412+ <para>
413+ The better-performing <literal>libevent</literal> backend is now enabled by default.
414+ </para>
415+
416+ <para>
417+ <literal>withCommunityModules</literal> now passes through the modules to <option>services.prosody.extraModules</option>.
418+ Use <literal>withOnlyInstalledCommunityModules</literal> for modules that should not be enabled directly, e.g <literal>lib_ldap</literal>.
419+ </para>
420+ </listitem>
421+ <listitem>
422+ <para>
423+ All prometheus exporter modules are now defined as submodules.
424+ The exporters are configured using <literal>services.prometheus.exporters</literal>.
425+ </para>
426+ </listitem>
325427</itemizedlist>
326428
327429</section>
@@ -381,15 +483,6 @@ following incompatible changes:</para>
381483 have been added to set up static routing.
382484 </para>
383485 </listitem>
384− <listitem>
385− <para>
386− The option <option>services.xserver.desktopManager.default</option> is now
387− <literal>none</literal> by default. An assertion failure is thrown if WM's
388− and DM's default are <literal>none</literal>.
389− To explicitly run a plain X session without and DM or WM, the newly
390− introduced option <option>services.xserver.plainX</option> must be set to true.
391− </para>
392− </listitem>
393486 <listitem>
394487 <para>
395488 The option <option>services.logstash.listenAddress</option> is now <literal>127.0.0.1</literal> by default.
nixos/doc/manual/release-notes/rl-1809.xmlnew file+85
@@ -0,0 +1,85 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="sec-release-18.09">
6+
7+<title>Release 18.09 (“Jellyfish”, 2018/09/??)</title>
8+
9+<section xmlns="http://docbook.org/ns/docbook"
10+ xmlns:xlink="http://www.w3.org/1999/xlink"
11+ xmlns:xi="http://www.w3.org/2001/XInclude"
12+ version="5.0"
13+ xml:id="sec-release-18.09-highlights">
14+
15+<title>Highlights</title>
16+
17+<para>In addition to numerous new and upgraded packages, this release
18+has the following highlights: </para>
19+
20+<itemizedlist>
21+ <listitem>
22+ <para>
23+ TODO
24+ </para>
25+ </listitem>
26+
27+</itemizedlist>
28+
29+</section>
30+<section xmlns="http://docbook.org/ns/docbook"
31+ xmlns:xlink="http://www.w3.org/1999/xlink"
32+ xmlns:xi="http://www.w3.org/2001/XInclude"
33+ version="5.0"
34+ xml:id="sec-release-18.09-new-services">
35+
36+<title>New Services</title>
37+
38+<para>The following new services were added since the last release:</para>
39+
40+<itemizedlist>
41+ <listitem>
42+ <para></para>
43+ </listitem>
44+</itemizedlist>
45+
46+</section>
47+<section xmlns="http://docbook.org/ns/docbook"
48+ xmlns:xlink="http://www.w3.org/1999/xlink"
49+ xmlns:xi="http://www.w3.org/2001/XInclude"
50+ version="5.0"
51+ xml:id="sec-release-18.09-incompatibilities">
52+
53+<title>Backward Incompatibilities</title>
54+
55+<para>When upgrading from a previous release, please be aware of the
56+following incompatible changes:</para>
57+
58+<itemizedlist>
59+ <listitem>
60+ <para>
61+ The <literal>clementine</literal> package points now to the free derivation.
62+ <literal>clementineFree</literal> is removed now and <literal>clementineUnfree</literal>
63+ points to the package which is bundled with the unfree <literal>libspotify</literal> package.
64+ </para>
65+ </listitem>
66+</itemizedlist>
67+
68+</section>
69+<section xmlns="http://docbook.org/ns/docbook"
70+ xmlns:xlink="http://www.w3.org/1999/xlink"
71+ xmlns:xi="http://www.w3.org/2001/XInclude"
72+ version="5.0"
73+ xml:id="sec-release-18.09-notable-changes">
74+
75+<title>Other Notable Changes</title>
76+
77+<itemizedlist>
78+ <listitem>
79+ <para>
80+ </para>
81+ </listitem>
82+</itemizedlist>
83+
84+</section>
85+</section>
nixos/doc/manual/style.cssdeleted−267
@@ -1,267 +0,0 @@
1−/* Copied from http://bakefile.sourceforge.net/, which appears
2− licensed under the GNU GPL. */
3−
4−
5−/***************************************************************************
6− Basic headers and text:
7− ***************************************************************************/
8−
9−body
10−{
11− font-family: "Nimbus Sans L", sans-serif;
12− background: white;
13− margin: 2em 1em 2em 1em;
14−}
15−
16−h1, h2, h3, h4
17−{
18− color: #005aa0;
19−}
20−
21−h1 /* title */
22−{
23− font-size: 200%;
24−}
25−
26−h2 /* chapters, appendices, subtitle */
27−{
28− font-size: 180%;
29−}
30−
31−/* Extra space between chapters, appendices. */
32−div.chapter > div.titlepage h2, div.appendix > div.titlepage h2
33−{
34− margin-top: 1.5em;
35−}
36−
37−div.section > div.titlepage h2 /* sections */
38−{
39− font-size: 150%;
40− margin-top: 1.5em;
41−}
42−
43−h3 /* subsections */
44−{
45− font-size: 125%;
46−}
47−
48−div.simplesect h2
49−{
50− font-size: 110%;
51−}
52−
53−div.appendix h3
54−{
55− font-size: 150%;
56− margin-top: 1.5em;
57−}
58−
59−div.refnamediv h2, div.refsynopsisdiv h2, div.refsection h2 /* refentry parts */
60−{
61− margin-top: 1.4em;
62− font-size: 125%;
63−}
64−
65−div.refsection h3
66−{
67− font-size: 110%;
68−}
69−
70−
71−/***************************************************************************
72− Examples:
73− ***************************************************************************/
74−
75−div.example
76−{
77− border: 1px solid #b0b0b0;
78− padding: 6px 6px;
79− margin-left: 1.5em;
80− margin-right: 1.5em;
81− background: #f4f4f8;
82− border-radius: 0.4em;
83− box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
84−}
85−
86−div.example p.title
87−{
88− margin-top: 0em;
89−}
90−
91−div.example pre
92−{
93− box-shadow: none;
94−}
95−
96−
97−/***************************************************************************
98− Screen dumps:
99− ***************************************************************************/
100−
101−pre.screen, pre.programlisting
102−{
103− border: 1px solid #b0b0b0;
104− padding: 3px 3px;
105− margin-left: 1.5em;
106− margin-right: 1.5em;
107− color: #600000;
108− background: #f4f4f8;
109− font-family: monospace;
110− border-radius: 0.4em;
111− box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
112−}
113−
114−div.example pre.programlisting
115−{
116− border: 0px;
117− padding: 0 0;
118− margin: 0 0 0 0;
119−}
120−
121−
122−/***************************************************************************
123− Notes, warnings etc:
124− ***************************************************************************/
125−
126−.note, .warning
127−{
128− border: 1px solid #b0b0b0;
129− padding: 3px 3px;
130− margin-left: 1.5em;
131− margin-right: 1.5em;
132− margin-bottom: 1em;
133− padding: 0.3em 0.3em 0.3em 0.3em;
134− background: #fffff5;
135− border-radius: 0.4em;
136− box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
137−}
138−
139−div.note, div.warning
140−{
141− font-style: italic;
142−}
143−
144−div.note h3, div.warning h3
145−{
146− color: red;
147− font-size: 100%;
148− padding-right: 0.5em;
149− display: inline;
150−}
151−
152−div.note p, div.warning p
153−{
154− margin-bottom: 0em;
155−}
156−
157−div.note h3 + p, div.warning h3 + p
158−{
159− display: inline;
160−}
161−
162−div.note h3
163−{
164− color: blue;
165− font-size: 100%;
166−}
167−
168−div.navfooter *
169−{
170− font-size: 90%;
171−}
172−
173−
174−/***************************************************************************
175− Links colors and highlighting:
176− ***************************************************************************/
177−
178−a { text-decoration: none; }
179−a:hover { text-decoration: underline; }
180−a:link { color: #0048b3; }
181−a:visited { color: #002a6a; }
182−
183−
184−/***************************************************************************
185− Table of contents:
186− ***************************************************************************/
187−
188−div.toc
189−{
190− font-size: 90%;
191−}
192−
193−div.toc dl
194−{
195− margin-top: 0em;
196− margin-bottom: 0em;
197−}
198−
199−
200−/***************************************************************************
201− Special elements:
202− ***************************************************************************/
203−
204−tt, code
205−{
206− color: #400000;
207−}
208−
209−.term
210−{
211− font-weight: bold;
212−
213−}
214−
215−div.variablelist dd p, div.glosslist dd p
216−{
217− margin-top: 0em;
218−}
219−
220−div.variablelist dd, div.glosslist dd
221−{
222− margin-left: 1.5em;
223−}
224−
225−div.glosslist dt
226−{
227− font-style: italic;
228−}
229−
230−.varname
231−{
232− color: #400000;
233−}
234−
235−span.command strong
236−{
237− font-weight: normal;
238− color: #400000;
239−}
240−
241−div.calloutlist table
242−{
243− box-shadow: none;
244−}
245−
246−table
247−{
248− border-collapse: collapse;
249− box-shadow: 0.4em 0.4em 0.5em #e0e0e0;
250−}
251−
252−table.simplelist
253−{
254− text-align: left;
255− color: #005aa0;
256− border: 0;
257− padding: 5px;
258− background: #fffff5;
259− font-weight: normal;
260− font-style: italic;
261− box-shadow: none;
262− margin-bottom: 1em;
263−}
264−
265−div.navheader table, div.navfooter table {
266− box-shadow: none;
267−}
nixos/lib/eval-config.nix+2−2
@@ -26,7 +26,7 @@
2626, lib ? import ../../lib
2727}:
2828
29−let extraArgs_ = extraArgs; pkgs_ = pkgs; system_ = system;
29+let extraArgs_ = extraArgs; pkgs_ = pkgs;
3030 extraModules = let e = builtins.getEnv "NIXOS_EXTRA_MODULE_PATH";
3131 in if e == "" then [] else [(import (builtins.toPath e))];
3232in
@@ -36,7 +36,7 @@ let
3636 _file = ./eval-config.nix;
3737 key = _file;
3838 config = {
39− nixpkgs.system = lib.mkDefault system_;
39+ nixpkgs.localSystem = lib.mkDefault { inherit system; };
4040 _module.args.pkgs = lib.mkIf (pkgs_ != null) (lib.mkForce pkgs_);
4141 };
4242 };
nixos/lib/make-ext4-fs.nix+7−8
@@ -7,23 +7,22 @@
77, volumeLabel
88}:
99
10+let
11+ sdClosureInfo = pkgs.closureInfo { rootPaths = storePaths; };
12+in
13+
1014pkgs.stdenv.mkDerivation {
1115 name = "ext4-fs.img";
1216
1317 nativeBuildInputs = with pkgs; [e2fsprogs libfaketime perl];
1418
15− # For obtaining the closure of `storePaths'.
16− exportReferencesGraph =
17− map (x: [("closure-" + baseNameOf x) x]) storePaths;
18−
1919 buildCommand =
2020 ''
2121 # Add the closures of the top-level store objects.
22− storePaths=$(perl ${pkgs.pathsFromGraph} closure-*)
22+ storePaths=$(cat ${sdClosureInfo}/store-paths)
2323
24− # Also include a manifest of the closures in a format suitable
25− # for nix-store --load-db.
26− printRegistration=1 perl ${pkgs.pathsFromGraph} closure-* > nix-path-registration
24+ # Also include a manifest of the closures in a format suitable for nix-store --load-db.
25+ cp ${sdClosureInfo}/registration nix-path-registration
2726
2827 # Make a crude approximation of the size of the target image.
2928 # If the script starts failing, increase the fudge factors here.
nixos/lib/make-system-tarball.nix+11−3
@@ -1,4 +1,4 @@
1−{ stdenv, perl, xz, pathsFromGraph
1+{ stdenv, perl, pixz, pathsFromGraph
22
33, # The file name of the resulting tarball
44 fileName ? "nixos-system-${stdenv.system}"
@@ -21,14 +21,20 @@
2121
2222 # Extra tar arguments
2323, extraArgs ? ""
24+ # Command used for compression
25+, compressCommand ? "pixz"
26+ # Extension for the compressed tarball
27+, compressionExtension ? ".xz"
28+ # extra inputs, like the compressor to use
29+, extraInputs ? [ pixz ]
2430}:
2531
2632stdenv.mkDerivation {
2733 name = "tarball";
2834 builder = ./make-system-tarball.sh;
29− buildInputs = [perl xz];
35+ buildInputs = [ perl ] ++ extraInputs;
3036
31− inherit fileName pathsFromGraph extraArgs extraCommands;
37+ inherit fileName pathsFromGraph extraArgs extraCommands compressCommand;
3238
3339 # !!! should use XML.
3440 sources = map (x: x.source) contents;
@@ -41,4 +47,6 @@ stdenv.mkDerivation {
4147 # For obtaining the closure of `storeContents'.
4248 exportReferencesGraph =
4349 map (x: [("closure-" + baseNameOf x.object) x.object]) storeContents;
50+
51+ extension = compressionExtension;
4452}
nixos/lib/make-system-tarball.sh+2−3
@@ -1,5 +1,4 @@
11source $stdenv/setup
2−set -x
32
43sources_=($sources)
54targets_=($targets)
@@ -54,8 +53,8 @@ mkdir -p $out/tarball
5453
5554rm env-vars
5655
57−tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -cvJf $out/tarball/$fileName.tar.xz * $extraArgs
56+time tar --sort=name --mtime='@1' --owner=0 --group=0 --numeric-owner -c * $extraArgs | $compressCommand > $out/tarball/$fileName.tar${extension}
5857
5958mkdir -p $out/nix-support
6059echo $system > $out/nix-support/system
61−echo "file system-tarball $out/tarball/$fileName.tar.xz" > $out/nix-support/hydra-build-products
60+echo "file system-tarball $out/tarball/$fileName.tar${extension}" > $out/nix-support/hydra-build-products
nixos/lib/test-driver/Machine.pm+1−1
@@ -612,7 +612,7 @@ sub waitForX {
612612 my ($self, $regexp) = @_;
613613 $self->nest("waiting for the X11 server", sub {
614614 retry sub {
615− my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'session opened'");
615+ my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'Reached target Current graphical'");
616616 return 0 if $status != 0;
617617 ($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
618618 return 1 if $status == 0;
nixos/lib/testing.nix+10−4
@@ -3,7 +3,11 @@
33with import ./build-vms.nix { inherit system minimal config; };
44with pkgs;
55
6−rec {
6+let
7+ jquery-ui = callPackage ./testing/jquery-ui.nix { };
8+ jquery = callPackage ./testing/jquery.nix { };
9+
10+in rec {
711
812 inherit pkgs;
913
@@ -107,6 +111,8 @@ rec {
107111
108112 ocrProg = tesseract_4.override { enableLanguages = [ "eng" ]; };
109113
114+ imagemagick_tiff = imagemagick_light.override { inherit libtiff; };
115+
110116 # Generate onvenience wrappers for running the test driver
111117 # interactively with the specified network, and for starting the
112118 # VMs from the command line.
@@ -124,7 +130,7 @@ rec {
124130 wrapProgram $out/bin/nixos-test-driver \
125131 --add-flags "''${vms[*]}" \
126132 ${lib.optionalString enableOCR
127− "--prefix PATH : '${ocrProg}/bin:${imagemagick}/bin'"} \
133+ "--prefix PATH : '${ocrProg}/bin:${imagemagick_tiff}/bin'"} \
128134 --run "export testScript=\"\$(cat $out/test-script)\"" \
129135 --set VLANS '${toString vlans}'
130136 ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms
@@ -143,8 +149,8 @@ rec {
143149 test = passMeta (runTests driver);
144150 report = passMeta (releaseTools.gcovReport { coverageRuns = [ test ]; });
145151
146− in (if makeCoverageReport then report else test) // {
147− inherit nodes driver test;
152+ in (if makeCoverageReport then report else test) // {
153+ inherit nodes driver test;
148154 };
149155
150156 runInMachine =
pkgs/development/libraries/javascript/jquery-ui/default.nix → nixos/lib/testing/jquery-ui.nixrenamed
The content is the same.
pkgs/development/libraries/javascript/jquery/default.nix → nixos/lib/testing/jquery.nixrenamed
The content is the same.
nixos/maintainers/option-usages.nix+3−3
@@ -15,7 +15,7 @@
1515#
1616# $ nix-build ./option-usage.nix --argstr testOption service.xserver.enable -A txt -o service.xserver.enable._txt
1717#
18−# otther target exists such as, `dotContent`, `dot`, and `pdf`. If you are
18+# Other targets exists such as `dotContent`, `dot`, and `pdf`. If you are
1919# looking for the option usage of multiple options, you can provide a list
2020# as argument.
2121#
@@ -35,7 +35,7 @@
3535# value is replaced by a `throw` statement which is caught by the `tryEval`
3636# evaluation of each option value.
3737#
38−# We then compare the result of the evluation of the original module, with
38+# We then compare the result of the evaluation of the original module, with
3939# the result of the second evaluation, and consider that the new failures are
4040# caused by our mutation of the `config` argument.
4141#
@@ -62,7 +62,7 @@ let
6262 "_module.args"
6363
6464 # For some reasons which we yet have to investigate, some options cannot
65− # be replaced by a throw without cuasing a non-catchable failure.
65+ # be replaced by a throw without causing a non-catchable failure.
6666 "networking.bonds"
6767 "networking.bridges"
6868 "networking.interfaces"
nixos/maintainers/scripts/gce/create-gce.sh+2−2
@@ -3,7 +3,7 @@
33
44set -euo pipefail
55
6−BUCKET_NAME="${BUCKET_NAME:-nixos-images}"
6+BUCKET_NAME="${BUCKET_NAME:-nixos-cloud-images}"
77TIMESTAMP="$(date +%Y%m%d%H%M)"
88export TIMESTAMP
99
@@ -19,5 +19,5 @@ img_name=$(basename "$img_path")
1919img_id=$(echo "$img_name" | sed 's|.raw.tar.gz$||;s|\.|-|g;s|_|-|g')
2020if ! gsutil ls "gs://${BUCKET_NAME}/$img_name"; then
2121 gsutil cp "$img_path" "gs://${BUCKET_NAME}/$img_name"
22+ gsutil acl ch -u AllUsers:R "gs://${BUCKET_NAME}/$img_name"
2223fi
23−gcloud compute images create "$img_id" --source-uri "gs://${BUCKET_NAME}/$img_name"
nixos/modules/config/i18n.nix+1−1
@@ -10,7 +10,7 @@ with lib;
1010 i18n = {
1111 glibcLocales = mkOption {
1212 type = types.path;
13− default = pkgs.glibcLocales.override {
13+ default = pkgs.buildPackages.glibcLocales.override {
1414 allLocales = any (x: x == "all") config.i18n.supportedLocales;
1515 locales = config.i18n.supportedLocales;
1616 };
nixos/modules/config/no-x-libs.nix+1−1
@@ -32,10 +32,10 @@ with lib;
3232 networkmanager-l2tp = pkgs.networkmanager-l2tp.override { withGnome = false; };
3333 networkmanager-openconnect = pkgs.networkmanager-openconnect.override { withGnome = false; };
3434 networkmanager-openvpn = pkgs.networkmanager-openvpn.override { withGnome = false; };
35− networkmanager-pptp = pkgs.networkmanager-pptp.override { withGnome = false; };
3635 networkmanager-vpnc = pkgs.networkmanager-vpnc.override { withGnome = false; };
3736 networkmanager-iodine = pkgs.networkmanager-iodine.override { withGnome = false; };
3837 pinentry = pkgs.pinentry_ncurses;
38+ gobjectIntrospection = pkgs.gobjectIntrospection.override { x11Support = false; };
3939 };
4040 };
4141}
nixos/modules/config/nsswitch.nix+9−9
@@ -17,23 +17,23 @@ let
1717 resolved = canLoadExternalModules && config.services.resolved.enable;
1818
1919 hostArray = [ "files" ]
20− ++ optionals mymachines [ "mymachines" ]
21− ++ optionals nssmdns [ "mdns_minimal [NOTFOUND=return]" ]
22− ++ optionals nsswins [ "wins" ]
23− ++ optionals resolved ["resolve [!UNAVAIL=return]"]
20+ ++ optional mymachines "mymachines"
21+ ++ optional nssmdns "mdns_minimal [NOTFOUND=return]"
22+ ++ optional nsswins "wins"
23+ ++ optional resolved "resolve [!UNAVAIL=return]"
2424 ++ [ "dns" ]
25− ++ optionals nssmdns [ "mdns" ]
26− ++ optionals myhostname ["myhostname" ];
25+ ++ optional nssmdns "mdns"
26+ ++ optional myhostname "myhostname";
2727
2828 passwdArray = [ "files" ]
2929 ++ optional sssd "sss"
30− ++ optionals ldap [ "ldap" ]
31− ++ optionals mymachines [ "mymachines" ]
30+ ++ optional ldap "ldap"
31+ ++ optional mymachines "mymachines"
3232 ++ [ "systemd" ];
3333
3434 shadowArray = [ "files" ]
3535 ++ optional sssd "sss"
36− ++ optionals ldap [ "ldap" ];
36+ ++ optional ldap "ldap";
3737
3838 servicesArray = [ "files" ]
3939 ++ optional sssd "sss";
nixos/modules/config/pulseaudio.nix+2
@@ -214,6 +214,8 @@ in {
214214 (mkIf cfg.enable {
215215 environment.systemPackages = [ overriddenPackage ];
216216
217+ sound.enable = true;
218+
217219 environment.etc = [
218220 { target = "asound.conf";
219221 source = alsaConf; }
nixos/modules/config/system-path.nix−1
@@ -109,7 +109,6 @@ in
109109 "/sbin"
110110 "/share/applications"
111111 "/share/desktop-directories"
112− "/share/doc"
113112 "/share/emacs"
114113 "/share/icons"
115114 "/share/menus"
nixos/modules/config/users-groups.nix+25−29
@@ -35,6 +35,7 @@ let
3535
3636 name = mkOption {
3737 type = types.str;
38+ apply = x: assert (builtins.stringLength x < 32 || abort "Username '${x}' is longer than 31 characters which is not allowed!"); x;
3839 description = ''
3940 The name of the user account. If undefined, the name of the
4041 attribute set will be used.
@@ -91,6 +92,7 @@ let
9192
9293 group = mkOption {
9394 type = types.str;
95+ apply = x: assert (builtins.stringLength x < 32 || abort "Group name '${x}' is longer than 31 characters which is not allowed!"); x;
9496 default = "nogroup";
9597 description = "The user's primary group.";
9698 };
@@ -502,9 +504,6 @@ in {
502504 };
503505 };
504506
505− # Install all the user shells
506− environment.systemPackages = systemShells;
507−
508507 users.groups = {
509508 root.gid = ids.gids.root;
510509 wheel.gid = ids.gids.wheel;
@@ -541,14 +540,29 @@ in {
541540 # for backwards compatibility
542541 system.activationScripts.groups = stringAfter [ "users" ] "";
543542
544− environment.etc."subuid" = {
545− text = subuidFile;
546− mode = "0644";
547− };
548− environment.etc."subgid" = {
549− text = subgidFile;
550− mode = "0644";
551− };
543+ # Install all the user shells
544+ environment.systemPackages = systemShells;
545+
546+ environment.etc = {
547+ "subuid" = {
548+ text = subuidFile;
549+ mode = "0644";
550+ };
551+ "subgid" = {
552+ text = subgidFile;
553+ mode = "0644";
554+ };
555+ } // (mapAttrs' (name: { packages, ... }: {
556+ name = "profiles/per-user/${name}";
557+ value.source = pkgs.buildEnv {
558+ name = "user-environment";
559+ paths = packages;
560+ inherit (config.environment) pathsToLink extraOutputsToInstall;
561+ inherit (config.system.path) ignoreCollisions postBuild;
562+ };
563+ }) (filterAttrs (_: u: u.packages != []) cfg.users));
564+
565+ environment.profiles = [ "/etc/profiles/per-user/$USER" ];
552566
553567 assertions = [
554568 { assertion = !cfg.enforceIdUniqueness || (uidsAreUnique && gidsAreUnique);
@@ -579,22 +593,4 @@ in {
579593
580594 };
581595
582− imports =
583− [ (mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ])
584− (mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ])
585− {
586− environment = {
587− etc = mapAttrs' (name: { packages, ... }: {
588− name = "profiles/per-user/${name}";
589− value.source = pkgs.buildEnv {
590− name = "user-environment";
591− paths = packages;
592− inherit (config.environment) pathsToLink extraOutputsToInstall;
593− inherit (config.system.path) ignoreCollisions postBuild;
594− };
595− }) (filterAttrs (_: { packages, ... }: packages != []) cfg.users);
596− profiles = ["/etc/profiles/per-user/$USER"];
597− };
598− }
599− ];
600596}
nixos/modules/config/zram.nix+5−5
@@ -25,16 +25,16 @@ in
2525 type = types.bool;
2626 description = ''
2727 Enable in-memory compressed swap space provided by the zram kernel
28− module. It is recommended to enable only for kernel 3.14 or higher.
28+ module.
29+ See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
2930 '';
3031 };
3132
3233 numDevices = mkOption {
33− default = 4;
34+ default = 1;
3435 type = types.int;
3536 description = ''
36− Number of zram swap devices to create. It should be equal to the
37− number of CPU cores your system has.
37+ Number of zram swap devices to create.
3838 '';
3939 };
4040
@@ -93,7 +93,7 @@ in
9393 serviceConfig = {
9494 Type = "oneshot";
9595 RemainAfterExit = true;
96− ExecStop = "${pkgs.stdenv.shell} -c 'echo 1 > /sys/class/block/${dev}/reset'";
96+ ExecStop = "${pkgs.runtimeShell} -c 'echo 1 > /sys/class/block/${dev}/reset'";
9797 };
9898 script = ''
9999 set -u
nixos/modules/hardware/onlykey.nixnew file+33
@@ -0,0 +1,33 @@
1+{ config, lib, ... }:
2+
3+with lib;
4+
5+{
6+
7+ ####### interface
8+
9+ options = {
10+
11+ hardware.onlykey = {
12+ enable = mkOption {
13+ type = types.bool;
14+ default = false;
15+ description = ''
16+ Enable OnlyKey device (https://crp.to/p/) support.
17+ '';
18+ };
19+ };
20+
21+ };
22+
23+ ## As per OnlyKey's documentation piece (hhttps://docs.google.com/document/d/1Go_Rs218fKUx-j_JKhddbSVTqY6P0vQO831t2MKCJC8),
24+ ## it is important to add udev rule for OnlyKey for it to work on Linux
25+
26+ ####### implementation
27+
28+ config = mkIf config.hardware.onlykey.enable {
29+ services.udev.extraRules = builtin.readFile ./onlykey.udev;
30+ };
31+
32+
33+}
nixos/modules/hardware/onlykey.udevnew file+4
@@ -0,0 +1,4 @@
1+ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1"
2+ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1"
3+SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", GROUP+="plugdev"
4+KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", GROUP+="plugdev"
nixos/modules/hardware/opengl.nix+85−83
@@ -14,7 +14,6 @@ let
1414 name = "mesa-drivers+txc-${p.mesa_drivers.version}";
1515 paths =
1616 [ p.mesa_drivers
17− p.mesa_drivers.out # mainly for libGL
1817 (if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
1918 ];
2019 };
@@ -33,89 +32,92 @@ in
3332
3433{
3534 options = {
36− hardware.opengl.enable = mkOption {
37− description = ''
38− Whether to enable OpenGL drivers. This is needed to enable
39− OpenGL support in X11 systems, as well as for Wayland compositors
40− like sway, way-cooler and Weston. It is enabled by default
41− by the corresponding modules, so you do not usually have to
42− set it yourself, only if there is no module for your wayland
43− compositor of choice. See services.xserver.enable,
44− programs.sway.enable, and programs.way-cooler.enable.
45− '';
46− type = types.bool;
47− default = false;
48− };
49−
50− hardware.opengl.driSupport = mkOption {
51− type = types.bool;
52− default = true;
53− description = ''
54− Whether to enable accelerated OpenGL rendering through the
55− Direct Rendering Interface (DRI).
56− '';
57− };
58−
59− hardware.opengl.driSupport32Bit = mkOption {
60− type = types.bool;
61− default = false;
62− description = ''
63− On 64-bit systems, whether to support Direct Rendering for
64− 32-bit applications (such as Wine). This is currently only
65− supported for the <literal>nvidia</literal> and
66− <literal>ati_unfree</literal> drivers, as well as
67− <literal>Mesa</literal>.
68− '';
69− };
70−
71− hardware.opengl.s3tcSupport = mkOption {
72− type = types.bool;
73− default = false;
74− description = ''
75− Make S3TC(S3 Texture Compression) via libtxc_dxtn available
76− to OpenGL drivers instead of the patent-free S2TC replacement.
77−
78− Using this library may require a patent license depending on your location.
79− '';
80− };
81−
82− hardware.opengl.package = mkOption {
83− type = types.package;
84− internal = true;
85− description = ''
86− The package that provides the OpenGL implementation.
87− '';
88− };
8935
90− hardware.opengl.package32 = mkOption {
91− type = types.package;
92− internal = true;
93− description = ''
94− The package that provides the 32-bit OpenGL implementation on
95− 64-bit systems. Used when <option>driSupport32Bit</option> is
96− set.
97− '';
98− };
99−
100− hardware.opengl.extraPackages = mkOption {
101− type = types.listOf types.package;
102− default = [];
103− example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ]";
104− description = ''
105− Additional packages to add to OpenGL drivers. This can be used
106− to add OpenCL drivers, VA-API/VDPAU drivers etc.
107− '';
108− };
109−
110− hardware.opengl.extraPackages32 = mkOption {
111− type = types.listOf types.package;
112− default = [];
113− example = literalExample "with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]";
114− description = ''
115− Additional packages to add to 32-bit OpenGL drivers on
116− 64-bit systems. Used when <option>driSupport32Bit</option> is
117− set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
118− '';
36+ hardware.opengl = {
37+ enable = mkOption {
38+ description = ''
39+ Whether to enable OpenGL drivers. This is needed to enable
40+ OpenGL support in X11 systems, as well as for Wayland compositors
41+ like sway, way-cooler and Weston. It is enabled by default
42+ by the corresponding modules, so you do not usually have to
43+ set it yourself, only if there is no module for your wayland
44+ compositor of choice. See services.xserver.enable,
45+ programs.sway.enable, and programs.way-cooler.enable.
46+ '';
47+ type = types.bool;
48+ default = false;
49+ };
50+
51+ driSupport = mkOption {
52+ type = types.bool;
53+ default = true;
54+ description = ''
55+ Whether to enable accelerated OpenGL rendering through the
56+ Direct Rendering Interface (DRI).
57+ '';
58+ };
59+
60+ driSupport32Bit = mkOption {
61+ type = types.bool;
62+ default = false;
63+ description = ''
64+ On 64-bit systems, whether to support Direct Rendering for
65+ 32-bit applications (such as Wine). This is currently only
66+ supported for the <literal>nvidia</literal> and
67+ <literal>ati_unfree</literal> drivers, as well as
68+ <literal>Mesa</literal>.
69+ '';
70+ };
71+
72+ s3tcSupport = mkOption {
73+ type = types.bool;
74+ default = false;
75+ description = ''
76+ Make S3TC(S3 Texture Compression) via libtxc_dxtn available
77+ to OpenGL drivers instead of the patent-free S2TC replacement.
78+
79+ Using this library may require a patent license depending on your location.
80+ '';
81+ };
82+
83+ package = mkOption {
84+ type = types.package;
85+ internal = true;
86+ description = ''
87+ The package that provides the OpenGL implementation.
88+ '';
89+ };
90+
91+ package32 = mkOption {
92+ type = types.package;
93+ internal = true;
94+ description = ''
95+ The package that provides the 32-bit OpenGL implementation on
96+ 64-bit systems. Used when <option>driSupport32Bit</option> is
97+ set.
98+ '';
99+ };
100+
101+ extraPackages = mkOption {
102+ type = types.listOf types.package;
103+ default = [];
104+ example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ]";
105+ description = ''
106+ Additional packages to add to OpenGL drivers. This can be used
107+ to add OpenCL drivers, VA-API/VDPAU drivers etc.
108+ '';
109+ };
110+
111+ extraPackages32 = mkOption {
112+ type = types.listOf types.package;
113+ default = [];
114+ example = literalExample "with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]";
115+ description = ''
116+ Additional packages to add to 32-bit OpenGL drivers on
117+ 64-bit systems. Used when <option>driSupport32Bit</option> is
118+ set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
119+ '';
120+ };
119121 };
120122
121123 };
nixos/modules/hardware/video/amdgpu-pro.nix+15−1
@@ -15,13 +15,19 @@ let
1515
1616 opengl = config.hardware.opengl;
1717
18+ kernel = pkgs.linux_4_9.override {
19+ extraConfig = ''
20+ KALLSYMS_ALL y
21+ '';
22+ };
23+
1824in
1925
2026{
2127
2228 config = mkIf enabled {
2329
24− nixpkgs.config.xorg.abiCompat = "1.18";
30+ nixpkgs.config.xorg.abiCompat = "1.19";
2531
2632 services.xserver.drivers = singleton
2733 { name = "amdgpu"; modules = [ package ]; libPath = [ package ]; };
@@ -31,6 +37,9 @@ in
3137
3238 boot.extraModulePackages = [ package ];
3339
40+ boot.kernelPackages =
41+ pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor kernel);
42+
3443 boot.blacklistedKernelModules = [ "radeon" ];
3544
3645 hardware.firmware = [ package ];
@@ -38,10 +47,15 @@ in
3847 system.activationScripts.setup-amdgpu-pro = ''
3948 mkdir -p /run/lib
4049 ln -sfn ${package}/lib ${package.libCompatDir}
50+ ln -sfn ${package} /run/amdgpu-pro
4151 '' + optionalString opengl.driSupport32Bit ''
4252 ln -sfn ${package32}/lib ${package32.libCompatDir}
4353 '';
4454
55+ system.requiredKernelConfig = with config.lib.kernelConfig; [
56+ (isYes "KALLSYMS_ALL")
57+ ];
58+
4559 environment.etc = {
4660 "amd/amdrc".source = package + "/etc/amd/amdrc";
4761 "amd/amdapfxx.blb".source = package + "/etc/amd/amdapfxx.blb";
nixos/modules/hardware/video/nvidia.nix+6−15
@@ -16,8 +16,6 @@ let
1616 kernelPackages.nvidia_x11
1717 else if elem "nvidiaBeta" drivers then
1818 kernelPackages.nvidia_x11_beta
19− else if elem "nvidiaLegacy173" drivers then
20− kernelPackages.nvidia_x11_legacy173
2119 else if elem "nvidiaLegacy304" drivers then
2220 kernelPackages.nvidia_x11_legacy304
2321 else if elem "nvidiaLegacy340" drivers then
@@ -27,13 +25,6 @@ let
2725 nvidia_x11 = nvidiaForKernel config.boot.kernelPackages;
2826 nvidia_libs32 = (nvidiaForKernel pkgs_i686.linuxPackages).override { libsOnly = true; kernel = null; };
2927
30− nvidiaPackage = nvidia: pkgs:
31− if !nvidia.useGLVND then nvidia.out
32− else pkgs.buildEnv {
33− name = "nvidia-libs";
34− paths = [ pkgs.libglvnd nvidia.out ];
35− };
36−
3728 enabled = nvidia_x11 != null;
3829in
3930
@@ -59,8 +50,8 @@ in
5950 source = "${nvidia_x11.bin}/share/nvidia/nvidia-application-profiles-rc";
6051 };
6152
62− hardware.opengl.package = nvidiaPackage nvidia_x11 pkgs;
63− hardware.opengl.package32 = nvidiaPackage nvidia_libs32 pkgs_i686;
53+ hardware.opengl.package = nvidia_x11.out;
54+ hardware.opengl.package32 = nvidia_libs32.out;
6455
6556 environment.systemPackages = [ nvidia_x11.bin nvidia_x11.settings ]
6657 ++ lib.filter (p: p != null) [ nvidia_x11.persistenced ];
@@ -75,10 +66,10 @@ in
7566 # Create /dev/nvidia-uvm when the nvidia-uvm module is loaded.
7667 services.udev.extraRules =
7768 ''
78− KERNEL=="nvidia", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'"
79− KERNEL=="nvidia_modeset", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidia-modeset c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 254'"
80− KERNEL=="card*", SUBSYSTEM=="drm", DRIVERS=="nvidia", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidia%n c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) %n'"
81− KERNEL=="nvidia_uvm", RUN+="${pkgs.stdenv.shell} -c 'mknod -m 666 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
69+ KERNEL=="nvidia", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidiactl c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 255'"
70+ KERNEL=="nvidia_modeset", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-modeset c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) 254'"
71+ KERNEL=="card*", SUBSYSTEM=="drm", DRIVERS=="nvidia", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia%n c $(grep nvidia-frontend /proc/devices | cut -d \ -f 1) %n'"
72+ KERNEL=="nvidia_uvm", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-uvm c $(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 0'"
8273 '';
8374
8475 boot.blacklistedKernelModules = [ "nouveau" "nvidiafb" ];
nixos/modules/installer/cd-dvd/channel.nix+2
@@ -21,7 +21,9 @@ let
2121 if [ ! -e $out/nixos/nixpkgs ]; then
2222 ln -s . $out/nixos/nixpkgs
2323 fi
24+ echo -n ${config.system.nixos.revision} > $out/nixos/.git-revision
2425 echo -n ${config.system.nixos.versionSuffix} > $out/nixos/.version-suffix
26+ echo ${config.system.nixos.versionSuffix} | sed -e s/pre// > $out/nixos/svn-revision
2527 '';
2628
2729in
nixos/modules/installer/cd-dvd/iso-image.nix+1−1
@@ -59,7 +59,7 @@ let
5959 INITRD /boot/${config.system.boot.loader.initrdFile}
6060
6161 # A variant to boot with verbose logging to the console
62− LABEL boot-nomodeset
62+ LABEL boot-debug
6363 MENU LABEL NixOS ${config.system.nixos.label}${config.isoImage.appendToMenuLabel} (debug)
6464 LINUX /boot/${config.system.boot.loader.kernelFile}
6565 APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams} loglevel=7
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix−3
@@ -21,9 +21,6 @@ in
2121 "it cannot be cross compiled";
2222 };
2323
24− # Needed by RPi firmware
25− nixpkgs.config.allowUnfree = true;
26−
2724 boot.loader.grub.enable = false;
2825 boot.loader.generic-extlinux-compatible.enable = true;
2926
nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix−3
@@ -21,9 +21,6 @@ in
2121 "it cannot be cross compiled";
2222 };
2323
24− # Needed by RPi firmware
25− nixpkgs.config.allowUnfree = true;
26−
2724 boot.loader.grub.enable = false;
2825 boot.loader.generic-extlinux-compatible.enable = true;
2926
nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix−3
@@ -21,9 +21,6 @@ in
2121 "it cannot be cross compiled";
2222 };
2323
24− # Needed by RPi firmware
25− nixpkgs.config.allowUnfree = true;
26−
2724 boot.loader.grub.enable = false;
2825 boot.loader.generic-extlinux-compatible.enable = true;
2926
nixos/modules/installer/cd-dvd/sd-image.nix+27−7
@@ -20,6 +20,20 @@ let
2020in
2121{
2222 options.sdImage = {
23+ imageName = mkOption {
24+ default = "${config.sdImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.system}.img";
25+ description = ''
26+ Name of the generated image file.
27+ '';
28+ };
29+
30+ imageBaseName = mkOption {
31+ default = "nixos-sd-image";
32+ description = ''
33+ Prefix of the name of the generated image file.
34+ '';
35+ };
36+
2337 storePaths = mkOption {
2438 type = with types; listOf package;
2539 example = literalExample "[ pkgs.stdenv ]";
@@ -61,19 +75,25 @@ in
6175 sdImage.storePaths = [ config.system.build.toplevel ];
6276
6377 system.build.sdImage = pkgs.stdenv.mkDerivation {
64− name = "sd-image-${pkgs.stdenv.system}.img";
78+ name = config.sdImage.imageName;
6579
6680 buildInputs = with pkgs; [ dosfstools e2fsprogs mtools libfaketime utillinux ];
6781
6882 buildCommand = ''
83+ mkdir -p $out/nix-support $out/sd-image
84+ export img=$out/sd-image/${config.sdImage.imageName}
85+
86+ echo "${pkgs.stdenv.system}" > $out/nix-support/system
87+ echo "file sd-image $img" >> $out/nix-support/hydra-build-products
88+
6989 # Create the image file sized to fit /boot and /, plus 20M of slack
7090 rootSizeBlocks=$(du -B 512 --apparent-size ${rootfsImage} | awk '{ print $1 }')
7191 bootSizeBlocks=$((${toString config.sdImage.bootSize} * 1024 * 1024 / 512))
7292 imageSize=$((rootSizeBlocks * 512 + bootSizeBlocks * 512 + 20 * 1024 * 1024))
73− truncate -s $imageSize $out
93+ truncate -s $imageSize $img
7494
7595 # type=b is 'W95 FAT32', type=83 is 'Linux'.
76− sfdisk $out <<EOF
96+ sfdisk $img <<EOF
7797 label: dos
7898 label-id: 0x2178694e
7999
@@ -82,11 +102,11 @@ in
82102 EOF
83103
84104 # Copy the rootfs into the SD image
85− eval $(partx $out -o START,SECTORS --nr 2 --pairs)
86− dd conv=notrunc if=${rootfsImage} of=$out seek=$START count=$SECTORS
105+ eval $(partx $img -o START,SECTORS --nr 2 --pairs)
106+ dd conv=notrunc if=${rootfsImage} of=$img seek=$START count=$SECTORS
87107
88108 # Create a FAT32 /boot partition of suitable size into bootpart.img
89− eval $(partx $out -o START,SECTORS --nr 1 --pairs)
109+ eval $(partx $img -o START,SECTORS --nr 1 --pairs)
90110 truncate -s $((SECTORS * 512)) bootpart.img
91111 faketime "1970-01-01 00:00:00" mkfs.vfat -i 0x2178694e -n NIXOS_BOOT bootpart.img
92112
@@ -96,7 +116,7 @@ in
96116
97117 # Copy the populated /boot into the SD image
98118 (cd boot; mcopy -bpsvm -i ../bootpart.img ./* ::)
99− dd conv=notrunc if=bootpart.img of=$out seek=$START count=$SECTORS
119+ dd conv=notrunc if=bootpart.img of=$img seek=$START count=$SECTORS
100120 '';
101121 };
102122
nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix+1−1
@@ -54,7 +54,7 @@ in
5454 environment.systemPackages =
5555 [ pkgs.w3m # needed for the manual anyway
5656 pkgs.testdisk # useful for repairing boot problems
57− pkgs.mssys # for writing Microsoft boot sectors / MBRs
57+ pkgs.ms-sys # for writing Microsoft boot sectors / MBRs
5858 pkgs.parted
5959 pkgs.ddrescue
6060 pkgs.ccrypt
nixos/modules/installer/tools/nix-fallback-paths.nix+4−4
@@ -1,6 +1,6 @@
11{
2− x86_64-linux = "/nix/store/6p2gambjac7xdkd2a7w1dsxdk1q5cq4d-nix-2.0";
3− i686-linux = "/nix/store/zznnaijjk3nwx0cmpczxsvngmqzhl7r4-nix-2.0";
4− aarch64-linux = "/nix/store/ci96w9kxfkmlc7x2vwqiz4da0r6abxnq-nix-2.0";
5− x86_64-darwin = "/nix/store/xmi4fylvx4qc79ji9v5q3zfy9vfdy4sv-nix-2.0";
2+ x86_64-linux = "/nix/store/2gk7rk2sx2dkmsjr59gignrfdmya8f6s-nix-2.0.1";
3+ i686-linux = "/nix/store/5160glkphiv13qggnivyidg8r0491pbl-nix-2.0.1";
4+ aarch64-linux = "/nix/store/jk29zz3ns9vdkkclcyzzkpzp8dhv1x3i-nix-2.0.1";
5+ x86_64-darwin = "/nix/store/4a9czmrpd4hf3r80zcmga2c2lm3hbbvv-nix-2.0.1";
66}
nixos/modules/installer/tools/nixos-enter.sh+2−1
@@ -51,8 +51,9 @@ if [[ ! -e $mountPoint/etc/NIXOS ]]; then
5151 exit 126
5252fi
5353
54−mkdir -m 0755 -p "$mountPoint/dev"
54+mkdir -m 0755 -p "$mountPoint/dev" "$mountPoint/sys"
5555mount --rbind /dev "$mountPoint/dev"
56+mount --rbind /sys "$mountPoint/sys"
5657
5758# Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings.
5859LOCALE_ARCHIVE=$system/sw/lib/locale/locale-archive chroot "$mountPoint" "$system/activate" >&2 || true
nixos/modules/installer/tools/nixos-generate-config.pl−1
@@ -585,7 +585,6 @@ $bootLoaderConfig
585585
586586 # Some programs need SUID wrappers, can be configured further or are
587587 # started in user sessions.
588− # programs.bash.enableCompletion = true;
589588 # programs.mtr.enable = true;
590589 # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
591590
nixos/modules/installer/tools/nixos-rebuild.sh+1−1
@@ -382,6 +382,6 @@ fi
382382if [ "$action" = build-vm ]; then
383383 cat >&2 <<EOF
384384
385−Done. The virtual machine can be started by running $(echo $pathToConfig/bin/run-*-vm).
385+Done. The virtual machine can be started by running $(echo $pathToConfig/bin/run-*-vm)
386386EOF
387387fi
nixos/modules/installer/virtualbox-demo.nix+2
@@ -19,4 +19,6 @@ with lib;
1919 # Add some more video drivers to give X11 a shot at working in
2020 # VMware and QEMU.
2121 services.xserver.videoDrivers = mkOverride 40 [ "virtualbox" "vmware" "cirrus" "vesa" "modesetting" ];
22+
23+ powerManagement.enable = false;
2224}
nixos/modules/misc/documentation.nixnew file+96
@@ -0,0 +1,96 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let cfg = config.documentation; in
6+
7+{
8+
9+ options = {
10+
11+ documentation = {
12+
13+ enable = mkOption {
14+ type = types.bool;
15+ default = true;
16+ description = ''
17+ Whether to install documentation of packages from
18+ <option>environment.systemPackages</option> into the generated system path.
19+
20+ See "Multiple-output packages" chapter in the nixpkgs manual for more info.
21+ '';
22+ # which is at ../../../doc/multiple-output.xml
23+ };
24+
25+ man.enable = mkOption {
26+ type = types.bool;
27+ default = true;
28+ description = ''
29+ Whether to install manual pages and the <command>man</command> command.
30+ This also includes "man" outputs.
31+ '';
32+ };
33+
34+ info.enable = mkOption {
35+ type = types.bool;
36+ default = true;
37+ description = ''
38+ Whether to install info pages and the <command>info</command> command.
39+ This also includes "info" outputs.
40+ '';
41+ };
42+
43+ doc.enable = mkOption {
44+ type = types.bool;
45+ default = true;
46+ description = ''
47+ Whether to install documentation distributed in packages' <literal>/share/doc</literal>.
48+ Usually plain text and/or HTML.
49+ This also includes "doc" outputs.
50+ '';
51+ };
52+
53+ dev.enable = mkOption {
54+ type = types.bool;
55+ default = false;
56+ description = ''
57+ Whether to install documentation targeted at developers.
58+ <itemizedlist>
59+ <listitem><para>This includes man pages targeted at developers if <option>man.enable</option> is
60+ set (this also includes "devman" outputs).</para></listitem>
61+ <listitem><para>This includes info pages targeted at developers if <option>info.enable</option>
62+ is set (this also includes "devinfo" outputs).</para></listitem>
63+ <listitem><para>This includes other pages targeted at developers if <option>doc.enable</option>
64+ is set (this also includes "devdoc" outputs).</para></listitem>
65+ </itemizedlist>
66+ '';
67+ };
68+
69+ };
70+
71+ };
72+
73+ config = mkIf cfg.enable (mkMerge [
74+
75+ (mkIf cfg.man.enable {
76+ environment.systemPackages = [ pkgs.man-db ];
77+ environment.pathsToLink = [ "/share/man" ];
78+ environment.extraOutputsToInstall = [ "man" ] ++ optional cfg.dev.enable [ "devman" ];
79+ })
80+
81+ (mkIf cfg.info.enable {
82+ environment.systemPackages = [ pkgs.texinfoInteractive ];
83+ environment.pathsToLink = [ "/share/info" ];
84+ environment.extraOutputsToInstall = [ "info" ] ++ optional cfg.dev.enable [ "devinfo" ];
85+ })
86+
87+ (mkIf cfg.doc.enable {
88+ # TODO(@oxij): put it here and remove from profiles?
89+ # environment.systemPackages = [ pkgs.w3m ]; # w3m-nox?
90+ environment.pathsToLink = [ "/share/doc" ];
91+ environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable [ "devdoc" ];
92+ })
93+
94+ ]);
95+
96+}
nixos/modules/misc/ids.nix+6−4
@@ -56,7 +56,7 @@
5656 #dialout = 27; # unused
5757 polkituser = 28;
5858 #utmp = 29; # unused
59− ddclient = 30;
59+ # ddclient = 30; # converted to DynamicUser = true
6060 davfs2 = 31;
6161 #disnix = 33; # unused
6262 osgi = 34;
@@ -106,7 +106,7 @@
106106 freenet = 79;
107107 ircd = 80;
108108 bacula = 81;
109− almir = 82;
109+ #almir = 82; # removed 2018-03-25, the almir package was removed in 30291227f2411abaca097773eedb49b8f259e297 during 2017-08
110110 deluge = 83;
111111 mysql = 84;
112112 rabbitmq = 85;
@@ -305,6 +305,7 @@
305305 hass = 286;
306306 monero = 287;
307307 ceph = 288;
308+ duplicati = 289;
308309
309310 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
310311
@@ -343,7 +344,7 @@
343344 dialout = 27;
344345 #polkituser = 28; # currently unused, polkitd doesn't need a group
345346 utmp = 29;
346− ddclient = 30;
347+ # ddclient = 30; # converted to DynamicUser = true
347348 davfs2 = 31;
348349 disnix = 33;
349350 osgi = 34;
@@ -393,7 +394,7 @@
393394 freenet = 79;
394395 ircd = 80;
395396 bacula = 81;
396− almir = 82;
397+ #almir = 82; # removed 2018-03-25, the almir package was removed in 30291227f2411abaca097773eedb49b8f259e297 during 2017-08
397398 deluge = 83;
398399 mysql = 84;
399400 rabbitmq = 85;
@@ -578,6 +579,7 @@
578579 hass = 286;
579580 monero = 287;
580581 ceph = 288;
582+ duplicati = 289;
581583
582584 # When adding a gid, make sure it doesn't match an existing
583585 # uid. Users and groups with the same name should have equal
nixos/modules/misc/locate.nix+15−2
@@ -97,7 +97,7 @@ in {
9797 Whether not to index bind mounts
9898 '';
9999 };
100−
100+
101101 };
102102
103103 config = mkIf cfg.enable {
@@ -133,13 +133,26 @@ in {
133133 systemd.services.update-locatedb =
134134 { description = "Update Locate Database";
135135 path = mkIf (!isMLocate) [ pkgs.su ];
136+
137+ # mlocate's updatedb takes flags via a configuration file or
138+ # on the command line, but not by environment variable.
136139 script =
140+ if isMLocate
141+ then let toFlags = x: optional (cfg.${x} != [])
142+ "--${lib.toLower x} '${concatStringsSep " " cfg.${x}}'";
143+ args = concatLists (map toFlags ["pruneFS" "pruneNames" "prunePaths"]);
144+ in ''
145+ exec ${cfg.locate}/bin/updatedb \
146+ --output ${toString cfg.output} ${concatStringsSep " " args} \
147+ --prune-bind-mounts ${if cfg.pruneBindMounts then "yes" else "no"} \
148+ ${concatStringsSep " " cfg.extraFlags}
137149 ''
150+ else ''
138151 exec ${cfg.locate}/bin/updatedb \
139152 ${optionalString (cfg.localuser != null && ! isMLocate) ''--localuser=${cfg.localuser}''} \
140153 --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
141154 '';
142− environment = {
155+ environment = optionalAttrs (!isMLocate) {
143156 PRUNEFS = concatStringsSep " " cfg.pruneFS;
144157 PRUNEPATHS = concatStringsSep " " cfg.prunePaths;
145158 PRUNENAMES = concatStringsSep " " cfg.pruneNames;
nixos/modules/misc/nixpkgs.nix+61−8
@@ -58,10 +58,13 @@ in
5858 pkgs = mkOption {
5959 defaultText = literalExample
6060 ''import "''${nixos}/.." {
61− inherit (config.nixpkgs) config overlays system;
61+ inherit (config.nixpkgs) config overlays localSystem crossSystem;
6262 }
6363 '';
64− default = import ../../.. { inherit (cfg) config overlays system; };
64+ default = import ../../.. {
65+ localSystem = { inherit (cfg) system; } // cfg.localSystem;
66+ inherit (cfg) config overlays crossSystem;
67+ };
6568 type = pkgsType;
6669 example = literalExample ''import <nixpkgs> {}'';
6770 description = ''
@@ -73,8 +76,9 @@ in
7376 relative to the location of this NixOS module, because
7477 NixOS and Nixpkgs are distributed together for consistency,
7578 so the <code>nixos</code> in the default value is in fact a
76− relative path. The <code>config</code>, <code>overlays</code>
77− and <code>system</code> come from this option's siblings.
79+ relative path. The <code>config</code>, <code>overlays</code>,
80+ <code>localSystem</code>, and <code>crossSystem</code> come
81+ from this option's siblings.
7882
7983 This option can be used by applications like NixOps to increase
8084 the performance of evaluation, or to create packages that depend
@@ -130,14 +134,63 @@ in
130134 '';
131135 };
132136
137+ localSystem = mkOption {
138+ type = types.attrs; # TODO utilize lib.systems.parsedPlatform
139+ default = { system = builtins.currentSystem; };
140+ example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; };
141+ defaultText = literalExample
142+ ''(import "''${nixos}/../lib").lib.systems.examples.aarch64-multiplatform'';
143+ description = ''
144+ Specifies the platform on which NixOS should be built. When
145+ <code>nixpkgs.crossSystem</code> is unset, it also specifies
146+ the platform <emphasis>for</emphasis> which NixOS should be
147+ built. If this option is unset, it defaults to the platform
148+ type of the machine where evaluation happens. Specifying this
149+ option is useful when doing distributed multi-platform
150+ deployment, or when building virtual machines. See its
151+ description in the Nixpkgs manual for more details.
152+
153+ Ignored when <code>nixpkgs.pkgs</code> is set.
154+ '';
155+ };
156+
157+ crossSystem = mkOption {
158+ type = types.nullOr types.attrs; # TODO utilize lib.systems.parsedPlatform
159+ default = null;
160+ example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; };
161+ defaultText = literalExample
162+ ''(import "''${nixos}/../lib").lib.systems.examples.aarch64-multiplatform'';
163+ description = ''
164+ Specifies the platform for which NixOS should be
165+ built. Specify this only if it is different from
166+ <code>nixpkgs.localSystem</code>, the platform
167+ <emphasis>on</emphasis> which NixOS should be built. In other
168+ words, specify this to cross-compile NixOS. Otherwise it
169+ should be set as null, the default. See its description in the
170+ Nixpkgs manual for more details.
171+
172+ Ignored when <code>nixpkgs.pkgs</code> is set.
173+ '';
174+ };
175+
133176 system = mkOption {
134177 type = types.str;
135178 example = "i686-linux";
136179 description = ''
137− Specifies the Nix platform type for which NixOS should be built.
138− If unset, it defaults to the platform type of your host system.
139− Specifying this option is useful when doing distributed
140− multi-platform deployment, or when building virtual machines.
180+ Specifies the Nix platform type on which NixOS should be built.
181+ It is better to specify <code>nixpkgs.localSystem</code> instead.
182+ <programlisting>
183+ {
184+ nixpkgs.system = ..;
185+ }
186+ </programlisting>
187+ is the same as
188+ <programlisting>
189+ {
190+ nixpkgs.localSystem.system = ..;
191+ }
192+ </programlisting>
193+ See <code>nixpkgs.localSystem</code> for more information.
141194
142195 Ignored when <code>nixpkgs.pkgs</code> is set.
143196 '';
nixos/modules/misc/version.nix+2−2
@@ -85,8 +85,8 @@ in
8585 revision = mkIf (pathIsDirectory gitRepo) (mkDefault gitCommitId);
8686 versionSuffix = mkIf (pathIsDirectory gitRepo) (mkDefault (".git." + gitCommitId));
8787
88− # Note: code names must only increase in alphabetical order.
89− codeName = "Impala";
88+ # Note: the first letter is bumped on every release. It's an animal.
89+ codeName = "Jellyfish";
9090 };
9191
9292 # Generate /etc/os-release. See
nixos/modules/module-list.nix+18−16
@@ -41,6 +41,7 @@
4141 ./hardware/pcmcia.nix
4242 ./hardware/raid/hpsa.nix
4343 ./hardware/usb-wwan.nix
44+ ./hardware/onlykey.nix
4445 ./hardware/video/amdgpu.nix
4546 ./hardware/video/amdgpu-pro.nix
4647 ./hardware/video/ati.nix
@@ -58,6 +59,7 @@
5859 ./installer/tools/tools.nix
5960 ./misc/assertions.nix
6061 ./misc/crashdump.nix
62+ ./misc/documentation.nix
6163 ./misc/extra-arguments.nix
6264 ./misc/ids.nix
6365 ./misc/lib.nix
@@ -85,12 +87,11 @@
8587 ./programs/freetds.nix
8688 ./programs/gnupg.nix
8789 ./programs/gphoto2.nix
88− ./programs/info.nix
90+ ./programs/iftop.nix
8991 ./programs/java.nix
9092 ./programs/kbdlight.nix
9193 ./programs/less.nix
9294 ./programs/light.nix
93− ./programs/man.nix
9495 ./programs/mosh.nix
9596 ./programs/mtr.nix
9697 ./programs/nano.nix
@@ -104,6 +105,7 @@
104105 ./programs/shadow.nix
105106 ./programs/shell.nix
106107 ./programs/spacefm.nix
108+ ./programs/singularity.nix
107109 ./programs/ssh.nix
108110 ./programs/ssmtp.nix
109111 ./programs/sysdig.nix
@@ -157,12 +159,14 @@
157159 ./services/audio/slimserver.nix
158160 ./services/audio/squeezelite.nix
159161 ./services/audio/ympd.nix
160− ./services/backup/almir.nix
161162 ./services/backup/bacula.nix
163+ ./services/backup/borgbackup.nix
164+ ./services/backup/duplicati.nix
162165 ./services/backup/crashplan.nix
163166 ./services/backup/crashplan-small-business.nix
164167 ./services/backup/mysql-backup.nix
165168 ./services/backup/postgresql-backup.nix
169+ ./services/backup/restic.nix
166170 ./services/backup/rsnapshot.nix
167171 ./services/backup/tarsnap.nix
168172 ./services/backup/znapzend.nix
@@ -191,6 +195,7 @@
191195 ./services/databases/clickhouse.nix
192196 ./services/databases/couchdb.nix
193197 ./services/databases/firebird.nix
198+ ./services/databases/foundationdb.nix
194199 ./services/databases/hbase.nix
195200 ./services/databases/influxdb.nix
196201 ./services/databases/memcached.nix
@@ -322,8 +327,9 @@
322327 ./services/misc/geoip-updater.nix
323328 ./services/misc/gitea.nix
324329 #./services/misc/gitit.nix
325− ./services/misc/gitlab.nix
330+ #./services/misc/gitlab.nix
326331 ./services/misc/gitolite.nix
332+ ./services/misc/gitweb.nix
327333 ./services/misc/gogs.nix
328334 ./services/misc/gollum.nix
329335 ./services/misc/gpsd.nix
@@ -361,6 +367,8 @@
361367 ./services/misc/rippled.nix
362368 ./services/misc/ripple-data-api.nix
363369 ./services/misc/rogue.nix
370+ ./services/misc/serviio.nix
371+ ./services/misc/safeeyes.nix
364372 ./services/misc/siproxd.nix
365373 ./services/misc/snapper.nix
366374 ./services/misc/sonarr.nix
@@ -396,16 +404,7 @@
396404 ./services/monitoring/osquery.nix
397405 ./services/monitoring/prometheus/default.nix
398406 ./services/monitoring/prometheus/alertmanager.nix
399− ./services/monitoring/prometheus/blackbox-exporter.nix
400− ./services/monitoring/prometheus/collectd-exporter.nix
401− ./services/monitoring/prometheus/fritzbox-exporter.nix
402− ./services/monitoring/prometheus/json-exporter.nix
403− ./services/monitoring/prometheus/minio-exporter.nix
404− ./services/monitoring/prometheus/nginx-exporter.nix
405− ./services/monitoring/prometheus/node-exporter.nix
406− ./services/monitoring/prometheus/snmp-exporter.nix
407− ./services/monitoring/prometheus/unifi-exporter.nix
408− ./services/monitoring/prometheus/varnish-exporter.nix
407+ ./services/monitoring/prometheus/exporters.nix
409408 ./services/monitoring/riemann.nix
410409 ./services/monitoring/riemann-dash.nix
411410 ./services/monitoring/riemann-tools.nix
@@ -483,6 +482,7 @@
483482 ./services/networking/gnunet.nix
484483 ./services/networking/gogoclient.nix
485484 ./services/networking/gvpe.nix
485+ ./services/networking/hans.nix
486486 ./services/networking/haproxy.nix
487487 ./services/networking/heyefi.nix
488488 ./services/networking/hostapd.nix
@@ -536,7 +536,7 @@
536536 ./services/networking/prayer.nix
537537 ./services/networking/privoxy.nix
538538 ./services/networking/prosody.nix
539− # ./services/networking/quagga.nix
539+ ./services/networking/quagga.nix
540540 ./services/networking/quassel.nix
541541 ./services/networking/racoon.nix
542542 ./services/networking/radicale.nix
@@ -550,6 +550,7 @@
550550 ./services/networking/searx.nix
551551 ./services/networking/seeks.nix
552552 ./services/networking/skydns.nix
553+ ./services/networking/shadowsocks.nix
553554 ./services/networking/shairport-sync.nix
554555 ./services/networking/shout.nix
555556 ./services/networking/sniproxy.nix
@@ -561,6 +562,7 @@
561562 ./services/networking/ssh/lshd.nix
562563 ./services/networking/ssh/sshd.nix
563564 ./services/networking/strongswan.nix
565+ ./services/networking/strongswan-swanctl/module.nix
564566 ./services/networking/stunnel.nix
565567 ./services/networking/supplicant.nix
566568 ./services/networking/supybot.nix
@@ -638,7 +640,6 @@
638640 ./services/web-apps/atlassian/jira.nix
639641 ./services/web-apps/frab.nix
640642 ./services/web-apps/mattermost.nix
641− ./services/web-apps/nixbot.nix
642643 ./services/web-apps/nexus.nix
643644 ./services/web-apps/pgpkeyserver-lite.nix
644645 ./services/web-apps/matomo.nix
@@ -658,6 +659,7 @@
658659 ./services/web-servers/mighttpd2.nix
659660 ./services/web-servers/minio.nix
660661 ./services/web-servers/nginx/default.nix
662+ ./services/web-servers/nginx/gitweb.nix
661663 ./services/web-servers/phpfpm/default.nix
662664 ./services/web-servers/shellinabox.nix
663665 ./services/web-servers/tomcat.nix
nixos/modules/profiles/base.nix+1−1
@@ -9,7 +9,7 @@
99 environment.systemPackages = [
1010 pkgs.w3m-nox # needed for the manual anyway
1111 pkgs.testdisk # useful for repairing boot problems
12− pkgs.mssys # for writing Microsoft boot sectors / MBRs
12+ pkgs.ms-sys # for writing Microsoft boot sectors / MBRs
1313 pkgs.efibootmgr
1414 pkgs.efivar
1515 pkgs.parted
nixos/modules/profiles/demo.nix+6
@@ -10,4 +10,10 @@
1010 password = "demo";
1111 uid = 1000;
1212 };
13+
14+ services.xserver.displayManager.sddm.autoLogin = {
15+ enable = true;
16+ relogin = true;
17+ user = "demo";
18+ };
1319}
nixos/modules/profiles/docker-container.nix+1−3
@@ -14,9 +14,7 @@ in {
1414 ];
1515
1616 # Create the tarball
17− system.build.tarball = import ../../lib/make-system-tarball.nix {
18− inherit (pkgs) stdenv perl xz pathsFromGraph;
19−
17+ system.build.tarball = pkgs.callPackage ../../lib/make-system-tarball.nix {
2018 contents = [];
2119 extraArgs = "--owner=0";
2220
nixos/modules/profiles/minimal.nix+2−3
@@ -10,10 +10,9 @@ with lib;
1010
1111 # This isn't perfect, but let's expect the user specifies an UTF-8 defaultLocale
1212 i18n.supportedLocales = [ (config.i18n.defaultLocale + "/UTF-8") ];
13− services.nixosManual.enable = mkDefault false;
1413
15− programs.man.enable = mkDefault false;
16− programs.info.enable = mkDefault false;
14+ documentation.enable = mkDefault false;
15+ services.nixosManual.enable = mkDefault false;
1716
1817 sound.enable = mkDefault false;
1918}
nixos/modules/programs/bash/bash.nix+2−2
@@ -110,7 +110,7 @@ in
110110 };
111111
112112 enableCompletion = mkOption {
113− default = false;
113+ default = true;
114114 description = ''
115115 Enable Bash completion for all interactive bash shells.
116116 '';
@@ -126,7 +126,7 @@ in
126126 programs.bash = {
127127
128128 shellInit = ''
129− . ${config.system.build.setEnvironment}
129+ ${config.system.build.setEnvironment.text}
130130
131131 ${cfge.shellInit}
132132 '';
nixos/modules/programs/iftop.nixnew file+18
@@ -0,0 +1,18 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.programs.iftop;
7+in {
8+ options = {
9+ programs.iftop.enable = mkEnableOption "iftop + setcap wrapper";
10+ };
11+ config = mkIf cfg.enable {
12+ environment.systemPackages = [ pkgs.iftop ];
13+ security.wrappers.iftop = {
14+ source = "${pkgs.iftop}/bin/iftop";
15+ capabilities = "cap_net_raw+p";
16+ };
17+ };
18+}
nixos/modules/programs/info.nixdeleted−30
@@ -1,30 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−{
6−
7− options = {
8−
9− programs.info.enable = mkOption {
10− type = types.bool;
11− default = true;
12− description = ''
13− Whether to enable info pages and the <command>info</command> command.
14− '';
15− };
16−
17− };
18−
19−
20− config = mkIf config.programs.info.enable {
21−
22− environment.systemPackages = [ pkgs.texinfoInteractive ];
23−
24− environment.pathsToLink = [ "/info" "/share/info" ];
25−
26− environment.extraOutputsToInstall = [ "info" ];
27−
28− };
29−
30−}
nixos/modules/programs/less.nix+15−2
@@ -6,7 +6,7 @@ let
66
77 cfg = config.programs.less;
88
9− configFile = ''
9+ configText = if (cfg.configFile != null) then (builtins.readFile cfg.configFile) else ''
1010 #command
1111 ${concatStringsSep "\n"
1212 (mapAttrsToList (command: action: "${command} ${action}") cfg.commands)
@@ -25,7 +25,7 @@ let
2525 '';
2626
2727 lessKey = pkgs.runCommand "lesskey"
28− { src = pkgs.writeText "lessconfig" configFile; }
28+ { src = pkgs.writeText "lessconfig" configText; }
2929 "${pkgs.less}/bin/lesskey -o $out $src";
3030
3131in
@@ -37,6 +37,19 @@ in
3737
3838 enable = mkEnableOption "less";
3939
40+ configFile = mkOption {
41+ type = types.nullOr types.path;
42+ default = null;
43+ example = literalExample "$${pkgs.my-configs}/lesskey";
44+ description = ''
45+ Path to lesskey configuration file.
46+
47+ <option>configFile</option> takes precedence over <option>commands</option>,
48+ <option>clearDefaultCommands</option>, <option>lineEditingKeys</option>, and
49+ <option>envVariables</option>.
50+ '';
51+ };
52+
4053 commands = mkOption {
4154 type = types.attrsOf types.str;
4255 default = {};
nixos/modules/programs/man.nixdeleted−31
@@ -1,31 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−{
6−
7− options = {
8−
9− programs.man.enable = mkOption {
10− type = types.bool;
11− default = true;
12− description = ''
13− Whether to enable manual pages and the <command>man</command> command.
14− This also includes "man" outputs of all <literal>systemPackages</literal>.
15− '';
16− };
17−
18− };
19−
20−
21− config = mkIf config.programs.man.enable {
22−
23− environment.systemPackages = [ pkgs.man-db ];
24−
25− environment.pathsToLink = [ "/share/man" ];
26−
27− environment.extraOutputsToInstall = [ "man" ];
28−
29− };
30−
31−}
nixos/modules/programs/rootston.nix+1−1
@@ -6,7 +6,7 @@ let
66 cfg = config.programs.rootston;
77
88 rootstonWrapped = pkgs.writeScriptBin "rootston" ''
9− #! ${pkgs.stdenv.shell}
9+ #! ${pkgs.runtimeShell}
1010 if [[ "$#" -ge 1 ]]; then
1111 exec ${pkgs.rootston}/bin/rootston "$@"
1212 else
nixos/modules/programs/singularity.nixnew file+20
@@ -0,0 +1,20 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+let
5+ cfg = config.programs.singularity;
6+in {
7+ options.programs.singularity = {
8+ enable = mkEnableOption "Singularity";
9+ };
10+
11+ config = mkIf cfg.enable {
12+ environment.systemPackages = [ pkgs.singularity ];
13+ systemd.tmpfiles.rules = [ "d /var/singularity/mnt/session 0770 root root -"
14+ "d /var/singularity/mnt/final 0770 root root -"
15+ "d /var/singularity/mnt/overlay 0770 root root -"
16+ "d /var/singularity/mnt/container 0770 root root -"
17+ "d /var/singularity/mnt/source 0770 root root -"];
18+ };
19+
20+}
nixos/modules/programs/ssh.nix+1−1
@@ -13,7 +13,7 @@ let
1313
1414 askPasswordWrapper = pkgs.writeScript "ssh-askpass-wrapper"
1515 ''
16− #! ${pkgs.stdenv.shell} -e
16+ #! ${pkgs.runtimeShell} -e
1717 export DISPLAY="$(systemctl --user show-environment | ${pkgs.gnused}/bin/sed 's/^DISPLAY=\(.*\)/\1/; t; d')"
1818 exec ${askPassword}
1919 '';
nixos/modules/programs/zsh/zsh.nix+1−1
@@ -108,7 +108,7 @@ in
108108 if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
109109 export __ETC_ZSHENV_SOURCED=1
110110
111− . ${config.system.build.setEnvironment}
111+ ${config.system.build.setEnvironment.text}
112112
113113 ${cfge.shellInit}
114114
nixos/modules/rename.nix+27−12
@@ -4,6 +4,7 @@ with lib;
44
55{
66 imports = [
7+ (mkRenamedOptionModule [ "dysnomia" ] [ "services" "dysnomia" ])
78 (mkRenamedOptionModule [ "environment" "x11Packages" ] [ "environment" "systemPackages" ])
89 (mkRenamedOptionModule [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ])
910 (mkRenamedOptionModule [ "environment" "nix" ] [ "nix" "package" ])
@@ -22,6 +23,8 @@ with lib;
2223 (config:
2324 let enabled = getAttrFromPath [ "services" "printing" "gutenprint" ] config;
2425 in if enabled then [ pkgs.gutenprint ] else [ ]))
26+ (mkRenamedOptionModule [ "services" "ddclient" "domain" ] [ "services" "ddclient" "domains" ])
27+ (mkRemovedOptionModule [ "services" "ddclient" "homeDir" ] "")
2528 (mkRenamedOptionModule [ "services" "elasticsearch" "host" ] [ "services" "elasticsearch" "listenAddress" ])
2629 (mkRenamedOptionModule [ "services" "graphite" "api" "host" ] [ "services" "graphite" "api" "listenAddress" ])
2730 (mkRenamedOptionModule [ "services" "graphite" "web" "host" ] [ "services" "graphite" "web" "listenAddress" ])
@@ -186,22 +189,24 @@ with lib;
186189 (mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])
187190
188191 # Fontconfig
189− (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "config" "fonts" "fontconfig" "allowBitmaps" ])
190− (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowType1" ] [ "config" "fonts" "fontconfig" "allowType1" ])
191− (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "config" "fonts" "fontconfig" "useEmbeddedBitmaps" ])
192− (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "config" "fonts" "fontconfig" "forceAutohint" ])
193− (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "config" "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
192+ (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "fonts" "fontconfig" "allowBitmaps" ])
193+ (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowType1" ] [ "fonts" "fontconfig" "allowType1" ])
194+ (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "fonts" "fontconfig" "useEmbeddedBitmaps" ])
195+ (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "fonts" "fontconfig" "forceAutohint" ])
196+ (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
194197
195198 # Profile splitting
196199 (mkRenamedOptionModule [ "virtualization" "growPartition" ] [ "boot" "growPartition" ])
197200
198201 # misc/version.nix
199− (mkRenamedOptionModule [ "config" "system" "nixosVersion" ] [ "config" "system" "nixos" "version" ])
200− (mkRenamedOptionModule [ "config" "system" "nixosRelease" ] [ "config" "system" "nixos" "release" ])
201− (mkRenamedOptionModule [ "config" "system" "nixosVersionSuffix" ] [ "config" "system" "nixos" "versionSuffix" ])
202− (mkRenamedOptionModule [ "config" "system" "nixosRevision" ] [ "config" "system" "nixos" "revision" ])
203− (mkRenamedOptionModule [ "config" "system" "nixosCodeName" ] [ "config" "system" "nixos" "codeName" ])
204− (mkRenamedOptionModule [ "config" "system" "nixosLabel" ] [ "config" "system" "nixos" "label" ])
202+ (mkRenamedOptionModule [ "system" "nixosVersion" ] [ "system" "nixos" "version" ])
203+ (mkRenamedOptionModule [ "system" "nixosVersionSuffix" ] [ "system" "nixos" "versionSuffix" ])
204+ (mkRenamedOptionModule [ "system" "nixosRevision" ] [ "system" "nixos" "revision" ])
205+ (mkRenamedOptionModule [ "system" "nixosLabel" ] [ "system" "nixos" "label" ])
206+
207+ # Users
208+ (mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ])
209+ (mkAliasOptionModule [ "users" "extraGroups" ] [ "users" "groups" ])
205210
206211 # Options that are obsolete and have no replacement.
207212 (mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
@@ -240,5 +245,15 @@ with lib;
240245
241246 # Xen
242247 (mkRenamedOptionModule [ "virtualisation" "xen" "qemu-package" ] [ "virtualisation" "xen" "package-qemu" ])
243− ];
248+
249+ (mkRenamedOptionModule [ "programs" "info" "enable" ] [ "documentation" "info" "enable" ])
250+ (mkRenamedOptionModule [ "programs" "man" "enable" ] [ "documentation" "man" "enable" ])
251+
252+ ] ++ (flip map [ "blackboxExporter" "collectdExporter" "fritzboxExporter"
253+ "jsonExporter" "minioExporter" "nginxExporter" "nodeExporter"
254+ "snmpExporter" "unifiExporter" "varnishExporter" ]
255+ (opt: mkRemovedOptionModule [ "services" "prometheus" "${opt}" ] ''
256+ The prometheus exporters are now configured using `services.prometheus.exporters'.
257+ See the 18.03 release notes for more information.
258+ '' ));
244259}
nixos/modules/security/acme.nix+81−42
@@ -58,9 +58,11 @@ let
5858 default = "";
5959 example = "systemctl reload nginx.service";
6060 description = ''
61− Commands to run after certificates are re-issued. Typically
61+ Commands to run after new certificates go live. Typically
6262 the web server and other servers using certificates need to
6363 be reloaded.
64+
65+ Executed in the same directory with the new certificate.
6466 '';
6567 };
6668
@@ -78,6 +80,27 @@ let
7880 '';
7981 };
8082
83+ activationDelay = mkOption {
84+ type = types.nullOr types.str;
85+ default = null;
86+ description = ''
87+ Systemd time span expression to delay copying new certificates to main
88+ state directory. See <citerefentry><refentrytitle>systemd.time</refentrytitle>
89+ <manvolnum>7</manvolnum></citerefentry>.
90+ '';
91+ };
92+
93+ preDelay = mkOption {
94+ type = types.lines;
95+ default = "";
96+ description = ''
97+ Commands to run after certificates are re-issued but before they are
98+ activated. Typically the new certificate is published to DNS.
99+
100+ Executed in the same directory with the new certificate.
101+ '';
102+ };
103+
81104 extraDomains = mkOption {
82105 type = types.attrsOf (types.nullOr types.str);
83106 default = {};
@@ -140,14 +163,6 @@ in
140163 '';
141164 };
142165
143− tosHash = mkOption {
144− type = types.string;
145− default = "cc88d8d9517f490191401e7b54e9ffd12a2b9082ec7a1d4cec6101f9f1647e7b";
146− description = ''
147− SHA256 of the Terms of Services document. This changes once in a while.
148− '';
149− };
150−
151166 production = mkOption {
152167 type = types.bool;
153168 default = true;
@@ -194,14 +209,15 @@ in
194209 servicesLists = mapAttrsToList certToServices cfg.certs;
195210 certToServices = cert: data:
196211 let
197− cpath = "${cfg.directory}/${cert}";
212+ domain = if data.domain != null then data.domain else cert;
213+ cpath = lpath + optionalString (data.activationDelay != null) ".staging";
214+ lpath = "${cfg.directory}/${cert}";
198215 rights = if data.allowKeysForGroup then "750" else "700";
199− cmdline = [ "-v" "-d" data.domain "--default_root" data.webroot "--valid_min" cfg.validMin "--tos_sha256" cfg.tosHash ]
216+ cmdline = [ "-v" "-d" data.domain "--default_root" data.webroot "--valid_min" cfg.validMin ]
200217 ++ optionals (data.email != null) [ "--email" data.email ]
201218 ++ concatMap (p: [ "-f" p ]) data.plugins
202219 ++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains)
203− ++ (if cfg.production then []
204− else ["--server" "https://acme-staging.api.letsencrypt.org/directory"]);
220+ ++ optionals (!cfg.production) ["--server" "https://acme-staging.api.letsencrypt.org/directory"];
205221 acmeService = {
206222 description = "Renew ACME Certificate for ${cert}";
207223 after = [ "network.target" "network-online.target" ];
@@ -214,7 +230,7 @@ in
214230 Group = data.group;
215231 PrivateTmp = true;
216232 };
217− path = [ pkgs.simp_le ];
233+ path = with pkgs; [ simp_le systemd ];
218234 preStart = ''
219235 mkdir -p '${cfg.directory}'
220236 chown 'root:root' '${cfg.directory}'
@@ -237,17 +253,39 @@ in
237253 exit "$EXITCODE"
238254 '';
239255 postStop = ''
256+ cd '${cpath}'
257+
240258 if [ -e /tmp/lastExitCode ] && [ "$(cat /tmp/lastExitCode)" = "0" ]; then
241− echo "Executing postRun hook..."
242− ${data.postRun}
259+ ${if data.activationDelay != null then ''
260+
261+ ${data.preDelay}
262+
263+ if [ -d '${lpath}' ]; then
264+ systemd-run --no-block --on-active='${data.activationDelay}' --unit acme-setlive-${cert}.service
265+ else
266+ systemctl --wait start acme-setlive-${cert}.service
267+ fi
268+ '' else data.postRun}
243269 fi
244270 '';
245271
246272 before = [ "acme-certificates.target" ];
247273 wantedBy = [ "acme-certificates.target" ];
248274 };
275+ delayService = {
276+ description = "Set certificate for ${cert} live";
277+ path = with pkgs; [ rsync ];
278+ serviceConfig = {
279+ Type = "oneshot";
280+ };
281+ script = ''
282+ rsync -a --delete-after '${cpath}/' '${lpath}'
283+ '';
284+ postStop = data.postRun;
285+ };
249286 selfsignedService = {
250287 description = "Create preliminary self-signed certificate for ${cert}";
288+ path = [ pkgs.openssl ];
251289 preStart = ''
252290 if [ ! -d '${cpath}' ]
253291 then
@@ -258,37 +296,41 @@ in
258296 '';
259297 script =
260298 ''
261− # Create self-signed key
262− workdir="/run/acme-selfsigned-${cert}"
263− ${pkgs.openssl.bin}/bin/openssl genrsa -des3 -passout pass:x -out $workdir/server.pass.key 2048
264− ${pkgs.openssl.bin}/bin/openssl rsa -passin pass:x -in $workdir/server.pass.key -out $workdir/server.key
265− ${pkgs.openssl.bin}/bin/openssl req -new -key $workdir/server.key -out $workdir/server.csr \
299+ workdir="$(mktemp -d)"
300+
301+ # Create CA
302+ openssl genrsa -des3 -passout pass:x -out $workdir/ca.pass.key 2048
303+ openssl rsa -passin pass:x -in $workdir/ca.pass.key -out $workdir/ca.key
304+ openssl req -new -key $workdir/ca.key -out $workdir/ca.csr \
305+ -subj "/C=UK/ST=Warwickshire/L=Leamington/O=OrgName/OU=Security Department/CN=example.com"
306+ openssl x509 -req -days 1 -in $workdir/ca.csr -signkey $workdir/ca.key -out $workdir/ca.crt
307+
308+ # Create key
309+ openssl genrsa -des3 -passout pass:x -out $workdir/server.pass.key 2048
310+ openssl rsa -passin pass:x -in $workdir/server.pass.key -out $workdir/server.key
311+ openssl req -new -key $workdir/server.key -out $workdir/server.csr \
266312 -subj "/C=UK/ST=Warwickshire/L=Leamington/O=OrgName/OU=IT Department/CN=example.com"
267− ${pkgs.openssl.bin}/bin/openssl x509 -req -days 1 -in $workdir/server.csr -signkey $workdir/server.key -out $workdir/server.crt
313+ openssl x509 -req -days 1 -in $workdir/server.csr -CA $workdir/ca.crt \
314+ -CAkey $workdir/ca.key -CAserial $workdir/ca.srl -CAcreateserial \
315+ -out $workdir/server.crt
268316
269− # Move key to destination
270− mv $workdir/server.key ${cpath}/key.pem
271− mv $workdir/server.crt ${cpath}/fullchain.pem
317+ # Copy key to destination
318+ cp $workdir/server.key ${cpath}/key.pem
272319
273− # Create full.pem for e.g. lighttpd (same format as "simp_le ... -f full.pem" creates)
274− cat "${cpath}/key.pem" "${cpath}/fullchain.pem" > "${cpath}/full.pem"
320+ # Create fullchain.pem (same format as "simp_le ... -f fullchain.pem" creates)
321+ cat $workdir/{server.crt,ca.crt} > "${cpath}/fullchain.pem"
275322
276− # Clean up working directory
277− rm $workdir/server.csr
278− rm $workdir/server.pass.key
323+ # Create full.pem for e.g. lighttpd
324+ cat $workdir/{server.key,server.crt,ca.crt} > "${cpath}/full.pem"
279325
280326 # Give key acme permissions
281− chmod ${rights} '${cpath}/key.pem'
282− chown '${data.user}:${data.group}' '${cpath}/key.pem'
283− chmod ${rights} '${cpath}/fullchain.pem'
284− chown '${data.user}:${data.group}' '${cpath}/fullchain.pem'
285− chmod ${rights} '${cpath}/full.pem'
286− chown '${data.user}:${data.group}' '${cpath}/full.pem'
327+ chown '${data.user}:${data.group}' "${cpath}/"{key,fullchain,full}.pem
328+ chmod ${rights} "${cpath}/"{key,fullchain,full}.pem
287329 '';
288330 serviceConfig = {
289331 Type = "oneshot";
290− RuntimeDirectory = "acme-selfsigned-${cert}";
291332 PermissionsStartOnly = true;
333+ PrivateTmp = true;
292334 User = data.user;
293335 Group = data.group;
294336 };
@@ -305,11 +347,8 @@ in
305347 };
306348 in (
307349 [ { name = "acme-${cert}"; value = acmeService; } ]
308− ++
309− (if cfg.preliminarySelfsigned
310− then [ { name = "acme-selfsigned-${cert}"; value = selfsignedService; } ]
311− else []
312− )
350+ ++ optional cfg.preliminarySelfsigned { name = "acme-selfsigned-${cert}"; value = selfsignedService; }
351+ ++ optional (data.activationDelay != null) { name = "acme-setlive-${cert}"; value = delayService; }
313352 );
314353 servicesAttr = listToAttrs services;
315354 injectServiceDep = {
nixos/modules/security/audit.nix+3−3
@@ -13,7 +13,7 @@ let
1313 };
1414
1515 disableScript = pkgs.writeScript "audit-disable" ''
16− #!${pkgs.stdenv.shell} -eu
16+ #!${pkgs.runtimeShell} -eu
1717 # Explicitly disable everything, as otherwise journald might start it.
1818 auditctl -D
1919 auditctl -e 0 -a task,never
@@ -23,7 +23,7 @@ let
2323 # put in the store like this. At the same time, it doesn't feel like a huge deal and working
2424 # around that is a pain so I'm leaving it like this for now.
2525 startScript = pkgs.writeScript "audit-start" ''
26− #!${pkgs.stdenv.shell} -eu
26+ #!${pkgs.runtimeShell} -eu
2727 # Clear out any rules we may start with
2828 auditctl -D
2929
@@ -43,7 +43,7 @@ let
4343 '';
4444
4545 stopScript = pkgs.writeScript "audit-stop" ''
46− #!${pkgs.stdenv.shell} -eu
46+ #!${pkgs.runtimeShell} -eu
4747 # Clear the rules
4848 auditctl -D
4949
nixos/modules/security/duosec.nix+2−2
@@ -25,14 +25,14 @@ let
2525 loginCfgFile = optional cfg.ssh.enable
2626 { source = pkgs.writeText "login_duo.conf" configFile;
2727 mode = "0600";
28− uid = config.ids.uids.sshd;
28+ user = "sshd";
2929 target = "duo/login_duo.conf";
3030 };
3131
3232 pamCfgFile = optional cfg.pam.enable
3333 { source = pkgs.writeText "pam_duo.conf" configFile;
3434 mode = "0600";
35− uid = config.ids.uids.sshd;
35+ user = "sshd";
3636 target = "duo/pam_duo.conf";
3737 };
3838in
nixos/modules/security/pam.nix+10−3
@@ -234,6 +234,11 @@ let
234234 password, KDE will prompt separately after login.
235235 '';
236236 };
237+ sssdStrictAccess = mkOption {
238+ default = false;
239+ type = types.bool;
240+ description = "enforce sssd access control";
241+ };
237242
238243 enableGnomeKeyring = mkOption {
239244 default = false;
@@ -264,11 +269,13 @@ let
264269 text = mkDefault
265270 (''
266271 # Account management.
267− account sufficient pam_unix.so
272+ account ${if cfg.sssdStrictAccess then "required" else "sufficient"} pam_unix.so
268273 ${optionalString use_ldap
269274 "account sufficient ${pam_ldap}/lib/security/pam_ldap.so"}
270− ${optionalString config.services.sssd.enable
275+ ${optionalString (config.services.sssd.enable && cfg.sssdStrictAccess==false)
271276 "account sufficient ${pkgs.sssd}/lib/security/pam_sss.so"}
277+ ${optionalString (config.services.sssd.enable && cfg.sssdStrictAccess)
278+ "account [default=bad success=ok user_unknown=ignore] ${pkgs.sssd}/lib/security/pam_sss.so"}
272279 ${optionalString config.krb5.enable
273280 "account sufficient ${pam_krb5}/lib/security/pam_krb5.so"}
274281
@@ -386,7 +393,7 @@ let
386393 ${optionalString (cfg.enableGnomeKeyring)
387394 "session optional ${pkgs.gnome3.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start"}
388395 ${optionalString (config.virtualisation.lxc.lxcfs.enable)
389− "session optional ${pkgs.lxcfs}/lib/security/pam_cgfs.so -c freezer,memory,name=systemd,unified,cpuset"}
396+ "session optional ${pkgs.lxc}/lib/security/pam_cgfs.so -c all"}
390397 '');
391398 };
392399
nixos/modules/security/sudo.nix+3−3
@@ -47,8 +47,8 @@ in
4747 default = true;
4848 description =
4949 ''
50− Whether users of the <code>wheel</code> group can execute
51− commands as super user without entering a password.
50+ Whether users of the <code>wheel</code> group must
51+ provide a password to run commands as super user via <command>sudo</command>.
5252 '';
5353 };
5454
@@ -215,7 +215,7 @@ in
215215 { src = pkgs.writeText "sudoers-in" cfg.configFile; }
216216 # Make sure that the sudoers file is syntactically valid.
217217 # (currently disabled - NIXOS-66)
218− "${pkgs.sudo}/sbin/visudo -f $src -c && cp $src $out";
218+ "${pkgs.buildPackages.sudo}/sbin/visudo -f $src -c && cp $src $out";
219219 target = "sudoers";
220220 mode = "0440";
221221 };
nixos/modules/security/wrappers/wrapper.c+1−1
@@ -10,8 +10,8 @@
1010#include <errno.h>
1111#include <linux/capability.h>
1212#include <sys/capability.h>
13−#include <linux/prctl.h>
1413#include <sys/prctl.h>
14+#include <limits.h>
1515#include <cap-ng.h>
1616
1717// Make sure assertions are not compiled out, we use them to codify
nixos/modules/services/backup/almir.nixdeleted−173
@@ -1,173 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.almir;
7−
8− bconsoleconf = pkgs.writeText "bconsole.conf"
9− ''
10− Director {
11− Name = ${cfg.director_name}
12− DIRport = ${toString cfg.director_port}
13− address = ${cfg.director_address}
14− Password = "${cfg.director_password}"
15− }
16− '';
17−
18− productionini = pkgs.writeText "production.ini"
19− ''
20−[app:main]
21−use = egg:almir
22−
23−pyramid.reload_templates = false
24−pyramid.debug_authorization = false
25−pyramid.debug_notfound = false
26−pyramid.debug_routematch = false
27−pyramid.debug_templates = false
28−pyramid.default_locale_name = en
29−pyramid.includes =
30− pyramid_exclog
31−exclog.extra_info = true
32−
33−sqlalchemy.url = ${cfg.sqlalchemy_engine_url}
34−timezone = ${cfg.timezone}
35−bconsole_config = ${bconsoleconf}
36−
37−[server:main]
38−use = egg:waitress#main
39−host = 127.0.0.1
40−port = ${toString cfg.port}
41−
42−
43−# Begin logging configuration
44−
45−[loggers]
46−keys = root, almir, sqlalchemy, exc_logger
47−
48−[handlers]
49−keys = console
50−
51−[formatters]
52−keys = generic
53−
54−[logger_root]
55−level = WARN
56−handlers = console
57−
58−[logger_almir]
59−level = WARN
60−handlers =
61−qualname = almir
62−
63−[logger_exc_logger]
64−level = ERROR
65−handlers =
66−qualname = exc_logger
67−
68−[logger_sqlalchemy]
69−level = WARN
70−handlers =
71−qualname = sqlalchemy.engine
72−# "level = INFO" logs SQL queries.
73−# "level = DEBUG" logs SQL queries and results.
74−# "level = WARN" logs neither. (Recommended for production systems.)
75−
76−[handler_console]
77−class = StreamHandler
78−args = (sys.stderr,)
79−level = NOTSET
80−formatter = generic
81−
82−[formatter_generic]
83−format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
84− '';
85−in {
86− options = {
87− services.almir = {
88− enable = mkOption {
89− type = types.bool;
90− default = false;
91− description = ''
92− Enable Almir web server. Also configures postgresql database and installs bacula.
93− '';
94− };
95−
96− port = mkOption {
97− default = 35000;
98− type = types.int;
99− description = ''
100− Port for Almir web server to listen on.
101− '';
102− };
103−
104− timezone = mkOption {
105− description = ''
106− Timezone as specified in https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
107− '';
108− example = "Europe/Ljubljana";
109− };
110−
111− sqlalchemy_engine_url = mkOption {
112− default = "postgresql:///bacula";
113− example = ''
114− postgresql://bacula:bacula@localhost:5432/bacula
115− mysql+mysqlconnector://<user>:<password>@<hostname>/<database>'
116− sqlite:////var/lib/bacula/bacula.db'
117− '';
118− description = ''
119− Define SQL database connection to bacula catalog as specified in http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls
120− '';
121− };
122−
123− director_name = mkOption {
124− description = ''
125− Name of the Director to connect with bconsole.
126− '';
127− };
128−
129− director_password = mkOption {
130− description = ''
131− Password for Director to connect with bconsole.
132− '';
133− };
134−
135− director_port = mkOption {
136− default = 9101;
137− type = types.int;
138− description = ''
139− Port for Director to connect with bconsole.
140− '';
141− };
142−
143− director_address = mkOption {
144− default = "127.0.0.1";
145− description = ''
146− IP/Hostname for Director to connect with bconsole.
147− '';
148− };
149− };
150− };
151−
152− config = mkIf cfg.enable {
153− systemd.services.almir = {
154− after = [ "network.target" "postgresql.service" ];
155− description = "Almir web app";
156− wantedBy = [ "multi-user.target" ];
157− path = [ pkgs.pythonPackages.almir ];
158− environment.PYTHONPATH = "${pkgs.pythonPackages.almir}/lib/${pkgs.pythonPackages.python.libPrefix}/site-packages";
159− serviceConfig.ExecStart = "${pkgs.pythonPackages.pyramid}/bin/pserve ${productionini}";
160− };
161−
162− environment.systemPackages = [ pkgs.pythonPackages.almir ];
163−
164− users.extraUsers.almir = {
165− group = "almir";
166− uid = config.ids.uids.almir;
167− createHome = true;
168− shell = "${pkgs.bash}/bin/bash";
169− };
170−
171− users.extraGroups.almir.gid = config.ids.gids.almir;
172− };
173−}
nixos/modules/services/backup/borgbackup.nixnew file+580
@@ -0,0 +1,580 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ isLocalPath = x:
8+ builtins.substring 0 1 x == "/" # absolute path
9+ || builtins.substring 0 1 x == "." # relative path
10+ || builtins.match "[.*:.*]" == null; # not machine:path
11+
12+ mkExcludeFile = cfg:
13+ # Write each exclude pattern to a new line
14+ pkgs.writeText "excludefile" (concatStringsSep "\n" cfg.exclude);
15+
16+ mkKeepArgs = cfg:
17+ # If cfg.prune.keep e.g. has a yearly attribute,
18+ # its content is passed on as --keep-yearly
19+ concatStringsSep " "
20+ (mapAttrsToList (x: y: "--keep-${x}=${toString y}") cfg.prune.keep);
21+
22+ mkBackupScript = cfg: ''
23+ on_exit()
24+ {
25+ exitStatus=$?
26+ # Reset the EXIT handler, or else we're called again on 'exit' below
27+ trap - EXIT
28+ ${cfg.postHook}
29+ exit $exitStatus
30+ }
31+ trap 'on_exit' INT TERM QUIT EXIT
32+
33+ archiveName="${cfg.archiveBaseName}-$(date ${cfg.dateFormat})"
34+ archiveSuffix="${optionalString cfg.appendFailedSuffix ".failed"}"
35+ ${cfg.preHook}
36+ '' + optionalString cfg.doInit ''
37+ # Run borg init if the repo doesn't exist yet
38+ if ! borg list > /dev/null; then
39+ borg init \
40+ --encryption ${cfg.encryption.mode} \
41+ $extraInitArgs
42+ ${cfg.postInit}
43+ fi
44+ '' + ''
45+ borg create \
46+ --compression ${cfg.compression} \
47+ --exclude-from ${mkExcludeFile cfg} \
48+ $extraCreateArgs \
49+ "::$archiveName$archiveSuffix" \
50+ ${escapeShellArgs cfg.paths}
51+ '' + optionalString cfg.appendFailedSuffix ''
52+ borg rename "::$archiveName$archiveSuffix" "$archiveName"
53+ '' + ''
54+ ${cfg.postCreate}
55+ '' + optionalString (cfg.prune.keep != { }) ''
56+ borg prune \
57+ ${mkKeepArgs cfg} \
58+ --prefix ${escapeShellArg cfg.prune.prefix} \
59+ $extraPruneArgs
60+ ${cfg.postPrune}
61+ '';
62+
63+ mkPassEnv = cfg: with cfg.encryption;
64+ if passCommand != null then
65+ { BORG_PASSCOMMAND = passCommand; }
66+ else if passphrase != null then
67+ { BORG_PASSPHRASE = passphrase; }
68+ else { };
69+
70+ mkBackupService = name: cfg:
71+ let
72+ userHome = config.users.users.${cfg.user}.home;
73+ in nameValuePair "borgbackup-job-${name}" {
74+ description = "BorgBackup job ${name}";
75+ path = with pkgs; [
76+ borgbackup openssh
77+ ];
78+ script = mkBackupScript cfg;
79+ serviceConfig = {
80+ User = cfg.user;
81+ Group = cfg.group;
82+ # Only run when no other process is using CPU or disk
83+ CPUSchedulingPolicy = "idle";
84+ IOSchedulingClass = "idle";
85+ ProtectSystem = "strict";
86+ ReadWritePaths =
87+ [ "${userHome}/.config/borg" "${userHome}/.cache/borg" ]
88+ # Borg needs write access to repo if it is not remote
89+ ++ optional (isLocalPath cfg.repo) cfg.repo;
90+ PrivateTmp = true;
91+ };
92+ environment = {
93+ BORG_REPO = cfg.repo;
94+ inherit (cfg) extraInitArgs extraCreateArgs extraPruneArgs;
95+ } // (mkPassEnv cfg) // cfg.environment;
96+ inherit (cfg) startAt;
97+ };
98+
99+ # Paths listed in ReadWritePaths must exist before service is started
100+ mkActivationScript = name: cfg:
101+ let
102+ install = "install -o ${cfg.user} -g ${cfg.group}";
103+ in
104+ nameValuePair "borgbackup-job-${name}" (stringAfter [ "users" ] (''
105+ # Eensure that the home directory already exists
106+ # We can't assert createHome == true because that's not the case for root
107+ cd "${config.users.users.${cfg.user}.home}"
108+ ${install} -d .config/borg
109+ ${install} -d .cache/borg
110+ '' + optionalString (isLocalPath cfg.repo) ''
111+ ${install} -d ${escapeShellArg cfg.repo}
112+ ''));
113+
114+ mkPassAssertion = name: cfg: {
115+ assertion = with cfg.encryption;
116+ mode != "none" -> passCommand != null || passphrase != null;
117+ message =
118+ "passCommand or passphrase has to be specified because"
119+ + '' borgbackup.jobs.${name}.encryption != "none"'';
120+ };
121+
122+ mkRepoService = name: cfg:
123+ nameValuePair "borgbackup-repo-${name}" {
124+ description = "Create BorgBackup repository ${name} directory";
125+ script = ''
126+ mkdir -p ${escapeShellArg cfg.path}
127+ chown ${cfg.user}:${cfg.group} ${escapeShellArg cfg.path}
128+ '';
129+ serviceConfig = {
130+ # The service's only task is to ensure that the specified path exists
131+ Type = "oneshot";
132+ };
133+ wantedBy = [ "multi-user.target" ];
134+ };
135+
136+ mkAuthorizedKey = cfg: appendOnly: key:
137+ let
138+ # Because of the following line, clients do not need to specify an absolute repo path
139+ cdCommand = "cd ${escapeShellArg cfg.path}";
140+ restrictedArg = "--restrict-to-${if cfg.allowSubRepos then "path" else "repository"} .";
141+ appendOnlyArg = optionalString appendOnly "--append-only";
142+ quotaArg = optionalString (cfg.quota != null) "--storage-quota ${cfg.quota}";
143+ serveCommand = "borg serve ${restrictedArg} ${appendOnlyArg} ${quotaArg}";
144+ in
145+ ''command="${cdCommand} && ${serveCommand}",restrict ${key}'';
146+
147+ mkUsersConfig = name: cfg: {
148+ users.${cfg.user} = {
149+ openssh.authorizedKeys.keys =
150+ (map (mkAuthorizedKey cfg false) cfg.authorizedKeys
151+ ++ map (mkAuthorizedKey cfg true) cfg.authorizedKeysAppendOnly);
152+ useDefaultShell = true;
153+ };
154+ groups.${cfg.group} = { };
155+ };
156+
157+ mkKeysAssertion = name: cfg: {
158+ assertion = cfg.authorizedKeys != [ ] || cfg.authorizedKeysAppendOnly != [ ];
159+ message =
160+ "borgbackup.repos.${name} does not make sense"
161+ + " without at least one public key";
162+ };
163+
164+in {
165+ meta.maintainers = with maintainers; [ dotlambda ];
166+
167+ ###### interface
168+
169+ options.services.borgbackup.jobs = mkOption {
170+ description = "Deduplicating backups using BorgBackup.";
171+ default = { };
172+ example = literalExample ''
173+ {
174+ rootBackup = {
175+ paths = "/";
176+ exclude = [ "/nix" ];
177+ repo = "/path/to/local/repo";
178+ encryption = {
179+ mode = "repokey";
180+ passphrase = "secret";
181+ };
182+ compression = "auto,lzma";
183+ startAt = "weekly";
184+ };
185+ }
186+ '';
187+ type = types.attrsOf (types.submodule (let globalConfig = config; in
188+ { name, config, ... }: {
189+ options = {
190+
191+ paths = mkOption {
192+ type = with types; either path (nonEmptyListOf path);
193+ description = "Path(s) to back up.";
194+ example = "/home/user";
195+ apply = x: if isList x then x else [ x ];
196+ };
197+
198+ repo = mkOption {
199+ type = types.str;
200+ description = "Remote or local repository to back up to.";
201+ example = "user@machine:/path/to/repo";
202+ };
203+
204+ archiveBaseName = mkOption {
205+ type = types.strMatching "[^/{}]+";
206+ default = "${globalConfig.networking.hostName}-${name}";
207+ defaultText = "\${config.networking.hostName}-<name>";
208+ description = ''
209+ How to name the created archives. A timestamp, whose format is
210+ determined by <option>dateFormat</option>, will be appended. The full
211+ name can be modified at runtime (<literal>$archiveName</literal>).
212+ Placeholders like <literal>{hostname}</literal> must not be used.
213+ '';
214+ };
215+
216+ dateFormat = mkOption {
217+ type = types.str;
218+ description = ''
219+ Arguments passed to <command>date</command>
220+ to create a timestamp suffix for the archive name.
221+ '';
222+ default = "+%Y-%m-%dT%H:%M:%S";
223+ example = "-u +%s";
224+ };
225+
226+ startAt = mkOption {
227+ type = with types; either str (listOf str);
228+ default = "daily";
229+ description = ''
230+ When or how often the backup should run.
231+ Must be in the format described in
232+ <citerefentry><refentrytitle>systemd.time</refentrytitle>
233+ <manvolnum>7</manvolnum></citerefentry>.
234+ If you do not want the backup to start
235+ automatically, use <literal>[ ]</literal>.
236+ '';
237+ };
238+
239+ user = mkOption {
240+ type = types.str;
241+ description = ''
242+ The user <command>borg</command> is run as.
243+ User or group need read permission
244+ for the specified <option>paths</option>.
245+ '';
246+ default = "root";
247+ };
248+
249+ group = mkOption {
250+ type = types.str;
251+ description = ''
252+ The group borg is run as. User or group needs read permission
253+ for the specified <option>paths</option>.
254+ '';
255+ default = "root";
256+ };
257+
258+ encryption.mode = mkOption {
259+ type = types.enum [
260+ "repokey" "keyfile"
261+ "repokey-blake2" "keyfile-blake2"
262+ "authenticated" "authenticated-blake2"
263+ "none"
264+ ];
265+ description = ''
266+ Encryption mode to use. Setting a mode
267+ other than <literal>"none"</literal> requires
268+ you to specify a <option>passCommand</option>
269+ or a <option>passphrase</option>.
270+ '';
271+ };
272+
273+ encryption.passCommand = mkOption {
274+ type = with types; nullOr str;
275+ description = ''
276+ A command which prints the passphrase to stdout.
277+ Mutually exclusive with <option>passphrase</option>.
278+ '';
279+ default = null;
280+ example = "cat /path/to/passphrase_file";
281+ };
282+
283+ encryption.passphrase = mkOption {
284+ type = with types; nullOr str;
285+ description = ''
286+ The passphrase the backups are encrypted with.
287+ Mutually exclusive with <option>passCommand</option>.
288+ If you do not want the passphrase to be stored in the
289+ world-readable Nix store, use <option>passCommand</option>.
290+ '';
291+ default = null;
292+ };
293+
294+ compression = mkOption {
295+ # "auto" is optional,
296+ # compression mode must be given,
297+ # compression level is optional
298+ type = types.strMatching "none|(auto,)?(lz4|zstd|zlib|lzma)(,[[:digit:]]{1,2})?";
299+ description = ''
300+ Compression method to use. Refer to
301+ <command>borg help compression</command>
302+ for all available options.
303+ '';
304+ default = "lz4";
305+ example = "auto,lzma";
306+ };
307+
308+ exclude = mkOption {
309+ type = with types; listOf str;
310+ description = ''
311+ Exclude paths matching any of the given patterns. See
312+ <command>borg help patterns</command> for pattern syntax.
313+ '';
314+ default = [ ];
315+ example = [
316+ "/home/*/.cache"
317+ "/nix"
318+ ];
319+ };
320+
321+ doInit = mkOption {
322+ type = types.bool;
323+ description = ''
324+ Run <command>borg init</command> if the
325+ specified <option>repo</option> does not exist.
326+ You should set this to <literal>false</literal>
327+ if the repository is located on an external drive
328+ that might not always be mounted.
329+ '';
330+ default = true;
331+ };
332+
333+ appendFailedSuffix = mkOption {
334+ type = types.bool;
335+ description = ''
336+ Append a <literal>.failed</literal> suffix
337+ to the archive name, which is only removed if
338+ <command>borg create</command> has a zero exit status.
339+ '';
340+ default = true;
341+ };
342+
343+ prune.keep = mkOption {
344+ # Specifying e.g. `prune.keep.yearly = -1`
345+ # means there is no limit of yearly archives to keep
346+ # The regex is for use with e.g. --keep-within 1y
347+ type = with types; attrsOf (either int (strMatching "[[:digit:]]+[Hdwmy]"));
348+ description = ''
349+ Prune a repository by deleting all archives not matching any of the
350+ specified retention options. See <command>borg help prune</command>
351+ for the available options.
352+ '';
353+ default = { };
354+ example = literalExample ''
355+ {
356+ within = "1d"; # Keep all archives from the last day
357+ daily = 7;
358+ weekly = 4;
359+ monthly = -1; # Keep at least one archive for each month
360+ }
361+ '';
362+ };
363+
364+ prune.prefix = mkOption {
365+ type = types.str;
366+ description = ''
367+ Only consider archive names starting with this prefix for pruning.
368+ By default, only archives created by this job are considered.
369+ Use <literal>""</literal> to consider all archives.
370+ '';
371+ default = config.archiveBaseName;
372+ defaultText = "\${archiveBaseName}";
373+ };
374+
375+ environment = mkOption {
376+ type = with types; attrsOf str;
377+ description = ''
378+ Environment variables passed to the backup script.
379+ You can for example specify which SSH key to use.
380+ '';
381+ default = { };
382+ example = { BORG_RSH = "ssh -i /path/to/key"; };
383+ };
384+
385+ preHook = mkOption {
386+ type = types.lines;
387+ description = ''
388+ Shell commands to run before the backup.
389+ This can for example be used to mount file systems.
390+ '';
391+ default = "";
392+ example = ''
393+ # To add excluded paths at runtime
394+ extraCreateArgs="$extraCreateArgs --exclude /some/path"
395+ '';
396+ };
397+
398+ postInit = mkOption {
399+ type = types.lines;
400+ description = ''
401+ Shell commands to run after <command>borg init</command>.
402+ '';
403+ default = "";
404+ };
405+
406+ postCreate = mkOption {
407+ type = types.lines;
408+ description = ''
409+ Shell commands to run after <command>borg create</command>. The name
410+ of the created archive is stored in <literal>$archiveName</literal>.
411+ '';
412+ default = "";
413+ };
414+
415+ postPrune = mkOption {
416+ type = types.lines;
417+ description = ''
418+ Shell commands to run after <command>borg prune</command>.
419+ '';
420+ default = "";
421+ };
422+
423+ postHook = mkOption {
424+ type = types.lines;
425+ description = ''
426+ Shell commands to run just before exit. They are executed
427+ even if a previous command exits with a non-zero exit code.
428+ The latter is available as <literal>$exitStatus</literal>.
429+ '';
430+ default = "";
431+ };
432+
433+ extraInitArgs = mkOption {
434+ type = types.str;
435+ description = ''
436+ Additional arguments for <command>borg init</command>.
437+ Can also be set at runtime using <literal>$extraInitArgs</literal>.
438+ '';
439+ default = "";
440+ example = "--append-only";
441+ };
442+
443+ extraCreateArgs = mkOption {
444+ type = types.str;
445+ description = ''
446+ Additional arguments for <command>borg create</command>.
447+ Can also be set at runtime using <literal>$extraCreateArgs</literal>.
448+ '';
449+ default = "";
450+ example = "--stats --checkpoint-interval 600";
451+ };
452+
453+ extraPruneArgs = mkOption {
454+ type = types.str;
455+ description = ''
456+ Additional arguments for <command>borg prune</command>.
457+ Can also be set at runtime using <literal>$extraPruneArgs</literal>.
458+ '';
459+ default = "";
460+ example = "--save-space";
461+ };
462+
463+ };
464+ }
465+ ));
466+ };
467+
468+ options.services.borgbackup.repos = mkOption {
469+ description = ''
470+ Serve BorgBackup repositories to given public SSH keys,
471+ restricting their access to the repository only.
472+ Also, clients do not need to specify the absolute path when accessing the repository,
473+ i.e. <literal>user@machine:.</literal> is enough. (Note colon and dot.)
474+ '';
475+ default = { };
476+ type = types.attrsOf (types.submodule (
477+ { name, config, ... }: {
478+ options = {
479+
480+ path = mkOption {
481+ type = types.path;
482+ description = ''
483+ Where to store the backups. Note that the directory
484+ is created automatically, with correct permissions.
485+ '';
486+ default = "/var/lib/borgbackup";
487+ };
488+
489+ user = mkOption {
490+ type = types.str;
491+ description = ''
492+ The user <command>borg serve</command> is run as.
493+ User or group needs write permission
494+ for the specified <option>path</option>.
495+ '';
496+ default = "borg";
497+ };
498+
499+ group = mkOption {
500+ type = types.str;
501+ description = ''
502+ The group <command>borg serve</command> is run as.
503+ User or group needs write permission
504+ for the specified <option>path</option>.
505+ '';
506+ default = "borg";
507+ };
508+
509+ authorizedKeys = mkOption {
510+ type = with types; listOf str;
511+ description = ''
512+ Public SSH keys that are given full write access to this repository.
513+ You should use a different SSH key for each repository you write to, because
514+ the specified keys are restricted to running <command>borg serve</command>
515+ and can only access this single repository.
516+ '';
517+ default = [ ];
518+ };
519+
520+ authorizedKeysAppendOnly = mkOption {
521+ type = with types; listOf str;
522+ description = ''
523+ Public SSH keys that can only be used to append new data (archives) to the repository.
524+ Note that archives can still be marked as deleted and are subsequently removed from disk
525+ upon accessing the repo with full write access, e.g. when pruning.
526+ '';
527+ default = [ ];
528+ };
529+
530+ allowSubRepos = mkOption {
531+ type = types.bool;
532+ description = ''
533+ Allow clients to create repositories in subdirectories of the
534+ specified <option>path</option>. These can be accessed using
535+ <literal>user@machine:path/to/subrepo</literal>. Note that a
536+ <option>quota</option> applies to repositories independently.
537+ Therefore, if this is enabled, clients can create multiple
538+ repositories and upload an arbitrary amount of data.
539+ '';
540+ default = false;
541+ };
542+
543+ quota = mkOption {
544+ # See the definition of parse_file_size() in src/borg/helpers/parseformat.py
545+ type = with types; nullOr (strMatching "[[:digit:].]+[KMGTP]?");
546+ description = ''
547+ Storage quota for the repository. This quota is ensured for all
548+ sub-repositories if <option>allowSubRepos</option> is enabled
549+ but not for the overall storage space used.
550+ '';
551+ default = null;
552+ example = "100G";
553+ };
554+
555+ };
556+ }
557+ ));
558+ };
559+
560+ ###### implementation
561+
562+ config = mkIf (with config.services.borgbackup; jobs != { } || repos != { })
563+ (with config.services.borgbackup; {
564+ assertions =
565+ mapAttrsToList mkPassAssertion jobs
566+ ++ mapAttrsToList mkKeysAssertion repos;
567+
568+ system.activationScripts = mapAttrs' mkActivationScript jobs;
569+
570+ systemd.services =
571+ # A job named "foo" is mapped to systemd.services.borgbackup-job-foo
572+ mapAttrs' mkBackupService jobs
573+ # A repo named "foo" is mapped to systemd.services.borgbackup-repo-foo
574+ // mapAttrs' mkRepoService repos;
575+
576+ users = mkMerge (mapAttrsToList mkUsersConfig repos);
577+
578+ environment.systemPackages = with pkgs; [ borgbackup ];
579+ });
580+}
nixos/modules/services/backup/duplicati.nixnew file+40
@@ -0,0 +1,40 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.duplicati;
7+in
8+{
9+ options = {
10+ services.duplicati = {
11+ enable = mkEnableOption "Duplicati";
12+ };
13+ };
14+
15+ config = mkIf cfg.enable {
16+ environment.systemPackages = [ pkgs.duplicati ];
17+
18+ systemd.services.duplicati = {
19+ description = "Duplicati backup";
20+ after = [ "network.target" ];
21+ wantedBy = [ "multi-user.target" ];
22+ serviceConfig = {
23+ User = "duplicati";
24+ Group = "duplicati";
25+ ExecStart = "${pkgs.duplicati}/bin/duplicati-server --webservice-interface=any --webservice-port=8200 --server-datafolder=/var/lib/duplicati";
26+ Restart = "on-failure";
27+ };
28+ };
29+
30+ users.extraUsers.duplicati = {
31+ uid = config.ids.uids.duplicati;
32+ home = "/var/lib/duplicati";
33+ createHome = true;
34+ group = "duplicati";
35+ };
36+ users.extraGroups.duplicati.gid = config.ids.gids.duplicati;
37+
38+ };
39+}
40+
nixos/modules/services/backup/restic.nixnew file+150
@@ -0,0 +1,150 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+{
5+ options.services.restic.backups = mkOption {
6+ description = ''
7+ Periodic backups to create with Restic.
8+ '';
9+ type = types.attrsOf (types.submodule ({ name, config, ... }: {
10+ options = {
11+ passwordFile = mkOption {
12+ type = types.str;
13+ description = ''
14+ Read the repository password from a file.
15+ '';
16+ example = "/etc/nixos/restic-password";
17+
18+ };
19+
20+ repository = mkOption {
21+ type = types.str;
22+ description = ''
23+ repository to backup to.
24+ '';
25+ example = "sftp:backup@192.168.1.100:/backups/${name}";
26+ };
27+
28+ paths = mkOption {
29+ type = types.listOf types.str;
30+ default = [];
31+ description = ''
32+ Which paths to backup.
33+ '';
34+ example = [
35+ "/var/lib/postgresql"
36+ "/home/user/backup"
37+ ];
38+ };
39+
40+ timerConfig = mkOption {
41+ type = types.attrsOf types.str;
42+ default = {
43+ OnCalendar = "daily";
44+ };
45+ description = ''
46+ When to run the backup. See man systemd.timer for details.
47+ '';
48+ example = {
49+ OnCalendar = "00:05";
50+ RandomizedDelaySec = "5h";
51+ };
52+ };
53+
54+ user = mkOption {
55+ type = types.str;
56+ default = "root";
57+ description = ''
58+ As which user the backup should run.
59+ '';
60+ example = "postgresql";
61+ };
62+
63+ extraBackupArgs = mkOption {
64+ type = types.listOf types.str;
65+ default = [];
66+ description = ''
67+ Extra arguments passed to restic backup.
68+ '';
69+ example = [
70+ "--exclude-file=/etc/nixos/restic-ignore"
71+ ];
72+ };
73+
74+ extraOptions = mkOption {
75+ type = types.listOf types.str;
76+ default = [];
77+ description = ''
78+ Extra extended options to be passed to the restic --option flag.
79+ '';
80+ example = [
81+ "sftp.command='ssh backup@192.168.1.100 -i /home/user/.ssh/id_rsa -s sftp'"
82+ ];
83+ };
84+
85+ initialize = mkOption {
86+ type = types.bool;
87+ default = false;
88+ description = ''
89+ Create the repository if it doesn't exist.
90+ '';
91+ };
92+ };
93+ }));
94+ default = {};
95+ example = {
96+ localbackup = {
97+ paths = [ "/home" ];
98+ repository = "/mnt/backup-hdd";
99+ passwordFile = "/etc/nixos/secrets/restic-password";
100+ initialize = true;
101+ };
102+ remotebackup = {
103+ paths = [ "/home" ];
104+ repository = "sftp:backup@host:/backups/home";
105+ passwordFile = "/etc/nixos/secrets/restic-password";
106+ extraOptions = [
107+ "sftp.command='ssh backup@host -i /etc/nixos/secrets/backup-private-key -s sftp'"
108+ ];
109+ timerConfig = {
110+ OnCalendar = "00:05";
111+ RandomizedDelaySec = "5h";
112+ };
113+ };
114+ };
115+ };
116+
117+ config = {
118+ systemd.services =
119+ mapAttrs' (name: backup:
120+ let
121+ extraOptions = concatMapStrings (arg: " -o ${arg}") backup.extraOptions;
122+ connectTo = elemAt (splitString ":" backup.repository) 1;
123+ resticCmd = "${pkgs.restic}/bin/restic${extraOptions}";
124+ in nameValuePair "restic-backups-${name}" ({
125+ environment = {
126+ RESTIC_PASSWORD_FILE = backup.passwordFile;
127+ RESTIC_REPOSITORY = backup.repository;
128+ };
129+ path = with pkgs; [
130+ openssh
131+ ];
132+ restartIfChanged = false;
133+ serviceConfig = {
134+ Type = "oneshot";
135+ ExecStart = "${resticCmd} backup ${concatStringsSep " " backup.extraBackupArgs} ${concatStringsSep " " backup.paths}";
136+ User = backup.user;
137+ };
138+ } // optionalAttrs backup.initialize {
139+ preStart = ''
140+ ${resticCmd} snapshots || ${resticCmd} init
141+ '';
142+ })
143+ ) config.services.restic.backups;
144+ systemd.timers =
145+ mapAttrs' (name: backup: nameValuePair "restic-backups-${name}" {
146+ wantedBy = [ "timers.target" ];
147+ timerConfig = backup.timerConfig;
148+ }) config.services.restic.backups;
149+ };
150+}
nixos/modules/services/backup/tarsnap.nix+60−7
@@ -238,6 +238,20 @@ in
238238 Whether to produce verbose logging output.
239239 '';
240240 };
241+ explicitSymlinks = mkOption {
242+ type = types.bool;
243+ default = false;
244+ description = ''
245+ Whether to follow symlinks specified as archives.
246+ '';
247+ };
248+ followSymlinks = mkOption {
249+ type = types.bool;
250+ default = false;
251+ description = ''
252+ Whether to follow all symlinks in archive trees.
253+ '';
254+ };
241255 };
242256 }
243257 ));
@@ -285,12 +299,12 @@ in
285299 }) gcfg.archives);
286300
287301 systemd.services =
288− mapAttrs' (name: cfg: nameValuePair "tarsnap-${name}" {
302+ (mapAttrs' (name: cfg: nameValuePair "tarsnap-${name}" {
289303 description = "Tarsnap archive '${name}'";
290304 requires = [ "network-online.target" ];
291305 after = [ "network-online.target" ];
292306
293− path = [ pkgs.iputils pkgs.tarsnap pkgs.utillinux ];
307+ path = with pkgs; [ iputils tarsnap utillinux ];
294308
295309 # In order for the persistent tarsnap timer to work reliably, we have to
296310 # make sure that the tarsnap server is reachable after systemd starts up
@@ -300,10 +314,12 @@ in
300314 while ! ping -q -c 1 v1-0-0-server.tarsnap.com &> /dev/null; do sleep 3; done
301315 '';
302316
303− script =
304− let run = ''tarsnap --configfile "/etc/tarsnap/${name}.conf" \
305− -c -f "${name}-$(date +"%Y%m%d%H%M%S")" \
317+ script = let
318+ tarsnap = ''tarsnap --configfile "/etc/tarsnap/${name}.conf"'';
319+ run = ''${tarsnap} -c -f "${name}-$(date +"%Y%m%d%H%M%S")" \
306320 ${optionalString cfg.verbose "-v"} \
321+ ${optionalString cfg.explicitSymlinks "-H"} \
322+ ${optionalString cfg.followSymlinks "-L"} \
307323 ${concatStringsSep " " cfg.directories}'';
308324 in if (cfg.cachedir != null) then ''
309325 mkdir -p ${cfg.cachedir}
@@ -313,7 +329,7 @@ in
313329 if [ ! -e ${cfg.cachedir}/firstrun ]; then
314330 ( flock 10
315331 flock -u 9
316− tarsnap --configfile "/etc/tarsnap/${name}.conf" --fsck
332+ ${tarsnap} --fsck
317333 flock 9
318334 ) 10>${cfg.cachedir}/firstrun
319335 fi
@@ -329,7 +345,44 @@ in
329345 CapabilityBoundingSet = [ "CAP_DAC_READ_SEARCH" ];
330346 PermissionsStartOnly = "true";
331347 };
332− }) gcfg.archives;
348+ }) gcfg.archives) //
349+
350+ (mapAttrs' (name: cfg: nameValuePair "tarsnap-restore-${name}"{
351+ description = "Tarsnap restore '${name}'";
352+ requires = [ "network-online.target" ];
353+
354+ path = with pkgs; [ iputils tarsnap utillinux ];
355+
356+ script = let
357+ tarsnap = ''tarsnap --configfile "/etc/tarsnap/${name}.conf"'';
358+ lastArchive = ''$(${tarsnap} --list-archives | sort | tail -1)'';
359+ run = ''${tarsnap} -x -f "${lastArchive}" ${optionalString cfg.verbose "-v"}'';
360+
361+ in if (cfg.cachedir != null) then ''
362+ mkdir -p ${cfg.cachedir}
363+ chmod 0700 ${cfg.cachedir}
364+
365+ ( flock 9
366+ if [ ! -e ${cfg.cachedir}/firstrun ]; then
367+ ( flock 10
368+ flock -u 9
369+ ${tarsnap} --fsck
370+ flock 9
371+ ) 10>${cfg.cachedir}/firstrun
372+ fi
373+ ) 9>${cfg.cachedir}/lockf
374+
375+ exec flock ${cfg.cachedir}/firstrun ${run}
376+ '' else "exec ${run}";
377+
378+ serviceConfig = {
379+ Type = "oneshot";
380+ IOSchedulingClass = "idle";
381+ NoNewPrivileges = "true";
382+ CapabilityBoundingSet = [ "CAP_DAC_READ_SEARCH" ];
383+ PermissionsStartOnly = "true";
384+ };
385+ }) gcfg.archives);
333386
334387 # Note: the timer must be Persistent=true, so that systemd will start it even
335388 # if e.g. your laptop was asleep while the latest interval occurred.
nixos/modules/services/backup/znapzend.nix+1−1
@@ -386,7 +386,7 @@ in
386386 echo Resetting znapzend zetups
387387 ${pkgs.znapzend}/bin/znapzendzetup list \
388388 | grep -oP '(?<=\*\*\* backup plan: ).*(?= \*\*\*)' \
389− | xargs ${pkgs.znapzend}/bin/znapzendzetup delete
389+ | xargs -I{} ${pkgs.znapzend}/bin/znapzendzetup delete "{}"
390390 '' + concatStringsSep "\n" (mapAttrsToList (dataset: config: ''
391391 echo Importing znapzend zetup ${config} for dataset ${dataset}
392392 ${pkgs.znapzend}/bin/znapzendzetup import --write ${dataset} ${config}
nixos/modules/services/cluster/kubernetes/default.nix+8−8
@@ -279,7 +279,7 @@ in {
279279 tokenAuthFile = mkOption {
280280 description = ''
281281 Kubernetes apiserver token authentication file. See
282− <link xlink:href="http://kubernetes.io/docs/admin/authentication.html"/>
282+ <link xlink:href="https://kubernetes.io/docs/admin/authentication.html"/>
283283 '';
284284 default = null;
285285 type = types.nullOr types.path;
@@ -288,7 +288,7 @@ in {
288288 basicAuthFile = mkOption {
289289 description = ''
290290 Kubernetes apiserver basic authentication file. See
291− <link xlink:href="http://kubernetes.io/docs/admin/authentication.html"/>
291+ <link xlink:href="https://kubernetes.io/docs/admin/authentication.html"/>
292292 '';
293293 default = pkgs.writeText "users" ''
294294 kubernetes,admin,0
@@ -299,7 +299,7 @@ in {
299299 authorizationMode = mkOption {
300300 description = ''
301301 Kubernetes apiserver authorization mode (AlwaysAllow/AlwaysDeny/ABAC/RBAC). See
302− <link xlink:href="http://kubernetes.io/docs/admin/authorization.html"/>
302+ <link xlink:href="https://kubernetes.io/docs/admin/authorization.html"/>
303303 '';
304304 default = ["RBAC" "Node"];
305305 type = types.listOf (types.enum ["AlwaysAllow" "AlwaysDeny" "ABAC" "RBAC" "Node"]);
@@ -308,7 +308,7 @@ in {
308308 authorizationPolicy = mkOption {
309309 description = ''
310310 Kubernetes apiserver authorization policy file. See
311− <link xlink:href="http://kubernetes.io/docs/admin/authorization.html"/>
311+ <link xlink:href="https://kubernetes.io/docs/admin/authorization.html"/>
312312 '';
313313 default = [];
314314 type = types.listOf types.attrs;
@@ -332,7 +332,7 @@ in {
332332 runtimeConfig = mkOption {
333333 description = ''
334334 Api runtime configuration. See
335− <link xlink:href="http://kubernetes.io/docs/admin/cluster-management.html"/>
335+ <link xlink:href="https://kubernetes.io/docs/admin/cluster-management.html"/>
336336 '';
337337 default = "authentication.k8s.io/v1beta1=true";
338338 example = "api/all=false,api/v1=true";
@@ -342,7 +342,7 @@ in {
342342 admissionControl = mkOption {
343343 description = ''
344344 Kubernetes admission control plugins to use. See
345− <link xlink:href="http://kubernetes.io/docs/admin/admission-controllers/"/>
345+ <link xlink:href="https://kubernetes.io/docs/admin/admission-controllers/"/>
346346 '';
347347 default = ["NamespaceLifecycle" "LimitRanger" "ServiceAccount" "ResourceQuota" "DefaultStorageClass" "DefaultTolerationSeconds" "NodeRestriction"];
348348 example = [
@@ -766,7 +766,7 @@ in {
766766 rm /opt/cni/bin/* || true
767767 ${concatMapStrings (package: ''
768768 echo "Linking cni package: ${package}"
769− ln -fs ${package.plugins}/* /opt/cni/bin
769+ ln -fs ${package}/bin/* /opt/cni/bin
770770 '') cfg.kubelet.cni.packages}
771771 '';
772772 serviceConfig = {
@@ -828,7 +828,7 @@ in {
828828 };
829829
830830 # Allways include cni plugins
831− services.kubernetes.kubelet.cni.packages = [pkgs.cni];
831+ services.kubernetes.kubelet.cni.packages = [pkgs.cni-plugins];
832832
833833 boot.kernelModules = ["br_netfilter"];
834834
nixos/modules/services/computing/boinc/client.nix+45−1
@@ -6,6 +6,13 @@ let
66 cfg = config.services.boinc;
77 allowRemoteGuiRpcFlag = optionalString cfg.allowRemoteGuiRpc "--allow_remote_gui_rpc";
88
9+ fhsEnv = pkgs.buildFHSUserEnv {
10+ name = "boinc-fhs-env";
11+ targetPkgs = pkgs': [ cfg.package ] ++ cfg.extraEnvPackages;
12+ runScript = "/bin/boinc_client";
13+ };
14+ fhsEnvExecutable = "${fhsEnv}/bin/${fhsEnv.name}";
15+
916in
1017 {
1118 options.services.boinc = {
@@ -49,6 +56,43 @@ in
4956 See also: <link xlink:href="http://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely#Remote_access"/>
5057 '';
5158 };
59+
60+ extraEnvPackages = mkOption {
61+ type = types.listOf types.package;
62+ default = [];
63+ example = "[ pkgs.virtualbox ]";
64+ description = ''
65+ Additional packages to make available in the environment in which
66+ BOINC will run. Common choices are:
67+ <variablelist>
68+ <varlistentry>
69+ <term><varname>pkgs.virtualbox</varname></term>
70+ <listitem><para>
71+ The VirtualBox virtual machine framework. Required by some BOINC
72+ projects, such as ATLAS@home.
73+ </para></listitem>
74+ </varlistentry>
75+ <varlistentry>
76+ <term><varname>pkgs.ocl-icd</varname></term>
77+ <listitem><para>
78+ OpenCL infrastructure library. Required by BOINC projects that
79+ use OpenCL, in addition to a device-specific OpenCL driver.
80+ </para></listitem>
81+ </varlistentry>
82+ <varlistentry>
83+ <term><varname>pkgs.linuxPackages.nvidia_x11</varname></term>
84+ <listitem><para>
85+ Provides CUDA libraries. Required by BOINC projects that use
86+ CUDA. Note that this requires an NVIDIA graphics device to be
87+ present on the system.
88+ </para><para>
89+ Also provides OpenCL drivers for NVIDIA GPUs;
90+ <varname>pkgs.ocl-icd</varname> is also needed in this case.
91+ </para></listitem>
92+ </varlistentry>
93+ </variablelist>
94+ '';
95+ };
5296 };
5397
5498 config = mkIf cfg.enable {
@@ -70,7 +114,7 @@ in
70114 chown boinc ${cfg.dataDir}
71115 '';
72116 script = ''
73− ${cfg.package}/bin/boinc_client --dir ${cfg.dataDir} --redirectio ${allowRemoteGuiRpcFlag}
117+ ${fhsEnvExecutable} --dir ${cfg.dataDir} --redirectio ${allowRemoteGuiRpcFlag}
74118 '';
75119 serviceConfig = {
76120 PermissionsStartOnly = true; # preStart must be run as root
nixos/modules/services/continuous-integration/buildkite-agent.nix+1−1
@@ -18,7 +18,7 @@ let
1818 hooksDir = let
1919 mkHookEntry = name: value: ''
2020 cat > $out/${name} <<EOF
21− #! ${pkgs.stdenv.shell}
21+ #! ${pkgs.runtimeShell}
2222 set -e
2323 ${value}
2424 EOF
nixos/modules/services/continuous-integration/jenkins/default.nix+7
@@ -145,6 +145,11 @@ in {
145145 };
146146
147147 config = mkIf cfg.enable {
148+ # server references the dejavu fonts
149+ environment.systemPackages = [
150+ pkgs.dejavu_fonts
151+ ];
152+
148153 users.extraGroups = optional (cfg.group == "jenkins") {
149154 name = "jenkins";
150155 gid = config.ids.gids.jenkins;
@@ -200,10 +205,12 @@ in {
200205 ${replacePlugins}
201206 '';
202207
208+ # For reference: https://wiki.jenkins.io/display/JENKINS/JenkinsLinuxStartupScript
203209 script = ''
204210 ${pkgs.jdk}/bin/java ${concatStringsSep " " cfg.extraJavaOptions} -jar ${cfg.package}/webapps/jenkins.war --httpListenAddress=${cfg.listenAddress} \
205211 --httpPort=${toString cfg.port} \
206212 --prefix=${cfg.prefix} \
213+ -Djava.awt.headless=true \
207214 ${concatStringsSep " " cfg.extraOptions}
208215 '';
209216
nixos/modules/services/databases/4store-endpoint.nix+1−1
@@ -2,7 +2,7 @@
22let
33 cfg = config.services.fourStoreEndpoint;
44 endpointUser = "fourstorehttp";
5− run = "${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${endpointUser} -c";
5+ run = "${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${endpointUser} -c";
66in
77with lib;
88{
nixos/modules/services/databases/4store.nix+1−1
@@ -3,7 +3,7 @@ let
33 cfg = config.services.fourStore;
44 stateDir = "/var/lib/4store";
55 fourStoreUser = "fourstore";
6− run = "${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${fourStoreUser}";
6+ run = "${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${fourStoreUser}";
77in
88with lib;
99{
nixos/modules/services/databases/foundationdb.nixnew file+360
@@ -0,0 +1,360 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.foundationdb;
7+
8+ # used for initial cluster configuration
9+ initialIpAddr = if (cfg.publicAddress != "auto") then cfg.publicAddress else "127.0.0.1";
10+
11+ fdbServers = n:
12+ concatStringsSep "\n" (map (x: "[fdbserver.${toString (x+cfg.listenPortStart)}]") (range 0 (n - 1)));
13+
14+ backupAgents = n:
15+ concatStringsSep "\n" (map (x: "[backup_agent.${toString x}]") (range 1 n));
16+
17+ configFile = pkgs.writeText "foundationdb.conf" ''
18+ [general]
19+ cluster_file = /etc/foundationdb/fdb.cluster
20+
21+ [fdbmonitor]
22+ restart_delay = ${toString cfg.restartDelay}
23+ user = ${cfg.user}
24+ group = ${cfg.group}
25+
26+ [fdbserver]
27+ command = ${pkgs.foundationdb}/bin/fdbserver
28+ public_address = ${cfg.publicAddress}:$ID
29+ listen_address = ${cfg.listenAddress}
30+ datadir = ${cfg.dataDir}/$ID
31+ logdir = ${cfg.logDir}
32+ logsize = ${cfg.logSize}
33+ maxlogssize = ${cfg.maxLogSize}
34+ ${optionalString (cfg.class != null) "class = ${cfg.class}"}
35+ memory = ${cfg.memory}
36+ storage_memory = ${cfg.storageMemory}
37+
38+ ${optionalString (cfg.locality.machineId != null) "locality_machineid=${cfg.locality.machineId}"}
39+ ${optionalString (cfg.locality.zoneId != null) "locality_zoneid=${cfg.locality.zoneId}"}
40+ ${optionalString (cfg.locality.datacenterId != null) "locality_dcid=${cfg.locality.datacenterId}"}
41+ ${optionalString (cfg.locality.dataHall != null) "locality_data_hall=${cfg.locality.dataHall}"}
42+
43+ ${fdbServers cfg.serverProcesses}
44+
45+ [backup_agent]
46+ command = ${pkgs.foundationdb}/libexec/backup_agent
47+ ${backupAgents cfg.backupProcesses}
48+ '';
49+in
50+{
51+ options.services.foundationdb = {
52+
53+ enable = mkEnableOption "FoundationDB Server";
54+
55+ publicAddress = mkOption {
56+ type = types.str;
57+ default = "auto";
58+ description = "Publicly visible IP address of the process. Port is determined by process ID";
59+ };
60+
61+ listenAddress = mkOption {
62+ type = types.str;
63+ default = "public";
64+ description = "Publicly visible IP address of the process. Port is determined by process ID";
65+ };
66+
67+ listenPortStart = mkOption {
68+ type = types.int;
69+ default = 4500;
70+ description = ''
71+ Starting port number for database listening sockets. Every FDB process binds to a
72+ subsequent port, to this number reflects the start of the overall range. e.g. having
73+ 8 server processes will use all ports between 4500 and 4507.
74+ '';
75+ };
76+
77+ openFirewall = mkOption {
78+ type = types.bool;
79+ default = false;
80+ description = ''
81+ Open the firewall ports corresponding to FoundationDB processes and coordinators
82+ using <option>config.networking.firewall.*</option>.
83+ '';
84+ };
85+
86+ dataDir = mkOption {
87+ type = types.path;
88+ default = "/var/lib/foundationdb";
89+ description = "Data directory. All cluster data will be put under here.";
90+ };
91+
92+ logDir = mkOption {
93+ type = types.path;
94+ default = "/var/log/foundationdb";
95+ description = "Log directory.";
96+ };
97+
98+ user = mkOption {
99+ type = types.str;
100+ default = "foundationdb";
101+ description = "User account under which FoundationDB runs.";
102+ };
103+
104+ group = mkOption {
105+ type = types.str;
106+ default = "foundationdb";
107+ description = "Group account under which FoundationDB runs.";
108+ };
109+
110+ class = mkOption {
111+ type = types.nullOr (types.enum [ "storage" "transaction" "stateless" ]);
112+ default = null;
113+ description = "Process class";
114+ };
115+
116+ restartDelay = mkOption {
117+ type = types.int;
118+ default = 10;
119+ description = "Number of seconds to wait before restarting servers.";
120+ };
121+
122+ logSize = mkOption {
123+ type = types.string;
124+ default = "10MiB";
125+ description = ''
126+ Roll over to a new log file after the current log file
127+ reaches the specified size.
128+ '';
129+ };
130+
131+ maxLogSize = mkOption {
132+ type = types.string;
133+ default = "100MiB";
134+ description = ''
135+ Delete the oldest log file when the total size of all log
136+ files exceeds the specified size. If set to 0, old log files
137+ will not be deleted.
138+ '';
139+ };
140+
141+ serverProcesses = mkOption {
142+ type = types.int;
143+ default = 1;
144+ description = "Number of fdbserver processes to run.";
145+ };
146+
147+ backupProcesses = mkOption {
148+ type = types.int;
149+ default = 1;
150+ description = "Number of backup_agent processes to run for snapshots.";
151+ };
152+
153+ memory = mkOption {
154+ type = types.string;
155+ default = "8GiB";
156+ description = ''
157+ Maximum memory used by the process. The default value is
158+ <literal>8GiB</literal>. When specified without a unit,
159+ <literal>MiB</literal> is assumed. This parameter does not
160+ change the memory allocation of the program. Rather, it sets
161+ a hard limit beyond which the process will kill itself and
162+ be restarted. The default value of <literal>8GiB</literal>
163+ is double the intended memory usage in the default
164+ configuration (providing an emergency buffer to deal with
165+ memory leaks or similar problems). It is not recommended to
166+ decrease the value of this parameter below its default
167+ value. It may be increased if you wish to allocate a very
168+ large amount of storage engine memory or cache. In
169+ particular, when the <literal>storageMemory</literal>
170+ parameter is increased, the <literal>memory</literal>
171+ parameter should be increased by an equal amount.
172+ '';
173+ };
174+
175+ storageMemory = mkOption {
176+ type = types.string;
177+ default = "1GiB";
178+ description = ''
179+ Maximum memory used for data storage. The default value is
180+ <literal>1GiB</literal>. When specified without a unit,
181+ <literal>MB</literal> is assumed. Clusters using the memory
182+ storage engine will be restricted to using this amount of
183+ memory per process for purposes of data storage. Memory
184+ overhead associated with storing the data is counted against
185+ this total. If you increase the
186+ <literal>storageMemory</literal>, you should also increase
187+ the <literal>memory</literal> parameter by the same amount.
188+ '';
189+ };
190+
191+ locality = mkOption {
192+ default = {
193+ machineId = null;
194+ zoneId = null;
195+ datacenterId = null;
196+ dataHall = null;
197+ };
198+
199+ description = ''
200+ FoundationDB locality settings.
201+ '';
202+
203+ type = types.submodule ({
204+ options = {
205+ machineId = mkOption {
206+ default = null;
207+ type = types.nullOr types.str;
208+ description = ''
209+ Machine identifier key. All processes on a machine should share a
210+ unique id. By default, processes on a machine determine a unique id to share.
211+ This does not generally need to be set.
212+ '';
213+ };
214+
215+ zoneId = mkOption {
216+ default = null;
217+ type = types.nullOr types.str;
218+ description = ''
219+ Zone identifier key. Processes that share a zone id are
220+ considered non-unique for the purposes of data replication.
221+ If unset, defaults to machine id.
222+ '';
223+ };
224+
225+ datacenterId = mkOption {
226+ default = null;
227+ type = types.nullOr types.str;
228+ description = ''
229+ Data center identifier key. All processes physically located in a
230+ data center should share the id. If you are depending on data
231+ center based replication this must be set on all processes.
232+ '';
233+ };
234+
235+ dataHall = mkOption {
236+ default = null;
237+ type = types.nullOr types.str;
238+ description = ''
239+ Data hall identifier key. All processes physically located in a
240+ data hall should share the id. If you are depending on data
241+ hall based replication this must be set on all processes.
242+ '';
243+ };
244+ };
245+ });
246+ };
247+
248+ extraReadWritePaths = mkOption {
249+ default = [ ];
250+ type = types.listOf types.path;
251+ description = ''
252+ An extra set of filesystem paths that FoundationDB can read to
253+ and write from. By default, FoundationDB runs under a heavily
254+ namespaced systemd environment without write access to most of
255+ the filesystem outside of its data and log directories. By
256+ adding paths to this list, the set of writeable paths will be
257+ expanded. This is useful for allowing e.g. backups to local files,
258+ which must be performed on behalf of the foundationdb service.
259+ '';
260+ };
261+
262+ pidfile = mkOption {
263+ type = types.path;
264+ default = "/run/foundationdb.pid";
265+ description = "Path to pidfile for fdbmonitor.";
266+ };
267+ };
268+
269+ config = mkIf cfg.enable {
270+ meta.doc = ./foundationdb.xml;
271+ meta.maintainers = with lib.maintainers; [ thoughtpolice ];
272+
273+ environment.systemPackages = [ pkgs.foundationdb ];
274+
275+ users.extraUsers = optionalAttrs (cfg.user == "foundationdb") (singleton
276+ { name = "foundationdb";
277+ description = "FoundationDB User";
278+ uid = config.ids.uids.foundationdb;
279+ group = cfg.group;
280+ });
281+
282+ users.extraGroups = optionalAttrs (cfg.group == "foundationdb") (singleton
283+ { name = "foundationdb";
284+ gid = config.ids.gids.foundationdb;
285+ });
286+
287+ networking.firewall.allowedTCPPortRanges = mkIf cfg.openFirewall
288+ [ { from = cfg.listenPortStart;
289+ to = (cfg.listenPortStart + cfg.serverProcesses) - 1;
290+ }
291+ ];
292+
293+ systemd.services.foundationdb = {
294+ description = "FoundationDB Service";
295+
296+ after = [ "network.target" ];
297+ wantedBy = [ "multi-user.target" ];
298+ unitConfig =
299+ { RequiresMountsFor = "${cfg.dataDir} ${cfg.logDir}";
300+ };
301+
302+ serviceConfig =
303+ let rwpaths = [ cfg.dataDir cfg.logDir cfg.pidfile "/etc/foundationdb" ]
304+ ++ cfg.extraReadWritePaths;
305+ in
306+ { Type = "simple";
307+ Restart = "always";
308+ RestartSec = 5;
309+ User = cfg.user;
310+ Group = cfg.group;
311+ PIDFile = "${cfg.pidfile}";
312+
313+ PermissionsStartOnly = true; # setup needs root perms
314+ TimeoutSec = 120; # give reasonable time to shut down
315+
316+ # Security options
317+ NoNewPrivileges = true;
318+ ProtectHome = true;
319+ ProtectSystem = "strict";
320+ ProtectKernelTunables = true;
321+ ProtectControlGroups = true;
322+ PrivateTmp = true;
323+ PrivateDevices = true;
324+ ReadWritePaths = lib.concatStringsSep " " (map (x: "-" + x) rwpaths);
325+ };
326+
327+ path = [ pkgs.foundationdb pkgs.coreutils ];
328+
329+ preStart = ''
330+ rm -f ${cfg.pidfile} && \
331+ touch ${cfg.pidfile} && \
332+ chown -R ${cfg.user}:${cfg.group} ${cfg.pidfile}
333+
334+ for x in "${cfg.logDir}" "${cfg.dataDir}" /etc/foundationdb; do
335+ [ ! -d "$x" ] && mkdir -m 0700 -vp "$x" && chown -R ${cfg.user}:${cfg.group} "$x";
336+ done
337+
338+ if [ ! -f /etc/foundationdb/fdb.cluster ]; then
339+ cf=/etc/foundationdb/fdb.cluster
340+ desc=$(tr -dc A-Za-z0-9 </dev/urandom 2>/dev/null | head -c8)
341+ rand=$(tr -dc A-Za-z0-9 </dev/urandom 2>/dev/null | head -c8)
342+ echo ''${desc}:''${rand}@${initialIpAddr}:${builtins.toString cfg.listenPortStart} > $cf
343+ chmod 0660 $cf && chown -R ${cfg.user}:${cfg.group} $cf
344+ touch "${cfg.dataDir}/.first_startup"
345+ fi
346+ '';
347+
348+ script = ''
349+ exec fdbmonitor --lockfile ${cfg.pidfile} --conffile ${configFile};
350+ '';
351+
352+ postStart = ''
353+ if [ -e "${cfg.dataDir}/.first_startup" ]; then
354+ fdbcli --exec "configure new single ssd"
355+ rm -f "${cfg.dataDir}/.first_startup";
356+ fi
357+ '';
358+ };
359+ };
360+}
nixos/modules/services/databases/foundationdb.xmlnew file+280
@@ -0,0 +1,280 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="module-foundationdb">
6+
7+<title>FoundationDB</title>
8+
9+<para><emphasis>Source:</emphasis> <filename>modules/services/databases/foundationdb.nix</filename></para>
10+
11+<para><emphasis>Upstream documentation:</emphasis> <link xlink:href="https://apple.github.io/foundationdb/"/></para>
12+
13+<para><emphasis>Maintainer:</emphasis> Austin Seipp</para>
14+
15+<para><emphasis>Default version:</emphasis> 5.1.x</para>
16+
17+<para>FoundationDB (or "FDB") is a distributed, open source, high performance,
18+transactional key-value store. It can store petabytes of data and deliver
19+exceptional performance while maintaining consistency and ACID semantics
20+(serializable transactions) over a large cluster.</para>
21+
22+<section><title>Configuring and basic setup</title>
23+
24+<para>To enable FoundationDB, add the following to your
25+<filename>configuration.nix</filename>:
26+
27+<programlisting>
28+services.foundationdb.enable = true;
29+</programlisting>
30+</para>
31+
32+<para>After running <command>nixos-rebuild</command>, you can verify whether
33+FoundationDB is running by executing <command>fdbcli</command> (which is added
34+to <option>environment.systemPackages</option>):
35+
36+<programlisting>
37+$ sudo -u foundationdb fdbcli
38+Using cluster file `/etc/foundationdb/fdb.cluster'.
39+
40+The database is available.
41+
42+Welcome to the fdbcli. For help, type `help'.
43+fdb> status
44+
45+Using cluster file `/etc/foundationdb/fdb.cluster'.
46+
47+Configuration:
48+ Redundancy mode - single
49+ Storage engine - memory
50+ Coordinators - 1
51+
52+Cluster:
53+ FoundationDB processes - 1
54+ Machines - 1
55+ Memory availability - 5.4 GB per process on machine with least available
56+ Fault Tolerance - 0 machines
57+ Server time - 04/20/18 15:21:14
58+
59+...
60+
61+fdb>
62+</programlisting>
63+</para>
64+
65+<para>FoundationDB is run under the <command>foundationdb</command> user and
66+group by default, but this may be changed in the NixOS configuration. The
67+systemd unit <command>foundationdb.service</command> controls the
68+<command>fdbmonitor</command> process.</para>
69+
70+<para>By default, the NixOS module for FoundationDB creates a single
71+SSD-storage based database for development and basic usage. This storage engine
72+is designed for SSDs and will perform poorly on HDDs; however it can handle far
73+more data than the alternative "memory" engine and is a better default choice
74+for most deployments. (Note that you can change the storage backend on-the-fly
75+for a given FoundationDB cluster using <command>fdbcli</command>.)</para>
76+
77+<para>Furthermore, only 1 server process and 1 backup agent are started in the
78+default configuration. See below for more on scaling to increase this.</para>
79+
80+<para>FoundationDB stores all data for all server processes under
81+<filename>/var/lib/foundationdb</filename>. You can override this using
82+<option>services.foundationdb.dataDir</option>, e.g.
83+
84+<programlisting>
85+services.foundationdb.dataDir = "/data/fdb";
86+</programlisting>
87+
88+</para>
89+
90+<para>Similarly, logs are stored under
91+<filename>/var/log/foundationdb</filename> by default, and there is a
92+corresponding <option>services.foundationdb.logDir</option> as well.</para>
93+
94+</section>
95+
96+<section><title>Scaling processes and backup agents</title>
97+
98+<para>Scaling the number of server processes is quite easy; simply specify
99+<option>services.foundationdb.serverProcesses</option> to be the number of
100+FoundationDB worker processes that should be started on the machine.</para>
101+
102+<para>FoundationDB worker processes typically require 4GB of RAM per-process at
103+minimum for good performance, so this option is set to 1 by default since the
104+maximum amount of RAM is unknown. You're advised to abide by this restriction,
105+so pick a number of processes so that each has 4GB or more.</para>
106+
107+<para>A similar option exists in order to scale backup agent processes,
108+<option>services.foundationdb.backupProcesses</option>. Backup agents are not
109+as performance/RAM sensitive, so feel free to experiment with the number of
110+available backup processes.</para>
111+
112+</section>
113+
114+<section><title>Clustering</title>
115+
116+<para>FoundationDB on NixOS works similarly to other Linux systems, so this
117+section will be brief. Please refer to the full FoundationDB documentation for
118+more on clustering.</para>
119+
120+<para>FoundationDB organizes clusters using a set of
121+<emphasis>coordinators</emphasis>, which are just specially-designated worker
122+processes. By default, every installation of FoundationDB on NixOS will start
123+as its own individual cluster, with a single coordinator: the first worker
124+process on <command>localhost</command>.</para>
125+
126+<para>Coordinators are specified globally using the
127+<command>/etc/foundationdb/fdb.cluster</command> file, which all servers and
128+client applications will use to find and join coordinators. Note that this file
129+<emphasis>can not</emphasis> be managed by NixOS so easily: FoundationDB is
130+designed so that it will rewrite the file at runtime for all clients and nodes
131+when cluster coordinators change, with clients transparently handling this
132+without intervention. It is fundamentally a mutable file, and you should not
133+try to manage it in any way in NixOS.</para>
134+
135+<para>When dealing with a cluster, there are two main things you want to
136+do:</para>
137+
138+<itemizedlist>
139+ <listitem><para>Add a node to the cluster for storage/compute.</para></listitem>
140+ <listitem><para>Promote an ordinary worker to a coordinator.</para></listitem>
141+</itemizedlist>
142+
143+<para>A node must already be a member of the cluster in order to properly be
144+promoted to a coordinator, so you must always add it first if you wish to
145+promote it.</para>
146+
147+<para>To add a machine to a FoundationDB cluster:</para>
148+
149+<itemizedlist>
150+ <listitem><para>Choose one of the servers to start as the initial coordinator.
151+ </para></listitem>
152+ <listitem><para>Copy the <command>/etc/foundationdb/fdb.cluster</command> file
153+ from this server to all the other servers. Restart FoundationDB on all of
154+ these other servers, so they join the cluster.</para></listitem>
155+ <listitem><para>All of these servers are now connected and working together
156+ in the cluster, under the chosen coordinator.</para></listitem>
157+</itemizedlist>
158+
159+<para>At this point, you can add as many nodes as you want by just repeating
160+the above steps. By default there will still be a single coordinator: you can
161+use <command>fdbcli</command> to change this and add new coordinators.</para>
162+
163+<para>As a convenience, FoundationDB can automatically assign coordinators
164+based on the redundancy mode you wish to achieve for the cluster. Once all the
165+nodes have been joined, simply set the replication policy, and then issue the
166+<command>coordinators auto</command> command</para>
167+
168+<para>For example, assuming we have 3 nodes available, we can enable double
169+redundancy mode, then auto-select coordinators. For double redundancy, 3
170+coordinators is ideal: therefore FoundationDB will make
171+<emphasis>every</emphasis> node a coordinator automatically:</para>
172+
173+<programlisting>
174+fdbcli> configure double ssd
175+fdbcli> coordinators auto
176+</programlisting>
177+
178+<para>This will transparently update all the servers within seconds, and
179+appropriately rewrite the <command>fdb.cluster</command> file, as well as
180+informing all client processes to do the same.</para>
181+
182+</section>
183+
184+<section><title>Client connectivity</title>
185+
186+<para>By default, all clients must use the current
187+<command>fdb.cluster</command> file to access a given FoundationDB cluster.
188+This file is located by default in
189+<command>/etc/foundationdb/fdb.cluster</command> on all machines with the
190+FoundationDB service enabled, so you may copy the active one from your cluster
191+to a new node in order to connect, if it is not part of the cluster.</para>
192+
193+</section>
194+
195+<section><title>Backups and Disaster Recovery</title>
196+
197+<para>The usual rules for doing FoundationDB backups apply on NixOS as written
198+in the FoundationDB manual. However, one important difference is the security
199+profile for NixOS: by default, the <command>foundationdb</command> systemd unit
200+uses <emphasis>Linux namespaces</emphasis> to restrict write access to the
201+system, except for the log directory, data directory, and the
202+<command>/etc/foundationdb/</command> directory. This is enforced by default
203+and cannot be disabled.</para>
204+
205+<para>However, a side effect of this is that the <command>fdbbackup</command>
206+command doesn't work properly for local filesystem backups: FoundationDB uses a
207+server process alongside the database processes to perform backups and copy the
208+backups to the filesystem. As a result, this process is put under the
209+restricted namespaces above: the backup process can only write to a limited
210+number of paths.</para>
211+
212+<para>In order to allow flexible backup locations on local disks, the
213+FoundationDB NixOS module supports a
214+<option>services.foundationdb.extraReadWritePaths</option> option. This option
215+takes a list of paths, and adds them to the systemd unit, allowing the
216+processes inside the service to write (and read) the specified
217+directories.</para>
218+
219+<para>For example, to create backups in <command>/opt/fdb-backups</command>,
220+first set up the paths in the module options:</para>
221+
222+<programlisting>
223+services.foundationdb.extraReadWritePaths = [ "/opt/fdb-backups" ];
224+</programlisting>
225+
226+<para>Restart the FoundationDB service, and it will now be able to write to
227+this directory (even if it does not yet exist.) Note: this path
228+<emphasis>must</emphasis> exist before restarting the unit. Otherwise, systemd
229+will not include it in the private FoundationDB namespace (and it will not add
230+it dynamically at runtime).</para>
231+
232+<para>You can now perform a backup:</para>
233+
234+<programlisting>
235+$ sudo -u foundationdb fdbbackup start -t default -d file:///opt/fdb-backups
236+$ sudo -u foundationdb fdbbackup status -t default
237+</programlisting>
238+
239+</section>
240+
241+<section><title>Known limitations</title>
242+
243+<para>The FoundationDB setup for NixOS should currently be considered beta.
244+FoundationDB is not new software, but the NixOS compilation and integration has
245+only undergone fairly basic testing of all the available functionality.</para>
246+
247+<itemizedlist>
248+ <listitem><para>TLS plugin support is compiled in, but it's currently not
249+ possible to specify the set of TLS certificate options in
250+ <command>services.foundationdb</command></para></listitem>
251+ <listitem><para>There is no way to specify individual parameters for
252+ individual <command>fdbserver</command> processes. Currently, all server
253+ processes inherit all the global <command>fdbmonitor</command> settings.
254+ </para></listitem>
255+ <listitem><para>Python bindings are not currently installed.</para></listitem>
256+ <listitem><para>Ruby bindings are not currently installed.</para></listitem>
257+ <listitem><para>Java bindings are not currently installed.</para></listitem>
258+ <listitem><para>Go bindings are not currently installed.</para></listitem>
259+</itemizedlist>
260+
261+</section>
262+
263+<section><title>Options</title>
264+
265+<para>NixOS's FoundationDB module allows you to configure all of the most
266+relevant configuration options for <command>fdbmonitor</command>, matching it
267+quite closely. For a complete list of all options, check <command>man
268+configuration.nix</command>.</para>
269+
270+</section>
271+
272+<section><title>Full documentation</title>
273+
274+<para>FoundationDB is a complex piece of software, and requires careful
275+administration to properly use. Full documentation for administration can be
276+found here: <link xlink:href="https://apple.github.io/foundationdb/"/>.</para>
277+
278+</section>
279+
280+</chapter>
nixos/modules/services/databases/pgmanage.nix+3−3
@@ -22,7 +22,7 @@ let
2222
2323 web_root = ${cfg.package}/etc/pgmanage/web_root
2424
25− data_root = ${cfg.dataRoot}
25+ sql_root = ${cfg.sqlRoot}
2626
2727 ${optionalString (!isNull cfg.tls) ''
2828 tls_cert = ${cfg.tls.cert}
@@ -130,7 +130,7 @@ let
130130 '';
131131 };
132132
133− dataRoot = mkOption {
133+ sqlRoot = mkOption {
134134 type = types.str;
135135 default = "/var/lib/pgmanage";
136136 description = ''
@@ -210,7 +210,7 @@ in {
210210 users."${pgmanage}" = {
211211 name = pgmanage;
212212 group = pgmanage;
213− home = cfg.dataRoot;
213+ home = cfg.sqlRoot;
214214 createHome = true;
215215 };
216216 groups."${pgmanage}" = {
nixos/modules/services/databases/postgresql.nix+1−4
@@ -36,9 +36,6 @@ let
3636 ${cfg.extraConfig}
3737 '';
3838
39− pre84 = versionOlder (builtins.parseDrvName postgresql.name).version "8.4";
40−
41−
4239in
4340
4441{
@@ -182,7 +179,7 @@ in
182179 services.postgresql.authentication = mkAfter
183180 ''
184181 # Generated file; do not edit!
185− local all all ident ${optionalString pre84 "sameuser"}
182+ local all all ident
186183 host all all 127.0.0.1/32 md5
187184 host all all ::1/128 md5
188185 '';
nixos/modules/services/editors/emacs.nix+21−2
@@ -7,7 +7,7 @@ let
77 cfg = config.services.emacs;
88
99 editorScript = pkgs.writeScriptBin "emacseditor" ''
10− #!${pkgs.stdenv.shell}
10+ #!${pkgs.runtimeShell}
1111 if [ -z "$1" ]; then
1212 exec ${cfg.package}/bin/emacsclient --create-frame --alternate-editor ${cfg.package}/bin/emacs
1313 else
@@ -15,6 +15,25 @@ let
1515 fi
1616 '';
1717
18+desktopApplicationFile = pkgs.writeTextFile {
19+ name = "emacsclient.desktop";
20+ destination = "/share/applications/emacsclient.desktop";
21+ text = ''
22+[Desktop Entry]
23+Name=Emacsclient
24+GenericName=Text Editor
25+Comment=Edit text
26+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
27+Exec=emacseditor %F
28+Icon=emacs
29+Type=Application
30+Terminal=false
31+Categories=Development;TextEditor;
32+StartupWMClass=Emacs
33+Keywords=Text;Editor;
34+'';
35+};
36+
1837in {
1938
2039 options.services.emacs = {
@@ -74,7 +93,7 @@ in {
7493 };
7594 } // optionalAttrs cfg.enable { wantedBy = [ "default.target" ]; };
7695
77− environment.systemPackages = [ cfg.package editorScript ];
96+ environment.systemPackages = [ cfg.package editorScript desktopApplicationFile ];
7897
7998 environment.variables = {
8099 # This is required so that GTK applications launched from Emacs
nixos/modules/services/hardware/bluetooth.nix+11−1
@@ -3,8 +3,8 @@
33with lib;
44
55let
6− bluez-bluetooth = pkgs.bluez;
76 cfg = config.hardware.bluetooth;
7+ bluez-bluetooth = cfg.package;
88
99in {
1010
@@ -21,6 +21,16 @@ in {
2121 description = "Whether to power up the default Bluetooth controller on boot.";
2222 };
2323
24+ package = mkOption {
25+ type = types.package;
26+ default = pkgs.bluez;
27+ defaultText = "pkgs.bluez";
28+ example = "pkgs.bluez.override { enableMidi = true; }";
29+ description = ''
30+ Which BlueZ package to use.
31+ '';
32+ };
33+
2434 extraConfig = mkOption {
2535 type = types.lines;
2636 default = "";
nixos/modules/services/hardware/trezord.nix+10−3
@@ -26,8 +26,15 @@ in {
2626 name = "trezord-udev-rules";
2727 destination = "/etc/udev/rules.d/51-trezor.rules";
2828 text = ''
29− SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0666", GROUP="dialout", SYMLINK+="trezor%n"
30− KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0666", GROUP="dialout"
29+ # Trezor 1
30+ SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0666", GROUP="dialout", SYMLINK+="trezor%n"
31+ KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0666", GROUP="dialout"
32+
33+ # Trezor 2 (Model-T)
34+ SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c0", MODE="0661", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
35+ SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c1", MODE="0660", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
36+ KERNEL=="hidraw*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="53c1", MODE="0660", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl"
37+ ];
3138 '';
3239 });
3340
@@ -38,7 +45,7 @@ in {
3845 path = [];
3946 serviceConfig = {
4047 Type = "simple";
41− ExecStart = "${pkgs.trezord}/bin/trezord -f";
48+ ExecStart = "${pkgs.trezord}/bin/trezord-go";
4249 User = "trezord";
4350 };
4451 };
nixos/modules/services/hardware/udev.nix+1−1
@@ -146,7 +146,7 @@ let
146146
147147 echo "Generating hwdb database..."
148148 # hwdb --update doesn't return error code even on errors!
149− res="$(${udev}/bin/udevadm hwdb --update --root=$(pwd) 2>&1)"
149+ res="$(${pkgs.buildPackages.udev}/bin/udevadm hwdb --update --root=$(pwd) 2>&1)"
150150 echo "$res"
151151 [ -z "$(echo "$res" | egrep '^Error')" ]
152152 mv etc/udev/hwdb.bin $out
nixos/modules/services/logging/graylog.nix+1−1
@@ -141,7 +141,7 @@ in
141141 JAVA_HOME = jre;
142142 GRAYLOG_CONF = "${confFile}";
143143 };
144− path = [ pkgs.openjdk8 pkgs.which pkgs.procps ];
144+ path = [ pkgs.jre_headless pkgs.which pkgs.procps ];
145145 preStart = ''
146146 mkdir -p /var/lib/graylog -m 755
147147
nixos/modules/services/mail/dovecot.nix+1
@@ -30,6 +30,7 @@ let
3030
3131 ''
3232 default_internal_user = ${cfg.user}
33+ default_internal_group = ${cfg.group}
3334 ${optionalString (cfg.mailUser != null) "mail_uid = ${cfg.mailUser}"}
3435 ${optionalString (cfg.mailGroup != null) "mail_gid = ${cfg.mailGroup}"}
3536
nixos/modules/services/misc/defaultUnicornConfig.rb+52−188
@@ -1,205 +1,69 @@
1−# The following was taken from github.com/crohr/syslogger and is BSD
2−# licensed.
3−require 'syslog'
4−require 'logger'
5−require 'thread'
1+worker_processes 3
62
7−class Syslogger
8−
9− VERSION = "1.6.0"
10−
11− attr_reader :level, :ident, :options, :facility, :max_octets
12− attr_accessor :formatter
13−
14− MAPPING = {
15− Logger::DEBUG => Syslog::LOG_DEBUG,
16− Logger::INFO => Syslog::LOG_INFO,
17− Logger::WARN => Syslog::LOG_WARNING,
18− Logger::ERROR => Syslog::LOG_ERR,
19− Logger::FATAL => Syslog::LOG_CRIT,
20− Logger::UNKNOWN => Syslog::LOG_ALERT
21− }
22−
23− #
24− # Initializes default options for the logger
25− # <tt>ident</tt>:: the name of your program [default=$0].
26− # <tt>options</tt>:: syslog options [default=<tt>Syslog::LOG_PID | Syslog::LOG_CONS</tt>].
27− # Correct values are:
28− # LOG_CONS : writes the message on the console if an error occurs when sending the message;
29− # LOG_NDELAY : no delay before sending the message;
30− # LOG_PERROR : messages will also be written on STDERR;
31− # LOG_PID : adds the process number to the message (just after the program name)
32− # <tt>facility</tt>:: the syslog facility [default=nil] Correct values include:
33− # Syslog::LOG_DAEMON
34− # Syslog::LOG_USER
35− # Syslog::LOG_SYSLOG
36− # Syslog::LOG_LOCAL2
37− # Syslog::LOG_NEWS
38− # etc.
39− #
40− # Usage:
41− # logger = Syslogger.new("my_app", Syslog::LOG_PID | Syslog::LOG_CONS, Syslog::LOG_LOCAL0)
42− # logger.level = Logger::INFO # use Logger levels
43− # logger.warn "warning message"
44− # logger.debug "debug message"
45− #
46− def initialize(ident = $0, options = Syslog::LOG_PID | Syslog::LOG_CONS, facility = nil)
47− @ident = ident
48− @options = options || (Syslog::LOG_PID | Syslog::LOG_CONS)
49− @facility = facility
50− @level = Logger::INFO
51− @mutex = Mutex.new
52− @formatter = Logger::Formatter.new
53− end
54−
55− %w{debug info warn error fatal unknown}.each do |logger_method|
56− # Accepting *args as message could be nil.
57− # Default params not supported in ruby 1.8.7
58− define_method logger_method.to_sym do |*args, &block|
59− return true if @level > Logger.const_get(logger_method.upcase)
60− message = args.first || block && block.call
61− add(Logger.const_get(logger_method.upcase), message)
62− end
63−
64− unless logger_method == 'unknown'
65− define_method "#{logger_method}?".to_sym do
66− @level <= Logger.const_get(logger_method.upcase)
67− end
68− end
69− end
70−
71− # Log a message at the Logger::INFO level. Useful for use with Rack::CommonLogger
72− def write(msg)
73− add(Logger::INFO, msg)
74− end
75−
76− # Logs a message at the Logger::INFO level.
77− def <<(msg)
78− add(Logger::INFO, msg)
79− end
80−
81− # Low level method to add a message.
82− # +severity+:: the level of the message. One of Logger::DEBUG, Logger::INFO, Logger::WARN, Logger::ERROR, Logger::FATAL, Logger::UNKNOWN
83− # +message+:: the message string.
84− # If nil, the method will call the block and use the result as the message string.
85− # If both are nil or no block is given, it will use the progname as per the behaviour of both the standard Ruby logger, and the Rails BufferedLogger.
86− # +progname+:: optionally, overwrite the program name that appears in the log message.
87− def add(severity, message = nil, progname = nil, &block)
88− if message.nil? && block.nil? && !progname.nil?
89− message, progname = progname, nil
90− end
91− progname ||= @ident
92−
93− @mutex.synchronize do
94− Syslog.open(progname, @options, @facility) do |s|
95− s.mask = Syslog::LOG_UPTO(MAPPING[@level])
96− communication = clean(message || block && block.call)
97− if self.max_octets
98− buffer = "#{tags_text}"
99− communication.bytes do |byte|
100− buffer.concat(byte)
101− # if the last byte we added is potentially part of an escape, we'll go ahead and add another byte
102− if buffer.bytesize >= self.max_octets && !['%'.ord,'\\'.ord].include?(byte)
103− s.log(MAPPING[severity],buffer)
104− buffer = ""
105− end
106− end
107− s.log(MAPPING[severity],buffer) unless buffer.empty?
108− else
109− s.log(MAPPING[severity],"#{tags_text}#{communication}")
110− end
111− end
112− end
113− end
114−
115− # Set the max octets of the messages written to the log
116− def max_octets=(max_octets)
117− @max_octets = max_octets
118− end
119−
120− # Sets the minimum level for messages to be written in the log.
121− # +level+:: one of <tt>Logger::DEBUG</tt>, <tt>Logger::INFO</tt>, <tt>Logger::WARN</tt>, <tt>Logger::ERROR</tt>, <tt>Logger::FATAL</tt>, <tt>Logger::UNKNOWN</tt>
122− def level=(level)
123− level = Logger.const_get(level.to_s.upcase) if level.is_a?(Symbol)
124−
125− unless level.is_a?(Fixnum)
126− raise ArgumentError.new("Invalid logger level `#{level.inspect}`")
127− end
128−
129− @level = level
130− end
131−
132− # Sets the ident string passed along to Syslog
133− def ident=(ident)
134− @ident = ident
135− end
136−
137− # Tagging code borrowed from ActiveSupport gem
138− def tagged(*tags)
139− new_tags = push_tags(*tags)
140− yield self
141− ensure
142− pop_tags(new_tags.size)
143− end
144−
145− def push_tags(*tags)
146− tags.flatten.reject{ |i| i.respond_to?(:empty?) ? i.empty? : !i }.tap do |new_tags|
147− current_tags.concat new_tags
148− end
149− end
150−
151− def pop_tags(size = 1)
152− current_tags.pop size
153− end
154−
155− def clear_tags!
156− current_tags.clear
157− end
158−
159− protected
160−
161− # Borrowed from SyslogLogger.
162− def clean(message)
163− message = message.to_s.dup
164− message.strip! # remove whitespace
165− message.gsub!(/\n/, '\\n') # escape newlines
166− message.gsub!(/%/, '%%') # syslog(3) freaks on % (printf)
167− message.gsub!(/\e\[[^m]*m/, '') # remove useless ansi color codes
168− message
169− end
170−
171− private
172−
173− def tags_text
174− tags = current_tags
175− if tags.any?
176− tags.collect { |tag| "[#{tag}] " }.join
177− end
178− end
179−
180− def current_tags
181− Thread.current[:syslogger_tagged_logging_tags] ||= []
182− end
183−end
3+listen ENV["UNICORN_PATH"] + "/tmp/sockets/gitlab.socket", :backlog => 1024
4+listen "/run/gitlab/gitlab.socket", :backlog => 1024
1845
185−worker_processes 2
1866working_directory ENV["GITLAB_PATH"]
187−pid ENV["UNICORN_PATH"] + "/tmp/pids/unicorn.pid"
1887
189−listen ENV["UNICORN_PATH"] + "/tmp/sockets/gitlab.socket", :backlog => 1024
8+pid ENV["UNICORN_PATH"] + "/tmp/pids/unicorn.pid"
1909
19110timeout 60
19211
193−logger Syslogger.new
194−
12+# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings
13+# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
19514preload_app true
196−
19715GC.respond_to?(:copy_on_write_friendly=) and
19816 GC.copy_on_write_friendly = true
19917
20018check_client_connection false
20119
20+before_fork do |server, worker|
21+ # the following is highly recommended for Rails + "preload_app true"
22+ # as there's no need for the master process to hold a connection
23+ defined?(ActiveRecord::Base) and
24+ ActiveRecord::Base.connection.disconnect!
25+
26+ # The following is only recommended for memory/DB-constrained
27+ # installations. It is not needed if your system can house
28+ # twice as many worker_processes as you have configured.
29+ #
30+ # This allows a new master process to incrementally
31+ # phase out the old master process with SIGTTOU to avoid a
32+ # thundering herd (especially in the "preload_app false" case)
33+ # when doing a transparent upgrade. The last worker spawned
34+ # will then kill off the old master process with a SIGQUIT.
35+ old_pid = "#{server.config[:pid]}.oldbin"
36+ if old_pid != server.pid
37+ begin
38+ sig = (worker.nr + 1) >= server.worker_processes ? :QUIT : :TTOU
39+ Process.kill(sig, File.read(old_pid).to_i)
40+ rescue Errno::ENOENT, Errno::ESRCH
41+ end
42+ end
43+
44+ # Throttle the master from forking too quickly by sleeping. Due
45+ # to the implementation of standard Unix signal handlers, this
46+ # helps (but does not completely) prevent identical, repeated signals
47+ # from being lost when the receiving process is busy.
48+ # sleep 1
49+end
50+
20251after_fork do |server, worker|
52+ # per-process listener ports for debugging/admin/migrations
53+ # addr = "127.0.0.1:#{9293 + worker.nr}"
54+ # server.listen(addr, :tries => -1, :delay => 5, :tcp_nopush => true)
55+
56+ # the following is *required* for Rails + "preload_app true",
20357 defined?(ActiveRecord::Base) and
20458 ActiveRecord::Base.establish_connection
59+
60+ # reset prometheus client, this will cause any opened metrics files to be closed
61+ defined?(::Prometheus::Client.reinitialize_on_pid_change) &&
62+ Prometheus::Client.reinitialize_on_pid_change
63+
64+ # if preload_app is true, then you may also want to check and
65+ # restart any other shared sockets/descriptors such as Memcached,
66+ # and Redis. TokyoCabinet file handles are safe to reuse
67+ # between any number of forked children (assuming your kernel
68+ # correctly implements pread()/pwrite() system calls)
20569end
nixos/modules/services/misc/disnix.nix+1−1
@@ -57,7 +57,7 @@ in
5757 ###### implementation
5858
5959 config = mkIf cfg.enable {
60− dysnomia.enable = true;
60+ services.dysnomia.enable = true;
6161
6262 environment.systemPackages = [ pkgs.disnix ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService;
6363
nixos/modules/services/misc/dysnomia.nix+30−30
@@ -3,8 +3,8 @@
33with lib;
44
55let
6− cfg = config.dysnomia;
7−
6+ cfg = config.services.dysnomia;
7+
88 printProperties = properties:
99 concatMapStrings (propertyName:
1010 let
@@ -13,7 +13,7 @@ let
1313 if isList property then "${propertyName}=(${lib.concatMapStrings (elem: "\"${toString elem}\" ") (properties."${propertyName}")})\n"
1414 else "${propertyName}=\"${toString property}\"\n"
1515 ) (builtins.attrNames properties);
16−
16+
1717 properties = pkgs.stdenv.mkDerivation {
1818 name = "dysnomia-properties";
1919 buildCommand = ''
@@ -22,13 +22,13 @@ let
2222 EOF
2323 '';
2424 };
25−
25+
2626 containersDir = pkgs.stdenv.mkDerivation {
2727 name = "dysnomia-containers";
2828 buildCommand = ''
2929 mkdir -p $out
3030 cd $out
31−
31+
3232 ${concatMapStrings (containerName:
3333 let
3434 containerProperties = cfg.containers."${containerName}";
@@ -42,11 +42,11 @@ let
4242 ) (builtins.attrNames cfg.containers)}
4343 '';
4444 };
45−
45+
4646 linkMutableComponents = {containerName}:
4747 ''
4848 mkdir ${containerName}
49−
49+
5050 ${concatMapStrings (componentName:
5151 let
5252 component = cfg.components."${containerName}"."${componentName}";
@@ -54,13 +54,13 @@ let
5454 "ln -s ${component} ${containerName}/${componentName}\n"
5555 ) (builtins.attrNames (cfg.components."${containerName}" or {}))}
5656 '';
57−
57+
5858 componentsDir = pkgs.stdenv.mkDerivation {
5959 name = "dysnomia-components";
6060 buildCommand = ''
6161 mkdir -p $out
6262 cd $out
63−
63+
6464 ${concatMapStrings (containerName:
6565 let
6666 components = cfg.components."${containerName}";
@@ -72,59 +72,59 @@ let
7272in
7373{
7474 options = {
75− dysnomia = {
76−
75+ services.dysnomia = {
76+
7777 enable = mkOption {
7878 type = types.bool;
7979 default = false;
8080 description = "Whether to enable Dysnomia";
8181 };
82−
82+
8383 enableAuthentication = mkOption {
8484 type = types.bool;
8585 default = false;
8686 description = "Whether to publish privacy-sensitive authentication credentials";
8787 };
88−
88+
8989 package = mkOption {
9090 type = types.path;
9191 description = "The Dysnomia package";
9292 };
93−
93+
9494 properties = mkOption {
9595 description = "An attribute set in which each attribute represents a machine property. Optionally, these values can be shell substitutions.";
9696 default = {};
9797 };
98−
98+
9999 containers = mkOption {
100100 description = "An attribute set in which each key represents a container and each value an attribute set providing its configuration properties";
101101 default = {};
102102 };
103−
103+
104104 components = mkOption {
105105 description = "An atttribute set in which each key represents a container and each value an attribute set in which each key represents a component and each value a derivation constructing its initial state";
106106 default = {};
107107 };
108−
108+
109109 extraContainerProperties = mkOption {
110110 description = "An attribute set providing additional container settings in addition to the default properties";
111111 default = {};
112112 };
113−
113+
114114 extraContainerPaths = mkOption {
115115 description = "A list of paths containing additional container configurations that are added to the search folders";
116116 default = [];
117117 };
118−
118+
119119 extraModulePaths = mkOption {
120120 description = "A list of paths containing additional modules that are added to the search folders";
121121 default = [];
122122 };
123123 };
124124 };
125−
125+
126126 config = mkIf cfg.enable {
127−
127+
128128 environment.etc = {
129129 "dysnomia/containers" = {
130130 source = containersDir;
@@ -136,16 +136,16 @@ in
136136 source = properties;
137137 };
138138 };
139−
139+
140140 environment.variables = {
141141 DYSNOMIA_STATEDIR = "/var/state/dysnomia-nixos";
142142 DYSNOMIA_CONTAINERS_PATH = "${lib.concatMapStrings (containerPath: "${containerPath}:") cfg.extraContainerPaths}/etc/dysnomia/containers";
143143 DYSNOMIA_MODULES_PATH = "${lib.concatMapStrings (modulePath: "${modulePath}:") cfg.extraModulePaths}/etc/dysnomia/modules";
144144 };
145−
145+
146146 environment.systemPackages = [ cfg.package ];
147−
148− dysnomia.package = pkgs.dysnomia.override (origArgs: {
147+
148+ services.dysnomia.package = pkgs.dysnomia.override (origArgs: {
149149 enableApacheWebApplication = config.services.httpd.enable;
150150 enableAxis2WebService = config.services.tomcat.axis2.enable;
151151 enableEjabberdDump = config.services.ejabberd.enable;
@@ -155,10 +155,10 @@ in
155155 enableTomcatWebApplication = config.services.tomcat.enable;
156156 enableMongoDatabase = config.services.mongodb.enable;
157157 });
158−
159− dysnomia.properties = {
158+
159+ services.dysnomia.properties = {
160160 hostname = config.networking.hostName;
161− system = if config.nixpkgs.system == "" then builtins.currentSystem else config.nixpkgs.system;
161+ inherit (config.nixpkgs.localSystem) system;
162162
163163 supportedTypes = (import "${pkgs.stdenv.mkDerivation {
164164 name = "supportedtypes";
@@ -173,8 +173,8 @@ in
173173 '';
174174 }}");
175175 };
176−
177− dysnomia.containers = lib.recursiveUpdate ({
176+
177+ services.dysnomia.containers = lib.recursiveUpdate ({
178178 process = {};
179179 wrapper = {};
180180 }
nixos/modules/services/misc/folding-at-home.nix+1−1
@@ -57,7 +57,7 @@ in {
5757 chown ${fahUser} ${stateDir}
5858 cp -f ${pkgs.writeText "client.cfg" cfg.config} ${stateDir}/client.cfg
5959 '';
60− script = "${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${fahUser} -c 'cd ${stateDir}; ${pkgs.foldingathome}/bin/fah6'";
60+ script = "${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${fahUser} -c 'cd ${stateDir}; ${pkgs.foldingathome}/bin/fah6'";
6161 };
6262
6363 services.foldingAtHome.config = ''
nixos/modules/services/misc/geoip-updater.nix+1−1
@@ -14,7 +14,7 @@ let
1414 # ExecStart= command with '@' doesn't work because we start a shell (new
1515 # process) that creates a new argv[0].)
1616 geoip-updater = pkgs.writeScriptBin "geoip-updater" ''
17− #!${pkgs.stdenv.shell}
17+ #!${pkgs.runtimeShell}
1818 skipExisting=0
1919 debug()
2020 {
nixos/modules/services/misc/gitea.nix+54−2
@@ -4,6 +4,8 @@ with lib;
44
55let
66 cfg = config.services.gitea;
7+ pg = config.services.postgresql;
8+ usePostgresql = cfg.database.type == "postgres";
79 configFile = pkgs.writeText "app.ini" ''
810 APP_NAME = ${cfg.appName}
911 RUN_USER = ${cfg.user}
@@ -16,6 +18,9 @@ let
1618 USER = ${cfg.database.user}
1719 PASSWD = #dbpass#
1820 PATH = ${cfg.database.path}
21+ ${optionalString usePostgresql ''
22+ SSL_MODE = disable
23+ ''}
1924
2025 [repository]
2126 ROOT = ${cfg.repositoryRoot}
@@ -35,6 +40,10 @@ let
3540 SECRET_KEY = #secretkey#
3641 INSTALL_LOCK = true
3742
43+ [log]
44+ ROOT_PATH = ${cfg.log.rootPath}
45+ LEVEL = ${cfg.log.level}
46+
3847 ${cfg.extraConfig}
3948 '';
4049in
@@ -60,6 +69,19 @@ in
6069 description = "gitea data directory.";
6170 };
6271
72+ log = {
73+ rootPath = mkOption {
74+ default = "${cfg.stateDir}/log";
75+ type = types.str;
76+ description = "Root path for log files.";
77+ };
78+ level = mkOption {
79+ default = "Trace";
80+ type = types.enum [ "Trace" "Debug" "Info" "Warn" "Error" "Critical" ];
81+ description = "General log level.";
82+ };
83+ };
84+
6385 user = mkOption {
6486 type = types.str;
6587 default = "gitea";
@@ -82,7 +104,7 @@ in
82104
83105 port = mkOption {
84106 type = types.int;
85− default = 3306;
107+ default = (if !usePostgresql then 3306 else pg.port);
86108 description = "Database host port.";
87109 };
88110
@@ -123,6 +145,15 @@ in
123145 default = "${cfg.stateDir}/data/gitea.db";
124146 description = "Path to the sqlite3 database file.";
125147 };
148+
149+ createDatabase = mkOption {
150+ type = types.bool;
151+ default = true;
152+ description = ''
153+ Whether to create a local postgresql database automatically.
154+ This only applies if database type "postgres" is selected.
155+ '';
156+ };
126157 };
127158
128159 appName = mkOption {
@@ -186,10 +217,11 @@ in
186217 };
187218
188219 config = mkIf cfg.enable {
220+ services.postgresql.enable = mkIf usePostgresql (mkDefault true);
189221
190222 systemd.services.gitea = {
191223 description = "gitea";
192− after = [ "network.target" ];
224+ after = [ "network.target" "postgresql.service" ];
193225 wantedBy = [ "multi-user.target" ];
194226 path = [ pkgs.gitea.bin ];
195227
@@ -231,12 +263,31 @@ in
231263 mkdir -p ${cfg.stateDir}/conf
232264 cp -r ${pkgs.gitea.out}/locale ${cfg.stateDir}/conf/locale
233265 fi
266+ '' + optionalString (usePostgresql && cfg.database.createDatabase) ''
267+ if ! test -e "${cfg.stateDir}/db-created"; then
268+ echo "CREATE ROLE ${cfg.database.user}
269+ WITH ENCRYPTED PASSWORD '$(head -n1 ${cfg.database.passwordFile})'
270+ NOCREATEDB NOCREATEROLE LOGIN" |
271+ ${pkgs.sudo}/bin/sudo -u ${pg.superUser} ${pg.package}/bin/psql
272+ ${pkgs.sudo}/bin/sudo -u ${pg.superUser} \
273+ ${pg.package}/bin/createdb \
274+ --owner=${cfg.database.user} \
275+ --encoding=UTF8 \
276+ --lc-collate=C \
277+ --lc-ctype=C \
278+ --template=template0 \
279+ ${cfg.database.name}
280+ touch "${cfg.stateDir}/db-created"
281+ fi
282+ '' + ''
283+ chown ${cfg.user} -R ${cfg.stateDir}
234284 '';
235285
236286 serviceConfig = {
237287 Type = "simple";
238288 User = cfg.user;
239289 WorkingDirectory = cfg.stateDir;
290+ PermissionsStartOnly = true;
240291 ExecStart = "${pkgs.gitea.bin}/bin/gitea web";
241292 Restart = "always";
242293 };
@@ -253,6 +304,7 @@ in
253304 description = "Gitea Service";
254305 home = cfg.stateDir;
255306 createHome = true;
307+ useDefaultShell = true;
256308 };
257309 };
258310
nixos/modules/services/misc/gitit.nix+1−1
@@ -17,7 +17,7 @@ let
1717 gititSh = hsPkgs: extras: with pkgs; let
1818 env = gititWithPkgs hsPkgs extras;
1919 in writeScript "gitit" ''
20− #!${stdenv.shell}
20+ #!${runtimeShell}
2121 cd $HOME
2222 export NIX_GHC="${env}/bin/ghc"
2323 export NIX_GHCPKG="${env}/bin/ghc-pkg"
nixos/modules/services/misc/gitlab.nix+5−1
@@ -143,6 +143,7 @@ let
143143 GITLAB_PATH = "${cfg.packages.gitlab}/share/gitlab/";
144144 GITLAB_STATE_PATH = "${cfg.statePath}";
145145 GITLAB_UPLOADS_PATH = "${cfg.statePath}/uploads";
146+ SCHEMA = "${cfg.statePath}/db/schema.rb";
146147 GITLAB_LOG_PATH = "${cfg.statePath}/log";
147148 GITLAB_SHELL_PATH = "${cfg.packages.gitlab-shell}";
148149 GITLAB_SHELL_CONFIG_PATH = "${cfg.statePath}/shell/config.yml";
@@ -500,7 +501,7 @@ in {
500501 Type = "simple";
501502 User = cfg.user;
502503 Group = cfg.group;
503− TimeoutSec = "300";
504+ TimeoutSec = "infinity";
504505 Restart = "on-failure";
505506 WorkingDirectory = gitlabEnv.HOME;
506507 ExecStart = "${cfg.packages.gitaly}/bin/gitaly ${gitalyToml}";
@@ -566,6 +567,7 @@ in {
566567 mkdir -p ${cfg.statePath}/tmp/pids
567568 mkdir -p ${cfg.statePath}/tmp/sockets
568569 mkdir -p ${cfg.statePath}/shell
570+ mkdir -p ${cfg.statePath}/db
569571
570572 rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
571573 mkdir -p ${cfg.statePath}/config
@@ -580,6 +582,7 @@ in {
580582 ln -sf ${cfg.statePath}/log /run/gitlab/log
581583 ln -sf ${cfg.statePath}/uploads /run/gitlab/uploads
582584 ln -sf ${cfg.statePath}/tmp /run/gitlab/tmp
585+ ln -sf $GITLAB_SHELL_CONFIG_PATH /run/gitlab/shell-config.yml
583586 chown -R ${cfg.user}:${cfg.group} /run/gitlab
584587
585588 # Prepare home directory
@@ -587,6 +590,7 @@ in {
587590 touch ${gitlabEnv.HOME}/.ssh/authorized_keys
588591 chown -R ${cfg.user}:${cfg.group} ${gitlabEnv.HOME}/
589592
593+ cp -rf ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db
590594 cp -rf ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
591595 ${optionalString cfg.smtp.enable ''
592596 ln -sf ${smtpSettings} ${cfg.statePath}/config/initializers/smtp_settings.rb
nixos/modules/services/misc/gitweb.nixnew file+59
@@ -0,0 +1,59 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.gitweb;
7+
8+in
9+{
10+
11+ options.services.gitweb = {
12+
13+ projectroot = mkOption {
14+ default = "/srv/git";
15+ type = types.path;
16+ description = ''
17+ Path to git projects (bare repositories) that should be served by
18+ gitweb. Must not end with a slash.
19+ '';
20+ };
21+
22+ extraConfig = mkOption {
23+ default = "";
24+ type = types.lines;
25+ description = ''
26+ Verbatim configuration text appended to the generated gitweb.conf file.
27+ '';
28+ example = ''
29+ $feature{'highlight'}{'default'} = [1];
30+ $feature{'ctags'}{'default'} = [1];
31+ $feature{'avatar'}{'default'} = ['gravatar'];
32+ '';
33+ };
34+
35+ gitwebTheme = mkOption {
36+ default = false;
37+ type = types.bool;
38+ description = ''
39+ Use an alternative theme for gitweb, strongly inspired by GitHub.
40+ '';
41+ };
42+
43+ gitwebConfigFile = mkOption {
44+ default = pkgs.writeText "gitweb.conf" ''
45+ # path to git projects (<project>.git)
46+ $projectroot = "${cfg.projectroot}";
47+ $highlight_bin = "${pkgs.highlight}/bin/highlight";
48+ ${cfg.extraConfig}
49+ '';
50+ type = types.path;
51+ readOnly = true;
52+ internal = true;
53+ };
54+
55+ };
56+
57+ meta.maintainers = with maintainers; [ gnidorah ];
58+
59+}
nixos/modules/services/misc/gogs.nix+3
@@ -35,6 +35,9 @@ let
3535 SECRET_KEY = #secretkey#
3636 INSTALL_LOCK = true
3737
38+ [log]
39+ ROOT_PATH = ${cfg.stateDir}/log
40+
3841 ${cfg.extraConfig}
3942 '';
4043in
nixos/modules/services/misc/home-assistant.nix+46−7
@@ -5,7 +5,10 @@ with lib;
55let
66 cfg = config.services.home-assistant;
77
8− configFile = pkgs.writeText "configuration.yaml" (builtins.toJSON cfg.config);
8+ # cfg.config != null can be assumed here
9+ configFile = pkgs.writeText "configuration.json"
10+ (builtins.toJSON (if cfg.applyDefaultConfig then
11+ (lib.recursiveUpdate defaultConfig cfg.config) else cfg.config));
912
1013 availableComponents = pkgs.home-assistant.availableComponents;
1114
@@ -38,6 +41,12 @@ let
3841 then (cfg.package.override { inherit extraComponents; })
3942 else cfg.package;
4043
44+ # If you are changing this, please update the description in applyDefaultConfig
45+ defaultConfig = {
46+ homeassistant.time_zone = config.time.timeZone;
47+ http.server_port = (toString cfg.port);
48+ };
49+
4150in {
4251 meta.maintainers = with maintainers; [ dotlambda ];
4352
@@ -50,6 +59,26 @@ in {
5059 description = "The config directory, where your <filename>configuration.yaml</filename> is located.";
5160 };
5261
62+ port = mkOption {
63+ default = 8123;
64+ type = types.int;
65+ description = "The port on which to listen.";
66+ };
67+
68+ applyDefaultConfig = mkOption {
69+ default = true;
70+ type = types.bool;
71+ description = ''
72+ Setting this option enables a few configuration options for HA based on NixOS configuration (such as time zone) to avoid having to manually specify configuration we already have.
73+ </para>
74+ <para>
75+ Currently one side effect of enabling this is that the <literal>http</literal> component will be enabled.
76+ </para>
77+ <para>
78+ This only takes effect if <literal>config != null</literal> in order to ensure that a manually managed <filename>configuration.yaml</filename> is not overwritten.
79+ '';
80+ };
81+
5382 config = mkOption {
5483 default = null;
5584 type = with types; nullOr attrs;
@@ -104,23 +133,33 @@ in {
104133 config = mkIf cfg.enable {
105134 systemd.services.home-assistant = {
106135 description = "Home Assistant";
107− wantedBy = [ "multi-user.target" ];
108136 after = [ "network.target" ];
109137 preStart = lib.optionalString (cfg.config != null) ''
110− rm -f ${cfg.configDir}/configuration.yaml
111− ln -s ${configFile} ${cfg.configDir}/configuration.yaml
138+ config=${cfg.configDir}/configuration.yaml
139+ rm -f $config
140+ ${pkgs.remarshal}/bin/json2yaml -i ${configFile} -o $config
141+ chmod 444 $config
112142 '';
113143 serviceConfig = {
114− ExecStart = ''
115− ${package}/bin/hass --config "${cfg.configDir}"
116− '';
144+ ExecStart = "${package}/bin/hass --config '${cfg.configDir}'";
117145 User = "hass";
118146 Group = "hass";
119147 Restart = "on-failure";
120148 ProtectSystem = "strict";
121149 ReadWritePaths = "${cfg.configDir}";
122150 PrivateTmp = true;
151+ RemoveIPC = true;
123152 };
153+ path = [
154+ "/run/wrappers" # needed for ping
155+ ];
156+ };
157+
158+ systemd.targets.home-assistant = rec {
159+ description = "Home Assistant";
160+ wantedBy = [ "multi-user.target" ];
161+ wants = [ "home-assistant.service" ];
162+ after = wants;
124163 };
125164
126165 users.extraUsers.hass = {
nixos/modules/services/misc/ihaskell.nix+1−1
@@ -55,7 +55,7 @@ in
5555 serviceConfig = {
5656 User = config.users.extraUsers.ihaskell.name;
5757 Group = config.users.extraGroups.ihaskell.name;
58− ExecStart = "${pkgs.stdenv.shell} -c \"cd $HOME;${ihaskell}/bin/ihaskell-notebook\"";
58+ ExecStart = "${pkgs.runtimeShell} -c \"cd $HOME;${ihaskell}/bin/ihaskell-notebook\"";
5959 };
6060 };
6161 };
nixos/modules/services/misc/mesos-slave.nix+2−2
@@ -188,7 +188,7 @@ in {
188188 description = "Mesos Slave";
189189 wantedBy = [ "multi-user.target" ];
190190 after = [ "network.target" ];
191− path = [ pkgs.stdenv.shellPackage ];
191+ path = [ pkgs.runtimeShellPackage ];
192192 serviceConfig = {
193193 ExecStart = ''
194194 ${pkgs.mesos}/bin/mesos-slave \
@@ -213,7 +213,7 @@ in {
213213 PermissionsStartOnly = true;
214214 };
215215 preStart = ''
216− mkdir -m 0700 -p ${cfg.workDir}
216+ mkdir -m 0701 -p ${cfg.workDir}
217217 '';
218218 };
219219 };
nixos/modules/services/misc/nix-daemon.nix+5−6
@@ -30,7 +30,7 @@ let
3030 # /bin/sh in the sandbox as a bind-mount to bash. This means we
3131 # also need to include the entire closure of bash. Nix >= 2.0
3232 # provides a /bin/sh by default.
33− sh = pkgs.stdenv.shell;
33+ sh = pkgs.runtimeShell;
3434 binshDeps = pkgs.writeReferencesToFile sh;
3535 in
3636 pkgs.runCommand "nix.conf" { extraOptions = cfg.extraOptions; } ''
@@ -439,19 +439,18 @@ in
439439
440440 services.xserver.displayManager.hiddenUsers = map ({ name, ... }: name) nixbldUsers;
441441
442+ # FIXME: use systemd-tmpfiles to create Nix directories.
442443 system.activationScripts.nix = stringAfter [ "etc" "users" ]
443444 ''
444445 # Nix initialisation.
445− mkdir -m 0755 -p \
446+ install -m 0755 -d \
446447 /nix/var/nix/gcroots \
447448 /nix/var/nix/temproots \
448− /nix/var/nix/manifests \
449449 /nix/var/nix/userpool \
450450 /nix/var/nix/profiles \
451451 /nix/var/nix/db \
452− /nix/var/log/nix/drvs \
453− /nix/var/nix/channel-cache
454− mkdir -m 1777 -p \
452+ /nix/var/log/nix/drvs
453+ install -m 1777 -d \
455454 /nix/var/nix/gcroots/per-user \
456455 /nix/var/nix/profiles/per-user \
457456 /nix/var/nix/gcroots/tmp
nixos/modules/services/misc/nixos-manual.nix+6−6
@@ -23,7 +23,7 @@ let
2323 options =
2424 let
2525 scrubbedEval = evalModules {
26− modules = [ { nixpkgs.system = config.nixpkgs.system; } ] ++ baseModules;
26+ modules = [ { nixpkgs.localSystem = config.nixpkgs.localSystem; } ] ++ baseModules;
2727 args = (config._module.args) // { modules = [ ]; };
2828 specialArgs = { pkgs = scrubDerivations "pkgs" pkgs; };
2929 };
@@ -43,7 +43,7 @@ let
4343
4444 helpScript = pkgs.writeScriptBin "nixos-help"
4545 ''
46− #! ${pkgs.stdenv.shell} -e
46+ #! ${pkgs.runtimeShell} -e
4747 browser="$BROWSER"
4848 if [ -z "$browser" ]; then
4949 browser="$(type -P xdg-open || true)"
@@ -112,10 +112,10 @@ in
112112
113113 system.build.manual = manual;
114114
115− environment.systemPackages =
116− [ manual.manual helpScript ]
117− ++ optionals config.services.xserver.enable [desktopItem pkgs.nixos-icons]
118− ++ optional config.programs.man.enable manual.manpages;
115+ environment.systemPackages = []
116+ ++ optionals config.services.xserver.enable [ desktopItem pkgs.nixos-icons ]
117+ ++ optional config.documentation.man.enable manual.manpages
118+ ++ optionals config.documentation.doc.enable [ manual.manual helpScript ];
119119
120120 boot.extraTTYs = mkIf cfg.showManual ["tty${toString cfg.ttyNumber}"];
121121
nixos/modules/services/misc/parsoid.nix+3−1
@@ -6,6 +6,8 @@ let
66
77 cfg = config.services.parsoid;
88
9+ parsoid = pkgs.nodePackages."parsoid-git://github.com/abbradar/parsoid#stable";
10+
911 confTree = {
1012 worker_heartbeat_timeout = 300000;
1113 logging = { level = "info"; };
@@ -93,7 +95,7 @@ in
9395 after = [ "network.target" ];
9496 serviceConfig = {
9597 User = "nobody";
96− ExecStart = "${pkgs.nodePackages.parsoid}/lib/node_modules/parsoid/bin/server.js -c ${confFile} -n ${toString cfg.workers}";
98+ ExecStart = "${parsoid}/lib/node_modules/parsoid/bin/server.js -c ${confFile} -n ${toString cfg.workers}";
9799 };
98100 };
99101
nixos/modules/services/misc/safeeyes.nixnew file+50
@@ -0,0 +1,50 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.services.safeeyes;
8+
9+in
10+
11+{
12+
13+ ###### interface
14+
15+ options = {
16+
17+ services.safeeyes = {
18+
19+ enable = mkOption {
20+ default = false;
21+ description = "Whether to enable the safeeyes OSGi service";
22+ };
23+
24+ };
25+
26+ };
27+
28+ ###### implementation
29+
30+ config = mkIf cfg.enable {
31+
32+ systemd.user.services.safeeyes = {
33+ description = "Safeeyes";
34+
35+ wantedBy = [ "graphical-session.target" ];
36+ partOf = [ "graphical-session.target" ];
37+
38+ serviceConfig = {
39+ ExecStart = ''
40+ ${pkgs.safeeyes}/bin/safeeyes
41+ '';
42+ Restart = "on-failure";
43+ RestartSec = 3;
44+ StartLimitInterval = 350;
45+ StartLimitBurst = 10;
46+ };
47+ };
48+
49+ };
50+}
nixos/modules/services/misc/serviio.nixnew file+92
@@ -0,0 +1,92 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.services.serviio;
8+
9+ serviioStart = pkgs.writeScript "serviio.sh" ''
10+ #!${pkgs.bash}/bin/sh
11+
12+ SERVIIO_HOME=${pkgs.serviio}
13+
14+ # Setup the classpath
15+ SERVIIO_CLASS_PATH="$SERVIIO_HOME/lib/*:$SERVIIO_HOME/config"
16+
17+ # Setup Serviio specific properties
18+ JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dorg.restlet.engine.loggerFacadeClass=org.restlet.ext.slf4j.Slf4jLoggerFacade
19+ -Dderby.system.home=${cfg.dataDir}/library -Dserviio.home=${cfg.dataDir} -Dffmpeg.location=${pkgs.ffmpeg}/bin/ffmpeg -Ddcraw.location=${pkgs.dcraw}/bin/dcraw"
20+
21+ # Execute the JVM in the foreground
22+ exec ${pkgs.jre}/bin/java -Xmx512M -Xms20M -XX:+UseG1GC -XX:GCTimeRatio=1 -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 $JAVA_OPTS -classpath "$SERVIIO_CLASS_PATH" org.serviio.MediaServer "$@"
23+ '';
24+
25+in {
26+
27+ ###### interface
28+ options = {
29+ services.serviio = {
30+
31+ enable = mkOption {
32+ type = types.bool;
33+ default = false;
34+ description = ''
35+ Whether to enable the Serviio Media Server.
36+ '';
37+ };
38+
39+ dataDir = mkOption {
40+ type = types.path;
41+ default = "/var/lib/serviio";
42+ description = ''
43+ The directory where serviio stores its state, data, etc.
44+ '';
45+ };
46+
47+ };
48+ };
49+
50+ ###### implementation
51+
52+ config = mkIf cfg.enable {
53+ systemd.services.serviio = {
54+ description = "Serviio Media Server";
55+ after = [ "local-fs.target" "network.target" ];
56+ wantedBy = [ "multi-user.target" ];
57+ path = [ pkgs.serviio ];
58+ serviceConfig = {
59+ User = "serviio";
60+ Group = "serviio";
61+ ExecStart = "${serviioStart}";
62+ ExecStop = "${serviioStart} -stop";
63+ };
64+ };
65+
66+ users.extraUsers = [
67+ {
68+ name = "serviio";
69+ group = "serviio";
70+ home = cfg.dataDir;
71+ description = "Serviio Media Server User";
72+ createHome = true;
73+ isSystemUser = true;
74+ }
75+ ];
76+
77+ users.extraGroups = [
78+ { name = "serviio";}
79+ ];
80+
81+ networking.firewall = {
82+ allowedTCPPorts = [
83+ 8895 # serve UPnP responses
84+ 23423 # console
85+ 23424 # mediabrowser
86+ ];
87+ allowedUDPPorts = [
88+ 1900 # UPnP service discovey
89+ ];
90+ };
91+ };
92+}
nixos/modules/services/misc/ssm-agent.nix+1−1
@@ -8,7 +8,7 @@ let
88 # in nixpkgs doesn't seem to work properly on NixOS, so let's just fake the two fields SSM
99 # looks for. See https://github.com/aws/amazon-ssm-agent/issues/38 for upstream fix.
1010 fake-lsb-release = pkgs.writeScriptBin "lsb_release" ''
11− #!${pkgs.stdenv.shell}
11+ #!${pkgs.runtimeShell}
1212
1313 case "$1" in
1414 -i) echo "nixos";;
nixos/modules/services/monitoring/apcupsd.nix+1−1
@@ -38,7 +38,7 @@ let
3838 ];
3939
4040 shellCmdsForEventScript = eventname: commands: ''
41− echo "#!${pkgs.stdenv.shell}" > "$out/${eventname}"
41+ echo "#!${pkgs.runtimeShell}" > "$out/${eventname}"
4242 echo '${commands}' >> "$out/${eventname}"
4343 chmod a+x "$out/${eventname}"
4444 '';
nixos/modules/services/monitoring/grafana.nix+14−2
@@ -25,6 +25,7 @@ let
2525 DATABASE_USER = cfg.database.user;
2626 DATABASE_PASSWORD = cfg.database.password;
2727 DATABASE_PATH = cfg.database.path;
28+ DATABASE_CONN_MAX_LIFETIME = cfg.database.connMaxLifetime;
2829
2930 SECURITY_ADMIN_USER = cfg.security.adminUser;
3031 SECURITY_ADMIN_PASSWORD = cfg.security.adminPassword;
@@ -49,7 +50,7 @@ in {
4950 protocol = mkOption {
5051 description = "Which protocol to listen.";
5152 default = "http";
52− type = types.enum ["http" "https"];
53+ type = types.enum ["http" "https" "socket"];
5354 };
5455
5556 addr = mkOption {
@@ -143,6 +144,15 @@ in {
143144 default = "${cfg.dataDir}/data/grafana.db";
144145 type = types.path;
145146 };
147+
148+ connMaxLifetime = mkOption {
149+ description = ''
150+ Sets the maximum amount of time (in seconds) a connection may be reused.
151+ For MySQL this setting should be shorter than the `wait_timeout' variable.
152+ '';
153+ default = 14400;
154+ type = types.int;
155+ };
146156 };
147157
148158 security = {
@@ -241,7 +251,9 @@ in {
241251 description = "Grafana Service Daemon";
242252 wantedBy = ["multi-user.target"];
243253 after = ["networking.target"];
244− environment = mapAttrs' (n: v: nameValuePair "GF_${n}" (toString v)) envOptions;
254+ environment = {
255+ QT_QPA_PLATFORM = "offscreen";
256+ } // mapAttrs' (n: v: nameValuePair "GF_${n}" (toString v)) envOptions;
245257 serviceConfig = {
246258 ExecStart = "${cfg.package.bin}/bin/grafana-server -homepath ${cfg.dataDir}";
247259 WorkingDirectory = cfg.dataDir;
nixos/modules/services/monitoring/monit.nix+6−10
@@ -26,16 +26,10 @@ in
2626
2727 environment.systemPackages = [ pkgs.monit ];
2828
29− environment.etc = [
30− {
31− source = pkgs.writeTextFile {
32− name = "monitrc";
33− text = config.services.monit.config;
34− };
35− target = "monitrc";
36− mode = "0400";
37− }
38− ];
29+ environment.etc."monitrc" = {
30+ text = config.services.monit.config;
31+ mode = "0400";
32+ };
3933
4034 systemd.services.monit = {
4135 description = "Pro-active monitoring utility for unix systems";
@@ -48,6 +42,8 @@ in
4842 KillMode = "process";
4943 Restart = "always";
5044 };
45+ restartTriggers = [ config.environment.etc."monitrc".source ];
5146 };
47+
5248 };
5349}
nixos/modules/services/monitoring/prometheus/blackbox-exporter.nixdeleted−68
@@ -1,68 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.blackboxExporter;
7−in {
8− options = {
9− services.prometheus.blackboxExporter = {
10− enable = mkEnableOption "prometheus blackbox exporter";
11−
12− configFile = mkOption {
13− type = types.path;
14− description = ''
15− Path to configuration file.
16− '';
17− };
18−
19− port = mkOption {
20− type = types.int;
21− default = 9115;
22− description = ''
23− Port to listen on.
24− '';
25− };
26−
27− extraFlags = mkOption {
28− type = types.listOf types.str;
29− default = [];
30− description = ''
31− Extra commandline options when launching the blackbox exporter.
32− '';
33− };
34−
35− openFirewall = mkOption {
36− type = types.bool;
37− default = false;
38− description = ''
39− Open port in firewall for incoming connections.
40− '';
41− };
42− };
43− };
44−
45− config = mkIf cfg.enable {
46− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
47−
48− systemd.services.prometheus-blackbox-exporter = {
49− description = "Prometheus exporter for blackbox probes";
50− unitConfig.Documentation = "https://github.com/prometheus/blackbox_exporter";
51− wantedBy = [ "multi-user.target" ];
52− serviceConfig = {
53− User = "nobody";
54− Restart = "always";
55− PrivateTmp = true;
56− WorkingDirectory = /tmp;
57− AmbientCapabilities = [ "CAP_NET_RAW" ]; # for ping probes
58− ExecStart = ''
59− ${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
60− --web.listen-address :${toString cfg.port} \
61− --config.file ${cfg.configFile} \
62− ${concatStringsSep " \\\n " cfg.extraFlags}
63− '';
64− ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
65− };
66− };
67− };
68−}
nixos/modules/services/monitoring/prometheus/collectd-exporter.nixdeleted−128
@@ -1,128 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.collectdExporter;
7−
8− collectSettingsArgs = if (cfg.collectdBinary.enable) then ''
9− -collectd.listen-address ${optionalString (cfg.collectdBinary.listenAddress != null) cfg.collectdBinary.listenAddress}:${toString cfg.collectdBinary.port} \
10− -collectd.security-level ${cfg.collectdBinary.securityLevel} \
11− '' else "";
12−
13−in {
14− options = {
15− services.prometheus.collectdExporter = {
16− enable = mkEnableOption "prometheus collectd exporter";
17−
18− port = mkOption {
19− type = types.int;
20− default = 9103;
21− description = ''
22− Port to listen on.
23− This is used for scraping as well as the to receive collectd data via the write_http plugin.
24− '';
25− };
26−
27− listenAddress = mkOption {
28− type = types.nullOr types.str;
29− default = null;
30− example = "0.0.0.0";
31− description = ''
32− Address to listen on for web interface, telemetry and collectd JSON data.
33− '';
34− };
35−
36− collectdBinary = {
37− enable = mkEnableOption "collectd binary protocol receiver";
38−
39− authFile = mkOption {
40− default = null;
41− type = types.nullOr types.path;
42− description = "File mapping user names to pre-shared keys (passwords).";
43− };
44−
45− port = mkOption {
46− type = types.int;
47− default = 25826;
48− description = ''Network address on which to accept collectd binary network packets.'';
49− };
50−
51− listenAddress = mkOption {
52− type = types.nullOr types.str;
53− default = null;
54− example = "0.0.0.0";
55− description = ''
56− Address to listen on for binary network packets.
57− '';
58− };
59−
60− securityLevel = mkOption {
61− type = types.enum ["None" "Sign" "Encrypt"];
62− default = "None";
63− description = ''
64− Minimum required security level for accepted packets.
65− '';
66− };
67− };
68−
69− extraFlags = mkOption {
70− type = types.listOf types.str;
71− default = [];
72− description = ''
73− Extra commandline options when launching the collectd exporter.
74− '';
75− };
76−
77− logFormat = mkOption {
78− type = types.str;
79− default = "logger:stderr";
80− example = "logger:syslog?appname=bob&local=7 or logger:stdout?json=true";
81− description = ''
82− Set the log target and format.
83− '';
84− };
85−
86− logLevel = mkOption {
87− type = types.enum ["debug" "info" "warn" "error" "fatal"];
88− default = "info";
89− description = ''
90− Only log messages with the given severity or above.
91− '';
92− };
93−
94− openFirewall = mkOption {
95− type = types.bool;
96− default = false;
97− description = ''
98− Open port in firewall for incoming connections.
99− '';
100− };
101− };
102− };
103−
104− config = mkIf cfg.enable {
105− networking.firewall.allowedTCPPorts = (optional cfg.openFirewall cfg.port) ++
106− (optional (cfg.openFirewall && cfg.collectdBinary.enable) cfg.collectdBinary.port);
107−
108− systemd.services.prometheus-collectd-exporter = {
109− description = "Prometheus exporter for Collectd metrics";
110− unitConfig.Documentation = "https://github.com/prometheus/collectd_exporter";
111− wantedBy = [ "multi-user.target" ];
112− serviceConfig = {
113− DynamicUser = true;
114− Restart = "always";
115− PrivateTmp = true;
116− WorkingDirectory = /tmp;
117− ExecStart = ''
118− ${pkgs.prometheus-collectd-exporter}/bin/collectd_exporter \
119− -log.format ${cfg.logFormat} \
120− -log.level ${cfg.logLevel} \
121− -web.listen-address ${optionalString (cfg.listenAddress != null) cfg.listenAddress}:${toString cfg.port} \
122− ${collectSettingsArgs} \
123− ${concatStringsSep " " cfg.extraFlags}
124− '';
125− };
126− };
127− };
128−}
nixos/modules/services/monitoring/prometheus/exporters.nixnew file+173
@@ -0,0 +1,173 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters;
7+
8+ # each attribute in `exporterOpts` is expected to have specified:
9+ # - port (types.int): port on which the exporter listens
10+ # - serviceOpts (types.attrs): config that is merged with the
11+ # default definition of the exporter's
12+ # systemd service
13+ # - extraOpts (types.attrs): extra configuration options to
14+ # configure the exporter with, which
15+ # are appended to the default options
16+ #
17+ # Note that `extraOpts` is optional, but a script for the exporter's
18+ # systemd service must be provided by specifying either
19+ # `serviceOpts.script` or `serviceOpts.serviceConfig.ExecStart`
20+ exporterOpts = {
21+ blackbox = import ./exporters/blackbox.nix { inherit config lib pkgs; };
22+ collectd = import ./exporters/collectd.nix { inherit config lib pkgs; };
23+ dovecot = import ./exporters/dovecot.nix { inherit config lib pkgs; };
24+ fritzbox = import ./exporters/fritzbox.nix { inherit config lib pkgs; };
25+ json = import ./exporters/json.nix { inherit config lib pkgs; };
26+ minio = import ./exporters/minio.nix { inherit config lib pkgs; };
27+ nginx = import ./exporters/nginx.nix { inherit config lib pkgs; };
28+ node = import ./exporters/node.nix { inherit config lib pkgs; };
29+ postfix = import ./exporters/postfix.nix { inherit config lib pkgs; };
30+ snmp = import ./exporters/snmp.nix { inherit config lib pkgs; };
31+ unifi = import ./exporters/unifi.nix { inherit config lib pkgs; };
32+ varnish = import ./exporters/varnish.nix { inherit config lib pkgs; };
33+ };
34+
35+ mkExporterOpts = ({ name, port }: {
36+ enable = mkEnableOption "the prometheus ${name} exporter";
37+ port = mkOption {
38+ type = types.int;
39+ default = port;
40+ description = ''
41+ Port to listen on.
42+ '';
43+ };
44+ listenAddress = mkOption {
45+ type = types.str;
46+ default = "0.0.0.0";
47+ description = ''
48+ Address to listen on.
49+ '';
50+ };
51+ extraFlags = mkOption {
52+ type = types.listOf types.str;
53+ default = [];
54+ description = ''
55+ Extra commandline options to pass to the ${name} exporter.
56+ '';
57+ };
58+ openFirewall = mkOption {
59+ type = types.bool;
60+ default = false;
61+ description = ''
62+ Open port in firewall for incoming connections.
63+ '';
64+ };
65+ firewallFilter = mkOption {
66+ type = types.str;
67+ default = "-p tcp -m tcp --dport ${toString port}";
68+ example = literalExample ''
69+ "-i eth0 -p tcp -m tcp --dport ${toString port}"
70+ '';
71+ description = ''
72+ Specify a filter for iptables to use when
73+ <option>services.prometheus.exporters.${name}.openFirewall</option>
74+ is true. It is used as `ip46tables -I INPUT <option>firewallFilter</option> -j ACCEPT`.
75+ '';
76+ };
77+ user = mkOption {
78+ type = types.str;
79+ default = "nobody";
80+ description = ''
81+ User name under which the ${name} exporter shall be run.
82+ Has no effect when <option>systemd.services.prometheus-${name}-exporter.serviceConfig.DynamicUser</option> is true.
83+ '';
84+ };
85+ group = mkOption {
86+ type = types.str;
87+ default = "nobody";
88+ description = ''
89+ Group under which the ${name} exporter shall be run.
90+ Has no effect when <option>systemd.services.prometheus-${name}-exporter.serviceConfig.DynamicUser</option> is true.
91+ '';
92+ };
93+ });
94+
95+ mkSubModule = { name, port, extraOpts, serviceOpts }: {
96+ ${name} = mkOption {
97+ type = types.submodule {
98+ options = (mkExporterOpts {
99+ inherit name port;
100+ } // extraOpts);
101+ };
102+ internal = true;
103+ default = {};
104+ };
105+ };
106+
107+ mkSubModules = (foldl' (a: b: a//b) {}
108+ (mapAttrsToList (name: opts: mkSubModule {
109+ inherit name;
110+ inherit (opts) port serviceOpts;
111+ extraOpts = opts.extraOpts or {};
112+ }) exporterOpts)
113+ );
114+
115+ mkExporterConf = { name, conf, serviceOpts }:
116+ mkIf conf.enable {
117+ networking.firewall.extraCommands = mkIf conf.openFirewall ''
118+ ip46tables -I INPUT ${conf.firewallFilter} -j ACCEPT
119+ '';
120+ systemd.services."prometheus-${name}-exporter" = mkMerge ([{
121+ wantedBy = [ "multi-user.target" ];
122+ after = [ "network.target" ];
123+ serviceConfig = {
124+ Restart = mkDefault "always";
125+ PrivateTmp = mkDefault true;
126+ WorkingDirectory = mkDefault /tmp;
127+ } // mkIf (!(serviceOpts.serviceConfig.DynamicUser or false)) {
128+ User = conf.user;
129+ Group = conf.group;
130+ };
131+ } serviceOpts ]);
132+ };
133+in
134+{
135+ options.services.prometheus.exporters = mkOption {
136+ type = types.submodule {
137+ options = (mkSubModules);
138+ };
139+ description = "Prometheus exporter configuration";
140+ default = {};
141+ example = literalExample ''
142+ {
143+ node = {
144+ enable = true;
145+ enabledCollectors = [ "systemd" ];
146+ };
147+ varnish.enable = true;
148+ }
149+ '';
150+ };
151+
152+ config = mkMerge ([{
153+ assertions = [{
154+ assertion = (cfg.snmp.configurationPath == null) != (cfg.snmp.configuration == null);
155+ message = ''
156+ Please ensure you have either `services.prometheus.exporters.snmp.configuration'
157+ or `services.prometheus.exporters.snmp.configurationPath' set!
158+ '';
159+ }];
160+ }] ++ [(mkIf config.services.minio.enable {
161+ services.prometheus.exporters.minio.minioAddress = mkDefault "http://localhost:9000";
162+ services.prometheus.exporters.minio.minioAccessKey = mkDefault config.services.minio.accessKey;
163+ services.prometheus.exporters.minio.minioAccessSecret = mkDefault config.services.minio.secretKey;
164+ })] ++ (mapAttrsToList (name: conf:
165+ mkExporterConf {
166+ inherit name;
167+ inherit (conf) serviceOpts;
168+ conf = cfg.${name};
169+ }) exporterOpts)
170+ );
171+
172+ meta.doc = ./exporters.xml;
173+}
nixos/modules/services/monitoring/prometheus/exporters.xmlnew file+135
@@ -0,0 +1,135 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="module-services-prometheus-exporters">
6+
7+<title>Prometheus exporters</title>
8+
9+<para>Prometheus exporters provide metrics for the <link xlink:href="https://prometheus.io">prometheus monitoring system</link>.</para>
10+
11+<section><title>Configuration</title>
12+ <para>One of the most common exporters is the <link xlink:href="https://github.com/prometheus/node_exporter">node exporter</link>, it provides hardware and OS metrics from the host it's running on. The exporter could be configured as follows:
13+<programlisting>
14+ services.promtheus.exporters.node = {
15+ enable = true;
16+ enabledCollectors = [
17+ "logind"
18+ "systemd"
19+ ];
20+ disabledCollectors = [
21+ "textfile"
22+ ];
23+ openFirewall = true;
24+ firewallFilter = "-i br0 -p tcp -m tcp --dport 9100";
25+ };
26+</programlisting>
27+It should now serve all metrics from the collectors
28+that are explicitly enabled and the ones that are
29+<link xlink:href="https://github.com/prometheus/node_exporter#enabled-by-default">enabled by default</link>, via http under <literal>/metrics</literal>. In this example the firewall should just
30+allow incoming connections to the exporter's port on the bridge interface <literal>br0</literal>
31+(this would have to be configured seperately of course).
32+For more information about configuration see <literal>man configuration.nix</literal> or
33+search through the <link xlink:href="https://nixos.org/nixos/options.html#prometheus.exporters">available options</link>.
34+</para>
35+</section>
36+<section><title>Adding a new exporter</title>
37+ <para>To add a new exporter, it has to be packaged first (see <literal>nixpkgs/pkgs/servers/monitoring/prometheus/</literal> for examples), then a module can be added. The postfix exporter is used in this example:</para>
38+<itemizedlist>
39+ <listitem>
40+ <para>
41+ Some default options for all exporters are provided by
42+ <literal>nixpkgs/nixos/modules/services/monitoring/prometheus/exporters.nix</literal>:
43+ </para>
44+ </listitem>
45+ <listitem override='none'>
46+ <itemizedlist>
47+ <listitem><para><literal>enable</literal></para></listitem>
48+ <listitem><para><literal>port</literal></para></listitem>
49+ <listitem><para><literal>listenAddress</literal></para></listitem>
50+ <listitem><para><literal>extraFlags</literal></para></listitem>
51+ <listitem><para><literal>openFirewall</literal></para></listitem>
52+ <listitem><para><literal>firewallFilter</literal></para></listitem>
53+ <listitem><para><literal>user</literal></para></listitem>
54+ <listitem><para><literal>group</literal></para></listitem>
55+ </itemizedlist>
56+ </listitem>
57+ <listitem>
58+ <para>As there is already a package available, the module can now be added.
59+ This is accomplished by adding a new file to the
60+ <literal>nixos/modules/services/monitoring/prometheus/exporters/</literal> directory,
61+ which will be called postfix.nix and contains all exporter specific options
62+ and configuration:
63+ <programlisting>
64+ # nixpgs/nixos/modules/services/prometheus/exporters/postfix.nix
65+ { config, lib, pkgs }:
66+
67+ with lib;
68+
69+ let
70+ # for convenience we define cfg here
71+ cfg = config.services.prometheus.exporters.postfix;
72+ in
73+ {
74+ port = 9154; # The postfix exporter listens on this port by default
75+
76+ # `extraOpts` is an attribute set which contains additional options
77+ # (and optional overrides for default options).
78+ # Note that this attribute is optional.
79+ extraOpts = {
80+ telemetryPath = mkOption {
81+ type = types.str;
82+ default = "/metrics";
83+ description = ''
84+ Path under which to expose metrics.
85+ '';
86+ };
87+ logfilePath = mkOption {
88+ type = types.path;
89+ default = /var/log/postfix_exporter_input.log;
90+ example = /var/log/mail.log;
91+ description = ''
92+ Path where Postfix writes log entries.
93+ This file will be truncated by this exporter!
94+ '';
95+ };
96+ showqPath = mkOption {
97+ type = types.path;
98+ default = /var/spool/postfix/public/showq;
99+ example = /var/lib/postfix/queue/public/showq;
100+ description = ''
101+ Path at which Postfix places its showq socket.
102+ '';
103+ };
104+ };
105+
106+ # `serviceOpts` is an attribute set which contains configuration
107+ # for the exporter's systemd service. One of
108+ # `serviceOpts.script` and `serviceOpts.serviceConfig.ExecStart`
109+ # has to be specified here. This will be merged with the default
110+ # service confiuration.
111+ serviceOpts = {
112+ serviceConfig = {
113+ ExecStart = ''
114+ ${pkgs.prometheus-postfix-exporter}/bin/postfix_exporter \
115+ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
116+ --web.telemetry-path ${cfg.telemetryPath} \
117+ ${concatStringsSep " \\\n " cfg.extraFlags}
118+ '';
119+ };
120+ };
121+ }
122+ </programlisting>
123+ </para>
124+ </listitem>
125+ <listitem>
126+ <para>
127+ This should already be enough for the postfix exporter. Additionally one could
128+ now add assertions and conditional default values. This can be done in the
129+ 'meta-module' that combines all exporter definitions and generates the submodules:
130+ <literal>nixpkgs/nixos/modules/services/prometheus/exporters.nix</literal>
131+ </para>
132+ </listitem>
133+</itemizedlist>
134+</section>
135+</chapter>
nixos/modules/services/monitoring/prometheus/exporters/blackbox.nixnew file+31
@@ -0,0 +1,31 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.blackbox;
7+in
8+{
9+ port = 9115;
10+ extraOpts = {
11+ configFile = mkOption {
12+ type = types.path;
13+ description = ''
14+ Path to configuration file.
15+ '';
16+ };
17+ };
18+ serviceOpts = {
19+ serviceConfig = {
20+ AmbientCapabilities = [ "CAP_NET_RAW" ]; # for ping probes
21+ DynamicUser = true;
22+ ExecStart = ''
23+ ${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
24+ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
25+ --config.file ${cfg.configFile} \
26+ ${concatStringsSep " \\\n " cfg.extraFlags}
27+ '';
28+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
29+ };
30+ };
31+}
nixos/modules/services/monitoring/prometheus/exporters/collectd.nixnew file+78
@@ -0,0 +1,78 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.collectd;
7+in
8+{
9+ port = 9103;
10+ extraOpts = {
11+ collectdBinary = {
12+ enable = mkEnableOption "collectd binary protocol receiver";
13+
14+ authFile = mkOption {
15+ default = null;
16+ type = types.nullOr types.path;
17+ description = "File mapping user names to pre-shared keys (passwords).";
18+ };
19+
20+ port = mkOption {
21+ type = types.int;
22+ default = 25826;
23+ description = ''Network address on which to accept collectd binary network packets.'';
24+ };
25+
26+ listenAddress = mkOption {
27+ type = types.str;
28+ default = "0.0.0.0";
29+ description = ''
30+ Address to listen on for binary network packets.
31+ '';
32+ };
33+
34+ securityLevel = mkOption {
35+ type = types.enum ["None" "Sign" "Encrypt"];
36+ default = "None";
37+ description = ''
38+ Minimum required security level for accepted packets.
39+ '';
40+ };
41+ };
42+
43+ logFormat = mkOption {
44+ type = types.str;
45+ default = "logger:stderr";
46+ example = "logger:syslog?appname=bob&local=7 or logger:stdout?json=true";
47+ description = ''
48+ Set the log target and format.
49+ '';
50+ };
51+
52+ logLevel = mkOption {
53+ type = types.enum ["debug" "info" "warn" "error" "fatal"];
54+ default = "info";
55+ description = ''
56+ Only log messages with the given severity or above.
57+ '';
58+ };
59+ };
60+ serviceOpts = let
61+ collectSettingsArgs = if (cfg.collectdBinary.enable) then ''
62+ -collectd.listen-address ${cfg.collectdBinary.listenAddress}:${toString cfg.collectdBinary.port} \
63+ -collectd.security-level ${cfg.collectdBinary.securityLevel} \
64+ '' else "";
65+ in {
66+ serviceConfig = {
67+ DynamicUser = true;
68+ ExecStart = ''
69+ ${pkgs.prometheus-collectd-exporter}/bin/collectd_exporter \
70+ -log.format ${cfg.logFormat} \
71+ -log.level ${cfg.logLevel} \
72+ -web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
73+ ${collectSettingsArgs} \
74+ ${concatStringsSep " \\\n " cfg.extraFlags}
75+ '';
76+ };
77+ };
78+}
nixos/modules/services/monitoring/prometheus/exporters/dovecot.nixnew file+50
@@ -0,0 +1,50 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.dovecot;
7+in
8+{
9+ port = 9166;
10+ extraOpts = {
11+ telemetryPath = mkOption {
12+ type = types.str;
13+ default = "/metrics";
14+ description = ''
15+ Path under which to expose metrics.
16+ '';
17+ };
18+ socketPath = mkOption {
19+ type = types.path;
20+ default = "/var/run/dovecot/stats";
21+ example = "/var/run/dovecot2/stats";
22+ description = ''
23+ Path under which the stats socket is placed.
24+ The user/group under which the exporter runs,
25+ should be able to access the socket in order
26+ to scrape the metrics successfully.
27+ '';
28+ };
29+ scopes = mkOption {
30+ type = types.listOf types.str;
31+ default = [ "user" ];
32+ example = [ "user" "global" ];
33+ description = ''
34+ Stats scopes to query.
35+ '';
36+ };
37+ };
38+ serviceOpts = {
39+ serviceConfig = {
40+ ExecStart = ''
41+ ${pkgs.prometheus-dovecot-exporter}/bin/dovecot_exporter \
42+ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
43+ --web.telemetry-path ${cfg.telemetryPath} \
44+ --dovecot.socket-path ${cfg.socketPath} \
45+ --dovecot.scopes ${concatStringsSep "," cfg.scopes} \
46+ ${concatStringsSep " \\\n " cfg.extraFlags}
47+ '';
48+ };
49+ };
50+}
nixos/modules/services/monitoring/prometheus/exporters/fritzbox.nixnew file+39
@@ -0,0 +1,39 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.fritzbox;
7+in
8+{
9+ port = 9133;
10+ extraOpts = {
11+ gatewayAddress = mkOption {
12+ type = types.str;
13+ default = "fritz.box";
14+ description = ''
15+ The hostname or IP of the FRITZ!Box.
16+ '';
17+ };
18+
19+ gatewayPort = mkOption {
20+ type = types.int;
21+ default = 49000;
22+ description = ''
23+ The port of the FRITZ!Box UPnP service.
24+ '';
25+ };
26+ };
27+ serviceOpts = {
28+ serviceConfig = {
29+ DynamicUser = true;
30+ ExecStart = ''
31+ ${pkgs.prometheus-fritzbox-exporter}/bin/fritzbox_exporter \
32+ -listen-address ${cfg.listenAddress}:${toString cfg.port} \
33+ -gateway-address ${cfg.gatewayAddress} \
34+ -gateway-port ${toString cfg.gatewayPort} \
35+ ${concatStringsSep " \\\n " cfg.extraFlags}
36+ '';
37+ };
38+ };
39+}
nixos/modules/services/monitoring/prometheus/exporters/json.nixnew file+36
@@ -0,0 +1,36 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.json;
7+in
8+{
9+ port = 7979;
10+ extraOpts = {
11+ url = mkOption {
12+ type = types.str;
13+ description = ''
14+ URL to scrape JSON from.
15+ '';
16+ };
17+ configFile = mkOption {
18+ type = types.path;
19+ description = ''
20+ Path to configuration file.
21+ '';
22+ };
23+ listenAddress = {}; # not used
24+ };
25+ serviceOpts = {
26+ serviceConfig = {
27+ DynamicUser = true;
28+ ExecStart = ''
29+ ${pkgs.prometheus-json-exporter}/bin/prometheus-json-exporter \
30+ --port ${toString cfg.port} \
31+ ${cfg.url} ${cfg.configFile} \
32+ ${concatStringsSep " \\\n " cfg.extraFlags}
33+ '';
34+ };
35+ };
36+}
nixos/modules/services/monitoring/prometheus/exporters/minio.nixnew file+65
@@ -0,0 +1,65 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.minio;
7+in
8+{
9+ port = 9290;
10+ extraOpts = {
11+ minioAddress = mkOption {
12+ type = types.str;
13+ example = "https://10.0.0.1:9000";
14+ description = ''
15+ The URL of the minio server.
16+ Use HTTPS if Minio accepts secure connections only.
17+ By default this connects to the local minio server if enabled.
18+ '';
19+ };
20+
21+ minioAccessKey = mkOption {
22+ type = types.str;
23+ example = "yourMinioAccessKey";
24+ description = ''
25+ The value of the Minio access key.
26+ It is required in order to connect to the server.
27+ By default this uses the one from the local minio server if enabled
28+ and <literal>config.services.minio.accessKey</literal>.
29+ '';
30+ };
31+
32+ minioAccessSecret = mkOption {
33+ type = types.str;
34+ description = ''
35+ The value of the Minio access secret.
36+ It is required in order to connect to the server.
37+ By default this uses the one from the local minio server if enabled
38+ and <literal>config.services.minio.secretKey</literal>.
39+ '';
40+ };
41+
42+ minioBucketStats = mkOption {
43+ type = types.bool;
44+ default = false;
45+ description = ''
46+ Collect statistics about the buckets and files in buckets.
47+ It requires more computation, use it carefully in case of large buckets..
48+ '';
49+ };
50+ };
51+ serviceOpts = {
52+ serviceConfig = {
53+ DynamicUser = true;
54+ ExecStart = ''
55+ ${pkgs.prometheus-minio-exporter}/bin/minio-exporter \
56+ -web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
57+ -minio.server ${cfg.minioAddress} \
58+ -minio.access-key ${cfg.minioAccessKey} \
59+ -minio.access-secret ${cfg.minioAccessSecret} \
60+ ${optionalString cfg.minioBucketStats "-minio.bucket-stats"} \
61+ ${concatStringsSep " \\\n " cfg.extraFlags}
62+ '';
63+ };
64+ };
65+}
nixos/modules/services/monitoring/prometheus/exporters/nginx.nixnew file+31
@@ -0,0 +1,31 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.nginx;
7+in
8+{
9+ port = 9113;
10+ extraOpts = {
11+ scrapeUri = mkOption {
12+ type = types.string;
13+ default = "http://localhost/nginx_status";
14+ description = ''
15+ Address to access the nginx status page.
16+ Can be enabled with services.nginx.statusPage = true.
17+ '';
18+ };
19+ };
20+ serviceOpts = {
21+ serviceConfig = {
22+ DynamicUser = true;
23+ ExecStart = ''
24+ ${pkgs.prometheus-nginx-exporter}/bin/nginx_exporter \
25+ -nginx.scrape_uri '${cfg.scrapeUri}' \
26+ -telemetry.address ${cfg.listenAddress}:${toString cfg.port} \
27+ ${concatStringsSep " \\\n " cfg.extraFlags}
28+ '';
29+ };
30+ };
31+}
nixos/modules/services/monitoring/prometheus/exporters/node.nixnew file+39
@@ -0,0 +1,39 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.node;
7+in
8+{
9+ port = 9100;
10+ extraOpts = {
11+ enabledCollectors = mkOption {
12+ type = types.listOf types.string;
13+ default = [];
14+ example = ''[ "systemd" ]'';
15+ description = ''
16+ Collectors to enable. The collectors listed here are enabled in addition to the default ones.
17+ '';
18+ };
19+ disabledCollectors = mkOption {
20+ type = types.listOf types.str;
21+ default = [];
22+ example = ''[ "timex" ]'';
23+ description = ''
24+ Collectors to disable which are enabled by default.
25+ '';
26+ };
27+ };
28+ serviceOpts = {
29+ serviceConfig = {
30+ ExecStart = ''
31+ ${pkgs.prometheus-node-exporter}/bin/node_exporter \
32+ ${concatMapStringsSep " " (x: "--collector." + x) cfg.enabledCollectors} \
33+ ${concatMapStringsSep " " (x: "--no-collector." + x) cfg.disabledCollectors} \
34+ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
35+ ${concatStringsSep " \\\n " cfg.extraFlags}
36+ '';
37+ };
38+ };
39+}
nixos/modules/services/monitoring/prometheus/exporters/postfix.nixnew file+81
@@ -0,0 +1,81 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.postfix;
7+in
8+{
9+ port = 9154;
10+ extraOpts = {
11+ telemetryPath = mkOption {
12+ type = types.str;
13+ default = "/metrics";
14+ description = ''
15+ Path under which to expose metrics.
16+ '';
17+ };
18+ logfilePath = mkOption {
19+ type = types.path;
20+ default = "/var/log/postfix_exporter_input.log";
21+ example = "/var/log/mail.log";
22+ description = ''
23+ Path where Postfix writes log entries.
24+ This file will be truncated by this exporter!
25+ '';
26+ };
27+ showqPath = mkOption {
28+ type = types.path;
29+ default = "/var/spool/postfix/public/showq";
30+ example = "/var/lib/postfix/queue/public/showq";
31+ description = ''
32+ Path where Postfix places it's showq socket.
33+ '';
34+ };
35+ systemd = {
36+ enable = mkEnableOption ''
37+ reading metrics from the systemd-journal instead of from a logfile
38+ '';
39+ unit = mkOption {
40+ type = types.str;
41+ default = "postfix.service";
42+ description = ''
43+ Name of the postfix systemd unit.
44+ '';
45+ };
46+ slice = mkOption {
47+ type = types.nullOr types.str;
48+ default = null;
49+ description = ''
50+ Name of the postfix systemd slice.
51+ This overrides the <option>systemd.unit</option>.
52+ '';
53+ };
54+ journalPath = mkOption {
55+ type = types.nullOr types.path;
56+ default = null;
57+ description = ''
58+ Path to the systemd journal.
59+ '';
60+ };
61+ };
62+ };
63+ serviceOpts = {
64+ serviceConfig = {
65+ ExecStart = ''
66+ ${pkgs.prometheus-postfix-exporter}/bin/postfix_exporter \
67+ --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
68+ --web.telemetry-path ${cfg.telemetryPath} \
69+ --postfix.showq_path ${cfg.showqPath} \
70+ ${concatStringsSep " \\\n " (cfg.extraFlags
71+ ++ optional cfg.systemd.enable "--systemd.enable"
72+ ++ optional cfg.systemd.enable (if cfg.systemd.slice != null
73+ then "--systemd.slice ${cfg.systemd.slice}"
74+ else "--systemd.unit ${cfg.systemd.unit}")
75+ ++ optional (cfg.systemd.enable && (cfg.systemd.journalPath != null))
76+ "--systemd.jounal_path ${cfg.systemd.journalPath}"
77+ ++ optional (!cfg.systemd.enable) "--postfix.logfile_path ${cfg.logfilePath}")}
78+ '';
79+ };
80+ };
81+}
nixos/modules/services/monitoring/prometheus/exporters/snmp.nixnew file+71
@@ -0,0 +1,71 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.snmp;
7+in
8+{
9+ port = 9116;
10+ extraOpts = {
11+ configurationPath = mkOption {
12+ type = types.nullOr types.path;
13+ default = null;
14+ description = ''
15+ Path to a snmp exporter configuration file. Mutually exclusive with 'configuration' option.
16+ '';
17+ example = "./snmp.yml";
18+ };
19+
20+ configuration = mkOption {
21+ type = types.nullOr types.attrs;
22+ default = {};
23+ description = ''
24+ Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
25+ '';
26+ example = ''
27+ {
28+ "default" = {
29+ "version" = 2;
30+ "auth" = {
31+ "community" = "public";
32+ };
33+ };
34+ };
35+ '';
36+ };
37+
38+ logFormat = mkOption {
39+ type = types.str;
40+ default = "logger:stderr";
41+ description = ''
42+ Set the log target and format.
43+ '';
44+ };
45+
46+ logLevel = mkOption {
47+ type = types.enum ["debug" "info" "warn" "error" "fatal"];
48+ default = "info";
49+ description = ''
50+ Only log messages with the given severity or above.
51+ '';
52+ };
53+ };
54+ serviceOpts = let
55+ configFile = if cfg.configurationPath != null
56+ then cfg.configurationPath
57+ else "${pkgs.writeText "snmp-eporter-conf.yml" (builtins.toJSON cfg.configuration)}";
58+ in {
59+ serviceConfig = {
60+ DynamicUser = true;
61+ ExecStart = ''
62+ ${pkgs.prometheus-snmp-exporter.bin}/bin/snmp_exporter \
63+ -config.file ${configFile} \
64+ -log.format ${cfg.logFormat} \
65+ -log.level ${cfg.logLevel} \
66+ -web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
67+ ${concatStringsSep " \\\n " cfg.extraFlags}
68+ '';
69+ };
70+ };
71+}
nixos/modules/services/monitoring/prometheus/exporters/unifi.nixnew file+67
@@ -0,0 +1,67 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.unifi;
7+in
8+{
9+ port = 9130;
10+ extraOpts = {
11+ unifiAddress = mkOption {
12+ type = types.str;
13+ example = "https://10.0.0.1:8443";
14+ description = ''
15+ URL of the UniFi Controller API.
16+ '';
17+ };
18+
19+ unifiInsecure = mkOption {
20+ type = types.bool;
21+ default = false;
22+ description = ''
23+ If enabled skip the verification of the TLS certificate of the UniFi Controller API.
24+ Use with caution.
25+ '';
26+ };
27+
28+ unifiUsername = mkOption {
29+ type = types.str;
30+ example = "ReadOnlyUser";
31+ description = ''
32+ username for authentication against UniFi Controller API.
33+ '';
34+ };
35+
36+ unifiPassword = mkOption {
37+ type = types.str;
38+ description = ''
39+ Password for authentication against UniFi Controller API.
40+ '';
41+ };
42+
43+ unifiTimeout = mkOption {
44+ type = types.str;
45+ default = "5s";
46+ example = "2m";
47+ description = ''
48+ Timeout including unit for UniFi Controller API requests.
49+ '';
50+ };
51+ };
52+ serviceOpts = {
53+ serviceConfig = {
54+ DynamicUser = true;
55+ ExecStart = ''
56+ ${pkgs.prometheus-unifi-exporter}/bin/unifi_exporter \
57+ -telemetry.addr ${cfg.listenAddress}:${toString cfg.port} \
58+ -unifi.addr ${cfg.unifiAddress} \
59+ -unifi.username ${cfg.unifiUsername} \
60+ -unifi.password ${cfg.unifiPassword} \
61+ -unifi.timeout ${cfg.unifiTimeout} \
62+ ${optionalString cfg.unifiInsecure "-unifi.insecure" } \
63+ ${concatStringsSep " \\\n " cfg.extraFlags}
64+ '';
65+ };
66+ };
67+}
nixos/modules/services/monitoring/prometheus/exporters/varnish.nixnew file+21
@@ -0,0 +1,21 @@
1+{ config, lib, pkgs }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.exporters.varnish;
7+in
8+{
9+ port = 9131;
10+ serviceOpts = {
11+ path = [ pkgs.varnish ];
12+ serviceConfig = {
13+ DynamicUser = true;
14+ ExecStart = ''
15+ ${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
16+ -web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
17+ ${concatStringsSep " \\\n " cfg.extraFlags}
18+ '';
19+ };
20+ };
21+}
nixos/modules/services/monitoring/prometheus/fritzbox-exporter.nixdeleted−76
@@ -1,76 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.fritzboxExporter;
7−in {
8− options = {
9− services.prometheus.fritzboxExporter = {
10− enable = mkEnableOption "prometheus fritzbox exporter";
11−
12− port = mkOption {
13− type = types.int;
14− default = 9133;
15− description = ''
16− Port to listen on.
17− '';
18− };
19−
20− gatewayAddress = mkOption {
21− type = types.str;
22− default = "fritz.box";
23− description = ''
24− The hostname or IP of the FRITZ!Box.
25− '';
26− };
27−
28− gatewayPort = mkOption {
29− type = types.int;
30− default = 49000;
31− description = ''
32− The port of the FRITZ!Box UPnP service.
33− '';
34− };
35−
36− extraFlags = mkOption {
37− type = types.listOf types.str;
38− default = [];
39− description = ''
40− Extra commandline options when launching the fritzbox exporter.
41− '';
42− };
43−
44− openFirewall = mkOption {
45− type = types.bool;
46− default = false;
47− description = ''
48− Open port in firewall for incoming connections.
49− '';
50− };
51− };
52− };
53−
54− config = mkIf cfg.enable {
55− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
56−
57− systemd.services.prometheus-fritzbox-exporter = {
58− description = "Prometheus exporter for FRITZ!Box via UPnP";
59− unitConfig.Documentation = "https://github.com/ndecker/fritzbox_exporter";
60− wantedBy = [ "multi-user.target" ];
61− serviceConfig = {
62− User = "nobody";
63− Restart = "always";
64− PrivateTmp = true;
65− WorkingDirectory = /tmp;
66− ExecStart = ''
67− ${pkgs.prometheus-fritzbox-exporter}/bin/fritzbox_exporter \
68− -listen-address :${toString cfg.port} \
69− -gateway-address ${cfg.gatewayAddress} \
70− -gateway-port ${toString cfg.gatewayPort} \
71− ${concatStringsSep " \\\n " cfg.extraFlags}
72− '';
73− };
74− };
75− };
76−}
nixos/modules/services/monitoring/prometheus/json-exporter.nixdeleted−74
@@ -1,74 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.jsonExporter;
7−in {
8− options = {
9− services.prometheus.jsonExporter = {
10− enable = mkEnableOption "prometheus JSON exporter";
11−
12− url = mkOption {
13− type = types.str;
14− description = ''
15− URL to scrape JSON from.
16− '';
17− };
18−
19− configFile = mkOption {
20− type = types.path;
21− description = ''
22− Path to configuration file.
23− '';
24− };
25−
26− port = mkOption {
27− type = types.int;
28− default = 7979;
29− description = ''
30− Port to listen on.
31− '';
32− };
33−
34− extraFlags = mkOption {
35− type = types.listOf types.str;
36− default = [];
37− description = ''
38− Extra commandline options when launching the JSON exporter.
39− '';
40− };
41−
42− openFirewall = mkOption {
43− type = types.bool;
44− default = false;
45− description = ''
46− Open port in firewall for incoming connections.
47− '';
48− };
49− };
50− };
51−
52− config = mkIf cfg.enable {
53− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
54−
55− systemd.services.prometheus-json-exporter = {
56− description = "Prometheus exporter for JSON over HTTP";
57− unitConfig.Documentation = "https://github.com/kawamuray/prometheus-json-exporter";
58− wantedBy = [ "multi-user.target" ];
59− serviceConfig = {
60− User = "nobody";
61− Restart = "always";
62− PrivateTmp = true;
63− WorkingDirectory = /tmp;
64− ExecStart = ''
65− ${pkgs.prometheus-json-exporter}/bin/prometheus-json-exporter \
66− --port ${toString cfg.port} \
67− ${cfg.url} ${cfg.configFile} \
68− ${concatStringsSep " \\\n " cfg.extraFlags}
69− '';
70− ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
71− };
72− };
73− };
74−}
nixos/modules/services/monitoring/prometheus/minio-exporter.nixdeleted−117
@@ -1,117 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.minioExporter;
7−in {
8− options = {
9− services.prometheus.minioExporter = {
10− enable = mkEnableOption "prometheus minio exporter";
11−
12− port = mkOption {
13− type = types.int;
14− default = 9290;
15− description = ''
16− Port to listen on.
17− '';
18− };
19−
20− listenAddress = mkOption {
21− type = types.nullOr types.str;
22− default = null;
23− example = "0.0.0.0";
24− description = ''
25− Address to listen on for web interface and telemetry.
26− '';
27− };
28−
29− minioAddress = mkOption {
30− type = types.str;
31− example = "https://10.0.0.1:9000";
32− default = if config.services.minio.enable then "http://localhost:9000" else null;
33− description = ''
34− The URL of the minio server.
35− Use HTTPS if Minio accepts secure connections only.
36− By default this connects to the local minio server if enabled.
37− '';
38− };
39−
40− minioAccessKey = mkOption ({
41− type = types.str;
42− example = "BKIKJAA5BMMU2RHO6IBB";
43− description = ''
44− The value of the Minio access key.
45− It is required in order to connect to the server.
46− By default this uses the one from the local minio server if enabled
47− and <literal>config.services.minio.accessKey</literal>.
48− '';
49− } // optionalAttrs (config.services.minio.enable && config.services.minio.accessKey != "") {
50− default = config.services.minio.accessKey;
51− });
52−
53− minioAccessSecret = mkOption ({
54− type = types.str;
55− description = ''
56− The calue of the Minio access secret.
57− It is required in order to connect to the server.
58− By default this uses the one from the local minio server if enabled
59− and <literal>config.services.minio.secretKey</literal>.
60− '';
61− } // optionalAttrs (config.services.minio.enable && config.services.minio.secretKey != "") {
62− default = config.services.minio.secretKey;
63− });
64−
65− minioBucketStats = mkOption {
66− type = types.bool;
67− default = false;
68− description = ''
69− Collect statistics about the buckets and files in buckets.
70− It requires more computation, use it carefully in case of large buckets..
71− '';
72− };
73−
74− extraFlags = mkOption {
75− type = types.listOf types.str;
76− default = [];
77− description = ''
78− Extra commandline options when launching the minio exporter.
79− '';
80− };
81−
82− openFirewall = mkOption {
83− type = types.bool;
84− default = false;
85− description = ''
86− Open port in firewall for incoming connections.
87− '';
88− };
89− };
90− };
91−
92− config = mkIf cfg.enable {
93− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
94−
95− systemd.services.prometheus-minio-exporter = {
96− description = "Prometheus exporter for Minio server metrics";
97− unitConfig.Documentation = "https://github.com/joe-pll/minio-exporter";
98− wantedBy = [ "multi-user.target" ];
99− after = optional config.services.minio.enable "minio.service";
100− serviceConfig = {
101− DynamicUser = true;
102− Restart = "always";
103− PrivateTmp = true;
104− WorkingDirectory = /tmp;
105− ExecStart = ''
106− ${pkgs.prometheus-minio-exporter}/bin/minio-exporter \
107− -web.listen-address ${optionalString (cfg.listenAddress != null) cfg.listenAddress}:${toString cfg.port} \
108− -minio.server ${cfg.minioAddress} \
109− -minio.access-key ${cfg.minioAccessKey} \
110− -minio.access-secret ${cfg.minioAccessSecret} \
111− ${optionalString cfg.minioBucketStats "-minio.bucket-stats"} \
112− ${concatStringsSep " \\\n " cfg.extraFlags}
113− '';
114− };
115− };
116− };
117−}
nixos/modules/services/monitoring/prometheus/nginx-exporter.nixdeleted−78
@@ -1,78 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.nginxExporter;
7−in {
8− options = {
9− services.prometheus.nginxExporter = {
10− enable = mkEnableOption "prometheus nginx exporter";
11−
12− port = mkOption {
13− type = types.int;
14− default = 9113;
15− description = ''
16− Port to listen on.
17− '';
18− };
19−
20− listenAddress = mkOption {
21− type = types.string;
22− default = "0.0.0.0";
23− description = ''
24− Address to listen on.
25− '';
26− };
27−
28− scrapeUri = mkOption {
29− type = types.string;
30− default = "http://localhost/nginx_status";
31− description = ''
32− Address to access the nginx status page.
33− Can be enabled with services.nginx.statusPage = true.
34− '';
35− };
36−
37− extraFlags = mkOption {
38− type = types.listOf types.str;
39− default = [];
40− description = ''
41− Extra commandline options when launching the nginx exporter.
42− '';
43− };
44−
45− openFirewall = mkOption {
46− type = types.bool;
47− default = false;
48− description = ''
49− Open port in firewall for incoming connections.
50− '';
51− };
52− };
53− };
54−
55− config = mkIf cfg.enable {
56− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
57−
58− systemd.services.prometheus-nginx-exporter = {
59− after = [ "network.target" "nginx.service" ];
60− description = "Prometheus exporter for nginx metrics";
61− unitConfig.Documentation = "https://github.com/discordianfish/nginx_exporter";
62− wantedBy = [ "multi-user.target" ];
63− serviceConfig = {
64− User = "nobody";
65− Restart = "always";
66− PrivateTmp = true;
67− WorkingDirectory = /tmp;
68− ExecStart = ''
69− ${pkgs.prometheus-nginx-exporter}/bin/nginx_exporter \
70− -nginx.scrape_uri '${cfg.scrapeUri}' \
71− -telemetry.address ${cfg.listenAddress}:${toString cfg.port} \
72− ${concatStringsSep " \\\n " cfg.extraFlags}
73− '';
74− ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
75− };
76− };
77− };
78−}
nixos/modules/services/monitoring/prometheus/node-exporter.nixdeleted−87
@@ -1,87 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.nodeExporter;
7−in {
8− options = {
9− services.prometheus.nodeExporter = {
10− enable = mkEnableOption "prometheus node exporter";
11−
12− port = mkOption {
13− type = types.int;
14− default = 9100;
15− description = ''
16− Port to listen on.
17− '';
18− };
19−
20− listenAddress = mkOption {
21− type = types.string;
22− default = "0.0.0.0";
23− description = ''
24− Address to listen on.
25− '';
26− };
27−
28− enabledCollectors = mkOption {
29− type = types.listOf types.string;
30− default = [];
31− example = ''[ "systemd" ]'';
32− description = ''
33− Collectors to enable. The collectors listed here are enabled in addition to the default ones.
34− '';
35− };
36−
37− disabledCollectors = mkOption {
38− type = types.listOf types.str;
39− default = [];
40− example = ''[ "timex" ]'';
41− description = ''
42− Collectors to disable which are enabled by default.
43− '';
44− };
45−
46− extraFlags = mkOption {
47− type = types.listOf types.str;
48− default = [];
49− description = ''
50− Extra commandline options when launching the node exporter.
51− '';
52− };
53−
54− openFirewall = mkOption {
55− type = types.bool;
56− default = false;
57− description = ''
58− Open port in firewall for incoming connections.
59− '';
60− };
61− };
62− };
63−
64− config = mkIf cfg.enable {
65− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
66−
67− systemd.services.prometheus-node-exporter = {
68− description = "Prometheus exporter for machine metrics";
69− unitConfig.Documentation = "https://github.com/prometheus/node_exporter";
70− wantedBy = [ "multi-user.target" ];
71− script = ''
72− exec ${pkgs.prometheus-node-exporter}/bin/node_exporter \
73− ${concatMapStringsSep " " (x: "--collector." + x) cfg.enabledCollectors} \
74− ${concatMapStringsSep " " (x: "--no-collector." + x) cfg.disabledCollectors} \
75− --web.listen-address ${cfg.listenAddress}:${toString cfg.port} \
76− ${concatStringsSep " \\\n " cfg.extraFlags}
77− '';
78− serviceConfig = {
79− User = "nobody";
80− Restart = "always";
81− PrivateTmp = true;
82− WorkingDirectory = /tmp;
83− ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
84− };
85− };
86− };
87−}
nixos/modules/services/monitoring/prometheus/snmp-exporter.nixdeleted−127
@@ -1,127 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.snmpExporter;
7− mkConfigFile = pkgs.writeText "snmp.yml" (if cfg.configurationPath == null then builtins.toJSON cfg.configuration else builtins.readFile cfg.configurationPath);
8−in {
9− options = {
10− services.prometheus.snmpExporter = {
11− enable = mkEnableOption "Prometheus snmp exporter";
12−
13− user = mkOption {
14− type = types.str;
15− default = "nobody";
16− description = ''
17− User name under which snmp exporter shall be run.
18− '';
19− };
20−
21− group = mkOption {
22− type = types.str;
23− default = "nogroup";
24− description = ''
25− Group under which snmp exporter shall be run.
26− '';
27− };
28−
29− port = mkOption {
30− type = types.int;
31− default = 9116;
32− description = ''
33− Port to listen on.
34− '';
35− };
36−
37− listenAddress = mkOption {
38− type = types.nullOr types.str;
39− default = null;
40− description = ''
41− Address to listen on for web interface and telemetry.
42− '';
43− };
44−
45− configurationPath = mkOption {
46− type = types.nullOr types.path;
47− default = null;
48− description = ''
49− Path to a snmp exporter configuration file. Mutually exclusive with 'configuration' option.
50− '';
51− example = "./snmp.yml";
52− };
53−
54− configuration = mkOption {
55− type = types.nullOr types.attrs;
56− default = {};
57− description = ''
58− Snmp exporter configuration as nix attribute set. Mutually exclusive with 'configurationPath' option.
59− '';
60− example = ''
61− {
62− "default" = {
63− "version" = 2;
64− "auth" = {
65− "community" = "public";
66− };
67− };
68− };
69− '';
70− };
71−
72− logFormat = mkOption {
73− type = types.str;
74− default = "logger:stderr";
75− description = ''
76− Set the log target and format.
77− '';
78− };
79−
80− logLevel = mkOption {
81− type = types.enum ["debug" "info" "warn" "error" "fatal"];
82− default = "info";
83− description = ''
84− Only log messages with the given severity or above.
85− '';
86− };
87−
88− openFirewall = mkOption {
89− type = types.bool;
90− default = false;
91− description = ''
92− Open port in firewall for incoming connections.
93− '';
94− };
95− };
96− };
97−
98− config = mkIf cfg.enable {
99− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
100−
101− assertions = singleton
102− {
103− assertion = (cfg.configurationPath == null) != (cfg.configuration == null);
104− message = "Please ensure you have either 'configuration' or 'configurationPath' set!";
105− };
106−
107− systemd.services.prometheus-snmp-exporter = {
108− wantedBy = [ "multi-user.target" ];
109− after = [ "network.target" ];
110− script = ''
111− ${pkgs.prometheus-snmp-exporter.bin}/bin/snmp_exporter \
112− -config.file ${mkConfigFile} \
113− -log.format ${cfg.logFormat} \
114− -log.level ${cfg.logLevel} \
115− -web.listen-address ${optionalString (cfg.listenAddress != null) cfg.listenAddress}:${toString cfg.port}
116− '';
117−
118− serviceConfig = {
119− User = cfg.user;
120− Group = cfg.group;
121− Restart = "always";
122− PrivateTmp = true;
123− WorkingDirectory = "/tmp";
124− };
125− };
126− };
127−}
nixos/modules/services/monitoring/prometheus/unifi-exporter.nixdeleted−105
@@ -1,105 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.prometheus.unifiExporter;
7−in {
8− options = {
9− services.prometheus.unifiExporter = {
10− enable = mkEnableOption "prometheus unifi exporter";
11−
12− port = mkOption {
13− type = types.int;
14− default = 9130;
15− description = ''
16− Port to listen on.
17− '';
18− };
19−
20− unifiAddress = mkOption {
21− type = types.str;
22− example = "https://10.0.0.1:8443";
23− description = ''
24− URL of the UniFi Controller API.
25− '';
26− };
27−
28− unifiInsecure = mkOption {
29− type = types.bool;
30− default = false;
31− description = ''
32− If enabled skip the verification of the TLS certificate of the UniFi Controller API.
33− Use with caution.
34− '';
35− };
36−
37− unifiUsername = mkOption {
38− type = types.str;
39− example = "ReadOnlyUser";
40− description = ''
41− username for authentication against UniFi Controller API.
42− '';
43− };
44−
45− unifiPassword = mkOption {
46− type = types.str;
47− description = ''
48− Password for authentication against UniFi Controller API.
49− '';
50− };
51−
52− unifiTimeout = mkOption {
53− type = types.str;
54− default = "5s";
55− example = "2m";
56− description = ''
57− Timeout including unit for UniFi Controller API requests.
58− '';
59− };
60−
61− extraFlags = mkOption {
62− type = types.listOf types.str;
63− default = [];
64− description = ''
65− Extra commandline options when launching the unifi exporter.
66− '';
67− };
68−
69− openFirewall = mkOption {
70− type = types.bool;
71− default = false;
72− description = ''
73− Open port in firewall for incoming connections.
74− '';
75− };
76− };
77− };
78−
79− config = mkIf cfg.enable {
80− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
81−
82− systemd.services.prometheus-unifi-exporter = {
83− description = "Prometheus exporter for UniFi Controller metrics";
84− unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
85− wantedBy = [ "multi-user.target" ];
86− after = optional config.services.unifi.enable "unifi.service";
87− serviceConfig = {
88− User = "nobody";
89− Restart = "always";
90− PrivateTmp = true;
91− WorkingDirectory = /tmp;
92− ExecStart = ''
93− ${pkgs.prometheus-unifi-exporter}/bin/unifi_exporter \
94− -telemetry.addr :${toString cfg.port} \
95− -unifi.addr ${cfg.unifiAddress} \
96− -unifi.username ${cfg.unifiUsername} \
97− -unifi.password ${cfg.unifiPassword} \
98− -unifi.timeout ${cfg.unifiTimeout} \
99− ${optionalString cfg.unifiInsecure "-unifi.insecure" } \
100− ${concatStringsSep " \\\n " cfg.extraFlags}
101− '';
102− };
103− };
104− };
105−}
nixos/modules/services/monitoring/prometheus/varnish-exporter.nixdeleted−61
@@ -1,61 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−# Shamelessly cribbed from nginx-exporter.nix. ~ C.
4−with lib;
5−
6−let
7− cfg = config.services.prometheus.varnishExporter;
8−in {
9− options = {
10− services.prometheus.varnishExporter = {
11− enable = mkEnableOption "prometheus Varnish exporter";
12−
13− port = mkOption {
14− type = types.int;
15− default = 9131;
16− description = ''
17− Port to listen on.
18− '';
19− };
20−
21− extraFlags = mkOption {
22− type = types.listOf types.str;
23− default = [];
24− description = ''
25− Extra commandline options when launching the Varnish exporter.
26− '';
27− };
28−
29− openFirewall = mkOption {
30− type = types.bool;
31− default = false;
32− description = ''
33− Open port in firewall for incoming connections.
34− '';
35− };
36− };
37− };
38−
39− config = mkIf cfg.enable {
40− networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
41−
42− systemd.services.prometheus-varnish-exporter = {
43− description = "Prometheus exporter for Varnish metrics";
44− unitConfig.Documentation = "https://github.com/jonnenauha/prometheus_varnish_exporter";
45− wantedBy = [ "multi-user.target" ];
46− path = [ pkgs.varnish ];
47− script = ''
48− exec ${pkgs.prometheus-varnish-exporter}/bin/prometheus_varnish_exporter \
49− -web.listen-address :${toString cfg.port} \
50− ${concatStringsSep " \\\n " cfg.extraFlags}
51− '';
52− serviceConfig = {
53− User = "nobody";
54− Restart = "always";
55− PrivateTmp = true;
56− WorkingDirectory = /tmp;
57− ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
58− };
59− };
60− };
61−}
nixos/modules/services/monitoring/smartd.nix+1−1
@@ -14,7 +14,7 @@ let
1414 nx = cfg.notifications.x11;
1515
1616 smartdNotify = pkgs.writeScript "smartd-notify.sh" ''
17− #! ${pkgs.stdenv.shell}
17+ #! ${pkgs.runtimeShell}
1818 ${optionalString nm.enable ''
1919 {
2020 ${pkgs.coreutils}/bin/cat << EOF
nixos/modules/services/network-filesystems/xtreemfs.nix+1−1
@@ -11,7 +11,7 @@ let
1111 home = cfg.homeDir;
1212
1313 startupScript = class: configPath: pkgs.writeScript "xtreemfs-osd.sh" ''
14− #! ${pkgs.stdenv.shell}
14+ #! ${pkgs.runtimeShell}
1515 JAVA_HOME="${pkgs.jdk}"
1616 JAVADIR="${xtreemfs}/share/java"
1717 JAVA_CALL="$JAVA_HOME/bin/java -ea -cp $JAVADIR/XtreemFS.jar:$JAVADIR/BabuDB.jar:$JAVADIR/Flease.jar:$JAVADIR/protobuf-java-2.5.0.jar:$JAVADIR/Foundation.jar:$JAVADIR/jdmkrt.jar:$JAVADIR/jdmktk.jar:$JAVADIR/commons-codec-1.3.jar"
nixos/modules/services/network-filesystems/yandex-disk.nix+2−2
@@ -99,10 +99,10 @@ in
9999 exit 1
100100 fi
101101
102− ${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${u} \
102+ ${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${u} \
103103 -c '${pkgs.yandex-disk}/bin/yandex-disk token -p ${cfg.password} ${cfg.username} ${dir}/token'
104104
105− ${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${u} \
105+ ${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${u} \
106106 -c '${pkgs.yandex-disk}/bin/yandex-disk start --no-daemon -a ${dir}/token -d ${cfg.directory} --exclude-dirs=${cfg.excludes}'
107107 '';
108108
nixos/modules/services/networking/amuled.nix+1−1
@@ -68,7 +68,7 @@ in
6868 '';
6969
7070 script = ''
71− ${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${user} \
71+ ${pkgs.su}/bin/su -s ${pkgs.runtimeShell} ${user} \
7272 -c 'HOME="${cfg.dataDir}" ${pkgs.amuleDaemon}/bin/amuled'
7373 '';
7474 };
nixos/modules/services/networking/ddclient.nix+59−53
@@ -3,24 +3,24 @@
33let
44 cfg = config.services.ddclient;
55 boolToStr = bool: if bool then "yes" else "no";
6+ dataDir = "/var/lib/ddclient";
67
78 configText = ''
89 # This file can be used as a template for configFile or is automatically generated by Nix options.
9− daemon=${toString cfg.interval}
10− cache=${cfg.homeDir}/ddclient.cache
11− pid=/run/ddclient/ddclient.pid
12− foreground=NO
10+ cache=${dataDir}/ddclient.cache
11+ foreground=YES
1312 use=${cfg.use}
1413 login=${cfg.username}
1514 password=${cfg.password}
1615 protocol=${cfg.protocol}
17− ${let server = cfg.server; in
18− lib.optionalString (server != "") "server=${server}"}
16+ ${lib.optionalString (cfg.script != "") "script=${cfg.script}"}
17+ ${lib.optionalString (cfg.server != "") "server=${cfg.server}"}
18+ ${lib.optionalString (cfg.zone != "") "zone=${cfg.zone}"}
1919 ssl=${boolToStr cfg.ssl}
2020 wildcard=YES
2121 quiet=${boolToStr cfg.quiet}
2222 verbose=${boolToStr cfg.verbose}
23− ${cfg.domain}
23+ ${lib.concatStringsSep "," cfg.domains}
2424 ${cfg.extraConfig}
2525 '';
2626
@@ -44,17 +44,11 @@ with lib;
4444 '';
4545 };
4646
47− homeDir = mkOption {
48− default = "/var/lib/ddclient";
49− type = str;
50− description = "Home directory for the daemon user.";
51− };
52−
53− domain = mkOption {
54− default = "";
55− type = str;
47+ domains = mkOption {
48+ default = [ "" ];
49+ type = listOf str;
5650 description = ''
57− Domain name to synchronize.
51+ Domain name(s) to synchronize.
5852 '';
5953 };
6054
@@ -62,7 +56,7 @@ with lib;
6256 default = "";
6357 type = str;
6458 description = ''
65− Username.
59+ User name.
6660 '';
6761 };
6862
@@ -75,9 +69,12 @@ with lib;
7569 };
7670
7771 interval = mkOption {
78− default = 600;
79− type = int;
80− description = "The interval at which to run the check and update.";
72+ default = "10min";
73+ type = str;
74+ description = ''
75+ The interval at which to run the check and update.
76+ See <command>man 7 systemd.time</command> for the format.
77+ '';
8178 };
8279
8380 configFile = mkOption {
@@ -95,7 +92,7 @@ with lib;
9592 default = "dyndns2";
9693 type = str;
9794 description = ''
98− Protocol to use with dynamic DNS provider (see http://sourceforge.net/apps/trac/ddclient/wiki/Protocols).
95+ Protocol to use with dynamic DNS provider (see https://sourceforge.net/p/ddclient/wiki/protocols).
9996 '';
10097 };
10198
@@ -115,11 +112,20 @@ with lib;
115112 '';
116113 };
117114
118− extraConfig = mkOption {
115+
116+ quiet = mkOption {
117+ default = false;
118+ type = bool;
119+ description = ''
120+ Print no messages for unnecessary updates.
121+ '';
122+ };
123+
124+ script = mkOption {
119125 default = "";
120− type = lines;
126+ type = str;
121127 description = ''
122− Extra configuration. Contents will be added verbatim to the configuration file.
128+ script as required by some providers.
123129 '';
124130 };
125131
@@ -139,11 +145,19 @@ with lib;
139145 '';
140146 };
141147
142− quiet = mkOption {
143− default = false;
144− type = bool;
148+ zone = mkOption {
149+ default = "";
150+ type = str;
145151 description = ''
146− Print no messages for unnecessary updates.
152+ zone as required by some providers.
153+ '';
154+ };
155+
156+ extraConfig = mkOption {
157+ default = "";
158+ type = lines;
159+ description = ''
160+ Extra configuration. Contents will be added verbatim to the configuration file.
147161 '';
148162 };
149163 };
@@ -153,23 +167,8 @@ with lib;
153167 ###### implementation
154168
155169 config = mkIf config.services.ddclient.enable {
156−
157− users = {
158− extraGroups.ddclient.gid = config.ids.gids.ddclient;
159−
160− extraUsers.ddclient = {
161− uid = config.ids.uids.ddclient;
162− description = "ddclient daemon user";
163− group = "ddclient";
164− home = cfg.homeDir;
165− createHome = true;
166− };
167− };
168−
169170 environment.etc."ddclient.conf" = {
170171 enable = cfg.configFile == "/etc/ddclient.conf";
171− uid = config.ids.uids.ddclient;
172− gid = config.ids.gids.ddclient;
173172 mode = "0600";
174173 text = configText;
175174 };
@@ -180,15 +179,22 @@ with lib;
180179 after = [ "network.target" ];
181180 restartTriggers = [ config.environment.etc."ddclient.conf".source ];
182181
183− serviceConfig = {
184− RuntimeDirectory = "ddclient";
185− # we cannot run in forking mode as it swallows all the program output
186− Type = "simple";
187− User = "ddclient";
188− Group = "ddclient";
189− ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -foreground -file ${cfg.configFile}";
190− ProtectSystem = "full";
191− PrivateTmp = true;
182+ serviceConfig = rec {
183+ DynamicUser = true;
184+ RuntimeDirectory = StateDirectory;
185+ StateDirectory = builtins.baseNameOf dataDir;
186+ Type = "oneshot";
187+ ExecStartPre = "!${lib.getBin pkgs.coreutils}/bin/install -m666 ${cfg.configFile} /run/${RuntimeDirectory}/ddclient.conf";
188+ ExecStart = "${lib.getBin pkgs.ddclient}/bin/ddclient -file /run/${RuntimeDirectory}/ddclient.conf";
189+ };
190+ };
191+
192+ systemd.timers.ddclient = {
193+ description = "Run ddclient";
194+ wantedBy = [ "timers.target" ];
195+ timerConfig = {
196+ OnBootSec = cfg.interval;
197+ OnUnitInactiveSec = cfg.interval;
192198 };
193199 };
194200 };
nixos/modules/services/networking/dhcpd.nix+1
@@ -36,6 +36,7 @@ let
3636
3737 preStart = ''
3838 mkdir -m 755 -p ${cfg.stateDir}
39+ chown dhcpd:nogroup ${cfg.stateDir}
3940 touch ${cfg.stateDir}/dhcpd.leases
4041 '';
4142
nixos/modules/services/networking/dnscache.nix+24−7
@@ -9,12 +9,12 @@ let
99 mkdir -p $out/{servers,ip}
1010
1111 ${concatMapStrings (ip: ''
12− echo > "$out/ip/"${lib.escapeShellArg ip}
12+ touch "$out/ip/"${lib.escapeShellArg ip}
1313 '') cfg.clientIps}
1414
1515 ${concatStrings (mapAttrsToList (host: ips: ''
1616 ${concatMapStrings (ip: ''
17− echo ${lib.escapeShellArg ip} > "$out/servers/"${lib.escapeShellArg host}
17+ echo ${lib.escapeShellArg ip} >> "$out/servers/"${lib.escapeShellArg host}
1818 '') ips}
1919 '') cfg.domainServers)}
2020
@@ -34,33 +34,49 @@ in {
3434
3535 options = {
3636 services.dnscache = {
37+
3738 enable = mkOption {
3839 default = false;
3940 type = types.bool;
40− description = "Whether to run the dnscache caching dns server";
41+ description = "Whether to run the dnscache caching dns server.";
4142 };
4243
4344 ip = mkOption {
4445 default = "0.0.0.0";
4546 type = types.str;
46− description = "IP address on which to listen for connections";
47+ description = "IP address on which to listen for connections.";
4748 };
4849
4950 clientIps = mkOption {
5051 default = [ "127.0.0.1" ];
5152 type = types.listOf types.str;
52− description = "client IP addresses (or prefixes) from which to accept connections";
53+ description = "Client IP addresses (or prefixes) from which to accept connections.";
5354 example = ["192.168" "172.23.75.82"];
5455 };
5556
5657 domainServers = mkOption {
5758 default = { };
5859 type = types.attrsOf (types.listOf types.str);
59− description = "table of {hostname: server} pairs to use as authoritative servers for hosts (and subhosts)";
60+ description = ''
61+ Table of {hostname: server} pairs to use as authoritative servers for hosts (and subhosts).
62+ If entry for @ is not specified predefined list of root servers is used.
63+ '';
6064 example = {
61− "example.com" = ["8.8.8.8" "8.8.4.4"];
65+ "@" = ["8.8.8.8" "8.8.4.4"];
66+ "example.com" = ["192.168.100.100"];
6267 };
6368 };
69+
70+ forwardOnly = mkOption {
71+ default = false;
72+ type = types.bool;
73+ description = ''
74+ Whether to treat root servers (for @) as caching
75+ servers, requesting addresses the same way a client does. This is
76+ needed if you want to use e.g. Google DNS as your upstream DNS.
77+ '';
78+ };
79+
6480 };
6581 };
6682
@@ -82,6 +98,7 @@ in {
8298 '';
8399 script = ''
84100 cd /var/lib/dnscache/
101+ ${optionalString cfg.forwardOnly "export FORWARDONLY=1"}
85102 exec ./run
86103 '';
87104 };
nixos/modules/services/networking/firewall.nix+1−1
@@ -54,7 +54,7 @@ let
5454 '';
5555
5656 writeShScript = name: text: let dir = pkgs.writeScriptBin name ''
57− #! ${pkgs.stdenv.shell} -e
57+ #! ${pkgs.runtimeShell} -e
5858 ${text}
5959 ''; in "${dir}/bin/${name}";
6060
nixos/modules/services/networking/flashpolicyd.nix+1−1
@@ -22,7 +22,7 @@ let
2222
2323 flashpolicydWrapper = pkgs.writeScriptBin "flashpolicyd"
2424 ''
25− #! ${pkgs.stdenv.shell}
25+ #! ${pkgs.runtimeShell}
2626 exec ${flashpolicyd}/Perl_xinetd/in.flashpolicyd.pl \
2727 --file=${pkgs.writeText "flashpolixy.xml" cfg.policy} \
2828 2> /dev/null
nixos/modules/services/networking/hans.nixnew file+145
@@ -0,0 +1,145 @@
1+# NixOS module for hans, ip over icmp daemon
2+
3+{ config, lib, pkgs, ... }:
4+
5+with lib;
6+
7+let
8+ cfg = config.services.hans;
9+
10+ hansUser = "hans";
11+
12+in
13+{
14+
15+ ### configuration
16+
17+ options = {
18+
19+ services.hans = {
20+ clients = mkOption {
21+ default = {};
22+ description = ''
23+ Each attribute of this option defines a systemd service that
24+ runs hans. Many or none may be defined.
25+ The name of each service is
26+ <literal>hans-<replaceable>name</replaceable></literal>
27+ where <replaceable>name</replaceable> is the name of the
28+ corresponding attribute name.
29+ '';
30+ example = literalExample ''
31+ {
32+ foo = {
33+ server = "192.0.2.1";
34+ extraConfig = "-v";
35+ }
36+ }
37+ '';
38+ type = types.attrsOf (types.submodule (
39+ {
40+ options = {
41+ server = mkOption {
42+ type = types.str;
43+ default = "";
44+ description = "IP address of server running hans";
45+ example = "192.0.2.1";
46+ };
47+
48+ extraConfig = mkOption {
49+ type = types.str;
50+ default = "";
51+ description = "Additional command line parameters";
52+ example = "-v";
53+ };
54+
55+ passwordFile = mkOption {
56+ type = types.str;
57+ default = "";
58+ description = "File that containts password";
59+ };
60+
61+ };
62+ }));
63+ };
64+
65+ server = {
66+ enable = mkOption {
67+ type = types.bool;
68+ default = false;
69+ description = "enable hans server";
70+ };
71+
72+ ip = mkOption {
73+ type = types.str;
74+ default = "";
75+ description = "The assigned ip range";
76+ example = "198.51.100.0";
77+ };
78+
79+ respondToSystemPings = mkOption {
80+ type = types.bool;
81+ default = false;
82+ description = "Force hans respond to ordinary pings";
83+ };
84+
85+ extraConfig = mkOption {
86+ type = types.str;
87+ default = "";
88+ description = "Additional command line parameters";
89+ example = "-v";
90+ };
91+
92+ passwordFile = mkOption {
93+ type = types.str;
94+ default = "";
95+ description = "File that containts password";
96+ };
97+ };
98+
99+ };
100+ };
101+
102+ ### implementation
103+
104+ config = mkIf (cfg.server.enable || cfg.clients != {}) {
105+ boot.kernel.sysctl = optionalAttrs cfg.server.respondToSystemPings {
106+ "net.ipv4.icmp_echo_ignore_all" = 1;
107+ };
108+
109+ boot.kernelModules = [ "tun" ];
110+
111+ systemd.services =
112+ let
113+ createHansClientService = name: cfg:
114+ {
115+ description = "hans client - ${name}";
116+ after = [ "network.target" ];
117+ wantedBy = [ "multi-user.target" ];
118+ script = "${pkgs.hans}/bin/hans -f -u ${hansUser} ${cfg.extraConfig} -c ${cfg.server} ${optionalString (cfg.passwordFile != "") "-p $(cat \"${cfg.passwordFile}\")"}";
119+ serviceConfig = {
120+ RestartSec = "30s";
121+ Restart = "always";
122+ };
123+ };
124+ in
125+ listToAttrs (
126+ mapAttrsToList
127+ (name: value: nameValuePair "hans-${name}" (createHansClientService name value))
128+ cfg.clients
129+ ) // {
130+ hans = mkIf (cfg.server.enable) {
131+ description = "hans, ip over icmp server daemon";
132+ after = [ "network.target" ];
133+ wantedBy = [ "multi-user.target" ];
134+ script = "${pkgs.hans}/bin/hans -f -u ${hansUser} ${cfg.server.extraConfig} -s ${cfg.server.ip} ${optionalString cfg.server.respondToSystemPings "-r"} ${optionalString (cfg.server.passwordFile != "") "-p $(cat \"${cfg.server.passwordFile}\")"}";
135+ };
136+ };
137+
138+ users.extraUsers = singleton {
139+ name = hansUser;
140+ description = "Hans daemon user";
141+ };
142+ };
143+
144+ meta.maintainers = with maintainers; [ gnidorah ];
145+}
nixos/modules/services/networking/iodine.nix+17−5
@@ -32,7 +32,7 @@ in
3232 foo = {
3333 server = "tunnel.mdomain.com";
3434 relay = "8.8.8.8";
35− extraConfig = "-P mysecurepassword";
35+ extraConfig = "-v";
3636 }
3737 }
3838 '';
@@ -57,7 +57,13 @@ in
5757 type = types.str;
5858 default = "";
5959 description = "Additional command line parameters";
60− example = "-P mysecurepassword -l 192.168.1.10 -p 23";
60+ example = "-l 192.168.1.10 -p 23";
61+ };
62+
63+ passwordFile = mkOption {
64+ type = types.str;
65+ default = "";
66+ description = "File that containts password";
6167 };
6268 };
6369 }));
@@ -88,7 +94,13 @@ in
8894 type = types.str;
8995 default = "";
9096 description = "Additional command line parameters";
91− example = "-P mysecurepassword -l 192.168.1.10 -p 23";
97+ example = "-l 192.168.1.10 -p 23";
98+ };
99+
100+ passwordFile = mkOption {
101+ type = types.str;
102+ default = "";
103+ description = "File that containts password";
92104 };
93105 };
94106
@@ -108,10 +120,10 @@ in
108120 description = "iodine client - ${name}";
109121 after = [ "network.target" ];
110122 wantedBy = [ "multi-user.target" ];
123+ script = "${pkgs.iodine}/bin/iodine -f -u ${iodinedUser} ${cfg.extraConfig} ${optionalString (cfg.passwordFile != "") "-P $(cat \"${cfg.passwordFile}\")"} ${cfg.relay} ${cfg.server}";
111124 serviceConfig = {
112125 RestartSec = "30s";
113126 Restart = "always";
114− ExecStart = "${pkgs.iodine}/bin/iodine -f -u ${iodinedUser} ${cfg.extraConfig} ${cfg.relay} ${cfg.server}";
115127 };
116128 };
117129 in
@@ -124,7 +136,7 @@ in
124136 description = "iodine, ip over dns server daemon";
125137 after = [ "network.target" ];
126138 wantedBy = [ "multi-user.target" ];
127− serviceConfig.ExecStart = "${pkgs.iodine}/bin/iodined -f -u ${iodinedUser} ${cfg.server.extraConfig} ${cfg.server.ip} ${cfg.server.domain}";
139+ script = "${pkgs.iodine}/bin/iodined -f -u ${iodinedUser} ${cfg.server.extraConfig} ${optionalString (cfg.server.passwordFile != "") "-P $(cat \"${cfg.server.passwordFile}\")"} ${cfg.server.ip} ${cfg.server.domain}";
128140 };
129141 };
130142
nixos/modules/services/networking/iwd.nix+1−1
@@ -26,7 +26,7 @@ in {
2626 wants = [ "network.target" ];
2727 wantedBy = [ "multi-user.target" ];
2828
29− serviceConfig.ExecStart = "${pkgs.iwd}/bin/iwd";
29+ serviceConfig.ExecStart = "${pkgs.iwd}/libexec/iwd";
3030 };
3131 };
3232
nixos/modules/services/networking/murmur.nix+2−1
@@ -80,7 +80,7 @@ in
8080
8181 pidfile = mkOption {
8282 type = types.path;
83− default = "/tmp/murmurd.pid";
83+ default = "/run/murmur/murmurd.pid";
8484 description = "Path to PID file for Murmur daemon.";
8585 };
8686
@@ -252,6 +252,7 @@ in
252252
253253 serviceConfig = {
254254 Type = "forking";
255+ RuntimeDirectory = "murmur";
255256 PIDFile = cfg.pidfile;
256257 Restart = "always";
257258 User = "murmur";
nixos/modules/services/networking/networkmanager.nix+1−7
@@ -135,8 +135,7 @@ in {
135135 default = { inherit networkmanager modemmanager wpa_supplicant
136136 networkmanager-openvpn networkmanager-vpnc
137137 networkmanager-openconnect networkmanager-fortisslvpn
138− networkmanager-pptp networkmanager-l2tp
139− networkmanager-iodine; };
138+ networkmanager-l2tp networkmanager-iodine; };
140139 internal = true;
141140 };
142141
@@ -267,8 +266,6 @@ in {
267266 message = "You can not use networking.networkmanager with networking.wireless";
268267 }];
269268
270− boot.kernelModules = [ "ppp_mppe" ]; # Needed for most (all?) PPTP VPN connections.
271−
272269 environment.etc = with cfg.basePackages; [
273270 { source = configFile;
274271 target = "NetworkManager/NetworkManager.conf";
@@ -285,9 +282,6 @@ in {
285282 { source = "${networkmanager-fortisslvpn}/etc/NetworkManager/VPN/nm-fortisslvpn-service.name";
286283 target = "NetworkManager/VPN/nm-fortisslvpn-service.name";
287284 }
288− { source = "${networkmanager-pptp}/etc/NetworkManager/VPN/nm-pptp-service.name";
289− target = "NetworkManager/VPN/nm-pptp-service.name";
290− }
291285 { source = "${networkmanager-l2tp}/etc/NetworkManager/VPN/nm-l2tp-service.name";
292286 target = "NetworkManager/VPN/nm-l2tp-service.name";
293287 }
nixos/modules/services/networking/nftables.nix+1−1
@@ -116,7 +116,7 @@ in
116116 include "${cfg.rulesetFile}"
117117 '';
118118 checkScript = pkgs.writeScript "nftables-check" ''
119− #! ${pkgs.stdenv.shell} -e
119+ #! ${pkgs.runtimeShell} -e
120120 if $(${pkgs.kmod}/bin/lsmod | grep -q ip_tables); then
121121 echo "Unload ip_tables before using nftables!" 1>&2
122122 exit 1
nixos/modules/services/networking/nix-serve.nix+2
@@ -55,6 +55,8 @@ in
5555 environment.NIX_SECRET_KEY_FILE = cfg.secretKeyFile;
5656
5757 serviceConfig = {
58+ Restart = "always";
59+ RestartSec = "5s";
5860 ExecStart = "${pkgs.nix-serve}/bin/nix-serve " +
5961 "--listen ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
6062 User = "nix-serve";
nixos/modules/services/networking/nsd.nix+130−5
@@ -250,6 +250,46 @@ let
250250 Use imports or pkgs.lib.readFile if you don't want this data in your config file.
251251 '';
252252 };
253+
254+ dnssec = mkEnableOption "DNSSEC";
255+
256+ dnssecPolicy = {
257+ algorithm = mkOption {
258+ type = types.str;
259+ default = "RSASHA256";
260+ description = "Which algorithm to use for DNSSEC";
261+ };
262+ keyttl = mkOption {
263+ type = types.str;
264+ default = "1h";
265+ description = "TTL for dnssec records";
266+ };
267+ coverage = mkOption {
268+ type = types.str;
269+ default = "1y";
270+ description = ''
271+ The length of time to ensure that keys will be correct; no action will be taken to create new keys to be activated after this time.
272+ '';
273+ };
274+ zsk = mkOption {
275+ type = keyPolicy;
276+ default = { keySize = 2048;
277+ prePublish = "1w";
278+ postPublish = "1w";
279+ rollPeriod = "1mo";
280+ };
281+ description = "Key policy for zone signing keys";
282+ };
283+ ksk = mkOption {
284+ type = keyPolicy;
285+ default = { keySize = 4096;
286+ prePublish = "1mo";
287+ postPublish = "1mo";
288+ rollPeriod = "0";
289+ };
290+ description = "Key policy for key signing keys";
291+ };
292+ };
253293
254294 maxRefreshSecs = mkOption {
255295 type = types.nullOr types.int;
@@ -367,10 +407,61 @@ let
367407 and stats_noreset.
368408 '';
369409 };
410+ };
411+ };
370412
413+ keyPolicy = types.submodule {
414+ options = {
415+ keySize = mkOption {
416+ type = types.int;
417+ description = "Key size in bits";
418+ };
419+ prePublish = mkOption {
420+ type = types.str;
421+ description = "How long in advance to publish new keys";
422+ };
423+ postPublish = mkOption {
424+ type = types.str;
425+ description = "How long after deactivation to keep a key in the zone";
426+ };
427+ rollPeriod = mkOption {
428+ type = types.str;
429+ description = "How frequently to change keys";
430+ };
371431 };
372432 };
373433
434+ dnssecZones = (filterAttrs (n: v: if v ? dnssec then v.dnssec else false) zoneConfigs);
435+
436+ dnssec = length (attrNames dnssecZones) != 0;
437+
438+ signZones = optionalString dnssec ''
439+ mkdir -p ${stateDir}/dnssec
440+ chown ${username}:${username} ${stateDir}/dnssec
441+ chmod 0600 ${stateDir}/dnssec
442+
443+ ${concatStrings (mapAttrsToList signZone dnssecZones)}
444+ '';
445+ signZone = name: zone: ''
446+ ${pkgs.bind}/bin/dnssec-keymgr -g ${pkgs.bind}/bin/dnssec-keygen -s ${pkgs.bind}/bin/dnssec-settime -K ${stateDir}/dnssec -c ${policyFile name zone.dnssecPolicy} ${name}
447+ ${pkgs.bind}/bin/dnssec-signzone -S -K ${stateDir}/dnssec -o ${name} -O full -N date ${stateDir}/zones/${name}
448+ ${nsdPkg}/sbin/nsd-checkzone ${name} ${stateDir}/zones/${name}.signed && mv -v ${stateDir}/zones/${name}.signed ${stateDir}/zones/${name}
449+ '';
450+ policyFile = name: policy: pkgs.writeText "${name}.policy" ''
451+ zone ${name} {
452+ algorithm ${policy.algorithm};
453+ key-size zsk ${toString policy.zsk.keySize};
454+ key-size ksk ${toString policy.ksk.keySize};
455+ keyttl ${policy.keyttl};
456+ pre-publish zsk ${policy.zsk.prePublish};
457+ pre-publish ksk ${policy.ksk.prePublish};
458+ post-publish zsk ${policy.zsk.postPublish};
459+ post-publish ksk ${policy.ksk.postPublish};
460+ roll-period zsk ${policy.zsk.rollPeriod};
461+ roll-period ksk ${policy.ksk.rollPeriod};
462+ coverage ${policy.coverage};
463+ };
464+ '';
374465in
375466{
376467 # options are ordered alphanumerically
@@ -380,6 +471,14 @@ in
380471
381472 bind8Stats = mkEnableOption "BIND8 like statistics";
382473
474+ dnssecInterval = mkOption {
475+ type = types.str;
476+ default = "1h";
477+ description = ''
478+ How often to check whether dnssec key rollover is required
479+ '';
480+ };
481+
383482 extraConfig = mkOption {
384483 type = types.str;
385484 default = "";
@@ -741,7 +840,6 @@ in
741840
742841 };
743842
744−
745843 zones = mkOption {
746844 type = types.attrsOf zoneOptions;
747845 default = {};
@@ -785,7 +883,6 @@ in
785883 serverGroup1.
786884 '';
787885 };
788−
789886 };
790887
791888 config = mkIf cfg.enable {
@@ -832,9 +929,9 @@ in
832929 mkdir -m 0700 -p "${stateDir}/var"
833930
834931 cat > "${stateDir}/don't touch anything in here" << EOF
835− Everything in this directory except NSD's state in var is
836− automatically generated and will be purged and redeployed
837− by the nsd.service pre-start script.
932+ Everything in this directory except NSD's state in var and dnssec
933+ is automatically generated and will be purged and redeployed by
934+ the nsd.service pre-start script.
838935 EOF
839936
840937 chown ${username}:${username} -R "${stateDir}/private"
@@ -848,6 +945,34 @@ in
848945 '';
849946 };
850947
948+ nixpkgs.config = mkIf dnssec {
949+ bind.enablePython = true;
950+ };
951+
952+ systemd.timers."nsd-dnssec" = mkIf dnssec {
953+ description = "Automatic DNSSEC key rollover";
954+
955+ wantedBy = [ "nsd.service" ];
956+
957+ timerConfig = {
958+ OnActiveSec = cfg.dnssecInterval;
959+ OnUnitActiveSec = cfg.dnssecInterval;
960+ };
961+ };
962+
963+ systemd.services."nsd-dnssec" = mkIf dnssec {
964+ description = "DNSSEC key rollover";
965+
966+ wantedBy = [ "nsd.service" ];
967+ before = [ "nsd.service" ];
968+
969+ script = signZones;
970+
971+ postStop = ''
972+ ${pkgs.systemd}/bin/systemctl kill -s SIGHUP nsd.service
973+ '';
974+ };
975+
851976 };
852977
853978 meta.maintainers = with lib.maintainers; [ hrdinka ];
nixos/modules/services/networking/openvpn.nix+1−1
@@ -65,7 +65,7 @@ let
6565
6666 path = [ pkgs.iptables pkgs.iproute pkgs.nettools ];
6767
68− serviceConfig.ExecStart = "@${openvpn}/sbin/openvpn openvpn --config ${configFile}";
68+ serviceConfig.ExecStart = "@${openvpn}/sbin/openvpn openvpn --suppress-timestamps --config ${configFile}";
6969 serviceConfig.Restart = "always";
7070 serviceConfig.Type = "notify";
7171 };
nixos/modules/services/networking/prosody.nix+221−29
@@ -15,6 +15,7 @@ let
1515 description = "Path to the key file.";
1616 };
1717
18+ # TODO: rename to certificate to match the prosody config
1819 cert = mkOption {
1920 type = types.path;
2021 description = "Path to the certificate file.";
@@ -30,7 +31,7 @@ let
3031 };
3132
3233 moduleOpts = {
33−
34+ # Generally required
3435 roster = mkOption {
3536 type = types.bool;
3637 default = true;
@@ -61,12 +62,38 @@ let
6162 description = "Service discovery";
6263 };
6364
64− legacyauth = mkOption {
65+ # Not essential, but recommended
66+ carbons = mkOption {
6567 type = types.bool;
6668 default = true;
67− description = "Legacy authentication. Only used by some old clients and bots";
69+ description = "Keep multiple clients in sync";
70+ };
71+
72+ pep = mkOption {
73+ type = types.bool;
74+ default = true;
75+ description = "Enables users to publish their mood, activity, playing music and more";
76+ };
77+
78+ private = mkOption {
79+ type = types.bool;
80+ default = true;
81+ description = "Private XML storage (for room bookmarks, etc.)";
82+ };
83+
84+ blocklist = mkOption {
85+ type = types.bool;
86+ default = true;
87+ description = "Allow users to block communications with other users";
6888 };
6989
90+ vcard = mkOption {
91+ type = types.bool;
92+ default = true;
93+ description = "Allow users to set vCards";
94+ };
95+
96+ # Nice to have
7097 version = mkOption {
7198 type = types.bool;
7299 default = true;
@@ -91,36 +118,112 @@ let
91118 description = "Replies to XMPP pings with pongs";
92119 };
93120
94− console = mkOption {
121+ register = mkOption {
122+ type = types.bool;
123+ default = true;
124+ description = "Allow users to register on this server using a client and change passwords";
125+ };
126+
127+ mam = mkOption {
95128 type = types.bool;
96129 default = false;
97− description = "telnet to port 5582";
130+ description = "Store messages in an archive and allow users to access it";
98131 };
99132
133+ # Admin interfaces
134+ admin_adhoc = mkOption {
135+ type = types.bool;
136+ default = true;
137+ description = "Allows administration via an XMPP client that supports ad-hoc commands";
138+ };
139+
140+ admin_telnet = mkOption {
141+ type = types.bool;
142+ default = false;
143+ description = "Opens telnet console interface on localhost port 5582";
144+ };
145+
146+ # HTTP modules
100147 bosh = mkOption {
101148 type = types.bool;
102149 default = false;
103150 description = "Enable BOSH clients, aka 'Jabber over HTTP'";
104151 };
105152
106− httpserver = mkOption {
153+ websocket = mkOption {
154+ type = types.bool;
155+ default = false;
156+ description = "Enable WebSocket support";
157+ };
158+
159+ http_files = mkOption {
107160 type = types.bool;
108161 default = false;
109162 description = "Serve static files from a directory over HTTP";
110163 };
111164
112− websocket = mkOption {
165+ # Other specific functionality
166+ limits = mkOption {
113167 type = types.bool;
114168 default = false;
115− description = "Enable WebSocket support";
169+ description = "Enable bandwidth limiting for XMPP connections";
170+ };
171+
172+ groups = mkOption {
173+ type = types.bool;
174+ default = false;
175+ description = "Shared roster support";
176+ };
177+
178+ server_contact_info = mkOption {
179+ type = types.bool;
180+ default = false;
181+ description = "Publish contact information for this service";
182+ };
183+
184+ announce = mkOption {
185+ type = types.bool;
186+ default = false;
187+ description = "Send announcement to all online users";
188+ };
189+
190+ welcome = mkOption {
191+ type = types.bool;
192+ default = false;
193+ description = "Welcome users who register accounts";
194+ };
195+
196+ watchregistrations = mkOption {
197+ type = types.bool;
198+ default = false;
199+ description = "Alert admins of registrations";
200+ };
201+
202+ motd = mkOption {
203+ type = types.bool;
204+ default = false;
205+ description = "Send a message to users when they log in";
206+ };
207+
208+ legacyauth = mkOption {
209+ type = types.bool;
210+ default = false;
211+ description = "Legacy authentication. Only used by some old clients and bots";
212+ };
213+
214+ proxy65 = mkOption {
215+ type = types.bool;
216+ default = false;
217+ description = "Enables a file transfer proxy service which clients behind NAT can use";
116218 };
117219
118220 };
119221
120222 toLua = x:
121223 if builtins.isString x then ''"${x}"''
122− else if builtins.isBool x then toString x
224+ else if builtins.isBool x then (if x == true then "true" else "false")
123225 else if builtins.isInt x then toString x
226+ else if builtins.isList x then ''{ ${lib.concatStringsSep ", " (map (n: toLua n) x) } }''
124227 else throw "Invalid Lua value";
125228
126229 createSSLOptsStr = o: ''
@@ -192,12 +295,83 @@ in
192295 '';
193296 };
194297
298+ dataDir = mkOption {
299+ type = types.string;
300+ description = "Directory where Prosody stores its data";
301+ default = "/var/lib/prosody";
302+ };
303+
304+ user = mkOption {
305+ type = types.str;
306+ default = "prosody";
307+ description = "User account under which prosody runs.";
308+ };
309+
310+ group = mkOption {
311+ type = types.str;
312+ default = "prosody";
313+ description = "Group account under which prosody runs.";
314+ };
315+
195316 allowRegistration = mkOption {
196317 type = types.bool;
197318 default = false;
198319 description = "Allow account creation";
199320 };
200321
322+ c2sRequireEncryption = mkOption {
323+ type = types.bool;
324+ default = true;
325+ description = ''
326+ Force clients to use encrypted connections? This option will
327+ prevent clients from authenticating unless they are using encryption.
328+ '';
329+ };
330+
331+ s2sRequireEncryption = mkOption {
332+ type = types.bool;
333+ default = true;
334+ description = ''
335+ Force servers to use encrypted connections? This option will
336+ prevent servers from authenticating unless they are using encryption.
337+ Note that this is different from authentication.
338+ '';
339+ };
340+
341+ s2sSecureAuth = mkOption {
342+ type = types.bool;
343+ default = false;
344+ description = ''
345+ Force certificate authentication for server-to-server connections?
346+ This provides ideal security, but requires servers you communicate
347+ with to support encryption AND present valid, trusted certificates.
348+ For more information see https://prosody.im/doc/s2s#security
349+ '';
350+ };
351+
352+ s2sInsecureDomains = mkOption {
353+ type = types.listOf types.str;
354+ default = [];
355+ example = [ "insecure.example.com" ];
356+ description = ''
357+ Some servers have invalid or self-signed certificates. You can list
358+ remote domains here that will not be required to authenticate using
359+ certificates. They will be authenticated using DNS instead, even
360+ when s2s_secure_auth is enabled.
361+ '';
362+ };
363+
364+ s2sSecureDomains = mkOption {
365+ type = types.listOf types.str;
366+ default = [];
367+ example = [ "jabber.org" ];
368+ description = ''
369+ Even if you leave s2s_secure_auth disabled, you can still require valid
370+ certificates for some domains by specifying a list here.
371+ '';
372+ };
373+
374+
201375 modules = moduleOpts;
202376
203377 extraModules = mkOption {
@@ -206,6 +380,12 @@ in
206380 description = "Enable custom modules";
207381 };
208382
383+ extraPluginPaths = mkOption {
384+ type = types.listOf types.path;
385+ default = [];
386+ description = "Addtional path in which to look find plugins/modules";
387+ };
388+
209389 virtualHosts = mkOption {
210390
211391 description = "Define the virtual hosts";
@@ -255,37 +435,47 @@ in
255435
256436 config = mkIf cfg.enable {
257437
258− environment.systemPackages = [ pkgs.prosody ];
438+ environment.systemPackages = [ cfg.package ];
259439
260440 environment.etc."prosody/prosody.cfg.lua".text = ''
261441
262− pidfile = "/var/lib/prosody/prosody.pid"
263−
442+ pidfile = "/run/prosody/prosody.pid"
264443
265444 log = "*syslog"
266445
267− data_path = "/var/lib/prosody"
268−
269− allow_registration = ${boolToString cfg.allowRegistration};
270−
271− ${ optionalString cfg.modules.console "console_enabled = true;" }
446+ data_path = "${cfg.dataDir}"
447+ plugin_paths = {
448+ ${lib.concatStringsSep ", " (map (n: "\"${n}\"") cfg.extraPluginPaths) }
449+ }
272450
273451 ${ optionalString (cfg.ssl != null) (createSSLOptsStr cfg.ssl) }
274452
275− admins = { ${lib.concatStringsSep ", " (map (n: "\"${n}\"") cfg.admins) } };
453+ admins = ${toLua cfg.admins}
454+
455+ -- we already build with libevent, so we can just enable it for a more performant server
456+ use_libevent = true
276457
277458 modules_enabled = {
278459
279460 ${ lib.concatStringsSep "\n\ \ " (lib.mapAttrsToList
280− (name: val: optionalString val ''"${name}";'')
461+ (name: val: optionalString val "${toLua name};")
281462 cfg.modules) }
463+ ${ lib.concatStringsSep "\n" (map (x: "${toLua x};") cfg.package.communityModules)}
464+ ${ lib.concatStringsSep "\n" (map (x: "${toLua x};") cfg.extraModules)}
465+ };
282466
283− ${ optionalString cfg.allowRegistration "\"register\"\;" }
467+ allow_registration = ${toLua cfg.allowRegistration}
284468
285− ${ lib.concatStringsSep "\n" (map (x: "\"${x}\";") cfg.extraModules)}
469+ c2s_require_encryption = ${toLua cfg.c2sRequireEncryption}
470+
471+ s2s_require_encryption = ${toLua cfg.s2sRequireEncryption}
472+
473+ s2s_secure_auth = ${toLua cfg.s2sSecureAuth}
474+
475+ s2s_insecure_domains = ${toLua cfg.s2sInsecureDomains}
476+
477+ s2s_secure_domains = ${toLua cfg.s2sSecureDomains}
286478
287− "posix";
288− };
289479
290480 ${ cfg.extraConfig }
291481
@@ -297,15 +487,15 @@ in
297487 '') cfg.virtualHosts) }
298488 '';
299489
300− users.extraUsers.prosody = {
490+ users.extraUsers.prosody = mkIf (cfg.user == "prosody") {
301491 uid = config.ids.uids.prosody;
302492 description = "Prosody user";
303493 createHome = true;
304− group = "prosody";
305− home = "/var/lib/prosody";
494+ inherit (cfg) group;
495+ home = "${cfg.dataDir}";
306496 };
307497
308− users.extraGroups.prosody = {
498+ users.extraGroups.prosody = mkIf (cfg.group == "prosody") {
309499 gid = config.ids.gids.prosody;
310500 };
311501
@@ -316,9 +506,11 @@ in
316506 wantedBy = [ "multi-user.target" ];
317507 restartTriggers = [ config.environment.etc."prosody/prosody.cfg.lua".source ];
318508 serviceConfig = {
319− User = "prosody";
509+ User = cfg.user;
510+ Group = cfg.group;
320511 Type = "forking";
321− PIDFile = "/var/lib/prosody/prosody.pid";
512+ RuntimeDirectory = [ "prosody" ];
513+ PIDFile = "/run/prosody/prosody.pid";
322514 ExecStart = "${cfg.package}/bin/prosodyctl start";
323515 };
324516 };
nixos/modules/services/networking/quagga.nix+1−1
@@ -133,7 +133,7 @@ in
133133 users.groups = {
134134 quagga = {};
135135 # Members of the quaggavty group can use vtysh to inspect the Quagga daemons
136− quaggavty = {};
136+ quaggavty = { members = [ "quagga" ]; };
137137 };
138138
139139 systemd.services =
nixos/modules/services/networking/rdnssd.nix+1−1
@@ -6,7 +6,7 @@
66with lib;
77let
88 mergeHook = pkgs.writeScript "rdnssd-merge-hook" ''
9− #! ${pkgs.stdenv.shell} -e
9+ #! ${pkgs.runtimeShell} -e
1010 ${pkgs.openresolv}/bin/resolvconf -u
1111 '';
1212in
nixos/modules/services/networking/resilio.nix+1−6
@@ -50,12 +50,7 @@ in
5050 description = ''
5151 If enabled, start the Resilio Sync daemon. Once enabled, you can
5252 interact with the service through the Web UI, or configure it in your
53− NixOS configuration. Enabling the <literal>resilio</literal> service
54− also installs a systemd user unit which can be used to start
55− user-specific copies of the daemon. Once installed, you can use
56− <literal>systemctl --user start resilio</literal> as your user to start
57− the daemon using the configuration file located at
58− <literal>$HOME/.config/resilio-sync/config.json</literal>.
53+ NixOS configuration.
5954 '';
6055 };
6156
nixos/modules/services/networking/shadowsocks.nixnew file+112
@@ -0,0 +1,112 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.shadowsocks;
7+
8+ opts = {
9+ server = cfg.localAddress;
10+ server_port = cfg.port;
11+ method = cfg.encryptionMethod;
12+ mode = cfg.mode;
13+ user = "nobody";
14+ fast_open = true;
15+ } // optionalAttrs (cfg.password != null) { password = cfg.password; };
16+
17+ configFile = pkgs.writeText "shadowsocks.json" (builtins.toJSON opts);
18+
19+in
20+
21+{
22+
23+ ###### interface
24+
25+ options = {
26+
27+ services.shadowsocks = {
28+
29+ enable = mkOption {
30+ type = types.bool;
31+ default = false;
32+ description = ''
33+ Whether to run shadowsocks-libev shadowsocks server.
34+ '';
35+ };
36+
37+ localAddress = mkOption {
38+ type = types.str;
39+ default = "0.0.0.0";
40+ description = ''
41+ Local address to which the server binds.
42+ '';
43+ };
44+
45+ port = mkOption {
46+ type = types.int;
47+ default = 8388;
48+ description = ''
49+ Port which the server uses.
50+ '';
51+ };
52+
53+ password = mkOption {
54+ type = types.nullOr types.str;
55+ default = null;
56+ description = ''
57+ Password for connecting clients.
58+ '';
59+ };
60+
61+ passwordFile = mkOption {
62+ type = types.nullOr types.path;
63+ default = null;
64+ description = ''
65+ Password file with a password for connecting clients.
66+ '';
67+ };
68+
69+ mode = mkOption {
70+ type = types.enum [ "tcp_only" "tcp_and_udp" "udp_only" ];
71+ default = "tcp_and_udp";
72+ description = ''
73+ Relay protocols.
74+ '';
75+ };
76+
77+ encryptionMethod = mkOption {
78+ type = types.str;
79+ default = "chacha20-ietf-poly1305";
80+ description = ''
81+ Encryption method. See <link xlink:href="https://github.com/shadowsocks/shadowsocks-org/wiki/AEAD-Ciphers"/>.
82+ '';
83+ };
84+
85+ };
86+
87+ };
88+
89+
90+ ###### implementation
91+
92+ config = mkIf cfg.enable {
93+ assertions = singleton
94+ { assertion = cfg.password == null || cfg.passwordFile == null;
95+ message = "Cannot use both password and passwordFile for shadowsocks-libev";
96+ };
97+
98+ systemd.services.shadowsocks-libev = {
99+ description = "shadowsocks-libev Daemon";
100+ after = [ "network.target" ];
101+ wantedBy = [ "multi-user.target" ];
102+ path = [ pkgs.shadowsocks-libev ] ++ optional (cfg.passwordFile != null) pkgs.jq;
103+ serviceConfig.PrivateTmp = true;
104+ script = ''
105+ ${optionalString (cfg.passwordFile != null) ''
106+ cat ${configFile} | jq --arg password "$(cat "${cfg.passwordFile}")" '. + { password: $password }' > /tmp/shadowsocks.json
107+ ''}
108+ exec ss-server -c ${if cfg.passwordFile != null then "/tmp/shadowsocks.json" else configFile}
109+ '';
110+ };
111+ };
112+}
nixos/modules/services/networking/ssh/sshd.nix+62−8
@@ -213,6 +213,65 @@ in
213213 description = "Files from which authorized keys are read.";
214214 };
215215
216+ kexAlgorithms = mkOption {
217+ type = types.listOf types.str;
218+ default = [
219+ "curve25519-sha256@libssh.org"
220+ "diffie-hellman-group-exchange-sha256"
221+ ];
222+ description = ''
223+ Allowed key exchange algorithms
224+ </para>
225+ <para>
226+ Defaults to recommended settings from both
227+ <link xlink:href="https://stribika.github.io/2015/01/04/secure-secure-shell.html" />
228+ and
229+ <link xlink:href="https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29" />
230+ '';
231+ };
232+
233+ ciphers = mkOption {
234+ type = types.listOf types.str;
235+ default = [
236+ "chacha20-poly1305@openssh.com"
237+ "aes256-gcm@openssh.com"
238+ "aes128-gcm@openssh.com"
239+ "aes256-ctr"
240+ "aes192-ctr"
241+ "aes128-ctr"
242+ ];
243+ description = ''
244+ Allowed ciphers
245+ </para>
246+ <para>
247+ Defaults to recommended settings from both
248+ <link xlink:href="https://stribika.github.io/2015/01/04/secure-secure-shell.html" />
249+ and
250+ <link xlink:href="https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29" />
251+ '';
252+ };
253+
254+ macs = mkOption {
255+ type = types.listOf types.str;
256+ default = [
257+ "hmac-sha2-512-etm@openssh.com"
258+ "hmac-sha2-256-etm@openssh.com"
259+ "umac-128-etm@openssh.com"
260+ "hmac-sha2-512"
261+ "hmac-sha2-256"
262+ "umac-128@openssh.com"
263+ ];
264+ description = ''
265+ Allowed MACs
266+ </para>
267+ <para>
268+ Defaults to recommended settings from both
269+ <link xlink:href="https://stribika.github.io/2015/01/04/secure-secure-shell.html" />
270+ and
271+ <link xlink:href="https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29" />
272+ '';
273+ };
274+
216275 extraConfig = mkOption {
217276 type = types.lines;
218277 default = "";
@@ -363,14 +422,9 @@ in
363422 HostKey ${k.path}
364423 '')}
365424
366− ### Recommended settings from both:
367− # https://stribika.github.io/2015/01/04/secure-secure-shell.html
368− # and
369− # https://wiki.mozilla.org/Security/Guidelines/OpenSSH#Modern_.28OpenSSH_6.7.2B.29
370−
371− KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
372− Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
373− MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
425+ KexAlgorithms ${concatStringsSep "," cfg.kexAlgorithms}
426+ Ciphers ${concatStringsSep "," cfg.ciphers}
427+ MACs ${concatStringsSep "," cfg.macs}
374428
375429 # LogLevel VERBOSE logs user's key fingerprint on login.
376430 # Needed to have a clear audit track of which key was used to log in.
nixos/modules/services/networking/strongswan-swanctl/module.nixnew file+82
@@ -0,0 +1,82 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+with (import ./param-lib.nix lib);
5+
6+let
7+ cfg = config.services.strongswan-swanctl;
8+ swanctlParams = import ./swanctl-params.nix lib;
9+in {
10+ options.services.strongswan-swanctl = {
11+ enable = mkEnableOption "strongswan-swanctl service";
12+
13+ package = mkOption {
14+ type = types.package;
15+ default = pkgs.strongswan;
16+ defaultText = "pkgs.strongswan";
17+ description = ''
18+ The strongswan derivation to use.
19+ '';
20+ };
21+
22+ strongswan.extraConfig = mkOption {
23+ type = types.str;
24+ default = "";
25+ description = ''
26+ Contents of the <literal>strongswan.conf</literal> file.
27+ '';
28+ };
29+
30+ swanctl = paramsToOptions swanctlParams;
31+ };
32+
33+ config = mkIf cfg.enable {
34+
35+ assertions = [
36+ { assertion = !config.services.strongswan.enable;
37+ message = "cannot enable both services.strongswan and services.strongswan-swanctl. Choose either one.";
38+ }
39+ ];
40+
41+ environment.etc."swanctl/swanctl.conf".text =
42+ paramsToConf cfg.swanctl swanctlParams;
43+
44+ # The swanctl command complains when the following directories don't exist:
45+ # See: https://wiki.strongswan.org/projects/strongswan/wiki/Swanctldirectory
46+ system.activationScripts.strongswan-swanctl-etc = stringAfter ["etc"] ''
47+ mkdir -p '/etc/swanctl/x509' # Trusted X.509 end entity certificates
48+ mkdir -p '/etc/swanctl/x509ca' # Trusted X.509 Certificate Authority certificates
49+ mkdir -p '/etc/swanctl/x509ocsp'
50+ mkdir -p '/etc/swanctl/x509aa' # Trusted X.509 Attribute Authority certificates
51+ mkdir -p '/etc/swanctl/x509ac' # Attribute Certificates
52+ mkdir -p '/etc/swanctl/x509crl' # Certificate Revocation Lists
53+ mkdir -p '/etc/swanctl/pubkey' # Raw public keys
54+ mkdir -p '/etc/swanctl/private' # Private keys in any format
55+ mkdir -p '/etc/swanctl/rsa' # PKCS#1 encoded RSA private keys
56+ mkdir -p '/etc/swanctl/ecdsa' # Plain ECDSA private keys
57+ mkdir -p '/etc/swanctl/bliss'
58+ mkdir -p '/etc/swanctl/pkcs8' # PKCS#8 encoded private keys of any type
59+ mkdir -p '/etc/swanctl/pkcs12' # PKCS#12 containers
60+ '';
61+
62+ systemd.services.strongswan-swanctl = {
63+ description = "strongSwan IPsec IKEv1/IKEv2 daemon using swanctl";
64+ wantedBy = [ "multi-user.target" ];
65+ after = [ "network-online.target" "keys.target" ];
66+ wants = [ "keys.target" ];
67+ path = with pkgs; [ kmod iproute iptables utillinux ];
68+ environment.STRONGSWAN_CONF = pkgs.writeTextFile {
69+ name = "strongswan.conf";
70+ text = cfg.strongswan.extraConfig;
71+ };
72+ restartTriggers = [ config.environment.etc."swanctl/swanctl.conf".source ];
73+ serviceConfig = {
74+ ExecStart = "${cfg.package}/sbin/charon-systemd";
75+ Type = "notify";
76+ ExecStartPost = "${cfg.package}/sbin/swanctl --load-all --noprompt";
77+ ExecReload = "${cfg.package}/sbin/swanctl --reload";
78+ Restart = "on-abnormal";
79+ };
80+ };
81+ };
82+}
nixos/modules/services/networking/strongswan-swanctl/param-constructors.nixnew file+162
@@ -0,0 +1,162 @@
1+# In the following context a parameter is an attribute set that
2+# contains a NixOS option and a render function. It also contains the
3+# attribute: '_type = "param"' so we can distinguish it from other
4+# sets.
5+#
6+# The render function is used to convert the value of the option to a
7+# snippet of strongswan.conf. Most parameters simply render their
8+# value to a string. For example, take the following parameter:
9+#
10+# threads = mkIntParam 10 "Threads to use for request handling.";
11+#
12+# When a users defines the corresponding option as for example:
13+#
14+# services.strongswan-swanctl.strongswan.threads = 32;
15+#
16+# It will get rendered to the following snippet in strongswan.conf:
17+#
18+# threads = 32
19+#
20+# Some parameters however need to be able to change the attribute
21+# name. For example, take the following parameter:
22+#
23+# id = mkPrefixedAttrsOfParam (mkOptionalStrParam "") "...";
24+#
25+# A user can define the corresponding option as for example:
26+#
27+# id = {
28+# "foo" = "bar";
29+# "baz" = "qux";
30+# };
31+#
32+# This will get rendered to the following snippet:
33+#
34+# foo-id = bar
35+# baz-id = qux
36+#
37+# For this reason the render function is not simply a function from
38+# value -> string but a function from a value to an attribute set:
39+# { "${name}" = string }. This allows parameters to change the attribute
40+# name like in the previous example.
41+
42+lib :
43+
44+with lib;
45+with (import ./param-lib.nix lib);
46+
47+rec {
48+ mkParamOfType = type : strongswanDefault : description : {
49+ _type = "param";
50+ option = mkOption {
51+ type = types.nullOr type;
52+ default = null;
53+ description = documentDefault description strongswanDefault;
54+ };
55+ render = single toString;
56+ };
57+
58+ documentDefault = description : strongswanDefault :
59+ if isNull strongswanDefault
60+ then description
61+ else description + ''
62+ </para><para>
63+ StrongSwan default: <literal><![CDATA[${builtins.toJSON strongswanDefault}]]></literal>
64+ '';
65+
66+ single = f: name: value: { "${name}" = f value; };
67+
68+ mkStrParam = mkParamOfType types.str;
69+ mkOptionalStrParam = mkStrParam null;
70+
71+ mkEnumParam = values : mkParamOfType (types.enum values);
72+
73+ mkIntParam = mkParamOfType types.int;
74+ mkOptionalIntParam = mkIntParam null;
75+
76+ # We should have floats in Nix...
77+ mkFloatParam = mkStrParam;
78+
79+ # TODO: Check for hex format:
80+ mkHexParam = mkStrParam;
81+ mkOptionalHexParam = mkOptionalStrParam;
82+
83+ # TODO: Check for duration format:
84+ mkDurationParam = mkStrParam;
85+ mkOptionalDurationParam = mkOptionalStrParam;
86+
87+ mkYesNoParam = strongswanDefault : description : {
88+ _type = "param";
89+ option = mkOption {
90+ type = types.nullOr types.bool;
91+ default = null;
92+ description = documentDefault description strongswanDefault;
93+ };
94+ render = single (b: if b then "yes" else "no");
95+ };
96+ yes = true;
97+ no = false;
98+
99+ mkSpaceSepListParam = mkSepListParam " ";
100+ mkCommaSepListParam = mkSepListParam ",";
101+
102+ mkSepListParam = sep : strongswanDefault : description : {
103+ _type = "param";
104+ option = mkOption {
105+ type = types.nullOr (types.listOf types.str);
106+ default = null;
107+ description = documentDefault description strongswanDefault;
108+ };
109+ render = single (value: concatStringsSep sep value);
110+ };
111+
112+ mkAttrsOfParams = params :
113+ mkAttrsOf params (types.submodule {options = paramsToOptions params;});
114+
115+ mkAttrsOfParam = param :
116+ mkAttrsOf param param.option.type;
117+
118+ mkAttrsOf = param : option : description : {
119+ _type = "param";
120+ option = mkOption {
121+ type = types.attrsOf option;
122+ default = {};
123+ inherit description;
124+ };
125+ render = single (attrs:
126+ (paramsToRenderedStrings attrs
127+ (mapAttrs (_n: _v: param) attrs)));
128+ };
129+
130+ mkPrefixedAttrsOfParams = params :
131+ mkPrefixedAttrsOf params (types.submodule {options = paramsToOptions params;});
132+
133+ mkPrefixedAttrsOfParam = param :
134+ mkPrefixedAttrsOf param param.option.type;
135+
136+ mkPrefixedAttrsOf = p : option : description : {
137+ _type = "param";
138+ option = mkOption {
139+ type = types.attrsOf option;
140+ default = {};
141+ inherit description;
142+ };
143+ render = prefix: attrs:
144+ let prefixedAttrs = mapAttrs' (name: nameValuePair "${prefix}-${name}") attrs;
145+ in paramsToRenderedStrings prefixedAttrs
146+ (mapAttrs (_n: _v: p) prefixedAttrs);
147+ };
148+
149+ mkPostfixedAttrsOfParams = params : description : {
150+ _type = "param";
151+ option = mkOption {
152+ type = types.attrsOf (types.submodule {options = paramsToOptions params;});
153+ default = {};
154+ inherit description;
155+ };
156+ render = postfix: attrs:
157+ let postfixedAttrs = mapAttrs' (name: nameValuePair "${name}-${postfix}") attrs;
158+ in paramsToRenderedStrings postfixedAttrs
159+ (mapAttrs (_n: _v: params) postfixedAttrs);
160+ };
161+
162+}
nixos/modules/services/networking/strongswan-swanctl/param-lib.nixnew file+82
@@ -0,0 +1,82 @@
1+lib :
2+
3+with lib;
4+
5+rec {
6+ paramsToConf = cfg : ps : mkConf 0 (paramsToRenderedStrings cfg ps);
7+
8+ # mkConf takes an indentation level (which usually starts at 0) and a nested
9+ # attribute set of strings and will render that set to a strongswan.conf style
10+ # configuration format. For example:
11+ #
12+ # mkConf 0 {a = "1"; b = { c = { "foo" = "2"; "bar" = "3"; }; d = "4";};} => ''
13+ # a = 1
14+ # b {
15+ # c {
16+ # foo = 2
17+ # bar = 3
18+ # }
19+ # d = 4
20+ # }''
21+ mkConf = indent : ps :
22+ concatMapStringsSep "\n"
23+ (name:
24+ let value = ps."${name}";
25+ indentation = replicate indent " ";
26+ in
27+ indentation + (
28+ if isAttrs value
29+ then "${name} {\n" +
30+ mkConf (indent + 2) value + "\n" +
31+ indentation + "}"
32+ else "${name} = ${value}"
33+ )
34+ )
35+ (attrNames ps);
36+
37+ replicate = n : c : concatStrings (builtins.genList (_x : c) n);
38+
39+ # `paramsToRenderedStrings cfg ps` converts the NixOS configuration `cfg`
40+ # (typically the "config" argument of a NixOS module) and the set of
41+ # parameters `ps` (an attribute set where the values are constructed using the
42+ # parameter constructors in ./param-constructors.nix) to a nested attribute
43+ # set of strings (rendered parameters).
44+ paramsToRenderedStrings = cfg : ps :
45+ filterEmptySets (
46+ (mapParamsRecursive (path: name: param:
47+ let value = attrByPath path null cfg;
48+ in optionalAttrs (!isNull value) (param.render name value)
49+ ) ps));
50+
51+ filterEmptySets = set : filterAttrs (n: v: !(isNull v)) (mapAttrs (name: value:
52+ if isAttrs value
53+ then let value' = filterEmptySets value;
54+ in if value' == {}
55+ then null
56+ else value'
57+ else value
58+ ) set);
59+
60+ # Recursively map over every parameter in the given attribute set.
61+ mapParamsRecursive = mapAttrsRecursiveCond' (as: (!(as ? "_type" && as._type == "param")));
62+
63+ mapAttrsRecursiveCond' = cond: f: set:
64+ let
65+ recurse = path: set:
66+ let
67+ g =
68+ name: value:
69+ if isAttrs value && cond value
70+ then { "${name}" = recurse (path ++ [name]) value; }
71+ else f (path ++ [name]) name value;
72+ in mapAttrs'' g set;
73+ in recurse [] set;
74+
75+ mapAttrs'' = f: set:
76+ foldl' (a: b: a // b) {} (map (attr: f attr set.${attr}) (attrNames set));
77+
78+ # Extract the options from the given set of parameters.
79+ paramsToOptions = ps :
80+ mapParamsRecursive (_path: name: param: { "${name}" = param.option; }) ps;
81+
82+}
nixos/modules/services/networking/strongswan-swanctl/swanctl-params.nixnew file+1168
@@ -0,0 +1,1168 @@
1+# See: https://wiki.strongswan.org/projects/strongswan/wiki/Swanctlconf
2+#
3+# When strongSwan is upgraded please update the parameters in this file. You can
4+# see which parameters should be deleted, changed or added by diffing
5+# swanctl.opt:
6+#
7+# git clone https://github.com/strongswan/strongswan.git
8+# cd strongswan
9+# git diff 5.5.3..5.6.0 src/swanctl/swanctl.opt
10+
11+lib: with (import ./param-constructors.nix lib);
12+
13+let
14+ certParams = {
15+ file = mkOptionalStrParam ''
16+ Absolute path to the certificate to load. Passed as-is to the daemon, so
17+ it must be readable by it.
18+ </para><para>
19+ Configure either this or <option>handle</option>, but not both, in one section.
20+ '';
21+
22+ handle = mkOptionalHexParam ''
23+ Hex-encoded CKA_ID or handle of the certificate on a token or TPM,
24+ respectively.
25+ </para><para>
26+ Configure either this or <option>file</option>, but not both, in one section.
27+ '';
28+
29+ slot = mkOptionalIntParam ''
30+ Optional slot number of the token that stores the certificate.
31+ '';
32+
33+ module = mkOptionalStrParam ''
34+ Optional PKCS#11 module name.
35+ '';
36+ };
37+in {
38+ authorities = mkAttrsOfParams ({
39+
40+ cacert = mkOptionalStrParam ''
41+ The certificates may use a relative path from the swanctl
42+ <literal>x509ca</literal> directory or an absolute path.
43+ </para><para>
44+ Configure one of <option>cacert</option>,
45+ <option>file</option>, or
46+ <option>handle</option> per section.
47+ '';
48+
49+ cert_uri_base = mkOptionalStrParam ''
50+ Defines the base URI for the Hash and URL feature supported by
51+ IKEv2. Instead of exchanging complete certificates, IKEv2 allows one to
52+ send an URI that resolves to the DER encoded certificate. The certificate
53+ URIs are built by appending the SHA1 hash of the DER encoded certificates
54+ to this base URI.
55+ '';
56+
57+ crl_uris = mkCommaSepListParam [] ''
58+ List of CRL distribution points (ldap, http, or file URI).
59+ '';
60+
61+ ocsp_uris = mkCommaSepListParam [] ''
62+ List of OCSP URIs.
63+ '';
64+
65+ } // certParams) ''
66+ Section defining complementary attributes of certification authorities, each
67+ in its own subsection with an arbitrary yet unique name
68+ '';
69+
70+ connections = mkAttrsOfParams {
71+
72+ version = mkIntParam 0 ''
73+ IKE major version to use for connection.
74+ <itemizedlist>
75+ <listitem><para>1 uses IKEv1 aka ISAKMP,</para></listitem>
76+ <listitem><para>2 uses IKEv2.</para></listitem>
77+ <listitem><para>A connection using the default of 0 accepts both IKEv1 and IKEv2 as
78+ responder, and initiates the connection actively with IKEv2.</para></listitem>
79+ </itemizedlist>
80+ '';
81+
82+ local_addrs = mkCommaSepListParam [] ''
83+ Local address(es) to use for IKE communication. Takes
84+ single IPv4/IPv6 addresses, DNS names, CIDR subnets or IP address ranges.
85+ </para><para>
86+ As initiator, the first non-range/non-subnet is used to initiate the
87+ connection from. As responder, the local destination address must match at
88+ least to one of the specified addresses, subnets or ranges.
89+ </para><para>
90+ If FQDNs are assigned they are resolved every time a configuration lookup
91+ is done. If DNS resolution times out, the lookup is delayed for that time.
92+ '';
93+
94+ remote_addrs = mkCommaSepListParam [] ''
95+ Remote address(es) to use for IKE communication. Takes
96+ single IPv4/IPv6 addresses, DNS names, CIDR subnets or IP address ranges.
97+ </para><para>
98+ As initiator, the first non-range/non-subnet is used to initiate the
99+ connection to. As responder, the initiator source address must match at
100+ least to one of the specified addresses, subnets or ranges.
101+ </para><para>
102+ If FQDNs are assigned they are resolved every time a configuration lookup
103+ is done. If DNS resolution times out, the lookup is delayed for that time.
104+ To initiate a connection, at least one specific address or DNS name must
105+ be specified.
106+ '';
107+
108+ local_port = mkIntParam 500 ''
109+ Local UDP port for IKE communication. By default the port of the socket
110+ backend is used, which is usually <literal>500</literal>. If port
111+ <literal>500</literal> is used, automatic IKE port floating to port
112+ <literal>4500</literal> is used to work around NAT issues.
113+ </para><para>
114+ Using a non-default local IKE port requires support from the socket
115+ backend in use (socket-dynamic).
116+ '';
117+
118+ remote_port = mkIntParam 500 ''
119+ Remote UDP port for IKE communication. If the default of port
120+ <literal>500</literal> is used, automatic IKE port floating to port
121+ <literal>4500</literal> is used to work around NAT issues.
122+ '';
123+
124+ proposals = mkCommaSepListParam ["default"] ''
125+ A proposal is a set of algorithms. For non-AEAD algorithms, this includes
126+ for IKE an encryption algorithm, an integrity algorithm, a pseudo random
127+ function and a Diffie-Hellman group. For AEAD algorithms, instead of
128+ encryption and integrity algorithms, a combined algorithm is used.
129+ </para><para>
130+ In IKEv2, multiple algorithms of the same kind can be specified in a
131+ single proposal, from which one gets selected. In IKEv1, only one
132+ algorithm per kind is allowed per proposal, more algorithms get implicitly
133+ stripped. Use multiple proposals to offer different algorithms
134+ combinations in IKEv1.
135+ </para><para>
136+ Algorithm keywords get separated using dashes. Multiple proposals may be
137+ specified in a list. The special value <literal>default</literal> forms a
138+ default proposal of supported algorithms considered safe, and is usually a
139+ good choice for interoperability.
140+ '';
141+
142+ vips = mkCommaSepListParam [] ''
143+ List of virtual IPs to request in IKEv2 configuration payloads or IKEv1
144+ Mode Config. The wildcard addresses <literal>0.0.0.0</literal> and
145+ <literal>::</literal> request an arbitrary address, specific addresses may
146+ be defined. The responder may return a different address, though, or none
147+ at all.
148+ '';
149+
150+ aggressive = mkYesNoParam no ''
151+ Enables Aggressive Mode instead of Main Mode with Identity
152+ Protection. Aggressive Mode is considered less secure, because the ID and
153+ HASH payloads are exchanged unprotected. This allows a passive attacker to
154+ snoop peer identities, and even worse, start dictionary attacks on the
155+ Preshared Key.
156+ '';
157+
158+ pull = mkYesNoParam yes ''
159+ If the default of yes is used, Mode Config works in pull mode, where the
160+ initiator actively requests a virtual IP. With no, push mode is used,
161+ where the responder pushes down a virtual IP to the initiating peer.
162+ </para><para>
163+ Push mode is currently supported for IKEv1, but not in IKEv2. It is used
164+ by a few implementations only, pull mode is recommended.
165+ '';
166+
167+ dscp = mkStrParam "000000" ''
168+ Differentiated Services Field Codepoint to set on outgoing IKE packets for
169+ this connection. The value is a six digit binary encoded string specifying
170+ the Codepoint to set, as defined in RFC 2474.
171+ '';
172+
173+ encap = mkYesNoParam no ''
174+ To enforce UDP encapsulation of ESP packets, the IKE daemon can fake the
175+ NAT detection payloads. This makes the peer believe that NAT takes place
176+ on the path, forcing it to encapsulate ESP packets in UDP.
177+ </para><para>
178+ Usually this is not required, but it can help to work around connectivity
179+ issues with too restrictive intermediary firewalls.
180+ '';
181+
182+ mobike = mkYesNoParam yes ''
183+ Enables MOBIKE on IKEv2 connections. MOBIKE is enabled by default on IKEv2
184+ connections, and allows mobility of clients and multi-homing on servers by
185+ migrating active IPsec tunnels.
186+ </para><para>
187+ Usually keeping MOBIKE enabled is unproblematic, as it is not used if the
188+ peer does not indicate support for it. However, due to the design of
189+ MOBIKE, IKEv2 always floats to port 4500 starting from the second
190+ exchange. Some implementations don't like this behavior, hence it can be
191+ disabled.
192+ '';
193+
194+ dpd_delay = mkDurationParam "0s" ''
195+ Interval to check the liveness of a peer actively using IKEv2
196+ INFORMATIONAL exchanges or IKEv1 R_U_THERE messages. Active DPD checking
197+ is only enforced if no IKE or ESP/AH packet has been received for the
198+ configured DPD delay.
199+ '';
200+
201+ dpd_timeout = mkDurationParam "0s" ''
202+ Charon by default uses the normal retransmission mechanism and timeouts to
203+ check the liveness of a peer, as all messages are used for liveness
204+ checking. For compatibility reasons, with IKEv1 a custom interval may be
205+ specified; this option has no effect on connections using IKEv2.
206+ '';
207+
208+ fragmentation = mkEnumParam ["yes" "accept" "force" "no"] "yes" ''
209+ Use IKE fragmentation (proprietary IKEv1 extension or RFC 7383 IKEv2
210+ fragmentation). Acceptable values are <literal>yes</literal> (the default
211+ since 5.5.1), <literal>accept</literal> (since versions:5.5.3),
212+ <literal>force</literal> and <literal>no</literal>.
213+ <itemizedlist>
214+ <listitem><para>If set to <literal>yes</literal>, and the peer
215+ supports it, oversized IKE messages will be sent in fragments.</para></listitem>
216+ <listitem><para>If set to
217+ <literal>accept</literal>, support for fragmentation is announced to the peer but the daemon
218+ does not send its own messages in fragments.</para></listitem>
219+ <listitem><para>If set to <literal>force</literal> (only
220+ supported for IKEv1) the initial IKE message will already be fragmented if
221+ required.</para></listitem>
222+ <listitem><para>Finally, setting the option to <literal>no</literal> will disable announcing
223+ support for this feature.</para></listitem>
224+ </itemizedlist>
225+ </para><para>
226+ Note that fragmented IKE messages sent by a peer are always processed
227+ irrespective of the value of this option (even when set to no).
228+ '';
229+
230+ send_certreq = mkYesNoParam yes ''
231+ Send certificate request payloads to offer trusted root CA certificates to
232+ the peer. Certificate requests help the peer to choose an appropriate
233+ certificate/private key for authentication and are enabled by default.
234+ Disabling certificate requests can be useful if too many trusted root CA
235+ certificates are installed, as each certificate request increases the size
236+ of the initial IKE packets.
237+ '';
238+
239+ send_cert = mkEnumParam ["always" "never" "ifasked" ] "ifasked" ''
240+ Send certificate payloads when using certificate authentication.
241+ <itemizedlist>
242+ <listitem><para>With the default of <literal>ifasked</literal> the daemon sends
243+ certificate payloads only if certificate requests have been received.</para></listitem>
244+ <listitem><para><literal>never</literal> disables sending of certificate payloads
245+ altogether,</para></listitem>
246+ <listitem><para><literal>always</literal> causes certificate payloads to be sent
247+ unconditionally whenever certificate authentication is used.</para></listitem>
248+ </itemizedlist>
249+ '';
250+
251+ keyingtries = mkIntParam 1 ''
252+ Number of retransmission sequences to perform during initial
253+ connect. Instead of giving up initiation after the first retransmission
254+ sequence with the default value of <literal>1</literal>, additional
255+ sequences may be started according to the configured value. A value of
256+ <literal>0</literal> initiates a new sequence until the connection
257+ establishes or fails with a permanent error.
258+ '';
259+
260+ unique = mkEnumParam ["no" "never" "keep" "replace"] "no" ''
261+ Connection uniqueness policy to enforce. To avoid multiple connections
262+ from the same user, a uniqueness policy can be enforced.
263+ </para><para>
264+ <itemizedlist>
265+ <listitem><para>
266+ The value <literal>never</literal> does never enforce such a policy, even
267+ if a peer included INITIAL_CONTACT notification messages,
268+ </para></listitem>
269+ <listitem><para>
270+ whereas <literal>no</literal> replaces existing connections for the same
271+ identity if a new one has the INITIAL_CONTACT notify.
272+ </para></listitem>
273+ <listitem><para>
274+ <literal>keep</literal> rejects new connection attempts if the same user
275+ already has an active connection,
276+ </para></listitem>
277+ <listitem><para>
278+ <literal>replace</literal> deletes any existing connection if a new one
279+ for the same user gets established.
280+ </para></listitem>
281+ </itemizedlist>
282+ To compare connections for uniqueness, the remote IKE identity is used. If
283+ EAP or XAuth authentication is involved, the EAP-Identity or XAuth
284+ username is used to enforce the uniqueness policy instead.
285+ </para><para>
286+ On initiators this setting specifies whether an INITIAL_CONTACT notify is
287+ sent during IKE_AUTH if no existing connection is found with the remote
288+ peer (determined by the identities of the first authentication
289+ round). Unless set to <literal>never</literal> the client will send a notify.
290+ '';
291+
292+ reauth_time = mkDurationParam "0s" ''
293+ Time to schedule IKE reauthentication. IKE reauthentication recreates the
294+ IKE/ISAKMP SA from scratch and re-evaluates the credentials. In asymmetric
295+ configurations (with EAP or configuration payloads) it might not be
296+ possible to actively reauthenticate as responder. The IKEv2
297+ reauthentication lifetime negotiation can instruct the client to perform
298+ reauthentication.
299+ </para><para>
300+ Reauthentication is disabled by default. Enabling it usually may lead to
301+ small connection interruptions, as strongSwan uses a break-before-make
302+ policy with IKEv2 to avoid any conflicts with associated tunnel resources.
303+ '';
304+
305+ rekey_time = mkDurationParam "4h" ''
306+ IKE rekeying refreshes key material using a Diffie-Hellman exchange, but
307+ does not re-check associated credentials. It is supported in IKEv2 only,
308+ IKEv1 performs a reauthentication procedure instead.
309+ </para><para>
310+ With the default value IKE rekeying is scheduled every 4 hours, minus the
311+ configured rand_time. If a reauth_time is configured, rekey_time defaults
312+ to zero, disabling rekeying; explicitly set both to enforce rekeying and
313+ reauthentication.
314+ '';
315+
316+ over_time = mkOptionalDurationParam ''
317+ Hard IKE_SA lifetime if rekey/reauth does not complete, as time. To avoid
318+ having an IKE/ISAKMP kept alive if IKE reauthentication or rekeying fails
319+ perpetually, a maximum hard lifetime may be specified. If the IKE_SA fails
320+ to rekey or reauthenticate within the specified time, the IKE_SA gets
321+ closed.
322+ </para><para>
323+ In contrast to CHILD_SA rekeying, over_time is relative in time to the
324+ rekey_time and reauth_time values, as it applies to both.
325+ </para><para>
326+ The default is 10% of the longer of <option>rekey_time</option> and
327+ <option>reauth_time</option>.
328+ '';
329+
330+ rand_time = mkOptionalDurationParam ''
331+ Time range from which to choose a random value to subtract from
332+ rekey/reauth times. To avoid having both peers initiating the rekey/reauth
333+ procedure simultaneously, a random time gets subtracted from the
334+ rekey/reauth times.
335+ </para><para>
336+ The default is equal to the configured <option>over_time</option>.
337+ '';
338+
339+ pools = mkCommaSepListParam [] ''
340+ List of named IP pools to allocate virtual IP addresses
341+ and other configuration attributes from. Each name references a pool by
342+ name from either the pools section or an external pool.
343+ '';
344+
345+ mediation = mkYesNoParam no ''
346+ Whether this connection is a mediation connection, that is, whether this
347+ connection is used to mediate other connections using the IKEv2 Mediation
348+ Extension. Mediation connections create no CHILD_SA.
349+ '';
350+
351+ mediated_by = mkOptionalStrParam ''
352+ The name of the connection to mediate this connection through. If given,
353+ the connection will be mediated through the named mediation
354+ connection. The mediation connection must have mediation enabled.
355+ '';
356+
357+ mediation_peer = mkOptionalStrParam ''
358+ Identity under which the peer is registered at the mediation server, that
359+ is, the IKE identity the other end of this connection uses as its local
360+ identity on its connection to the mediation server. This is the identity
361+ we request the mediation server to mediate us with. Only relevant on
362+ connections that set mediated_by. If it is not given, the remote IKE
363+ identity of the first authentication round of this connection will be
364+ used.
365+ '';
366+
367+ local = mkPrefixedAttrsOfParams {
368+
369+ round = mkIntParam 0 ''
370+ Optional numeric identifier by which authentication rounds are
371+ sorted. If not specified rounds are ordered by their position in the
372+ config file/vici message.
373+ '';
374+
375+ certs = mkCommaSepListParam [] ''
376+ List of certificate candidates to use for
377+ authentication. The certificates may use a relative path from the
378+ swanctl <literal>x509</literal> directory or an absolute path.
379+ </para><para>
380+ The certificate used for authentication is selected based on the
381+ received certificate request payloads. If no appropriate CA can be
382+ located, the first certificate is used.
383+ '';
384+
385+ cert = mkPostfixedAttrsOfParams certParams ''
386+ Section for a certificate candidate to use for
387+ authentication. Certificates in certs are transmitted as binary blobs,
388+ these sections offer more flexibility.
389+ '';
390+
391+ pubkeys = mkCommaSepListParam [] ''
392+ List of raw public key candidates to use for
393+ authentication. The public keys may use a relative path from the swanctl
394+ <literal>pubkey</literal> directory or an absolute path.
395+ </para><para>
396+ Even though multiple local public keys could be defined in principle,
397+ only the first public key in the list is used for authentication.
398+ '';
399+
400+ auth = mkStrParam "pubkey" ''
401+ Authentication to perform locally.
402+ <itemizedlist>
403+ <listitem><para>
404+ The default <literal>pubkey</literal> uses public key authentication
405+ using a private key associated to a usable certificate.
406+ </para></listitem>
407+ <listitem><para>
408+ <literal>psk</literal> uses pre-shared key authentication.
409+ </para></listitem>
410+ <listitem><para>
411+ The IKEv1 specific <literal>xauth</literal> is used for XAuth or Hybrid
412+ authentication,
413+ </para></listitem>
414+ <listitem><para>
415+ while the IKEv2 specific <literal>eap</literal> keyword defines EAP
416+ authentication.
417+ </para></listitem>
418+ <listitem><para>
419+ For <literal>xauth</literal>, a specific backend name may be appended,
420+ separated by a dash. The appropriate <literal>xauth</literal> backend is
421+ selected to perform the XAuth exchange. For traditional XAuth, the
422+ <literal>xauth</literal> method is usually defined in the second
423+ authentication round following an initial <literal>pubkey</literal> (or
424+ <literal>psk</literal>) round. Using <literal>xauth</literal> in the
425+ first round performs Hybrid Mode client authentication.
426+ </para></listitem>
427+ <listitem><para>
428+ For <literal>eap</literal>, a specific EAP method name may be appended, separated by a
429+ dash. An EAP module implementing the appropriate method is selected to
430+ perform the EAP conversation.
431+ </para></listitem>
432+ <listitem><para>
433+ Since 5.4.0, if both peers support RFC 7427 ("Signature Authentication
434+ in IKEv2") specific hash algorithms to be used during IKEv2
435+ authentication may be configured. To do so use <literal>ike:</literal>
436+ followed by a trust chain signature scheme constraint (see description
437+ of the <option>remote</option> section's <option>auth</option>
438+ keyword). For example, with <literal>ike:pubkey-sha384-sha256</literal>
439+ a public key signature scheme with either SHA-384 or SHA-256 would get
440+ used for authentication, in that order and depending on the hash
441+ algorithms supported by the peer. If no specific hash algorithms are
442+ configured, the default is to prefer an algorithm that matches or
443+ exceeds the strength of the signature key. If no constraints with
444+ <literal>ike:</literal> prefix are configured any signature scheme
445+ constraint (without <literal>ike:</literal> prefix) will also apply to
446+ IKEv2 authentication, unless this is disabled in
447+ <literal>strongswan.conf</literal>. To use RSASSA-PSS signatures use
448+ <literal>rsa/pss</literal> instead of <literal>pubkey</literal> or
449+ <literal>rsa</literal> as in e.g.
450+ <literal>ike:rsa/pss-sha256</literal>. If <literal>pubkey</literal> or
451+ <literal>rsa</literal> constraints are configured RSASSA-PSS signatures
452+ will only be used if enabled in <literal>strongswan.conf</literal>(5).
453+ </para></listitem>
454+ </itemizedlist>
455+ '';
456+
457+ id = mkOptionalStrParam ''
458+ IKE identity to use for authentication round. When using certificate
459+ authentication, the IKE identity must be contained in the certificate,
460+ either as subject or as subjectAltName.
461+ '';
462+
463+ eap_id = mkOptionalStrParam ''
464+ Client EAP-Identity to use in EAP-Identity exchange and the EAP method.
465+ '';
466+
467+ aaa_id = mkOptionalStrParam ''
468+ Server side EAP-Identity to expect in the EAP method. Some EAP methods,
469+ such as EAP-TLS, use an identity for the server to perform mutual
470+ authentication. This identity may differ from the IKE identity,
471+ especially when EAP authentication is delegated from the IKE responder
472+ to an AAA backend.
473+ </para><para>
474+ For EAP-(T)TLS, this defines the identity for which the server must
475+ provide a certificate in the TLS exchange.
476+ '';
477+
478+ xauth_id = mkOptionalStrParam ''
479+ Client XAuth username used in the XAuth exchange.
480+ '';
481+
482+ } ''
483+ Section for a local authentication round. A local authentication round
484+ defines the rules how authentication is performed for the local
485+ peer. Multiple rounds may be defined to use IKEv2 RFC 4739 Multiple
486+ Authentication or IKEv1 XAuth.
487+ </para><para>
488+ Each round is defined in a section having <literal>local</literal> as
489+ prefix, and an optional unique suffix. To define a single authentication
490+ round, the suffix may be omitted.
491+ '';
492+
493+ remote = mkPrefixedAttrsOfParams {
494+
495+ round = mkIntParam 0 ''
496+ Optional numeric identifier by which authentication rounds are
497+ sorted. If not specified rounds are ordered by their position in the
498+ config file/vici message.
499+ '';
500+
501+ id = mkStrParam "%any" ''
502+ IKE identity to expect for authentication round. When using certificate
503+ authentication, the IKE identity must be contained in the certificate,
504+ either as subject or as subjectAltName.
505+ '';
506+
507+ eap_id = mkOptionalStrParam ''
508+ Identity to use as peer identity during EAP authentication. If set to
509+ <literal>%any</literal> the EAP-Identity method will be used to ask the
510+ client for an EAP identity.
511+ '';
512+
513+ groups = mkCommaSepListParam [] ''
514+ Authorization group memberships to require. The peer
515+ must prove membership to at least one of the specified groups. Group
516+ membership can be certified by different means, for example by
517+ appropriate Attribute Certificates or by an AAA backend involved in the
518+ authentication.
519+ '';
520+
521+ cert_policy = mkCommaSepListParam [] ''
522+ List of certificate policy OIDs the peer's certificate
523+ must have. OIDs are specified using the numerical dotted representation.
524+ '';
525+
526+ certs = mkCommaSepListParam [] ''
527+ List of certificates to accept for authentication. The certificates may
528+ use a relative path from the swanctl <literal>x509</literal> directory
529+ or an absolute path.
530+ '';
531+
532+ cert = mkPostfixedAttrsOfParams certParams ''
533+ Section for a certificate candidate to use for
534+ authentication. Certificates in certs are transmitted as binary blobs,
535+ these sections offer more flexibility.
536+ '';
537+
538+ cacerts = mkCommaSepListParam [] ''
539+ List of CA certificates to accept for
540+ authentication. The certificates may use a relative path from the
541+ swanctl <literal>x509ca</literal> directory or an absolute path.
542+ '';
543+
544+ cacert = mkPostfixedAttrsOfParams certParams ''
545+ Section for a CA certificate to accept for authentication. Certificates
546+ in cacerts are transmitted as binary blobs, these sections offer more
547+ flexibility.
548+ '';
549+
550+ pubkeys = mkCommaSepListParam [] ''
551+ List of raw public keys to accept for
552+ authentication. The public keys may use a relative path from the swanctl
553+ <literal>pubkey</literal> directory or an absolute path.
554+ '';
555+
556+ revocation = mkEnumParam ["strict" "ifuri" "relaxed"] "relaxed" ''
557+ Certificate revocation policy for CRL or OCSP revocation.
558+ <itemizedlist>
559+ <listitem><para>
560+ A <literal>strict</literal> revocation policy fails if no revocation information is
561+ available, i.e. the certificate is not known to be unrevoked.
562+ </para></listitem>
563+ <listitem><para>
564+ <literal>ifuri</literal> fails only if a CRL/OCSP URI is available, but certificate
565+ revocation checking fails, i.e. there should be revocation information
566+ available, but it could not be obtained.
567+ </para></listitem>
568+ <listitem><para>
569+ The default revocation policy <literal>relaxed</literal> fails only if a certificate is
570+ revoked, i.e. it is explicitly known that it is bad.
571+ </para></listitem>
572+ </itemizedlist>
573+ '';
574+
575+ auth = mkStrParam "pubkey" ''
576+ Authentication to expect from remote. See the <option>local</option>
577+ section's <option>auth</option> keyword description about the details of
578+ supported mechanisms.
579+ </para><para>
580+ Since 5.4.0, to require a trustchain public key strength for the remote
581+ side, specify the key type followed by the minimum strength in bits (for
582+ example <literal>ecdsa-384</literal> or
583+ <literal>rsa-2048-ecdsa-256</literal>). To limit the acceptable set of
584+ hashing algorithms for trustchain validation, append hash algorithms to
585+ pubkey or a key strength definition (for example
586+ <literal>pubkey-sha256-sha512</literal>,
587+ <literal>rsa-2048-sha256-sha384-sha512</literal> or
588+ <literal>rsa-2048-sha256-ecdsa-256-sha256-sha384</literal>).
589+ Unless disabled in <literal>strongswan.conf</literal>, or explicit IKEv2
590+ signature constraints are configured (refer to the description of the
591+ <option>local</option> section's <option>auth</option> keyword for
592+ details), such key types and hash algorithms are also applied as
593+ constraints against IKEv2 signature authentication schemes used by the
594+ remote side. To require RSASSA-PSS signatures use
595+ <literal>rsa/pss</literal> instead of <literal>pubkey</literal> or
596+ <literal>rsa</literal> as in e.g. <literal>rsa/pss-sha256</literal>. If
597+ <literal>pubkey</literal> or <literal>rsa</literal> constraints are
598+ configured RSASSA-PSS signatures will only be accepted if enabled in
599+ <literal>strongswan.conf</literal>(5).
600+ </para><para>
601+ To specify trust chain constraints for EAP-(T)TLS, append a colon to the
602+ EAP method, followed by the key type/size and hash algorithm as
603+ discussed above (e.g. <literal>eap-tls:ecdsa-384-sha384</literal>).
604+ '';
605+
606+ } ''
607+ Section for a remote authentication round. A remote authentication round
608+ defines the constraints how the peers must authenticate to use this
609+ connection. Multiple rounds may be defined to use IKEv2 RFC 4739 Multiple
610+ Authentication or IKEv1 XAuth.
611+ </para><para>
612+ Each round is defined in a section having <literal>remote</literal> as
613+ prefix, and an optional unique suffix. To define a single authentication
614+ round, the suffix may be omitted.
615+ '';
616+
617+ children = mkAttrsOfParams {
618+ ah_proposals = mkCommaSepListParam [] ''
619+ AH proposals to offer for the CHILD_SA. A proposal is a set of
620+ algorithms. For AH, this includes an integrity algorithm and an optional
621+ Diffie-Hellman group. If a DH group is specified, CHILD_SA/Quick Mode
622+ rekeying and initial negotiation uses a separate Diffie-Hellman exchange
623+ using the specified group (refer to esp_proposals for details).
624+ </para><para>
625+ In IKEv2, multiple algorithms of the same kind can be specified in a
626+ single proposal, from which one gets selected. In IKEv1, only one
627+ algorithm per kind is allowed per proposal, more algorithms get
628+ implicitly stripped. Use multiple proposals to offer different algorithms
629+ combinations in IKEv1.
630+ </para><para>
631+ Algorithm keywords get separated using dashes. Multiple proposals may be
632+ specified in a list. The special value <literal>default</literal> forms
633+ a default proposal of supported algorithms considered safe, and is
634+ usually a good choice for interoperability. By default no AH proposals
635+ are included, instead ESP is proposed.
636+ '';
637+
638+ esp_proposals = mkCommaSepListParam ["default"] ''
639+ ESP proposals to offer for the CHILD_SA. A proposal is a set of
640+ algorithms. For ESP non-AEAD proposals, this includes an integrity
641+ algorithm, an encryption algorithm, an optional Diffie-Hellman group and
642+ an optional Extended Sequence Number Mode indicator. For AEAD proposals,
643+ a combined mode algorithm is used instead of the separate
644+ encryption/integrity algorithms.
645+ </para><para>
646+ If a DH group is specified, CHILD_SA/Quick Mode rekeying and initial
647+ negotiation use a separate Diffie-Hellman exchange using the specified
648+ group. However, for IKEv2, the keys of the CHILD_SA created implicitly
649+ with the IKE_SA will always be derived from the IKE_SA's key material. So
650+ any DH group specified here will only apply when the CHILD_SA is later
651+ rekeyed or is created with a separate CREATE_CHILD_SA exchange. A
652+ proposal mismatch might, therefore, not immediately be noticed when the
653+ SA is established, but may later cause rekeying to fail.
654+ </para><para>
655+ Extended Sequence Number support may be indicated with the
656+ <literal>esn</literal> and <literal>noesn</literal> values, both may be
657+ included to indicate support for both modes. If omitted,
658+ <literal>noesn</literal> is assumed.
659+ </para><para>
660+ In IKEv2, multiple algorithms of the same kind can be specified in a
661+ single proposal, from which one gets selected. In IKEv1, only one
662+ algorithm per kind is allowed per proposal, more algorithms get
663+ implicitly stripped. Use multiple proposals to offer different algorithms
664+ combinations in IKEv1.
665+ </para><para>
666+ Algorithm keywords get separated using dashes. Multiple proposals may be
667+ specified as a list. The special value <literal>default</literal> forms
668+ a default proposal of supported algorithms considered safe, and is
669+ usually a good choice for interoperability. If no algorithms are
670+ specified for AH nor ESP, the default set of algorithms for ESP is
671+ included.
672+ '';
673+
674+ sha256_96 = mkYesNoParam no ''
675+ HMAC-SHA-256 is used with 128-bit truncation with IPsec. For
676+ compatibility with implementations that incorrectly use 96-bit truncation
677+ this option may be enabled to configure the shorter truncation length in
678+ the kernel. This is not negotiated, so this only works with peers that
679+ use the incorrect truncation length (or have this option enabled).
680+ '';
681+
682+ local_ts = mkCommaSepListParam ["dynamic"] ''
683+ List of local traffic selectors to include in CHILD_SA. Each selector is
684+ a CIDR subnet definition, followed by an optional proto/port
685+ selector. The special value <literal>dynamic</literal> may be used
686+ instead of a subnet definition, which gets replaced by the tunnel outer
687+ address or the virtual IP, if negotiated. This is the default.
688+ </para><para>
689+ A protocol/port selector is surrounded by opening and closing square
690+ brackets. Between these brackets, a numeric or getservent(3) protocol
691+ name may be specified. After the optional protocol restriction, an
692+ optional port restriction may be specified, separated by a slash. The
693+ port restriction may be numeric, a getservent(3) service name, or the
694+ special value <literal>opaque</literal> for RFC 4301 OPAQUE
695+ selectors. Port ranges may be specified as well, none of the kernel
696+ backends currently support port ranges, though.
697+ </para><para>
698+ When IKEv1 is used only the first selector is interpreted, except if the
699+ Cisco Unity extension plugin is used. This is due to a limitation of the
700+ IKEv1 protocol, which only allows a single pair of selectors per
701+ CHILD_SA. So to tunnel traffic matched by several pairs of selectors when
702+ using IKEv1 several children (CHILD_SAs) have to be defined that cover
703+ the selectors. The IKE daemon uses traffic selector narrowing for IKEv1,
704+ the same way it is standardized and implemented for IKEv2. However, this
705+ may lead to problems with other implementations. To avoid that, configure
706+ identical selectors in such scenarios.
707+ '';
708+
709+ remote_ts = mkCommaSepListParam ["dynamic"] ''
710+ List of remote selectors to include in CHILD_SA. See
711+ <option>local_ts</option> for a description of the selector syntax.
712+ '';
713+
714+ rekey_time = mkDurationParam "1h" ''
715+ Time to schedule CHILD_SA rekeying. CHILD_SA rekeying refreshes key
716+ material, optionally using a Diffie-Hellman exchange if a group is
717+ specified in the proposal. To avoid rekey collisions initiated by both
718+ ends simultaneously, a value in the range of <option>rand_time</option>
719+ gets subtracted to form the effective soft lifetime.
720+ </para><para>
721+ By default CHILD_SA rekeying is scheduled every hour, minus
722+ <option>rand_time</option>.
723+ '';
724+
725+ life_time = mkOptionalDurationParam ''
726+ Maximum lifetime before CHILD_SA gets closed. Usually this hard lifetime
727+ is never reached, because the CHILD_SA gets rekeyed before. If that fails
728+ for whatever reason, this limit closes the CHILD_SA. The default is 10%
729+ more than the <option>rekey_time</option>.
730+ '';
731+
732+ rand_time = mkOptionalDurationParam ''
733+ Time range from which to choose a random value to subtract from
734+ <option>rekey_time</option>. The default is the difference between
735+ <option>life_time</option> and <option>rekey_time</option>.
736+ '';
737+
738+ rekey_bytes = mkIntParam 0 ''
739+ Number of bytes processed before initiating CHILD_SA rekeying. CHILD_SA
740+ rekeying refreshes key material, optionally using a Diffie-Hellman
741+ exchange if a group is specified in the proposal.
742+ </para><para>
743+ To avoid rekey collisions initiated by both ends simultaneously, a value
744+ in the range of <option>rand_bytes</option> gets subtracted to form the
745+ effective soft volume limit.
746+ </para><para>
747+ Volume based CHILD_SA rekeying is disabled by default.
748+ '';
749+
750+ life_bytes = mkOptionalIntParam ''
751+ Maximum bytes processed before CHILD_SA gets closed. Usually this hard
752+ volume limit is never reached, because the CHILD_SA gets rekeyed
753+ before. If that fails for whatever reason, this limit closes the
754+ CHILD_SA. The default is 10% more than <option>rekey_bytes</option>.
755+ '';
756+
757+ rand_bytes = mkOptionalIntParam ''
758+ Byte range from which to choose a random value to subtract from
759+ <option>rekey_bytes</option>. The default is the difference between
760+ <option>life_bytes</option> and <option>rekey_bytes</option>.
761+ '';
762+
763+ rekey_packets = mkIntParam 0 ''
764+ Number of packets processed before initiating CHILD_SA rekeying. CHILD_SA
765+ rekeying refreshes key material, optionally using a Diffie-Hellman
766+ exchange if a group is specified in the proposal.
767+ </para><para>
768+ To avoid rekey collisions initiated by both ends simultaneously, a value
769+ in the range of <option>rand_packets</option> gets subtracted to form
770+ the effective soft packet count limit.
771+ </para><para>
772+ Packet count based CHILD_SA rekeying is disabled by default.
773+ '';
774+
775+ life_packets = mkOptionalIntParam ''
776+ Maximum number of packets processed before CHILD_SA gets closed. Usually
777+ this hard packets limit is never reached, because the CHILD_SA gets
778+ rekeyed before. If that fails for whatever reason, this limit closes the
779+ CHILD_SA.
780+ </para><para>
781+ The default is 10% more than <option>rekey_bytes</option>.
782+ '';
783+
784+ rand_packets = mkOptionalIntParam ''
785+ Packet range from which to choose a random value to subtract from
786+ <option>rekey_packets</option>. The default is the difference between
787+ <option>life_packets</option> and <option>rekey_packets</option>.
788+ '';
789+
790+ updown = mkOptionalStrParam ''
791+ Updown script to invoke on CHILD_SA up and down events.
792+ '';
793+
794+ hostaccess = mkYesNoParam yes ''
795+ Hostaccess variable to pass to <literal>updown</literal> script.
796+ '';
797+
798+ mode = mkEnumParam [ "tunnel"
799+ "transport"
800+ "transport_proxy"
801+ "beet"
802+ "pass"
803+ "drop"
804+ ] "tunnel" ''
805+ IPsec Mode to establish CHILD_SA with.
806+ <itemizedlist>
807+ <listitem><para>
808+ <literal>tunnel</literal> negotiates the CHILD_SA in IPsec Tunnel Mode,
809+ </para></listitem>
810+ <listitem><para>
811+ whereas <literal>transport</literal> uses IPsec Transport Mode.
812+ </para></listitem>
813+ <listitem><para>
814+ <literal>transport_proxy</literal> signifying the special Mobile IPv6
815+ Transport Proxy Mode.
816+ </para></listitem>
817+ <listitem><para>
818+ <literal>beet</literal> is the Bound End to End Tunnel mixture mode,
819+ working with fixed inner addresses without the need to include them in
820+ each packet.
821+ </para></listitem>
822+ <listitem><para>
823+ Both <literal>transport</literal> and <literal>beet</literal> modes are
824+ subject to mode negotiation; <literal>tunnel</literal> mode is
825+ negotiated if the preferred mode is not available.
826+ </para></listitem>
827+ <listitem><para>
828+ <literal>pass</literal> and <literal>drop</literal> are used to install
829+ shunt policies which explicitly bypass the defined traffic from IPsec
830+ processing or drop it, respectively.
831+ </para></listitem>
832+ </itemizedlist>
833+ '';
834+
835+ policies = mkYesNoParam yes ''
836+ Whether to install IPsec policies or not. Disabling this can be useful in
837+ some scenarios e.g. MIPv6, where policies are not managed by the IKE
838+ daemon. Since 5.3.3.
839+ '';
840+
841+ policies_fwd_out = mkYesNoParam no ''
842+ Whether to install outbound FWD IPsec policies or not. Enabling this is
843+ required in case there is a drop policy that would match and block
844+ forwarded traffic for this CHILD_SA. Since 5.5.1.
845+ '';
846+
847+ dpd_action = mkEnumParam ["clear" "trap" "restart"] "clear" ''
848+ Action to perform for this CHILD_SA on DPD timeout. The default clear
849+ closes the CHILD_SA and does not take further action. trap installs a
850+ trap policy, which will catch matching traffic and tries to re-negotiate
851+ the tunnel on-demand. restart immediately tries to re-negotiate the
852+ CHILD_SA under a fresh IKE_SA.
853+ '';
854+
855+ ipcomp = mkYesNoParam no ''
856+ Enable IPComp compression before encryption. If enabled, IKE tries to
857+ negotiate IPComp compression to compress ESP payload data prior to
858+ encryption.
859+ '';
860+
861+ inactivity = mkDurationParam "0s" ''
862+ Timeout before closing CHILD_SA after inactivity. If no traffic has been
863+ processed in either direction for the configured timeout, the CHILD_SA
864+ gets closed due to inactivity. The default value of 0 disables inactivity
865+ checks.
866+ '';
867+
868+ reqid = mkIntParam 0 ''
869+ Fixed reqid to use for this CHILD_SA. This might be helpful in some
870+ scenarios, but works only if each CHILD_SA configuration is instantiated
871+ not more than once. The default of 0 uses dynamic reqids, allocated
872+ incrementally.
873+ '';
874+
875+ priority = mkIntParam 0 ''
876+ Optional fixed priority for IPsec policies. This could be useful to
877+ install high-priority drop policies. The default of 0 uses dynamically
878+ calculated priorities based on the size of the traffic selectors.
879+ '';
880+
881+ interface = mkOptionalStrParam ''
882+ Optional interface name to restrict outbound IPsec policies.
883+ '';
884+
885+ mark_in = mkStrParam "0/0x00000000" ''
886+ Netfilter mark and mask for input traffic. On Linux, Netfilter may
887+ require marks on each packet to match an SA/policy having that option
888+ set. This allows installing duplicate policies and enables Netfilter
889+ rules to select specific SAs/policies for incoming traffic. Note that
890+ inbound marks are only set on policies, by default, unless
891+ <option>mark_in_sa</option> is enabled. The special value
892+ <literal>%unique</literal> sets a unique mark on each CHILD_SA instance,
893+ beyond that the value <literal>%unique-dir</literal> assigns a different
894+ unique mark for each
895+ </para><para>
896+ An additional mask may be appended to the mark, separated by
897+ <literal>/</literal>. The default mask if omitted is
898+ <literal>0xffffffff</literal>.
899+ '';
900+
901+ mark_in_sa = mkYesNoParam no ''
902+ Whether to set <option>mark_in</option> on the inbound SA. By default,
903+ the inbound mark is only set on the inbound policy. The tuple destination
904+ address, protocol and SPI is unique and the mark is not required to find
905+ the correct SA, allowing to mark traffic after decryption instead (where
906+ more specific selectors may be used) to match different policies. Marking
907+ packets before decryption is still possible, even if no mark is set on
908+ the SA.
909+ '';
910+
911+ mark_out = mkStrParam "0/0x00000000" ''
912+ Netfilter mark and mask for output traffic. On Linux, Netfilter may
913+ require marks on each packet to match a policy/SA having that option
914+ set. This allows installing duplicate policies and enables Netfilter
915+ rules to select specific policies/SAs for outgoing traffic. The special
916+ value <literal>%unique</literal> sets a unique mark on each CHILD_SA
917+ instance, beyond that the value <literal>%unique-dir</literal> assigns a
918+ different unique mark for each CHILD_SA direction (in/out).
919+ </para><para>
920+ An additional mask may be appended to the mark, separated by
921+ <literal>/</literal>. The default mask if omitted is
922+ <literal>0xffffffff</literal>.
923+ '';
924+
925+ tfc_padding = mkParamOfType (with lib.types; either int (enum ["mtu"])) 0 ''
926+ Pads ESP packets with additional data to have a consistent ESP packet
927+ size for improved Traffic Flow Confidentiality. The padding defines the
928+ minimum size of all ESP packets sent. The default value of
929+ <literal>0</literal> disables TFC padding, the special value
930+ <literal>mtu</literal> adds TFC padding to create a packet size equal to
931+ the Path Maximum Transfer Unit.
932+ '';
933+
934+ replay_window = mkIntParam 32 ''
935+ IPsec replay window to configure for this CHILD_SA. Larger values than
936+ the default of <literal>32</literal> are supported using the Netlink
937+ backend only, a value of <literal>0</literal> disables IPsec replay
938+ protection.
939+ '';
940+
941+ hw_offload = mkYesNoParam no ''
942+ Enable hardware offload for this CHILD_SA, if supported by the IPsec
943+ implementation.
944+ '';
945+
946+ start_action = mkEnumParam ["none" "trap" "start"] "none" ''
947+ Action to perform after loading the configuration.
948+ <itemizedlist>
949+ <listitem><para>
950+ The default of <literal>none</literal> loads the connection only, which
951+ then can be manually initiated or used as a responder configuration.
952+ </para></listitem>
953+ <listitem><para>
954+ The value <literal>trap</literal> installs a trap policy, which triggers
955+ the tunnel as soon as matching traffic has been detected.
956+ </para></listitem>
957+ <listitem><para>
958+ The value <literal>start</literal> initiates the connection actively.
959+ </para></listitem>
960+ </itemizedlist>
961+ When unloading or replacing a CHILD_SA configuration having a
962+ <option>start_action</option> different from <literal>none</literal>,
963+ the inverse action is performed. Configurations with
964+ <literal>start</literal> get closed, while such with
965+ <literal>trap</literal> get uninstalled.
966+ '';
967+
968+ close_action = mkEnumParam ["none" "trap" "start"] "none" ''
969+ Action to perform after a CHILD_SA gets closed by the peer.
970+ <itemizedlist>
971+ <listitem><para>
972+ The default of <literal>none</literal> does not take any action,
973+ </para></listitem>
974+ <listitem><para>
975+ <literal>trap</literal> installs a trap policy for the CHILD_SA.
976+ </para></listitem>
977+ <listitem><para>
978+ <literal>start</literal> tries to re-create the CHILD_SA.
979+ </para></listitem>
980+ </itemizedlist>
981+ </para><para>
982+ <option>close_action</option> does not provide any guarantee that the
983+ CHILD_SA is kept alive. It acts on explicit close messages only, but not
984+ on negotiation failures. Use trap policies to reliably re-create failed
985+ CHILD_SAs.
986+ '';
987+
988+ } ''
989+ CHILD_SA configuration sub-section. Each connection definition may have
990+ one or more sections in its <option>children</option> subsection. The
991+ section name defines the name of the CHILD_SA configuration, which must be
992+ unique within the connection (denoted <child> below).
993+ '';
994+ } ''
995+ Section defining IKE connection configurations, each in its own subsection
996+ with an arbitrary yet unique name
997+ '';
998+
999+ secrets = let
1000+ mkEapXauthParams = mkPrefixedAttrsOfParams {
1001+ secret = mkOptionalStrParam ''
1002+ Value of the EAP/XAuth secret. It may either be an ASCII string, a hex
1003+ encoded string if it has a 0x prefix or a Base64 encoded string if it
1004+ has a 0s prefix in its value.
1005+ '';
1006+
1007+ id = mkPrefixedAttrsOfParam (mkOptionalStrParam "") ''
1008+ Identity the EAP/XAuth secret belongs to. Multiple unique identities may
1009+ be specified, each having an <literal>id</literal> prefix, if a secret
1010+ is shared between multiple users.
1011+ '';
1012+
1013+ } ''
1014+ EAP secret section for a specific secret. Each EAP secret is defined in a
1015+ unique section having the <literal>eap</literal> prefix. EAP secrets are
1016+ used for XAuth authentication as well.
1017+ '';
1018+
1019+ in {
1020+
1021+ eap = mkEapXauthParams;
1022+ xauth = mkEapXauthParams;
1023+
1024+ ntlm = mkPrefixedAttrsOfParams {
1025+ secret = mkOptionalStrParam ''
1026+ Value of the NTLM secret, which is the NT Hash of the actual secret,
1027+ that is, MD4(UTF-16LE(secret)). The resulting 16-byte value may either
1028+ be given as a hex encoded string with a 0x prefix or as a Base64 encoded
1029+ string with a 0s prefix.
1030+ '';
1031+
1032+ id = mkPrefixedAttrsOfParam (mkOptionalStrParam "") ''
1033+ Identity the NTLM secret belongs to. Multiple unique identities may be
1034+ specified, each having an id prefix, if a secret is shared between
1035+ multiple users.
1036+ '';
1037+ } ''
1038+ NTLM secret section for a specific secret. Each NTLM secret is defined in
1039+ a unique section having the <literal>ntlm</literal> prefix. NTLM secrets
1040+ may only be used for EAP-MSCHAPv2 authentication.
1041+ '';
1042+
1043+ ike = mkPrefixedAttrsOfParams {
1044+ secret = mkOptionalStrParam ''
1045+ Value of the IKE preshared secret. It may either be an ASCII string, a
1046+ hex encoded string if it has a 0x prefix or a Base64 encoded string if
1047+ it has a 0s prefix in its value.
1048+ '';
1049+
1050+ id = mkPrefixedAttrsOfParam (mkOptionalStrParam "") ''
1051+ IKE identity the IKE preshared secret belongs to. Multiple unique
1052+ identities may be specified, each having an <literal>id</literal>
1053+ prefix, if a secret is shared between multiple peers.
1054+ '';
1055+ } ''
1056+ IKE preshared secret section for a specific secret. Each IKE PSK is
1057+ defined in a unique section having the <literal>ike</literal> prefix.
1058+ '';
1059+
1060+ private = mkPrefixedAttrsOfParams {
1061+ file = mkOptionalStrParam ''
1062+ File name in the private folder for which this passphrase should be used.
1063+ '';
1064+
1065+ secret = mkOptionalStrParam ''
1066+ Value of decryption passphrase for private key.
1067+ '';
1068+ } ''
1069+ Private key decryption passphrase for a key in the
1070+ <literal>private</literal> folder.
1071+ '';
1072+
1073+ rsa = mkPrefixedAttrsOfParams {
1074+ file = mkOptionalStrParam ''
1075+ File name in the <literal>rsa</literal> folder for which this passphrase
1076+ should be used.
1077+ '';
1078+ secret = mkOptionalStrParam ''
1079+ Value of decryption passphrase for RSA key.
1080+ '';
1081+ } ''
1082+ Private key decryption passphrase for a key in the <literal>rsa</literal>
1083+ folder.
1084+ '';
1085+
1086+ ecdsa = mkPrefixedAttrsOfParams {
1087+ file = mkOptionalStrParam ''
1088+ File name in the <literal>ecdsa</literal> folder for which this
1089+ passphrase should be used.
1090+ '';
1091+ secret = mkOptionalStrParam ''
1092+ Value of decryption passphrase for ECDSA key.
1093+ '';
1094+ } ''
1095+ Private key decryption passphrase for a key in the
1096+ <literal>ecdsa</literal> folder.
1097+ '';
1098+
1099+ pkcs8 = mkPrefixedAttrsOfParams {
1100+ file = mkOptionalStrParam ''
1101+ File name in the <literal>pkcs8</literal> folder for which this
1102+ passphrase should be used.
1103+ '';
1104+ secret = mkOptionalStrParam ''
1105+ Value of decryption passphrase for PKCS#8 key.
1106+ '';
1107+ } ''
1108+ Private key decryption passphrase for a key in the
1109+ <literal>pkcs8</literal> folder.
1110+ '';
1111+
1112+ pkcs12 = mkPrefixedAttrsOfParams {
1113+ file = mkOptionalStrParam ''
1114+ File name in the <literal>pkcs12</literal> folder for which this
1115+ passphrase should be used.
1116+ '';
1117+ secret = mkOptionalStrParam ''
1118+ Value of decryption passphrase for PKCS#12 container.
1119+ '';
1120+ } ''
1121+ PKCS#12 decryption passphrase for a container in the
1122+ <literal>pkcs12</literal> folder.
1123+ '';
1124+
1125+ token = mkPrefixedAttrsOfParams {
1126+ handle = mkOptionalHexParam ''
1127+ Hex-encoded CKA_ID or handle of the private key on the token or TPM,
1128+ respectively.
1129+ '';
1130+
1131+ slot = mkOptionalIntParam ''
1132+ Optional slot number to access the token.
1133+ '';
1134+
1135+ module = mkOptionalStrParam ''
1136+ Optional PKCS#11 module name to access the token.
1137+ '';
1138+
1139+ pin = mkOptionalStrParam ''
1140+ Optional PIN required to access the key on the token. If none is
1141+ provided the user is prompted during an interactive
1142+ <literal>--load-creds</literal> call.
1143+ '';
1144+ } ''Definition for a private key that's stored on a token/smartcard/TPM.'';
1145+
1146+ };
1147+
1148+ pools = mkAttrsOfParams {
1149+ addrs = mkOptionalStrParam ''
1150+ Subnet or range defining addresses allocated in pool. Accepts a single
1151+ CIDR subnet defining the pool to allocate addresses from or an address
1152+ range (<from>-<to>). Pools must be unique and non-overlapping.
1153+ '';
1154+
1155+ dns = mkCommaSepListParam [] "Address or CIDR subnets";
1156+ nbns = mkCommaSepListParam [] "Address or CIDR subnets";
1157+ dhcp = mkCommaSepListParam [] "Address or CIDR subnets";
1158+ netmask = mkCommaSepListParam [] "Address or CIDR subnets";
1159+ server = mkCommaSepListParam [] "Address or CIDR subnets";
1160+ subnet = mkCommaSepListParam [] "Address or CIDR subnets";
1161+ split_include = mkCommaSepListParam [] "Address or CIDR subnets";
1162+ split_exclude = mkCommaSepListParam [] "Address or CIDR subnets";
1163+ } ''
1164+ Section defining named pools. Named pools may be referenced by connections
1165+ with the pools option to assign virtual IPs and other configuration
1166+ attributes. Each pool must have a unique name (denoted <name> below).
1167+ '';
1168+}
nixos/modules/services/networking/tcpcrypt.nix+5−5
@@ -44,9 +44,9 @@ in
4444 path = [ pkgs.iptables pkgs.tcpcrypt pkgs.procps ];
4545
4646 preStart = ''
47− mkdir -p /var/run/tcpcryptd
48− chown tcpcryptd /var/run/tcpcryptd
49− sysctl -n net.ipv4.tcp_ecn >/run/pre-tcpcrypt-ecn-state
47+ mkdir -p /run/tcpcryptd
48+ chown tcpcryptd /run/tcpcryptd
49+ sysctl -n net.ipv4.tcp_ecn > /run/tcpcryptd/pre-tcpcrypt-ecn-state
5050 sysctl -w net.ipv4.tcp_ecn=0
5151
5252 iptables -t raw -N nixos-tcpcrypt
@@ -61,8 +61,8 @@ in
6161 script = "tcpcryptd -x 0x10";
6262
6363 postStop = ''
64− if [ -f /run/pre-tcpcrypt-ecn-state ]; then
65− sysctl -w net.ipv4.tcp_ecn=$(cat /run/pre-tcpcrypt-ecn-state)
64+ if [ -f /run/tcpcryptd/pre-tcpcrypt-ecn-state ]; then
65+ sysctl -w net.ipv4.tcp_ecn=$(cat /run/tcpcryptd/pre-tcpcrypt-ecn-state)
6666 fi
6767
6868 iptables -t mangle -D POSTROUTING -j nixos-tcpcrypt || true
nixos/modules/services/networking/unbound.nix+1−1
@@ -112,7 +112,7 @@ in
112112 mkdir -m 0755 -p ${stateDir}/dev/
113113 cp ${confFile} ${stateDir}/unbound.conf
114114 ${optionalString cfg.enableRootTrustAnchor ''
115− ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile}
115+ ${pkgs.unbound}/bin/unbound-anchor -a ${rootTrustAnchorFile} || echo "Root anchor updated!"
116116 chown unbound ${stateDir} ${rootTrustAnchorFile}
117117 ''}
118118 touch ${stateDir}/dev/random
nixos/modules/services/networking/wireguard.nix+51−50
@@ -53,30 +53,30 @@ let
5353 };
5454
5555 preSetup = mkOption {
56− example = literalExample [''
56+ example = literalExample ''
5757 ${pkgs.iproute}/bin/ip netns add foo
58− ''];
59− default = [];
60− type = with types; listOf str;
58+ '';
59+ default = "";
60+ type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
6161 description = ''
62− A list of commands called at the start of the interface setup.
62+ Commands called at the start of the interface setup.
6363 '';
6464 };
6565
6666 postSetup = mkOption {
67− example = literalExample [''
68− ${pkgs.bash} -c 'printf "nameserver 10.200.100.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0'
69− ''];
70− default = [];
71− type = with types; listOf str;
72− description = "A list of commands called at the end of the interface setup.";
67+ example = literalExample ''
68+ printf "nameserver 10.200.100.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
69+ '';
70+ default = "";
71+ type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
72+ description = "Commands called at the end of the interface setup.";
7373 };
7474
7575 postShutdown = mkOption {
76− example = literalExample ["${pkgs.openresolv}/bin/resolvconf -d wg0"];
77− default = [];
78− type = with types; listOf str;
79− description = "A list of commands called after shutting down the interface.";
76+ example = literalExample "${pkgs.openresolv}/bin/resolvconf -d wg0";
77+ default = "";
78+ type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
79+ description = "Commands called after shutting down the interface.";
8080 };
8181
8282 table = mkOption {
@@ -182,9 +182,6 @@ let
182182
183183 };
184184
185− ipCommand = "${pkgs.iproute}/bin/ip";
186− wgCommand = "${pkgs.wireguard}/bin/wg";
187−
188185 generateUnit = name: values:
189186 # exactly one way to specify the private key must be set
190187 assert (values.privateKey != null) != (values.privateKeyFile != null);
@@ -196,49 +193,53 @@ let
196193 after = [ "network.target" ];
197194 wantedBy = [ "multi-user.target" ];
198195 environment.DEVICE = name;
196+ path = with pkgs; [ kmod iproute wireguard ];
199197
200198 serviceConfig = {
201199 Type = "oneshot";
202200 RemainAfterExit = true;
203− ExecStart = flatten([
204− values.preSetup
201+ };
202+
203+ script = ''
204+ modprobe wireguard
205+
206+ ${values.preSetup}
205207
206− "-${ipCommand} link del dev ${name}"
207− "${ipCommand} link add dev ${name} type wireguard"
208+ ip link add dev ${name} type wireguard
208209
209− (map (ip:
210− "${ipCommand} address add ${ip} dev ${name}"
211− ) values.ips)
210+ ${concatMapStringsSep "\n" (ip:
211+ "ip address add ${ip} dev ${name}"
212+ ) values.ips}
212213
213− ("${wgCommand} set ${name} private-key ${privKey}" +
214− optionalString (values.listenPort != null) " listen-port ${toString values.listenPort}")
214+ wg set ${name} private-key ${privKey} ${
215+ optionalString (values.listenPort != null) " listen-port ${toString values.listenPort}"}
215216
216− (map (peer:
217+ ${concatMapStringsSep "\n" (peer:
217218 assert (peer.presharedKeyFile == null) || (peer.presharedKey == null); # at most one of the two must be set
218219 let psk = if peer.presharedKey != null then pkgs.writeText "wg-psk" peer.presharedKey else peer.presharedKeyFile;
219220 in
220− "${wgCommand} set ${name} peer ${peer.publicKey}" +
221− optionalString (psk != null) " preshared-key ${psk}" +
222− optionalString (peer.endpoint != null) " endpoint ${peer.endpoint}" +
223− optionalString (peer.persistentKeepalive != null) " persistent-keepalive ${toString peer.persistentKeepalive}" +
224− optionalString (peer.allowedIPs != []) " allowed-ips ${concatStringsSep "," peer.allowedIPs}"
225− ) values.peers)
226−
227− "${ipCommand} link set up dev ${name}"
228−
229− (optionals (values.allowedIPsAsRoutes != false) (map (peer:
230− (map (allowedIP:
231− "${ipCommand} route replace ${allowedIP} dev ${name} table ${values.table}"
232− ) peer.allowedIPs)
233− ) values.peers))
234−
235− values.postSetup
236− ]);
237− ExecStop = flatten([
238− "${ipCommand} link del dev ${name}"
239− values.postShutdown
240− ]);
241− };
221+ "wg set ${name} peer ${peer.publicKey}" +
222+ optionalString (psk != null) " preshared-key ${psk}" +
223+ optionalString (peer.endpoint != null) " endpoint ${peer.endpoint}" +
224+ optionalString (peer.persistentKeepalive != null) " persistent-keepalive ${toString peer.persistentKeepalive}" +
225+ optionalString (peer.allowedIPs != []) " allowed-ips ${concatStringsSep "," peer.allowedIPs}"
226+ ) values.peers}
227+
228+ ip link set up dev ${name}
229+
230+ ${optionalString (values.allowedIPsAsRoutes != false) (concatStringsSep "\n" (concatMap (peer:
231+ (map (allowedIP:
232+ "ip route replace ${allowedIP} dev ${name} table ${values.table}"
233+ ) peer.allowedIPs)
234+ ) values.peers))}
235+
236+ ${values.postSetup}
237+ '';
238+
239+ preStop = ''
240+ ip link del dev ${name}
241+ ${values.postShutdown}
242+ '';
242243 };
243244
244245in
nixos/modules/services/networking/zerotierone.nix+18−4
@@ -7,6 +7,16 @@ let
77in
88{
99 options.services.zerotierone.enable = mkEnableOption "ZeroTierOne";
10+
11+ options.services.zerotierone.joinNetworks = mkOption {
12+ default = [];
13+ example = [ "a8a2c3c10c1a68de" ];
14+ type = types.listOf types.str;
15+ description = ''
16+ List of ZeroTier Network IDs to join on startup
17+ '';
18+ };
19+
1020 options.services.zerotierone.package = mkOption {
1121 default = pkgs.zerotierone;
1222 defaultText = "pkgs.zerotierone";
@@ -22,12 +32,13 @@ in
2232 path = [ cfg.package ];
2333 after = [ "network.target" ];
2434 wantedBy = [ "multi-user.target" ];
25− preStart =
26− ''
27− mkdir -p /var/lib/zerotier-one
35+ preStart = ''
36+ mkdir -p /var/lib/zerotier-one/networks.d
2837 chmod 700 /var/lib/zerotier-one
2938 chown -R root:root /var/lib/zerotier-one
30− '';
39+ '' + (concatMapStrings (netId: ''
40+ touch "/var/lib/zerotier-one/networks.d/${netId}.conf"
41+ '') cfg.joinNetworks);
3142 serviceConfig = {
3243 ExecStart = "${cfg.package}/bin/zerotier-one";
3344 Restart = "always";
@@ -38,6 +49,9 @@ in
3849 # ZeroTier does not issue DHCP leases, but some strangers might...
3950 networking.dhcpcd.denyInterfaces = [ "zt0" ];
4051
52+ # ZeroTier receives UDP transmissions on port 9993 by default
53+ networking.firewall.allowedUDPPorts = [ 9993 ];
54+
4155 environment.systemPackages = [ cfg.package ];
4256 };
4357}
nixos/modules/services/printing/cupsd.nix+5−2
@@ -124,7 +124,7 @@ in
124124
125125 listenAddresses = mkOption {
126126 type = types.listOf types.str;
127− default = [ "127.0.0.1:631" ];
127+ default = [ "localhost:631" ];
128128 example = [ "*:631" ];
129129 description = ''
130130 A list of addresses and ports on which to listen.
@@ -321,7 +321,10 @@ in
321321 ''}
322322 '';
323323
324− serviceConfig.PrivateTmp = true;
324+ serviceConfig = {
325+ PrivateTmp = true;
326+ RuntimeDirectory = [ "cups" ];
327+ };
325328 };
326329
327330 systemd.services.cups-browsed = mkIf avahiEnabled
nixos/modules/services/search/elasticsearch.nix+5−2
@@ -32,8 +32,11 @@ let
3232 (if es5 then (pkgs.writeTextDir "log4j2.properties" cfg.logging)
3333 else (pkgs.writeTextDir "logging.yml" cfg.logging))
3434 ];
35− # Elasticsearch 5.x won't start when the scripts directory does not exist
36− postBuild = if es5 then "${pkgs.coreutils}/bin/mkdir -p $out/scripts" else "";
35+ postBuild = concatStringsSep "\n" (concatLists [
36+ # Elasticsearch 5.x won't start when the scripts directory does not exist
37+ (optional es5 "${pkgs.coreutils}/bin/mkdir -p $out/scripts")
38+ (optional es6 "ln -s ${cfg.package}/config/jvm.options $out/jvm.options")
39+ ]);
3740 };
3841
3942 esPlugins = pkgs.buildEnv {
nixos/modules/services/security/hologram-server.nix+33−5
@@ -12,16 +12,20 @@ let
1212 dn = cfg.ldapBindDN;
1313 password = cfg.ldapBindPassword;
1414 };
15− insecureldap = cfg.ldapInsecure;
16− userattr = cfg.ldapUserAttr;
17− baseDN = cfg.ldapBaseDN;
15+ insecureldap = cfg.ldapInsecure;
16+ userattr = cfg.ldapUserAttr;
17+ baseDN = cfg.ldapBaseDN;
18+ enableldapRoles = cfg.enableLdapRoles;
19+ roleAttr = cfg.roleAttr;
20+ groupClassAttr = cfg.groupClassAttr;
1821 };
1922 aws = {
2023 account = cfg.awsAccount;
2124 defaultrole = cfg.awsDefaultRole;
2225 };
23− stats = cfg.statsAddress;
24− listen = cfg.listenAddress;
26+ stats = cfg.statsAddress;
27+ listen = cfg.listenAddress;
28+ cachetimeout = cfg.cacheTimeoutSeconds;
2529 });
2630in {
2731 options = {
@@ -70,6 +74,24 @@ in {
7074 description = "Password of account to use to query the LDAP server";
7175 };
7276
77+ enableLdapRoles = mkOption {
78+ type = types.bool;
79+ default = false;
80+ description = "Whether to assign user roles based on the user's LDAP group memberships";
81+ };
82+
83+ groupClassAttr = mkOption {
84+ type = types.str;
85+ default = "groupOfNames";
86+ description = "The objectclass attribute to search for groups when enableLdapRoles is true";
87+ };
88+
89+ roleAttr = mkOption {
90+ type = types.str;
91+ default = "businessCategory";
92+ description = "Which LDAP group attribute to search for authorized role ARNs";
93+ };
94+
7395 awsAccount = mkOption {
7496 type = types.str;
7597 description = "AWS account number";
@@ -85,6 +107,12 @@ in {
85107 default = "";
86108 description = "Address of statsd server";
87109 };
110+
111+ cacheTimeoutSeconds = mkOption {
112+ type = types.int;
113+ default = 3600;
114+ description = "How often (in seconds) to refresh the LDAP cache";
115+ };
88116 };
89117 };
90118
nixos/modules/services/security/tor.nix+18−7
@@ -5,6 +5,7 @@ with lib;
55let
66 cfg = config.services.tor;
77 torDirectory = "/var/lib/tor";
8+ torRunDirectory = "/run/tor";
89
910 opt = name: value: optionalString (value != null) "${name} ${value}";
1011 optint = name: value: optionalString (value != null && value != 0) "${name} ${toString value}";
@@ -38,6 +39,7 @@ let
3839 ''}
3940
4041 ${optint "ControlPort" cfg.controlPort}
42+ ${optionalString cfg.controlSocket.enable "ControlSocket ${torRunDirectory}/control GroupWritable RelaxDirModeCheck"}
4143 ''
4244 # Client connection config
4345 + optionalString cfg.client.enable ''
@@ -140,6 +142,17 @@ in
140142 '';
141143 };
142144
145+ controlSocket = {
146+ enable = mkOption {
147+ type = types.bool;
148+ default = false;
149+ description = ''
150+ Wheter to enable Tor control socket. Control socket is created
151+ in <literal>${torRunDirectory}/control</literal>
152+ '';
153+ };
154+ };
155+
143156 client = {
144157 enable = mkOption {
145158 type = types.bool;
@@ -690,14 +703,10 @@ in
690703 after = [ "network.target" ];
691704 restartTriggers = [ torRcFile ];
692705
693− # Translated from the upstream contrib/dist/tor.service.in
694− preStart = ''
695− install -o tor -g tor -d ${torDirectory}/onion
696− ${pkgs.tor}/bin/tor -f ${torRcFile} --verify-config
697− '';
698−
699706 serviceConfig =
700707 { Type = "simple";
708+ # Translated from the upstream contrib/dist/tor.service.in
709+ ExecStartPre = "${pkgs.tor}/bin/tor -f ${torRcFile} --verify-config";
701710 ExecStart = "${pkgs.tor}/bin/tor -f ${torRcFile} --RunAsDaemon 0";
702711 ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
703712 KillSignal = "SIGINT";
@@ -712,11 +721,13 @@ in
712721 # DeviceAllow /dev/urandom r
713722 # .. but we can't specify DeviceAllow multiple times. 'closed'
714723 # is close enough.
724+ RuntimeDirectory = "tor";
725+ StateDirectory = [ "tor" "tor/onion" ];
715726 PrivateTmp = "yes";
716727 DevicePolicy = "closed";
717728 InaccessibleDirectories = "/home";
718729 ReadOnlyDirectories = "/";
719− ReadWriteDirectories = torDirectory;
730+ ReadWriteDirectories = [torDirectory torRunDirectory];
720731 NoNewPrivileges = "yes";
721732 };
722733 };
nixos/modules/services/security/torify.nix+1−1
@@ -7,7 +7,7 @@ let
77 torify = pkgs.writeTextFile {
88 name = "tsocks";
99 text = ''
10− #!${pkgs.stdenv.shell}
10+ #!${pkgs.runtimeShell}
1111 TSOCKS_CONF_FILE=${pkgs.writeText "tsocks.conf" cfg.tsocks.config} LD_PRELOAD="${pkgs.tsocks}/lib/libtsocks.so $LD_PRELOAD" "$@"
1212 '';
1313 executable = true;
nixos/modules/services/security/torsocks.nix+1−1
@@ -23,7 +23,7 @@ let
2323 wrapTorsocks = name: server: pkgs.writeTextFile {
2424 name = name;
2525 text = ''
26− #!${pkgs.stdenv.shell}
26+ #!${pkgs.runtimeShell}
2727 TORSOCKS_CONF_FILE=${pkgs.writeText "torsocks.conf" (configFile server)} ${pkgs.torsocks}/bin/torsocks "$@"
2828 '';
2929 executable = true;
nixos/modules/services/torrent/transmission.nix+17−5
@@ -21,6 +21,19 @@ let
2121
2222 # for users in group "transmission" to have access to torrents
2323 fullSettings = { umask = 2; download-dir = downloadDir; incomplete-dir = incompleteDir; } // cfg.settings;
24+
25+ # Directories transmission expects to exist and be ug+rwx.
26+ directoriesToManage = [ homeDir settingsDir fullSettings.download-dir fullSettings.incomplete-dir ];
27+
28+ preStart = pkgs.writeScript "transmission-pre-start" ''
29+ #!${pkgs.runtimeShell}
30+ set -ex
31+ for DIR in ${escapeShellArgs directoriesToManage}; do
32+ mkdir -p "$DIR"
33+ chmod 770 "$DIR"
34+ done
35+ cp -f ${settingsFile} ${settingsDir}/settings.json
36+ '';
2437in
2538{
2639 options = {
@@ -59,8 +72,8 @@ in
5972 time the service starts). String values must be quoted, integer and
6073 boolean values must not.
6174
62− See https://trac.transmissionbt.com/wiki/EditConfigFiles for
63− documentation.
75+ See https://github.com/transmission/transmission/wiki/Editing-Configuration-Files
76+ for documentation.
6477 '';
6578 };
6679
@@ -89,9 +102,7 @@ in
89102
90103 # 1) Only the "transmission" user and group have access to torrents.
91104 # 2) Optionally update/force specific fields into the configuration file.
92− serviceConfig.ExecStartPre = ''
93− ${pkgs.stdenv.shell} -c "mkdir -p ${homeDir} ${settingsDir} ${fullSettings.download-dir} ${fullSettings.incomplete-dir} && chmod 770 ${homeDir} ${settingsDir} ${fullSettings.download-dir} ${fullSettings.incomplete-dir} && rm -f ${settingsDir}/settings.json && cp -f ${settingsFile} ${settingsDir}/settings.json"
94− '';
105+ serviceConfig.ExecStartPre = preStart;
95106 serviceConfig.ExecStart = "${pkgs.transmission}/bin/transmission-daemon -f --port ${toString config.services.transmission.port}";
96107 serviceConfig.ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
97108 serviceConfig.User = "transmission";
@@ -136,6 +147,7 @@ in
136147 ${getLib pkgs.libcap}/lib/libcap*.so* mr,
137148 ${getLib pkgs.attr}/lib/libattr*.so* mr,
138149 ${getLib pkgs.lz4}/lib/liblz4*.so* mr,
150+ ${getLib pkgs.libkrb5}/lib/lib*.so* mr,
139151
140152 @{PROC}/sys/kernel/random/uuid r,
141153 @{PROC}/sys/vm/overcommit_memory r,
nixos/modules/services/web-apps/atlassian/jira.nix+1−1
@@ -155,7 +155,7 @@ in
155155 requires = [ "postgresql.service" ];
156156 after = [ "postgresql.service" ];
157157
158− path = [ cfg.jrePackage ];
158+ path = [ cfg.jrePackage pkgs.bash ];
159159
160160 environment = {
161161 JIRA_USER = cfg.user;
nixos/modules/services/web-apps/nixbot.nixdeleted−149
@@ -1,149 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6− cfg = config.services.nixbot;
7− pyramidIni = ''
8− ###
9− # app configuration
10− # http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/environment.html
11− ###
12−
13− [app:main]
14− use = egg:nixbot
15−
16− nixbot.github_token = ${cfg.githubToken}
17− nixbot.bot_name = ${cfg.botName}
18− nixbot.repo = ${cfg.repo}
19− nixbot.pr_repo = ${cfg.prRepo}
20− nixbot.hydra_jobsets_repo = ${cfg.hydraJobsetsRepo}
21− nixbot.github_secret = justnotsorandom
22− nixbot.public_url = ${cfg.publicUrl}
23− nixbot.repo_dir = ${cfg.repoDir}
24−
25− pyramid.reload_templates = false
26− pyramid.debug_authorization = false
27− pyramid.debug_notfound = false
28− pyramid.debug_routematch = false
29− pyramid.default_locale_name = en
30−
31− # By default, the toolbar only appears for clients from IP addresses
32− # '127.0.0.1' and '::1'.
33− # debugtoolbar.hosts = 127.0.0.1 ::1
34−
35− ###
36− # wsgi server configuration
37− ###
38−
39− [server:main]
40− use = egg:waitress#main
41− host = 0.0.0.0
42− port = 6543
43−
44− ###
45− # logging configuration
46− # http://docs.pylonsproject.org/projects/pyramid/en/1.7-branch/narr/logging.html
47− ###
48−
49− [loggers]
50− keys = root, nixbot
51−
52− [handlers]
53− keys = console
54−
55− [formatters]
56− keys = generic
57−
58− [logger_root]
59− level = INFO
60− handlers = console
61−
62− [logger_nixbot]
63− level = INFO
64− handlers =
65− qualname = nixbot
66−
67− [handler_console]
68− class = StreamHandler
69− args = (sys.stderr,)
70− level = NOTSET
71− formatter = generic
72−
73− [formatter_generic]
74− format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
75− '';
76−in {
77− options = {
78− services.nixbot = {
79− enable = mkEnableOption "nixbot";
80−
81− botName = mkOption {
82− type = types.str;
83− description = "The bot's github user account name.";
84− default = "nixbot";
85− };
86−
87− githubToken = mkOption {
88− type = types.str;
89− description = "The bot's github user account token.";
90− example = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
91− };
92−
93− repo = mkOption {
94− type = types.str;
95− description = "The github repository to check for PRs.";
96− example = "nixos/nixpkgs";
97− };
98−
99− prRepo = mkOption {
100− type = types.str;
101− description = "The github repository to push the testing branches to.";
102− example = "nixos/nixpkgs-pr";
103− };
104−
105− hydraJobsetsRepo = mkOption {
106− type = types.str;
107− description = "The github repository to push the hydra jobset definitions to.";
108− example = "nixos/hydra-jobsets";
109− };
110−
111− publicUrl = mkOption {
112− type = types.str;
113− description = "The public URL the bot is reachable at (Github hook endpoint).";
114− example = "https://nixbot.nixos.org";
115− };
116−
117− repoDir = mkOption {
118− type = types.path;
119− description = "The directory the repositories are stored in.";
120− default = "/var/lib/nixbot";
121− };
122− };
123− };
124−
125− config = mkIf cfg.enable {
126− users.extraUsers.nixbot = {
127− createHome = true;
128− home = cfg.repoDir;
129− };
130−
131− systemd.services.nixbot = let
132− env = pkgs.python3.buildEnv.override {
133− extraLibs = [ pkgs.nixbot ];
134− };
135− in {
136− after = [ "network.target" ];
137− wantedBy = [ "multi-user.target" ];
138− script = ''
139− ${env}/bin/pserve ${pkgs.writeText "production.ini" pyramidIni}
140− '';
141−
142− serviceConfig = {
143− User = "nixbot";
144− Group = "nogroup";
145− PermissionsStartOnly = true;
146− };
147− };
148− };
149−}
nixos/modules/services/web-apps/tt-rss.nix+4−4
@@ -466,10 +466,10 @@ let
466466 '';
467467 };
468468
469− services.nginx = {
469+ # NOTE: No configuration is done if not using virtual host
470+ services.nginx = mkIf (cfg.virtualHost != null) {
470471 enable = true;
471− # NOTE: No configuration is done if not using virtual host
472− virtualHosts = mkIf (cfg.virtualHost != null) {
472+ virtualHosts = {
473473 "${cfg.virtualHost}" = {
474474 root = "${cfg.root}";
475475
@@ -505,7 +505,7 @@ let
505505 ${cfg.database.name}''
506506
507507 else if cfg.database.type == "mysql" then ''
508− echo '${e}' | ${pkgs.mysql}/bin/mysql \
508+ echo '${e}' | ${pkgs.sudo}/bin/sudo -u ${cfg.user} ${config.services.mysql.package}/bin/mysql \
509509 -u ${cfg.database.user} \
510510 ${optionalString (cfg.database.password != null) "-p${cfg.database.password}"} \
511511 ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} -P ${toString dbPort}"} \
nixos/modules/services/web-servers/apache-httpd/owncloud.nix+1−1
@@ -346,7 +346,7 @@ let
346346 postgresql = serverInfo.fullConfig.services.postgresql.package;
347347
348348 setupDb = pkgs.writeScript "setup-owncloud-db" ''
349− #!${pkgs.stdenv.shell}
349+ #!${pkgs.runtimeShell}
350350 PATH="${postgresql}/bin"
351351 createuser --no-superuser --no-createdb --no-createrole "${config.dbUser}" || true
352352 createdb "${config.dbName}" -O "${config.dbUser}" || true
nixos/modules/services/web-servers/apache-httpd/per-server-options.nix+1−1
@@ -118,7 +118,7 @@ with lib;
118118 default = [];
119119 example = [
120120 { urlPath = "/foo/bar.png";
121− files = "/home/eelco/some-file.png";
121+ file = "/home/eelco/some-file.png";
122122 }
123123 ];
124124 description = ''
nixos/modules/services/web-servers/lighttpd/gitweb.nix+8−27
@@ -3,12 +3,10 @@
33with lib;
44
55let
6− cfg = config.services.lighttpd.gitweb;
7− gitwebConfigFile = pkgs.writeText "gitweb.conf" ''
8− # path to git projects (<project>.git)
9− $projectroot = "${cfg.projectroot}";
10− ${cfg.extraConfig}
11− '';
6+ cfg = config.services.gitweb;
7+ package = pkgs.gitweb.override (optionalAttrs cfg.gitwebTheme {
8+ gitwebTheme = true;
9+ });
1210
1311in
1412{
@@ -23,26 +21,9 @@ in
2321 '';
2422 };
2523
26− projectroot = mkOption {
27− default = "/srv/git";
28− type = types.path;
29− description = ''
30− Path to git projects (bare repositories) that should be served by
31− gitweb. Must not end with a slash.
32− '';
33− };
34−
35− extraConfig = mkOption {
36− default = "";
37− type = types.lines;
38− description = ''
39− Verbatim configuration text appended to the generated gitweb.conf file.
40− '';
41− };
42−
4324 };
4425
45− config = mkIf cfg.enable {
26+ config = mkIf config.services.lighttpd.gitweb.enable {
4627
4728 # declare module dependencies
4829 services.lighttpd.enableModules = [ "mod_cgi" "mod_redirect" "mod_alias" "mod_setenv" ];
@@ -56,11 +37,11 @@ in
5637 "^/gitweb$" => "/gitweb/"
5738 )
5839 alias.url = (
59− "/gitweb/static/" => "${pkgs.git}/share/gitweb/static/",
60− "/gitweb/" => "${pkgs.git}/share/gitweb/gitweb.cgi"
40+ "/gitweb/static/" => "${package}/static/",
41+ "/gitweb/" => "${package}/gitweb.cgi"
6142 )
6243 setenv.add-environment = (
63− "GITWEB_CONFIG" => "${gitwebConfigFile}",
44+ "GITWEB_CONFIG" => "${cfg.gitwebConfigFile}",
6445 "HOME" => "${cfg.projectroot}"
6546 )
6647 }
nixos/modules/services/web-servers/nginx/default.nix+14−15
@@ -9,15 +9,16 @@ let
99 serverName = if vhostConfig.serverName != null
1010 then vhostConfig.serverName
1111 else vhostName;
12+ acmeDirectory = config.security.acme.directory;
1213 in
1314 vhostConfig // {
1415 inherit serverName;
1516 } // (optionalAttrs vhostConfig.enableACME {
16− sslCertificate = "/var/lib/acme/${serverName}/fullchain.pem";
17− sslCertificateKey = "/var/lib/acme/${serverName}/key.pem";
17+ sslCertificate = "${acmeDirectory}/${serverName}/fullchain.pem";
18+ sslCertificateKey = "${acmeDirectory}/${serverName}/key.pem";
1819 }) // (optionalAttrs (vhostConfig.useACMEHost != null) {
19− sslCertificate = "/var/lib/acme/${vhostConfig.useACMEHost}/fullchain.pem";
20− sslCertificateKey = "/var/lib/acme/${vhostConfig.useACMEHost}/key.pem";
20+ sslCertificate = "${acmeDirectory}/${vhostConfig.useACMEHost}/fullchain.pem";
21+ sslCertificateKey = "${acmeDirectory}/${vhostConfig.useACMEHost}/key.pem";
2122 })
2223 ) cfg.virtualHosts;
2324 enableIPv6 = config.networking.enableIPv6;
@@ -217,7 +218,10 @@ let
217218 ssl_certificate_key ${vhost.sslCertificateKey};
218219 ''}
219220
220− ${optionalString (vhost.basicAuth != {}) (mkBasicAuth vhostName vhost.basicAuth)}
221+ ${optionalString (vhost.basicAuthFile != null || vhost.basicAuth != {}) ''
222+ auth_basic secured;
223+ auth_basic_user_file ${if vhost.basicAuthFile != null then vhost.basicAuthFile else mkHtpasswd vhostName vhost.basicAuth};
224+ ''}
221225
222226 ${mkLocations vhost.locations}
223227
@@ -247,16 +251,11 @@ let
247251 ${optionalString (config.proxyPass != null && cfg.recommendedProxySettings) "include ${recommendedProxyConfig};"}
248252 }
249253 '') locations);
250− mkBasicAuth = vhostName: authDef: let
251− htpasswdFile = pkgs.writeText "${vhostName}.htpasswd" (
252− concatStringsSep "\n" (mapAttrsToList (user: password: ''
253− ${user}:{PLAIN}${password}
254− '') authDef)
255− );
256− in ''
257− auth_basic secured;
258− auth_basic_user_file ${htpasswdFile};
259− '';
254+ mkHtpasswd = vhostName: authDef: pkgs.writeText "${vhostName}.htpasswd" (
255+ concatStringsSep "\n" (mapAttrsToList (user: password: ''
256+ ${user}:{PLAIN}${password}
257+ '') authDef)
258+ );
260259in
261260
262261{
nixos/modules/services/web-servers/nginx/gitweb.nixnew file+61
@@ -0,0 +1,61 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.gitweb;
7+ package = pkgs.gitweb.override (optionalAttrs cfg.gitwebTheme {
8+ gitwebTheme = true;
9+ });
10+
11+in
12+{
13+
14+ options.services.nginx.gitweb = {
15+
16+ enable = mkOption {
17+ default = false;
18+ type = types.bool;
19+ description = ''
20+ If true, enable gitweb in nginx. Access it at http://yourserver/gitweb
21+ '';
22+ };
23+
24+ };
25+
26+ config = mkIf config.services.nginx.gitweb.enable {
27+
28+ systemd.services.gitweb = {
29+ description = "GitWeb service";
30+ script = "${package}/gitweb.cgi --fastcgi --nproc=1";
31+ environment = {
32+ FCGI_SOCKET_PATH = "/run/gitweb/gitweb.sock";
33+ };
34+ serviceConfig = {
35+ User = "nginx";
36+ Group = "nginx";
37+ RuntimeDirectory = [ "gitweb" ];
38+ };
39+ wantedBy = [ "multi-user.target" ];
40+ };
41+
42+ services.nginx = {
43+ virtualHosts.default = {
44+ locations."/gitweb/static/" = {
45+ alias = "${package}/static/";
46+ };
47+ locations."/gitweb/" = {
48+ extraConfig = ''
49+ include ${pkgs.nginx}/conf/fastcgi_params;
50+ fastcgi_param GITWEB_CONFIG ${cfg.gitwebConfigFile};
51+ fastcgi_pass unix:/run/gitweb/gitweb.sock;
52+ '';
53+ };
54+ };
55+ };
56+
57+ };
58+
59+ meta.maintainers = with maintainers; [ gnidorah ];
60+
61+}
nixos/modules/services/web-servers/nginx/vhost-options.nix+8
@@ -193,6 +193,14 @@ with lib;
193193 '';
194194 };
195195
196+ basicAuthFile = mkOption {
197+ type = types.nullOr types.path;
198+ default = null;
199+ description = ''
200+ Basic Auth password file for a vhost.
201+ '';
202+ };
203+
196204 locations = mkOption {
197205 type = types.attrsOf (types.submodule (import ./location-options.nix {
198206 inherit lib;
nixos/modules/services/web-servers/tomcat.nix+191−189
@@ -19,11 +19,7 @@ in
1919 options = {
2020
2121 services.tomcat = {
22−
23− enable = mkOption {
24− default = false;
25− description = "Whether to enable Apache Tomcat";
26− };
22+ enable = mkEnableOption "Apache Tomcat";
2723
2824 package = mkOption {
2925 type = types.package;
@@ -36,10 +32,30 @@ in
3632 };
3733
3834 baseDir = mkOption {
35+ type = lib.types.path;
3936 default = "/var/tomcat";
4037 description = "Location where Tomcat stores configuration files, webapplications and logfiles";
4138 };
4239
40+ logDirs = mkOption {
41+ default = [];
42+ type = types.listOf types.path;
43+ description = "Directories to create in baseDir/logs/";
44+ };
45+
46+ extraConfigFiles = mkOption {
47+ default = [];
48+ type = types.listOf types.path;
49+ description = "Extra configuration files to pull into the tomcat conf directory";
50+ };
51+
52+ extraEnvironment = mkOption {
53+ type = types.listOf types.str;
54+ default = [];
55+ example = [ "ENVIRONMENT=production" ];
56+ description = "Environment Variables to pass to the tomcat service";
57+ };
58+
4359 extraGroups = mkOption {
4460 default = [];
4561 example = [ "users" ];
@@ -47,31 +63,46 @@ in
4763 };
4864
4965 user = mkOption {
66+ type = types.str;
5067 default = "tomcat";
5168 description = "User account under which Apache Tomcat runs.";
5269 };
5370
5471 group = mkOption {
72+ type = types.str;
5573 default = "tomcat";
5674 description = "Group account under which Apache Tomcat runs.";
5775 };
5876
5977 javaOpts = mkOption {
78+ type = types.either (types.listOf types.str) types.str;
6079 default = "";
6180 description = "Parameters to pass to the Java Virtual Machine which spawns Apache Tomcat";
6281 };
6382
6483 catalinaOpts = mkOption {
84+ type = types.either (types.listOf types.str) types.str;
6585 default = "";
6686 description = "Parameters to pass to the Java Virtual Machine which spawns the Catalina servlet container";
6787 };
6888
6989 sharedLibs = mkOption {
90+ type = types.listOf types.str;
7091 default = [];
7192 description = "List containing JAR files or directories with JAR files which are libraries shared by the web applications";
7293 };
7394
95+ serverXml = mkOption {
96+ type = types.lines;
97+ default = "";
98+ description = "
99+ Verbatim server.xml configuration.
100+ This is mutually exclusive with the virtualHosts options.
101+ ";
102+ };
103+
74104 commonLibs = mkOption {
105+ type = types.listOf types.str;
75106 default = [];
76107 description = "List containing JAR files or directories with JAR files which are libraries shared by the web applications and the servlet container";
77108 };
@@ -84,11 +115,21 @@ in
84115 };
85116
86117 virtualHosts = mkOption {
118+ type = types.listOf (types.submodule {
119+ options = {
120+ name = mkOption {
121+ type = types.listOf types.str;
122+ description = "name of the virtualhost";
123+ default = [];
124+ };
125+ };
126+ });
87127 default = [];
88128 description = "List consisting of a virtual host name and a list of web applications to deploy on each virtual host";
89129 };
90130
91131 logPerVirtualHost = mkOption {
132+ type = types.bool;
92133 default = false;
93134 description = "Whether to enable logging per virtual host.";
94135 };
@@ -104,11 +145,13 @@ in
104145
105146 enable = mkOption {
106147 default = false;
148+ type = types.bool;
107149 description = "Whether to enable an Apache Axis2 container";
108150 };
109151
110152 services = mkOption {
111153 default = [];
154+ type = types.listOf types.str;
112155 description = "List containing AAR files or directories with AAR files which are web services to be deployed on Axis2";
113156 };
114157
@@ -140,130 +183,104 @@ in
140183 description = "Apache Tomcat server";
141184 wantedBy = [ "multi-user.target" ];
142185 after = [ "network.target" ];
143− serviceConfig.Type = "oneshot";
144− serviceConfig.RemainAfterExit = true;
145186
146187 preStart = ''
147188 # Create the base directory
148− mkdir -p ${cfg.baseDir}
189+ mkdir -p \
190+ ${cfg.baseDir}/{conf,virtualhosts,logs,temp,lib,shared/lib,webapps,work}
191+ chown ${cfg.user}:${cfg.group} \
192+ ${cfg.baseDir}/{conf,virtualhosts,logs,temp,lib,shared/lib,webapps,work}
149193
150194 # Create a symlink to the bin directory of the tomcat component
151195 ln -sfn ${tomcat}/bin ${cfg.baseDir}/bin
152196
153− # Create a conf/ directory
154− mkdir -p ${cfg.baseDir}/conf
155− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/conf
156−
157197 # Symlink the config files in the conf/ directory (except for catalina.properties and server.xml)
158− for i in $(ls ${tomcat}/conf | grep -v catalina.properties | grep -v server.xml)
159− do
160− ln -sfn ${tomcat}/conf/$i ${cfg.baseDir}/conf/`basename $i`
198+ for i in $(ls ${tomcat}/conf | grep -v catalina.properties | grep -v server.xml); do
199+ ln -sfn ${tomcat}/conf/$i ${cfg.baseDir}/conf/`basename $i`
161200 done
162201
163− # Create subdirectory for virtual hosts
164− mkdir -p ${cfg.baseDir}/virtualhosts
202+ ${if cfg.extraConfigFiles != [] then ''
203+ for i in ${toString cfg.extraConfigFiles}; do
204+ ln -sfn $i ${cfg.baseDir}/conf/`basename $i`
205+ done
206+ '' else ""}
165207
166208 # Create a modified catalina.properties file
167209 # Change all references from CATALINA_HOME to CATALINA_BASE and add support for shared libraries
168210 sed -e 's|''${catalina.home}|''${catalina.base}|g' \
169− -e 's|shared.loader=|shared.loader=''${catalina.base}/shared/lib/*.jar|' \
170− ${tomcat}/conf/catalina.properties > ${cfg.baseDir}/conf/catalina.properties
171−
172− # Create a modified server.xml which also includes all virtual hosts
173− sed -e "/<Engine name=\"Catalina\" defaultHost=\"localhost\">/a\ ${
174− toString (map (virtualHost: ''<Host name=\"${virtualHost.name}\" appBase=\"virtualhosts/${virtualHost.name}/webapps\" unpackWARs=\"true\" autoDeploy=\"true\" xmlValidation=\"false\" xmlNamespaceAware=\"false\" >${if cfg.logPerVirtualHost then ''<Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs/${virtualHost.name}\" prefix=\"${virtualHost.name}_access_log.\" pattern=\"combined\" resolveHosts=\"false\"/>'' else ""}</Host>'') cfg.virtualHosts)}" \
175− ${tomcat}/conf/server.xml > ${cfg.baseDir}/conf/server.xml
176−
177− # Create a logs/ directory
178− mkdir -p ${cfg.baseDir}/logs
179− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/logs
180− ${if cfg.logPerVirtualHost then
181− toString (map (h: ''
182− mkdir -p ${cfg.baseDir}/logs/${h.name}
183− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/logs/${h.name}
184− '') cfg.virtualHosts) else ''''}
185−
186− # Create a temp/ directory
187− mkdir -p ${cfg.baseDir}/temp
188− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/temp
189−
190− # Create a lib/ directory
191− mkdir -p ${cfg.baseDir}/lib
192− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/lib
193−
194− # Create a shared/lib directory
195− mkdir -p ${cfg.baseDir}/shared/lib
196− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/shared/lib
197−
198− # Create a webapps/ directory
199− mkdir -p ${cfg.baseDir}/webapps
200− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/webapps
211+ -e 's|shared.loader=|shared.loader=''${catalina.base}/shared/lib/*.jar|' \
212+ ${tomcat}/conf/catalina.properties > ${cfg.baseDir}/conf/catalina.properties
213+
214+ ${if cfg.serverXml != "" then ''
215+ cp -f ${pkgs.writeTextDir "server.xml" cfg.serverXml}/* ${cfg.baseDir}/conf/
216+ '' else ''
217+ # Create a modified server.xml which also includes all virtual hosts
218+ sed -e "/<Engine name=\"Catalina\" defaultHost=\"localhost\">/a\ ${toString (map (virtualHost: ''<Host name=\"${virtualHost.name}\" appBase=\"virtualhosts/${virtualHost.name}/webapps\" unpackWARs=\"true\" autoDeploy=\"true\" xmlValidation=\"false\" xmlNamespaceAware=\"false\" >${if cfg.logPerVirtualHost then ''<Valve className=\"org.apache.catalina.valves.AccessLogValve\" directory=\"logs/${virtualHost.name}\" prefix=\"${virtualHost.name}_access_log.\" pattern=\"combined\" resolveHosts=\"false\"/>'' else ""}</Host>'') cfg.virtualHosts)}" \
219+ ${tomcat}/conf/server.xml > ${cfg.baseDir}/conf/server.xml
220+ ''
221+ }
222+ ${optionalString (cfg.logDirs != []) ''
223+ for i in ${toString cfg.logDirs}; do
224+ mkdir -p ${cfg.baseDir}/logs/$i
225+ chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/logs/$i
226+ done
227+ ''}
228+ ${optionalString cfg.logPerVirtualHost (toString (map (h: ''
229+ mkdir -p ${cfg.baseDir}/logs/${h.name}
230+ chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/logs/${h.name}
231+ '') cfg.virtualHosts))}
201232
202233 # Symlink all the given common libs files or paths into the lib/ directory
203− for i in ${tomcat} ${toString cfg.commonLibs}
204− do
205− if [ -f $i ]
206− then
207− # If the given web application is a file, symlink it into the common/lib/ directory
208− ln -sfn $i ${cfg.baseDir}/lib/`basename $i`
209− elif [ -d $i ]
210− then
211− # If the given web application is a directory, then iterate over the files
212− # in the special purpose directories and symlink them into the tomcat tree
213−
214− for j in $i/lib/*
215− do
216− ln -sfn $j ${cfg.baseDir}/lib/`basename $j`
217− done
218− fi
234+ for i in ${tomcat} ${toString cfg.commonLibs}; do
235+ if [ -f $i ]; then
236+ # If the given web application is a file, symlink it into the common/lib/ directory
237+ ln -sfn $i ${cfg.baseDir}/lib/`basename $i`
238+ elif [ -d $i ]; then
239+ # If the given web application is a directory, then iterate over the files
240+ # in the special purpose directories and symlink them into the tomcat tree
241+
242+ for j in $i/lib/*; do
243+ ln -sfn $j ${cfg.baseDir}/lib/`basename $j`
244+ done
245+ fi
219246 done
220247
221248 # Symlink all the given shared libs files or paths into the shared/lib/ directory
222− for i in ${toString cfg.sharedLibs}
223− do
224− if [ -f $i ]
225− then
226− # If the given web application is a file, symlink it into the common/lib/ directory
227− ln -sfn $i ${cfg.baseDir}/shared/lib/`basename $i`
228− elif [ -d $i ]
229− then
230− # If the given web application is a directory, then iterate over the files
231− # in the special purpose directories and symlink them into the tomcat tree
232−
233− for j in $i/shared/lib/*
234− do
235− ln -sfn $j ${cfg.baseDir}/shared/lib/`basename $j`
236− done
237− fi
249+ for i in ${toString cfg.sharedLibs}; do
250+ if [ -f $i ]; then
251+ # If the given web application is a file, symlink it into the common/lib/ directory
252+ ln -sfn $i ${cfg.baseDir}/shared/lib/`basename $i`
253+ elif [ -d $i ]; then
254+ # If the given web application is a directory, then iterate over the files
255+ # in the special purpose directories and symlink them into the tomcat tree
256+
257+ for j in $i/shared/lib/*; do
258+ ln -sfn $j ${cfg.baseDir}/shared/lib/`basename $j`
259+ done
260+ fi
238261 done
239262
240263 # Symlink all the given web applications files or paths into the webapps/ directory
241− for i in ${toString cfg.webapps}
242− do
243− if [ -f $i ]
244− then
245− # If the given web application is a file, symlink it into the webapps/ directory
246− ln -sfn $i ${cfg.baseDir}/webapps/`basename $i`
247− elif [ -d $i ]
248− then
249− # If the given web application is a directory, then iterate over the files
250− # in the special purpose directories and symlink them into the tomcat tree
251−
252− for j in $i/webapps/*
253− do
254− ln -sfn $j ${cfg.baseDir}/webapps/`basename $j`
255− done
264+ for i in ${toString cfg.webapps}; do
265+ if [ -f $i ]; then
266+ # If the given web application is a file, symlink it into the webapps/ directory
267+ ln -sfn $i ${cfg.baseDir}/webapps/`basename $i`
268+ elif [ -d $i ]; then
269+ # If the given web application is a directory, then iterate over the files
270+ # in the special purpose directories and symlink them into the tomcat tree
271+
272+ for j in $i/webapps/*; do
273+ ln -sfn $j ${cfg.baseDir}/webapps/`basename $j`
274+ done
256275
257− # Also symlink the configuration files if they are included
258− if [ -d $i/conf/Catalina ]
259− then
260− for j in $i/conf/Catalina/*
261− do
262− mkdir -p ${cfg.baseDir}/conf/Catalina/localhost
263− ln -sfn $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
264− done
265− fi
276+ # Also symlink the configuration files if they are included
277+ if [ -d $i/conf/Catalina ]; then
278+ for j in $i/conf/Catalina/*; do
279+ mkdir -p ${cfg.baseDir}/conf/Catalina/localhost
280+ ln -sfn $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
281+ done
266282 fi
283+ fi
267284 done
268285
269286 ${toString (map (virtualHost: ''
@@ -275,94 +292,79 @@ in
275292
276293 # Symlink all the given web applications files or paths into the webapps/ directory
277294 # of this virtual host
278− for i in "${if virtualHost ? webapps then toString virtualHost.webapps else ""}"
279− do
280− if [ -f $i ]
281− then
282− # If the given web application is a file, symlink it into the webapps/ directory
283− ln -sfn $i ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $i`
284− elif [ -d $i ]
285− then
286− # If the given web application is a directory, then iterate over the files
287− # in the special purpose directories and symlink them into the tomcat tree
288−
289− for j in $i/webapps/*
290− do
291− ln -sfn $j ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $j`
292− done
293−
294− # Also symlink the configuration files if they are included
295− if [ -d $i/conf/Catalina ]
296− then
297− for j in $i/conf/Catalina/*
298− do
299− mkdir -p ${cfg.baseDir}/conf/Catalina/${virtualHost.name}
300− ln -sfn $j ${cfg.baseDir}/conf/Catalina/${virtualHost.name}/`basename $j`
301− done
302− fi
295+ for i in "${if virtualHost ? webapps then toString virtualHost.webapps else ""}"; do
296+ if [ -f $i ]; then
297+ # If the given web application is a file, symlink it into the webapps/ directory
298+ ln -sfn $i ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $i`
299+ elif [ -d $i ]; then
300+ # If the given web application is a directory, then iterate over the files
301+ # in the special purpose directories and symlink them into the tomcat tree
302+
303+ for j in $i/webapps/*; do
304+ ln -sfn $j ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $j`
305+ done
306+
307+ # Also symlink the configuration files if they are included
308+ if [ -d $i/conf/Catalina ]; then
309+ for j in $i/conf/Catalina/*; do
310+ mkdir -p ${cfg.baseDir}/conf/Catalina/${virtualHost.name}
311+ ln -sfn $j ${cfg.baseDir}/conf/Catalina/${virtualHost.name}/`basename $j`
312+ done
303313 fi
314+ fi
304315 done
305−
306− ''
307− ) cfg.virtualHosts) }
308−
309− # Create a work/ directory
310− mkdir -p ${cfg.baseDir}/work
311− chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/work
312−
313− ${if cfg.axis2.enable then
314− ''
315− # Copy the Axis2 web application
316− cp -av ${pkgs.axis2}/webapps/axis2 ${cfg.baseDir}/webapps
317−
318− # Turn off addressing, which causes many errors
319− sed -i -e 's%<module ref="addressing"/>%<!-- <module ref="addressing"/> -->%' ${cfg.baseDir}/webapps/axis2/WEB-INF/conf/axis2.xml
320−
321− # Modify permissions on the Axis2 application
322− chown -R ${cfg.user}:${cfg.group} ${cfg.baseDir}/webapps/axis2
323−
324− # Symlink all the given web service files or paths into the webapps/axis2/WEB-INF/services directory
325− for i in ${toString cfg.axis2.services}
326− do
327− if [ -f $i ]
328− then
329− # If the given web service is a file, symlink it into the webapps/axis2/WEB-INF/services
330− ln -sfn $i ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $i`
331− elif [ -d $i ]
332− then
333− # If the given web application is a directory, then iterate over the files
334− # in the special purpose directories and symlink them into the tomcat tree
335−
336− for j in $i/webapps/axis2/WEB-INF/services/*
337− do
338− ln -sfn $j ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $j`
339− done
340−
341− # Also symlink the configuration files if they are included
342− if [ -d $i/conf/Catalina ]
343− then
344− for j in $i/conf/Catalina/*
345− do
346− ln -sfn $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
347− done
348− fi
349− fi
350− done
351− ''
352− else ""}
353− '';
354−
355− script = ''
356− ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c 'CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${cfg.jdk} JAVA_OPTS="${cfg.javaOpts}" CATALINA_OPTS="${cfg.catalinaOpts}" ${tomcat}/bin/startup.sh'
357− '';
358−
359− preStop = ''
360− echo "Stopping tomcat..."
361− CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${cfg.jdk} ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c ${tomcat}/bin/shutdown.sh
316+ '') cfg.virtualHosts)}
317+
318+ ${optionalString cfg.axis2.enable ''
319+ # Copy the Axis2 web application
320+ cp -av ${pkgs.axis2}/webapps/axis2 ${cfg.baseDir}/webapps
321+
322+ # Turn off addressing, which causes many errors
323+ sed -i -e 's%<module ref="addressing"/>%<!-- <module ref="addressing"/> -->%' ${cfg.baseDir}/webapps/axis2/WEB-INF/conf/axis2.xml
324+
325+ # Modify permissions on the Axis2 application
326+ chown -R ${cfg.user}:${cfg.group} ${cfg.baseDir}/webapps/axis2
327+
328+ # Symlink all the given web service files or paths into the webapps/axis2/WEB-INF/services directory
329+ for i in ${toString cfg.axis2.services}; do
330+ if [ -f $i ]; then
331+ # If the given web service is a file, symlink it into the webapps/axis2/WEB-INF/services
332+ ln -sfn $i ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $i`
333+ elif [ -d $i ]; then
334+ # If the given web application is a directory, then iterate over the files
335+ # in the special purpose directories and symlink them into the tomcat tree
336+
337+ for j in $i/webapps/axis2/WEB-INF/services/*; do
338+ ln -sfn $j ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $j`
339+ done
340+
341+ # Also symlink the configuration files if they are included
342+ if [ -d $i/conf/Catalina ]; then
343+ for j in $i/conf/Catalina/*; do
344+ ln -sfn $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
345+ done
346+ fi
347+ fi
348+ done
349+ ''}
362350 '';
363351
352+ serviceConfig = {
353+ Type = "forking";
354+ PermissionsStartOnly = true;
355+ PIDFile="/run/tomcat/tomcat.pid";
356+ RuntimeDirectory = "tomcat";
357+ User = cfg.user;
358+ Environment=[
359+ "CATALINA_BASE=${cfg.baseDir}"
360+ "CATALINA_PID=/run/tomcat/tomcat.pid"
361+ "JAVA_HOME='${cfg.jdk}'"
362+ "JAVA_OPTS='${builtins.toString cfg.javaOpts}'"
363+ "CATALINA_OPTS='${builtins.toString cfg.catalinaOpts}'"
364+ ] ++ cfg.extraEnvironment;
365+ ExecStart = "${tomcat}/bin/startup.sh";
366+ ExecStop = "${tomcat}/bin/shutdown.sh";
367+ };
364368 };
365−
366369 };
367−
368370}
nixos/modules/services/web-servers/varnish/default.nix+14−5
@@ -6,13 +6,22 @@ let
66 cfg = config.services.varnish;
77
88 commandLine = "-f ${pkgs.writeText "default.vcl" cfg.config}" +
9− optionalString (cfg.extraModules != []) " -p vmod_path='${makeSearchPathOutput "lib" "lib/varnish/vmods" ([pkgs.varnish] ++ cfg.extraModules)}' -r vmod_path";
9+ optionalString (cfg.extraModules != []) " -p vmod_path='${makeSearchPathOutput "lib" "lib/varnish/vmods" ([cfg.package] ++ cfg.extraModules)}' -r vmod_path";
1010in
1111{
1212 options = {
1313 services.varnish = {
1414 enable = mkEnableOption "Varnish Server";
1515
16+ package = mkOption {
17+ type = types.package;
18+ default = pkgs.varnish5;
19+ defaultText = "pkgs.varnish5";
20+ description = ''
21+ The package to use
22+ '';
23+ };
24+
1625 http_address = mkOption {
1726 type = types.str;
1827 default = "*:6081";
@@ -39,7 +48,7 @@ in
3948 extraModules = mkOption {
4049 type = types.listOf types.package;
4150 default = [];
42− example = literalExample "[ pkgs.varnish-geoip ]";
51+ example = literalExample "[ pkgs.varnish5Packages.geoip ]";
4352 description = "
4453 Varnish modules (except 'std').
4554 ";
@@ -73,7 +82,7 @@ in
7382 serviceConfig = {
7483 Type = "simple";
7584 PermissionsStartOnly = true;
76− ExecStart = "${pkgs.varnish}/sbin/varnishd -a ${cfg.http_address} -n ${cfg.stateDir} -F ${cfg.extraCommandLine} ${commandLine}";
85+ ExecStart = "${cfg.package}/sbin/varnishd -a ${cfg.http_address} -n ${cfg.stateDir} -F ${cfg.extraCommandLine} ${commandLine}";
7786 Restart = "always";
7887 RestartSec = "5s";
7988 User = "varnish";
@@ -84,13 +93,13 @@ in
8493 };
8594 };
8695
87− environment.systemPackages = [ pkgs.varnish ];
96+ environment.systemPackages = [ cfg.package ];
8897
8998 # check .vcl syntax at compile time (e.g. before nixops deployment)
9099 system.extraDependencies = [
91100 (pkgs.stdenv.mkDerivation {
92101 name = "check-varnish-syntax";
93− buildCommand = "${pkgs.varnish}/sbin/varnishd -C ${commandLine} 2> $out";
102+ buildCommand = "${cfg.package}/sbin/varnishd -C ${commandLine} 2> $out || (cat $out; exit 1)";
94103 })
95104 ];
96105
nixos/modules/services/x11/desktop-managers/default.nix+3−3
@@ -87,11 +87,11 @@ in
8787
8888 default = mkOption {
8989 type = types.str;
90− default = "none";
91− example = "plasma5";
90+ default = "";
91+ example = "none";
9292 description = "Default desktop manager loaded if none have been chosen.";
9393 apply = defaultDM:
94− if defaultDM == "none" && cfg.session.list != [] then
94+ if defaultDM == "" && cfg.session.list != [] then
9595 (head cfg.session.list).name
9696 else if any (w: w.name == defaultDM) cfg.session.list then
9797 defaultDM
nixos/modules/services/x11/desktop-managers/gnome3.nix+1−2
@@ -182,8 +182,7 @@ in {
182182 { inherit (pkgs) networkmanager modemmanager wpa_supplicant;
183183 inherit (pkgs.gnome3) networkmanager-openvpn networkmanager-vpnc
184184 networkmanager-openconnect networkmanager-fortisslvpn
185− networkmanager-pptp networkmanager-iodine
186− networkmanager-l2tp; };
185+ networkmanager-iodine networkmanager-l2tp; };
187186
188187 # Needed for themes and backgrounds
189188 environment.pathsToLink = [ "/share" ];
nixos/modules/services/x11/desktop-managers/lxqt.nix+2
@@ -61,6 +61,8 @@ in
6161
6262 environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];
6363
64+ services.upower.enable = config.powerManagement.enable;
6465 };
6566
67+
6668}
nixos/modules/services/x11/desktop-managers/mate.nix+2
@@ -108,6 +108,8 @@ in
108108 services.gnome3.gnome-keyring.enable = true;
109109 services.upower.enable = config.powerManagement.enable;
110110
111+ security.pam.services."mate-screensaver".unixAuth = true;
112+
111113 environment.pathsToLink = [ "/share" ];
112114 };
113115
nixos/modules/services/x11/desktop-managers/xfce.nix+1−1
@@ -128,7 +128,7 @@ in
128128 # Set GTK_DATA_PREFIX so that GTK+ can find the Xfce themes.
129129 export GTK_DATA_PREFIX=${config.system.path}
130130
131− ${pkgs.stdenv.shell} ${pkgs.xfce.xinitrc} &
131+ ${pkgs.runtimeShell} ${pkgs.xfce.xinitrc} &
132132 waitPID=$!
133133 '';
134134 }];
nixos/modules/services/x11/display-managers/slim.nix+1−1
@@ -14,7 +14,7 @@ let
1414 default_xserver ${dmcfg.xserverBin}
1515 xserver_arguments ${toString dmcfg.xserverArgs}
1616 sessiondir ${dmcfg.session.desktops}
17− login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session"
17+ login_cmd exec ${pkgs.runtimeShell} ${dmcfg.session.script} "%session"
1818 halt_cmd ${config.systemd.package}/sbin/shutdown -h now
1919 reboot_cmd ${config.systemd.package}/sbin/shutdown -r now
2020 logfile /dev/stderr
nixos/modules/services/x11/window-managers/default.nix+2−3
@@ -12,6 +12,7 @@ in
1212 ./afterstep.nix
1313 ./bspwm.nix
1414 ./dwm.nix
15+ ./evilwm.nix
1516 ./exwm.nix
1617 ./fluxbox.nix
1718 ./fvwm.nix
@@ -61,9 +62,7 @@ in
6162 example = "wmii";
6263 description = "Default window manager loaded if none have been chosen.";
6364 apply = defaultWM:
64− if defaultWM == "none" && cfg.session != [] then
65− (head cfg.session).name
66− else if any (w: w.name == defaultWM) cfg.session then
65+ if any (w: w.name == defaultWM) cfg.session then
6766 defaultWM
6867 else
6968 throw "Default window manager (${defaultWM}) not found.";
nixos/modules/services/x11/xserver.nix+1−17
@@ -161,15 +161,6 @@ in
161161 '';
162162 };
163163
164− plainX = mkOption {
165− type = types.bool;
166− default = false;
167− description = ''
168− Whether the X11 session can be plain (without DM/WM) and
169− the Xsession script will be used as fallback or not.
170− '';
171− };
172−
173164 autorun = mkOption {
174165 type = types.bool;
175166 default = true;
@@ -561,11 +552,6 @@ in
561552 + "${toString (length primaryHeads)} heads set to primary: "
562553 + concatMapStringsSep ", " (x: x.output) primaryHeads;
563554 })
564− { assertion = cfg.desktopManager.default == "none" && cfg.windowManager.default == "none" -> cfg.plainX;
565− message = "Either the desktop manager or the window manager shouldn't be `none`! "
566− + "To explicitly allow this, you can also set `services.xserver.plainX` to `true`. "
567− + "The `default` value looks for enabled WMs/DMs and select the first one.";
568− }
569555 ];
570556
571557 environment.etc =
@@ -640,9 +626,7 @@ in
640626
641627 environment =
642628 {
643− XORG_DRI_DRIVER_PATH = "/run/opengl-driver/lib/dri"; # !!! Depends on the driver selected at runtime.
644− LD_LIBRARY_PATH = concatStringsSep ":" (
645− [ "${xorg.libX11.out}/lib" "${xorg.libXext.out}/lib" "/run/opengl-driver/lib" ]
629+ LD_LIBRARY_PATH = concatStringsSep ":" ([ "/run/opengl-driver/lib" ]
646630 ++ concatLists (catAttrs "libPath" cfg.drivers));
647631 } // cfg.displayManager.job.environment;
648632
nixos/modules/system/activation/activation-script.nix+1−1
@@ -61,7 +61,7 @@ in
6161 apply = set: {
6262 script =
6363 ''
64− #! ${pkgs.stdenv.shell}
64+ #! ${pkgs.runtimeShell}
6565
6666 systemConfig=@out@
6767
nixos/modules/system/boot/grow-partition.nix+9−2
@@ -32,8 +32,15 @@ with lib;
3232 rootDevice="${config.fileSystems."/".device}"
3333 if [ -e "$rootDevice" ]; then
3434 rootDevice="$(readlink -f "$rootDevice")"
35− parentDevice="$(lsblk -npo PKNAME "$rootDevice")"
36− TMPDIR=/run sh $(type -P growpart) "$parentDevice" "''${rootDevice#$parentDevice}"
35+ parentDevice="$rootDevice"
36+ while [ "''${parentDevice%[0-9]}" != "''${parentDevice}" ]; do
37+ parentDevice="''${parentDevice%[0-9]}";
38+ done
39+ partNum="''${rootDevice#''${parentDevice}}"
40+ if [ "''${parentDevice%[0-9]p}" != "''${parentDevice}" ] && [ -b "''${parentDevice%p}" ]; then
41+ parentDevice="''${parentDevice%p}"
42+ fi
43+ TMPDIR=/run sh $(type -P growpart) "$parentDevice" "$partNum"
3744 udevadm settle
3845 fi
3946 '';
nixos/modules/system/boot/kernel.nix+2−2
@@ -77,8 +77,8 @@ in
7777 type = types.int;
7878 default = 4;
7979 description = ''
80− The kernel console log level. Log messages with a priority
81− numerically less than this will not appear on the console.
80+ The kernel console <literal>loglevel</literal>. All Kernel Messages with a log level smaller
81+ than this setting will be printed to the console.
8282 '';
8383 };
8484
nixos/modules/system/boot/kexec.nix+19−18
@@ -1,21 +1,22 @@
1−{ config, pkgs, ... }:
1+{ config, pkgs, lib, ... }:
22
33{
4− environment.systemPackages = [ pkgs.kexectools ];
4+ config = lib.mkIf (pkgs.kexectools.meta.available) {
5+ environment.systemPackages = [ pkgs.kexectools ];
56
6− systemd.services."prepare-kexec" =
7− { description = "Preparation for kexec";
8− wantedBy = [ "kexec.target" ];
9− before = [ "systemd-kexec.service" ];
10− unitConfig.DefaultDependencies = false;
11− serviceConfig.Type = "oneshot";
12− path = [ pkgs.kexectools ];
13− script =
14− ''
15− p=$(readlink -f /nix/var/nix/profiles/system)
16− if ! [ -d $p ]; then exit 1; fi
17− exec kexec --load $p/kernel --initrd=$p/initrd --append="$(cat $p/kernel-params) init=$p/init"
18− '';
19− };
20−
21−}
7+ systemd.services."prepare-kexec" =
8+ { description = "Preparation for kexec";
9+ wantedBy = [ "kexec.target" ];
10+ before = [ "systemd-kexec.service" ];
11+ unitConfig.DefaultDependencies = false;
12+ serviceConfig.Type = "oneshot";
13+ path = [ pkgs.kexectools ];
14+ script =
15+ ''
16+ p=$(readlink -f /nix/var/nix/profiles/system)
17+ if ! [ -d $p ]; then exit 1; fi
18+ exec kexec --load $p/kernel --initrd=$p/initrd --append="$(cat $p/kernel-params) init=$p/init"
19+ '';
20+ };
21+ };
22+}
nixos/modules/system/boot/loader/grub/grub.nix+3−3
@@ -40,7 +40,7 @@ let
4040 { splashImage = f cfg.splashImage;
4141 grub = f grub;
4242 grubTarget = f (grub.grubTarget or "");
43− shell = "${pkgs.stdenv.shell}";
43+ shell = "${pkgs.runtimeShell}";
4444 fullName = (builtins.parseDrvName realGrub.name).name;
4545 fullVersion = (builtins.parseDrvName realGrub.name).version;
4646 grubEfi = f grubEfi;
@@ -536,9 +536,9 @@ in
536536 btrfsprogs = pkgs.btrfs-progs;
537537 };
538538 in pkgs.writeScript "install-grub.sh" (''
539− #!${pkgs.stdenv.shell}
539+ #!${pkgs.runtimeShell}
540540 set -e
541− export PERL5LIB=${makePerlPath (with pkgs.perlPackages; [ FileSlurp XMLLibXML XMLSAX ListCompare ])}
541+ export PERL5LIB=${makePerlPath (with pkgs.perlPackages; [ FileSlurp XMLLibXML XMLSAX XMLSAXBase ListCompare ])}
542542 ${optionalString cfg.enableCryptodisk "export GRUB_ENABLE_CRYPTODISK=y"}
543543 '' + flip concatMapStrings cfg.mirroredBoots (args: ''
544544 ${pkgs.perl}/bin/perl ${install-grub-pl} ${grubConfig args} $@
nixos/modules/system/boot/loader/grub/install-grub.pl+1−1
@@ -182,7 +182,7 @@ sub GrubFs {
182182 # Based on the type pull in the identifier from the system
183183 my ($status, @devInfo) = runCommand("@utillinux@/bin/blkid -o export @{[$fs->device]}");
184184 if ($status != 0) {
185− die "Failed to get blkid info for @{[$fs->mount]} on @{[$fs->device]}";
185+ die "Failed to get blkid info (returned $status) for @{[$fs->mount]} on @{[$fs->device]}";
186186 }
187187 my @matches = join("", @devInfo) =~ m/@{[uc $fsIdentifier]}=([^\n]*)/;
188188 if ($#matches != 0) {
nixos/modules/system/boot/loader/raspberrypi/builder.sh+4
@@ -109,11 +109,15 @@ copyForced $fwdir/bootcode.bin /boot/bootcode.bin
109109copyForced $fwdir/fixup.dat /boot/fixup.dat
110110copyForced $fwdir/fixup_cd.dat /boot/fixup_cd.dat
111111copyForced $fwdir/fixup_db.dat /boot/fixup_db.dat
112+copyForced $fwdir/fixup_x.dat /boot/fixup_x.dat
112113copyForced $fwdir/start.elf /boot/start.elf
113114copyForced $fwdir/start_cd.elf /boot/start_cd.elf
114115copyForced $fwdir/start_db.elf /boot/start_db.elf
115116copyForced $fwdir/start_x.elf /boot/start_x.elf
116117
118+# Add the config.txt
119+copyForced @configTxt@ /boot/config.txt
120+
117121# Remove obsolete files from /boot and /boot/old.
118122for fn in /boot/old/*linux* /boot/old/*initrd-initrd* /boot/bcm*.dtb; do
119123 if ! test "${filesCopied[$fn]}" = 1; then
nixos/modules/system/boot/loader/raspberrypi/builder_uboot.nixnew file+34
@@ -0,0 +1,34 @@
1+{ config, pkgs, configTxt }:
2+
3+let
4+ cfg = config.boot.loader.raspberryPi;
5+ isAarch64 = pkgs.stdenv.isAarch64;
6+
7+ uboot =
8+ if cfg.version == 1 then
9+ pkgs.ubootRaspberryPi
10+ else if cfg.version == 2 then
11+ pkgs.ubootRaspberryPi2
12+ else
13+ if isAarch64 then
14+ pkgs.ubootRaspberryPi3_64bit
15+ else
16+ pkgs.ubootRaspberryPi3_32bit;
17+
18+ extlinuxConfBuilder =
19+ import ../generic-extlinux-compatible/extlinux-conf-builder.nix {
20+ inherit pkgs;
21+ };
22+in
23+pkgs.substituteAll {
24+ src = ./builder_uboot.sh;
25+ isExecutable = true;
26+ inherit (pkgs) bash;
27+ path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
28+ firmware = pkgs.raspberrypifw;
29+ inherit uboot;
30+ inherit configTxt;
31+ inherit extlinuxConfBuilder;
32+ version = cfg.version;
33+}
34+
nixos/modules/system/boot/loader/raspberrypi/builder_uboot.shnew file+29
@@ -0,0 +1,29 @@
1+#! @bash@/bin/sh -e
2+
3+copyForced() {
4+ local src="$1"
5+ local dst="$2"
6+ cp $src $dst.tmp
7+ mv $dst.tmp $dst
8+}
9+
10+# Call the extlinux builder
11+"@extlinuxConfBuilder@" "$@"
12+
13+# Add the firmware files
14+fwdir=@firmware@/share/raspberrypi/boot/
15+copyForced $fwdir/bootcode.bin /boot/bootcode.bin
16+copyForced $fwdir/fixup.dat /boot/fixup.dat
17+copyForced $fwdir/fixup_cd.dat /boot/fixup_cd.dat
18+copyForced $fwdir/fixup_db.dat /boot/fixup_db.dat
19+copyForced $fwdir/fixup_x.dat /boot/fixup_x.dat
20+copyForced $fwdir/start.elf /boot/start.elf
21+copyForced $fwdir/start_cd.elf /boot/start_cd.elf
22+copyForced $fwdir/start_db.elf /boot/start_db.elf
23+copyForced $fwdir/start_x.elf /boot/start_x.elf
24+
25+# Add the uboot file
26+copyForced @uboot@/u-boot.bin /boot/u-boot-rpi.bin
27+
28+# Add the config.txt
29+copyForced @configTxt@ /boot/config.txt
nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+83−17
@@ -5,42 +5,108 @@ with lib;
55let
66 cfg = config.boot.loader.raspberryPi;
77
8− builder = pkgs.substituteAll {
8+ builderGeneric = pkgs.substituteAll {
99 src = ./builder.sh;
1010 isExecutable = true;
1111 inherit (pkgs) bash;
1212 path = [pkgs.coreutils pkgs.gnused pkgs.gnugrep];
1313 firmware = pkgs.raspberrypifw;
1414 version = cfg.version;
15+ inherit configTxt;
1516 };
1617
1718 platform = pkgs.stdenv.platform;
1819
20+ builderUboot = import ./builder_uboot.nix { inherit config; inherit pkgs; inherit configTxt; };
21+
22+ builder =
23+ if cfg.uboot.enable then
24+ "${builderUboot} -g ${toString cfg.uboot.configurationLimit} -t ${timeoutStr} -c"
25+ else
26+ builderGeneric;
27+
28+ blCfg = config.boot.loader;
29+ timeoutStr = if blCfg.timeout == null then "-1" else toString blCfg.timeout;
30+
31+ isAarch64 = pkgs.stdenv.isAarch64;
32+ optional = pkgs.stdenv.lib.optionalString;
33+
34+ configTxt =
35+ pkgs.writeText "config.txt" (''
36+ # U-Boot used to need this to work, regardless of whether UART is actually used or not.
37+ # TODO: check when/if this can be removed.
38+ enable_uart=1
39+
40+ # Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
41+ # when attempting to show low-voltage or overtemperature warnings.
42+ avoid_warnings=1
43+ '' + optional isAarch64 ''
44+ # Boot in 64-bit mode.
45+ arm_control=0x200
46+ '' + optional cfg.uboot.enable ''
47+ kernel=u-boot-rpi.bin
48+ '' + optional (cfg.firmwareConfig != null) cfg.firmwareConfig);
49+
1950in
2051
2152{
2253 options = {
2354
24− boot.loader.raspberryPi.enable = mkOption {
25− default = false;
26− type = types.bool;
27− description = ''
28− Whether to create files with the system generations in
29− <literal>/boot</literal>.
30− <literal>/boot/old</literal> will hold files from old generations.
31− '';
32− };
55+ boot.loader.raspberryPi = {
56+ enable = mkOption {
57+ default = false;
58+ type = types.bool;
59+ description = ''
60+ Whether to create files with the system generations in
61+ <literal>/boot</literal>.
62+ <literal>/boot/old</literal> will hold files from old generations.
63+ '';
64+ };
3365
34− boot.loader.raspberryPi.version = mkOption {
35− default = 2;
36− type = types.enum [ 1 2 3 ];
37− description = ''
38− '';
39− };
66+ version = mkOption {
67+ default = 2;
68+ type = types.enum [ 1 2 3 ];
69+ description = ''
70+ '';
71+ };
72+
73+ uboot = {
74+ enable = mkOption {
75+ default = false;
76+ type = types.bool;
77+ description = ''
78+ Enable using uboot as bootmanager for the raspberry pi.
79+ '';
80+ };
81+
82+ configurationLimit = mkOption {
83+ default = 20;
84+ example = 10;
85+ type = types.int;
86+ description = ''
87+ Maximum number of configurations in the boot menu.
88+ '';
89+ };
90+
91+ };
4092
93+ firmwareConfig = mkOption {
94+ default = null;
95+ type = types.nullOr types.string;
96+ description = ''
97+ Extra options that will be appended to <literal>/boot/config.txt</literal> file.
98+ For possible values, see: https://www.raspberrypi.org/documentation/configuration/config-txt/
99+ '';
100+ };
101+ };
41102 };
42103
43− config = mkIf config.boot.loader.raspberryPi.enable {
104+ config = mkIf cfg.enable {
105+ assertions = singleton {
106+ assertion = !pkgs.stdenv.isAarch64 || cfg.version == 3;
107+ message = "Only Raspberry Pi 3 supports aarch64.";
108+ };
109+
44110 system.build.installBootLoader = builder;
45111 system.boot.loader.id = "raspberrypi";
46112 system.boot.loader.kernelFile = platform.kernelTarget;
nixos/modules/system/boot/stage-1.nix+49−5
@@ -30,6 +30,50 @@ let
3030 # mounting `/`, like `/` on a loopback).
3131 fileSystems = filter utils.fsNeededForBoot config.system.build.fileSystems;
3232
33+ # A utility for enumerating the shared-library dependencies of a program
34+ findLibs = pkgs.writeShellScriptBin "find-libs" ''
35+ set -euo pipefail
36+
37+ declare -A seen
38+ declare -a left
39+
40+ patchelf="${pkgs.buildPackages.patchelf}/bin/patchelf"
41+
42+ function add_needed {
43+ rpath="$($patchelf --print-rpath $1)"
44+ dir="$(dirname $1)"
45+ for lib in $($patchelf --print-needed $1); do
46+ left+=("$lib" "$rpath" "$dir")
47+ done
48+ }
49+
50+ add_needed $1
51+
52+ while [ ''${#left[@]} -ne 0 ]; do
53+ next=''${left[0]}
54+ rpath=''${left[1]}
55+ ORIGIN=''${left[2]}
56+ left=("''${left[@]:3}")
57+ if [ -z ''${seen[$next]+x} ]; then
58+ seen[$next]=1
59+ IFS=: read -ra paths <<< $rpath
60+ res=
61+ for path in "''${paths[@]}"; do
62+ path=$(eval "echo $path")
63+ if [ -f "$path/$next" ]; then
64+ res="$path/$next"
65+ echo "$res"
66+ add_needed "$res"
67+ break
68+ fi
69+ done
70+ if [ -z "$res" ]; then
71+ echo "Couldn't satisfy dependency $next" >&2
72+ exit 1
73+ fi
74+ fi
75+ done
76+ '';
3377
3478 # Some additional utilities needed in stage 1, like mount, lvm, fsck
3579 # etc. We don't want to bring in all of those packages, so we just
@@ -37,7 +81,7 @@ let
3781 # we just copy what we need from Glibc and use patchelf to make it
3882 # work.
3983 extraUtils = pkgs.runCommandCC "extra-utils"
40− { buildInputs = [pkgs.nukeReferences];
84+ { nativeBuildInputs = [pkgs.buildPackages.nukeReferences];
4185 allowedReferences = [ "out" ]; # prevent accidents like glibc being included in the initrd
4286 }
4387 ''
@@ -103,9 +147,7 @@ let
103147 # Copy all of the needed libraries
104148 find $out/bin $out/lib -type f | while read BIN; do
105149 echo "Copying libs for executable $BIN"
106− LDD="$(ldd $BIN)" || continue
107− LIBS="$(echo "$LDD" | awk '{print $3}' | sed '/^$/d')"
108− for LIB in $LIBS; do
150+ for LIB in $(${findLibs}/bin/find-libs $BIN); do
109151 TGT="$out/lib/$(basename $LIB)"
110152 if [ ! -f "$TGT" ]; then
111153 SRC="$(readlink -e $LIB)"
@@ -132,6 +174,7 @@ let
132174 fi
133175 done
134176
177+ if [ -z "${toString pkgs.stdenv.isCross}" ]; then
135178 # Make sure that the patchelf'ed binaries still work.
136179 echo "testing patched programs..."
137180 $out/bin/ash -c 'echo hello world' | grep "hello world"
@@ -144,6 +187,7 @@ let
144187 $out/bin/mdadm --version
145188
146189 ${config.boot.initrd.extraUtilsCommandsTest}
190+ fi
147191 ''; # */
148192
149193
@@ -245,7 +289,7 @@ let
245289 { src = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf"; }
246290 ''
247291 target=$out
248− ${pkgs.perl}/bin/perl -0pe 's/## file: iwlwifi.conf(.+?)##/##/s;' $src > $out
292+ ${pkgs.buildPackages.perl}/bin/perl -0pe 's/## file: iwlwifi.conf(.+?)##/##/s;' $src > $out
249293 '';
250294 symlink = "/etc/modprobe.d/ubuntu.conf";
251295 }
nixos/modules/system/boot/stage-2-init.sh+4−4
@@ -43,7 +43,7 @@ if [ ! -e /proc/1 ]; then
4343 local options="$3"
4444 local fsType="$4"
4545
46− mkdir -m 0755 -p "$mountPoint"
46+ install -m 0755 -d "$mountPoint"
4747 mount -n -t "$fsType" -o "$options" "$device" "$mountPoint"
4848 }
4949 source @earlyMountScript@
@@ -71,7 +71,7 @@ fi
7171
7272
7373# Provide a /etc/mtab.
74−mkdir -m 0755 -p /etc
74+install -m 0755 -d /etc
7575test -e /etc/fstab || touch /etc/fstab # to shut up mount
7676rm -f /etc/mtab* # not that we care about stale locks
7777ln -s /proc/mounts /etc/mtab
@@ -79,8 +79,8 @@ ln -s /proc/mounts /etc/mtab
7979
8080# More special file systems, initialise required directories.
8181[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
82−mkdir -m 01777 -p /tmp
83−mkdir -m 0755 -p /var/{log,lib,db} /nix/var /etc/nixos/ \
82+install -m 01777 -d /tmp
83+install -m 0755 -d /var/{log,lib,db} /nix/var /etc/nixos/ \
8484 /run/lock /home /bin # for the /bin/sh symlink
8585
8686
nixos/modules/system/boot/stage-2.nix+1
@@ -10,6 +10,7 @@ let
1010 bootStage2 = pkgs.substituteAll {
1111 src = ./stage-2-init.sh;
1212 shellDebug = "${pkgs.bashInteractive}/bin/bash";
13+ shell = "${pkgs.bash}/bin/bash";
1314 isExecutable = true;
1415 inherit (config.nix) readOnlyStore;
1516 inherit (config.networking) useHostResolvConf;
nixos/modules/system/boot/systemd-nspawn.nix+1−1
@@ -110,7 +110,7 @@ in {
110110
111111 config =
112112 let
113− units = mapAttrs' (n: v: nameValuePair "${n}.nspawn" (instanceToUnit n v)) cfg;
113+ units = mapAttrs' (n: v: let nspawnFile = "${n}.nspawn"; in nameValuePair nspawnFile (instanceToUnit nspawnFile v)) cfg;
114114 in mkIf (cfg != {}) {
115115
116116 environment.etc."systemd/nspawn".source = generateUnits "nspawn" units [] [];
nixos/modules/system/boot/systemd-unit-options.nix+1−1
@@ -217,7 +217,7 @@ in rec {
217217
218218 environment = mkOption {
219219 default = {};
220− type = types.attrs; # FIXME
220+ type = with types; attrsOf (nullOr (either str package));
221221 example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
222222 description = "Environment variables passed to the service's processes.";
223223 };
nixos/modules/system/boot/systemd.nix+24−9
@@ -137,7 +137,6 @@ let
137137
138138 # Slices / containers.
139139 "slices.target"
140− "system.slice"
141140 "user.slice"
142141 "machine.slice"
143142 "machines.target"
@@ -241,37 +240,37 @@ let
241240 }
242241 (mkIf (config.preStart != "")
243242 { serviceConfig.ExecStartPre = makeJobScript "${name}-pre-start" ''
244− #! ${pkgs.stdenv.shell} -e
243+ #! ${pkgs.runtimeShell} -e
245244 ${config.preStart}
246245 '';
247246 })
248247 (mkIf (config.script != "")
249248 { serviceConfig.ExecStart = makeJobScript "${name}-start" ''
250− #! ${pkgs.stdenv.shell} -e
249+ #! ${pkgs.runtimeShell} -e
251250 ${config.script}
252251 '' + " " + config.scriptArgs;
253252 })
254253 (mkIf (config.postStart != "")
255254 { serviceConfig.ExecStartPost = makeJobScript "${name}-post-start" ''
256− #! ${pkgs.stdenv.shell} -e
255+ #! ${pkgs.runtimeShell} -e
257256 ${config.postStart}
258257 '';
259258 })
260259 (mkIf (config.reload != "")
261260 { serviceConfig.ExecReload = makeJobScript "${name}-reload" ''
262− #! ${pkgs.stdenv.shell} -e
261+ #! ${pkgs.runtimeShell} -e
263262 ${config.reload}
264263 '';
265264 })
266265 (mkIf (config.preStop != "")
267266 { serviceConfig.ExecStop = makeJobScript "${name}-pre-stop" ''
268− #! ${pkgs.stdenv.shell} -e
267+ #! ${pkgs.runtimeShell} -e
269268 ${config.preStop}
270269 '';
271270 })
272271 (mkIf (config.postStop != "")
273272 { serviceConfig.ExecStopPost = makeJobScript "${name}-post-stop" ''
274− #! ${pkgs.stdenv.shell} -e
273+ #! ${pkgs.runtimeShell} -e
275274 ${config.postStop}
276275 '';
277276 })
@@ -516,7 +515,7 @@ in
516515 };
517516
518517 systemd.globalEnvironment = mkOption {
519− type = types.attrs;
518+ type = with types; attrsOf (nullOr (either str package));
520519 default = {};
521520 example = { TZ = "CET"; };
522521 description = ''
@@ -524,6 +523,14 @@ in
524523 '';
525524 };
526525
526+ systemd.enableCgroupAccounting = mkOption {
527+ default = false;
528+ type = types.bool;
529+ description = ''
530+ Whether to enable cgroup accounting.
531+ '';
532+ };
533+
527534 systemd.extraConfig = mkOption {
528535 default = "";
529536 type = types.lines;
@@ -725,6 +732,13 @@ in
725732
726733 "systemd/system.conf".text = ''
727734 [Manager]
735+ ${optionalString config.systemd.enableCgroupAccounting ''
736+ DefaultCPUAccounting=yes
737+ DefaultIOAccounting=yes
738+ DefaultBlockIOAccounting=yes
739+ DefaultMemoryAccounting=yes
740+ DefaultTasksAccounting=yes
741+ ''}
728742 ${config.systemd.extraConfig}
729743 '';
730744
@@ -821,7 +835,8 @@ in
821835
822836 system.requiredKernelConfig = map config.lib.kernelConfig.isEnabled
823837 [ "DEVTMPFS" "CGROUPS" "INOTIFY_USER" "SIGNALFD" "TIMERFD" "EPOLL" "NET"
824− "SYSFS" "PROC_FS" "FHANDLE" "DMIID" "AUTOFS4_FS" "TMPFS_POSIX_ACL"
838+ "SYSFS" "PROC_FS" "FHANDLE" "CRYPTO_USER_API_HASH" "CRYPTO_HMAC"
839+ "CRYPTO_SHA256" "DMIID" "AUTOFS4_FS" "TMPFS_POSIX_ACL"
825840 "TMPFS_XATTR" "SECCOMP"
826841 ];
827842
nixos/modules/tasks/filesystems/exfat.nix+1−1
@@ -5,7 +5,7 @@ with lib;
55{
66 config = mkIf (any (fs: fs == "exfat") config.boot.supportedFilesystems) {
77
8− system.fsPackages = [ pkgs.exfat-utils pkgs.fuse_exfat ];
8+ system.fsPackages = [ pkgs.exfat ];
99
1010 };
1111}
nixos/modules/tasks/filesystems/zfs.nix+3−1
@@ -305,6 +305,8 @@ in
305305 }
306306 ];
307307
308+ virtualisation.lxd.zfsSupport = true;
309+
308310 boot = {
309311 kernelModules = [ "spl" "zfs" ] ;
310312 extraModulePackages = with packages; [ spl zfs ];
@@ -452,7 +454,7 @@ in
452454 }) snapshotNames);
453455
454456 systemd.timers = let
455− timer = name: if name == "frequent" then "*:15,30,45" else name;
457+ timer = name: if name == "frequent" then "*:0,15,30,45" else name;
456458 in builtins.listToAttrs (map (snapName:
457459 {
458460 name = "zfs-snapshot-${snapName}";
nixos/modules/tasks/kbd.nix+1−1
@@ -13,7 +13,7 @@ let
1313 isUnicode = hasSuffix "UTF-8" (toUpper config.i18n.defaultLocale);
1414
1515 optimizedKeymap = pkgs.runCommand "keymap" {
16− nativeBuildInputs = [ pkgs.kbd ];
16+ nativeBuildInputs = [ pkgs.buildPackages.kbd ];
1717 LOADKEYS_KEYMAP_PATH = "${kbdEnv}/share/keymaps/**";
1818 } ''
1919 loadkeys -b ${optionalString isUnicode "-u"} "${config.i18n.consoleKeyMap}" > $out
nixos/modules/tasks/network-interfaces-scripted.nix+3−4
@@ -68,8 +68,7 @@ let
6868 (hasAttr dev cfg.macvlans) ||
6969 (hasAttr dev cfg.sits) ||
7070 (hasAttr dev cfg.vlans) ||
71− (hasAttr dev cfg.vswitches) ||
72− (hasAttr dev cfg.wlanInterfaces)
71+ (hasAttr dev cfg.vswitches)
7372 then [ "${dev}-netdev.service" ]
7473 else optional (dev != null && dev != "lo" && !config.boot.isContainer) (subsystemDevice dev);
7574
@@ -192,7 +191,7 @@ let
192191 if out=$(ip addr add "${cidr}" dev "${i.name}" 2>&1); then
193192 echo "done"
194193 elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
195− echo "failed"
194+ echo "'ip addr add "${cidr}" dev "${i.name}"' failed: $out"
196195 exit 1
197196 fi
198197 ''
@@ -213,7 +212,7 @@ let
213212 if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" 2>&1); then
214213 echo "done"
215214 elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
216− echo "failed"
215+ echo "'ip route add "${cidr}" ${options} ${via} dev "${i.name}"' failed: $out"
217216 exit 1
218217 fi
219218 ''
nixos/modules/tasks/network-interfaces.nix+6−35
@@ -26,7 +26,7 @@ let
2626 executable = true;
2727 destination = "/bin/bridge-stp";
2828 text = ''
29− #!${pkgs.stdenv.shell} -e
29+ #!${pkgs.runtimeShell} -e
3030 export PATH="${pkgs.mstpd}/bin"
3131
3232 BRIDGES=(${concatStringsSep " " (attrNames rstpBridges)})
@@ -62,35 +62,6 @@ let
6262 then mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n==device) interfaces) ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces)
6363 else mapAttrsToList (n: v: v // {_iName = n;}) interfaces;
6464
65− # udev script that configures a physical wlan device and adds virtual interfaces
66− wlanDeviceUdevScript = device: interfaceList: pkgs.writeScript "wlan-${device}-udev-script" ''
67− #!${pkgs.stdenv.shell}
68−
69− # Change the wireless phy device to a predictable name.
70− if [ -e "/sys/class/net/${device}/phy80211/name" ]; then
71− ${pkgs.iw}/bin/iw phy `${pkgs.coreutils}/bin/cat /sys/class/net/${device}/phy80211/name` set name ${device} || true
72− fi
73−
74− # Crate new, virtual interfaces and configure them at the same time
75− ${flip concatMapStrings (drop 1 interfaceList) (i: ''
76− ${pkgs.iw}/bin/iw dev ${device} interface add ${i._iName} type ${i.type} \
77− ${optionalString (i.type == "mesh" && i.meshID != null) "mesh_id ${i.meshID}"} \
78− ${optionalString (i.type == "monitor" && i.flags != null) "flags ${i.flags}"} \
79− ${optionalString (i.type == "managed" && i.fourAddr != null) "4addr ${if i.fourAddr then "on" else "off"}"} \
80− ${optionalString (i.mac != null) "addr ${i.mac}"}
81− '')}
82−
83− # Reconfigure and rename the default interface that already exists
84− ${flip concatMapStrings (take 1 interfaceList) (i: ''
85− ${pkgs.iw}/bin/iw dev ${device} set type ${i.type}
86− ${optionalString (i.type == "mesh" && i.meshID != null) "${pkgs.iw}/bin/iw dev ${device} set meshid ${i.meshID}"}
87− ${optionalString (i.type == "monitor" && i.flags != null) "${pkgs.iw}/bin/iw dev ${device} set monitor ${i.flags}"}
88− ${optionalString (i.type == "managed" && i.fourAddr != null) "${pkgs.iw}/bin/iw dev ${device} set 4addr ${if i.fourAddr then "on" else "off"}"}
89− ${optionalString (i.mac != null) "${pkgs.iproute}/bin/ip link set dev ${device} address ${i.mac}"}
90− ${optionalString (device != i._iName) "${pkgs.iproute}/bin/ip link set dev ${device} name ${i._iName}"}
91− '')}
92− '';
93−
9465 # We must escape interfaces due to the systemd interpretation
9566 subsystemDevice = interface:
9667 "sys-subsystem-net-devices-${escapeSystemdPath interface}.device";
@@ -142,7 +113,7 @@ let
142113 default = { };
143114 example = { mtu = "1492"; window = "524288"; };
144115 description = ''
145− Other route options. See the symbol <literal>OPTION</literal>
116+ Other route options. See the symbol <literal>OPTIONS</literal>
146117 in the <literal>ip-route(8)</literal> manual page for the details.
147118 '';
148119 };
@@ -191,7 +162,7 @@ let
191162 preferTempAddress = mkOption {
192163 type = types.bool;
193164 default = cfg.enableIPv6;
194− defaultText = literalExample "config.networking.enableIpv6";
165+ defaultText = literalExample "config.networking.enableIPv6";
195166 description = ''
196167 When using SLAAC prefer a temporary (IPv6) address over the EUI-64
197168 address for originating connections. This is used to reduce tracking.
@@ -489,7 +460,7 @@ in
489460 networking.interfaces = mkOption {
490461 default = {};
491462 example =
492− { eth0.ipv4 = [ {
463+ { eth0.ipv4.addresses = [ {
493464 address = "131.211.84.78";
494465 prefixLength = 25;
495466 } ];
@@ -1158,7 +1129,7 @@ in
11581129 # The script creates the required, new WLAN interfaces interfaces and configures the
11591130 # existing, default interface.
11601131 curInterfaceScript = device: current: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${device}.sh" ''
1161− #!${pkgs.stdenv.shell}
1132+ #!${pkgs.runtimeShell}
11621133 # Change the wireless phy device to a predictable name.
11631134 ${pkgs.iw}/bin/iw phy `${pkgs.coreutils}/bin/cat /sys/class/net/$INTERFACE/phy80211/name` set name ${device}
11641135
@@ -1177,7 +1148,7 @@ in
11771148
11781149 # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface.
11791150 newInterfaceScript = device: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" ''
1180− #!${pkgs.stdenv.shell}
1151+ #!${pkgs.runtimeShell}
11811152 # Configure the new interface
11821153 ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type}
11831154 ${optionalString (new.type == "mesh" && new.meshID!=null) "${pkgs.iw}/bin/iw dev ${device} set meshid ${new.meshID}"}
nixos/modules/virtualisation/amazon-init.nix+1−1
@@ -2,7 +2,7 @@
22
33let
44 script = ''
5− #!${pkgs.stdenv.shell} -eu
5+ #!${pkgs.runtimeShell} -eu
66
77 echo "attempting to fetch configuration from EC2 user data..."
88
nixos/modules/virtualisation/azure-agent.nix+7−3
@@ -47,7 +47,7 @@ let
4747 };
4848
4949 provisionedHook = pkgs.writeScript "provisioned-hook" ''
50− #!${pkgs.stdenv.shell}
50+ #!${pkgs.runtimeShell}
5151 ${config.systemd.package}/bin/systemctl start provisioned.target
5252 '';
5353
@@ -66,6 +66,10 @@ in
6666 default = false;
6767 description = "Whether to enable verbose logging.";
6868 };
69+ mountResourceDisk = mkOption {
70+ default = true;
71+ description = "Whether the agent should format (ext4) and mount the resource disk to /mnt/resource.";
72+ };
6973 };
7074
7175 ###### implementation
@@ -112,7 +116,7 @@ in
112116 Provisioning.ExecuteCustomData=n
113117
114118 # Format if unformatted. If 'n', resource disk will not be mounted.
115− ResourceDisk.Format=y
119+ ResourceDisk.Format=${if cfg.mountResourceDisk then "y" else "n"}
116120
117121 # File system on the resource disk
118122 # Typically ext3 or ext4. FreeBSD images should use 'ufs2' here.
@@ -181,7 +185,7 @@ in
181185 after = [ "network-online.target" "sshd.service" ];
182186 wants = [ "network-online.target" ];
183187
184− path = [ pkgs.e2fsprogs ];
188+ path = [ pkgs.e2fsprogs pkgs.bash ];
185189 description = "Windows Azure Agent Service";
186190 unitConfig.ConditionPathExists = "/etc/waagent.conf";
187191 serviceConfig = {
nixos/modules/virtualisation/containers.nix+17−5
@@ -33,7 +33,7 @@ let
3333 in
3434 pkgs.writeScript "container-init"
3535 ''
36− #! ${pkgs.stdenv.shell} -e
36+ #! ${pkgs.runtimeShell} -e
3737
3838 # Initialise the container side of the veth pair.
3939 if [ "$PRIVATE_NETWORK" = 1 ]; then
@@ -112,7 +112,7 @@ let
112112
113113 # If the host is 64-bit and the container is 32-bit, add a
114114 # --personality flag.
115− ${optionalString (config.nixpkgs.system == "x86_64-linux") ''
115+ ${optionalString (config.nixpkgs.localSystem.system == "x86_64-linux") ''
116116 if [ "$(< ''${SYSTEM_PATH:-/nix/var/nix/profiles/per-container/$INSTANCE/system}/system)" = i686-linux ]; then
117117 extraFlags+=" --personality=x86"
118118 fi
@@ -223,7 +223,7 @@ let
223223 serviceDirectives = cfg: {
224224 ExecReload = pkgs.writeScript "reload-container"
225225 ''
226− #! ${pkgs.stdenv.shell} -e
226+ #! ${pkgs.runtimeShell} -e
227227 ${pkgs.nixos-container}/bin/nixos-container run "$INSTANCE" -- \
228228 bash --login -c "''${SYSTEM_PATH:-/nix/var/nix/profiles/system}/bin/switch-to-configuration test"
229229 '';
@@ -255,7 +255,7 @@ let
255255 };
256256
257257
258− system = config.nixpkgs.system;
258+ system = config.nixpkgs.localSystem.system;
259259
260260 bindMountOpts = { name, config, ... }: {
261261
@@ -575,6 +575,16 @@ in
575575 '';
576576 };
577577
578+ extraFlags = mkOption {
579+ type = types.listOf types.str;
580+ default = [];
581+ example = [ "--drop-capability=CAP_SYS_CHROOT" ];
582+ description = ''
583+ Extra flags passed to the systemd-nspawn command.
584+ See systemd-nspawn(1) for details.
585+ '';
586+ };
587+
578588 } // networkOptions;
579589
580590 config = mkMerge
@@ -714,7 +724,9 @@ in
714724 ${optionalString cfg.autoStart ''
715725 AUTO_START=1
716726 ''}
717− EXTRA_NSPAWN_FLAGS="${mkBindFlags cfg.bindMounts}"
727+ EXTRA_NSPAWN_FLAGS="${mkBindFlags cfg.bindMounts +
728+ optionalString (cfg.extraFlags != [])
729+ (" " + concatStringsSep " " cfg.extraFlags)}"
718730 '';
719731 }) config.containers;
720732
nixos/modules/virtualisation/ec2-amis.nix+18−1
@@ -240,5 +240,22 @@ let self = {
240240 "17.09".sa-east-1.hvm-ebs = "ami-4762202b";
241241 "17.09".ap-south-1.hvm-ebs = "ami-4e376021";
242242
243− latest = self."17.09";
243+ # 18.03.131792.becbe4dbe16
244+ "18.03".eu-west-1.hvm-ebs = "ami-cda4fab4";
245+ "18.03".eu-west-2.hvm-ebs = "ami-d96786be";
246+ "18.03".eu-west-3.hvm-ebs = "ami-6b0cba16";
247+ "18.03".eu-central-1.hvm-ebs = "ami-5e2b75b5";
248+ "18.03".us-east-1.hvm-ebs = "ami-d464cba9";
249+ "18.03".us-east-2.hvm-ebs = "ami-fd221298";
250+ "18.03".us-west-1.hvm-ebs = "ami-ff0d1d9f";
251+ "18.03".us-west-2.hvm-ebs = "ami-c05c3bb8";
252+ "18.03".ca-central-1.hvm-ebs = "ami-cc72f4a8";
253+ "18.03".ap-southeast-1.hvm-ebs = "ami-b61633ca";
254+ "18.03".ap-southeast-2.hvm-ebs = "ami-530fc131";
255+ "18.03".ap-northeast-1.hvm-ebs = "ami-90d6c0ec";
256+ "18.03".ap-northeast-2.hvm-ebs = "ami-a1248bcf";
257+ "18.03".sa-east-1.hvm-ebs = "ami-b090c6dc";
258+ "18.03".ap-south-1.hvm-ebs = "ami-32c9ec5d";
259+
260+ latest = self."18.03";
244261}; in self
nixos/modules/virtualisation/google-compute-image.nix+10−1
@@ -2,7 +2,7 @@
22
33with lib;
44let
5− diskSize = 1024; # MB
5+ diskSize = 1536; # MB
66 gce = pkgs.google-compute-engine;
77in
88{
@@ -57,6 +57,12 @@ in
5757 # Always include cryptsetup so that NixOps can use it.
5858 environment.systemPackages = [ pkgs.cryptsetup ];
5959
60+ # Make sure GCE image does not replace host key that NixOps sets
61+ environment.etc."default/instance_configs.cfg".text = lib.mkDefault ''
62+ [InstanceSetup]
63+ set_host_keys = false
64+ '';
65+
6066 # Rely on GCP's firewall instead
6167 networking.firewall.enable = mkDefault false;
6268
@@ -69,6 +75,9 @@ in
6975
7076 networking.usePredictableInterfaceNames = false;
7177
78+ # GC has 1460 MTU
79+ networking.interfaces.eth0.mtu = 1460;
80+
7281 # allow the google-accounts-daemon to manage users
7382 users.mutableUsers = true;
7483 # and allow users to sudo without password
nixos/modules/virtualisation/libvirtd.nix+3−11
@@ -119,18 +119,10 @@ in {
119119 after = [ "systemd-udev-settle.service" ]
120120 ++ optional vswitch.enable "vswitchd.service";
121121
122− environment = {
123− LIBVIRTD_ARGS = ''--config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
124− };
122+ environment.LIBVIRTD_ARGS = ''--config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
125123
126− path = with pkgs; [
127− bridge-utils
128− dmidecode
129− dnsmasq
130− ebtables
131− cfg.qemuPackage # libvirtd requires qemu-img to manage disk images
132− ]
133− ++ optional vswitch.enable vswitch.package;
124+ path = [ cfg.qemuPackage ] # libvirtd requires qemu-img to manage disk images
125+ ++ optional vswitch.enable vswitch.package;
134126
135127 preStart = ''
136128 mkdir -p /var/log/libvirt/qemu -m 755
nixos/modules/virtualisation/lxc.nix+4−1
@@ -74,6 +74,9 @@ in
7474 systemd.tmpfiles.rules = [ "d /var/lib/lxc/rootfs 0755 root root -" ];
7575
7676 security.apparmor.packages = [ pkgs.lxc ];
77− security.apparmor.profiles = [ "${pkgs.lxc}/etc/apparmor.d/lxc-containers" ];
77+ security.apparmor.profiles = [
78+ "${pkgs.lxc}/etc/apparmor.d/lxc-containers"
79+ "${pkgs.lxc}/etc/apparmor.d/usr.bin.lxc-start"
80+ ];
7881 };
7982}
nixos/modules/virtualisation/lxd.nix+33−27
@@ -15,28 +15,34 @@ in
1515
1616 options = {
1717
18− virtualisation.lxd.enable =
19− mkOption {
18+ virtualisation.lxd = {
19+ enable = mkOption {
2020 type = types.bool;
2121 default = false;
22− description =
23− ''
24− This option enables lxd, a daemon that manages
25− containers. Users in the "lxd" group can interact with
26− the daemon (e.g. to start or stop containers) using the
27− <command>lxc</command> command line tool, among others.
28− '';
22+ description = ''
23+ This option enables lxd, a daemon that manages
24+ containers. Users in the "lxd" group can interact with
25+ the daemon (e.g. to start or stop containers) using the
26+ <command>lxc</command> command line tool, among others.
27+ '';
2928 };
30−
29+ zfsSupport = mkOption {
30+ type = types.bool;
31+ default = false;
32+ description = ''
33+ enables lxd to use zfs as a storage for containers.
34+ This option is enabled by default if a zfs pool is configured
35+ with nixos.
36+ '';
37+ };
38+ };
3139 };
3240
33−
3441 ###### implementation
3542
3643 config = mkIf cfg.enable {
3744
38− environment.systemPackages =
39− [ pkgs.lxd ];
45+ environment.systemPackages = [ pkgs.lxd ];
4046
4147 security.apparmor = {
4248 enable = true;
@@ -47,31 +53,31 @@ in
4753 packages = [ pkgs.lxc ];
4854 };
4955
50− systemd.services.lxd =
51− { description = "LXD Container Management Daemon";
56+ systemd.services.lxd = {
57+ description = "LXD Container Management Daemon";
5258
53− wantedBy = [ "multi-user.target" ];
54− after = [ "systemd-udev-settle.service" ];
59+ wantedBy = [ "multi-user.target" ];
60+ after = [ "systemd-udev-settle.service" ];
5561
56− # TODO(wkennington): Add lvm2 and thin-provisioning-tools
57− path = with pkgs; [ acl rsync gnutar xz btrfs-progs gzip dnsmasq squashfsTools iproute iptables ];
62+ path = lib.optional cfg.zfsSupport pkgs.zfs;
5863
59− preStart = ''
60− mkdir -m 0755 -p /var/lib/lxc/rootfs
61− '';
64+ preStart = ''
65+ mkdir -m 0755 -p /var/lib/lxc/rootfs
66+ '';
6267
63− serviceConfig.ExecStart = "@${pkgs.lxd.bin}/bin/lxd lxd --syslog --group lxd";
64− serviceConfig.Type = "simple";
65− serviceConfig.KillMode = "process"; # when stopping, leave the containers alone
68+ serviceConfig = {
69+ ExecStart = "@${pkgs.lxd.bin}/bin/lxd lxd --group lxd";
70+ Type = "simple";
71+ KillMode = "process"; # when stopping, leave the containers alone
6672 };
6773
74+ };
75+
6876 users.extraGroups.lxd.gid = config.ids.gids.lxd;
6977
7078 users.extraUsers.root = {
7179 subUidRanges = [ { startUid = 1000000; count = 65536; } ];
7280 subGidRanges = [ { startGid = 1000000; count = 65536; } ];
7381 };
74−
7582 };
76−
7783}
nixos/modules/virtualisation/openvswitch.nix+1−1
@@ -169,7 +169,7 @@ in {
169169 mkdir -p ${runDir}/ipsec/{etc/racoon,etc/init.d/,usr/sbin/}
170170 ln -fs ${pkgs.ipsecTools}/bin/setkey ${runDir}/ipsec/usr/sbin/setkey
171171 ln -fs ${pkgs.writeScript "racoon-restart" ''
172− #!${pkgs.stdenv.shell}
172+ #!${pkgs.runtimeShell}
173173 /var/run/current-system/sw/bin/systemctl $1 racoon
174174 ''} ${runDir}/ipsec/etc/init.d/racoon
175175 '';
nixos/modules/virtualisation/qemu-vm.nix+9−7
@@ -30,7 +30,7 @@ let
3030 # Shell script to start the VM.
3131 startVM =
3232 ''
33− #! ${pkgs.stdenv.shell}
33+ #! ${pkgs.runtimeShell}
3434
3535 NIX_DISK_IMAGE=$(readlink -f ''${NIX_DISK_IMAGE:-${config.virtualisation.diskImage}})
3636
@@ -98,7 +98,7 @@ let
9898 ${qemuGraphics} \
9999 ${toString config.virtualisation.qemu.options} \
100100 $QEMU_OPTS \
101− $@
101+ "$@"
102102 '';
103103
104104
@@ -319,8 +319,8 @@ in
319319 networkingOptions =
320320 mkOption {
321321 default = [
322− "-net nic,vlan=0,model=virtio"
323− "-net user,vlan=0\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
322+ "-net nic,netdev=user.0,model=virtio"
323+ "-netdev user,id=user.0\${QEMU_NET_OPTS:+,$QEMU_NET_OPTS}"
324324 ];
325325 type = types.listOf types.str;
326326 description = ''
@@ -434,9 +434,11 @@ in
434434
435435 virtualisation.pathsInNixDB = [ config.system.build.toplevel ];
436436
437− # FIXME: Figure out how to make this work on non-x86
438− virtualisation.qemu.options =
439− mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usbdevice tablet" ];
437+ # FIXME: Consolidate this one day.
438+ virtualisation.qemu.options = mkMerge [
439+ (mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ])
440+ (mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
441+ ];
440442
441443 # Mount the host filesystem via 9P, and bind-mount the Nix store
442444 # of the host into our own filesystem. We use mkVMOverride to
nixos/modules/virtualisation/xen-dom0.nix+9−3
@@ -241,6 +241,12 @@ in
241241 '';
242242 target = "default/xendomains";
243243 }
244+ ]
245+ ++ lib.optionals (builtins.compareVersions cfg.package.version "4.10" >= 0) [
246+ # in V 4.10 oxenstored requires /etc/xen/oxenstored.conf to start
247+ { source = "${cfg.package}/etc/xen/oxenstored.conf";
248+ target = "xen/oxenstored.conf";
249+ }
244250 ];
245251
246252 # Xen provides udev rules.
@@ -262,7 +268,7 @@ in
262268 mkdir -p /var/lib/xen # so we create them here unconditionally.
263269 grep -q control_d /proc/xen/capabilities
264270 '';
265− serviceConfig = if cfg.package.version < "4.8" then
271+ serviceConfig = if (builtins.compareVersions cfg.package.version "4.8" < 0) then
266272 { ExecStart = ''
267273 ${cfg.stored}${optionalString cfg.trace " -T /var/log/xen/xenstored-trace.log"} --no-fork
268274 '';
@@ -275,7 +281,7 @@ in
275281 NotifyAccess = "all";
276282 };
277283 postStart = ''
278− ${optionalString (cfg.package.version < "4.8") ''
284+ ${optionalString (builtins.compareVersions cfg.package.version "4.8" < 0) ''
279285 time=0
280286 timeout=30
281287 # Wait for xenstored to actually come up, timing out after 30 seconds
@@ -320,7 +326,7 @@ in
320326 serviceConfig = {
321327 ExecStart = ''
322328 ${cfg.package}/bin/xenconsoled\
323− ${optionalString ((cfg.package.version >= "4.8")) " -i"}\
329+ ${optionalString ((builtins.compareVersions cfg.package.version "4.8" >= 0)) " -i"}\
324330 ${optionalString cfg.trace " --log=all --log-dir=/var/log/xen"}
325331 '';
326332 };
nixos/release-combined.nix+7−7
@@ -52,17 +52,17 @@ in rec {
5252 (all nixos.dummy)
5353 (all nixos.manual)
5454
55− nixos.iso_minimal.x86_64-linux
56− nixos.iso_minimal.i686-linux
57− nixos.iso_graphical.x86_64-linux
58− nixos.ova.x86_64-linux
55+ nixos.iso_minimal.x86_64-linux or []
56+ nixos.iso_minimal.i686-linux or []
57+ nixos.iso_graphical.x86_64-linux or []
58+ nixos.ova.x86_64-linux or []
5959
6060 #(all nixos.tests.containers)
61− nixos.tests.chromium.x86_64-linux
61+ nixos.tests.chromium.x86_64-linux or []
6262 (all nixos.tests.firefox)
6363 (all nixos.tests.firewall)
6464 (all nixos.tests.gnome3)
65− nixos.tests.installer.zfsroot.x86_64-linux # ZFS is 64bit only
65+ nixos.tests.installer.zfsroot.x86_64-linux or [] # ZFS is 64bit only
6666 (all nixos.tests.installer.lvm)
6767 (all nixos.tests.installer.luksroot)
6868 (all nixos.tests.installer.separateBoot)
@@ -81,7 +81,7 @@ in rec {
8181 (all nixos.tests.boot.uefiUsb)
8282 (all nixos.tests.boot-stage1)
8383 (all nixos.tests.hibernate)
84− nixos.tests.docker.x86_64-linux
84+ nixos.tests.docker.x86_64-linux or []
8585 (all nixos.tests.ecryptfs)
8686 (all nixos.tests.env)
8787 (all nixos.tests.ipv6)
nixos/release.nix+54−22
@@ -1,4 +1,4 @@
1−{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 56789; shortRev = "gfedcba"; }
1+{ nixpkgs ? { outPath = (import ../lib).cleanSource ./..; revCount = 130979; shortRev = "gfedcba"; }
22, stableBranch ? false
33, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
44}:
@@ -16,11 +16,15 @@ let
1616 inherit system;
1717 } // args);
1818
19− callTestOnTheseSystems = systems: fn: args: forMatchingSystems systems (system: hydraJob (importTest fn args system));
20− callTest = callTestOnTheseSystems supportedSystems;
19+ # Note: only supportedSystems are considered.
20+ callTestOnMatchingSystems = systems: fn: args:
21+ forMatchingSystems
22+ (intersectLists supportedSystems systems)
23+ (system: hydraJob (importTest fn args system));
24+ callTest = callTestOnMatchingSystems supportedSystems;
2125
22− callSubTests = callSubTestsOnTheseSystems supportedSystems;
23− callSubTestsOnTheseSystems = systems: fn: args: let
26+ callSubTests = callSubTestsOnMatchingSystems supportedSystems;
27+ callSubTestsOnMatchingSystems = systems: fn: args: let
2428 discover = attrs: let
2529 subTests = filterAttrs (const (hasAttr "test")) attrs;
2630 in mapAttrs (const (t: hydraJob t.test)) subTests;
@@ -51,6 +55,17 @@ let
5155 }).config.system.build.isoImage);
5256
5357
58+ makeSdImage =
59+ { module, maintainers ? ["dezgeg"], system }:
60+
61+ with import nixpkgs { inherit system; };
62+
63+ hydraJob ((import lib/eval-config.nix {
64+ inherit system;
65+ modules = [ module versionModule ];
66+ }).config.system.build.sdImage);
67+
68+
5469 makeSystemTarball =
5570 { module, maintainers ? ["viric"], system }:
5671
@@ -151,6 +166,14 @@ in rec {
151166 inherit system;
152167 });
153168
169+ sd_image = forMatchingSystems [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ] (system: makeSdImage {
170+ module = {
171+ armv6l-linux = ./modules/installer/cd-dvd/sd-image-raspberrypi.nix;
172+ armv7l-linux = ./modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix;
173+ aarch64-linux = ./modules/installer/cd-dvd/sd-image-aarch64.nix;
174+ }.${system};
175+ inherit system;
176+ });
154177
155178 # A bootable VirtualBox virtual appliance as an OVA file (i.e. packaged OVF).
156179 ova = forMatchingSystems [ "x86_64-linux" ] (system:
@@ -229,9 +252,9 @@ in rec {
229252 tests.boot-stage1 = callTest tests/boot-stage1.nix {};
230253 tests.borgbackup = callTest tests/borgbackup.nix {};
231254 tests.buildbot = callTest tests/buildbot.nix {};
232− tests.cadvisor = callTestOnTheseSystems ["x86_64-linux"] tests/cadvisor.nix {};
233− tests.ceph = callTestOnTheseSystems ["x86_64-linux"] tests/ceph.nix {};
234− tests.chromium = (callSubTestsOnTheseSystems ["x86_64-linux"] tests/chromium.nix {}).stable;
255+ tests.cadvisor = callTestOnMatchingSystems ["x86_64-linux"] tests/cadvisor.nix {};
256+ tests.ceph = callTestOnMatchingSystems ["x86_64-linux"] tests/ceph.nix {};
257+ tests.chromium = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/chromium.nix {}).stable or {};
235258 tests.cjdns = callTest tests/cjdns.nix {};
236259 tests.cloud-init = callTest tests/cloud-init.nix {};
237260 tests.containers-ipv4 = callTest tests/containers-ipv4.nix {};
@@ -245,21 +268,22 @@ in rec {
245268 tests.containers-hosts = callTest tests/containers-hosts.nix {};
246269 tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
247270 tests.couchdb = callTest tests/couchdb.nix {};
248− tests.docker = callTestOnTheseSystems ["x86_64-linux"] tests/docker.nix {};
249− tests.docker-tools = callTestOnTheseSystems ["x86_64-linux"] tests/docker-tools.nix {};
250− tests.docker-edge = callTestOnTheseSystems ["x86_64-linux"] tests/docker-edge.nix {};
271+ tests.docker = callTestOnMatchingSystems ["x86_64-linux"] tests/docker.nix {};
272+ tests.docker-tools = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools.nix {};
273+ tests.docker-tools-overlay = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools-overlay.nix {};
274+ tests.docker-edge = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-edge.nix {};
251275 tests.dovecot = callTest tests/dovecot.nix {};
252− tests.dnscrypt-proxy = callTestOnTheseSystems ["x86_64-linux"] tests/dnscrypt-proxy.nix {};
276+ tests.dnscrypt-proxy = callTestOnMatchingSystems ["x86_64-linux"] tests/dnscrypt-proxy.nix {};
253277 tests.ecryptfs = callTest tests/ecryptfs.nix {};
254− tests.etcd = callTestOnTheseSystems ["x86_64-linux"] tests/etcd.nix {};
255− tests.ec2-nixops = (callSubTestsOnTheseSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-nixops;
256− tests.ec2-config = (callSubTestsOnTheseSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-config;
257− tests.elk = callSubTestsOnTheseSystems ["x86_64-linux"] tests/elk.nix {};
278+ tests.etcd = callTestOnMatchingSystems ["x86_64-linux"] tests/etcd.nix {};
279+ tests.ec2-nixops = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-nixops or {};
280+ tests.ec2-config = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-config or {};
281+ tests.elk = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/elk.nix {};
258282 tests.env = callTest tests/env.nix {};
259283 tests.ferm = callTest tests/ferm.nix {};
260284 tests.firefox = callTest tests/firefox.nix {};
261285 tests.firewall = callTest tests/firewall.nix {};
262− tests.fleet = callTestOnTheseSystems ["x86_64-linux"] tests/fleet.nix {};
286+ tests.fleet = callTestOnMatchingSystems ["x86_64-linux"] tests/fleet.nix {};
263287 tests.fwupd = callTest tests/fwupd.nix {};
264288 #tests.gitlab = callTest tests/gitlab.nix {};
265289 tests.gitolite = callTest tests/gitolite.nix {};
@@ -276,6 +300,7 @@ in rec {
276300 tests.hound = callTest tests/hound.nix {};
277301 tests.hocker-fetchdocker = callTest tests/hocker-fetchdocker {};
278302 tests.i3wm = callTest tests/i3wm.nix {};
303+ tests.iftop = callTest tests/iftop.nix {};
279304 tests.initrd-network-ssh = callTest tests/initrd-network-ssh {};
280305 tests.installer = callSubTests tests/installer.nix {};
281306 tests.influxdb = callTest tests/influxdb.nix {};
@@ -292,7 +317,10 @@ in rec {
292317 tests.kernel-copperhead = callTest tests/kernel-copperhead.nix {};
293318 tests.kernel-latest = callTest tests/kernel-latest.nix {};
294319 tests.kernel-lts = callTest tests/kernel-lts.nix {};
295− tests.kubernetes = hydraJob (import tests/kubernetes/default.nix { system = "x86_64-linux"; });
320+ tests.kubernetes.dns = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/dns.nix {};
321+ ## kubernetes.e2e should eventually replace kubernetes.rbac when it works
322+ #tests.kubernetes.e2e = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/e2e.nix {};
323+ tests.kubernetes.rbac = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/rbac.nix {};
296324 tests.latestKernel.login = callTest tests/login.nix { latestKernel = true; };
297325 tests.ldap = callTest tests/ldap.nix {};
298326 #tests.lightdm = callTest tests/lightdm.nix {};
@@ -322,14 +350,14 @@ in rec {
322350 tests.nginx = callTest tests/nginx.nix { };
323351 tests.nghttpx = callTest tests/nghttpx.nix { };
324352 tests.nix-ssh-serve = callTest tests/nix-ssh-serve.nix { };
325− tests.novacomd = callTestOnTheseSystems ["x86_64-linux"] tests/novacomd.nix { };
353+ tests.novacomd = callTestOnMatchingSystems ["x86_64-linux"] tests/novacomd.nix { };
326354 tests.leaps = callTest tests/leaps.nix { };
327355 tests.nsd = callTest tests/nsd.nix {};
328356 tests.openssh = callTest tests/openssh.nix {};
329357 tests.openldap = callTest tests/openldap.nix {};
330358 tests.owncloud = callTest tests/owncloud.nix {};
331359 tests.pam-oath-login = callTest tests/pam-oath-login.nix {};
332− #tests.panamax = callTestOnTheseSystems ["x86_64-linux"] tests/panamax.nix {};
360+ #tests.panamax = callTestOnMatchingSystems ["x86_64-linux"] tests/panamax.nix {};
333361 tests.peerflix = callTest tests/peerflix.nix {};
334362 tests.php-pcre = callTest tests/php-pcre.nix {};
335363 tests.postgresql = callSubTests tests/postgresql.nix {};
@@ -340,8 +368,9 @@ in rec {
340368 tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {};
341369 tests.printing = callTest tests/printing.nix {};
342370 tests.prometheus = callTest tests/prometheus.nix {};
371+ tests.prosody = callTest tests/prosody.nix {};
343372 tests.proxy = callTest tests/proxy.nix {};
344− # tests.quagga = callTest tests/quagga.nix {};
373+ tests.quagga = callTest tests/quagga.nix {};
345374 tests.quake3 = callTest tests/quake3.nix {};
346375 tests.rabbitmq = callTest tests/rabbitmq.nix {};
347376 tests.radicale = callTest tests/radicale.nix {};
@@ -355,15 +384,18 @@ in rec {
355384 tests.smokeping = callTest tests/smokeping.nix {};
356385 tests.snapper = callTest tests/snapper.nix {};
357386 tests.statsd = callTest tests/statsd.nix {};
387+ tests.strongswan-swanctl = callTest tests/strongswan-swanctl.nix {};
358388 tests.sudo = callTest tests/sudo.nix {};
359389 tests.systemd = callTest tests/systemd.nix {};
360390 tests.switchTest = callTest tests/switch-test.nix {};
361391 tests.taskserver = callTest tests/taskserver.nix {};
362392 tests.tomcat = callTest tests/tomcat.nix {};
393+ tests.transmission = callTest tests/transmission.nix {};
363394 tests.udisks2 = callTest tests/udisks2.nix {};
364395 tests.vault = callTest tests/vault.nix {};
365− tests.virtualbox = callSubTestsOnTheseSystems ["x86_64-linux"] tests/virtualbox.nix {};
396+ tests.virtualbox = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/virtualbox.nix {};
366397 tests.wordpress = callTest tests/wordpress.nix {};
398+ tests.xautolock = callTest tests/xautolock.nix {};
367399 tests.xfce = callTest tests/xfce.nix {};
368400 tests.xmonad = callTest tests/xmonad.nix {};
369401 tests.xrdp = callTest tests/xrdp.nix {};
nixos/tests/atd.nix−6
@@ -17,20 +17,14 @@ import ./make-test.nix ({ pkgs, lib, ... }:
1717 startAll;
1818
1919 $machine->fail("test -f ~root/at-1");
20− $machine->fail("test -f ~root/batch-1");
2120 $machine->fail("test -f ~alice/at-1");
22− $machine->fail("test -f ~alice/batch-1");
2321
2422 $machine->succeed("echo 'touch ~root/at-1' | at now+1min");
25− $machine->succeed("echo 'touch ~root/batch-1' | batch");
2623 $machine->succeed("su - alice -c \"echo 'touch at-1' | at now+1min\"");
27− $machine->succeed("su - alice -c \"echo 'touch batch-1' | batch\"");
2824
2925 $machine->succeed("sleep 1.5m");
3026
3127 $machine->succeed("test -f ~root/at-1");
32− $machine->succeed("test -f ~root/batch-1");
3328 $machine->succeed("test -f ~alice/at-1");
34− $machine->succeed("test -f ~alice/batch-1");
3529 '';
3630})
nixos/tests/borgbackup.nix+152−11
@@ -1,21 +1,162 @@
1−import ./make-test.nix ({ pkgs, ...}: {
1+import ./make-test.nix ({ pkgs, ... }:
2+
3+let
4+ passphrase = "supersecret";
5+ dataDir = "/ran:dom/data";
6+ excludeFile = "not_this_file";
7+ keepFile = "important_file";
8+ keepFileData = "important_data";
9+ localRepo = "/root/back:up";
10+ archiveName = "my_archive";
11+ remoteRepo = "borg@server:."; # No need to specify path
12+ privateKey = pkgs.writeText "id_ed25519" ''
13+ -----BEGIN OPENSSH PRIVATE KEY-----
14+ b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
15+ QyNTUxOQAAACBx8UB04Q6Q/fwDFjakHq904PYFzG9pU2TJ9KXpaPMcrwAAAJB+cF5HfnBe
16+ RwAAAAtzc2gtZWQyNTUxOQAAACBx8UB04Q6Q/fwDFjakHq904PYFzG9pU2TJ9KXpaPMcrw
17+ AAAEBN75NsJZSpt63faCuaD75Unko0JjlSDxMhYHAPJk2/xXHxQHThDpD9/AMWNqQer3Tg
18+ 9gXMb2lTZMn0pelo8xyvAAAADXJzY2h1ZXR6QGt1cnQ=
19+ -----END OPENSSH PRIVATE KEY-----
20+ '';
21+ publicKey = ''
22+ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHHxQHThDpD9/AMWNqQer3Tg9gXMb2lTZMn0pelo8xyv root@client
23+ '';
24+ privateKeyAppendOnly = pkgs.writeText "id_ed25519" ''
25+ -----BEGIN OPENSSH PRIVATE KEY-----
26+ b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
27+ QyNTUxOQAAACBacZuz1ELGQdhI7PF6dGFafCDlvh8pSEc4cHjkW0QjLwAAAJC9YTxxvWE8
28+ cQAAAAtzc2gtZWQyNTUxOQAAACBacZuz1ELGQdhI7PF6dGFafCDlvh8pSEc4cHjkW0QjLw
29+ AAAEAAhV7wTl5dL/lz+PF/d4PnZXuG1Id6L/mFEiGT1tZsuFpxm7PUQsZB2Ejs8Xp0YVp8
30+ IOW+HylIRzhweORbRCMvAAAADXJzY2h1ZXR6QGt1cnQ=
31+ -----END OPENSSH PRIVATE KEY-----
32+ '';
33+ publicKeyAppendOnly = ''
34+ ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFpxm7PUQsZB2Ejs8Xp0YVp8IOW+HylIRzhweORbRCMv root@client
35+ '';
36+
37+in {
238 name = "borgbackup";
3− meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ mic92 ];
39+ meta = with pkgs.stdenv.lib; {
40+ maintainers = with maintainers; [ dotlambda ];
541 };
642
743 nodes = {
8− machine = { config, pkgs, ... }: {
9− environment.systemPackages = [ pkgs.borgbackup ];
44+ client = { config, pkgs, ... }: {
45+ services.borgbackup.jobs = {
46+
47+ local = rec {
48+ paths = dataDir;
49+ repo = localRepo;
50+ preHook = ''
51+ # Don't append a timestamp
52+ archiveName="${archiveName}"
53+ '';
54+ encryption = {
55+ mode = "repokey";
56+ inherit passphrase;
57+ };
58+ compression = "auto,zlib,9";
59+ prune.keep = {
60+ within = "1y";
61+ yearly = 5;
62+ };
63+ exclude = [ "*/${excludeFile}" ];
64+ postHook = "echo post";
65+ startAt = [ ]; # Do not run automatically
66+ };
67+
68+ remote = {
69+ paths = dataDir;
70+ repo = remoteRepo;
71+ encryption.mode = "none";
72+ startAt = [ ];
73+ environment.BORG_RSH = "ssh -oStrictHostKeyChecking=no -i /root/id_ed25519";
74+ };
75+
76+ remoteAppendOnly = {
77+ paths = dataDir;
78+ repo = remoteRepo;
79+ encryption.mode = "none";
80+ startAt = [ ];
81+ environment.BORG_RSH = "ssh -oStrictHostKeyChecking=no -i /root/id_ed25519.appendOnly";
82+ };
83+
84+ };
85+ };
86+
87+ server = { config, pkgs, ... }: {
88+ services.openssh = {
89+ enable = true;
90+ passwordAuthentication = false;
91+ challengeResponseAuthentication = false;
92+ };
93+
94+ services.borgbackup.repos.repo1 = {
95+ authorizedKeys = [ publicKey ];
96+ path = "/data/borgbackup";
97+ };
98+
99+ # Second repo to make sure the authorizedKeys options are merged correctly
100+ services.borgbackup.repos.repo2 = {
101+ authorizedKeysAppendOnly = [ publicKeyAppendOnly ];
102+ path = "/data/borgbackup";
103+ quota = ".5G";
104+ };
10105 };
11106 };
12107
13108 testScript = ''
14− my $borg = "BORG_PASSPHRASE=supersecret borg";
15− $machine->succeed("$borg init --encryption=repokey /tmp/backup");
16− $machine->succeed("mkdir /tmp/data/ && echo 'data' >/tmp/data/file");
17− $machine->succeed("$borg create --stats /tmp/backup::test /tmp/data");
18− $machine->succeed("$borg extract /tmp/backup::test");
19− $machine->succeed('c=$(cat data/file) && echo "c = $c" >&2 && [[ "$c" == "data" ]]');
109+ startAll;
110+
111+ $client->fail('test -d "${remoteRepo}"');
112+
113+ $client->succeed("cp ${privateKey} /root/id_ed25519");
114+ $client->succeed("chmod 0600 /root/id_ed25519");
115+ $client->succeed("cp ${privateKeyAppendOnly} /root/id_ed25519.appendOnly");
116+ $client->succeed("chmod 0600 /root/id_ed25519.appendOnly");
117+
118+ $client->succeed("mkdir -p ${dataDir}");
119+ $client->succeed("touch ${dataDir}/${excludeFile}");
120+ $client->succeed("echo '${keepFileData}' > ${dataDir}/${keepFile}");
121+
122+ subtest "local", sub {
123+ my $borg = "BORG_PASSPHRASE='${passphrase}' borg";
124+ $client->systemctl("start --wait borgbackup-job-local");
125+ $client->fail("systemctl is-failed borgbackup-job-local");
126+ # Make sure exactly one archive has been created
127+ $client->succeed("c=\$($borg list '${localRepo}' | wc -l) && [[ \$c == '1' ]]");
128+ # Make sure excludeFile has been excluded
129+ $client->fail("$borg list '${localRepo}::${archiveName}' | grep -qF '${excludeFile}'");
130+ # Make sure keepFile has the correct content
131+ $client->succeed("$borg extract '${localRepo}::${archiveName}'");
132+ $client->succeed('c=$(cat ${dataDir}/${keepFile}) && [[ "$c" == "${keepFileData}" ]]');
133+ };
134+
135+ subtest "remote", sub {
136+ my $borg = "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519' borg";
137+ $server->waitForUnit("sshd.service");
138+ $client->waitForUnit("network.target");
139+ $client->systemctl("start --wait borgbackup-job-remote");
140+ $client->fail("systemctl is-failed borgbackup-job-remote");
141+
142+ # Make sure we can't access repos other than the specified one
143+ $client->fail("$borg list borg\@server:wrong");
144+
145+ #TODO: Make sure that data is actually deleted
146+ };
147+
148+ subtest "remoteAppendOnly", sub {
149+ my $borg = "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519.appendOnly' borg";
150+ $server->waitForUnit("sshd.service");
151+ $client->waitForUnit("network.target");
152+ $client->systemctl("start --wait borgbackup-job-remoteAppendOnly");
153+ $client->fail("systemctl is-failed borgbackup-job-remoteAppendOnly");
154+
155+ # Make sure we can't access repos other than the specified one
156+ $client->fail("$borg list borg\@server:wrong");
157+
158+ #TODO: Make sure that data is not actually deleted
159+ };
160+
20161 '';
21162})
nixos/tests/chromium.nix+22−2
@@ -151,11 +151,11 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
151151
152152 $machine->screenshot("sandbox_info");
153153
154− $machine->succeed(ru "${xdo "submit-url" ''
154+ $machine->succeed(ru "${xdo "find-window" ''
155155 search --sync --onlyvisible --name "sandbox status"
156156 windowfocus --sync
157157 ''}");
158− $machine->succeed(ru "${xdo "submit-url" ''
158+ $machine->succeed(ru "${xdo "copy-sandbox-info" ''
159159 key --delay 1000 Ctrl+a Ctrl+c
160160 ''}");
161161
@@ -166,6 +166,26 @@ mapAttrs (channel: chromiumPkg: makeTest rec {
166166 && $clipboard =~ /network namespaces.*yes/mi
167167 && $clipboard =~ /seccomp.*sandbox.*yes/mi
168168 && $clipboard =~ /you are adequately sandboxed/mi;
169+
170+ $machine->sleep(1);
171+ $machine->succeed(ru "${xdo "find-window-after-copy" ''
172+ search --onlyvisible --name "sandbox status"
173+ ''}");
174+
175+ my $clipboard = $machine->succeed(ru "echo void | ${pkgs.xclip}/bin/xclip -i");
176+ $machine->succeed(ru "${xdo "copy-sandbox-info" ''
177+ key --delay 1000 Ctrl+a Ctrl+c
178+ ''}");
179+
180+ my $clipboard = $machine->succeed(ru "${pkgs.xclip}/bin/xclip -o");
181+ die "copying twice in a row does not work properly: $clipboard"
182+ unless $clipboard =~ /namespace sandbox.*yes/mi
183+ && $clipboard =~ /pid namespaces.*yes/mi
184+ && $clipboard =~ /network namespaces.*yes/mi
185+ && $clipboard =~ /seccomp.*sandbox.*yes/mi
186+ && $clipboard =~ /you are adequately sandboxed/mi;
187+
188+ $machine->screenshot("afer_copy_from_chromium");
169189 };
170190
171191 $machine->shutdown;
nixos/tests/common/letsencrypt.nix+20−4
@@ -138,8 +138,8 @@ let
138138 boulder = let
139139 owner = "letsencrypt";
140140 repo = "boulder";
141− rev = "9866abab8962a591f06db457a4b84c518cc88243";
142− version = "20170510";
141+ rev = "9c6a1f2adc4c26d925588f5ae366cfd4efb7813a";
142+ version = "20180129";
143143
144144 in pkgs.buildGoPackage rec {
145145 name = "${repo}-${version}";
@@ -147,7 +147,7 @@ let
147147 src = pkgs.fetchFromGitHub {
148148 name = "${name}-src";
149149 inherit rev owner repo;
150− sha256 = "170m5cjngbrm36wi7wschqw8jzs7kxpcyzmshq3pcrmcpigrhna1";
150+ sha256 = "09kszswrifm9rc6idfaq0p1mz5w21as2qbc8gd5pphrq9cf9pn55";
151151 };
152152
153153 postPatch = ''
@@ -168,6 +168,18 @@ let
168168 cat "${snakeOilCa}/ca.pem" > test/test-ca.pem
169169 '';
170170
171+ # Until vendored pkcs11 is go 1.9 compatible
172+ preBuild = ''
173+ rm -r go/src/github.com/letsencrypt/boulder/vendor/github.com/miekg/pkcs11
174+ '';
175+
176+ extraSrcs = map mkGoDep [
177+ { goPackagePath = "github.com/miekg/pkcs11";
178+ rev = "6dbd569b952ec150d1425722dbbe80f2c6193f83";
179+ sha256 = "1m8g6fx7df6hf6q6zsbyw1icjmm52dmsx28rgb0h930wagvngfwb";
180+ }
181+ ];
182+
171183 goPackagePath = "github.com/${owner}/${repo}";
172184 buildInputs = [ pkgs.libtool ];
173185 };
@@ -284,7 +296,11 @@ let
284296 ocsp-updater.after = [ "boulder-publisher" ];
285297 ocsp-responder.args = "--config ${cfgDir}/ocsp-responder.json";
286298 ct-test-srv = {};
287− mail-test-srv.args = "--closeFirst 5";
299+ mail-test-srv.args = let
300+ key = "${boulderSource}/test/mail-test-srv/minica-key.pem";
301+ crt = "${boulderSource}/test/mail-test-srv/minica.pem";
302+ in
303+ "--closeFirst 5 --cert ${crt} --key ${key}";
288304 };
289305
290306 commonPath = [ softhsm pkgs.mariadb goose boulder ];
nixos/tests/containers-imperative.nix+2−2
@@ -15,12 +15,12 @@ import ./make-test.nix ({ pkgs, ...} : {
1515 # container available within the VM, because we don't have network access.
1616 virtualisation.pathsInNixDB = let
1717 emptyContainer = import ../lib/eval-config.nix {
18− inherit (config.nixpkgs) system;
18+ inherit (config.nixpkgs.localSystem) system;
1919 modules = lib.singleton {
2020 containers.foo.config = {};
2121 };
2222 };
23− in [ pkgs.stdenv emptyContainer.config.containers.foo.path ];
23+ in [ pkgs.stdenv emptyContainer.config.containers.foo.path pkgs.libxslt ];
2424 };
2525
2626 testScript =
nixos/tests/containers-physical_interfaces.nix+2−2
@@ -52,7 +52,7 @@ import ./make-test.nix ({ pkgs, ...} : {
5252 config = {
5353 networking.bonds.bond0 = {
5454 interfaces = [ "eth1" ];
55− mode = "active-backup";
55+ driverOptions.mode = "active-backup";
5656 };
5757 networking.interfaces.bond0.ipv4.addresses = [
5858 { address = "10.10.0.3"; prefixLength = 24; }
@@ -73,7 +73,7 @@ import ./make-test.nix ({ pkgs, ...} : {
7373 config = {
7474 networking.bonds.bond0 = {
7575 interfaces = [ "eth1" ];
76− mode = "active-backup";
76+ driverOptions.mode = "active-backup";
7777 };
7878 networking.bridges.br0.interfaces = [ "bond0" ];
7979 networking.interfaces.br0.ipv4.addresses = [
nixos/tests/containers-tmpfs.nix+1−1
@@ -1,7 +1,7 @@
11# Test for NixOS' container support.
22
33import ./make-test.nix ({ pkgs, ...} : {
4− name = "containers-bridge";
4+ name = "containers-tmpfs";
55 meta = with pkgs.stdenv.lib.maintainers; {
66 maintainers = [ ckampka ];
77 };
nixos/tests/docker-tools-overlay.nixnew file+32
@@ -0,0 +1,32 @@
1+# this test creates a simple GNU image with docker tools and sees if it executes
2+
3+import ./make-test.nix ({ pkgs, ... }:
4+{
5+ name = "docker-tools-overlay";
6+ meta = with pkgs.stdenv.lib.maintainers; {
7+ maintainers = [ lnl7 ];
8+ };
9+
10+ nodes = {
11+ docker =
12+ { config, pkgs, ... }:
13+ {
14+ virtualisation.docker.enable = true;
15+ virtualisation.docker.storageDriver = "overlay"; # defaults to overlay2
16+ };
17+ };
18+
19+ testScript =
20+ ''
21+ $docker->waitForUnit("sockets.target");
22+
23+ $docker->succeed("docker load --input='${pkgs.dockerTools.examples.bash}'");
24+ $docker->succeed("docker run --rm ${pkgs.dockerTools.examples.bash.imageName} bash --version");
25+
26+ # Check if the nix store has correct user permissions depending on what
27+ # storage driver is used, incorrectly built images can show up as readonly.
28+ # drw------- 3 0 0 3 Apr 14 11:36 /nix
29+ # drw------- 99 0 0 100 Apr 14 11:36 /nix/store
30+ $docker->succeed("docker run --rm -u 1000:1000 ${pkgs.dockerTools.examples.bash.imageName} bash --version");
31+ '';
32+})
nixos/tests/docker-tools.nix+15−5
@@ -3,14 +3,14 @@
33import ./make-test.nix ({ pkgs, ... }: {
44 name = "docker-tools";
55 meta = with pkgs.stdenv.lib.maintainers; {
6− maintainers = [ ];
6+ maintainers = [ lnl7 ];
77 };
88
99 nodes = {
1010 docker =
1111 { config, pkgs, ... }: {
1212 virtualisation = {
13− diskSize = 1024;
13+ diskSize = 2048;
1414 docker.enable = true;
1515 };
1616 };
@@ -21,19 +21,29 @@ import ./make-test.nix ({ pkgs, ... }: {
2121 $docker->waitForUnit("sockets.target");
2222
2323 $docker->succeed("docker load --input='${pkgs.dockerTools.examples.bash}'");
24− $docker->succeed("docker run ${pkgs.dockerTools.examples.bash.imageName} /bin/bash --version");
24+ $docker->succeed("docker run --rm ${pkgs.dockerTools.examples.bash.imageName} bash --version");
25+ $docker->succeed("docker rmi ${pkgs.dockerTools.examples.bash.imageName}");
2526
27+ # Check if the nix store is correctly initialized by listing dependencies of the installed Nix binary
2628 $docker->succeed("docker load --input='${pkgs.dockerTools.examples.nix}'");
27− $docker->succeed("docker run ${pkgs.dockerTools.examples.nix.imageName} /bin/nix-store -qR ${pkgs.nix}");
29+ $docker->succeed("docker run --rm ${pkgs.dockerTools.examples.nix.imageName} nix-store -qR ${pkgs.nix}");
30+ $docker->succeed("docker rmi ${pkgs.dockerTools.examples.nix.imageName}");
2831
2932 # To test the pullImage tool
3033 $docker->succeed("docker load --input='${pkgs.dockerTools.examples.nixFromDockerHub}'");
31− $docker->succeed("docker run nixos/nix:1.11 nix-store --version");
34+ $docker->succeed("docker run --rm nixos/nix:1.11 nix-store --version");
35+ $docker->succeed("docker rmi nixos/nix:1.11");
3236
3337 # To test runAsRoot and entry point
3438 $docker->succeed("docker load --input='${pkgs.dockerTools.examples.nginx}'");
3539 $docker->succeed("docker run --name nginx -d -p 8000:80 ${pkgs.dockerTools.examples.nginx.imageName}");
3640 $docker->waitUntilSucceeds('curl http://localhost:8000/');
3741 $docker->succeed("docker rm --force nginx");
42+ $docker->succeed("docker rmi '${pkgs.dockerTools.examples.nginx.imageName}'");
43+
44+ # An pulled image can be used as base image
45+ $docker->succeed("docker load --input='${pkgs.dockerTools.examples.onTopOfPulledImage}'");
46+ $docker->succeed("docker run --rm ontopofpulledimage hello");
47+ $docker->succeed("docker rmi ontopofpulledimage");
3848 '';
3949})
nixos/tests/dovecot.nix+16−3
@@ -18,6 +18,18 @@ import ./make-test.nix {
1818 MAIL
1919 '';
2020
21+ sendTestMailViaDeliveryAgent = pkgs.writeScriptBin "send-lda" ''
22+ #!${pkgs.stdenv.shell}
23+
24+ exec ${pkgs.dovecot}/libexec/dovecot/deliver -d bob <<MAIL
25+ From: root@localhost
26+ To: bob@localhost
27+ Subject: Something else...
28+
29+ I'm running short of ideas!
30+ MAIL
31+ '';
32+
2133 testImap = pkgs.writeScriptBin "test-imap" ''
2234 #!${pkgs.python3.interpreter}
2335 import imaplib
@@ -39,24 +51,25 @@ import ./make-test.nix {
3951
4052 pop = poplib.POP3('localhost')
4153 try:
42− pop.user('alice')
54+ pop.user('bob')
4355 pop.pass_('foobar')
4456 assert len(pop.list()[1]) == 1
4557 status, fullmail, size = pop.retr(1)
4658 assert status.startswith(b'+OK ')
4759 body = b"".join(fullmail[fullmail.index(b""):]).strip()
48− assert body == b'Hello world!'
60+ assert body == b"I'm running short of ideas!"
4961 finally:
5062 pop.quit()
5163 '';
5264
53− in [ sendTestMail testImap testPop ];
65+ in [ sendTestMail sendTestMailViaDeliveryAgent testImap testPop ];
5466 };
5567
5668 testScript = ''
5769 $machine->waitForUnit('postfix.service');
5870 $machine->waitForUnit('dovecot2.service');
5971 $machine->succeed('send-testmail');
72+ $machine->succeed('send-lda');
6073 $machine->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]');
6174 $machine->succeed('test-imap');
6275 $machine->succeed('test-pop');
nixos/tests/gnome3-gdm.nix+10−3
@@ -26,15 +26,22 @@ import ./make-test.nix ({ pkgs, ...} : {
2626
2727 testScript =
2828 ''
29+ # wait for gdm to start and bring up X
30+ $machine->waitForUnit("display-manager.service");
2931 $machine->waitForX;
30− $machine->sleep(15);
32+
33+ # wait for alice to be logged in
34+ $machine->waitForUnit("default.target","alice");
3135
3236 # Check that logging in has given the user ownership of devices.
3337 $machine->succeed("getfacl /dev/snd/timer | grep -q alice");
3438
35− $machine->succeed("su - alice -c 'DISPLAY=:0.0 gnome-terminal &'");
36− $machine->succeed("xauth merge ~alice/.Xauthority");
39+ # open a terminal and check it's there
40+ $machine->succeed("su - alice -c 'DISPLAY=:0.0 XAUTHORITY=/run/user/\$UID/gdm/Xauthority gnome-terminal'");
41+ $machine->succeed("xauth merge /run/user/1000/gdm/Xauthority");
3742 $machine->waitForWindow(qr/Terminal/);
43+
44+ # wait to get a nice screenshot
3845 $machine->sleep(20);
3946 $machine->screenshot("screen");
4047 '';
nixos/tests/grafana.nix+1−1
@@ -20,6 +20,6 @@ import ./make-test.nix ({ lib, ... }:
2020 $machine->start;
2121 $machine->waitForUnit("grafana.service");
2222 $machine->waitForOpenPort(3000);
23− $machine->succeed("curl -sS http://127.0.0.1:3000/");
23+ $machine->succeed("curl -sSfL http://127.0.0.1:3000/");
2424 '';
2525})
nixos/tests/home-assistant.nix+3−3
@@ -51,9 +51,9 @@ in {
5151 startAll;
5252 $hass->waitForUnit("home-assistant.service");
5353
54− # Since config is specified using a Nix attribute set,
55− # configuration.yaml is a link to the Nix store
56− $hass->succeed("test -L ${configDir}/configuration.yaml");
54+ # The config is specified using a Nix attribute set,
55+ # but then converted from JSON to YAML
56+ $hass->succeed("test -f ${configDir}/configuration.yaml");
5757
5858 # Check that Home Assistant's web interface and API can be reached
5959 $hass->waitForOpenPort(8123);
nixos/tests/iftop.nixnew file+30
@@ -0,0 +1,30 @@
1+import ./make-test.nix ({ pkgs, lib, ... }:
2+
3+with lib;
4+
5+{
6+ name = "iftop";
7+ meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ma27 ];
8+
9+ nodes = {
10+ withIftop = {
11+ imports = [ ./common/user-account.nix ];
12+
13+ programs.iftop.enable = true;
14+ };
15+ withoutIftop = {
16+ imports = [ ./common/user-account.nix ];
17+ };
18+ };
19+
20+ testScript = ''
21+ subtest "machine with iftop enabled", sub {
22+ $withIftop->start;
23+ $withIftop->succeed("su -l alice -c 'iftop -t -s 1'");
24+ };
25+ subtest "machine without iftop", sub {
26+ $withoutIftop->start;
27+ $withoutIftop->mustFail("su -l alice -c 'iftop -t -s 1'");
28+ };
29+ '';
30+})
nixos/tests/installer.nix+11−4
@@ -69,13 +69,20 @@ let
6969 let
7070 iface = if grubVersion == 1 then "ide" else "virtio";
7171 isEfi = bootLoader == "systemd-boot" || (bootLoader == "grub" && grubUseEfi);
72+
73+ # FIXME don't duplicate the -enable-kvm etc. flags here yet again!
7274 qemuFlags =
7375 (if system == "x86_64-linux" then "-m 768 " else "-m 512 ") +
74− (optionalString (system == "x86_64-linux") "-cpu kvm64 ");
76+ (optionalString (system == "x86_64-linux") "-cpu kvm64 ") +
77+ (optionalString (system == "aarch64-linux") "-enable-kvm -machine virt,gic-version=host -cpu host ");
78+
7579 hdFlags = ''hda => "vm-state-machine/machine.qcow2", hdaInterface => "${iface}", ''
76− + optionalString isEfi ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '';
77− in
78− ''
80+ + optionalString isEfi (if pkgs.stdenv.isAarch64
81+ then ''bios => "${pkgs.OVMF.fd}/FV/QEMU_EFI.fd", ''
82+ else ''bios => "${pkgs.OVMF.fd}/FV/OVMF.fd", '');
83+ in if !isEfi && !(pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) then
84+ throw "Non-EFI boot methods are only supported on i686 / x86_64"
85+ else ''
7986 $machine->start;
8087
8188 # Make sure that we get a login prompt etc.
nixos/tests/kernel-copperhead.nix+2−2
@@ -6,14 +6,14 @@ import ./make-test.nix ({ pkgs, ...} : {
66
77 machine = { config, lib, pkgs, ... }:
88 {
9− boot.kernelPackages = pkgs.linuxPackages_hardened_copperhead;
9+ boot.kernelPackages = pkgs.linuxPackages_copperhead_hardened;
1010 };
1111
1212 testScript =
1313 ''
1414 $machine->succeed("uname -a");
1515 $machine->succeed("uname -s | grep 'Linux'");
16− $machine->succeed("uname -a | grep '${pkgs.linuxPackages_hardened_copperhead.kernel.modDirVersion}'");
16+ $machine->succeed("uname -a | grep '${pkgs.linuxPackages_copperhead_hardened.kernel.modDirVersion}'");
1717 $machine->succeed("uname -a | grep 'hardened'");
1818 '';
1919})
nixos/tests/keymap.nix+45−84
@@ -3,46 +3,36 @@
33with import ../lib/testing.nix { inherit system; };
44
55let
6+ readyFile = "/tmp/readerReady";
7+ resultFile = "/tmp/readerResult";
8+
69 testReader = pkgs.writeScript "test-input-reader" ''
710 #!${pkgs.stdenv.shell}
8− readInput() {
9− touch /tmp/reader.ready
10− echo "Waiting for '$1' to be typed"
11− read -r -n1 c
12− if [ "$c" = "$2" ]; then
13− echo "SUCCESS: Got back '$c' as expected."
14− echo 0 >&2
15− else
16− echo "FAIL: Expected '$2' but got '$c' instead."
17− echo 1 >&2
18− fi
19− }
20−
21− main() {
22− error=0
23− while [ $# -gt 0 ]; do
24− ret="$((readInput "$2" "$3" | systemd-cat -t "$1") 2>&1)"
25− if [ $ret -ne 0 ]; then error=1; fi
26− shift 3
27− done
28− return $error
29− }
30−
31− main "$@"; echo -n $? > /tmp/reader.exit
11+ rm -f ${resultFile} ${resultFile}.tmp
12+ logger "testReader: START: Waiting for $1 characters, expecting '$2'."
13+ touch ${readyFile}
14+ read -r -N $1 chars
15+ rm -f ${readyFile}
16+
17+ if [ "$chars" == "$2" ]; then
18+ logger -s "testReader: PASS: Got '$2' as expected." 2>${resultFile}.tmp
19+ else
20+ logger -s "testReader: FAIL: Expected '$2' but got '$chars'." 2>${resultFile}.tmp
21+ fi
22+ # rename after the file is written to prevent a race condition
23+ mv ${resultFile}.tmp ${resultFile}
3224 '';
3325
34− mkReaderInput = testname: { qwerty, expect }: with pkgs.lib; let
35− lq = length qwerty;
36− le = length expect;
37− msg = "`qwerty' (${lq}) and `expect' (${le}) lists"
38− + " need to be of the same length!";
39− result = flatten (zipListsWith (a: b: [testname a b]) qwerty expect);
40− in if lq != le then throw msg else result;
4126
4227 mkKeyboardTest = layout: { extraConfig ? {}, tests }: with pkgs.lib; let
43− readerInput = flatten (mapAttrsToList mkReaderInput tests);
28+ combinedTests = foldAttrs (acc: val: acc ++ val) [] (builtins.attrValues tests);
4429 perlStr = val: "'${escape ["'" "\\"] val}'";
45− perlReaderInput = concatMapStringsSep ", " perlStr readerInput;
30+ lq = length combinedTests.qwerty;
31+ le = length combinedTests.expect;
32+ msg = "length mismatch between qwerty (${toString lq}) and expect (${toString le}) lists!";
33+ send = concatMapStringsSep ", " perlStr combinedTests.qwerty;
34+ expect = if (lq == le) then concatStrings combinedTests.expect else throw msg;
35+
4636 in makeTest {
4737 name = "keymap-${layout}";
4838
@@ -50,69 +40,40 @@ let
5040 machine.i18n.consoleKeyMap = mkOverride 900 layout;
5141 machine.services.xserver.layout = mkOverride 900 layout;
5242 machine.imports = [ ./common/x11.nix extraConfig ];
53− machine.services.xserver.displayManager.slim = {
54− enable = true;
55−
56− # Use a custom theme in order to get best OCR results
57− theme = pkgs.runCommand "slim-theme-ocr" {
58− nativeBuildInputs = [ pkgs.imagemagick ];
59− } ''
60− mkdir "$out"
61− convert -size 1x1 xc:white "$out/background.jpg"
62− convert -size 200x100 xc:white "$out/panel.jpg"
63− cat > "$out/slim.theme" <<EOF
64− background_color #ffffff
65− background_style tile
66−
67− input_fgcolor #000000
68− msg_color #000000
69−
70− session_color #000000
71− session_font Verdana:size=16:bold
72−
73− username_msg Username:
74− username_font Verdana:size=16:bold
75− username_color #000000
76− username_x 50%
77− username_y 40%
78−
79− password_msg Password:
80− password_x 50%
81− password_y 40%
82− EOF
83− '';
84− };
8543
8644 testScript = ''
87− sub waitCatAndDelete ($) {
88− return $machine->succeed(
89− "for i in \$(seq 600); do if [ -e '$_[0]' ]; then ".
90− "cat '$_[0]' && rm -f '$_[0]' && exit 0; ".
91− "fi; sleep 0.1; done; echo timed out after 60 seconds >&2; exit 1"
92− );
93− };
9445
9546 sub mkTest ($$) {
9647 my ($desc, $cmd) = @_;
9748
98− my @testdata = (${perlReaderInput});
99− my $shellTestdata = join ' ', map { "'".s/'/'\\'''/gr."'" } @testdata;
100−
10149 subtest $desc, sub {
102− $machine->succeed("$cmd ${testReader} $shellTestdata &");
103− while (my ($testname, $qwerty, $expect) = splice(@testdata, 0, 3)) {
104− waitCatAndDelete "/tmp/reader.ready";
105− $machine->sendKeys($qwerty);
106− };
107− my $exitcode = waitCatAndDelete "/tmp/reader.exit";
108− die "tests for $desc failed" if $exitcode ne 0;
50+ # prepare and start testReader
51+ $machine->execute("rm -f ${readyFile} ${resultFile}");
52+ $machine->succeed("$cmd ${testReader} ${toString le} ".q(${escapeShellArg expect} & ));
53+
54+ if ($desc eq "Xorg keymap") {
55+ # make sure the xterm window is open and has focus
56+ $machine->waitForWindow(qr/testterm/);
57+ $machine->waitUntilSucceeds("${pkgs.xdotool}/bin/xdotool search --sync --onlyvisible --class testterm windowfocus --sync");
58+ }
59+
60+ # wait for reader to be ready
61+ $machine->waitForFile("${readyFile}");
62+ $machine->sleep(1);
63+
64+ # send all keys
65+ foreach ((${send})) { $machine->sendKeys($_); };
66+
67+ # wait for result and check
68+ $machine->waitForFile("${resultFile}");
69+ $machine->succeed("grep -q 'PASS:' ${resultFile}");
10970 };
110− }
71+ };
11172
11273 $machine->waitForX;
11374
11475 mkTest "VT keymap", "openvt -sw --";
115− mkTest "Xorg keymap", "DISPLAY=:0 xterm -fullscreen -e";
76+ mkTest "Xorg keymap", "DISPLAY=:0 xterm -title testterm -class testterm -fullscreen -e";
11677 '';
11778 };
11879
nixos/tests/kubernetes/certs.nix+52−19
@@ -6,29 +6,62 @@
66 kubelets
77}:
88let
9− runWithCFSSL = name: cmd:
10− builtins.fromJSON (builtins.readFile (
11− pkgs.runCommand "${name}-cfss.json" {
12− buildInputs = [ pkgs.cfssl ];
13− } "cfssl ${cmd} > $out"
14− ));
15−
16− writeCFSSL = content:
17− pkgs.runCommand content.name {
18− buildInputs = [ pkgs.cfssl ];
19− } ''
20− mkdir -p $out
21− cd $out
22− cat ${writeFile content} | cfssljson -bare ${content.name}
23− '';
9+ runWithCFSSL = name: cmd:
10+ let secrets = pkgs.runCommand "${name}-cfss.json" {
11+ buildInputs = [ pkgs.cfssl pkgs.jq ];
12+ outputs = [ "out" "cert" "key" "csr" ];
13+ }
14+ ''
15+ (
16+ echo "${cmd}"
17+ cfssl ${cmd} > tmp
18+ cat tmp | jq -r .key > $key
19+ cat tmp | jq -r .cert > $cert
20+ cat tmp | jq -r .csr > $csr
21+
22+ touch $out
23+ ) 2>&1 | fold -w 80 -s
24+ '';
25+ in {
26+ key = secrets.key;
27+ cert = secrets.cert;
28+ csr = secrets.csr;
29+ };
30+
31+ writeCFSSL = content:
32+ pkgs.runCommand content.name {
33+ buildInputs = [ pkgs.cfssl pkgs.jq ];
34+ } ''
35+ mkdir -p $out
36+ cd $out
37+
38+ json=${pkgs.lib.escapeShellArg (builtins.toJSON content)}
39+
40+ # for a given $field in the $json, treat the associated value as a
41+ # file path and substitute the contents thereof into the $json
42+ # object.
43+ expandFileField() {
44+ local field=$1
45+ if jq -e --arg field "$field" 'has($field)'; then
46+ local path="$(echo "$json" | jq -r ".$field")"
47+ json="$(echo "$json" | jq --arg val "$(cat "$path")" ".$field = \$val")"
48+ fi
49+ }
50+
51+ expandFileField key
52+ expandFileField ca
53+ expandFileField cert
54+
55+ echo "$json" | cfssljson -bare ${content.name}
56+ '';
2457
2558 noCSR = content: pkgs.lib.filterAttrs (n: v: n != "csr") content;
2659 noKey = content: pkgs.lib.filterAttrs (n: v: n != "key") content;
2760
28− writeFile = content: pkgs.writeText "content" (
29− if pkgs.lib.isAttrs content then builtins.toJSON content
30− else toString content
31− );
61+ writeFile = content:
62+ if pkgs.lib.isDerivation content
63+ then content
64+ else pkgs.writeText "content" (builtins.toJSON content);
3265
3366 createServingCertKey = { ca, cn, hosts? [], size ? 2048, name ? cn }:
3467 noCSR (
nixos/tests/kubernetes/e2e.nix+1−1
@@ -2,7 +2,7 @@
22with import ./base.nix { inherit system; };
33let
44 domain = "my.zyx";
5− certs = import ./certs.nix { externalDomain = domain; };
5+ certs = import ./certs.nix { externalDomain = domain; kubelets = ["machine1" "machine2"]; };
66 kubeconfig = pkgs.writeText "kubeconfig.json" (builtins.toJSON {
77 apiVersion = "v1";
88 kind = "Config";
nixos/tests/kubernetes/rbac.nix+2−2
@@ -12,7 +12,7 @@ let
1212 });
1313
1414 roRoleBinding = pkgs.writeText "ro-role-binding.json" (builtins.toJSON {
15− apiVersion = "rbac.authorization.k8s.io/v1beta1";
15+ apiVersion = "rbac.authorization.k8s.io/v1";
1616 kind = "RoleBinding";
1717 metadata = {
1818 name = "read-pods";
@@ -31,7 +31,7 @@ let
3131 });
3232
3333 roRole = pkgs.writeText "ro-role.json" (builtins.toJSON {
34− apiVersion = "rbac.authorization.k8s.io/v1beta1";
34+ apiVersion = "rbac.authorization.k8s.io/v1";
3535 kind = "Role";
3636 metadata = {
3737 name = "pod-reader";
nixos/tests/misc.nix+1−1
@@ -96,7 +96,7 @@ import ./make-test.nix ({ pkgs, ...} : rec {
9696 $machine->succeed("systemctl start systemd-udev-settle.service");
9797 subtest "udev-auto-load", sub {
9898 $machine->waitForUnit('systemd-udev-settle.service');
99− $machine->succeed('lsmod | grep psmouse');
99+ $machine->succeed('lsmod | grep mousedev');
100100 };
101101
102102 # Test whether systemd-tmpfiles-clean works.
nixos/tests/openldap.nix+2−2
@@ -1,5 +1,5 @@
11import ./make-test.nix {
2− name = "dovecot";
2+ name = "openldap";
33
44 machine = { pkgs, ... }: {
55 services.openldap = {
@@ -28,8 +28,8 @@ import ./make-test.nix {
2828 };
2929
3030 testScript = ''
31− $machine->succeed('systemctl status openldap.service');
3231 $machine->waitForUnit('openldap.service');
32+ $machine->succeed('systemctl status openldap.service');
3333 $machine->succeed('ldapsearch -LLL -D "cn=root,dc=example" -w notapassword -b "dc=example"');
3434 '';
3535}
nixos/tests/printing.nix+3−1
@@ -39,7 +39,9 @@ import ./make-test.nix ({pkgs, ... }: {
3939 $client->waitForUnit("cups.service");
4040 $client->sleep(10); # wait until cups is fully initialized
4141 $client->succeed("lpstat -r") =~ /scheduler is running/ or die;
42− $client->succeed("lpstat -H") =~ "localhost:631" or die;
42+ # Test that UNIX socket is used for connections.
43+ $client->succeed("lpstat -H") =~ "/var/run/cups/cups.sock" or die;
44+ # Test that HTTP server is available too.
4345 $client->succeed("curl --fail http://localhost:631/");
4446 $client->succeed("curl --fail http://server:631/");
4547 $server->fail("curl --fail --connect-timeout 2 http://client:631/");
nixos/tests/prosody.nixnew file+75
@@ -0,0 +1,75 @@
1+import ./make-test.nix {
2+ name = "prosody";
3+
4+ machine = { config, pkgs, ... }: {
5+ services.prosody = {
6+ enable = true;
7+ # TODO: use a self-signed certificate
8+ c2sRequireEncryption = false;
9+ };
10+ environment.systemPackages = let
11+ sendMessage = pkgs.writeScriptBin "send-message" ''
12+ #!/usr/bin/env python3
13+ # Based on the sleekxmpp send_client example, look there for more details:
14+ # https://github.com/fritzy/SleekXMPP/blob/develop/examples/send_client.py
15+ import sleekxmpp
16+
17+ class SendMsgBot(sleekxmpp.ClientXMPP):
18+ """
19+ A basic SleekXMPP bot that will log in, send a message,
20+ and then log out.
21+ """
22+ def __init__(self, jid, password, recipient, message):
23+ sleekxmpp.ClientXMPP.__init__(self, jid, password)
24+
25+ self.recipient = recipient
26+ self.msg = message
27+
28+ self.add_event_handler("session_start", self.start, threaded=True)
29+
30+ def start(self, event):
31+ self.send_presence()
32+ self.get_roster()
33+
34+ self.send_message(mto=self.recipient,
35+ mbody=self.msg,
36+ mtype='chat')
37+
38+ self.disconnect(wait=True)
39+
40+
41+ if __name__ == '__main__':
42+ xmpp = SendMsgBot("test1@localhost", "test1", "test2@localhost", "Hello World!")
43+ xmpp.register_plugin('xep_0030') # Service Discovery
44+ xmpp.register_plugin('xep_0199') # XMPP Ping
45+
46+ # TODO: verify certificate
47+ # If you want to verify the SSL certificates offered by a server:
48+ # xmpp.ca_certs = "path/to/ca/cert"
49+
50+ if xmpp.connect(('localhost', 5222)):
51+ xmpp.process(block=True)
52+ else:
53+ print("Unable to connect.")
54+ sys.exit(1)
55+ '';
56+ in [ (pkgs.python3.withPackages (ps: [ ps.sleekxmpp ])) sendMessage ];
57+ };
58+
59+ testScript = ''
60+ $machine->waitForUnit('prosody.service');
61+ $machine->succeed('prosodyctl status') =~ /Prosody is running/;
62+
63+ # set password to 'test' (it's asked twice)
64+ $machine->succeed('yes test1 | prosodyctl adduser test1@localhost');
65+ # set password to 'y'
66+ $machine->succeed('yes | prosodyctl adduser test2@localhost');
67+ # correct password to 'test2'
68+ $machine->succeed('yes test2 | prosodyctl passwd test2@localhost');
69+
70+ $machine->succeed("send-message");
71+
72+ $machine->succeed('prosodyctl deluser test1@localhost');
73+ $machine->succeed('prosodyctl deluser test2@localhost');
74+ '';
75+}
nixos/tests/strongswan-swanctl.nixnew file+148
@@ -0,0 +1,148 @@
1+# This strongswan-swanctl test is based on:
2+# https://www.strongswan.org/testing/testresults/swanctl/rw-psk-ipv4/index.html
3+# https://github.com/strongswan/strongswan/tree/master/testing/tests/swanctl/rw-psk-ipv4
4+#
5+# The roadwarrior carol sets up a connection to gateway moon. The authentication
6+# is based on pre-shared keys and IPv4 addresses. Upon the successful
7+# establishment of the IPsec tunnels, the specified updown script automatically
8+# inserts iptables-based firewall rules that let pass the tunneled traffic. In
9+# order to test both tunnel and firewall, carol pings the client alice behind
10+# the gateway moon.
11+#
12+# alice moon carol
13+# eth1------vlan_0------eth1 eth2------vlan_1------eth1
14+# 192.168.0.1 192.168.0.3 192.168.1.3 192.168.1.2
15+#
16+# See the NixOS manual for how to run this test:
17+# https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests-interactively
18+
19+import ./make-test.nix ({ pkgs, ...} :
20+
21+let
22+ allowESP = "iptables --insert INPUT --protocol ESP --jump ACCEPT";
23+
24+ # Shared VPN settings:
25+ vlan0 = "192.168.0.0/24";
26+ carolIp = "192.168.1.2";
27+ moonIp = "192.168.1.3";
28+ version = 2;
29+ secret = "0sFpZAZqEN6Ti9sqt4ZP5EWcqx";
30+ esp_proposals = [ "aes128gcm128-x25519" ];
31+ proposals = [ "aes128-sha256-x25519" ];
32+in {
33+ name = "strongswan-swanctl";
34+ meta.maintainers = with pkgs.stdenv.lib.maintainers; [ basvandijk ];
35+ nodes = {
36+
37+ alice = { nodes, ... } : {
38+ virtualisation.vlans = [ 0 ];
39+ networking = {
40+ dhcpcd.enable = false;
41+ defaultGateway = "192.168.0.3";
42+ };
43+ };
44+
45+ moon = {pkgs, config, nodes, ...} :
46+ let strongswan = config.services.strongswan-swanctl.package;
47+ in {
48+ virtualisation.vlans = [ 0 1 ];
49+ networking = {
50+ dhcpcd.enable = false;
51+ firewall = {
52+ allowedUDPPorts = [ 4500 500 ];
53+ extraCommands = allowESP;
54+ };
55+ nat = {
56+ enable = true;
57+ internalIPs = [ vlan0 ];
58+ internalInterfaces = [ "eth1" ];
59+ externalIP = moonIp;
60+ externalInterface = "eth2";
61+ };
62+ };
63+ environment.systemPackages = [ strongswan ];
64+ services.strongswan-swanctl = {
65+ enable = true;
66+ swanctl = {
67+ connections = {
68+ "rw" = {
69+ local_addrs = [ moonIp ];
70+ local."main" = {
71+ auth = "psk";
72+ };
73+ remote."main" = {
74+ auth = "psk";
75+ };
76+ children = {
77+ "net" = {
78+ local_ts = [ vlan0 ];
79+ updown = "${strongswan}/libexec/ipsec/_updown iptables";
80+ inherit esp_proposals;
81+ };
82+ };
83+ inherit version;
84+ inherit proposals;
85+ };
86+ };
87+ secrets = {
88+ ike."carol" = {
89+ id."main" = carolIp;
90+ inherit secret;
91+ };
92+ };
93+ };
94+ };
95+ };
96+
97+ carol = {pkgs, config, nodes, ...} :
98+ let strongswan = config.services.strongswan-swanctl.package;
99+ in {
100+ virtualisation.vlans = [ 1 ];
101+ networking = {
102+ dhcpcd.enable = false;
103+ firewall.extraCommands = allowESP;
104+ };
105+ environment.systemPackages = [ strongswan ];
106+ services.strongswan-swanctl = {
107+ enable = true;
108+ swanctl = {
109+ connections = {
110+ "home" = {
111+ local_addrs = [ carolIp ];
112+ remote_addrs = [ moonIp ];
113+ local."main" = {
114+ auth = "psk";
115+ id = carolIp;
116+ };
117+ remote."main" = {
118+ auth = "psk";
119+ id = moonIp;
120+ };
121+ children = {
122+ "home" = {
123+ remote_ts = [ vlan0 ];
124+ start_action = "trap";
125+ updown = "${strongswan}/libexec/ipsec/_updown iptables";
126+ inherit esp_proposals;
127+ };
128+ };
129+ inherit version;
130+ inherit proposals;
131+ };
132+ };
133+ secrets = {
134+ ike."moon" = {
135+ id."main" = moonIp;
136+ inherit secret;
137+ };
138+ };
139+ };
140+ };
141+ };
142+
143+ };
144+ testScript = ''
145+ startAll();
146+ $carol->waitUntilSucceeds("ping -c 1 alice");
147+ '';
148+})
nixos/tests/systemd.nix+2
@@ -46,6 +46,8 @@ import ./make-test.nix {
4646
4747 testScript = ''
4848 $machine->waitForX;
49+ # wait for user services
50+ $machine->waitForUnit("default.target","alice");
4951
5052 # Regression test for https://github.com/NixOS/nixpkgs/issues/35415
5153 subtest "configuration files are recognized by systemd", sub {
nixos/tests/transmission.nixnew file+21
@@ -0,0 +1,21 @@
1+import ./make-test.nix ({ pkgs, ...} : {
2+ name = "transmission";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ coconnor ];
5+ };
6+
7+ machine = { config, pkgs, ... }: {
8+ imports = [ ../modules/profiles/minimal.nix ];
9+
10+ networking.firewall.allowedTCPPorts = [ 9091 ];
11+
12+ services.transmission.enable = true;
13+ };
14+
15+ testScript =
16+ ''
17+ startAll;
18+ $machine->waitForUnit("transmission");
19+ $machine->shutdown;
20+ '';
21+})
nixos/tests/vault.nix+2−2
@@ -17,7 +17,7 @@ import ./make-test.nix ({ pkgs, ... }:
1717 $machine->waitForUnit('multi-user.target');
1818 $machine->waitForUnit('vault.service');
1919 $machine->waitForOpenPort(8200);
20− $machine->succeed('vault init');
21− $machine->succeed('vault status | grep "Sealed: true"');
20+ $machine->succeed('vault operator init');
21+ $machine->succeed('vault status | grep Sealed | grep true');
2222 '';
2323})
nixos/tests/virtualbox.nix+3
@@ -43,6 +43,9 @@ let
4343 "init=${pkgs.writeScript "mini-init.sh" miniInit}"
4444 ];
4545
46+ # XXX: Remove this once TSS location detection has been fixed in VirtualBox
47+ boot.kernelPackages = pkgs.linuxPackages_4_9;
48+
4649 fileSystems."/" = {
4750 device = "vboxshare";
4851 fsType = "vboxsf";
nixos/tests/xautolock.nixnew file+24
@@ -0,0 +1,24 @@
1+import ./make-test.nix ({ pkgs, lib, ... }:
2+
3+with lib;
4+
5+{
6+ name = "xautolock";
7+ meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ma27 ];
8+
9+ nodes.machine = {
10+ imports = [ ./common/x11.nix ./common/user-account.nix ];
11+
12+ services.xserver.displayManager.auto.user = "bob";
13+ services.xserver.xautolock.enable = true;
14+ services.xserver.xautolock.time = 1;
15+ };
16+
17+ testScript = ''
18+ $machine->start;
19+ $machine->waitForX;
20+ $machine->mustFail("pgrep xlock");
21+ $machine->sleep(120);
22+ $machine->mustSucceed("pgrep xlock");
23+ '';
24+})
pkgs/applications/altcoins/bitcoin-abc.nix+2−2
@@ -7,13 +7,13 @@ with stdenv.lib;
77stdenv.mkDerivation rec {
88
99 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-abc-" + version;
10− version = "0.16.0";
10+ version = "0.17.0";
1111
1212 src = fetchFromGitHub {
1313 owner = "bitcoin-ABC";
1414 repo = "bitcoin-abc";
1515 rev = "v${version}";
16− sha256 = "0wwcgvd8zgl5qh6z1sa3kdv1lr9cwwbs9j2gaad5mqr9sfwbbxdh";
16+ sha256 = "1s2y29h2q4fnbrfg2ig1cd3h7g3kdcdyrfq7znq1ndnh8xj1j489";
1717 };
1818
1919 patches = [ ./fix-bitcoin-qt-build.patch ];
pkgs/applications/altcoins/bitcoin-classic.nix+2−2
@@ -7,13 +7,13 @@ with stdenv.lib;
77stdenv.mkDerivation rec {
88
99 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
10− version = "1.3.6";
10+ version = "1.3.8";
1111
1212 src = fetchFromGitHub {
1313 owner = "bitcoinclassic";
1414 repo = "bitcoinclassic";
1515 rev = "v${version}";
16− sha256 = "129gkg035gv7zmc463jl2spvdh0fl4q8v4jdaslfnp34hbwi1p07";
16+ sha256 = "06ij9v7zbdnhxq9429nnxiw655cp8idldj18l7fmj94gqx07n5vh";
1717 };
1818
1919 patches = [ ./fix-bitcoin-qt-build.patch ];
pkgs/applications/altcoins/bitcoin-unlimited-const-comparators.patchnew file+38
@@ -0,0 +1,38 @@
1+--- a/src/txmempool.h
2++++ b/src/txmempool.h
3+@@ -204,7 +204,7 @@
4+ class CompareTxMemPoolEntryByDescendantScore
5+ {
6+ public:
7+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
8++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
9+ {
10+ bool fUseADescendants = UseDescendantScore(a);
11+ bool fUseBDescendants = UseDescendantScore(b);
12+@@ -226,7 +226,7 @@
13+ }
14+
15+ // Calculate which score to use for an entry (avoiding division).
16+- bool UseDescendantScore(const CTxMemPoolEntry &a)
17++ bool UseDescendantScore(const CTxMemPoolEntry &a) const
18+ {
19+ double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
20+ double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
21+@@ -241,7 +241,7 @@
22+ class CompareTxMemPoolEntryByScore
23+ {
24+ public:
25+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
26++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
27+ {
28+ double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
29+ double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
30+@@ -255,7 +255,7 @@
31+ class CompareTxMemPoolEntryByEntryTime
32+ {
33+ public:
34+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
35++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
36+ {
37+ return a.GetTime() < b.GetTime();
38+ }
pkgs/applications/altcoins/bitcoin-unlimited.nix+13−6
@@ -1,28 +1,35 @@
11{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
22, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
3−, withGui }:
3+, withGui
4+, Foundation, ApplicationServices, AppKit }:
45
56with stdenv.lib;
67
78stdenv.mkDerivation rec {
89
910 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
10− version = "1.0.2.0";
11+ version = "1.0.3.0";
1112
1213 src = fetchFromGitHub {
1314 owner = "bitcoinunlimited";
1415 repo = "bitcoinunlimited";
1516 rev = "v${version}";
16− sha256 = "17cmyns1908s2rqs0zwr05f3541nqm2pg08n2xn97g2k3yimdg5q";
17+ sha256 = "0l02a7h502msrp4c02wgm7f3159ap8l61k4890vas99gq7ywxkcx";
1718 };
1819
1920 nativeBuildInputs = [ pkgconfig autoreconfHook ];
2021 buildInputs = [ openssl db48 boost zlib
2122 miniupnpc utillinux protobuf libevent ]
22− ++ optionals withGui [ qt4 qrencode ];
23+ ++ optionals withGui [ qt4 qrencode ]
24+ ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
25+
26+ patches = [
27+ ./bitcoin-unlimited-const-comparators.patch
28+ ];
2329
2430 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
2531 ++ optionals withGui [ "--with-gui=qt4" ];
32+ enableParallelBuilding = true;
2633
2734 meta = {
2835 description = "Peer-to-peer electronic cash system (Unlimited client)";
@@ -31,7 +38,7 @@ stdenv.mkDerivation rec {
3138 completely decentralized, without the need for a central server or trusted
3239 parties. Users hold the crypto keys to their own money and transact directly
3340 with each other, with the help of a P2P network to check for double-spending.
34−
41+
3542 The Bitcoin Unlimited (BU) project seeks to provide a voice to all
3643 stakeholders in the Bitcoin ecosystem.
3744
@@ -50,7 +57,7 @@ stdenv.mkDerivation rec {
5057
5158 If you support an increase in the blocksize limit by any means - or just
5259 support Bitcoin conflict resolution as originally envisioned by its founder -
53− consider running a Bitcoin Unlimited client.
60+ consider running a Bitcoin Unlimited client.
5461 '';
5562 homepage = https://www.bitcoinunlimited.info/;
5663 maintainers = with maintainers; [ DmitryTsygankov ];
pkgs/applications/altcoins/bitcoin-xt.nix+7−5
@@ -1,24 +1,26 @@
11{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
22, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, curl, libevent
3−, withGui }:
3+, withGui
4+, Foundation, ApplicationServices, AppKit }:
45
56with stdenv.lib;
67stdenv.mkDerivation rec{
78
89 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-xt-" + version;
9− version = "0.11G2";
10+ version = "0.11H";
1011
1112 src = fetchFromGitHub {
1213 owner = "bitcoinxt";
1314 repo = "bitcoinxt";
1415 rev = "v${version}";
15− sha256 = "071rljvsabyc9j64v248qfb7zfqpfl84hpsnvlavin235zljq8qs";
16+ sha256 = "1v43bynmidn2zdpky939km721x3ks91bzyh4200gji61qzsmyg62";
1617 };
1718
1819 nativeBuildInputs = [ pkgconfig autoreconfHook ];
1920 buildInputs = [ openssl db48 boost zlib libevent
2021 miniupnpc utillinux protobuf curl ]
21− ++ optionals withGui [ qt4 qrencode ];
22+ ++ optionals withGui [ qt4 qrencode ]
23+ ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ];
2224
2325 configureFlags = [
2426 "--with-boost-libdir=${boost.out}/lib"
@@ -36,7 +38,7 @@ stdenv.mkDerivation rec{
3638 Bitcoin XT is an implementation of a Bitcoin full node, based upon the
3739 source code of Bitcoin Core. It is built by taking the latest stable
3840 Core release, applying a series of patches, and then doing deterministic
39− builds so anyone can check the downloads correspond to the source code.
41+ builds so anyone can check the downloads correspond to the source code.
4042 '';
4143 homepage = https://bitcoinxt.software/;
4244 maintainers = with maintainers; [ jefdaj ];
pkgs/applications/altcoins/btc1.nix+2−2
@@ -5,11 +5,11 @@
55with stdenv.lib;
66stdenv.mkDerivation rec{
77 name = "bit1" + (toString (optional (!withGui) "d")) + "-" + version;
8− version = "1.14.5";
8+ version = "1.15.1";
99
1010 src = fetchurl {
1111 url = "https://github.com/btc1/bitcoin/archive/v${version}.tar.gz";
12− sha256 = "1az6bbblh3adgcs16r9cjz8jacg6sbwfpg8zzfzkbp9h9j85ass5";
12+ sha256 = "0v0g2wb4nsnhddxzb63vj2bc1mgyj05vqm5imicjfz8prvgc0si8";
1313 };
1414
1515 nativeBuildInputs = [ pkgconfig autoreconfHook ];
pkgs/applications/altcoins/dcrd.nix+1
@@ -29,5 +29,6 @@ buildGoPackage rec {
2929 homepage = "https://decred.org";
3030 description = "Decred daemon in Go (golang)";
3131 license = with lib.licenses; [ isc ];
32+ broken = stdenv.isLinux; # 2018-04-10
3233 };
3334}
pkgs/applications/altcoins/dcrwallet.nix+1
@@ -38,5 +38,6 @@ buildGoPackage rec {
3838 homepage = "https://decred.org";
3939 description = "Decred daemon in Go (golang)";
4040 license = with lib.licenses; [ isc ];
41+ broken = stdenv.isLinux; # 2018-04-10
4142 };
4243}
pkgs/applications/altcoins/default.nix+34−15
@@ -1,4 +1,4 @@
1−{ callPackage, boost155, openssl_1_1_0, haskellPackages, darwin, libsForQt5, miniupnpc_2, python3 }:
1+{ callPackage, boost155, boost165, openssl_1_1_0, haskellPackages, darwin, libsForQt5, miniupnpc_2, python3 }:
22
33rec {
44
@@ -7,20 +7,32 @@ rec {
77 bitcoin = libsForQt5.callPackage ./bitcoin.nix { miniupnpc = miniupnpc_2; withGui = true; };
88 bitcoind = callPackage ./bitcoin.nix { miniupnpc = miniupnpc_2; withGui = false; };
99
10− bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { withGui = true; };
11− bitcoind-abc = callPackage ./bitcoin-abc.nix { withGui = false; };
10+ bitcoin-abc = libsForQt5.callPackage ./bitcoin-abc.nix { boost = boost165; withGui = true; };
11+ bitcoind-abc = callPackage ./bitcoin-abc.nix { boost = boost165; withGui = false; };
1212
13− bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = true; };
14− bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = false; };
13+ bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix {
14+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
15+ withGui = true;
16+ };
17+ bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix {
18+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
19+ withGui = false;
20+ };
1521
16− bitcoin-classic = libsForQt5.callPackage ./bitcoin-classic.nix { withGui = true; };
17− bitcoind-classic = callPackage ./bitcoin-classic.nix { withGui = false; };
22+ bitcoin-classic = libsForQt5.callPackage ./bitcoin-classic.nix { boost = boost165; withGui = true; };
23+ bitcoind-classic = callPackage ./bitcoin-classic.nix { boost = boost165; withGui = false; };
1824
19− bitcoin-xt = callPackage ./bitcoin-xt.nix { withGui = true; };
20− bitcoind-xt = callPackage ./bitcoin-xt.nix { withGui = false; };
25+ bitcoin-xt = callPackage ./bitcoin-xt.nix {
26+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
27+ boost = boost165; withGui = true;
28+ };
29+ bitcoind-xt = callPackage ./bitcoin-xt.nix {
30+ inherit (darwin.apple_sdk.frameworks) Foundation ApplicationServices AppKit;
31+ boost = boost165; withGui = false;
32+ };
2133
22− btc1 = callPackage ./btc1.nix { withGui = true; };
23− btc1d = callPackage ./btc1.nix { withGui = false; };
34+ btc1 = callPackage ./btc1.nix { boost = boost165; withGui = true; };
35+ btc1d = callPackage ./btc1.nix { boost = boost165; withGui = false; };
2436
2537 cryptop = python3.pkgs.callPackage ./cryptop { };
2638
@@ -31,8 +43,8 @@ rec {
3143
3244 dero = callPackage ./dero.nix { };
3345
34− dogecoin = callPackage ./dogecoin.nix { withGui = true; };
35− dogecoind = callPackage ./dogecoin.nix { withGui = false; };
46+ dogecoin = callPackage ./dogecoin.nix { boost = boost165; withGui = true; };
47+ dogecoind = callPackage ./dogecoin.nix { boost = boost165; withGui = false; };
3648
3749 ethsign = callPackage ./ethsign { };
3850
@@ -46,8 +58,12 @@ rec {
4658 litecoin = callPackage ./litecoin.nix { withGui = true; };
4759 litecoind = callPackage ./litecoin.nix { withGui = false; };
4860
49− memorycoin = callPackage ./memorycoin.nix { withGui = true; };
50− memorycoind = callPackage ./memorycoin.nix { withGui = false; };
61+ masari = callPackage ./masari.nix { };
62+
63+ memorycoin = callPackage ./memorycoin.nix { boost = boost165; withGui = true; };
64+ memorycoind = callPackage ./memorycoin.nix { boost = boost165; withGui = false; };
65+
66+ mist = callPackage ./mist.nix { };
5167
5268 namecoin = callPackage ./namecoin.nix { withGui = true; };
5369 namecoind = callPackage ./namecoin.nix { withGui = false; };
@@ -67,4 +83,7 @@ rec {
6783 withGui = false;
6884 openssl = openssl_1_1_0;
6985 };
86+
87+ parity = callPackage ./parity { };
88+ parity-beta = callPackage ./parity/beta.nix { };
7089}
pkgs/applications/altcoins/ethsign/default.nix+1−1
@@ -52,7 +52,7 @@ buildGoPackage rec {
5252 ];
5353
5454 meta = with stdenv.lib; {
55− homepage = http://github.com/dapphub/ethsign;
55+ homepage = https://github.com/dapphub/ethsign;
5656 description = "Make raw signed Ethereum transactions";
5757 license = [licenses.gpl3];
5858 };
pkgs/applications/altcoins/freicoin.nix+1−1
@@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
88 owner = "freicoin";
99 repo = "freicoin";
1010 rev = "v${version}";
11− sha256 = "1m5pcnfhwhcj7q00p2sy3h73rkdm3w6grmljgiq53gshcj08cq1z";
11+ sha256 = "1v1qwv4x5agjba82s1vknmdgq67y26wzdwbmwwqavv7f7y3y860h";
1212 };
1313
1414 qmakeFlags = ["USE_UPNP=-"];
pkgs/applications/altcoins/go-ethereum.nix+2−2
@@ -2,7 +2,7 @@
22
33buildGoPackage rec {
44 name = "go-ethereum-${version}";
5− version = "1.8.1";
5+ version = "1.8.3";
66 goPackagePath = "github.com/ethereum/go-ethereum";
77
88 # Fix for usb-related segmentation faults on darwin
@@ -27,7 +27,7 @@ buildGoPackage rec {
2727 owner = "ethereum";
2828 repo = "go-ethereum";
2929 rev = "v${version}";
30− sha256 = "0k7ly9cw68ranksa1fdn7v2lncmlqgabw3qiiyqya2xz3s4aazlf";
30+ sha256 = "1vdrf3fi4arr6aivyp5myj4jy7apqbiqa6brr3jplmc07q1yijnf";
3131 };
3232
3333 meta = with stdenv.lib; {
pkgs/applications/altcoins/hevm.nix+1
@@ -55,6 +55,7 @@ lib.overrideDerivation (mkDerivation rec {
5555 description = "Ethereum virtual machine evaluator";
5656 license = stdenv.lib.licenses.agpl3;
5757 maintainers = [stdenv.lib.maintainers.dbrock];
58+ broken = true; # 2018-04-10
5859}) (attrs: {
5960 buildInputs = attrs.buildInputs ++ [solc];
6061 nativeBuildInputs = attrs.nativeBuildInputs ++ [makeWrapper];
pkgs/applications/altcoins/litecoin.nix+2−2
@@ -8,13 +8,13 @@ with stdenv.lib;
88stdenv.mkDerivation rec {
99
1010 name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
11− version = "0.14.2";
11+ version = "0.15.1";
1212
1313 src = fetchFromGitHub {
1414 owner = "litecoin-project";
1515 repo = "litecoin";
1616 rev = "v${version}";
17− sha256 = "1smadd5d2mpz2v3pyk7wqm60vdp81zqr4m3z4wfvnlz62m1m800y";
17+ sha256 = "01q0lj0grabyfh67ar984m9lv9xs0rakadkci8jpfbp8xw166r40";
1818 };
1919
2020 nativeBuildInputs = [ pkgconfig autoreconfHook ];
pkgs/applications/altcoins/masari.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig, unbound, openssl, boost
2+, lmdb, miniupnpc, readline }:
3+
4+stdenv.mkDerivation rec {
5+ name = "masari-${version}";
6+ version = "0.1.4.0";
7+
8+ src = fetchFromGitHub {
9+ owner = "masari-project";
10+ repo = "masari";
11+ rev = "v${version}";
12+ sha256 = "0l6i21wkq5f6z8xr756i7vqgkzk7lixaa31ydy34fkfcqxppgxz3";
13+ };
14+
15+ nativeBuildInputs = [ cmake pkgconfig ];
16+ buildInputs = [ boost miniupnpc openssl lmdb unbound readline ];
17+
18+ enableParallelBuilding = true;
19+
20+ meta = with lib; {
21+ description = "scalability-focused, untraceable, secure, and fungible cryptocurrency using the RingCT protocol";
22+ homepage = "https://www.getmasari.org/";
23+ license = licenses.bsd3;
24+ maintainers = with maintainers; [ fpletz ];
25+ platforms = platforms.linux;
26+ };
27+}
pkgs/applications/altcoins/memorycoin.nix+1−1
@@ -51,6 +51,6 @@ stdenv.mkDerivation rec{
5151 homepage = http://www.bitcoin.org/;
5252 maintainers = with maintainers; [ AndersonTorres ];
5353 license = licenses.mit;
54− platforms = platforms.unix;
54+ platforms = [ "x86_64-linux" ];
5555 };
5656}
pkgs/applications/altcoins/mist.nixnew file+71
@@ -0,0 +1,71 @@
1+{ stdenv, lib, makeWrapper, fetchurl, unzip, atomEnv, makeDesktopItem, buildFHSUserEnv }:
2+
3+let
4+ version = "0.10.0";
5+ name = "mist-${version}";
6+
7+ throwSystem = throw "Unsupported system: ${stdenv.system}";
8+
9+ meta = with stdenv.lib; {
10+ description = "Browse and use Ðapps on the Ethereum network";
11+ homepage = https://github.com/ethereum/mist;
12+ license = licenses.gpl3;
13+ maintainers = with maintainers; [];
14+ platforms = [ "x86_64-linux" "i686-linux" ];
15+ };
16+
17+ urlVersion = builtins.replaceStrings ["."] ["-"] version;
18+
19+ desktopItem = makeDesktopItem rec {
20+ name = "Mist";
21+ exec = "mist";
22+ icon = "mist";
23+ desktopName = name;
24+ genericName = "Mist Browser";
25+ categories = "Network;";
26+ };
27+
28+ mist = stdenv.mkDerivation {
29+ inherit name version;
30+
31+ src = {
32+ i686-linux = fetchurl {
33+ url = "https://github.com/ethereum/mist/releases/download/v${version}/Mist-linux32-${urlVersion}.zip";
34+ sha256 = "01hvxlm9w522pwvsjdy18gsrapkfjr7d1jjl4bqjjysxnjaaj2lk";
35+ };
36+ x86_64-linux = fetchurl {
37+ url = "https://github.com/ethereum/mist/releases/download/v${version}/Mist-linux64-${urlVersion}.zip";
38+ sha256 = "01k17j7fdfhxfd26njdsiwap0xnka2536k9ydk32czd8db7ya9zi";
39+ };
40+ }.${stdenv.system} or throwSystem;
41+
42+ buildInputs = [ unzip makeWrapper ];
43+
44+ buildCommand = ''
45+ mkdir -p $out/lib/mist $out/bin
46+ unzip -d $out/lib/mist $src
47+ ln -s $out/lib/mist/mist $out/bin
48+ fixupPhase
49+ mkdir -p $out/share/applications
50+ ln -s ${desktopItem}/share/applications/* $out/share/applications
51+ patchelf \
52+ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
53+ --set-rpath "${atomEnv.libPath}:$out/lib/mist" \
54+ $out/lib/mist/mist
55+ '';
56+ };
57+in
58+buildFHSUserEnv {
59+ name = "mist";
60+
61+ targetPkgs = pkgs: with pkgs; [
62+ mist
63+ ];
64+
65+ extraInstallCommands = ''
66+ mkdir -p "$out/share/applications"
67+ cp "${desktopItem}/share/applications/"* $out/share/applications
68+ '';
69+
70+ runScript = "mist";
71+}
pkgs/applications/altcoins/monero-gui/default.nix+8−6
@@ -2,32 +2,34 @@
22, makeWrapper, makeDesktopItem
33, qtbase, qmake, qtmultimedia, qttools
44, qtgraphicaleffects, qtdeclarative
5−, qtlocation, qtquickcontrols, qtwebchannel
5+, qtlocation, qtquickcontrols2, qtwebchannel
66, qtwebengine, qtx11extras, qtxmlpatterns
77, monero, unbound, readline, boost, libunwind
8+, pcsclite, zeromq, cppzmq, pkgconfig
89}:
910
1011with stdenv.lib;
1112
1213stdenv.mkDerivation rec {
1314 name = "monero-gui-${version}";
14− version = "0.11.1.0";
15+ version = "0.12.0.0";
1516
1617 src = fetchFromGitHub {
1718 owner = "monero-project";
1819 repo = "monero-gui";
1920 rev = "v${version}";
20− sha256 = "01d7apwrv8j8bh7plvvhlnll3ransaha3n6rx19nkgvfn319hswq";
21+ sha256 = "1mg5ival8a2wdp14yib4wzqax4xyvd40zjy9anhszljds1439jhl";
2122 };
2223
23− nativeBuildInputs = [ qmake ];
24+ nativeBuildInputs = [ qmake pkgconfig ];
2425
2526 buildInputs = [
2627 qtbase qtmultimedia qtgraphicaleffects
27− qtdeclarative qtlocation qtquickcontrols
28+ qtdeclarative qtlocation qtquickcontrols2
2829 qtwebchannel qtwebengine qtx11extras
2930 qtxmlpatterns monero unbound readline
30− boost libunwind makeWrapper
31+ boost libunwind pcsclite zeromq cppzmq
32+ makeWrapper
3133 ];
3234
3335 patches = [
pkgs/applications/altcoins/monero-gui/move-log-file.patch+13−17
@@ -1,8 +1,8 @@
11diff --git a/main.cpp b/main.cpp
2−index 1a9a979..2316929 100644
2+index c03b160..a8ea263 100644
33--- a/main.cpp
44+++ b/main.cpp
5−@@ -74,10 +74,6 @@ int main(int argc, char *argv[])
5+@@ -80,14 +80,16 @@ int main(int argc, char *argv[])
66 // qDebug() << "High DPI auto scaling - enabled";
77 //#endif
88
@@ -13,9 +13,6 @@ index 1a9a979..2316929 100644
1313 MainApp app(argc, argv);
1414
1515 qDebug() << "app startd";
16−@@ -86,6 +82,13 @@ int main(int argc, char *argv[])
17− app.setOrganizationDomain("getmonero.org");
18− app.setOrganizationName("monero-project");
1916
2017+ // Log settings
2118+ QString logfile =
@@ -23,20 +20,19 @@ index 1a9a979..2316929 100644
2320+ + "/monero-wallet-gui.log";
2421+ Monero::Wallet::init(argv[0], logfile.toUtf8().constData());
2522+
26−+
27− filter *eventFilter = new filter;
28− app.installEventFilter(eventFilter);
29−
23+ app.setApplicationName("monero-core");
24+ app.setOrganizationDomain("getmonero.org");
25+ app.setOrganizationName("monero-project");
3026diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp
31−index 8525bf3..6967b24 100644
27+index 74649ce..fe1efc6 100644
3228--- a/src/libwalletqt/Wallet.cpp
3329+++ b/src/libwalletqt/Wallet.cpp
34−@@ -613,7 +613,7 @@ QString Wallet::getDaemonLogPath() const
35−
36− QString Wallet::getWalletLogPath() const
37− {
38−- return QCoreApplication::applicationDirPath() + "/monero-wallet-gui.log";
39−+ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/monero-wallet-gui.log";
30+@@ -729,7 +729,7 @@ QString Wallet::getWalletLogPath() const
31+ #ifdef Q_OS_MACOS
32+ return QStandardPaths::standardLocations(QStandardPaths::HomeLocation).at(0) + "/Library/Logs/" + filename;
33+ #else
34+- return QCoreApplication::applicationDirPath() + "/" + filename;
35++ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + filename;
36+ #endif
4037 }
4138
42− Wallet::Wallet(Monero::Wallet *w, QObject *parent)
pkgs/applications/altcoins/monero/build-wallet-rpc.patchdeleted−78
@@ -1,78 +0,0 @@
1−diff --git a/src/wallet/CMakeLists.txt b/src/wallet/CMakeLists.txt
2−index 63908005..f6656d5c 100644
3−--- a/src/wallet/CMakeLists.txt
4−+++ b/src/wallet/CMakeLists.txt
5−@@ -86,43 +86,40 @@ target_link_libraries(wallet
6− ${EXTRA_LIBRARIES})
7− add_dependencies(wallet version)
8−
9−-if (NOT BUILD_GUI_DEPS)
10−- set(wallet_rpc_sources
11−- wallet_rpc_server.cpp)
12−+set(wallet_rpc_sources
13−+ wallet_rpc_server.cpp)
14−
15−- set(wallet_rpc_headers)
16−+set(wallet_rpc_headers)
17−
18−- set(wallet_rpc_private_headers
19−- wallet_rpc_server.h)
20−+set(wallet_rpc_private_headers
21−+ wallet_rpc_server.h)
22−
23−- monero_private_headers(wallet_rpc_server
24−- ${wallet_rpc_private_headers})
25−- monero_add_executable(wallet_rpc_server
26−- ${wallet_rpc_sources}
27−- ${wallet_rpc_headers}
28−- ${wallet_rpc_private_headers})
29−-
30−- target_link_libraries(wallet_rpc_server
31−- PRIVATE
32−- wallet
33−- epee
34−- rpc
35−- cryptonote_core
36−- cncrypto
37−- common
38−- ${Boost_CHRONO_LIBRARY}
39−- ${Boost_PROGRAM_OPTIONS_LIBRARY}
40−- ${Boost_FILESYSTEM_LIBRARY}
41−- ${Boost_THREAD_LIBRARY}
42−- ${CMAKE_THREAD_LIBS_INIT}
43−- ${EXTRA_LIBRARIES})
44−- add_dependencies(wallet_rpc_server version)
45−- set_property(TARGET wallet_rpc_server
46−- PROPERTY
47−- OUTPUT_NAME "monero-wallet-rpc")
48−- install(TARGETS wallet_rpc_server DESTINATION bin)
49−-endif()
50−+monero_private_headers(wallet_rpc_server
51−+ ${wallet_rpc_private_headers})
52−+monero_add_executable(wallet_rpc_server
53−+ ${wallet_rpc_sources}
54−+ ${wallet_rpc_headers}
55−+ ${wallet_rpc_private_headers})
56−
57−+target_link_libraries(wallet_rpc_server
58−+ PRIVATE
59−+ wallet
60−+ epee
61−+ rpc
62−+ cryptonote_core
63−+ cncrypto
64−+ common
65−+ ${Boost_CHRONO_LIBRARY}
66−+ ${Boost_PROGRAM_OPTIONS_LIBRARY}
67−+ ${Boost_FILESYSTEM_LIBRARY}
68−+ ${Boost_THREAD_LIBRARY}
69−+ ${CMAKE_THREAD_LIBS_INIT}
70−+ ${EXTRA_LIBRARIES})
71−+add_dependencies(wallet_rpc_server version)
72−+set_property(TARGET wallet_rpc_server
73−+ PROPERTY
74−+ OUTPUT_NAME "monero-wallet-rpc")
75−+install(TARGETS wallet_rpc_server DESTINATION bin)
76−
77− # build and install libwallet_merged only if we building for GUI
78− if (BUILD_GUI_DEPS)
pkgs/applications/altcoins/monero/default.nix+19−21
@@ -1,46 +1,44 @@
1−{ stdenv, fetchpatch, fetchFromGitHub, cmake
2−, boost, miniupnpc, openssl, pkgconfig, unbound
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, git
2+, boost, miniupnpc, openssl, unbound, cppzmq
3+, zeromq, pcsclite, readline
4+, CoreData, IOKit, PCSC
35}:
46
7+assert stdenv.isDarwin -> IOKit != null;
8+
9+with stdenv.lib;
10+
511stdenv.mkDerivation rec {
612 name = "monero-${version}";
7− version = "0.11.1.0";
13+ version = "0.12.0.0";
814
915 src = fetchFromGitHub {
1016 owner = "monero-project";
1117 repo = "monero";
1218 rev = "v${version}";
13− sha256 = "0nrpxx6r63ia6ard85d504x2kgaikvrhb5sg93ml70l6djyy1148";
19+ sha256 = "1lc9mkrl1m8mdbvj88y8y5rv44vinxf7dyv221ndmw5c5gs5zfgk";
1420 };
1521
16− nativeBuildInputs = [ cmake pkgconfig ];
22+ nativeBuildInputs = [ cmake pkgconfig git ];
1723
18− buildInputs = [ boost miniupnpc openssl unbound ];
19−
20− patches = [
21− ./build-wallet-rpc.patch # fixed in next release
22− ];
24+ buildInputs = [
25+ boost miniupnpc openssl unbound
26+ cppzmq zeromq pcsclite readline
27+ ] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
2328
2429 cmakeFlags = [
2530 "-DCMAKE_BUILD_TYPE=Release"
2631 "-DBUILD_GUI_DEPS=ON"
32+ "-DReadline_ROOT_DIR=${readline.dev}"
2733 ];
2834
29− doCheck = false;
30−
31− installPhase = ''
32− make install
33− install -Dt "$out/bin/" \
34− bin/monero-blockchain-export \
35− bin/monero-blockchain-import \
36− bin/monero-wallet-rpc
37− '';
35+ hardeningDisable = [ "fortify" ];
3836
39− meta = with stdenv.lib; {
37+ meta = {
4038 description = "Private, secure, untraceable currency";
4139 homepage = https://getmonero.org/;
4240 license = licenses.bsd3;
4341 platforms = platforms.all;
44− maintainers = [ maintainers.ehmry ];
42+ maintainers = with maintainers; [ ehmry rnhmjoj ];
4543 };
4644}
pkgs/applications/altcoins/namecoin.nix+2−2
@@ -3,14 +3,14 @@
33
44with stdenv.lib;
55stdenv.mkDerivation rec {
6− version = "nc0.13.0rc1";
6+ version = "nc0.15.99-name-tab-beta2";
77 name = "namecoin" + toString (optional (!withGui) "d") + "-" + version;
88
99 src = fetchFromGitHub {
1010 owner = "namecoin";
1111 repo = "namecoin-core";
1212 rev = version;
13− sha256 = "17zz0rm3js285w2assxp8blfx830rs0ambcsaqqfli9mnaik3m39";
13+ sha256 = "1r0v0yvlazmidxp6xhapbdawqb8fhzrdp11d4an5vgxa208s6wdf";
1414 };
1515
1616 nativeBuildInputs = [
pkgs/applications/altcoins/parity/beta.nixnew file+7
@@ -0,0 +1,7 @@
1+let
2+ version = "1.10.0";
3+ sha256 = "0dmdd7qa8lww5bzcdn25nkyz6334irh8hw0y1j0yc2pmd2dny99g";
4+ cargoSha256 = "0whkjbaq40mqva1ayqnmz2ppqjrg35va93cypx1al41rsp1yc37m";
5+ patches = [ ./patches/vendored-sources-1.10.patch ];
6+in
7+ import ./parity.nix { inherit version sha256 cargoSha256 patches; }
pkgs/applications/altcoins/parity/default.nixnew file+7
@@ -0,0 +1,7 @@
1+let
2+ version = "1.9.5";
3+ sha256 = "0f2x78p5bshs3678qcybqd34k83d294mp3vadp99iqhmbkhbfyy7";
4+ cargoSha256 = "1irc01sva5yyhdv79cs6jk5pbmhxyvs0ja4cly4nw639m1kx7rva";
5+ patches = [ ./patches/vendored-sources-1.9.patch ];
6+in
7+ import ./parity.nix { inherit version sha256 cargoSha256 patches; }
pkgs/applications/altcoins/parity/parity.nixnew file+38
@@ -0,0 +1,38 @@
1+{ version
2+, sha256
3+, cargoSha256
4+, patches
5+}:
6+
7+{ stdenv
8+, fetchFromGitHub
9+, rustPlatform
10+, pkgconfig
11+, openssl
12+, systemd
13+}:
14+
15+rustPlatform.buildRustPackage rec {
16+ name = "parity-${version}";
17+ inherit cargoSha256 patches;
18+
19+ src = fetchFromGitHub {
20+ owner = "paritytech";
21+ repo = "parity";
22+ rev = "v${version}";
23+ inherit sha256;
24+ };
25+
26+ buildInputs = [ pkgconfig systemd.lib systemd.dev openssl openssl.dev ];
27+
28+ # Some checks failed
29+ doCheck = false;
30+
31+ meta = with stdenv.lib; {
32+ description = "Fast, light, robust Ethereum implementation";
33+ homepage = http://parity.io;
34+ license = licenses.gpl3;
35+ maintainers = [ maintainers.akru ];
36+ platforms = platforms.linux;
37+ };
38+}
pkgs/applications/altcoins/parity/patches/vendored-sources-1.10.patchnew file+118
@@ -0,0 +1,118 @@
1+diff --git a/.cargo/config b/.cargo/config
2+index 72652ad2f..b21c6aa7b 100644
3+--- a/.cargo/config
4++++ b/.cargo/config
5+@@ -1,3 +1,113 @@
6+ [target.x86_64-pc-windows-msvc]
7+ # Link the C runtime statically ; https://github.com/paritytech/parity/issues/6643
8+ rustflags = ["-Ctarget-feature=+crt-static"]
9++
10++[source."https://github.com/alexcrichton/mio-named-pipes"]
11++git = "https://github.com/alexcrichton/mio-named-pipes"
12++branch = "master"
13++replace-with = "vendored-sources"
14++
15++[source."https://github.com/js-dist-paritytech/parity-master-1-10-shell.git"]
16++git = "https://github.com/js-dist-paritytech/parity-master-1-10-shell.git"
17++rev = "bd25b41cd642c6b822d820dded3aa601a29aa079"
18++replace-with = "vendored-sources"
19++
20++[source."https://github.com/js-dist-paritytech/parity-master-1-10-wallet.git"]
21++git = "https://github.com/js-dist-paritytech/parity-master-1-10-wallet.git"
22++rev = "4b6f112412716cd05123d32eeb7fda448288a6c6"
23++replace-with = "vendored-sources"
24++
25++[source."https://github.com/nikvolf/parity-tokio-ipc"]
26++git = "https://github.com/nikvolf/parity-tokio-ipc"
27++branch = "master"
28++replace-with = "vendored-sources"
29++
30++[source."https://github.com/nikvolf/tokio-named-pipes"]
31++git = "https://github.com/nikvolf/tokio-named-pipes"
32++branch = "master"
33++replace-with = "vendored-sources"
34++
35++[source."https://github.com/parity-js/dapp-wallet.git"]
36++git = "https://github.com/parity-js/dapp-wallet.git"
37++rev = "65deb02e7c007a0fd8aab0c089c93e3fd1de6f87"
38++replace-with = "vendored-sources"
39++
40++[source."https://github.com/parity-js/shell.git"]
41++git = "https://github.com/parity-js/shell.git"
42++rev = "eecaadcb9e421bce31e91680d14a20bbd38f92a2"
43++replace-with = "vendored-sources"
44++
45++[source."https://github.com/paritytech/bn"]
46++git = "https://github.com/paritytech/bn"
47++branch = "master"
48++replace-with = "vendored-sources"
49++
50++[source."https://github.com/paritytech/hidapi-rs"]
51++git = "https://github.com/paritytech/hidapi-rs"
52++branch = "master"
53++replace-with = "vendored-sources"
54++
55++[source."https://github.com/paritytech/hyper"]
56++git = "https://github.com/paritytech/hyper"
57++branch = "master"
58++replace-with = "vendored-sources"
59++
60++[source."https://github.com/paritytech/jsonrpc.git"]
61++git = "https://github.com/paritytech/jsonrpc.git"
62++branch = "parity-1.10"
63++replace-with = "vendored-sources"
64++
65++[source."https://github.com/paritytech/libusb-rs"]
66++git = "https://github.com/paritytech/libusb-rs"
67++branch = "master"
68++replace-with = "vendored-sources"
69++
70++[source."https://github.com/paritytech/libusb-sys"]
71++git = "https://github.com/paritytech/libusb-sys"
72++branch = "master"
73++replace-with = "vendored-sources"
74++
75++[source."https://github.com/paritytech/rust-ctrlc.git"]
76++git = "https://github.com/paritytech/rust-ctrlc.git"
77++branch = "master"
78++replace-with = "vendored-sources"
79++
80++[source."https://github.com/paritytech/rust-rocksdb"]
81++git = "https://github.com/paritytech/rust-rocksdb"
82++branch = "master"
83++replace-with = "vendored-sources"
84++
85++[source."https://github.com/paritytech/rust-secp256k1"]
86++git = "https://github.com/paritytech/rust-secp256k1"
87++branch = "master"
88++replace-with = "vendored-sources"
89++
90++[source."https://github.com/paritytech/rust-snappy"]
91++git = "https://github.com/paritytech/rust-snappy"
92++branch = "master"
93++replace-with = "vendored-sources"
94++
95++[source."https://github.com/paritytech/trezor-sys"]
96++git = "https://github.com/paritytech/trezor-sys"
97++branch = "master"
98++replace-with = "vendored-sources"
99++
100++[source."https://github.com/paritytech/wasm-utils"]
101++git = "https://github.com/paritytech/wasm-utils"
102++branch = "master"
103++replace-with = "vendored-sources"
104++
105++[source."https://github.com/paritytech/wasmi"]
106++git = "https://github.com/paritytech/wasmi"
107++branch = "master"
108++replace-with = "vendored-sources"
109++
110++[source."https://github.com/tailhook/rotor"]
111++git = "https://github.com/tailhook/rotor"
112++branch = "master"
113++replace-with = "vendored-sources"
114++
115++[source."https://github.com/tomusdrw/ws-rs"]
116++git = "https://github.com/tomusdrw/ws-rs"
117++branch = "master"
118++replace-with = "vendored-sources"
pkgs/applications/altcoins/parity/patches/vendored-sources-1.9.patchnew file+107
@@ -0,0 +1,107 @@
1+diff --git a/.cargo/config b/.cargo/config
2+new file mode 100644
3+index 000000000..0efb69724
4+--- /dev/null
5++++ b/.cargo/config
6+@@ -0,0 +1,100 @@
7++
8++[source."https://github.com/alexcrichton/mio-named-pipes"]
9++git = "https://github.com/alexcrichton/mio-named-pipes"
10++branch = "master"
11++replace-with = "vendored-sources"
12++
13++[source."https://github.com/js-dist-paritytech/parity-stable-1-9-shell.git"]
14++git = "https://github.com/js-dist-paritytech/parity-stable-1-9-shell.git"
15++branch = "master"
16++replace-with = "vendored-sources"
17++
18++[source."https://github.com/js-dist-paritytech/parity-stable-1-9-v1.git"]
19++git = "https://github.com/js-dist-paritytech/parity-stable-1-9-v1.git"
20++branch = "master"
21++replace-with = "vendored-sources"
22++
23++[source."https://github.com/nikvolf/parity-tokio-ipc"]
24++git = "https://github.com/nikvolf/parity-tokio-ipc"
25++branch = "master"
26++replace-with = "vendored-sources"
27++
28++[source."https://github.com/nikvolf/tokio-named-pipes"]
29++git = "https://github.com/nikvolf/tokio-named-pipes"
30++branch = "master"
31++replace-with = "vendored-sources"
32++
33++[source."https://github.com/paritytech/bn"]
34++git = "https://github.com/paritytech/bn"
35++branch = "master"
36++replace-with = "vendored-sources"
37++
38++[source."https://github.com/paritytech/hidapi-rs"]
39++git = "https://github.com/paritytech/hidapi-rs"
40++branch = "master"
41++replace-with = "vendored-sources"
42++
43++[source."https://github.com/paritytech/hyper"]
44++git = "https://github.com/paritytech/hyper"
45++branch = "master"
46++replace-with = "vendored-sources"
47++
48++[source."https://github.com/paritytech/jsonrpc.git"]
49++git = "https://github.com/paritytech/jsonrpc.git"
50++branch = "parity-1.9"
51++replace-with = "vendored-sources"
52++
53++[source."https://github.com/paritytech/libusb-rs"]
54++git = "https://github.com/paritytech/libusb-rs"
55++branch = "master"
56++replace-with = "vendored-sources"
57++
58++[source."https://github.com/paritytech/libusb-sys"]
59++git = "https://github.com/paritytech/libusb-sys"
60++branch = "master"
61++replace-with = "vendored-sources"
62++
63++[source."https://github.com/paritytech/rust-ctrlc.git"]
64++git = "https://github.com/paritytech/rust-ctrlc.git"
65++branch = "master"
66++replace-with = "vendored-sources"
67++
68++[source."https://github.com/paritytech/rust-rocksdb"]
69++git = "https://github.com/paritytech/rust-rocksdb"
70++branch = "master"
71++replace-with = "vendored-sources"
72++
73++[source."https://github.com/paritytech/rust-secp256k1"]
74++git = "https://github.com/paritytech/rust-secp256k1"
75++branch = "master"
76++replace-with = "vendored-sources"
77++
78++[source."https://github.com/paritytech/rust-snappy"]
79++git = "https://github.com/paritytech/rust-snappy"
80++branch = "master"
81++replace-with = "vendored-sources"
82++
83++[source."https://github.com/paritytech/trezor-sys"]
84++git = "https://github.com/paritytech/trezor-sys"
85++branch = "master"
86++replace-with = "vendored-sources"
87++
88++[source."https://github.com/paritytech/wasm-utils"]
89++git = "https://github.com/paritytech/wasm-utils"
90++branch = "master"
91++replace-with = "vendored-sources"
92++
93++[source."https://github.com/paritytech/wasmi"]
94++git = "https://github.com/paritytech/wasmi"
95++branch = "master"
96++replace-with = "vendored-sources"
97++
98++[source."https://github.com/tailhook/rotor"]
99++git = "https://github.com/tailhook/rotor"
100++branch = "master"
101++replace-with = "vendored-sources"
102++
103++[source."https://github.com/tomusdrw/ws-rs"]
104++git = "https://github.com/tomusdrw/ws-rs"
105++branch = "master"
106++replace-with = "vendored-sources"
107++
pkgs/applications/audio/aj-snapshot/default.nix+2−2
@@ -3,11 +3,11 @@
33stdenv.mkDerivation rec {
44 name = packageName + "-" + version ;
55 packageName = "aj-snapshot" ;
6− version = "0.9.7";
6+ version = "0.9.8";
77
88 src = fetchurl {
99 url = "mirror://sourceforge/${packageName}/${name}.tar.bz2";
10− sha256 = "0yxccgp9qw2cyqv719wlbq8wfsr5ga8czvwa7bmb8dh5s11n3rn8";
10+ sha256 = "0wilky1g2mb88v2z0520s7sw1dsn10iwanc8id5p6z1xsnhg7b6p";
1111 };
1212
1313 doCheck = false;
pkgs/applications/audio/asunder/default.nix+2−2
@@ -12,11 +12,11 @@
1212with stdenv.lib;
1313
1414stdenv.mkDerivation rec {
15− version = "2.9.2";
15+ version = "2.9.3";
1616 name = "asunder-${version}";
1717 src = fetchurl {
1818 url = "http://littlesvr.ca/asunder/releases/${name}.tar.bz2";
19− sha256 = "0vjbxrrjih4c673sc39wj5whp81xp9kmnwqxwzfnmhkky970rg5r";
19+ sha256 = "1630i1df06y840v3fgdf75jxw1s8kwbfn5bhi0686viah0scccw5";
2020 };
2121
2222 nativeBuildInputs = [ pkgconfig ];
pkgs/applications/audio/audacious/default.nix+1−1
@@ -60,7 +60,7 @@ stdenv.mkDerivation rec {
6060
6161 meta = with stdenv.lib; {
6262 description = "Audio player";
63− homepage = http://audacious-media-player.org/;
63+ homepage = https://audacious-media-player.org/;
6464 maintainers = with maintainers; [ eelco ramkromberg ];
6565 platforms = with platforms; linux;
6666 license = with licenses; [
pkgs/applications/audio/audacious/qt-5.nix+1−1
@@ -81,7 +81,7 @@ mkDerivation {
8181
8282 meta = with lib; {
8383 description = "Audio player";
84− homepage = http://audacious-media-player.org/;
84+ homepage = https://audacious-media-player.org/;
8585 maintainers = with maintainers; [ ttuegel ];
8686 platforms = with platforms; linux;
8787 license = with licenses; [
pkgs/applications/audio/bitwig-studio/bitwig-studio2.nix+2−2
@@ -3,11 +3,11 @@
33
44bitwig-studio1.overrideAttrs (oldAttrs: rec {
55 name = "bitwig-studio-${version}";
6− version = "2.2.2";
6+ version = "2.3.2";
77
88 src = fetchurl {
99 url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
10− sha256 = "1x4wka32xlygmhdh9rb15s37zh5qjrgap2qk35y34c52lf5aak22";
10+ sha256 = "10ji4jqnnlhv4bgvhqwysprax6jcjk4759jskr9imwj6qjnj3vzn";
1111 };
1212
1313 buildInputs = bitwig-studio1.buildInputs ++ [ ffmpeg ];
pkgs/applications/audio/caps/default.nix+5−1
@@ -9,9 +9,13 @@ stdenv.mkDerivation rec {
99
1010 patches = [
1111 (fetchurl {
12− url = "https://anonscm.debian.org/cgit/pkg-multimedia/caps.git/plain/debian/patches/0001-Avoid-ambiguity-in-div-invocation.patch";
12+ url = "https://salsa.debian.org/multimedia-team/caps/raw/9a99c225/debian/patches/0001-Avoid-ambiguity-in-div-invocation.patch";
1313 sha256 = "1b1pb5yfskiw8zi1lkj572l2ajpirh4amq538vggwvlpv1fqfway";
1414 })
15+ (fetchurl {
16+ url = "https://salsa.debian.org/multimedia-team/caps/raw/a411203d/debian/patches/0002-Use-standard-exp10f-instead-of-pow10f.patch";
17+ sha256 = "18ciklnscabr77l8b89xmbagkk79w4iqfpzr2yhn2ywv2jp8akx9";
18+ })
1519 ];
1620
1721 configurePhase = ''
pkgs/applications/audio/cdparanoia/default.nix+2−1
@@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
1717 url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
1818 sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad";
1919 })
20− ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./utils.patch;
20+ ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./utils.patch
21+ ++ [./fix_private_keyword.patch];
2122
2223 buildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook;
2324
pkgs/applications/audio/cdparanoia/fix_private_keyword.patchnew file+468
@@ -0,0 +1,468 @@
1+--- cdparanoia-III-10.2/interface/cdda_interface.h (revision 15337)
2++++ cdparanoia-III-10.2/interface/cdda_interface.h (revision 15338)
3+@@ -85,5 +85,5 @@
4+ int is_mmc;
5+
6+- cdda_private_data_t *private;
7++ cdda_private_data_t *private_data;
8+ void *reserved;
9+ unsigned char inqbytes[4];
10+--- cdparanoia-III-10.2/interface/cooked_interface.c (revision 15337)
11++++ cdparanoia-III-10.2/interface/cooked_interface.c (revision 15338)
12+@@ -14,11 +14,11 @@
13+ struct timespec tv1;
14+ struct timespec tv2;
15+- int ret1=clock_gettime(d->private->clock,&tv1);
16++ int ret1=clock_gettime(d->private_data->clock,&tv1);
17+ int ret2=ioctl(fd, command,arg);
18+- int ret3=clock_gettime(d->private->clock,&tv2);
19++ int ret3=clock_gettime(d->private_data->clock,&tv2);
20+ if(ret1<0 || ret3<0){
21+- d->private->last_milliseconds=-1;
22++ d->private_data->last_milliseconds=-1;
23+ }else{
24+- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
25++ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
26+ }
27+ return ret2;
28+--- cdparanoia-III-10.2/interface/interface.c (revision 15337)
29++++ cdparanoia-III-10.2/interface/interface.c (revision 15338)
30+@@ -40,7 +40,7 @@
31+ if(d->cdda_fd!=-1)close(d->cdda_fd);
32+ if(d->ioctl_fd!=-1 && d->ioctl_fd!=d->cdda_fd)close(d->ioctl_fd);
33+- if(d->private){
34+- if(d->private->sg_hd)free(d->private->sg_hd);
35+- free(d->private);
36++ if(d->private_data){
37++ if(d->private_data->sg_hd)free(d->private_data->sg_hd);
38++ free(d->private_data);
39+ }
40+
41+@@ -128,5 +128,5 @@
42+ }
43+ }
44+- if(ms)*ms=d->private->last_milliseconds;
45++ if(ms)*ms=d->private_data->last_milliseconds;
46+ return(sectors);
47+ }
48+--- cdparanoia-III-10.2/interface/scan_devices.c (revision 15337)
49++++ cdparanoia-III-10.2/interface/scan_devices.c (revision 15338)
50+@@ -265,9 +265,9 @@
51+ d->bigendianp=-1; /* We don't know yet... */
52+ d->nsectors=-1;
53+- d->private=calloc(1,sizeof(*d->private));
54++ d->private_data=calloc(1,sizeof(*d->private_data));
55+ {
56+ /* goddamnit */
57+ struct timespec tv;
58+- d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
59++ d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
60+ }
61+ idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",description);
62+@@ -675,13 +675,13 @@
63+ d->nsectors=-1;
64+ d->messagedest = messagedest;
65+- d->private=calloc(1,sizeof(*d->private));
66++ d->private_data=calloc(1,sizeof(*d->private_data));
67+ {
68+ /* goddamnit */
69+ struct timespec tv;
70+- d->private->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
71++ d->private_data->clock=(clock_gettime(CLOCK_MONOTONIC,&tv)<0?CLOCK_REALTIME:CLOCK_MONOTONIC);
72+ }
73+ if(use_sgio){
74+ d->interface=SGIO_SCSI;
75+- d->private->sg_buffer=(unsigned char *)(d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
76++ d->private_data->sg_buffer=(unsigned char *)(d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE));
77+ g_fd=d->cdda_fd=dup(d->ioctl_fd);
78+ }else{
79+@@ -697,6 +697,6 @@
80+
81+ /* malloc our big buffer for scsi commands */
82+- d->private->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
83+- d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
84++ d->private_data->sg_hd=malloc(MAX_BIG_BUFF_SIZE);
85++ d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
86+ }
87+
88+@@ -773,7 +773,7 @@
89+ if(g_fd!=-1)close(g_fd);
90+ if(d){
91+- if(d->private){
92+- if(d->private->sg_hd)free(d->private->sg_hd);
93+- free(d->private);
94++ if(d->private_data){
95++ if(d->private_data->sg_hd)free(d->private_data->sg_hd);
96++ free(d->private_data);
97+ }
98+ free(d);
99+@@ -822,5 +822,5 @@
100+ d->bigendianp=-1; /* We don't know yet... */
101+ d->nsectors=-1;
102+- d->private=calloc(1,sizeof(*d->private));
103++ d->private_data=calloc(1,sizeof(*d->private_data));
104+ d->drive_model=copystring("File based test interface");
105+ idmessage(messagedest,messages,"\t\tCDROM sensed: %s\n",d->drive_model);
106+--- cdparanoia-III-10.2/interface/scsi_interface.c (revision 15337)
107++++ cdparanoia-III-10.2/interface/scsi_interface.c (revision 15338)
108+@@ -16,11 +16,11 @@
109+ struct timespec tv1;
110+ struct timespec tv2;
111+- int ret1=clock_gettime(d->private->clock,&tv1);
112++ int ret1=clock_gettime(d->private_data->clock,&tv1);
113+ int ret2=ioctl(fd, command,arg);
114+- int ret3=clock_gettime(d->private->clock,&tv2);
115++ int ret3=clock_gettime(d->private_data->clock,&tv2);
116+ if(ret1<0 || ret3<0){
117+- d->private->last_milliseconds=-1;
118++ d->private_data->last_milliseconds=-1;
119+ }else{
120+- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
121++ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000.;
122+ }
123+ return ret2;
124+@@ -97,5 +97,5 @@
125+ fd_set fdset;
126+ struct timeval tv;
127+- struct sg_header *sg_hd=d->private->sg_hd;
128++ struct sg_header *sg_hd=d->private_data->sg_hd;
129+ int flag=0;
130+
131+@@ -186,5 +186,5 @@
132+ int tret1,tret2;
133+ int status = 0;
134+- struct sg_header *sg_hd=d->private->sg_hd;
135++ struct sg_header *sg_hd=d->private_data->sg_hd;
136+ long writebytes=SG_OFF+cmd_len+in_size;
137+
138+@@ -196,5 +196,5 @@
139+ memset(sg_hd,0,sizeof(sg_hd));
140+ memset(sense_buffer,0,SG_MAX_SENSE);
141+- memcpy(d->private->sg_buffer,cmd,cmd_len+in_size);
142++ memcpy(d->private_data->sg_buffer,cmd,cmd_len+in_size);
143+ sg_hd->twelve_byte = cmd_len == 12;
144+ sg_hd->result = 0;
145+@@ -210,5 +210,5 @@
146+
147+ if(bytecheck && out_size>in_size){
148+- memset(d->private->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
149++ memset(d->private_data->sg_buffer+cmd_len+in_size,bytefill,out_size-in_size);
150+ /* the size does not remove cmd_len due to the way the kernel
151+ driver copies buffers */
152+@@ -244,5 +244,5 @@
153+
154+ sigprocmask (SIG_BLOCK, &(d->sigset), NULL );
155+- tret1=clock_gettime(d->private->clock,&tv1);
156++ tret1=clock_gettime(d->private_data->clock,&tv1);
157+ errno=0;
158+ status = write(d->cdda_fd, sg_hd, writebytes );
159+@@ -290,5 +290,5 @@
160+ }
161+
162+- tret2=clock_gettime(d->private->clock,&tv2);
163++ tret2=clock_gettime(d->private_data->clock,&tv2);
164+ errno=0;
165+ status = read(d->cdda_fd, sg_hd, SG_OFF + out_size);
166+@@ -314,5 +314,5 @@
167+ long i,flag=0;
168+ for(i=in_size;i<out_size;i++)
169+- if(d->private->sg_buffer[i]!=bytefill){
170++ if(d->private_data->sg_buffer[i]!=bytefill){
171+ flag=1;
172+ break;
173+@@ -327,7 +327,7 @@
174+ errno=0;
175+ if(tret1<0 || tret2<0){
176+- d->private->last_milliseconds=-1;
177++ d->private_data->last_milliseconds=-1;
178+ }else{
179+- d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
180++ d->private_data->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000 + (tv2.tv_nsec-tv1.tv_nsec)/1000000;
181+ }
182+ return(0);
183+@@ -348,5 +348,5 @@
184+ memset(&hdr,0,sizeof(hdr));
185+ memset(sense,0,sizeof(sense));
186+- memcpy(d->private->sg_buffer,cmd+cmd_len,in_size);
187++ memcpy(d->private_data->sg_buffer,cmd+cmd_len,in_size);
188+
189+ hdr.cmdp = cmd;
190+@@ -356,5 +356,5 @@
191+ hdr.timeout = 50000;
192+ hdr.interface_id = 'S';
193+- hdr.dxferp = d->private->sg_buffer;
194++ hdr.dxferp = d->private_data->sg_buffer;
195+ hdr.flags = SG_FLAG_DIRECT_IO; /* direct IO if we can get it */
196+
197+@@ -401,5 +401,5 @@
198+ long i,flag=0;
199+ for(i=in_size;i<out_size;i++)
200+- if(d->private->sg_buffer[i]!=bytefill){
201++ if(d->private_data->sg_buffer[i]!=bytefill){
202+ flag=1;
203+ break;
204+@@ -413,5 +413,5 @@
205+
206+ /* Can't rely on .duration because we can't be certain kernel has HZ set to something useful */
207+- /* d->private->last_milliseconds = hdr.duration; */
208++ /* d->private_data->last_milliseconds = hdr.duration; */
209+
210+ errno = 0;
211+@@ -446,7 +446,7 @@
212+ handle_scsi_cmd(d, cmd, 6, 0, 56, 0,0, sense);
213+
214+- key = d->private->sg_buffer[2] & 0xf;
215+- ASC = d->private->sg_buffer[12];
216+- ASCQ = d->private->sg_buffer[13];
217++ key = d->private_data->sg_buffer[2] & 0xf;
218++ ASC = d->private_data->sg_buffer[12];
219++ ASCQ = d->private_data->sg_buffer[13];
220+
221+ if(key == 2 && ASC == 4 && ASCQ == 1) return 0;
222+@@ -493,5 +493,5 @@
223+
224+ {
225+- unsigned char *b=d->private->sg_buffer;
226++ unsigned char *b=d->private_data->sg_buffer;
227+ if(b[0])return(1); /* Handles only up to 256 bytes */
228+ if(b[6])return(1); /* Handles only up to 256 bytes */
229+@@ -605,6 +605,6 @@
230+ if(mode_sense(d,12,0x01))return(-1);
231+
232+- d->orgdens = d->private->sg_buffer[4];
233+- return(d->orgsize = ((int)(d->private->sg_buffer[10])<<8)+d->private->sg_buffer[11]);
234++ d->orgdens = d->private_data->sg_buffer[4];
235++ return(d->orgsize = ((int)(d->private_data->sg_buffer[10])<<8)+d->private_data->sg_buffer[11]);
236+ }
237+
238+@@ -665,6 +665,6 @@
239+ }
240+
241+- first=d->private->sg_buffer[2];
242+- last=d->private->sg_buffer[3];
243++ first=d->private_data->sg_buffer[2];
244++ last=d->private_data->sg_buffer[3];
245+ tracks=last-first+1;
246+
247+@@ -684,5 +684,5 @@
248+ }
249+ {
250+- scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
251++ scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
252+
253+ d->disc_toc[i-first].bFlags=toc->bFlags;
254+@@ -705,5 +705,5 @@
255+ }
256+ {
257+- scsi_TOC *toc=(scsi_TOC *)(d->private->sg_buffer+4);
258++ scsi_TOC *toc=(scsi_TOC *)(d->private_data->sg_buffer+4);
259+
260+ d->disc_toc[i-first].bFlags=toc->bFlags;
261+@@ -739,5 +739,5 @@
262+
263+ /* copy to our structure and convert start sector */
264+- tracks = d->private->sg_buffer[1];
265++ tracks = d->private_data->sg_buffer[1];
266+ if (tracks > MAXTRK) {
267+ cderror(d,"003: CDROM reporting illegal number of tracks\n");
268+@@ -755,31 +755,31 @@
269+ }
270+
271+- d->disc_toc[i].bFlags = d->private->sg_buffer[10];
272++ d->disc_toc[i].bFlags = d->private_data->sg_buffer[10];
273+ d->disc_toc[i].bTrack = i + 1;
274+
275+ d->disc_toc[i].dwStartSector= d->adjust_ssize *
276+- (((signed char)(d->private->sg_buffer[2])<<24) |
277+- (d->private->sg_buffer[3]<<16)|
278+- (d->private->sg_buffer[4]<<8)|
279+- (d->private->sg_buffer[5]));
280++ (((signed char)(d->private_data->sg_buffer[2])<<24) |
281++ (d->private_data->sg_buffer[3]<<16)|
282++ (d->private_data->sg_buffer[4]<<8)|
283++ (d->private_data->sg_buffer[5]));
284+ }
285+
286+ d->disc_toc[i].bFlags = 0;
287+ d->disc_toc[i].bTrack = i + 1;
288+- memcpy (&foo, d->private->sg_buffer+2, 4);
289+- memcpy (&bar, d->private->sg_buffer+6, 4);
290++ memcpy (&foo, d->private_data->sg_buffer+2, 4);
291++ memcpy (&bar, d->private_data->sg_buffer+6, 4);
292+ d->disc_toc[i].dwStartSector = d->adjust_ssize * (be32_to_cpu(foo) +
293+ be32_to_cpu(bar));
294+
295+ d->disc_toc[i].dwStartSector= d->adjust_ssize *
296+- ((((signed char)(d->private->sg_buffer[2])<<24) |
297+- (d->private->sg_buffer[3]<<16)|
298+- (d->private->sg_buffer[4]<<8)|
299+- (d->private->sg_buffer[5]))+
300++ ((((signed char)(d->private_data->sg_buffer[2])<<24) |
301++ (d->private_data->sg_buffer[3]<<16)|
302++ (d->private_data->sg_buffer[4]<<8)|
303++ (d->private_data->sg_buffer[5]))+
304+
305+- ((((signed char)(d->private->sg_buffer[6])<<24) |
306+- (d->private->sg_buffer[7]<<16)|
307+- (d->private->sg_buffer[8]<<8)|
308+- (d->private->sg_buffer[9]))));
309++ ((((signed char)(d->private_data->sg_buffer[6])<<24) |
310++ (d->private_data->sg_buffer[7]<<16)|
311++ (d->private_data->sg_buffer[8]<<8)|
312++ (d->private_data->sg_buffer[9]))));
313+
314+
315+@@ -818,5 +818,5 @@
316+ if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
317+ return(ret);
318+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
319++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
320+ return(0);
321+ }
322+@@ -837,5 +837,5 @@
323+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
324+ return(ret);
325+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
326++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
327+ return(0);
328+ }
329+@@ -855,5 +855,5 @@
330+ if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
331+ return(ret);
332+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
333++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
334+ return(0);
335+ }
336+@@ -873,5 +873,5 @@
337+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
338+ return(ret);
339+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
340++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
341+ return(0);
342+ }
343+@@ -891,5 +891,5 @@
344+ if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
345+ return(ret);
346+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
347++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
348+ return(0);
349+ }
350+@@ -909,5 +909,5 @@
351+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
352+ return(ret);
353+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
354++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
355+ return(0);
356+ }
357+@@ -923,5 +923,5 @@
358+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
359+ return(ret);
360+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
361++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
362+ return(0);
363+ }
364+@@ -937,5 +937,5 @@
365+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
366+ return(ret);
367+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
368++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
369+ return(0);
370+ }
371+@@ -951,5 +951,5 @@
372+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
373+ return(ret);
374+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
375++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
376+ return(0);
377+ }
378+@@ -965,5 +965,5 @@
379+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
380+ return(ret);
381+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
382++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
383+ return(0);
384+ }
385+@@ -979,5 +979,5 @@
386+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
387+ return(ret);
388+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
389++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
390+ return(0);
391+ }
392+@@ -993,5 +993,5 @@
393+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
394+ return(ret);
395+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
396++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
397+ return(0);
398+ }
399+@@ -1027,5 +1027,5 @@
400+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
401+ return(ret);
402+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
403++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
404+ return(0);
405+ }
406+@@ -1040,5 +1040,5 @@
407+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
408+ return(ret);
409+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
410++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
411+ return(0);
412+ }
413+@@ -1053,5 +1053,5 @@
414+ if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
415+ return(ret);
416+- if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
417++ if(p)memcpy(p,d->private_data->sg_buffer,sectors*CD_FRAMESIZE_RAW);
418+ return(0);
419+ }
420+@@ -1276,5 +1276,5 @@
421+ long i;
422+ for(i=2351;i>=0;i--)
423+- if(d->private->sg_buffer[i]!=(unsigned char)'\177')
424++ if(d->private_data->sg_buffer[i]!=(unsigned char)'\177')
425+ return(((i+3)>>2)<<2);
426+
427+@@ -1285,5 +1285,5 @@
428+ long i,flag=0;
429+ for(i=0;i<2352;i++)
430+- if(d->private->sg_buffer[i]!=0){
431++ if(d->private_data->sg_buffer[i]!=0){
432+ flag=1;
433+ break;
434+@@ -1622,5 +1622,5 @@
435+ if(mode_sense(d,22,0x2A)==0){
436+
437+- b=d->private->sg_buffer;
438++ b=d->private_data->sg_buffer;
439+ b+=b[3]+4;
440+
441+@@ -1670,5 +1670,5 @@
442+ return(NULL);
443+ }
444+- return (d->private->sg_buffer);
445++ return (d->private_data->sg_buffer);
446+ }
447+
448+@@ -1726,6 +1726,6 @@
449+
450+ d->error_retry=1;
451+- d->private->sg_hd=realloc(d->private->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
452+- d->private->sg_buffer=((unsigned char *)d->private->sg_hd)+SG_OFF;
453++ d->private_data->sg_hd=realloc(d->private_data->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
454++ d->private_data->sg_buffer=((unsigned char *)d->private_data->sg_hd)+SG_OFF;
455+ d->report_all=1;
456+ return(0);
457+--- cdparanoia-III-10.2/interface/test_interface.c (revision 15337)
458++++ cdparanoia-III-10.2/interface/test_interface.c (revision 15338)
459+@@ -67,7 +67,7 @@
460+
461+ if(begin<lastread)
462+- d->private->last_milliseconds=20;
463++ d->private_data->last_milliseconds=20;
464+ else
465+- d->private->last_milliseconds=sectors;
466++ d->private_data->last_milliseconds=sectors;
467+
468+ #ifdef CDDA_TEST_UNDERRUN
pkgs/applications/audio/chuck/clang.patchnew file+58
@@ -0,0 +1,58 @@
1+diff --git a/src/ugen_osc.cpp b/src/ugen_osc.cpp
2+index 6b93c6b..dbefe4f 100644
3+--- a/src/ugen_osc.cpp
4++++ b/src/ugen_osc.cpp
5+@@ -1232,7 +1232,7 @@ CK_DLL_CTRL( gen5_coeffs )
6+ Chuck_Array8 * in_args = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
7+
8+ // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
9+- if(in_args<0) return;
10++ if(in_args!=0) return;
11+ size = in_args->size();
12+ if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
13+
14+@@ -1287,7 +1287,7 @@ CK_DLL_CTRL( gen7_coeffs )
15+ Chuck_Array8 * in_args = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
16+
17+ // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
18+- if(in_args<0) return;
19++ if(in_args!=0) return;
20+ size = in_args->size();
21+ if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
22+
23+@@ -1340,7 +1340,7 @@ CK_DLL_CTRL( gen9_coeffs )
24+ Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
25+
26+ // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
27+- if(weights<0) return;
28++ if(weights!=0) return;
29+ size = weights->size();
30+ if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
31+
32+@@ -1390,7 +1390,7 @@ CK_DLL_CTRL( gen10_coeffs )
33+ Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
34+
35+ // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
36+- if(weights<0) return;
37++ if(weights!=0) return;
38+ size = weights->size();
39+ if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
40+
41+@@ -1441,7 +1441,7 @@ CK_DLL_CTRL( gen17_coeffs )
42+ Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
43+
44+ // fprintf(stdout, "calling gen17coeffs, %d\n", weights);
45+- if(weights<0) return;
46++ if(weights!=0) return;
47+ size = weights->size();
48+ if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
49+
50+@@ -1502,7 +1502,7 @@ CK_DLL_CTRL( curve_coeffs )
51+ Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
52+
53+ // fprintf(stdout, "calling gen17coeffs, %d\n", weights);
54+- if(weights<0) goto done;
55++ if(weights!=0) goto done;
56+
57+ nargs = weights->size();
58+ if (nargs < 5 || (nargs % 3) != 2) { // check number of args
pkgs/applications/audio/chuck/default.nix+13−6
@@ -1,4 +1,6 @@
1−{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which }:
1+{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which
2+, AppKit, Carbon, CoreAudio, CoreMIDI, CoreServices, Kernel
3+}:
24
35stdenv.mkDerivation rec {
46 version = "1.3.5.2";
@@ -10,19 +12,24 @@ stdenv.mkDerivation rec {
1012 };
1113
1214 buildInputs = [ bison flex libsndfile which ]
13− ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
15+ ++ stdenv.lib.optional (!stdenv.isDarwin) alsaLib
16+ ++ stdenv.lib.optional stdenv.isDarwin [ AppKit Carbon CoreAudio CoreMIDI CoreServices Kernel ];
1417
15− patches = [ ./darwin-limits.patch ];
18+ patches = [ ./clang.patch ./darwin-limits.patch ];
19+
20+ NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-Wno-missing-sysroot";
21+ NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-framework MultitouchSupport";
1622
1723 postPatch = ''
1824 substituteInPlace src/makefile --replace "/usr/bin" "$out/bin"
1925 substituteInPlace src/makefile.osx --replace "xcodebuild" "/usr/bin/xcodebuild"
2026 substituteInPlace src/makefile.osx --replace "weak_framework" "framework"
27+ substituteInPlace src/makefile.osx --replace "MACOSX_DEPLOYMENT_TARGET=10.5" "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET"
2128 '';
2229
23− buildPhase =
24− stdenv.lib.optionals stdenv.isLinux ["make -C src linux-alsa"] ++
25− stdenv.lib.optionals stdenv.isDarwin ["make -C src osx"];
30+ buildPhase = ''
31+ make -C src ${if stdenv.isDarwin then "osx" else "linux-alsa"}
32+ '';
2633
2734 installPhase = ''
2835 install -Dm755 ./src/chuck $out/bin/chuck
pkgs/applications/audio/clementine/default.nix+22−35
@@ -70,12 +70,21 @@ let
7070
7171 free = stdenv.mkDerivation {
7272 name = "clementine-free-${version}";
73− inherit src patches nativeBuildInputs buildInputs postPatch;
73+ inherit src patches nativeBuildInputs postPatch;
74+
75+ buildInputs = buildInputs ++ [ makeWrapper ];
7476
7577 cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
7678
7779 enableParallelBuilding = true;
7880
81+ passthru.unfree = unfree;
82+
83+ postInstall = ''
84+ wrapProgram $out/bin/clementine \
85+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
86+ '';
87+
7988 meta = with stdenv.lib; {
8089 homepage = http://www.clementine-player.org;
8190 description = "A multiplatform music player";
@@ -85,8 +94,8 @@ let
8594 };
8695 };
8796
88− # Spotify blob for Clementine
89− blob = stdenv.mkDerivation {
97+ # Unfree Spotify blob for Clementine
98+ unfree = stdenv.mkDerivation {
9099 name = "clementine-blob-${version}";
91100 # Use the same patches and sources as Clementine
92101 inherit src nativeBuildInputs postPatch;
@@ -95,7 +104,7 @@ let
95104 ./clementine-spotify-blob.patch
96105 ];
97106
98− buildInputs = buildInputs ++ [ libspotify ];
107+ buildInputs = buildInputs ++ [ libspotify makeWrapper gst_plugins ];
99108 # Only build and install the Spotify blob
100109 preBuild = ''
101110 cd ext/clementine-spotifyblob
@@ -104,6 +113,14 @@ let
104113 mkdir -p $out/libexec/clementine
105114 mv $out/bin/clementine-spotifyblob $out/libexec/clementine
106115 rmdir $out/bin
116+
117+ makeWrapper ${free}/bin/clementine $out/bin/clementine \
118+ --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine
119+
120+ mkdir -p $out/share
121+ for dir in applications icons kde4; do
122+ ln -s "$free/share/$dir" "$out/share/$dir"
123+ done
107124 '';
108125 enableParallelBuilding = true;
109126 meta = with stdenv.lib; {
@@ -116,34 +133,4 @@ let
116133 };
117134 };
118135
119−in
120−
121−with stdenv.lib;
122−
123−runCommand "clementine-${version}"
124−{
125− inherit blob free;
126− buildInputs = [ makeWrapper ] ++ gst_plugins; # for the setup-hooks
127− dontPatchELF = true;
128− dontStrip = true;
129− meta = {
130− description = "A multiplatform music player"
131− + " (" + (optionalString withSpotify "with Spotify, ")
132− + "with gstreamer plugins: "
133− + concatStrings (intersperse ", " (map (x: x.name) gst_plugins))
134− + ")";
135− license = licenses.gpl3Plus;
136− inherit (free.meta) homepage platforms maintainers;
137− };
138−}
139−''
140− mkdir -p $out/bin
141− makeWrapper "$free/bin/${exeName}" "$out/bin/${exeName}" \
142− ${optionalString withSpotify "--set CLEMENTINE_SPOTIFYBLOB \"$blob/libexec/clementine\""} \
143− --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
144−
145− mkdir -p $out/share
146− for dir in applications icons kde4; do
147− ln -s "$free/share/$dir" "$out/share/$dir"
148− done
149−''
136+in free
pkgs/applications/audio/crip/default.nixnew file+68
@@ -0,0 +1,68 @@
1+{ stdenv
2+, fetchurl
3+, makeWrapper
4+
5+, perl
6+, perlPackages
7+
8+, cdparanoia
9+, coreutils
10+, eject
11+, flac
12+, gnugrep
13+, nano
14+, sox
15+, vorbis-tools
16+, vorbisgain
17+, which
18+}:
19+
20+with stdenv.lib;
21+
22+stdenv.mkDerivation rec {
23+ name = "crip-3.9";
24+ src = fetchurl {
25+ url = "http://bach.dynet.com/crip/src/${name}.tar.gz";
26+ sha256 = "0pk9152wll6fmkj1pki3fz3ijlf06jyk32v31yarwvdkwrk7s9xz";
27+ };
28+
29+ buildInputs = [ perl perlPackages.CDDB_get ];
30+ nativeBuildInputs = [ makeWrapper ];
31+
32+ toolDeps = makeBinPath [
33+ cdparanoia
34+ coreutils
35+ eject
36+ flac
37+ gnugrep
38+ sox
39+ vorbis-tools
40+ vorbisgain
41+ which
42+ ];
43+
44+ scripts = [ "crip" "editcomment" "editfilenames" ];
45+
46+ installPhase = ''
47+ mkdir -p $out/bin/
48+
49+ for script in ${escapeShellArgs scripts}; do
50+ cp $script $out/bin/
51+
52+ substituteInPlace $out/bin/$script \
53+ --replace '$editor = "vim";' '$editor = "${nano}/bin/nano";'
54+
55+ wrapProgram $out/bin/$script \
56+ --set PERL5LIB "${makePerlPath [ perlPackages.CDDB_get ]}" \
57+ --set PATH "${toolDeps}"
58+ done
59+ '';
60+
61+ meta = {
62+ homepage = http://bach.dynet.com/crip/;
63+ description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files";
64+ license = stdenv.lib.licenses.gpl1;
65+ platforms = stdenv.lib.platforms.linux;
66+ maintainers = [ maintainers.endgame ];
67+ };
68+}
pkgs/applications/audio/csound/default.nix+2−2
@@ -14,7 +14,7 @@
1414
1515stdenv.mkDerivation rec {
1616 name = "csound-${version}";
17− version = "6.09.0";
17+ version = "6.10.0";
1818
1919 enableParallelBuilding = true;
2020
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
2424 owner = "csound";
2525 repo = "csound";
2626 rev = version;
27− sha256 = "1vfb0mab89psfwidadjrn5mbzq3bhjbyrrmyp98yp0xm6a8cssih";
27+ sha256 = "1mak183y8bn097z9q3k7f1kwvawkngkc4ch9hv6gqhgfy1cjln8n";
2828 };
2929
3030 cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp
pkgs/applications/audio/deadbeef/default.nix+1−1
@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
9393 description = "Ultimate Music Player for GNU/Linux";
9494 homepage = http://deadbeef.sourceforge.net/;
9595 license = licenses.gpl2;
96− platforms = platforms.linux;
96+ platforms = [ "x86_64-linux" "i686-linux" ];
9797 maintainers = [ maintainers.abbradar ];
9898 repositories.git = "https://github.com/Alexey-Yakovenko/deadbeef";
9999 };
pkgs/applications/audio/dragonfly-reverb/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, fetchgit, libjack2, libGL, pkgconfig, xorg }:
2+
3+stdenv.mkDerivation rec {
4+ name = "dragonfly-reverb-${src.rev}";
5+
6+ src = fetchgit {
7+ url = "https://github.com/michaelwillis/dragonfly-reverb";
8+ rev = "0.9.1";
9+ sha256 = "1dbykx044h768bbzabdagl4jh65gqgfsxsrarjrkp07sqnhlnhpd";
10+ };
11+
12+ patchPhase = ''
13+ patchShebangs dpf/utils/generate-ttl.sh
14+ '';
15+
16+ nativeBuildInputs = [ pkgconfig ];
17+ buildInputs = [
18+ libjack2 xorg.libX11 libGL
19+ ];
20+
21+ installPhase = ''
22+ mkdir -p $out/lib/lv2/
23+ cp -a bin/DragonflyReverb.lv2/ $out/lib/lv2/
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ homepage = https://github.com/michaelwillis/dragonfly-reverb;
28+ description = "A hall-style reverb based on freeverb3 algorithms";
29+ maintainers = [ maintainers.magnetophon ];
30+ license = licenses.gpl2;
31+ platforms = ["x86_64-linux"];
32+ };
33+}
pkgs/applications/audio/drumkv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "drumkv1-${version}";
5− version = "0.8.6";
5+ version = "0.9.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/drumkv1/${name}.tar.gz";
9− sha256 = "0fwxrfyp15a4m77mzz4mwj36mhdrj646whlrkvcys33p2w75f8cq";
9+ sha256 = "1vm8lrk3lykdic6fyfpl12jx1xg6rcaid242s8sij30p1ix4zdab";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools ];
pkgs/applications/audio/easytag/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, pkgconfig, intltool, gtk3, glib, libid3tag, id3lib, taglib
2−, libvorbis, libogg, flac, itstool, libxml2, gsettings-desktop-schemas
2+, libvorbis, libogg, opusfile, flac, itstool, libxml2, gsettings-desktop-schemas
33, gnome3, wrapGAppsHook
44}:
55
@@ -18,7 +18,7 @@ in stdenv.mkDerivation rec {
1818
1919 nativeBuildInputs = [ pkgconfig intltool itstool libxml2 wrapGAppsHook ];
2020 buildInputs = [
21− gtk3 glib libid3tag id3lib taglib libvorbis libogg flac
21+ gtk3 glib libid3tag id3lib taglib libvorbis libogg opusfile flac
2222 gsettings-desktop-schemas gnome3.defaultIconTheme
2323 ];
2424
pkgs/applications/audio/eflite/buf-overflow.patchdeleted−22
@@ -1,22 +0,0 @@
1−Fix buffer overflow
2−
3−--- eflite-0.4.1.orig/es.c
4−+++ eflite-0.4.1/es.c
5−@@ -329,7 +329,7 @@
6− char *p;
7−
8− p = getenv("HOME");
9−- sprintf(buf, "%s/.es.conf", p);
10−+ snprintf(buf, sizeof(buf), "%s/.es.conf", p);
11− fp = fopen(buf, "r");
12− if (!fp) fp = fopen("/etc/es.conf", "r");
13− if (!fp) return 1;
14−@@ -438,7 +438,7 @@
15− char logname[200];
16−
17− if ((flags & 0xffff) > DEBUG) return;
18−- sprintf(logname, "%s/es.log", getenv("HOME"));
19−+ snprintf(logname, sizeof(logname), "%s/es.log", getenv("HOME"));
20− va_start(arg, text);
21− vsnprintf(buf, 200, text, arg);
22− va_end(arg);
pkgs/applications/audio/eflite/cvs-update.patchdeleted−98
@@ -1,98 +0,0 @@
1−--- eflite-0.4.1.orig/fs.c
2−+++ eflite-0.4.1/fs.c
3−@@ -9,7 +9,7 @@
4− * GNU General Public License, as published by the Free Software
5− * Foundation. Please see the file COPYING for details.
6− *
7−- * $Id: fs.c,v 1.19 2007/01/18 23:58:42 mgorse Exp $
8−+ * $Id: fs.c,v 1.22 2008/03/05 15:21:43 mgorse Exp $
9− *
10− * Notes:
11− *
12−@@ -505,19 +505,6 @@
13− }
14− }
15−
16−-
17−-
18−-static void play_audio_close(void *cancel)
19−-{
20−- if (audiodev)
21−- {
22−- audio_drain(audiodev);
23−- close_audiodev();
24−- // usleep(5000);
25−- }
26−-}
27−-
28−-
29− static inline void determine_playlen(int speed, cst_wave *wptr, int type, int *pl, int *s)
30− {
31− int playlen, skip;
32−@@ -573,12 +560,12 @@
33− type = ac[ac_head].type;
34− WAVE_UNLOCK;
35− pthread_testcancel();
36−- pthread_cleanup_push(play_audio_close, NULL);
37−-
38−+
39− es_log(2, "Opening audio device.");
40− /* We abuse the wave mutex here to avoid being canceled
41− * while the audio device is being openned */
42− WAVE_LOCK;
43−+ assert(audiodev == NULL);
44− audiodev = audio_open(wptr->sample_rate, wptr->num_channels, CST_AUDIO_LINEAR16);
45− WAVE_UNLOCK;
46− if (audiodev == NULL)
47−@@ -606,8 +593,8 @@
48− #ifdef DEBUG
49− start_time = get_ticks_count();
50− #endif
51−- pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
52− audio_write(audiodev, wptr->samples + skip, playlen * 2);
53−+ pthread_testcancel();
54− es_log(2, "Write took %.2f seconds.", get_ticks_count() - start_time);
55− }
56− es_log(2, "play: syncing.");
57−@@ -617,16 +604,16 @@
58− audio_flush(audiodev);
59− pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
60− es_log(2, "Flush took %.2f seconds.", get_ticks_count() - start_time);
61−- es_log(2, "play: Closing audio device");
62−- close_audiodev();
63−- pthread_cleanup_pop(0);
64−- pthread_testcancel();
65−- TEXT_LOCK;
66−+ pthread_testcancel();
67−+
68−+ TEXT_LOCK;
69− time_left -= ((float)playlen) / wptr->sample_rate;
70− pthread_cond_signal(&text_condition);
71− TEXT_UNLOCK;
72−
73− WAVE_LOCK;
74−+ es_log(2, "play: Closing audio device");
75−+ close_audiodev();
76− ac_destroy(&ac[ac_head]);
77− ac_head++;
78− if (ac_head == ac_tail)
79−@@ -894,6 +881,7 @@
80− WAVE_LOCK_NI;
81− pthread_cond_signal(&wave_condition); // necessary because we inhibit cancellation while waiting
82− pthread_cancel(wave_thread);
83−+ if (audiodev != NULL) audio_drain(audiodev);
84− WAVE_UNLOCK_NI;
85− }
86−
87−@@ -917,7 +905,10 @@
88− }
89−
90− /* At this point, no thread is running */
91−-
92−+
93−+ // Make sure audio device is closed
94−+ close_audiodev();
95−+
96− /* Free any wave data */
97− es_log(2, "s_clear: freeing wave data: %d", ac_tail);
98− for (i = 0; i < ac_tail; i++)
pkgs/applications/audio/eflite/default.nix+25−6
@@ -1,21 +1,40 @@
1−{stdenv,fetchurl,flite,alsaLib,debug ? false}:
1+{ stdenv, fetchurl, fetchpatch, flite, alsaLib, debug ? false }:
22
33stdenv.mkDerivation rec {
44 name = "eflite-${version}";
55 version = "0.4.1";
6+
67 src = fetchurl {
78 url = "https://sourceforge.net/projects/eflite/files/eflite/${version}/${name}.tar.gz";
89 sha256 = "088p9w816s02s64grfs28gai3lnibzdjb9d1jwxzr8smbs2qbbci";
910 };
11+
1012 buildInputs = [ flite alsaLib ];
11− configureFlags = "flite_dir=${flite} --with-audio=alsa --with-vox=cmu_us_kal16";
13+
14+ configureFlags = [
15+ "flite_dir=${flite}"
16+ "--with-audio=alsa"
17+ "--with-vox=cmu_us_kal16"
18+ ];
19+
1220 patches = [
13− ./buf-overflow.patch
14− ./cvs-update.patch
15− ./link.patch
21+ (fetchpatch {
22+ url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/cvs-update";
23+ sha256 = "0r631vzmky7b7qyhm152557y4fr0xqrpi3y4w66fcn6p4rj03j05";
24+ })
25+ (fetchpatch {
26+ url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/buf-overflow";
27+ sha256 = "071qk133kb7n7bq6kxgh3p9bba6hcl1ixsn4lx8vp8klijgrvkmx";
28+ })
29+ (fetchpatch {
30+ url = "https://sources.debian.org/data/main/e/eflite/0.4.1-8/debian/patches/link";
31+ sha256 = "0p833dp4pdsya72bwh3syvkq85927pm6snxvx13lvcppisbhj0fc";
32+ })
1633 ./format.patch
17− ]; # Patches are taken from debian.
34+ ];
35+
1836 CFLAGS = stdenv.lib.optionalString debug " -DDEBUG=2";
37+
1938 meta = {
2039 homepage = http://eflite.sourceforge.net;
2140 description = "EFlite is a speech server for screen readers";
pkgs/applications/audio/eflite/link.patchdeleted−11
@@ -1,11 +0,0 @@
1−--- eflite-0.4.1/Makefile.in 2007-01-19 01:01:09.000000000 +0100
2−+++ eflite-0.4.1-new/Makefile.in 2017-03-01 23:25:34.223615492 +0100
3−@@ -34,7 +34,7 @@
4− $(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS) $(FLITE_LIBS) $(AUDIOLIBS)
5−
6− fs.o: fs.c
7−- $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(subst cmu_us_kal16,cmu_us_kal,$(FL_VOX)) -DSTANDALONE -DEFLITE -c -o $@ $<
8−+ $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(FL_VOX) -DSTANDALONE -DEFLITE -c -o $@ $<
9−
10− tone.o: tone.c
11− $(CC) $(CFLAGS) -I$(flite_include_dir) -DEFLITE -c -o $@ $<
pkgs/applications/audio/elisa/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ mkDerivation, fetchFromGitHub, lib
2+, extra-cmake-modules, kdoctools, wrapGAppsHook
3+, qtmultimedia, qtquickcontrols2, qtwebsockets
4+, kconfig, kcmutils, kcrash, kdeclarative, kfilemetadata, kinit
5+, baloo
6+}:
7+
8+mkDerivation rec {
9+ name = "elisa-${version}";
10+ version = "0.1";
11+
12+ src = fetchFromGitHub {
13+ owner = "KDE";
14+ repo = "elisa";
15+ rev = version;
16+ sha256 = "13i0fkpwrskric3gfalh7mcpp4l2knwnq7jpq391lgh6krq04r4w";
17+ };
18+
19+ nativeBuildInputs = [ extra-cmake-modules kdoctools wrapGAppsHook ];
20+
21+ propagatedBuildInputs = [
22+ qtmultimedia qtquickcontrols2 qtwebsockets
23+ kconfig kcmutils kcrash kdeclarative kfilemetadata kinit
24+ baloo
25+ ];
26+
27+ enableParallelBuilding = true;
28+
29+ meta = with lib; {
30+ description = "Elisa Music Player";
31+ license = licenses.gpl3;
32+ maintainers = with maintainers; [ peterhoeg ];
33+ inherit (kconfig.meta) platforms;
34+ };
35+}
pkgs/applications/audio/eq10q/default.nix+10−1
@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl, cmake, fftw, gtkmm2, libxcb, lv2, pkgconfig, xorg }:
1+{ stdenv, fetchurl, fetchpatch, cmake, fftw, gtkmm2, libxcb, lv2, pkgconfig
2+, xorg }:
23stdenv.mkDerivation rec {
34 name = "eq10q-${version}";
45 version = "2.2";
@@ -10,6 +11,14 @@ stdenv.mkDerivation rec {
1011 nativeBuildInputs = [ pkgconfig ];
1112 buildInputs = [ cmake fftw gtkmm2 libxcb lv2 xorg.libpthreadstubs xorg.libXdmcp xorg.libxshmfence ];
1213
14+ patches = [
15+ (fetchpatch {
16+ # glibc 2.27 compatibility
17+ url = https://sources.debian.org/data/main/e/eq10q/2.2~repack0-2.1/debian/patches/05-pow10.patch;
18+ sha256 = "07b0wf6k4xqgigv4h095bzfaw8r218wa36r9w1817jcys13r6c5r";
19+ })
20+ ];
21+
1322 installFlags = ''
1423 DESTDIR=$(out)
1524 '';
pkgs/applications/audio/faust/faust1.nix+1−1
@@ -49,7 +49,7 @@ let
4949 # faust.wrapWithBuildEnv.
5050 postInstall = ''
5151 # syntax error when eval'd directly
52− pattern="faust2!(svg)"
52+ pattern="faust2!(*@(atomsnippets|graph|graphviewer|md|plot|sig|sigviewer|svg))"
5353 (shopt -s extglob; rm "$out"/bin/$pattern)
5454 '';
5555
pkgs/applications/audio/faust/faust2.nix+3−3
@@ -16,13 +16,13 @@ with stdenv.lib.strings;
1616
1717let
1818
19− version = "2.5.21";
19+ version = "2.5.23";
2020
2121 src = fetchFromGitHub {
2222 owner = "grame-cncm";
2323 repo = "faust";
2424 rev = "${version}";
25− sha256 = "1kfrcfhpzkpjxsrvgwmc2valgwfb4b7gfwwnlnjq6f6dp56yflpz";
25+ sha256 = "1pci8ac6sqrm3mb3yikmmr3iy35g3nj4iihazif1amqkbdz719rc";
2626 fetchSubmodules = true;
2727 };
2828
@@ -78,7 +78,7 @@ let
7878 # faust.wrapWithBuildEnv.
7979 postInstall = ''
8080 # syntax error when eval'd directly
81− pattern="faust2!(svg)"
81+ pattern="faust2!(*@(atomsnippets|graph|graphviewer|md|plot|sig|sigviewer|svg))"
8282 (shopt -s extglob; rm "$out"/bin/$pattern)
8383 '';
8484
pkgs/applications/audio/flacon/default.nix+2−2
@@ -5,13 +5,13 @@
55
66stdenv.mkDerivation rec {
77 name = "flacon-${version}";
8− version = "4.0.0";
8+ version = "4.1.0";
99
1010 src = fetchFromGitHub {
1111 owner = "flacon";
1212 repo = "flacon";
1313 rev = "v${version}";
14− sha256 = "0l0xbzpy4nnr08z7gqvb4ngrjwzpspa382cbcrpkya3nd40987kr";
14+ sha256 = "1sw2v2w3s79lbzhkf96m8lwvag824am7rwfzzsi8bz6sa6krmj0m";
1515 };
1616
1717 nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
pkgs/applications/audio/fldigi/default.nix+2−2
@@ -2,13 +2,13 @@
22 libsamplerate, libpulseaudio, libXinerama, gettext, pkgconfig, alsaLib }:
33
44stdenv.mkDerivation rec {
5− version = "3.23.15";
5+ version = "4.0.16";
66 pname = "fldigi";
77 name = "${pname}-${version}";
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/${pname}/${name}.tar.gz";
11− sha256 = "1nxafk99fr6yb09cq3vdpzjcd85mnjwwl8rzccx21kla1ysihl5m";
11+ sha256 = "1gcahm1lv3yfscaxanrx6q7dydxjznw98vdc0f8zgdb15na3f0g7";
1212 };
1313
1414 buildInputs = [ libXinerama gettext hamlib fltk13 libjpeg libpng portaudio
pkgs/applications/audio/fluidsynth/default.nix+2−2
@@ -5,13 +5,13 @@
55
66stdenv.mkDerivation rec {
77 name = "fluidsynth-${version}";
8− version = "1.1.9";
8+ version = "1.1.10";
99
1010 src = fetchFromGitHub {
1111 owner = "FluidSynth";
1212 repo = "fluidsynth";
1313 rev = "v${version}";
14− sha256 = "0krvmb1idnf95l2ydzfcb08ayyx3n4m71hf9fgwv3srzaikvpf3q";
14+ sha256 = "04jlgq1d1hd8r9cnmkl3lgf1fgm7kgy4hh9nfddap41fm1wp121p";
1515 };
1616
1717 nativeBuildInputs = [ pkgconfig cmake ];
pkgs/applications/audio/fmit/default.nix+2−2
@@ -11,10 +11,10 @@ with stdenv.lib;
1111
1212stdenv.mkDerivation rec {
1313 name = "fmit-${version}";
14− version = "1.1.13";
14+ version = "1.1.14";
1515
1616 src = fetchFromGitHub {
17− sha256 = "1p374gf7iksrlyvddm3w4qk3l0rxsiyymz5s8dmc447yvin8ykfq";
17+ sha256 = "18gvl8smcnigzldy1acs5h8rscf287b39xi4y2cl5armqbj0y38x";
1818 rev = "v${version}";
1919 repo = "fmit";
2020 owner = "gillesdegottex";
pkgs/applications/audio/freewheeling/default.nix+2−2
@@ -8,13 +8,13 @@ in
88
99stdenv.mkDerivation rec {
1010 name = "freewheeling-${version}";
11− version = "0.6.2";
11+ version = "0.6.4";
1212
1313 src = fetchFromGitHub {
1414 owner = "free-wheeling";
1515 repo = "freewheeling";
1616 rev = "v${version}";
17− sha256 = "01hmp0jxzxpb5sl0x91hdlwmbw9n4yffrpra4f89s4n8cixrz3d9";
17+ sha256 = "1xflbbnjdibjmyxb1zq8liylaw5k03nnl1z3272jh204pqh17ri9";
1818 };
1919
2020 nativeBuildInputs = [ pkgconfig autoreconfHook libtool ];
pkgs/applications/audio/google-play-music-desktop-player/default.nix+2−2
@@ -4,7 +4,7 @@
44}:
55
66let
7− version = "4.4.1";
7+ version = "4.5.0";
88
99 deps = [
1010 alsaLib
@@ -46,7 +46,7 @@ stdenv.mkDerivation {
4646
4747 src = fetchurl {
4848 url = "https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/releases/download/v${version}/google-play-music-desktop-player_${version}_amd64.deb";
49− sha256 = "0jqgawgij6jxf3zy3glviqj6s34mq7d756syg2c7kk1gkqkwgdpw";
49+ sha256 = "06h9g1yhd5q7gg8v55q143fr65frxg0khfgckr03gsaw0swin51q";
5050 };
5151
5252 dontBuild = true;
pkgs/applications/audio/gtkpod/default.nix+8−15
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, pkgconfig, makeWrapper, intltool, libgpod, curl, flac,
2− gnome, gtk3, glib, gettext, perl, perlXMLParser, flex, libglade, libid3tag,
1+{ stdenv, fetchurl, pkgconfig, wrapGAppsHook, intltool, libgpod, curl, flac,
2+ gnome3, gtk3, glib, gettext, perl, perlXMLParser, flex, libid3tag,
33 libvorbis, hicolor-icon-theme, gdk_pixbuf }:
44
55stdenv.mkDerivation rec {
@@ -11,24 +11,17 @@ stdenv.mkDerivation rec {
1111 sha256 = "0xisrpx069f7bjkyc8vqxb4k0480jmx1wscqxr6cpq1qj6pchzd5";
1212 };
1313
14− propagatedUserEnvPkgs = [ gnome.gnome-themes-standard ];
15−
16− nativeBuildInputs = [ pkgconfig ];
17− buildInputs = [ makeWrapper intltool curl gettext perl perlXMLParser
18− flex libgpod libid3tag flac libvorbis gtk3 gdk_pixbuf libglade gnome.anjuta
19− gnome.gdl gnome.defaultIconTheme
20− hicolor-icon-theme ];
14+ nativeBuildInputs = [ pkgconfig wrapGAppsHook intltool ];
15+ buildInputs = [
16+ curl gettext perl perlXMLParser
17+ flex libgpod libid3tag flac libvorbis gtk3 gdk_pixbuf
18+ gnome3.gdl gnome3.defaultIconTheme gnome3.anjuta
19+ ];
2120
2221 patchPhase = ''
2322 sed -i 's/which/type -P/' scripts/*.sh
2423 '';
2524
26− preFixup = ''
27− wrapProgram "$out/bin/gtkpod" \
28− --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
29− --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gnome.gnome-themes-standard}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"
30− '';
31−
3225 enableParallelBuilding = true;
3326
3427 meta = with stdenv.lib; {
pkgs/applications/audio/kid3/default.nix+2−2
@@ -10,11 +10,11 @@
1010stdenv.mkDerivation rec {
1111
1212 name = "kid3-${version}";
13− version = "3.5.1";
13+ version = "3.6.0";
1414
1515 src = fetchurl {
1616 url = "mirror://sourceforge/project/kid3/kid3/${version}/${name}.tar.gz";
17− sha256 = "09iryxnhg8d9q36a4brb25bqkjprkx5kl0x7vyy82gxivqk0ihl8";
17+ sha256 = "1kv795prc4d3f2cbzskvdi73l6nx4cfcd32x255wq1s74zp1k73p";
1818 };
1919
2020 buildInputs = with stdenv.lib;
pkgs/applications/audio/lastfmsubmitd/default.nix+2−2
@@ -6,7 +6,7 @@ pythonPackages.buildPythonApplication rec {
66 version = "1.0.6";
77
88 src = fetchurl {
9− url = "http://www.red-bean.com/decklin/lastfmsubmitd/lastfmsubmitd-${version}.tar.gz";
9+ url = "https://www.red-bean.com/decklin/lastfmsubmitd/lastfmsubmitd-${version}.tar.gz";
1010 sha256 = "c2636d5095a95167366bacd458624d67b046e060244fa54ba2c2e3efb79f9b0e";
1111 };
1212
@@ -15,7 +15,7 @@ pythonPackages.buildPythonApplication rec {
1515 installCommand = "python setup.py install --prefix=$out";
1616
1717 meta = {
18− homepage = http://www.red-bean.com/decklin/lastfmsubmitd/;
18+ homepage = https://www.red-bean.com/decklin/lastfmsubmitd/;
1919 description = "An last.fm audio scrobbler and daemon";
2020 };
2121}
pkgs/applications/audio/mi2ly/default.nix+1
@@ -36,5 +36,6 @@ stdenv.mkDerivation {
3636 license = stdenv.lib.licenses.gpl2Plus ;
3737 maintainers = [stdenv.lib.maintainers.raskin];
3838 platforms = stdenv.lib.platforms.linux;
39+ broken = true; # 2018-04-11
3940 };
4041}
pkgs/applications/audio/mopidy-gmusic/default.nix → pkgs/applications/audio/mopidy/gmusic.nixrenamed+1−1
@@ -19,7 +19,7 @@ pythonPackages.buildPythonApplication rec {
1919 doCheck = false;
2020
2121 meta = with stdenv.lib; {
22− homepage = http://www.mopidy.com/;
22+ homepage = https://www.mopidy.com/;
2323 description = "Mopidy extension for playing music from Google Play Music";
2424 license = licenses.asl20;
2525 maintainers = [ maintainers.jgillich ];
pkgs/applications/audio/mopidy-iris/default.nix → pkgs/applications/audio/mopidy/iris.nixrenamed+5−2
@@ -2,11 +2,11 @@
22
33pythonPackages.buildPythonApplication rec {
44 pname = "Mopidy-Iris";
5− version = "3.14.0";
5+ version = "3.17.1";
66
77 src = pythonPackages.fetchPypi {
88 inherit pname version;
9− sha256 = "2c0ec5138e554e91d299ac72a7049bc00d77770a08c16c17e1a9df7f8ef42feb";
9+ sha256 = "02k1br077v9c5x6nn0391vh28pvn1zjbkjv8h508vy7k6ch2xjyq";
1010 };
1111
1212 propagatedBuildInputs = [
@@ -17,8 +17,11 @@ pythonPackages.buildPythonApplication rec {
1717 pylast
1818 spotipy
1919 raven
20+ tornado
2021 ]);
2122
23+ postPatch = "sed -i /tornado/d setup.py";
24+
2225 # no tests implemented
2326 doCheck = false;
2427
pkgs/applications/audio/mopidy-local-images/default.nix → pkgs/applications/audio/mopidy/local-images.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-local-sqlite/default.nix → pkgs/applications/audio/mopidy/local-sqlite.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-moped/default.nix → pkgs/applications/audio/mopidy/moped.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-mopify/default.nix → pkgs/applications/audio/mopidy/mopify.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-musicbox-webclient/default.nix → pkgs/applications/audio/mopidy/musicbox-webclient.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-soundcloud/default.nix → pkgs/applications/audio/mopidy/soundcloud.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-spotify-tunigo/default.nix → pkgs/applications/audio/mopidy/spotify-tunigo.nixrenamed
The content is the same.
pkgs/applications/audio/mopidy-spotify/default.nix → pkgs/applications/audio/mopidy/spotify.nixrenamed+1−1
@@ -14,7 +14,7 @@ pythonPackages.buildPythonApplication rec {
1414 doCheck = false;
1515
1616 meta = with stdenv.lib; {
17− homepage = http://www.mopidy.com/;
17+ homepage = https://www.mopidy.com/;
1818 description = "Mopidy extension for playing music from Spotify";
1919 license = licenses.asl20;
2020 maintainers = [ maintainers.rickynils ];
pkgs/applications/audio/mopidy-youtube/default.nix → pkgs/applications/audio/mopidy/youtube.nixrenamed
The content is the same.
pkgs/applications/audio/mp3blaster/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, ncurses, libvorbis }:
1+{ stdenv, fetchFromGitHub, ncurses, libvorbis, SDL }:
22stdenv.mkDerivation rec {
33
44 version = "3.2.6";
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 buildInputs = [
1616 ncurses
1717 libvorbis
18− ];
18+ ] ++ stdenv.lib.optional stdenv.isDarwin SDL;
1919
2020 buildFlags = [ "CXXFLAGS=-Wno-narrowing" ];
2121
pkgs/applications/audio/mpg123/default.nix+2−2
@@ -4,11 +4,11 @@
44}:
55
66stdenv.mkDerivation rec {
7− name = "mpg123-1.25.8";
7+ name = "mpg123-1.25.10";
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/mpg123/${name}.tar.bz2";
11− sha256 = "16s9z1xc5kv1p90g42vsr9m4gq3dwjsmrj873x4i8601mvpm3nkr";
11+ sha256 = "08vhp8lz7d9ybhxcmkq3adwfryhivfvp0745k4r9kgz4wap3f4vc";
1212 };
1313
1414 buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
pkgs/applications/audio/ncmpc/default.nix+2−4
@@ -3,20 +3,18 @@
33
44stdenv.mkDerivation rec {
55 name = "ncmpc-${version}";
6− version = "0.29";
6+ version = "0.30";
77
88 src = fetchFromGitHub {
99 owner = "MusicPlayerDaemon";
1010 repo = "ncmpc";
1111 rev = "v${version}";
12− sha256 = "1b2kbx2phbf4s2qpy7mx72c87xranljr0yam6z9m1i1kvcnp8q1q";
12+ sha256 = "0s2bynm5szrk8bjhg200mvsm2ny0wz9s10nx7r69y9y4jsxr8624";
1313 };
1414
1515 buildInputs = [ glib ncurses mpd_clientlib ];
1616 nativeBuildInputs = [ meson ninja pkgconfig gettext ];
1717
18− NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
19−
2018 meta = with stdenv.lib; {
2119 description = "Curses-based interface for MPD (music player daemon)";
2220 homepage = https://www.musicpd.org/clients/ncmpc/;
pkgs/applications/audio/ncmpcpp/default.nix+2−2
@@ -12,11 +12,11 @@ assert taglibSupport -> (taglib != null);
1212with stdenv.lib;
1313stdenv.mkDerivation rec {
1414 name = "ncmpcpp-${version}";
15− version = "0.8.1";
15+ version = "0.8.2";
1616
1717 src = fetchurl {
1818 url = "https://ncmpcpp.rybczak.net/stable/${name}.tar.bz2";
19− sha256 = "1zw8d07b2bkssbsybg6jnmpq001w525viajrnz4jvfml3l55gyad";
19+ sha256 = "0m0mjb049sl62vx13h9waavysa30mk0rphacksnvf94n13la62v5";
2020 };
2121
2222 configureFlags = [ "BOOST_LIB_SUFFIX=" ]
pkgs/applications/audio/padthv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "padthv1-${version}";
5− version = "0.8.6";
5+ version = "0.9.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/padthv1/${name}.tar.gz";
9− sha256 = "1mikab2f9n5q1sfgnp3sbm1rf3v57k4085lsgh0a5gzga2h4hwxq";
9+ sha256 = "0c519qk2g0dk8gqf9ywqfp7dnr4b25lsnxxbf2l1spnnvf8nysvh";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools fftw ];
pkgs/applications/audio/pamixer/default.nix+12−5
@@ -1,15 +1,22 @@
1−{ stdenv, fetchurl, boost, libpulseaudio }:
1+{ stdenv, fetchFromGitHub, fetchpatch, boost, libpulseaudio }:
22
33stdenv.mkDerivation rec {
4−
54 name = "pamixer-${version}";
65 version = "1.3.1";
76
8− src = fetchurl {
9− url = "https://github.com/cdemoulins/pamixer/archive/${version}.tar.gz";
10− sha256 = "1lsvb4xk1dq762w9c0jn7xvj3v1lzppql9mj1b55fhzdypbrkm6x";
7+ src = fetchFromGitHub {
8+ owner = "cdemoulins";
9+ repo = "pamixer";
10+ rev = version;
11+ sha256 = "15zs2x4hnrpxphqn542b6qqm4ymvhkvbcfyffy69d6cki51chzzw";
1112 };
1213
14+ # Remove after https://github.com/cdemoulins/pamixer/pull/16 gets fixed
15+ patches = [(fetchpatch {
16+ url = "https://github.com/oxij/pamixer/commit/dea1cd967aa837940e5c0b04ef7ebc47a7a93d63.patch";
17+ sha256 = "0s77xmsiwywyyp6f4bjxg1sqdgms1k5fiy7na6ws0aswshfnzfjb";
18+ })];
19+
1320 buildInputs = [ boost libpulseaudio ];
1421
1522 installPhase = ''
pkgs/applications/audio/pd-plugins/helmholtz/default.nix+3
@@ -20,13 +20,16 @@ stdenv.mkDerivation rec {
2020 mv helmholtz~/src/Makefile .
2121 rm -rf helmholtz~/src/
2222 rm helmholtz~/helmholtz~.pd_darwin
23+ rm helmholtz~/helmholtz~.pd_linux
2324 rm helmholtz~/helmholtz~.dll
2425 rm -rf __MACOSX
2526 '';
2627
2728 patchPhase = ''
29+ mkdir -p $out/helmholtz~
2830 sed -i "s@current: pd_darwin@current: pd_linux@g" Makefile
2931 sed -i "s@-Wl@@g" Makefile
32+ sed -i "s@\$(NAME).pd_linux \.\./\$(NAME).pd_linux@helmholtz~.pd_linux $out/helmholtz~/@g" Makefile
3033 '';
3134
3235 installPhase = ''
pkgs/applications/audio/praat/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "praat-${version}";
5− version = "6.0.37";
5+ version = "6.0.38";
66
77 src = fetchurl {
88 url = "https://github.com/praat/praat/archive/v${version}.tar.gz";
9− sha256 = "1c675jfzcrwfn8lcswm5y5kmazkhnb0p4mzlf5sim57hms88ffjq";
9+ sha256 = "1l01mdhd0kf6mnyrg8maydr56cpw4312gryk303kr0a4w0gwzhhc";
1010 };
1111
1212 configurePhase = ''
pkgs/applications/audio/qmmp/default.nix+2−2
@@ -29,11 +29,11 @@
2929# handle that.
3030
3131stdenv.mkDerivation rec {
32− name = "qmmp-1.2.0";
32+ name = "qmmp-1.2.1";
3333
3434 src = fetchurl {
3535 url = "http://qmmp.ylsoftware.com/files/${name}.tar.bz2";
36− sha256 = "17kci7srgbkk62dgxlmg3lv2y7z04jsinpgx6jmxjpnpblpcj840";
36+ sha256 = "1ag8wh11dq394zjqdyz5g1srjnm4fnq4cwlhpb9k89gpmlk42cdr";
3737 };
3838
3939 buildInputs =
pkgs/applications/audio/quodlibet/default.nix+28−13
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, python2Packages, wrapGAppsHook, gettext, intltool, libsoup, gnome3,
2− tag ? "",
1+{ stdenv, fetchurl, python3, wrapGAppsHook, gettext, intltool, libsoup, gnome3, gtk3, gdk_pixbuf,
2+ tag ? "", xvfb_run, dbus, glibcLocales, glib, gobjectIntrospection,
33 gst_all_1, withGstPlugins ? true,
44 xineBackend ? false, xineLib,
55 withDbusPython ? false, withPyInotify ? false, withMusicBrainzNgs ? false, withPahoMqtt ? false,
@@ -7,38 +7,53 @@
77 keybinder3 ? null, gtksourceview ? null, libmodplug ? null, kakasi ? null, libappindicator-gtk3 ? null }:
88
99let optionals = stdenv.lib.optionals; in
10−python2Packages.buildPythonApplication rec {
10+python3.pkgs.buildPythonApplication rec {
1111 name = "quodlibet${tag}-${version}";
12− version = "3.9.1";
12+ version = "4.0.2";
1313
1414 # XXX, tests fail
15+ # https://github.com/quodlibet/quodlibet/issues/2820
1516 doCheck = false;
1617
1718 src = fetchurl {
1819 url = "https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz";
19− sha256 = "d2b42df5d439213973dc97149fddc779a6c90cec389c24baf1c0bdcc39ffe591";
20+ sha256 = "072s983p3n84yl807pbdxsy5vrgs8jzzfl648gsri6kpwsp6w5fz";
2021 };
2122
2223 nativeBuildInputs = [ wrapGAppsHook gettext intltool ];
23− # ++ (with python2Packages; [ pytest pyflakes pycodestyle polib ]); # test deps
2424
25− buildInputs = [ gnome3.defaultIconTheme libsoup webkitgtk keybinder3 gtksourceview libmodplug libappindicator-gtk3 kakasi ]
25+ checkInputs = with python3.pkgs; [ pytest pytest_xdist pyflakes pycodestyle polib xvfb_run dbus.daemon glibcLocales ];
26+
27+ buildInputs = [ gnome3.defaultIconTheme libsoup glib gtk3 webkitgtk gdk_pixbuf keybinder3 gtksourceview libmodplug libappindicator-gtk3 kakasi gobjectIntrospection ]
2628 ++ (if xineBackend then [ xineLib ] else with gst_all_1;
2729 [ gstreamer gst-plugins-base ] ++ optionals withGstPlugins [ gst-plugins-good gst-plugins-ugly gst-plugins-bad ]);
2830
29− propagatedBuildInputs = with python2Packages;
30− [ pygobject3 pycairo mutagen pygtk gst-python feedparser faulthandler futures ]
31+ propagatedBuildInputs = with python3.pkgs; [ pygobject3 pycairo mutagen gst-python feedparser ]
3132 ++ optionals withDbusPython [ dbus-python ]
3233 ++ optionals withPyInotify [ pyinotify ]
3334 ++ optionals withMusicBrainzNgs [ musicbrainzngs ]
3435 ++ optionals stdenv.isDarwin [ pyobjc ]
3536 ++ optionals withPahoMqtt [ paho-mqtt ];
3637
37− makeWrapperArgs = optionals (kakasi != null) [ "--prefix PATH : ${kakasi}/bin" ];
38+ LC_ALL = "en_US.UTF-8";
39+
40+ checkPhase = ''
41+ runHook preCheck
42+ checkHomeDir=$(mktemp -d)
43+ mkdir -p $checkHomeDir/.cache/thumbnails/normal # Required by TThumb.test_recreate_broken_cache_file
44+ env XDG_DATA_DIRS="$out/share:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS" \
45+ HOME=$checkHomeDir \
46+ xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
47+ --config-file=${dbus.daemon}/share/dbus-1/session.conf \
48+ py.test
49+ runHook postCheck
50+ '';
51+
52+ preFixup = stdenv.lib.optionalString (kakasi != null) "gappsWrapperArgs+=(--prefix PATH : ${kakasi}/bin)";
3853
39− meta = {
54+ meta = with stdenv.lib; {
4055 description = "GTK+-based audio player written in Python, using the Mutagen tagging library";
41− license = stdenv.lib.licenses.gpl2;
56+ license = licenses.gpl2Plus;
4257
4358 longDescription = ''
4459 Quod Libet is a GTK+-based audio player written in Python, using
@@ -54,7 +69,7 @@ python2Packages.buildPythonApplication rec {
5469 & internet radio, and all major audio formats.
5570 '';
5671
57− maintainers = with stdenv.lib.maintainers; [ coroa sauyon ];
72+ maintainers = with maintainers; [ coroa sauyon ];
5873 homepage = https://quodlibet.readthedocs.io/en/latest/;
5974 };
6075}
pkgs/applications/audio/radiotray-ng/default.nix+4−3
@@ -40,13 +40,13 @@ let
4040in
4141stdenv.mkDerivation rec {
4242 name = "radiotray-ng-${version}";
43− version = "0.2.1";
43+ version = "0.2.2";
4444
4545 src = fetchFromGitHub {
4646 owner = "ebruck";
4747 repo = "radiotray-ng";
4848 rev = "v${version}";
49− sha256 = "0hqg6vn8hv5pic96klf1d9vj8fibrgiqnqb5vwrg3wvakx0y32kr";
49+ sha256 = "0q8k7nsjm6m0r0zs1br60niaqlwvd3myqalb5sqijzanx41aq2l6";
5050 };
5151
5252 nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook makeWrapper ];
@@ -78,7 +78,8 @@ stdenv.mkDerivation rec {
7878
7979 enableParallelBuilding = true;
8080
81− doCheck = true;
81+ # XXX: as of 0.2.2, tries to download gmock instead of checking for provided
82+ doCheck = false;
8283
8384 checkPhase = "ctest";
8485
pkgs/applications/audio/rhvoice/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ stdenv, lib, pkgconfig, fetchFromGitHub, scons, python, glibmm, libpulseaudio, libao
2+}:
3+
4+let
5+ version = "unstable-2018-02-10";
6+in stdenv.mkDerivation rec {
7+ name = "rhvoice-${version}";
8+
9+ src = fetchFromGitHub {
10+ owner = "Olga-Yakovleva";
11+ repo = "RHVoice";
12+ rev = "7a25a881b0465e47a12d8029b56f3b71a1d02312";
13+ sha256 = "1gkrlmv7msh9qlm0gkjqpl9gswghpclfdwszr1p85v8vk6m63v0b";
14+ };
15+
16+ nativeBuildInputs = [
17+ scons pkgconfig
18+ ];
19+
20+ buildInputs = [
21+ python glibmm libpulseaudio libao
22+ ];
23+
24+ # SConstruct patch
25+ # Scons creates an independent environment that assumes standard POSIX paths.
26+ # The patch is needed to push the nix environment.
27+ # - PATH
28+ # - PKG_CONFIG_PATH, to find available (sound) libraries
29+ # - RPATH, to link to the newly built libraries
30+
31+ patches = [ ./honor_nix_environment.patch ];
32+
33+ buildPhase = ''
34+ scons prefix=$out
35+ '';
36+
37+ installPhase = ''
38+ scons install
39+ '';
40+
41+ meta = {
42+ description = "A free and open source speech synthesizer for Russian language and others";
43+ homepage = https://github.com/Olga-Yakovleva/RHVoice/wiki;
44+ license = lib.licenses.gpl3;
45+ maintainers = with lib.maintainers; [ berce ];
46+ platforms = with lib.platforms; all;
47+ };
48+}
pkgs/applications/audio/rhvoice/honor_nix_environment.patchnew file+14
@@ -0,0 +1,14 @@
1+diff --git a/SConstruct b/SConstruct
2+index 2421399..ba39254 100644
3+--- a/SConstruct
4++++ b/SConstruct
5+@@ -147,6 +147,9 @@ def create_base_env(vars):
6+ env_args["package_name"]="RHVoice"
7+ env_args["CPPDEFINES"]=[("RHVOICE","1")]
8+ env=Environment(**env_args)
9++ env.PrependENVPath("PATH", os.environ["PATH"])
10++ env["ENV"]["PKG_CONFIG_PATH"]=os.environ["PKG_CONFIG_PATH"]
11++ env["RPATH"]=env["libdir"]
12+ env["package_version"]=get_version(env["release"])
13+ env.Append(CPPDEFINES=("PACKAGE",env.subst(r'\"$package_name\"')))
14+ env.Append(CPPDEFINES=("VERSION",env.subst(r'\"$package_version\"')))
pkgs/applications/audio/rhythmbox/default.nix+9
@@ -24,6 +24,15 @@ in stdenv.mkDerivation rec {
2424 sha256 = "0hzcns8gf5yb0rm4ss8jd8qzarcaplp5cylk6plwilsqfvxj4xn2";
2525 };
2626
27+ patches = [
28+ # build with GStreamer 1.14 https://bugzilla.gnome.org/show_bug.cgi?id=788706
29+ (fetchurl {
30+ name = "fmradio-Fix-build-with-GStreamer-master.patch";
31+ url = https://bugzilla.gnome.org/attachment.cgi?id=361178;
32+ sha256 = "1h09mimlglj9hcmc3pfp0d6c277mqh2khwv9fryk43pkv3904d2w";
33+ })
34+ ];
35+
2736 nativeBuildInputs = [
2837 pkgconfig
2938 intltool perl perlPackages.XMLParser
pkgs/applications/audio/samplv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "samplv1-${version}";
5− version = "0.8.6";
5+ version = "0.9.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/samplv1/${name}.tar.gz";
9− sha256 = "035bq7yfg1yirsqk63zwkzjw9dxl52lrzq9y0w7nga0vb11xdfij";
9+ sha256 = "0g67vm9ilmq5nlvk0f3abia9pbinr4ck5v4mll6igni1rxz2n7wk";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib liblo libsndfile lv2 qt5.qtbase qt5.qttools];
pkgs/applications/audio/snd/default.nix+2−2
@@ -4,11 +4,11 @@
44}:
55
66stdenv.mkDerivation rec {
7− name = "snd-18.1";
7+ name = "snd-18.2";
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/snd/${name}.tar.gz";
11− sha256 = "0wdifvpm54j5fxxp867jnrfdy3jb8iff2mxqvp08plp45zfjv6xh";
11+ sha256 = "0b0ija3cf2c9sqh3cclk5a7i73vagfkyw211aykfd76w7ibirs3r";
1212 };
1313
1414 nativeBuildInputs = [ pkgconfig ];
pkgs/applications/audio/sonata/default.nix+1−3
@@ -19,7 +19,7 @@ in buildPythonApplication rec {
1919 nativeBuildInputs = [ pkgconfig ];
2020 buildInputs = [
2121 intltool wrapGAppsHook
22− gnome3.gnome-themes-standard gnome3.defaultIconTheme
22+ gnome3.defaultIconTheme
2323 gnome3.gsettings-desktop-schemas
2424 ];
2525
@@ -28,8 +28,6 @@ in buildPythonApplication rec {
2828 sed -i '/localmpd/d' sonata/consts.py
2929 '';
3030
31− propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
32−
3331 propagatedBuildInputs = [
3432 gobjectIntrospection gtk3 pygobject3
3533 ];
pkgs/applications/audio/sound-juicer/default.nix+21−29
@@ -1,41 +1,33 @@
1−{ stdenv, fetchurl, pkgconfig, gtk3, intltool, itstool, libxml2, brasero
1+{ stdenv, fetchurl, pkgconfig, glib, gtk3, intltool, itstool, libxml2, brasero
22, libcanberra-gtk3, gnome3, gst_all_1, libmusicbrainz5, libdiscid, isocodes
3−, makeWrapper }:
3+, wrapGAppsHook }:
44
55let
6− major = "3.16";
7− minor = "1";
8−
9−in stdenv.mkDerivation rec {
10− version = "${major}.${minor}";
11− name = "sound-juicer-${version}";
6+ pname = "sound-juicer";
7+ version = "3.16.1";
8+in stdenv.mkDerivation rec{
9+ name = "${pname}-${version}";
1210
1311 src = fetchurl {
14− url = "http://download.gnome.org/sources/sound-juicer/${major}/${name}.tar.xz";
12+ url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
1513 sha256 = "0mx6n901vb97hsv0cwaafjffj75s1kcp8jsqay90dy3099849dyz";
1614 };
1715
18− nativeBuildInputs = [ pkgconfig ];
19− buildInputs = [ gtk3 intltool itstool libxml2 brasero libcanberra-gtk3
20− gnome3.gsettings-desktop-schemas libmusicbrainz5 libdiscid isocodes
21− makeWrapper (stdenv.lib.getLib gnome3.dconf)
22− gst_all_1.gstreamer gst_all_1.gst-plugins-base
23− gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
24− gst_all_1.gst-libav
25− ];
26−
27− preFixup = ''
28− for f in $out/bin/* $out/libexec/*; do
29− wrapProgram "$f" \
30− --prefix XDG_DATA_DIRS : "${gnome3.gnome-themes-standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
31− --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
32− --prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules"
33− done
34− '';
16+ nativeBuildInputs = [ pkgconfig intltool itstool libxml2 wrapGAppsHook ];
17+ buildInputs = [
18+ glib gtk3 brasero libcanberra-gtk3 gnome3.defaultIconTheme
19+ gnome3.gsettings-desktop-schemas libmusicbrainz5 libdiscid isocodes
20+ gst_all_1.gstreamer gst_all_1.gst-plugins-base
21+ gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad
22+ gst_all_1.gst-libav
23+ ];
3524
36− postInstall = ''
37− rm $out/share/icons/hicolor/icon-theme.cache
38− '';
25+ passthru = {
26+ updateScript = gnome3.updateScript {
27+ packageName = pname;
28+ attrPath = "gnome3.${pname}";
29+ };
30+ };
3931
4032 meta = with stdenv.lib; {
4133 description = "A Gnome CD Ripper";
pkgs/applications/audio/soundscape-renderer/default.nix+2
@@ -27,6 +27,8 @@ stdenv.mkDerivation rec {
2727
2828 # Without it doesn't find all of the boost libraries.
2929 BOOST_LIB_DIR="${boost}/lib";
30+ # uses the deprecated get_generic_category() in boost_system
31+ NIX_CFLAGS_COMPILE="-DBOOST_SYSTEM_ENABLE_DEPRECATED=1";
3032
3133 LC_ALL = "en_US.UTF-8";
3234
pkgs/applications/audio/spotify/default.nix+2−2
@@ -9,7 +9,7 @@ let
99 # Latest version number can be found at:
1010 # http://repository-origin.spotify.com/pool/non-free/s/spotify-client/
1111 # Be careful not to pick the testing version.
12− version = "1.0.69.336.g7edcc575-39";
12+ version = "1.0.77.338.g758ebd78-41";
1313
1414 deps = [
1515 alsaLib
@@ -54,7 +54,7 @@ stdenv.mkDerivation {
5454
5555 src = fetchurl {
5656 url = "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
57− sha256 = "0bh2q7g478g7wj661fypxcbhrbq87zingfyigg7rz1shgsgwc3gd";
57+ sha256 = "1971jc0431pl8yixpl37ryl2l0pqdf0xjvkg59nqdwj3vbdx5606";
5858 };
5959
6060 buildInputs = [ dpkg makeWrapper ];
pkgs/applications/audio/squishyball/default.nix+2
@@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
1616
1717 buildInputs = [ flac libao libvorbis ncurses opusfile ];
1818
19+ NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS";
20+
1921 patches = [ ./gnu-screen.patch ];
2022
2123 postInstall = ''
pkgs/applications/audio/streamripper/default.nix+2−3
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl , glib, pkgconfig, libogg, libvorbis }:
1+{ stdenv, fetchurl , glib, pkgconfig, libogg, libvorbis, libmad }:
22
33stdenv.mkDerivation rec {
44 name = "streamripper-${version}";
@@ -10,13 +10,12 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 nativeBuildInputs = [ pkgconfig ];
13− buildInputs = [ glib libogg libvorbis ];
13+ buildInputs = [ glib libogg libvorbis libmad ];
1414
1515 meta = with stdenv.lib; {
1616 homepage = http://streamripper.sourceforge.net/;
1717 description = "Application that lets you record streaming mp3 to your hard drive";
1818 license = licenses.gpl2;
19− platforms = platforms.linux;
2019 maintainers = with maintainers; [ the-kenny ];
2120 };
2221}
pkgs/applications/audio/synthv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "synthv1-${version}";
5− version = "0.8.6";
5+ version = "0.9.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/synthv1/${name}.tar.gz";
9− sha256 = "141ah1gnv5r2k846v5ay15q9q90h01p74240a56vlxqh20z43g92";
9+ sha256 = "1skynjg6ip0qfbqqkybfjh6xcwxagq89ghl08f7sp7j0sz5qdcwp";
1010 };
1111
1212 buildInputs = [ qt5.qtbase qt5.qttools libjack2 alsaLib liblo lv2 ];
pkgs/applications/audio/yoshimi/default.nix+2−2
@@ -6,11 +6,11 @@ assert stdenv ? glibc;
66
77stdenv.mkDerivation rec {
88 name = "yoshimi-${version}";
9− version = "1.5.6";
9+ version = "1.5.7";
1010
1111 src = fetchurl {
1212 url = "mirror://sourceforge/yoshimi/${name}.tar.bz2";
13− sha256 = "0bjfhfslpa2hjrc9h38m7dlr62953w9n4cvkgvfy495cbym12dak";
13+ sha256 = "1w916mmi6hh547a7icrgx6qr2kwxlxwlm6ampql427rshcz9r61k";
1414 };
1515
1616 buildInputs = [
pkgs/applications/backup/deja-dup/default.nix+9−18
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, meson, ninja, pkgconfig, vala_0_38, gettext
2−, gnome3, libnotify, intltool, itstool, glib, gtk3, libxml2
1+{ stdenv, fetchurl, substituteAll, meson, ninja, pkgconfig, vala_0_40, gettext
2+, gnome3, libnotify, itstool, glib, gtk3, libxml2
33, coreutils, libsecret, pcre, libxkbcommon, wrapGAppsHook
44, libpthreadstubs, libXdmcp, epoxy, at-spi2-core, dbus, libgpgerror
55, appstream-glib, desktop-file-utils, duplicity
@@ -15,20 +15,14 @@ stdenv.mkDerivation rec {
1515 };
1616
1717 patches = [
18− ./fix-paths.patch
18+ (substituteAll {
19+ src = ./fix-paths.patch;
20+ inherit coreutils;
21+ })
1922 ];
2023
21− postPatch = ''
22− substituteInPlace libdeja/tools/duplicity/DuplicityInstance.vala --replace \
23− "/bin/rm" \
24− "${coreutils}/bin/rm"
25− '';
26−
27− # couldn't find gio/gdesktopappinfo.h
28− NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
29−
3024 nativeBuildInputs = [
31− meson ninja pkgconfig vala_0_38 gettext intltool itstool
25+ meson ninja pkgconfig vala_0_40 gettext itstool
3226 appstream-glib desktop-file-utils libxml2 wrapGAppsHook
3327 ];
3428
@@ -40,6 +34,8 @@ stdenv.mkDerivation rec {
4034
4135 propagatedUserEnvPkgs = [ duplicity ];
4236
37+ PKG_CONFIG_LIBNAUTILUS_EXTENSION_EXTENSIONDIR = "lib/nautilus/extensions-3.0";
38+
4339 postInstall = ''
4440 glib-compile-schemas $out/share/glib-2.0/schemas
4541 '';
@@ -47,11 +43,6 @@ stdenv.mkDerivation rec {
4743 postFixup = ''
4844 # Unwrap accidentally wrapped library
4945 mv $out/libexec/deja-dup/tools/.libduplicity.so-wrapped $out/libexec/deja-dup/tools/libduplicity.so
50−
51− # Patched meson does not add internal libraries to rpath
52− for elf in "$out/bin/.deja-dup-wrapped" "$out/libexec/deja-dup/.deja-dup-monitor-wrapped" "$out/libexec/deja-dup/tools/libduplicity.so"; do
53− patchelf --set-rpath "$(patchelf --print-rpath "$elf"):$out/lib/deja-dup" "$elf"
54− done
5546 '';
5647
5748 meta = with stdenv.lib; {
pkgs/applications/backup/deja-dup/fix-paths.patch+10−11
@@ -1,12 +1,11 @@
1−diff --git a/deja-dup/nautilus/meson.build b/deja-dup/nautilus/meson.build
2−index 04b136f3..ed8f7cba 100644
3−--- a/deja-dup/nautilus/meson.build
4−+++ b/deja-dup/nautilus/meson.build
5−@@ -31,6 +31,6 @@ shared_module('deja-dup', ['NautilusExtension.c'],
6− link_with: [dirhandling],
7− dependencies: [nautilus_dep],
8− install: true,
9−- install_dir: nautilus_dep.get_pkgconfig_variable('extensiondir'))
10−+ install_dir: join_paths(get_option('libdir'), 'nautilus', 'extensions-3.0'))
1+--- a/libdeja/tools/duplicity/DuplicityInstance.vala
2++++ b/libdeja/tools/duplicity/DuplicityInstance.vala
3+@@ -159,7 +159,7 @@
4+ // We already are pretty sure we don't have other duplicities in our
5+ // archive directories, because we use our own and we ensure we only have
6+ // one deja-dup running at a time via DBus.
7+- Posix.system("/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock");
8++ Posix.system("@coreutils@/bin/rm -f " + Shell.quote(cache_dir) + "/*/lockfile.lock");
119
12− endif
10+ Process.spawn_async_with_pipes(null, real_argv, real_envp,
11+ SpawnFlags.SEARCH_PATH |
pkgs/applications/display-managers/lightdm-gtk-greeter/default.nix → pkgs/applications/display-managers/lightdm/gtk-greeter.nixrenamed+4−2
@@ -9,14 +9,14 @@
99
1010let
1111 ver_branch = "2.0";
12− version = "2.0.4";
12+ version = "2.0.5";
1313in
1414stdenv.mkDerivation rec {
1515 name = "lightdm-gtk-greeter-${version}";
1616
1717 src = fetchurl {
1818 url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.gz";
19− sha256 = "1svbyq2l3l2d72k10nw79jz940rqsskryaim2viy6jfpv9k5jfv1";
19+ sha256 = "1pw70db8320wvkhkrw4i2qprxlrqy3jmb6yrr4bm3lgrizahiijx";
2020 };
2121
2222 nativeBuildInputs = [ pkgconfig ];
@@ -28,6 +28,8 @@ stdenv.mkDerivation rec {
2828 "--sysconfdir=/etc"
2929 ] ++ stdenv.lib.optional useGTK2 "--with-gtk2";
3030
31+ NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ];
32+
3133 installFlags = [
3234 "localstatedir=\${TMPDIR}"
3335 "sysconfdir=\${out}/etc"
pkgs/applications/display-managers/sddm/default.nix+4
@@ -22,6 +22,10 @@ in mkDerivation rec {
2222 # Module Qt5::Test must be included in `find_package` before it is used.
2323 ''
2424 sed -i CMakeLists.txt -e '/find_package(Qt5/ s|)| Test)|'
25+ ''
26+ # Fix missing include for gettimeofday()
27+ + ''
28+ sed -e '1i#include <sys/time.h>' -i src/helper/HelperApp.cpp
2529 '';
2630
2731 nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig qttools ];
pkgs/applications/display-managers/slim/default.nix+5−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, pkgconfig, xorg, libjpeg, libpng
1+{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, xorg, libjpeg, libpng
22, fontconfig, freetype, pam, dbus_libs, makeWrapper }:
33
44stdenv.mkDerivation rec {
@@ -26,7 +26,10 @@ stdenv.mkDerivation rec {
2626 # Allow to set logfile to a special "/dev/stderr" in order to continue
2727 # logging to stderr and thus to the journal.
2828 ./no-logfile.patch
29− ];
29+ ] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl (fetchpatch {
30+ url = "https://raw.githubusercontent.com/gentoo/musl/8eddda8072add075ebf56cf6d288bc1450d6b5f8/x11-misc/slim/files/slim-1.3.6-add-missing-libgen_h.patch";
31+ sha256 = "0f82672s2r2cmdqfn2mbg3di76mbla9n0ik20p2gv4igi6p866xm";
32+ });
3033
3134 preConfigure = "substituteInPlace CMakeLists.txt --replace /lib $out/lib";
3235
pkgs/applications/editors/android-studio/common.nix+10−1
@@ -5,10 +5,13 @@
55, fetchurl
66, findutils
77, file
8+, fontsConf
89, git
910, glxinfo
1011, gnugrep
12+, gnused
1113, gnutar
14+, gtk2, gnome_vfs, glib, GConf
1215, gzip
1316, fontconfig
1417, freetype
@@ -29,7 +32,6 @@
2932, writeTextFile
3033, xkeyboard_config
3134, zlib
32−, fontsConf
3335}:
3436
3537let
@@ -56,6 +58,7 @@ let
5658 findutils
5759 gnugrep
5860 which
61+ gnused
5962
6063 # For Android emulator
6164 file
@@ -95,6 +98,11 @@ let
9598 libpulseaudio
9699 libX11
97100
101+ # For GTKLookAndFeel
102+ gtk2
103+ gnome_vfs
104+ glib
105+ GConf
98106 ]}" \
99107 --set QT_XKB_CONFIG_ROOT "${xkeyboard_config}/share/X11/xkb" \
100108 --set FONTCONFIG_FILE ${fontsConf}
@@ -106,6 +114,7 @@ let
106114 # environment is used as a work around for that.
107115 fhsEnv = buildFHSUserEnv {
108116 name = "${pname}-fhs-env";
117+ multiPkgs = pkgs: [ pkgs.ncurses5 ];
109118 };
110119
111120in
pkgs/applications/editors/android-studio/default.nix+42−15
@@ -1,20 +1,34 @@
1−{ stdenv, callPackage, fetchurl, makeFontsConf }:
1+{ stdenv, callPackage, fetchurl, makeFontsConf, gnome2 }:
2+
23let
34 mkStudio = opts: callPackage (import ./common.nix opts) {
45 fontsConf = makeFontsConf {
56 fontDirectories = [];
67 };
8+ inherit (gnome2) GConf gnome_vfs;
9+ };
10+ stableVersion = {
11+ version = "3.1.2.0"; # "Android Studio 3.1.2"
12+ build = "173.4720617";
13+ sha256Hash = "1h9f4pkyqxkqxampi8v035czg5d4g6lp4bsrnq5mgpwhjwkr1whk";
14+ };
15+ latestVersion = {
16+ version = "3.2.0.11"; # "Android Studio 3.2 Canary 12"
17+ build = "181.4729833";
18+ sha256Hash = "1b976m59d230pl35ajhdic46cw8qmnykkbrg3l7am7zmih0zk64c";
719 };
820in rec {
9− # linux-bundle
10− stable = mkStudio {
21+ # Old alias
22+ preview = beta;
23+
24+ # Attributes are named by the corresponding release channels
25+
26+ stable = mkStudio (stableVersion // {
1127 pname = "android-studio";
12− version = "3.0.1.0"; # "Android Studio 3.0.1"
13− build = "171.4443003";
14− sha256Hash = "1krahlqr70nq3csqiinq2m4fgs68j11hd9gg2dx2nrpw5zni0wdd";
28+ #pname = "android-studio-stable"; # TODO: Rename and provide symlink
1529
1630 meta = with stdenv.lib; {
17− description = "The Official IDE for Android (stable version)";
31+ description = "The Official IDE for Android (stable channel)";
1832 longDescription = ''
1933 Android Studio is the official IDE for Android app development, based on
2034 IntelliJ IDEA.
@@ -24,18 +38,31 @@ in rec {
2438 platforms = [ "x86_64-linux" ];
2539 maintainers = with maintainers; [ primeos ];
2640 };
27− };
41+ });
2842
29− # linux-beta-bundle
30− preview = mkStudio {
43+ beta = mkStudio (stableVersion // {
3144 pname = "android-studio-preview";
32− version = "3.1.0.12"; # "Android Studio 3.1 Beta 4"
33− build = "173.4615496";
34− sha256Hash = "0rp0vg5hwv7kdrirydvnwznpfwibwwm2dxsbhbxfkyahph10ly72";
45+ #pname = "android-studio-beta"; # TODO: Rename and provide symlink
3546
3647 meta = stable.meta // {
37− description = "The Official IDE for Android (preview version)";
48+ description = "The Official IDE for Android (beta channel)";
3849 homepage = https://developer.android.com/studio/preview/index.html;
3950 };
40− };
51+ });
52+
53+ dev = mkStudio (latestVersion // {
54+ pname = "android-studio-dev";
55+
56+ meta = beta.meta // {
57+ description = "The Official IDE for Android (dev channel)";
58+ };
59+ });
60+
61+ canary = mkStudio (latestVersion // {
62+ pname = "android-studio-canary";
63+
64+ meta = beta.meta // {
65+ description = "The Official IDE for Android (canary channel)";
66+ };
67+ });
4168}
pkgs/applications/editors/atom/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name = "atom-${version}";
5− version = "1.24.0";
5+ version = "1.26.0";
66
77 src = fetchurl {
88 url = "https://github.com/atom/atom/releases/download/v${version}/atom-amd64.deb";
9− sha256 = "1yvwz4lkf7ya775h3fvrg1wkdc30321j666vfjlmax5mbcjrxkzf";
9+ sha256 = "1gyxys3mwwizc88vlb6j769b6r4ibjnqs6pg5iv336b13f9acyvr";
1010 name = "${name}.deb";
1111 };
1212
pkgs/applications/editors/bonzomatic/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, makeWrapper, fetchFromGitHub, cmake, alsaLib, mesa_glu, libXcursor, libXinerama, libXrandr, xorgserver }:
2+
3+stdenv.mkDerivation rec {
4+ name = "${pname}-${version}";
5+ pname = "bonzomatic";
6+ version = "2018-03-29";
7+
8+ src = fetchFromGitHub {
9+ owner = "Gargaj";
10+ repo = pname;
11+ rev = version;
12+ sha256 = "12mdfjvbhdqz1585772rj4cap8m4ijfci6ib62jysxjf747k41fg";
13+ };
14+
15+ buildInputs = [ cmake makeWrapper alsaLib mesa_glu libXcursor libXinerama libXrandr xorgserver ];
16+
17+ postFixup = ''
18+ wrapProgram $out/bin/Bonzomatic --prefix LD_LIBRARY_PATH : "${alsaLib}/lib"
19+ '';
20+
21+ meta = with stdenv.lib; {
22+ description = "A live-coding tool for writing 2D fragment/pixel shaders";
23+ license = with licenses; [
24+ unlicense
25+ unfreeRedistributable # contains libbass.so in repository
26+ ];
27+ maintainers = [ maintainers.nocent ];
28+ platforms = [ "i686-linux" "x86_64-linux" ];
29+ };
30+}
pkgs/applications/editors/codeblocks/default.nix+4−8
@@ -6,12 +6,12 @@ with stdenv.lib;
66
77stdenv.mkDerivation rec {
88 name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
9− version = "16.01";
9+ version = "17.12";
1010 pname = "codeblocks";
1111
1212 src = fetchurl {
13− url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.gz";
14− sha256 = "00sskm91r20ywydwqwx6v7z3nwn9lyh5297c5wp3razldlh9vyrh";
13+ url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.xz";
14+ sha256 = "1q2pph7md1p10i83rir2l4gvy7ym2iw8w6sk5vl995knf851m20k";
1515 };
1616
1717 nativeBuildInputs = [ autoreconfHook pkgconfig libtool file zip ];
@@ -22,11 +22,7 @@ stdenv.mkDerivation rec {
2222 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file";
2323 postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig";
2424 configureFlags = [ "--enable-pch=no" ]
25− ++ optional contribPlugins "--with-contrib-plugins";
26−
27− # Fix boost 1.59 compat
28− # Try removing in the next version
29− #CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED";
25+ ++ optional contribPlugins [ "--with-contrib-plugins" "--with-boost-libdir=${boost}/lib" ];
3026
3127 meta = {
3228 maintainers = [ maintainers.linquize ];
pkgs/applications/editors/dit/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ lib, fetchurl, stdenv, coreutils, ncurses, lua }:
2+
3+stdenv.mkDerivation rec {
4+ name = "dit-${version}";
5+ version = "0.4";
6+
7+ src = fetchurl {
8+ url = "https://hisham.hm/dit/releases/${version}/${name}.tar.gz";
9+ sha256 = "0bwczbv7annbbpg7bgbsqd5kwypn81sza4v7v99fin94wwmcn784";
10+ };
11+
12+ buildInputs = [ coreutils ncurses lua ];
13+
14+ prePatch = ''
15+ patchShebangs tools/GenHeaders
16+ '';
17+
18+ # needs GNU tail for tail -r
19+ postPatch = ''
20+ substituteInPlace Prototypes.h --replace 'tail' "$(type -P tail)"
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "A console text editor for Unix that you already know how to use";
25+ homepage = https://hisham.hm/dit/;
26+ license = licenses.gpl2;
27+ platforms = with platforms; linux;
28+ maintainers = with maintainers; [ davidak ];
29+ };
30+}
pkgs/applications/editors/eclipse/build-eclipse.nix+4−4
@@ -1,5 +1,5 @@
11{ stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender
2−, zlib, jdk, glib, gtk2, libXtst, gsettings-desktop-schemas, webkitgtk24x-gtk2
2+, zlib, jdk, glib, gtk3, libXtst, gsettings-desktop-schemas, webkitgtk
33, makeWrapper, ... }:
44
55{ name, src ? builtins.getAttr stdenv.system sources, sources ? null, description }:
@@ -18,9 +18,9 @@ stdenv.mkDerivation rec {
1818 };
1919
2020 buildInputs = [
21− fontconfig freetype glib gsettings-desktop-schemas gtk2 jdk libX11
21+ fontconfig freetype glib gsettings-desktop-schemas gtk3 jdk libX11
2222 libXrender libXtst makeWrapper zlib
23− ] ++ stdenv.lib.optional (webkitgtk24x-gtk2 != null) webkitgtk24x-gtk2;
23+ ] ++ stdenv.lib.optional (webkitgtk != null) webkitgtk;
2424
2525 buildCommand = ''
2626 # Unpack tarball.
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
4141
4242 makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
4343 --prefix PATH : ${jdk}/bin \
44− --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath ([ glib gtk2 libXtst ] ++ stdenv.lib.optional (webkitgtk24x-gtk2 != null) webkitgtk24x-gtk2)} \
44+ --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath ([ glib gtk3 libXtst ] ++ stdenv.lib.optional (webkitgtk != null) webkitgtk)} \
4545 --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
4646 --add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration"
4747
pkgs/applications/editors/eclipse/default.nix+3−3
@@ -1,7 +1,7 @@
11{ stdenv, lib, fetchurl, makeDesktopItem, makeWrapper
22, freetype, fontconfig, libX11, libXext, libXrender, zlib
3−, glib, gtk2, libXtst, jdk, gsettings-desktop-schemas
4−, webkitgtk24x-gtk2 ? null # for internal web browser
3+, glib, gtk3, libXtst, jdk, gsettings-desktop-schemas
4+, webkitgtk ? null # for internal web browser
55, buildEnv, writeText, runCommand
66, callPackage
77}:
@@ -15,7 +15,7 @@ rec {
1515
1616 buildEclipse = import ./build-eclipse.nix {
1717 inherit stdenv makeDesktopItem freetype fontconfig libX11 libXrender zlib
18− jdk glib gtk2 libXtst gsettings-desktop-schemas webkitgtk24x-gtk2
18+ jdk glib gtk3 libXtst gsettings-desktop-schemas webkitgtk
1919 makeWrapper;
2020 };
2121
pkgs/applications/editors/eclipse/plugins.nix+38−20
@@ -160,6 +160,29 @@ rec {
160160 };
161161 };
162162
163+ antlr-runtime_4_7 = buildEclipsePluginBase rec {
164+ name = "antlr-runtime-4.7.1";
165+
166+ src = fetchurl {
167+ url = "http://www.antlr.org/download/${name}.jar";
168+ sha256 = "07f91mjclacrvkl8a307w2abq5wcqp0gcsnh0jg90ddfpqcnsla3";
169+ };
170+
171+ buildCommand = ''
172+ dropinDir="$out/eclipse/dropins/"
173+ mkdir -p $dropinDir
174+ cp -v $src $dropinDir/${name}.jar
175+ '';
176+
177+ meta = with stdenv.lib; {
178+ description = "A powerful parser generator for processing structured text or binary files";
179+ homepage = http://www.antlr.org/;
180+ license = licenses.bsd3;
181+ platforms = platforms.all;
182+ maintainers = [ maintainers.rycee ];
183+ };
184+ };
185+
163186 anyedittools = buildEclipsePlugin rec {
164187 name = "anyedit-${version}";
165188 version = "2.7.1.201709201439";
@@ -409,11 +432,11 @@ rec {
409432
410433 jsonedit = buildEclipsePlugin rec {
411434 name = "jsonedit-${version}";
412− version = "1.0.2";
435+ version = "1.1.0";
413436
414437 srcFeature = fetchurl {
415438 url = "https://boothen.github.io/Json-Eclipse-Plugin/features/jsonedit-feature_${version}.jar";
416− sha256 = "0zh9ihvaji2v4d4980va8p1c38x5dn2mcw74qmqkwxlz4nglpsr0";
439+ sha256 = "1qqbzh9sv0s9p0irim7kimvzdkw0hg6yv090bz5ifpzqdxc4v9r5";
417440 };
418441
419442 srcPlugins =
@@ -425,16 +448,16 @@ rec {
425448 };
426449 in
427450 map fetch [
428− { n = "core"; h = "0zc1jpda6sviazsgvvig8zk2zmz0ac1mch5qs8lbcbdmrpq732ni"; }
429− { n = "editor"; h = "06k2mx7ka0bn0i8dfbv89jna9kmy8wnlwkg9yp1n1pgqmr01944s"; }
430− { n = "folding"; h = "1525blyhrl495vz5r98dyfws6kcgnhmyf9qgm5vkplhb27474yca"; }
431− { n = "model"; h = "0rnnkdl3hrp0sxchfzfad97ya5swsw56wfb5zvjwffbby4vln8fd"; }
432− { n = "outline"; h = "06bday90a7sdpv4idp69m2831z3r99q248n2avw2npc3gzkfy3kl"; }
433− { n = "preferences"; h = "1d9pcnq6j5p2smkfldb9dw8gdw5nqlmpcy9kh5n34jcyzf37cdac"; }
434− { n = "text"; h = "0r3g2qhnhl6misi0rrmw152gw0nb7zlcjy7019qvprn9mhwn1n84"; }
451+ { n = "core"; h = "1fl4api6j0wp4vfbyabxqsrjvvpclp8p3b4xnxxpn4v8g12q526m"; }
452+ { n = "editor"; h = "1kn15qampdlpxblj2bv94b3bb15qfwng27lk0n578585yqmb3p66"; }
453+ { n = "folding"; h = "1qnzdx4xx9ma3p6lg1ab8xf3nik1yrww33nksi0j3vnvh8i9ihdm"; }
454+ { n = "model"; h = "0n8855ma1h2as0skrrp2qy3sdkmnhl5vlqxcjv8xlc3faa72174a"; }
455+ { n = "outline"; h = "07i2spmzghs49pkxl8z9c29n6l38x26v20prkh4a7i1rf9whg1q8"; }
456+ { n = "preferences"; h = "0d1m8pb903wpc4vvhsp0gx0h65r432ax898wif3a23c5wxj4nh9i"; }
457+ { n = "text"; h = "0z80d9qgpbx88jrq8b4r478lrcrf52gxqkl94l13wrk7rszjpldh"; }
435458 ];
436459
437− propagatedBuildInputs = [ antlr-runtime_4_5 ];
460+ propagatedBuildInputs = [ antlr-runtime_4_7 ];
438461
439462 meta = with stdenv.lib; {
440463 description = "Adds support for JSON files to Eclipse";
@@ -507,18 +530,13 @@ rec {
507530 };
508531 };
509532
510− spotbugs = buildEclipsePlugin rec {
533+ spotbugs = buildEclipseUpdateSite rec {
511534 name = "spotbugs-${version}";
512− version = "3.1.2.r201802250230-59118d9";
513−
514− srcFeature = fetchurl {
515− url = "https://spotbugs.github.io/eclipse/features/com.github.spotbugs.plugin.eclipse_${version}.jar";
516− sha256 = "1p0pz7znpfi5h1wr60sl8clkpd7rzkh7krmc0nxc6w43gkgkg9h4";
517− };
535+ version = "3.1.3";
518536
519− srcPlugin = fetchurl {
520− url = "https://spotbugs.github.io/eclipse/plugins/com.github.spotbugs.plugin.eclipse_${version}.jar";
521− sha256 = "1z3jjbcjif4qip1gx2dhfcm9fyhps96ms7z3ngbdcakgw7wai9v4";
537+ src = fetchzip {
538+ url = "https://github.com/spotbugs/spotbugs/releases/download/${version}/eclipsePlugin.zip";
539+ sha256 = "01zrmk497bxzqgwgbpsvi5iz5qk9b4q949h4918abm54zvkgndlg";
522540 };
523541
524542 meta = with stdenv.lib; {
pkgs/applications/editors/edbrowse/default.nix+8−10
@@ -1,26 +1,25 @@
1−{ stdenv, fetchurl, spidermonkey, unzip, curl, pcre, readline, openssl, perl, html-tidy }:
1+{ stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
22
33stdenv.mkDerivation rec {
44 name = "edbrowse-${version}";
5− version = "3.6.1";
5+ version = "3.7.3";
66
7− nativeBuildInputs = [ unzip ];
8− buildInputs = [ curl pcre readline openssl spidermonkey perl html-tidy ];
7+ buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
98
109 patchPhase = ''
11− substituteInPlace src/ebjs.c --replace \"edbrowse-js\" \"$out/bin/edbrowse-js\"
1210 for i in ./tools/*.pl
1311 do
1412 substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
1513 done
1614 '';
1715
18− NIX_CFLAGS_COMPILE = "-I${spidermonkey}/include/mozjs-31";
1916 makeFlags = "-C src prefix=$(out)";
2017
21− src = fetchurl {
22− url = "http://edbrowse.org/${name}.zip";
23− sha256 = "1grkn09r31nmvcnm76jkd8aclmd9n5141mpqvb86wndp9pa7gz7q";
18+ src = fetchFromGitHub {
19+ owner = "CMB";
20+ repo = "edbrowse";
21+ rev = "v${version}";
22+ sha256 = "19qdxigp0qv5vyy0hpn0czcc8papvivsjrxx7p367ihizm39yzla";
2423 };
2524 meta = with stdenv.lib; {
2625 description = "Command Line Editor Browser";
@@ -35,6 +34,5 @@ stdenv.mkDerivation rec {
3534 homepage = http://edbrowse.org/;
3635 maintainers = [ maintainers.schmitthenner maintainers.vrthra ];
3736 platforms = platforms.linux;
38− broken = true; # no compatible spidermonkey
3937 };
4038}
pkgs/applications/editors/emacs-modes/elpa-generated.nix+88−47
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/icicles/default.nix+14−14
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-generated.nix+3020−2400
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-packages.nix+3−25
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-stable-generated.nix+1246−794
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-stable-packages.nix+2−6
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/org-generated.nix+6−6
This diff is too big to show here.
pkgs/applications/editors/focuswriter/default.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/geany/default.nix+2−4
This diff is too big to show here.
pkgs/applications/editors/ghostwriter/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/hexcurse/default.nix+13−1
This diff is too big to show here.
pkgs/applications/editors/ht/default.nix+2
This diff is too big to show here.
pkgs/applications/editors/ht/gcc7.patchnew file+11
This diff is too big to show here.
pkgs/applications/editors/jetbrains/default.nix+29−24
This diff is too big to show here.
pkgs/applications/editors/kakoune/default.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/kodestudio/default.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/nano/default.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/okteta.nix → pkgs/applications/editors/okteta/default.nixrenamed+9−3
This diff is too big to show here.
pkgs/applications/editors/rstudio/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/sublime/default.nix → pkgs/applications/editors/sublime/2/default.nixrenamed
The content is the same.
pkgs/applications/editors/sublime3/default.nix → pkgs/applications/editors/sublime/3/common.nixrenamed+25−19
This diff is too big to show here.
pkgs/applications/editors/sublime/3/packages.nixnew file+18
This diff is too big to show here.
pkgs/applications/editors/texmacs/common.nixnew file+68
This diff is too big to show here.
pkgs/applications/editors/texmacs/darwin.nixnew file+59
This diff is too big to show here.
pkgs/applications/editors/texmacs/darwin.patchnew file+29
This diff is too big to show here.
pkgs/applications/editors/texmacs/default.nix+17−72
This diff is too big to show here.
pkgs/applications/editors/texmaker/default.nix+9−6
This diff is too big to show here.
pkgs/applications/editors/texstudio/default.nix+7−6
This diff is too big to show here.
pkgs/applications/editors/tiled/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/vim/common.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/vim/configurable.nix+6
This diff is too big to show here.
pkgs/applications/editors/vim/ft-nix-support.patch+1−70
This diff is too big to show here.
pkgs/applications/editors/vis/default.nix+6−2
This diff is too big to show here.
pkgs/applications/editors/vscode/default.nix+5−5
This diff is too big to show here.
pkgs/applications/editors/vscode-with-extensions/default.nix → pkgs/applications/editors/vscode/with-extensions.nixrenamed
The content is the same.
pkgs/applications/editors/wxhexeditor/default.nix+19−9
This diff is too big to show here.
pkgs/applications/editors/zed/default.nixdeleted−82
This diff is too big to show here.
pkgs/applications/editors/zed/deps.jsondeleted−6
This diff is too big to show here.
pkgs/applications/editors/zed/deps.shdeleted−7
This diff is too big to show here.
pkgs/applications/editors/zed/node-packages.nixdeleted−877
This diff is too big to show here.
pkgs/applications/editors/zed/node.nixdeleted−16
This diff is too big to show here.
pkgs/applications/gis/grass/default.nix+13−2
This diff is too big to show here.
pkgs/applications/gis/grass/no_symbolic_links.patchnew file+37
This diff is too big to show here.
pkgs/applications/gis/openorienteering-mapper/default.nixnew file+68
This diff is too big to show here.
pkgs/applications/gis/qgis/default.nix+49−14
This diff is too big to show here.
pkgs/applications/gis/saga/default.nix+3−3
This diff is too big to show here.
pkgs/applications/graphics/ImageMagick/7.0.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/ImageMagick/default.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/ahoviewer/default.nix+26−16
This diff is too big to show here.
pkgs/applications/graphics/ao/default.nix+1
This diff is too big to show here.
pkgs/applications/graphics/c3d/default.nix+4−3
This diff is too big to show here.
pkgs/applications/graphics/darktable/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/digikam/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/displaycal/default.nix+5−4
This diff is too big to show here.
pkgs/applications/graphics/dosage/default.nixnew file+28
This diff is too big to show here.
pkgs/applications/graphics/exrdisplay/default.nix+3−3
This diff is too big to show here.
pkgs/applications/graphics/fbida/default.nix+6−3
This diff is too big to show here.
pkgs/applications/graphics/feh/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/fstl/default.nixnew file+35
This diff is too big to show here.
pkgs/applications/graphics/gimp/2.8.nix+1−2
This diff is too big to show here.
pkgs/applications/graphics/gnuclad/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/graphics/gocr/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/goxel/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/gthumb/default.nix+25−14
This diff is too big to show here.
pkgs/applications/graphics/inkscape/default.nix+25−15
This diff is too big to show here.
pkgs/applications/graphics/jpegoptim/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/k3d/default.nix+10−9
This diff is too big to show here.
pkgs/applications/graphics/krita/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/leocad/default.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/meshlab/default.nix+1
This diff is too big to show here.
pkgs/applications/graphics/nomacs/default.nix+2−4
This diff is too big to show here.
pkgs/applications/graphics/nomacs/fix-appdata-install.patchdeleted−13
This diff is too big to show here.
pkgs/applications/graphics/openimageio/default.nix+4−4
This diff is too big to show here.
pkgs/applications/graphics/paraview/default.nix+18−6
This diff is too big to show here.
pkgs/applications/graphics/pencil/default.nix+12−12
This diff is too big to show here.
pkgs/applications/graphics/photoflow/default.nixnew file+55
This diff is too big to show here.
pkgs/applications/graphics/pqiv/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/processing/default.nixdeleted−39
This diff is too big to show here.
pkgs/applications/graphics/processing/use-nixpkgs-jre.patchdeleted−88
This diff is too big to show here.
pkgs/applications/graphics/processing3/default.nixnew file+53
This diff is too big to show here.
pkgs/applications/graphics/qscreenshot/default.nix+3−2
This diff is too big to show here.
pkgs/applications/graphics/rapcad/default.nix+1
This diff is too big to show here.
pkgs/applications/graphics/rawtherapee/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/scantailor/advanced.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/shotwell/default.nix+4−4
This diff is too big to show here.
pkgs/applications/graphics/shutter/default.nix+1
This diff is too big to show here.
pkgs/applications/graphics/solvespace/default.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/akonadi/akonadi-paths.patch+60−61
This diff is too big to show here.
pkgs/applications/kde/default.nix+7−2
This diff is too big to show here.
pkgs/applications/kde/fetch.sh+1−1
This diff is too big to show here.
pkgs/applications/kde/k3b.nix+12−6
This diff is too big to show here.
pkgs/applications/kde/kalarm.nixnew file+37
This diff is too big to show here.
pkgs/applications/kde/kalarmcal.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/kdebugsettings.nixnew file+20
This diff is too big to show here.
pkgs/applications/kde/konsole.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/krfb.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/ksystemlog.nixnew file+17
This diff is too big to show here.
pkgs/applications/kde/mbox-importer.nix−3
This diff is too big to show here.
pkgs/applications/kde/okular.nix+16−14
This diff is too big to show here.
pkgs/applications/kde/spectacle.nix+2−1
This diff is too big to show here.
pkgs/applications/kde/srcs.nix+860−852
This diff is too big to show here.
pkgs/applications/misc/alacritty/default.nix+5−3
This diff is too big to show here.
pkgs/applications/misc/apvlv/default.nix+6−1
This diff is too big to show here.
pkgs/applications/misc/bb/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/bleachbit/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/blender/default.nix+13−3
This diff is too big to show here.
pkgs/applications/misc/buku/default.nix+11−6
This diff is too big to show here.
pkgs/applications/misc/calibre/default.nix+4−12
This diff is too big to show here.
pkgs/applications/misc/calibre/disable_plugins.patchnew file+17
This diff is too big to show here.
pkgs/applications/misc/calibre/no_updates_dialog.patchnew file+27
This diff is too big to show here.
pkgs/applications/misc/cataract/build.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/cbatticon/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/cheat/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/cherrytree/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/chirp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/cli-visualizer/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/confclerk/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/copyq/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/coursera-dl/default.nixnew file+41
This diff is too big to show here.
pkgs/applications/misc/cpp-ethereum/default.nix+1
This diff is too big to show here.
pkgs/applications/misc/ctodo/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/curabydagoma/default.nixnew file+76
This diff is too big to show here.
pkgs/applications/misc/dbeaver/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/deco/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/djvulibre/default.nix+2−4
This diff is too big to show here.
pkgs/applications/misc/dmenu/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/electron-cash/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/electrum-dash/default.nix → pkgs/applications/misc/electrum/dash.nixrenamed
The content is the same.
pkgs/applications/misc/electrum/default.nix+2−11
This diff is too big to show here.
pkgs/applications/misc/electrum-ltc/default.nix → pkgs/applications/misc/electrum/ltc.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/misc/et/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/far2l/add-nix-syntax-highlighting.patch+3−3
This diff is too big to show here.
pkgs/applications/misc/far2l/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/girara/default.nix+7−24
This diff is too big to show here.
pkgs/applications/misc/gkrellm/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/gmtp/default.nix+6−2
This diff is too big to show here.
pkgs/applications/misc/gnome-usage/default.nixnew file+37
This diff is too big to show here.
pkgs/applications/misc/gnuradio-ais/default.nix → pkgs/applications/misc/gnuradio/ais.nixrenamed
The content is the same.
pkgs/applications/misc/gnuradio-gsm/default.nix → pkgs/applications/misc/gnuradio/gsm.nixrenamed
The content is the same.
pkgs/applications/misc/gnuradio-nacl/default.nix → pkgs/applications/misc/gnuradio/nacl.nixrenamed
The content is the same.
pkgs/applications/misc/gnuradio-osmosdr/default.nix → pkgs/applications/misc/gnuradio/osmosdr.nixrenamed
The content is the same.
pkgs/applications/misc/gnuradio-rds/default.nix → pkgs/applications/misc/gnuradio/rds.nixrenamed
The content is the same.
pkgs/applications/misc/go-jira/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/misc/googler/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/gosmore/default.nix+3
This diff is too big to show here.
pkgs/applications/misc/gosmore/pointer_int_comparison.patchnew file+11
This diff is too big to show here.
pkgs/applications/misc/gphoto2/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/gpx/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/misc/gqrx/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/gramps/default.nix+7−16
This diff is too big to show here.
pkgs/applications/misc/guake/default.nix+20−58
This diff is too big to show here.
pkgs/applications/misc/gv/default.nix+14−3
This diff is too big to show here.
pkgs/applications/misc/haxor-news/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/houdini/runtime.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/hr/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/hstr/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/hubstaff/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/hyper/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/jekyll/basic/Gemfile.lock+5−5
This diff is too big to show here.
pkgs/applications/misc/jekyll/basic/gemset.nix+10−10
This diff is too big to show here.
pkgs/applications/misc/jekyll/full/Gemfile.lock+7−7
This diff is too big to show here.
pkgs/applications/misc/jekyll/full/gemset.nix+14−14
This diff is too big to show here.
pkgs/applications/misc/jekyll/update.shnew file+15
This diff is too big to show here.
pkgs/applications/misc/jgmenu/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/josm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/k2pdfopt/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/kdeconnect/default.nix+5−4
This diff is too big to show here.
pkgs/applications/misc/keepassx/community.nix+15−4
This diff is too big to show here.
pkgs/applications/misc/khal/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/khard/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/kitty/default.nix+10−4
This diff is too big to show here.
pkgs/applications/misc/latte-dock/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/lyx/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/masterpdfeditor/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/mdp/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/mediainfo-gui/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/mediainfo/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/minergate/default.nixnew file+39
This diff is too big to show here.
pkgs/applications/misc/mucommander/default.nixnew file+82
This diff is too big to show here.
pkgs/applications/misc/multimon-ng/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/mupdf/default.nix+43−1
This diff is too big to show here.
pkgs/applications/misc/mupdf/default.upstream+1−1
This diff is too big to show here.
pkgs/applications/misc/mwic/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/netsurf/buildsystem/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/netsurf/libcss/default.nix+2
This diff is too big to show here.
pkgs/applications/misc/nixnote2/default.nix+6
This diff is too big to show here.
pkgs/applications/misc/octoprint/default.nix+3
This diff is too big to show here.
pkgs/applications/misc/onboard/default.nix+1
This diff is too big to show here.
pkgs/applications/misc/oneko/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/orca/default.nix+6−5
This diff is too big to show here.
pkgs/applications/misc/overmind/default.nixnew file+27
This diff is too big to show here.
pkgs/applications/misc/pcmanfm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/pcmanx-gtk2/default.nix+12−6
This diff is too big to show here.
pkgs/applications/misc/pgmanage/default.nix+10−2
This diff is too big to show here.
pkgs/applications/misc/playonlinux/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/posterazor/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/projectlibre/default.nixnew file+44
This diff is too big to show here.
pkgs/applications/misc/pytrainer/default.nix+9−5
This diff is too big to show here.
pkgs/applications/misc/qlcplus/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/qmapshack/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/qsyncthingtray/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/qtbitcointrader/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/redis-desktop-manager/default.nix+7−11
This diff is too big to show here.
pkgs/applications/misc/rofi/config.patchnew file+54
This diff is too big to show here.
pkgs/applications/misc/rofi/default.nix+14−6
This diff is too big to show here.
pkgs/applications/misc/rofi/wrapper.nixnew file+17
This diff is too big to show here.
pkgs/applications/misc/rsibreak/default.nixnew file+28
This diff is too big to show here.
pkgs/applications/misc/rtv/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/safeeyes/default.nixnew file+71
This diff is too big to show here.
pkgs/applications/misc/sc-im/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/sdcv/default.nix+1−2
This diff is too big to show here.
pkgs/applications/misc/sent/default.nix+6−2
This diff is too big to show here.
pkgs/applications/misc/sigal/default.nix+4−2
This diff is too big to show here.
pkgs/applications/misc/simplenote/default.nix+4−3
This diff is too big to show here.
pkgs/applications/misc/slade/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/slade/git.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/sleepyhead/default.nixnew file+42
This diff is too big to show here.
pkgs/applications/misc/slic3r-prusa3d/default.nix → pkgs/applications/misc/slic3r/prusa3d.nixrenamed+8−3
This diff is too big to show here.
pkgs/applications/misc/slstatus/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/misc/spacefm/default.nix+6−2
This diff is too big to show here.
pkgs/applications/misc/st/default.nix+8−7
This diff is too big to show here.
pkgs/applications/misc/st/st-fix-deletekey.patchdeleted−15
This diff is too big to show here.
pkgs/applications/misc/stag/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/stupidterm/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/synapse/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/tasknc/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/tasksh/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/terminator/default.nix+6−10
This diff is too big to show here.
pkgs/applications/misc/terminus/default.nixnew file+43
This diff is too big to show here.
pkgs/applications/misc/teseq/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/misc/timewarrior/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/todiff/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/misc/todolist/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/misc/toot/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/translate-shell/default.nix+18−81
This diff is too big to show here.
pkgs/applications/misc/urh/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/urlscan/default.nix+7−4
This diff is too big to show here.
pkgs/applications/misc/veracrypt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/vit/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/weather/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/wmname/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/wordnet/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/workrave/default.nix+10−19
This diff is too big to show here.
pkgs/applications/misc/xca/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xfe/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xfontsel/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xmr-stak/default.nix+11−6
This diff is too big to show here.
pkgs/applications/misc/xmrig/default.nixnew file+33
This diff is too big to show here.
pkgs/applications/misc/xmrig/proxy.nixnew file+34
This diff is too big to show here.
pkgs/applications/misc/xpdf/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/xterm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xtermcontrol/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/yaft/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/yakuake/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/yate/default.nix+5−4
This diff is too big to show here.
pkgs/applications/misc/zathura/core/default.nix+23−33
This diff is too big to show here.
pkgs/applications/misc/zathura/core/icon.xpmdeleted−120
This diff is too big to show here.
pkgs/applications/misc/zathura/djvu/default.nix+7−16
This diff is too big to show here.
pkgs/applications/misc/zathura/djvu/gtkflags.patchdeleted−23
This diff is too big to show here.
pkgs/applications/misc/zathura/pdf-mupdf/default.nix+8−15
This diff is too big to show here.
pkgs/applications/misc/zathura/pdf-poppler/default.nix+7−14
This diff is too big to show here.
pkgs/applications/misc/zathura/ps/default.nix+8−17
This diff is too big to show here.
pkgs/applications/misc/zathura/ps/gtkflags.patchdeleted−23
This diff is too big to show here.
pkgs/applications/misc/zathura/wrapper.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/common.nix+20−18
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/patches/chromium-gcc5-r4.patchdeleted−98
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/patches/constexpr-fix.patchdeleted−98
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/patches/fix_network_api_crash.patchdeleted−77
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/patches/include-math-for-round.patchdeleted−34
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/patches/skia_buildfix.patchnew file+22
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/plugins.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
This diff is too big to show here.
pkgs/applications/networking/browsers/dwb/default.nixdeleted−35
This diff is too big to show here.
pkgs/applications/networking/browsers/eolie/0001-Remove-post-install-script-handle-in-nix-config-inst.patchdeleted−23
This diff is too big to show here.
pkgs/applications/networking/browsers/eolie/default.nix+8−9
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix+399−389
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/default.nix+5−3
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix+399−389
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/release_sources.nix+395−385
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/update.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/common.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/fix-pa-context-connect-retval.patchnew file+26
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/packages.nix+49−34
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/update.nix+4−2
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/wrapper.nix+8−4
This diff is too big to show here.
pkgs/applications/networking/browsers/google-chrome/default.nix+7−10
This diff is too big to show here.
pkgs/applications/networking/browsers/links2/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/luakit/default.nixnew file+61
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix+6−6
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix+5−5
This diff is too big to show here.
pkgs/applications/networking/browsers/otter/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/palemoon/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/browsers/qutebrowser/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/c14/default.nix+4−5
This diff is too big to show here.
pkgs/applications/networking/cluster/click/default.nixnew file+28
This diff is too big to show here.
pkgs/applications/networking/cluster/cni/default.nix+3−6
This diff is too big to show here.
pkgs/applications/networking/cluster/cni/plugins.nixnew file+33
This diff is too big to show here.
pkgs/applications/networking/cluster/docker-machine/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/flink/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/helm/default.nix+6−5
This diff is too big to show here.
pkgs/applications/networking/cluster/heptio-ark/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/networking/cluster/kontemplate/default.nix+25−16
This diff is too big to show here.
pkgs/applications/networking/cluster/kontemplate/deps.nix+42−51
This diff is too big to show here.
pkgs/applications/networking/cluster/kubernetes/default.nix+13−4
This diff is too big to show here.
pkgs/applications/networking/cluster/mesos/default.nix+17−13
This diff is too big to show here.
pkgs/applications/networking/cluster/minikube/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/cluster/openshift/default.nix+42−17
This diff is too big to show here.
pkgs/applications/networking/cluster/pig/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/spark/default.nix+11−13
This diff is too big to show here.
pkgs/applications/networking/cluster/taktuk/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-provider-libvirt/default.nixnew file+47
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-provider-libvirt/deps.nixnew file+12
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-provider-nixos/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform/default.nix+7−3
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform/providers/data.nix+66−52
This diff is too big to show here.
pkgs/applications/networking/cluster/terragrunt/default.nix+5−5
This diff is too big to show here.
pkgs/applications/networking/cluster/terragrunt/deps.nix+16−16
This diff is too big to show here.
pkgs/applications/networking/compactor/default.nixnew file+52
This diff is too big to show here.
pkgs/applications/networking/corebird/default.nix+14−10
This diff is too big to show here.
pkgs/applications/networking/dropbox-cli/default.nix → pkgs/applications/networking/dropbox/cli.nixrenamed
The content is the same.
pkgs/applications/networking/dropbox/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/enhanced-ctorrent/default.nix+14−1
This diff is too big to show here.
pkgs/applications/networking/errbot/default.nix+3−1
This diff is too big to show here.
pkgs/applications/networking/feedreaders/newsbeuter/default.nixdeleted−61
This diff is too big to show here.
pkgs/applications/networking/feedreaders/newsboat/default.nix+4−2
This diff is too big to show here.
pkgs/applications/networking/firehol/default.nix+32−3
This diff is too big to show here.
pkgs/applications/networking/flexget/default.nix+53−61
This diff is too big to show here.
pkgs/applications/networking/gmailieer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/gns3/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/google-drive-ocamlfuse/default.nix+6−7
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/baresip/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/blink/default.nix+7−6
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/dino/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/gajim/default.nix+38−97
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/hipchat/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/nheko/default.nixnew file+83
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/nheko/external-deps.patchnew file+94
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/nheko/fetchurls.patchnew file+21
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-discord/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-hangouts/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/telegram-purple/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/profanity/default.nix+27−8
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/profanity/patches/packages-osx.patchnew file+11
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/profanity/patches/undefined-macros.patchnew file+40
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/psi-plus/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/ring-daemon/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/signal-desktop/beta.nix+7−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/signal-desktop/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/slack/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+16−129
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nixnew file+140
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telepathy/gabble/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/wire-desktop/default.nixnew file+104
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+13−3
This diff is too big to show here.
pkgs/applications/networking/ipfs/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/irc/bip/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/irc/ii/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/irc/irssi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/irc/sic/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/irc/weechat/default.nix+9−1
This diff is too big to show here.
pkgs/applications/networking/mailreaders/balsa/default.nixnew file+61
This diff is too big to show here.
pkgs/applications/networking/mailreaders/imapfilter.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/inboxer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/lumail/default.nix+42−10
This diff is too big to show here.
pkgs/applications/networking/mailreaders/mutt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/neomutt/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/mailreaders/notmuch/default.nix+4−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/sylpheed/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird-bin/release_sources.nix+237−237
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/newsreaders/liferea/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/newsreaders/pan/default.nix+23−8
This diff is too big to show here.
pkgs/applications/networking/newsreaders/quiterss/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/nextcloud-client/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/offrss/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/ostinato/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/p2p/frostwire/default.nix+69−13
This diff is too big to show here.
pkgs/applications/networking/p2p/frostwire/frostwire-bin.nixnew file+31
This diff is too big to show here.
pkgs/applications/networking/p2p/soulseekqt/default.nixnew file+55
This diff is too big to show here.
pkgs/applications/networking/p2p/tixati/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/remote/citrix-receiver/default.nix+24−13
This diff is too big to show here.
pkgs/applications/networking/remote/freerdp/default.nix+6−6
This diff is too big to show here.
pkgs/applications/networking/remote/teamviewer/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/resilio-sync/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/seafile-client/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/sniffers/wireshark/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/spideroak/default.nix+7−7
This diff is too big to show here.
pkgs/applications/networking/sync/backintime/common.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/sync/backintime/qt4.nix+4−1
This diff is too big to show here.
pkgs/applications/networking/sync/rclone/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/syncplay/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/syncthing-gtk/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/syncthing/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/testssl/default.nix+22−17
This diff is too big to show here.
pkgs/applications/networking/testssl/testssl.patchdeleted−10
This diff is too big to show here.
pkgs/applications/networking/vnstat/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/znc/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/abiword/default.nix+9−12
This diff is too big to show here.
pkgs/applications/office/beancount/bean-add.nix+1−1
This diff is too big to show here.
pkgs/applications/office/calligra/default.nix+2−10
This diff is too big to show here.
pkgs/applications/office/cb2bib/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/fava/default.nix+3−3
This diff is too big to show here.
pkgs/applications/office/gnumeric/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/homebank/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/kexi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/libreoffice/default.nix+1−1
This diff is too big to show here.
pkgs/applications/office/libreoffice/still-primary-src.nix+3−3
This diff is too big to show here.
pkgs/applications/office/libreoffice/still.nix+9−4
This diff is too big to show here.
pkgs/applications/office/libreoffice/wrapper.nixnew file+16
This diff is too big to show here.
pkgs/applications/office/libreoffice/wrapper.shnew file+18
This diff is too big to show here.
pkgs/applications/office/marp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/mendeley/default.nix+4−5
This diff is too big to show here.
pkgs/applications/office/mendeley/update.nix+2−2
This diff is too big to show here.
pkgs/applications/office/skrooge/default.nix+12−4
This diff is too big to show here.
pkgs/applications/office/spice-up/default.nix+2−6
This diff is too big to show here.
pkgs/applications/office/todo.txt-cli/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/wordgrinder/default.nix+1−1
This diff is too big to show here.
pkgs/applications/office/zim/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/zotero/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/astronomy/celestia/default.nix+5−7
This diff is too big to show here.
pkgs/applications/science/biology/EZminc/default.nixnew file+32
This diff is too big to show here.
pkgs/applications/science/biology/N3/default.nixnew file+38
This diff is too big to show here.
pkgs/applications/science/biology/bcftools/default.nix+4−6
This diff is too big to show here.
pkgs/applications/science/biology/igv/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/inormalize/default.nixnew file+39
This diff is too big to show here.
pkgs/applications/science/biology/inormalize/lgmask-interp.patchnew file+10
This diff is too big to show here.
pkgs/applications/science/biology/inormalize/nu_correct_norm-interp.patchnew file+10
This diff is too big to show here.
pkgs/applications/science/biology/minc-tools/default.nix+17−10
This diff is too big to show here.
pkgs/applications/science/biology/minc-widgets/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/science/biology/mni_autoreg/default.nixnew file+36
This diff is too big to show here.
pkgs/applications/science/biology/paml/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/picard-tools/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/samtools/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/snpeff/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/chemistry/jmol/default.nixnew file+44
This diff is too big to show here.
pkgs/applications/science/chemistry/octopus/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/electronics/gtkwave/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/electronics/kicad/unstable.nix+7−5
This diff is too big to show here.
pkgs/applications/science/electronics/ngspice/default.nix+8−7
This diff is too big to show here.
pkgs/applications/science/electronics/pulseview/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/electronics/verilator/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/abella/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/aspino/default.nix+19−7
This diff is too big to show here.
pkgs/applications/science/logic/beluga/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/science/logic/coq/default.nix+7−6
This diff is too big to show here.
pkgs/applications/science/logic/elan/default.nixnew file+44
This diff is too big to show here.
pkgs/applications/science/logic/ltl2ba/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/mcrl2/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/logic/picosat/default.nix+3
This diff is too big to show here.
pkgs/applications/science/logic/potassco/clingo.nix+8−5
This diff is too big to show here.
pkgs/applications/science/logic/symbiyosys/default.nix+5−5
This diff is too big to show here.
pkgs/applications/science/logic/tamarin-prover/default.nix+6−3
This diff is too big to show here.
pkgs/applications/science/logic/tlaplus/tlaps.nixnew file+56
This diff is too big to show here.
pkgs/applications/science/logic/tlaplus/toolbox.nixnew file+77
This diff is too big to show here.
pkgs/applications/science/logic/tptp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/workcraft/default.nixnew file+33
This diff is too big to show here.
pkgs/applications/science/logic/z3/4.5.0.nixdeleted−31
This diff is too big to show here.
pkgs/applications/science/machine-learning/shogun/default.nix+15−7
This diff is too big to show here.
pkgs/applications/science/machine-learning/torch/torch-distro.nix+2
This diff is too big to show here.
pkgs/applications/science/math/R/default.nix+4−3
This diff is too big to show here.
pkgs/applications/science/math/bcal/default.nix+3−4
This diff is too big to show here.
pkgs/applications/science/math/calc/default.nix+34−32
This diff is too big to show here.
pkgs/applications/science/math/ecm/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/math/fricas/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/gap/default.nix+70−15
This diff is too big to show here.
pkgs/applications/science/math/geogebra/default.nix+4−8
This diff is too big to show here.
pkgs/applications/science/math/gfan/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/giac/default.nix+23−6
This diff is too big to show here.
pkgs/applications/science/math/ginac/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/gmsh/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/jags/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/lrcalc/default.nixnew file+41
This diff is too big to show here.
pkgs/applications/science/math/mathematica/default.nix+9−14
This diff is too big to show here.
pkgs/applications/science/math/mathematica/l10ns.nixnew file+33
This diff is too big to show here.
pkgs/applications/science/math/maxima/default.nix+44−10
This diff is too big to show here.
pkgs/applications/science/math/maxima/known-ecl-failures.patchnew file+21
This diff is too big to show here.
pkgs/applications/science/math/nasc/default.nixnew file+71
This diff is too big to show here.
pkgs/applications/science/math/palp/default.nixnew file+67
This diff is too big to show here.
pkgs/applications/science/math/pari/default.nix+16−4
This diff is too big to show here.
pkgs/applications/science/math/pari/gp2c.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/pari/unstable.nixdeleted−31
This diff is too big to show here.
pkgs/applications/science/math/pynac/default.nixnew file+47
This diff is too big to show here.
pkgs/applications/science/math/qalculate-gtk/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/sage/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/math/scilab-bin/default.nix+7−7
This diff is too big to show here.
pkgs/applications/science/math/singular/default.nix+67−23
This diff is too big to show here.
pkgs/applications/science/math/weka/default.nix+7−11
This diff is too big to show here.
pkgs/applications/science/misc/cytoscape/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/misc/gephi/default.nix+54−27
This diff is too big to show here.
pkgs/applications/science/misc/motu-client/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/misc/openmvg/default.nix+1
This diff is too big to show here.
pkgs/applications/science/misc/openmvs/default.nix+3−4
This diff is too big to show here.
pkgs/applications/science/misc/sasview/default.nixnew file+60
This diff is too big to show here.
pkgs/applications/science/misc/sasview/local_config.patchnew file+10
This diff is too big to show here.
pkgs/applications/science/misc/sasview/pyparsing-fix.patchnew file+8
This diff is too big to show here.
pkgs/applications/science/misc/sasview/xhtml2pdf.nixnew file+32
This diff is too big to show here.
pkgs/applications/science/molecular-dynamics/gromacs/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/robotics/qgroundcontrol/default.nix+4−4
This diff is too big to show here.
pkgs/applications/science/robotics/yarp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/spyder/default.nix+2−2
This diff is too big to show here.
pkgs/applications/search/catfish/default.nix+1−1
This diff is too big to show here.
pkgs/applications/search/grepcidr/default.nixnew file+21
This diff is too big to show here.
pkgs/applications/version-management/bazaar/default.nix+10−2
This diff is too big to show here.
pkgs/applications/version-management/bugseverywhere/default.nix+1−1
This diff is too big to show here.
pkgs/applications/version-management/cvs/default.nix+5−1
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/cgit/default.nix+5−1
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/default.nix+8−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-dit/default.nix+1−1
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-extras/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-open/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-radar/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-recent/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-secret/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git/default.nix+39−30
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git/git-sh-i18n.patch+4−4
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/gitweb/default.nixnew file+37
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/hub/unstable.nixnew file+36
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/stgit/default.nix+4−3
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/svn-all-fast-export/default.nix+2−4
This diff is too big to show here.
pkgs/applications/version-management/git-review/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-sizer/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/version-management/gitaly/Gemfile+9−2
This diff is too big to show here.
pkgs/applications/version-management/gitaly/Gemfile.lock+41−18
This diff is too big to show here.
pkgs/applications/version-management/gitaly/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitaly/gemset.nix+92−23
This diff is too big to show here.
pkgs/applications/version-management/gitea/default.nix+3−3
This diff is too big to show here.
pkgs/applications/version-management/gitkraken/default.nix+6−3
This diff is too big to show here.
pkgs/applications/version-management/gitlab-shell/default.nix+5−25
This diff is too big to show here.
pkgs/applications/version-management/gitlab-shell/fixes.patch+3−4
This diff is too big to show here.
pkgs/applications/version-management/gitlab-shell/remove-hardcoded-locations.patch+15−28
This diff is too big to show here.
pkgs/applications/version-management/gitlab-workhorse/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitlab/Gemfile+35−21
This diff is too big to show here.
pkgs/applications/version-management/gitlab/Gemfile.lock+79−58
This diff is too big to show here.
pkgs/applications/version-management/gitlab/default.nix+8−7
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gemset.nix+126−73
This diff is too big to show here.
pkgs/applications/version-management/gitlab/nulladapter.patchdeleted−33
This diff is too big to show here.
pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch+29−33
This diff is too big to show here.
pkgs/applications/version-management/gitless/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gogs/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gource/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/mercurial/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/nbstripout/default.nix+24−5
This diff is too big to show here.
pkgs/applications/version-management/p4v/default.nixnew file+48
This diff is too big to show here.
pkgs/applications/version-management/sit/default.nix+4−4
This diff is too big to show here.
pkgs/applications/version-management/src/default.nix+12−4
This diff is too big to show here.
pkgs/applications/version-management/tortoisehg/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/vcsh/default.nix+10−17
This diff is too big to show here.
pkgs/applications/video/avidemux/default.nix+12−3
This diff is too big to show here.
pkgs/applications/video/avxsynth/default.nix+1
This diff is too big to show here.
pkgs/applications/video/clipgrab/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/dvb-apps/default.nix+1
This diff is too big to show here.
pkgs/applications/video/handbrake/default.nix+20−17
This diff is too big to show here.
pkgs/applications/video/kazam/bug_1190693.patchdeleted−14
This diff is too big to show here.
pkgs/applications/video/kazam/datadir.patchdeleted−11
This diff is too big to show here.
pkgs/applications/video/kazam/default.nix+28−33
This diff is too big to show here.
pkgs/applications/video/kazam/fix-paths.patchnew file+22
This diff is too big to show here.
pkgs/applications/video/kodi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/kodi/plugins.nix+25−1
This diff is too big to show here.
pkgs/applications/video/mkvtoolnix/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/mpc-qt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/mpv/default.nix+9−9
This diff is too big to show here.
pkgs/applications/video/mythtv/default.nix+17−12
This diff is too big to show here.
pkgs/applications/video/obs-studio/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/openshot-qt/libopenshot-audio.nix+2−2
This diff is too big to show here.
pkgs/applications/video/openshot-qt/libopenshot.nix+2−2
This diff is too big to show here.
pkgs/applications/video/peek/default.nix+7−3
This diff is too big to show here.
pkgs/applications/video/pitivi/default.nix+40−21
This diff is too big to show here.
pkgs/applications/video/pitivi/prevent-closure-contamination.patchnew file+23
This diff is too big to show here.
pkgs/applications/video/simplescreenrecorder/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/smplayer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/smtube/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/vlc/default.nix+1−3
This diff is too big to show here.
pkgs/applications/video/w_scan/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/xine-ui/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/OVMF/default.nix+39−20
This diff is too big to show here.
pkgs/applications/virtualization/containerd/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/docker/default.nix+18−18
This diff is too big to show here.
pkgs/applications/virtualization/docker-distribution/default.nix → pkgs/applications/virtualization/docker/distribution.nixrenamed
The content is the same.
pkgs/applications/virtualization/dynamips/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/lkl/default.nix+5−4
This diff is too big to show here.
pkgs/applications/virtualization/qemu/default.nix+44−6
This diff is too big to show here.
pkgs/applications/virtualization/qemu/riscv-initrd.patchdeleted−98
This diff is too big to show here.
pkgs/applications/virtualization/qemu/riscv.nix+17−9
This diff is too big to show here.
pkgs/applications/virtualization/rkt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/runc/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/singularity/default.nix+5−2
This diff is too big to show here.
pkgs/applications/virtualization/tini/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/virt-manager/qt.nix+4−6
This diff is too big to show here.
pkgs/applications/virtualization/virt-top/default.nix+7−5
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/HostServices-SharedClipboard-x11-stub.cpp-use-RT_NOR.patchdeleted−153
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/default.nix+4−6
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+1−1
This diff is too big to show here.
pkgs/applications/virtualization/xen/4.10.nixnew file+176
This diff is too big to show here.
pkgs/applications/virtualization/xen/4.5.nix+4
This diff is too big to show here.
pkgs/applications/virtualization/xen/4.8.nix+33−23
This diff is too big to show here.
pkgs/applications/virtualization/xen/generic.nix+4−3
This diff is too big to show here.
pkgs/applications/virtualization/xen/packages.nix+50−4
This diff is too big to show here.
pkgs/applications/virtualization/xen/xsa-patches.nix+69
This diff is too big to show here.
pkgs/applications/window-managers/bspwm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/dwm/default.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/i3/default.nix+3−3
This diff is too big to show here.
pkgs/applications/window-managers/i3/gaps.nix+3−3
This diff is too big to show here.
pkgs/applications/window-managers/i3/pystatus.nix+12−7
This diff is too big to show here.
pkgs/applications/window-managers/i3/status-rust.nix+3−3
This diff is too big to show here.
pkgs/applications/window-managers/i3/status.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/i3/wk-switch.nixnew file+32
This diff is too big to show here.
pkgs/applications/window-managers/icewm/default.nix+6−1
This diff is too big to show here.
pkgs/applications/window-managers/icewm/fix-strlcat_strlcpy.patchnew file+236
This diff is too big to show here.
pkgs/applications/window-managers/icewm/musl.patchnew file+23
This diff is too big to show here.
pkgs/applications/window-managers/sawfish/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/stumpwm/default.nix+1
This diff is too big to show here.
pkgs/applications/window-managers/sway/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/sxhkd/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/tabbed/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/trayer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/velox/dmenu.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/velox/st.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/weston/default.nix+5−5
This diff is too big to show here.
pkgs/applications/window-managers/wtftw/default.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/xmonad-log-applet/default.nix → pkgs/applications/window-managers/xmonad/log-applet/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/window-managers/xmonad-log-applet/fix-paths.patch → pkgs/applications/window-managers/xmonad/log-applet/fix-paths.patchrenamed
The content is the same.
pkgs/build-support/bintools-wrapper/default.nix+14−13
This diff is too big to show here.
pkgs/build-support/build-fhs-userenv/env.nix+4−1
This diff is too big to show here.
pkgs/build-support/build-setupcfg/default.nixnew file+25
This diff is too big to show here.
pkgs/build-support/cc-wrapper/add-flags.sh−5
This diff is too big to show here.
pkgs/build-support/cc-wrapper/default.nix+12−38
This diff is too big to show here.
pkgs/build-support/cc-wrapper/gnat-wrapper.shdeleted−122
This diff is too big to show here.
pkgs/build-support/cc-wrapper/gnatlink-wrapper.shdeleted−40
This diff is too big to show here.
pkgs/build-support/cc-wrapper/utils.sh+5−1
This diff is too big to show here.
pkgs/build-support/docker/default.nix+34−11
This diff is too big to show here.
pkgs/build-support/docker/examples.nix+8
This diff is too big to show here.
pkgs/build-support/docker/tarsum.go+1−1
This diff is too big to show here.
pkgs/build-support/emacs/buffer.nix+2
This diff is too big to show here.
pkgs/build-support/fetchcvs/builder.sh+5
This diff is too big to show here.
pkgs/build-support/fetchcvs/default.nix+3−3
This diff is too big to show here.
pkgs/build-support/fetchurl/mirrors.nix+1−1
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/add-flagsdeleted−28
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/builder.shdeleted−215
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/default.nixdeleted−76
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/gcc-wrapper-old.shdeleted−146
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/gcc-wrapper.shdeleted−147
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/gnat-wrapper.shdeleted−113
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/gnatlink-wrapper.shdeleted−43
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/ld-solaris-wrapper.shdeleted−40
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/ld-wrapper.shdeleted−166
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/setup-hook.shdeleted−33
This diff is too big to show here.
pkgs/build-support/gcc-wrapper-old/utils.shdeleted−26
This diff is too big to show here.
pkgs/build-support/kernel/modules-closure.nix+1−1
This diff is too big to show here.
pkgs/build-support/kernel/modules-closure.sh+14
This diff is too big to show here.
pkgs/build-support/rust/build-rust-crate.nix+29−22
This diff is too big to show here.
pkgs/build-support/rust/carnix.nix+865−808
This diff is too big to show here.
pkgs/build-support/rust/default.nix+2−2
This diff is too big to show here.
pkgs/build-support/singularity-tools/default.nix+1
This diff is too big to show here.
pkgs/build-support/trivial-builders.nix+1
This diff is too big to show here.
pkgs/build-support/vm/default.nix+9−9
This diff is too big to show here.
pkgs/common-updater/scripts/update-source-version+19−2
This diff is too big to show here.
pkgs/data/documentation/stdman/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/babelstone-han/default.nix+4−4
This diff is too big to show here.
pkgs/data/fonts/dejavu-fonts/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/emojione/default.nix+1−1
This diff is too big to show here.
pkgs/data/fonts/gentium-book-basic/default.nix+1−1
This diff is too big to show here.
pkgs/data/fonts/iosevka/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/nerdfonts/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/scheherazade/default.nixnew file+43
This diff is too big to show here.
pkgs/data/fonts/tex-gyre-math/default.nix+37−34
This diff is too big to show here.
pkgs/data/fonts/twemoji-color-font/default.nix+5−1
This diff is too big to show here.
pkgs/data/icons/papirus-icon-theme/default.nix+2−2
This diff is too big to show here.
pkgs/data/misc/brise/default.nix+1−1
This diff is too big to show here.
pkgs/data/misc/cacert/default.nix+8−2
This diff is too big to show here.
pkgs/data/misc/hackage/default.nix+2−2
This diff is too big to show here.
pkgs/data/misc/iana-etc/default.nix+2−2
This diff is too big to show here.
pkgs/data/misc/libkkc-data/default.nixnew file+22
This diff is too big to show here.
pkgs/data/misc/osinfo-db/default.nix+2−2
This diff is too big to show here.
pkgs/data/misc/poppler-data/default.nix+4−8
This diff is too big to show here.
pkgs/data/misc/scowl/default.nix+14−6
This diff is too big to show here.
pkgs/data/misc/tzdata/default.nix+16−1
This diff is too big to show here.
pkgs/data/sgml+xml/schemas/docbook-5.0/default.nix+1−1
This diff is too big to show here.
pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/default.nix+2−1
This diff is too big to show here.
pkgs/data/sgml+xml/stylesheets/xslt/docbook-xsl/docbook-xsl-ns-infinite.patchnew file+30
This diff is too big to show here.
pkgs/desktops/deepin/deepin-gtk-theme/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/default.nix+4−7
This diff is too big to show here.
pkgs/desktops/enlightenment/econnman.nix+2−3
This diff is too big to show here.
pkgs/desktops/enlightenment/efl.nix+11−5
This diff is too big to show here.
pkgs/desktops/enlightenment/enlightenment.nix+2−2
This diff is too big to show here.
pkgs/desktops/enlightenment/ephoto.nix+2−6
This diff is too big to show here.
pkgs/desktops/enlightenment/rage.nix+2−7
This diff is too big to show here.
pkgs/desktops/enlightenment/terminology.nix+1−8
This diff is too big to show here.
pkgs/desktops/gnome-2/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/gnome-2/desktop/gnome-control-center/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-2/desktop/gtksourceview/default.nix+2
This diff is too big to show here.
pkgs/desktops/gnome-2/desktop/rarian/default.nixdeleted−12
This diff is too big to show here.
pkgs/desktops/gnome-2/desktop/zenity/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-2/platform/ORBit2/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-2/platform/gtkglext/default.nix+15−4
This diff is too big to show here.
pkgs/desktops/gnome-2/platform/libglade/default.nix−2
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/accerciser/default.nix+5−2
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/bijiben/default.nix+31−27
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/bijiben/no-update-icon-cache.patchdeleted−22
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/cheese/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/evolution/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/file-roller/default.nix+21−12
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gedit/default.nix+18−19
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/glade/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix+28−22
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-calendar/default.nix+13−10
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-characters/default.nix+18−9
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-clocks/default.nix+9−7
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-documents/default.nix+30−21
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-getting-started-docs/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-logs/default.nix+12−12
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-maps/default.nix+25−18
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-music/default.nix+34−23
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-photos/default.nix+30−25
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-power-manager/default.nix+12−11
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-weather/default.nix+11−8
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/nautilus-sendto/default.nix+13−4
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/polari/default.nix+20−19
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/seahorse/default.nix+19−20
This diff is too big to show here.
pkgs/desktops/gnome-3/core/adwaita-icon-theme/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/baobab/default.nix+20−20
This diff is too big to show here.
pkgs/desktops/gnome-3/core/dconf-editor/default.nix+22−13
This diff is too big to show here.
pkgs/desktops/gnome-3/core/dconf/default.nix+10−10
This diff is too big to show here.
pkgs/desktops/gnome-3/core/empathy/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/eog/default.nix+28−16
This diff is too big to show here.
pkgs/desktops/gnome-3/core/epiphany/default.nix+20−25
This diff is too big to show here.
pkgs/desktops/gnome-3/core/evince/default.nix+5−5
This diff is too big to show here.
pkgs/desktops/gnome-3/core/evolution-data-server/default.nix+19−13
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gcr/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gdm/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/geocode-glib/default.nix+23−9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/geocode-glib/installed-tests-path.patchnew file+8
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gjs/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-backgrounds/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-bluetooth/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-calculator/default.nix+26−16
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-color-manager/default.nixnew file+30
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-contacts/default.nix+8−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-control-center/default.nix+33−27
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-control-center/paths.patchnew file+82
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-desktop/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-dictionary/default.nix+11−9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-disk-utility/default.nix+12−10
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-font-viewer/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-keyring/default.nix+5−6
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-online-accounts/default.nix+19−16
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-screenshot/default.nix+18−18
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-screenshot/prevent-cache-updates.patchdeleted−21
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-session/default.nix+32−17
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-settings-daemon/default.nix+37−18
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-settings-daemon/fix-paths.patchnew file+15
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-shell-extensions/default.nix+40−9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-shell-extensions/fix_gmenu.patchnew file+24
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-shell/default.nix+44−30
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-shell/fix-paths.patch+11−18
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-software/default.nix+5−8
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-software/fix-paths.patch+1−1
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-system-log/default.nix+16−19
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-system-monitor/default.nix+19−21
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-terminal/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-themes-extra/default.nixnew file+28
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-themes-standard/default.nixdeleted−25
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-user-docs/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gnome-user-share/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gtksourceviewmm/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gucharmap/default.nix+4−9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/libgepub/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/libgweather/default.nix+33−18
This diff is too big to show here.
pkgs/desktops/gnome-3/core/libzapojit/default.nix+5−3
This diff is too big to show here.
pkgs/desktops/gnome-3/core/mutter/default.nix+2−11
This diff is too big to show here.
pkgs/desktops/gnome-3/core/nautilus/default.nix+23−19
This diff is too big to show here.
pkgs/desktops/gnome-3/core/simple-scan/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/sushi/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/totem-pl-parser/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/totem/default.nix+17−15
This diff is too big to show here.
pkgs/desktops/gnome-3/core/tracker-miners/default.nix+13−8
This diff is too big to show here.
pkgs/desktops/gnome-3/core/tracker-miners/fix-paths.patch+9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/tracker/default.nix+16−9
This diff is too big to show here.
pkgs/desktops/gnome-3/core/vino/default.nix+16−22
This diff is too big to show here.
pkgs/desktops/gnome-3/core/vte/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/yelp-tools/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/yelp-xsl/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/yelp/default.nix+15−16
This diff is too big to show here.
pkgs/desktops/gnome-3/core/zenity/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/default.nix+18−19
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/anjuta/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/devhelp/default.nix+16−12
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/gdl/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/gnome-devel-docs/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/dash-to-dock/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/impatience.nix+6−5
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/system-monitor.nix → pkgs/desktops/gnome-3/extensions/system-monitor/default.nixrenamed+17−6
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/system-monitor/paths_and_nonexisting_dirs.patchnew file+23
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/timepp/default.nixnew file+26
This diff is too big to show here.
pkgs/desktops/gnome-3/games/aisleriot/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/five-or-more/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/four-in-a-row/default.nix+10−10
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-chess/default.nix+16−11
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-klotski/default.nix+16−14
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-mines/default.nix+17−11
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-robots/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-sudoku/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/gnome-taquin/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/iagno/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/lightsoff/default.nix+13−11
This diff is too big to show here.
pkgs/desktops/gnome-3/games/swell-foop/default.nix+19−12
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/california/0002-Build-with-evolution-data-server-3.13.90.patchdeleted−39
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/california/default.nix+23−21
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/geary/default.nix+26−17
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gfbgraph/default.nix+6−2
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gitg/default.nix+26−14
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gnome-packagekit/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gnome-tweak-tool/default.nixdeleted−66
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gnome-tweaks/default.nixnew file+54
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gpaste/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gspell/default.nix+20−12
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/libgames-support/default.nix → pkgs/desktops/gnome-3/misc/libgnome-games-support/default.nixrenamed+7−5
This diff is too big to show here.
pkgs/desktops/gnustep/back/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnustep/base/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnustep/gorm/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnustep/gui/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnustep/make/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/lumina/default.nix+1
This diff is too big to show here.
pkgs/desktops/lxde/core/lxmenu-data.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxde/core/lxpanel/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxde/core/lxtask/default.nix+4−2
This diff is too big to show here.
pkgs/desktops/lxqt/base/libqtxdg/default.nix+5−1
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-panel/default.nix+2−1
This diff is too big to show here.
pkgs/desktops/mate/caja/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/libmatekbd/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/marco/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-applets/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-calc/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/mate/mate-control-center/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-desktop/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-icon-theme/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/mate/mate-panel/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-power-manager/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-sensors-applet/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-settings-daemon/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-themes/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/pluma/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/apps/pantheon-terminal/default.nix+2−13
This diff is too big to show here.
pkgs/desktops/plasma-5/fetch.sh+1−1
This diff is too big to show here.
pkgs/desktops/plasma-5/kgamma5.nix+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/srcs.nix+176−176
This diff is too big to show here.
pkgs/desktops/xfce/applications/orage.nix+1−1
This diff is too big to show here.
pkgs/desktops/xfce/applications/parole.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/applications/xfce4-mixer.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/applications/xfce4-screenshooter.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/thunar-build.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/thunar.nix+3−3
This diff is too big to show here.
pkgs/desktops/xfce/core/xfce4-panel.nix+4−4
This diff is too big to show here.
pkgs/desktops/xfce/core/xfce4-power-manager.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/xfce4-session.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/xfdesktop.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/xfwm4.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-clipman-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-cpufreq-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-datetime-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-dict-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix+1−1
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-embed-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-eyes-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-fsguard-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-hardware-monitor-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-mailwatch-plugin.nix+3−3
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-mpc-plugin.nix+3−3
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-namebar-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-netload-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-notes-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-systemload-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nix+5−4
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-weather-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-whiskermenu-plugin.nix+3−3
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/thunar-plugins/archive/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce4-13/automakeAddFlags.shnew file+7
This diff is too big to show here.
pkgs/desktops/xfce4-13/default.nixnew file+80
This diff is too big to show here.
pkgs/desktops/xfce4-13/exo/default.nixnew file+23
This diff is too big to show here.
pkgs/desktops/xfce4-13/exo/gtk3-only.patchnew file+28
This diff is too big to show here.
pkgs/desktops/xfce4-13/garcon/12700.patchnew file+37
This diff is too big to show here.
pkgs/desktops/xfce4-13/garcon/13785.patchnew file+75
This diff is too big to show here.
pkgs/desktops/xfce4-13/garcon/default.nixnew file+12
This diff is too big to show here.
pkgs/desktops/xfce4-13/gigolo/default.nixnew file+11
This diff is too big to show here.
pkgs/desktops/xfce4-13/libxfce4ui/default.nixnew file+18
This diff is too big to show here.
pkgs/desktops/xfce4-13/libxfce4util/default.nixnew file+16
This diff is too big to show here.
pkgs/desktops/xfce4-13/mkXfceDerivation.nixnew file+40
This diff is too big to show here.
pkgs/desktops/xfce4-13/mousepad/default.nixnew file+12
This diff is too big to show here.
pkgs/desktops/xfce4-13/orage/default.nixnew file+18
This diff is too big to show here.
pkgs/desktops/xfce4-13/parole/default.nixnew file+36
This diff is too big to show here.
pkgs/desktops/xfce4-13/ristretto/default.nixnew file+18
This diff is too big to show here.
pkgs/desktops/xfce4-13/thunar-volman/default.nixnew file+11
This diff is too big to show here.
pkgs/desktops/xfce4-13/thunar/default.nixnew file+30
This diff is too big to show here.
pkgs/desktops/xfce4-13/tumbler/default.nixnew file+14
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfburn/default.nixnew file+18
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-appfinder/default.nixnew file+12
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-dev-tools/default.nixnew file+31
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-dev-tools/setup-hook.shnew file+12
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-dict/configure-gio.patchnew file+11
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-dict/default.nixnew file+19
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-mixer/default.nixnew file+30
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-notifyd/default.nixnew file+13
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-panel/default.nixnew file+15
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-power-manager/default.nixnew file+19
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-screenshooter/default.nixnew file+11
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-settings/default.nixnew file+39
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-taskmanager/default.nixnew file+18
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-terminal/default.nixnew file+15
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfce4-volumed-pulse/default.nixnew file+15
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfconf/default.nixnew file+11
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfdesktop/default.nixnew file+22
This diff is too big to show here.
pkgs/desktops/xfce4-13/xfwm4/default.nixnew file+27
This diff is too big to show here.
pkgs/development/arduino/platformio/chrootenv.nix+29−12
This diff is too big to show here.
pkgs/development/python-modules/platformio/default.nix → pkgs/development/arduino/platformio/core.nixrenamed+5−8
This diff is too big to show here.
pkgs/development/python-modules/platformio/fix-searchpath.patch → pkgs/development/arduino/platformio/fix-searchpath.patchrenamed
The content is the same.
pkgs/development/compilers/adobe-flex-sdk/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/arachne-pnr/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/default.nixdeleted−98
This diff is too big to show here.
pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/minorSOname.patchdeleted−49
This diff is too big to show here.
pkgs/development/compilers/arm-frc-linux-gnueabi-gcc/no-nested-deprecated-warnings.patchdeleted−22
This diff is too big to show here.
pkgs/development/compilers/as31/default.nix+1−2
This diff is too big to show here.
pkgs/development/compilers/ats2/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/avian/default.nix+11−5
This diff is too big to show here.
pkgs/development/compilers/binaryen/default.nix+21−4
This diff is too big to show here.
pkgs/development/compilers/ccl/default.nix+3−12
This diff is too big to show here.
pkgs/development/compilers/closure/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/coreclr/default.nix+13−4
This diff is too big to show here.
pkgs/development/compilers/dtc/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/ecl/16.1.2.nix+18−2
This diff is too big to show here.
pkgs/development/compilers/ecl/default.nix+6
This diff is too big to show here.
pkgs/development/compilers/edk2/default.nix+16−7
This diff is too big to show here.
pkgs/development/compilers/eli/default.nixnew file+91
This diff is too big to show here.
pkgs/development/compilers/elm/default.nix+12−9
This diff is too big to show here.
pkgs/development/compilers/elm/packages/elm-package.nix+5−1
This diff is too big to show here.
pkgs/development/compilers/emscripten/default.nix+22−5
This diff is too big to show here.
pkgs/development/compilers/emscripten-fastcomp/default.nix → pkgs/development/compilers/emscripten/fastcomp/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/development/compilers/emscripten-fastcomp/emscripten-fastcomp.nix → pkgs/development/compilers/emscripten/fastcomp/emscripten-fastcomp.nixrenamed+9−8
This diff is too big to show here.
pkgs/development/compilers/fpc/lazarus.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/gambit/bootstrap.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/gambit/build.nixnew file+70
This diff is too big to show here.
pkgs/development/compilers/gambit/default.nix+5−67
This diff is too big to show here.
pkgs/development/compilers/gambit/unstable.nixnew file+11
This diff is too big to show here.
pkgs/development/compilers/gcc/4.5/default.nixdeleted−472
This diff is too big to show here.
pkgs/development/compilers/gcc/4.5/ghdl-ortho-cflags.patchdeleted−111
This diff is too big to show here.
pkgs/development/compilers/gcc/4.5/no-sys-dirs.patchdeleted−54
This diff is too big to show here.
pkgs/development/compilers/gcc/4.5/sources.nixdeleted−26
This diff is too big to show here.
pkgs/development/compilers/gcc/4.8/default.nix+2−20
This diff is too big to show here.
pkgs/development/compilers/gcc/4.9/default.nix+2−20
This diff is too big to show here.
pkgs/development/compilers/gcc/5/default.nix+2−20
This diff is too big to show here.
pkgs/development/compilers/gcc/6/default.nix+2−20
This diff is too big to show here.
pkgs/development/compilers/gcc/7/default.nix+14−22
This diff is too big to show here.
pkgs/development/compilers/gcc/7/riscv-no-relax.patchnew file+109
This diff is too big to show here.
pkgs/development/compilers/gcc/7/riscv-pthread-reentrant.patchnew file+13
This diff is too big to show here.
pkgs/development/compilers/gcc/builder.sh−2
This diff is too big to show here.
pkgs/development/compilers/gcc/gnat-cflags.patchdeleted−33
This diff is too big to show here.
pkgs/development/compilers/gcc/libstdc++-hook.sh+1−1
This diff is too big to show here.
pkgs/development/compilers/gcc/snapshot/default.nix+2−20
This diff is too big to show here.
pkgs/development/compilers/gerbil/build.nixnew file+88
This diff is too big to show here.
pkgs/development/compilers/gerbil/default.nix+7−87
This diff is too big to show here.
pkgs/development/compilers/gerbil/unstable.nixnew file+12
This diff is too big to show here.
pkgs/development/compilers/ghc/7.0.4-binary.nixdeleted−146
This diff is too big to show here.
pkgs/development/compilers/ghc/7.0.4.nixdeleted−67
This diff is too big to show here.
pkgs/development/compilers/ghc/7.4.2-binary.nixdeleted−148
This diff is too big to show here.
pkgs/development/compilers/ghc/7.4.2.nixdeleted−77
This diff is too big to show here.
pkgs/development/compilers/ghc/7.6.3.nixdeleted−103
This diff is too big to show here.
pkgs/development/compilers/ghc/7.8.4-binary.nixdeleted−156
This diff is too big to show here.
pkgs/development/compilers/ghc/7.8.4.nixdeleted−91
This diff is too big to show here.
pkgs/development/compilers/ghc/8.2.1-binary.nix+2−1
This diff is too big to show here.
pkgs/development/compilers/ghc/8.2.2.nix+2
This diff is too big to show here.
pkgs/development/compilers/ghc/8.4.1.nix+9−6
This diff is too big to show here.
pkgs/development/compilers/ghc/8.4.2.nixnew file+188
This diff is too big to show here.
pkgs/development/compilers/ghc/abi-depends-determinism.nixnew file+12
This diff is too big to show here.
pkgs/development/compilers/ghc/fix-7.0.4-clang.patchdeleted−74
This diff is too big to show here.
pkgs/development/compilers/ghc/fix-7.2.2-clang.patchdeleted−74
This diff is too big to show here.
pkgs/development/compilers/ghc/fix-7.4.2-clang.patchdeleted−57
This diff is too big to show here.
pkgs/development/compilers/ghc/fix-7.6.3-clang.patchdeleted−71
This diff is too big to show here.
pkgs/development/compilers/ghc/hpc-7.8.4.patchdeleted−13
This diff is too big to show here.
pkgs/development/compilers/ghcjs/base.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/ghcjs/default.nix−1
This diff is too big to show here.
pkgs/development/compilers/ghdl/default.nixdeleted−44
This diff is too big to show here.
pkgs/development/compilers/glslang/default.nix+19−5
This diff is too big to show here.
pkgs/development/compilers/gnatboot/default.nixdeleted−48
This diff is too big to show here.
pkgs/development/compilers/go/1.10.nix+3−4
This diff is too big to show here.
pkgs/development/compilers/go/1.9.nix+3−4
This diff is too big to show here.
pkgs/development/compilers/graalvm/default.nix+2
This diff is too big to show here.
pkgs/development/compilers/haxe/default.nix+19−1
This diff is too big to show here.
pkgs/development/compilers/iasl/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/icedtea-web/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/jetbrains-jdk/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/jsonnet/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/julia/0.5.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/julia/0.6.nix+9−5
This diff is too big to show here.
pkgs/development/compilers/julia/default.nix+3−2
This diff is too big to show here.
pkgs/development/compilers/julia/git.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/kotlin/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/ldc/default.nix+12−14
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/4/cmdline-help.patchnew file+39
This diff is too big to show here.
pkgs/development/compilers/llvm/4/lldb.nix+5
This diff is too big to show here.
pkgs/development/compilers/llvm/4/llvm.nix+4−3
This diff is too big to show here.
pkgs/development/compilers/llvm/4/sanitizers-nongnu.patchnew file+368
This diff is too big to show here.
pkgs/development/compilers/llvm/5/llvm.nix+1−3
This diff is too big to show here.
pkgs/development/compilers/llvm/5/sanitizers-nongnu.patchnew file+370
This diff is too big to show here.
pkgs/development/compilers/llvm/6/clang/default.nixnew file+108
This diff is too big to show here.
pkgs/development/compilers/llvm/6/clang/purity.patchnew file+30
This diff is too big to show here.
pkgs/development/compilers/llvm/6/compiler-rt-codesign.patchnew file+155
This diff is too big to show here.
pkgs/development/compilers/llvm/6/default.nixnew file+78
This diff is too big to show here.
pkgs/development/compilers/llvm/6/libc++/default.nixnew file+51
This diff is too big to show here.
pkgs/development/compilers/llvm/6/libc++/setup-hook.shnew file+3
This diff is too big to show here.
pkgs/development/compilers/llvm/6/libc++abi.nixnew file+49
This diff is too big to show here.
pkgs/development/compilers/llvm/6/lld.nixnew file+33
This diff is too big to show here.
pkgs/development/compilers/llvm/6/lldb.nixnew file+56
This diff is too big to show here.
pkgs/development/compilers/llvm/6/llvm-outputs.patchnew file+26
This diff is too big to show here.
pkgs/development/compilers/llvm/6/llvm.nixnew file+185
This diff is too big to show here.
pkgs/development/compilers/llvm/6/openmp.nixnew file+26
This diff is too big to show here.
pkgs/development/compilers/llvm/6/sanitizers-nongnu.patchnew file+377
This diff is too big to show here.
pkgs/development/compilers/manticore/default.nix+6−6
This diff is too big to show here.
pkgs/development/compilers/mono/4.0.nix+3
This diff is too big to show here.
pkgs/development/compilers/mono/generic-cmake.nix+4−6
This diff is too big to show here.
pkgs/development/compilers/mono/generic.nix+5−3
This diff is too big to show here.
pkgs/development/compilers/nasm/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/neko/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/ocaml/4.07.nixnew file+9
This diff is too big to show here.
pkgs/development/compilers/ocaml/generic.nix+2−1
This diff is too big to show here.
pkgs/development/compilers/opendylan/bin.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/opendylan/default.nix+4−4
This diff is too big to show here.
pkgs/development/compilers/openjdk/9.nix → pkgs/development/compilers/openjdk/10.nixrenamed+21−81
This diff is too big to show here.
pkgs/development/compilers/openjdk/7.nixdeleted−244
This diff is too big to show here.
pkgs/development/compilers/openjdk/8.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/openjdk/bootstrap.nix+24−36
This diff is too big to show here.
pkgs/development/compilers/openjdk/cppflags-include-fix.patchdeleted−16
This diff is too big to show here.
pkgs/development/compilers/openjdk/currency-date-range.patch → pkgs/development/compilers/openjdk/currency-date-range-jdk10.patchrenamed+2−3
This diff is too big to show here.
pkgs/development/compilers/openjdk-darwin/8.nix → pkgs/development/compilers/openjdk/darwin/8.nixrenamed
The content is the same.
pkgs/development/compilers/openjdk-darwin/default.nix → pkgs/development/compilers/openjdk/darwin/default.nixrenamed
The content is the same.
pkgs/development/compilers/openjdk/fix-java-home-jdk9.patch → pkgs/development/compilers/openjdk/fix-java-home-jdk10.patchrenamed+5−5
This diff is too big to show here.
pkgs/development/compilers/openjdk/fix-java-home.patchdeleted−17
This diff is too big to show here.
pkgs/development/compilers/openjdk/paxctl.patchdeleted−28
This diff is too big to show here.
pkgs/development/compilers/openjdk/read-truststore-from-env-jdk9.patch → pkgs/development/compilers/openjdk/read-truststore-from-env-jdk10.patchrenamed+2−2
This diff is too big to show here.
pkgs/development/compilers/openjdk/read-truststore-from-env.patchdeleted−21
This diff is too big to show here.
pkgs/development/compilers/openjdk/swing-use-gtk-jdk9.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk10.patchrenamed+2−4
This diff is too big to show here.
pkgs/development/compilers/openjdk/swing-use-gtk.patch → pkgs/development/compilers/openjdk/swing-use-gtk-jdk8.patchrenamed
The content is the same.
pkgs/development/compilers/oraclejdk/jdk9-linux.nix → pkgs/development/compilers/oraclejdk/jdk10-linux.nixrenamed+7−7
This diff is too big to show here.
pkgs/development/compilers/oraclejdk/jdk8cpu-linux.nix+5−5
This diff is too big to show here.
pkgs/development/compilers/oraclejdk/jdk8psu-linux.nix+5−5
This diff is too big to show here.
pkgs/development/compilers/polyml/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/purescript/psc-package/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/rust/bootstrap.nix+8−8
This diff is too big to show here.
pkgs/development/compilers/rust/default.nix+10−6
This diff is too big to show here.
pkgs/development/compilers/rust/patches/aarch64-disable-test_loading_cosine.patchdeleted−12
This diff is too big to show here.
pkgs/development/compilers/rust/rustc.nix+11−6
This diff is too big to show here.
pkgs/development/compilers/sbcl/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/scala/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/sdcc/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/swi-prolog/default.nix+4−4
This diff is too big to show here.
pkgs/development/compilers/swift/default.nix+24−42
This diff is too big to show here.
pkgs/development/compilers/swift/patches/0003-build-presets-linux-disable-tests.patchdeleted−38
This diff is too big to show here.
pkgs/development/compilers/swift/patches/icu59.patchdeleted−113
This diff is too big to show here.
pkgs/development/compilers/swift/patches/remove_xlocale.patchdeleted−54
This diff is too big to show here.
pkgs/development/compilers/swift/patches/sigaltstack.patchdeleted−11
This diff is too big to show here.
pkgs/development/compilers/swift/patches/sigunused.patchdeleted−11
This diff is too big to show here.
pkgs/development/compilers/swift/purity.patch+17−3
This diff is too big to show here.
pkgs/development/compilers/teyjus/default.nix+7−3
This diff is too big to show here.
pkgs/development/compilers/teyjus/fix-lex-to-flex.patch+6−4
This diff is too big to show here.
pkgs/development/compilers/vala/default.nix+16−8
This diff is too big to show here.
pkgs/development/compilers/yosys/default.nix+9−5
This diff is too big to show here.
pkgs/development/compilers/zig/default.nix+6−5
This diff is too big to show here.
pkgs/development/compilers/zulu/8.nix+4−4
This diff is too big to show here.
pkgs/development/compilers/zulu/default.nix+4−4
This diff is too big to show here.
pkgs/development/coq-modules/CoLoR/default.nix+1−1
This diff is too big to show here.
pkgs/development/coq-modules/QuickChick/default.nix+12−7
This diff is too big to show here.
pkgs/development/coq-modules/autosubst/default.nix+2
This diff is too big to show here.
pkgs/development/coq-modules/bignums/default.nix+20−15
This diff is too big to show here.
pkgs/development/coq-modules/contribs/default.nix+12−5
This diff is too big to show here.
pkgs/development/coq-modules/coq-ext-lib/default.nix+6−2
This diff is too big to show here.
pkgs/development/coq-modules/coq-haskell/default.nix+7−4
This diff is too big to show here.
pkgs/development/coq-modules/coquelicot/default.nix+3
This diff is too big to show here.
pkgs/development/coq-modules/dpdgraph/default.nix+9−2
This diff is too big to show here.
pkgs/development/coq-modules/fiat/HEAD.nix+8−7
This diff is too big to show here.
pkgs/development/coq-modules/heq/default.nix+3
This diff is too big to show here.
pkgs/development/coq-modules/interval/default.nix+3
This diff is too big to show here.
pkgs/development/coq-modules/mathcomp/generic.nix+4
This diff is too big to show here.
pkgs/development/coq-modules/paco/default.nix+4
This diff is too big to show here.
pkgs/development/coq-modules/ssreflect/generic.nix+4
This diff is too big to show here.
pkgs/development/eclipse/ecj/default.nixdeleted−59
This diff is too big to show here.
pkgs/development/em-modules/generic/default.nix+12−5
This diff is too big to show here.
pkgs/development/go-modules/generic/default.nix+1−1
This diff is too big to show here.
pkgs/development/guile-modules/guile-fibers/default.nix+1−1
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-common.nix+112−73
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+16−5
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix+8−3
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-8.2.x.nix+10−3
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix+125−272
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghcjs.nix−13
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-hackage2nix.yaml+1327−1166
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-nix.nix+8−4
This diff is too big to show here.
pkgs/development/haskell-modules/default.nix+1−1
This diff is too big to show here.
pkgs/development/haskell-modules/generic-builder.nix+26−15
This diff is too big to show here.
pkgs/development/haskell-modules/hackage-packages.nix+11863−8589
This diff is too big to show here.
pkgs/development/haskell-modules/hie-packages.nixdeleted−502
This diff is too big to show here.
pkgs/development/haskell-modules/initial-packages.nix+1−1
This diff is too big to show here.
pkgs/development/haskell-modules/lib.nix+4−3
This diff is too big to show here.
pkgs/development/haskell-modules/make-package-set.nix+63−6
This diff is too big to show here.
pkgs/development/haskell-modules/patches/lzma-tests.patch+8−10
This diff is too big to show here.
pkgs/development/haskell-modules/patches/xmonad-contrib-ghc-8.4.1-fix.patchnew file+107
This diff is too big to show here.
pkgs/development/haskell-modules/with-packages-wrapper.nix+9
This diff is too big to show here.
pkgs/development/idris-modules/README.md+1−39
This diff is too big to show here.
pkgs/development/idris-modules/array.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/bi.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/bifunctors.nixnew file+31
This diff is too big to show here.
pkgs/development/idris-modules/bytes.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/canvas.nixnew file+26
This diff is too big to show here.
pkgs/development/idris-modules/categories.nixnew file+27
This diff is too big to show here.
pkgs/development/idris-modules/coda.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/comonad.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/composition.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/config.nixnew file+31
This diff is too big to show here.
pkgs/development/idris-modules/console.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/containers.nixnew file+34
This diff is too big to show here.
pkgs/development/idris-modules/cube.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/curses.nixnew file+36
This diff is too big to show here.
pkgs/development/idris-modules/data.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/default.nix+157−6
This diff is too big to show here.
pkgs/development/idris-modules/derive.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/descncrunch.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/dict.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/dom.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/electron.nixnew file+36
This diff is too big to show here.
pkgs/development/idris-modules/eternal.nixnew file+35
This diff is too big to show here.
pkgs/development/idris-modules/farrp.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/free.nixnew file+27
This diff is too big to show here.
pkgs/development/idris-modules/fsm.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/glfw.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/graphviz.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/hamt.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/heyting-algebra.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/hezarfen.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/hrtime.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/html.nixnew file+34
This diff is too big to show here.
pkgs/development/idris-modules/http.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/http4idris.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/httpclient.nixdeleted−36
This diff is too big to show here.
pkgs/development/idris-modules/iaia.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/idrishighlighter.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/idrisscript.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/ipkgparser.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/jheiling-extras.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/jheiling-js.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/js.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/lens.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/lightyear.nix+2−5
This diff is too big to show here.
pkgs/development/idris-modules/logic.nixnew file+31
This diff is too big to show here.
pkgs/development/idris-modules/mapping.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/mhd.nixnew file+33
This diff is too big to show here.
pkgs/development/idris-modules/pacman.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/patricia.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/permutations.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/pfds.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/pipes.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/posix.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/protobuf.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/rationals.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/recursion_schemes.nixnew file+36
This diff is too big to show here.
pkgs/development/idris-modules/refined.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/sdl.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/sdl2.nixnew file+33
This diff is too big to show here.
pkgs/development/idris-modules/semidirect.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/setoids.nixnew file+26
This diff is too big to show here.
pkgs/development/idris-modules/smproc.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/snippets.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/software_foundations.nixnew file+27
This diff is too big to show here.
pkgs/development/idris-modules/specdris.nix+4−7
This diff is too big to show here.
pkgs/development/idris-modules/tap.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/test.nixnew file+32
This diff is too big to show here.
pkgs/development/idris-modules/tlhydra.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/tomladris.nixnew file+30
This diff is too big to show here.
pkgs/development/idris-modules/tp.nixnew file+31
This diff is too big to show here.
pkgs/development/idris-modules/tparsec.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/transducers.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/trees.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/union_type.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/vecspace.nixnew file+27
This diff is too big to show here.
pkgs/development/idris-modules/webgl.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/wl-pprint.nix+4−8
This diff is too big to show here.
pkgs/development/idris-modules/wyvern.nixnew file+33
This diff is too big to show here.
pkgs/development/idris-modules/xhr.nixnew file+28
This diff is too big to show here.
pkgs/development/idris-modules/yaml.nixnew file+29
This diff is too big to show here.
pkgs/development/idris-modules/yampa.nixnew file+27
This diff is too big to show here.
pkgs/development/interpreters/clojure/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/duktape/default.nix+2−1
This diff is too big to show here.
pkgs/development/interpreters/eff/default.nix+12−11
This diff is too big to show here.
pkgs/development/interpreters/elixir/1.6.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/R18.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/R19.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/R20.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/generic-builder.nix+4−4
This diff is too big to show here.
pkgs/development/interpreters/gnu-apl/default.nix+4−4
This diff is too big to show here.
pkgs/development/interpreters/groovy/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/guile/1.8.nix+44−21
This diff is too big to show here.
pkgs/development/interpreters/guile/2.0.nix+19−12
This diff is too big to show here.
pkgs/development/interpreters/guile/default.nix+19−12
This diff is too big to show here.
pkgs/development/interpreters/guile/riscv.patchnew file+13
This diff is too big to show here.
pkgs/development/interpreters/j/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/joker/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.2.nix+3−28
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.3.nix+3−28
This diff is too big to show here.
pkgs/development/interpreters/octave/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/perl/MakeMaker-cross.patchnew file+17
This diff is too big to show here.
pkgs/development/interpreters/perl/default.nix+35−4
This diff is too big to show here.
pkgs/development/interpreters/perl/setup-hook-cross.shnew file+12
This diff is too big to show here.
pkgs/development/interpreters/php/default.nix+8−8
This diff is too big to show here.
pkgs/development/interpreters/pure/default.nix+3−5
This diff is too big to show here.
pkgs/development/interpreters/python/build-python-package-flit.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/default.nix+4−1
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/use-correct-tcl-tk-on-darwin.patchnew file+48
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.4/default.nix+5
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.4/use-correct-tcl-tk-on-darwin.patchnew file+48
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.5/default.nix+5
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.5/use-correct-tcl-tk-on-darwin.patchnew file+48
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.6/default.nix+7−2
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.6/use-correct-tcl-tk-on-darwin.patchnew file+48
This diff is too big to show here.
pkgs/development/interpreters/racket/default.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/renpy/default.nix+21−13
This diff is too big to show here.
pkgs/development/interpreters/renpy/launcherenv.patchnew file+14
This diff is too big to show here.
pkgs/development/interpreters/supercollider/default.nix+2−2
This diff is too big to show here.
pkgs/development/java-modules/jogl/default.nixnew file+60
This diff is too big to show here.
pkgs/development/java-modules/junit/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/AntTweakBar/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/CGAL/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/LASzip/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/SDL/default.nix+63−35
This diff is too big to show here.
pkgs/development/libraries/SDL2/default.nix+48−28
This diff is too big to show here.
pkgs/development/libraries/SDL2_gfx/default.nix+7−7
This diff is too big to show here.
pkgs/development/libraries/SDL2_image/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/SDL_gfx/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/Xaw3d/default.nix+2−4
This diff is too big to show here.
pkgs/development/libraries/accounts-qt/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/accountsservice/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ace/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/acl/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/agda/agda-stdlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/agda/pretty/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/agg/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/alembic/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/allegro/5.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/apache-activemq/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/appstream-glib/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/arb/default.nix+9−3
This diff is too big to show here.
pkgs/development/libraries/arguments/default.nixnew file+32
This diff is too big to show here.
pkgs/development/libraries/arm-frc-linux-gnueabi-eglibc/default.nixdeleted−65
This diff is too big to show here.
pkgs/development/libraries/arm-frc-linux-gnueabi-linux-api-headers/default.nixdeleted−43
This diff is too big to show here.
pkgs/development/libraries/arrow-cpp/default.nixnew file+44
This diff is too big to show here.
pkgs/development/libraries/asio/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/at-spi2-core/default.nix−3
This diff is too big to show here.
pkgs/development/libraries/atk/default.nix+17−6
This diff is too big to show here.
pkgs/development/libraries/attr/default.nix+6
This diff is too big to show here.
pkgs/development/libraries/audio/jamomacore/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/audio/libgme/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/aws-sdk-cpp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/babl/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/boost/1.66.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/bwidget/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/caf/default.nix+2−10
This diff is too big to show here.
pkgs/development/libraries/cairo/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/celt/0.5.1.nix+7
This diff is too big to show here.
pkgs/development/libraries/celt/generic.nix+3
This diff is too big to show here.
pkgs/development/libraries/ceres-solver/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cfitsio/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/check/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/clipper/default.nixnew file+27
This diff is too big to show here.
pkgs/development/libraries/clutter-gst/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cmark/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/cminpack/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cogl/default.nix+5−7
This diff is too big to show here.
pkgs/development/libraries/confuse/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/cpp-gsl/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/cracklib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cyrus-sasl/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/dbus/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/dbus/make-dbus-conf.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/dbus/make-system-conf.xsl+1
This diff is too big to show here.
pkgs/development/libraries/dlib/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/double-conversion/default.nix+6−1
This diff is too big to show here.
pkgs/development/libraries/drumstick/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/easyloggingpp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/eccodes/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/eclib/default.nix+31−8
This diff is too big to show here.
pkgs/development/libraries/eigen/3.3.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/enchant/2.x.nixnew file+27
This diff is too big to show here.
pkgs/development/libraries/epoxy/default.nix+13−7
This diff is too big to show here.
pkgs/development/libraries/epoxy/libgl-path.patchnew file+35
This diff is too big to show here.
pkgs/development/libraries/exempi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/farbfeld/default.nix+8−4
This diff is too big to show here.
pkgs/development/libraries/farstream/default.nix+10−6
This diff is too big to show here.
pkgs/development/libraries/fdk-aac/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fflas-ffpack/default.nix+31−6
This diff is too big to show here.
pkgs/development/libraries/ffmpeg-full/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/flint/default.nix+42−5
This diff is too big to show here.
pkgs/development/libraries/flite/default.nix+12−7
This diff is too big to show here.
pkgs/development/libraries/flite/fix-rpath.patchdeleted−5
This diff is too big to show here.
pkgs/development/libraries/folly/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fontconfig/default.nix+5−14
This diff is too big to show here.
pkgs/development/libraries/fox/fox-1.6.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fplll/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/freenect/default.nix+11−7
This diff is too big to show here.
pkgs/development/libraries/freetds/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/freetype/cve-2017-8105.patchdeleted−27
This diff is too big to show here.
pkgs/development/libraries/freetype/cve-2017-8287.patchdeleted−22
This diff is too big to show here.
pkgs/development/libraries/freetype/default.nix+11−15
This diff is too big to show here.
pkgs/development/libraries/freetype/pcf-config-long-family-names.patchdeleted−553
This diff is too big to show here.
pkgs/development/libraries/freetype/pcf-introduce-driver.patchdeleted−68
This diff is too big to show here.
pkgs/development/libraries/gamin/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gdal/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gdbm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gdcm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gdk-pixbuf/default.nix+2−3
This diff is too big to show here.
pkgs/development/libraries/gecode/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gegl/3.0.nix+4−6
This diff is too big to show here.
pkgs/development/libraries/gegl/default.nix+3−5
This diff is too big to show here.
pkgs/development/libraries/geoclue/2.0.nix+6−8
This diff is too big to show here.
pkgs/development/libraries/geos/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/getdns/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/gettext/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/gettext/gettext-setup-hook.sh+21
This diff is too big to show here.
pkgs/development/libraries/gflags/default.nixdeleted−10
This diff is too big to show here.
pkgs/development/libraries/givaro/default.nix+21−3
This diff is too big to show here.
pkgs/development/libraries/glbinding/default.nixnew file+22
This diff is too big to show here.
pkgs/development/libraries/glew/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/glib-networking/default.nix+16−13
This diff is too big to show here.
pkgs/development/libraries/glib/default.nix+7−12
This diff is too big to show here.
pkgs/development/libraries/glibc/2.27.nixdeleted−101
This diff is too big to show here.
pkgs/development/libraries/glibc/common-2.27.nixdeleted−210
This diff is too big to show here.
pkgs/development/libraries/glibc/common.nix+31−33
This diff is too big to show here.
pkgs/development/libraries/glibc/dont-use-system-ld-so-cache-2.27.patchdeleted−46
This diff is too big to show here.
pkgs/development/libraries/glibc/dont-use-system-ld-so-cache.patch+19−19
This diff is too big to show here.
pkgs/development/libraries/glibc/fix-rpc-types-musl-conflicts.patchnew file+38
This diff is too big to show here.
pkgs/development/libraries/glibc/nix-locale-archive-2.27.patchdeleted−118
This diff is too big to show here.
pkgs/development/libraries/glibc/nix-locale-archive.patch+63−59
This diff is too big to show here.
pkgs/development/libraries/glibmm/default.nix+12−4
This diff is too big to show here.
pkgs/development/libraries/glm/default.nix+6−2
This diff is too big to show here.
pkgs/development/libraries/globalplatform/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/glpk/default.nix+24−4
This diff is too big to show here.
pkgs/development/libraries/gmime/3.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/gnu-efi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gnutls/3.6.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gnutls/generic.nix+1−3
This diff is too big to show here.
pkgs/development/libraries/gobject-introspection/absolute_shlib_path.patch+32−41
This diff is too big to show here.
pkgs/development/libraries/gobject-introspection/default.nix+7−8
This diff is too big to show here.
pkgs/development/libraries/godot_headers/default.nixnew file+23
This diff is too big to show here.
pkgs/development/libraries/goffice/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/google-gflags/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gpgme/default.nix+18−5
This diff is too big to show here.
pkgs/development/libraries/grib-api/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/grpc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gsettings-qt/default.nixnew file+58
This diff is too big to show here.
pkgs/development/libraries/gsl/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/gsm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gssdp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/bad/default.nix+21−21
This diff is too big to show here.
pkgs/development/libraries/gstreamer/bad/fix_pkgconfig_includedir.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/base/default.nix+46−25
This diff is too big to show here.
pkgs/development/libraries/gstreamer/base/fix_pkgconfig_includedir.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/core/default.nix+27−17
This diff is too big to show here.
pkgs/development/libraries/gstreamer/core/fix_pkgconfig_includedir.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/default.nix+4−7
This diff is too big to show here.
pkgs/development/libraries/gstreamer/ges/default.nix+15−6
This diff is too big to show here.
pkgs/development/libraries/gstreamer/ges/fix_pkgconfig_includedir.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/gnonlin/default.nixdeleted−30
This diff is too big to show here.
pkgs/development/libraries/gstreamer/good/default.nix+18−15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/good/fix_pkgconfig_includedir.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/gstreamer/gstreamermm/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix+2−5
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix+2−5
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix+2−4
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gstreamer/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/gstreamer/libav/default.nix+6−9
This diff is too big to show here.
pkgs/development/libraries/gstreamer/rtsp-server/default.nixnew file+29
This diff is too big to show here.
pkgs/development/libraries/gstreamer/ugly/default.nix+13−11
This diff is too big to show here.
pkgs/development/libraries/gstreamer/vaapi/default.nix+6−7
This diff is too big to show here.
pkgs/development/libraries/gstreamer/validate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gtk+/2.x.nix+1−4
This diff is too big to show here.
pkgs/development/libraries/gtk+/3.x.nix+11−8
This diff is too big to show here.
pkgs/development/libraries/gtkdatabox/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gtkmm/2.x.nix+3−1
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gtksourceview/nix_share_path.patch → pkgs/development/libraries/gtksourceview/3.x-nix_share_path.patchrenamed
The content is the same.
pkgs/desktops/gnome-3/core/gtksourceview/default.nix → pkgs/development/libraries/gtksourceview/3.x.nixrenamed+16−7
This diff is too big to show here.
pkgs/development/libraries/gtksourceview/4.x-nix_share_path.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/gtksourceview/4.x.nixnew file+54
This diff is too big to show here.
pkgs/development/libraries/gtkspell/3.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/gts/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gvfs/default.nix+50−12
This diff is too big to show here.
pkgs/development/libraries/hamlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/harfbuzz/default.nix+5−6
This diff is too big to show here.
pkgs/development/libraries/herqq/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/hivex/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/hpx/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/http-parser/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/hunspell/dictionaries.nix+60
This diff is too big to show here.
pkgs/development/libraries/idnkit/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/ignition-transport/generic.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/imlib2/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/iniparser/default.nix+5
This diff is too big to show here.
pkgs/development/libraries/isl/0.11.1.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/isl/0.12.2.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/isl/0.14.1.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/isl/0.15.0.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/isl/0.17.1.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/iso-codes/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/itk/default.nix+5−10
This diff is too big to show here.
pkgs/development/libraries/jama/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/jansson/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/jasper/default.nix+9
This diff is too big to show here.
pkgs/development/libraries/java/classpath/default.nixdeleted−61
This diff is too big to show here.
pkgs/development/libraries/java/classpath/missing-casts.patchdeleted−80
This diff is too big to show here.
pkgs/development/libraries/java/commons/compress/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/java/commons/io/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/java/hsqldb/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/jemalloc/common.nixnew file+35
This diff is too big to show here.
pkgs/development/libraries/jemalloc/default.nix+3−33
This diff is too big to show here.
pkgs/development/libraries/jemalloc/jemalloc450.nixnew file+6
This diff is too big to show here.
pkgs/development/libraries/json-c/0.11.nixdeleted−25
This diff is too big to show here.
pkgs/development/libraries/json-c/default.nix+4−12
This diff is too big to show here.
pkgs/development/libraries/json-glib/default.nix+2−5
This diff is too big to show here.
pkgs/development/libraries/kdb/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/fetch.sh+1−1
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdelibs4support/default.nix+2−2
This diff is too big to show here.
pkgs/applications/kde/kholidays.nix → pkgs/development/libraries/kde-frameworks/kholidays.nixrenamed+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/ki18n.nix+7−1
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/srcs.nix+312−312
This diff is too big to show here.
pkgs/development/libraries/kerberos/heimdal-make-missing-headers.patchnew file+10
This diff is too big to show here.
pkgs/development/libraries/kerberos/heimdal.nix+8−2
This diff is too big to show here.
pkgs/development/libraries/kirigami/default.nixdeleted−47
This diff is too big to show here.
pkgs/development/libraries/kpmcore/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kproperty/default.nix+5−4
This diff is too big to show here.
pkgs/development/libraries/kreport/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/frog.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/libfolia.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/mbt.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/timbl.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/timblserver.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/languagemachines/ucto.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/lcms2/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/leatherman/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/leveldb/default.nix+6−1
This diff is too big to show here.
pkgs/development/libraries/libLAS/default.nix+13−3
This diff is too big to show here.
pkgs/development/libraries/libamqpcpp/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/libaom/default.nixnew file+25
This diff is too big to show here.
pkgs/development/libraries/libassuan/default.nix+1−2
This diff is too big to show here.
pkgs/development/libraries/libatomic_ops/default.nix+4−5
This diff is too big to show here.
pkgs/development/libraries/libatomic_ops/riscv.patchdeleted−40
This diff is too big to show here.
pkgs/development/libraries/libaudclient/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libav/default.nix+9−4
This diff is too big to show here.
pkgs/development/libraries/libbfd/default.nix+3−5
This diff is too big to show here.
pkgs/development/libraries/libbsd/cdefs.patchnew file+222
This diff is too big to show here.
pkgs/development/libraries/libbsd/default.nix+10−1
This diff is too big to show here.
pkgs/development/libraries/libbsd/features.patchnew file+26
This diff is too big to show here.
pkgs/development/libraries/libbsd/non-glibc.patchnew file+74
This diff is too big to show here.
pkgs/development/libraries/libbson/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libcdio-paranoia/default.nix+10−2
This diff is too big to show here.
pkgs/development/libraries/libcdio/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libcec/platform.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libcloudproviders/default.nix+4
This diff is too big to show here.
pkgs/development/libraries/libcloudproviders/fix-include.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/libconfuse/default.nix+3−1
This diff is too big to show here.
pkgs/development/libraries/libcouchbase/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libdazzle/default.nixnew file+55
This diff is too big to show here.
pkgs/development/libraries/libdigidocpp/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libdrm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libdvdcss/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libdvdnav/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libdvdread/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libdwarf/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/libdynd/default.nix+7
This diff is too big to show here.
pkgs/development/libraries/libedit/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libesmtp/default.nixnew file+18
This diff is too big to show here.
pkgs/development/libraries/libetpan/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libevdev/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libevent/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/libf2c/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libfixposix/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libftdi/1.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libftdi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libgcrypt/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libgksu/default.nix+6−2
This diff is too big to show here.
pkgs/development/libraries/libglvnd/default.nix+22−8
This diff is too big to show here.
pkgs/development/libraries/libgpg-error/default.nix+14−8
This diff is too big to show here.
pkgs/development/libraries/libgpg-error/riscv.patchdeleted−54
This diff is too big to show here.
pkgs/development/libraries/libgphoto2/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libgringotts/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libgroove/default.nix+3−1
This diff is too big to show here.
pkgs/development/libraries/libgroove/no-warnings-as-errors.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/libgsf/default.nix+5−8
This diff is too big to show here.
pkgs/development/libraries/libgtop/default.nix+1−4
This diff is too big to show here.
pkgs/development/libraries/libguestfs/appliance.nixnew file+7
This diff is too big to show here.
pkgs/development/libraries/libguestfs/default.nix+24−10
This diff is too big to show here.
pkgs/development/libraries/libhttpseverywhere/default.nix+7−5
This diff is too big to show here.
pkgs/development/libraries/libiconv/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/libiconv/setup-hook.shnew file+18
This diff is too big to show here.
pkgs/development/libraries/libidn2/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/libimobiledevice/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/libinfinity/default.nix+3−5
This diff is too big to show here.
pkgs/development/libraries/libinput/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libkate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libksba/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/liblouis/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/libmbim/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmediainfo/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmicrohttpd/default.nix+4−6
This diff is too big to show here.
pkgs/development/libraries/libminc/default.nix+22−11
This diff is too big to show here.
pkgs/development/libraries/libmng/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmnl/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmodplug/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmowgli/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/libmtp/default.nix+5−4
This diff is too big to show here.
pkgs/development/libraries/libmypaint/default.nix+9−1
This diff is too big to show here.
pkgs/development/libraries/libmysqlconnectorcpp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libnatspec/default.nix−1
This diff is too big to show here.
pkgs/development/libraries/libnetfilter_conntrack/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libnetfilter_cttimeout/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libnetfilter_log/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libnfs/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/libngspice/default.nixnew file+25
This diff is too big to show here.
pkgs/development/libraries/libopcodes/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libpar2/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/libpipeline/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/libpqxx/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libqalculate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libqglviewer/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/libqmi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libqrencode/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libraw/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libraw1394/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/librdf/rasqal.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libre/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/librelp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/librem/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/librime/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/librsvg/default.nix+5−10
This diff is too big to show here.
pkgs/development/libraries/librsync/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libs3/default.nix+6−3
This diff is too big to show here.
pkgs/development/libraries/libsass/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsearpc/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libseccomp/default.nix+3
This diff is too big to show here.
pkgs/development/libraries/libsecret/default.nix+2−4
This diff is too big to show here.
pkgs/development/libraries/libsolv/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsoup/default.nix+16−26
This diff is too big to show here.
pkgs/development/libraries/libspatialindex/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libspatialite/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libstrophe/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsvm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libtar/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libtheora/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libtins/default.nixnew file+43
This diff is too big to show here.
pkgs/development/libraries/libu2f-host/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libui/default.nix+3−1
This diff is too big to show here.
pkgs/development/libraries/libunistring/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libunwind/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/liburcu/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libusb1/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libusbmuxd/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/libuv/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libva-utils/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libva/1.0.0.nixnew file+37
This diff is too big to show here.
pkgs/development/libraries/libva/default.nix+9−7
This diff is too big to show here.
pkgs/development/libraries/libvdpau/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/libvirt-glib/default.nix+4−2
This diff is too big to show here.
pkgs/development/libraries/libvirt/build-on-bsd.patchdeleted−58
This diff is too big to show here.
pkgs/development/libraries/libvirt/default.nix+36−25
This diff is too big to show here.
pkgs/development/libraries/libvisio/default.nix+14−15
This diff is too big to show here.
pkgs/development/libraries/libvorbis/default.nix+2−12
This diff is too big to show here.
pkgs/development/libraries/libvpx/git.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libwacom/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libwebsockets/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libwnck/3.x.nix+24−14
This diff is too big to show here.
pkgs/development/libraries/libwnck/install_introspection_to_prefix.patchdeleted−12
This diff is too big to show here.
pkgs/development/libraries/libxcomp/default.nix+5−4
This diff is too big to show here.
pkgs/development/libraries/libxkbcommon/default.nix+19−14
This diff is too big to show here.
pkgs/development/libraries/libyaml-cpp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libyubikey/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libzdb/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/lightstep-tracer-cpp/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/linbox/default.nixnew file+79
This diff is too big to show here.
pkgs/development/libraries/live555/default.nix+19−13
This diff is too big to show here.
pkgs/development/libraries/lmdb/default.nix+5−2
This diff is too big to show here.
pkgs/development/libraries/lmdb/hardcoded-compiler.patchnew file+26
This diff is too big to show here.
pkgs/development/libraries/log4cxx/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/luaffi/darwin.patchnew file+17
This diff is too big to show here.
pkgs/development/libraries/luaffi/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/mailcore2/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/matio/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/mbedtls/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/mdds/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/mesa-glu/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/mesa/default.nix+71−19
This diff is too big to show here.
pkgs/development/libraries/mesa/missing-include.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/mesa/musl-fixes.patchdeleted−22
This diff is too big to show here.
pkgs/development/libraries/movit/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/mpfr/upstream.patchdeleted−1699
This diff is too big to show here.
pkgs/development/libraries/mps/default.nix+6
This diff is too big to show here.
pkgs/development/libraries/mysocketw/default.nix+7−4
This diff is too big to show here.
pkgs/development/libraries/ncurses/default.nix+5−9
This diff is too big to show here.
pkgs/development/libraries/ndn-cxx/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/netcdf-fortran/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/netcdf/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/newt/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nix-plugins/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/nlohmann_json/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nspr/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nss/85_security_load.patch+4−4
This diff is too big to show here.
pkgs/development/libraries/nss/default.nix+11−3
This diff is too big to show here.
pkgs/development/libraries/ntbtls/default.nix+6−5
This diff is too big to show here.
pkgs/development/libraries/ocl-icd/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ogre/1.9.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/oniguruma/default.nix+6−11
This diff is too big to show here.
pkgs/development/libraries/openbsm/default.nixnew file+20
This diff is too big to show here.
pkgs/development/libraries/opencollada/default.nix+10−3
This diff is too big to show here.
pkgs/development/libraries/opencolorio/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/opencv/3.x.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/opendht/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/openexrid-unstable/default.nix+6−1
This diff is too big to show here.
pkgs/development/libraries/openfst/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/openmpi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/openpam/default.nixnew file+18
This diff is too big to show here.
pkgs/development/libraries/openssl/default.nix+4−11
This diff is too big to show here.
pkgs/development/libraries/opensubdiv/default.nix+9−4
This diff is too big to show here.
pkgs/development/libraries/openvdb/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/openzwave/default.nixnew file+56
This diff is too big to show here.
pkgs/development/libraries/p11-kit/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/pango/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/parquet-cpp/default.nixnew file+37
This diff is too big to show here.
pkgs/development/libraries/pcre/default.nix+4
This diff is too big to show here.
pkgs/development/libraries/physics/rivet/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/pipewire/default.nix+5−7
This diff is too big to show here.
pkgs/development/libraries/pipewire/fix-paths.patchdeleted−8
This diff is too big to show here.
pkgs/development/libraries/pixman/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/poco/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/poppler/0.61.nixnew file+56
This diff is too big to show here.
pkgs/development/libraries/poppler/default.nix+16−32
This diff is too big to show here.
pkgs/development/libraries/poppler/qt4.nixnew file+44
This diff is too big to show here.
pkgs/development/libraries/postgis/2.3.nixdeleted−102
This diff is too big to show here.
pkgs/development/libraries/postgis/default.nix+18−2
This diff is too big to show here.
pkgs/development/libraries/postgis/pg_db_postgis_enable.shdeleted−38
This diff is too big to show here.
pkgs/development/libraries/postgis/pg_db_postgis_fix_or_load_sql_dump.shdeleted−52
This diff is too big to show here.
pkgs/development/libraries/protobuf/3.4.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/protobuf/3.5.nixnew file+6
This diff is too big to show here.
pkgs/development/libraries/ptex/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ptlib/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/pugixml/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qca-qt5/default.nix+5−1
This diff is too big to show here.
pkgs/development/libraries/qca-qt5/move-project.patchnew file+19
This diff is too big to show here.
pkgs/development/libraries/qca2/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/qmlbox2d/default.nixnew file+31
This diff is too big to show here.
pkgs/development/libraries/qpdf/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qscintilla/default.nix+26−22
This diff is too big to show here.
pkgs/development/libraries/qt-4.x/4.8/default.nix−1
This diff is too big to show here.
pkgs/development/libraries/qt-4.x/4.8/dlopen-absolute-paths.diff−26
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.10/default.nix+4−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.10/restore-pc-files.patchnew file+27
This diff is too big to show here.
pkgs/development/libraries/qt-5/mkDerivation.nix+2−3
This diff is too big to show here.
pkgs/development/libraries/qt-5/modules/qtbase.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/modules/qtlocation.nix+8−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/modules/qtspeech.nixnew file+7
This diff is too big to show here.
pkgs/development/libraries/qt-5/modules/qtwebengine.nix+86−20
This diff is too big to show here.
pkgs/development/libraries/qtkeychain/default.nix+17−5
This diff is too big to show here.
pkgs/development/libraries/qtstyleplugin-kvantum/default.nix+8−7
This diff is too big to show here.
pkgs/development/libraries/quazip/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qwt/6.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qwt/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/rabbitmq-c/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/rapidjson/default.nix+6−1
This diff is too big to show here.
pkgs/desktops/gnome-3/desktop/rarian/default.nix → pkgs/development/libraries/rarian/default.nixrenamed
The content is the same.
pkgs/development/libraries/rdkafka/default.nix+4−6
This diff is too big to show here.
pkgs/development/libraries/rocksdb/default.nix+16−8
This diff is too big to show here.
pkgs/development/libraries/schroedinger/default.nix+11−3
This diff is too big to show here.
pkgs/development/libraries/science/biology/EBTKS/default.nixnew file+28
This diff is too big to show here.
pkgs/development/libraries/science/biology/bicpl/default.nixnew file+33
This diff is too big to show here.
pkgs/development/libraries/science/biology/elastix/default.nix+7−11
This diff is too big to show here.
pkgs/development/libraries/science/biology/oobicpl/default.nixnew file+31
This diff is too big to show here.
pkgs/development/libraries/science/math/atlas/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/science/math/caffe2/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/science/math/caffe2/fix_compilation_on_gcc7.patchnew file+46
This diff is too big to show here.
pkgs/development/libraries/science/math/clblas/default.nix+13−4
This diff is too big to show here.
pkgs/development/libraries/science/math/cliquer/default.nixnew file+38
This diff is too big to show here.
pkgs/development/libraries/science/math/flintqs/default.nixnew file+40
This diff is too big to show here.
pkgs/development/libraries/science/math/lcalc/default.nixnew file+78
This diff is too big to show here.
pkgs/development/libraries/science/math/lcalc/makefile.patchnew file+113
This diff is too big to show here.
pkgs/development/libraries/science/math/m4ri/default.nixnew file+30
This diff is too big to show here.
pkgs/development/libraries/science/math/m4rie/default.nixnew file+39
This diff is too big to show here.
pkgs/development/libraries/science/math/openblas/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/science/math/openlibm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/science/math/petsc/default.nix+7−2
This diff is too big to show here.
pkgs/development/libraries/science/math/planarity/default.nixnew file+40
This diff is too big to show here.
pkgs/development/libraries/science/math/rankwidth/default.nixnew file+28
This diff is too big to show here.
pkgs/development/libraries/science/math/rubiks/default.nixnew file+82
This diff is too big to show here.
pkgs/development/libraries/science/math/sympow/default.nixnew file+89
This diff is too big to show here.
pkgs/development/libraries/science/math/zn_poly/default.nixnew file+50
This diff is too big to show here.
pkgs/development/libraries/science/networking/ns3/default.nixnew file+98
This diff is too big to show here.
pkgs/development/libraries/speech-tools/default.nix+13−8
This diff is too big to show here.
pkgs/development/libraries/spice-gtk/default.nix+38−24
This diff is too big to show here.
pkgs/development/libraries/sqlite/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/sqlite/sqlite3_analyzer.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/srtp/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/stfl/default.nix−3
This diff is too big to show here.
pkgs/development/libraries/sundials/default.nixnew file+28
This diff is too big to show here.
pkgs/development/libraries/swiften/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/tachyon/default.nix+49−8
This diff is too big to show here.
pkgs/development/libraries/tachyon/make-archs.patchnew file+37
This diff is too big to show here.
pkgs/development/libraries/tachyon/no-absolute-paths.patchnew file+57
This diff is too big to show here.
pkgs/development/libraries/talloc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/tevent/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ti-rpc/default.nix+6−8
This diff is too big to show here.
pkgs/development/libraries/tnt/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/tremor/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/umockdev/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/unixODBC/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/unixODBCDrivers/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/usbredir/default.nix+1−3
This diff is too big to show here.
pkgs/development/libraries/v8/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/vaapi-intel/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/vapoursynth/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/virglrenderer/default.nix+7−2
This diff is too big to show here.
pkgs/development/libraries/vo-amrwbenc/default.nixnew file+22
This diff is too big to show here.
pkgs/development/libraries/vulkan-loader/default.nix+12−7
This diff is too big to show here.
pkgs/development/libraries/vulkan-loader/rev-file.patchnew file+21
This diff is too big to show here.
pkgs/development/libraries/wayland/protocols.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wcslib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/2.18.nixdeleted−106
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/2.20.nixnew file+89
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/PR-152650-2.patchdeleted−62
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/PR-153138.patchdeleted−26
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/PR-157554.patchdeleted−33
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/PR-157574.patchdeleted−62
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/finding-harfbuzz-icu.patchdeleted−52
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/gstreamergl-2.17.patchdeleted−13
This diff is too big to show here.
pkgs/development/libraries/wlc/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/wlroots/default.nix+9−9
This diff is too big to show here.
pkgs/development/libraries/wlroots/libdrm.patchdeleted−9
This diff is too big to show here.
pkgs/development/libraries/wlroots/no-werror.patchdeleted−10
This diff is too big to show here.
pkgs/development/libraries/wt/default.nix+7−9
This diff is too big to show here.
pkgs/development/libraries/wxSVG/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wxwidgets/3.0/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/xalanc/default.nix+2−3
This diff is too big to show here.
pkgs/development/libraries/xercesc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/xgboost/default.nix+7−4
This diff is too big to show here.
pkgs/development/libraries/xine-lib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/xmlrpc-c/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/xxHash/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/zlog/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/zziplib/default.nix+11−6
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nix+5
This diff is too big to show here.
pkgs/development/misc/amdapp-sdk/default.nix+1−1
This diff is too big to show here.
pkgs/development/misc/avr/gcc/default.nix+4−4
This diff is too big to show here.
pkgs/development/misc/loc/default.nix+1−1
This diff is too big to show here.
pkgs/development/misc/rpiboot/unstable.nixnew file+36
This diff is too big to show here.
pkgs/development/stm32/betaflight/default.nix → pkgs/development/misc/stm32/betaflight/default.nixrenamed
The content is the same.
pkgs/development/mobile/androidenv/build-tools.nix+6−6
This diff is too big to show here.
pkgs/tools/security/bettercap/Gemfile → pkgs/development/mobile/cocoapods/Gemfilerenamed+1−1
This diff is too big to show here.
pkgs/development/mobile/cocoapods/Gemfile.locknew file+74
This diff is too big to show here.
pkgs/development/mobile/cocoapods/default.nixnew file+17
This diff is too big to show here.
pkgs/development/mobile/cocoapods/gemset.nixnew file+234
This diff is too big to show here.
pkgs/development/mobile/cocoapods/updatenew file+10
This diff is too big to show here.
pkgs/development/mobile/genymotion/default.nix+2−2
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/build-app.nix+11−33
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/default.nix+2−1
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/examples/default.nix+1−1
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/examples/kitchensink/default.nix+4−5
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/titaniumsdk-7.1.nixnew file+102
This diff is too big to show here.
pkgs/development/mobile/xcodeenv/build-app.nix+30−4
This diff is too big to show here.
pkgs/development/node-packages/README.md+1−51
This diff is too big to show here.
pkgs/development/node-packages/composition-v6.nix+2−1
This diff is too big to show here.
pkgs/development/node-packages/composition-v8.nix+2−1
This diff is too big to show here.
pkgs/development/node-packages/default-v6.nix+10−3
This diff is too big to show here.
pkgs/development/node-packages/node-env.nix+9−3
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v6.json+5−1
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v6.nix+4938−2802
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v8.json+3
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v8.nix+6517−1284
This diff is too big to show here.
pkgs/development/ocaml-modules/alcotest/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/bitstring/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/camlimages/default.nixnew file+20
This diff is too big to show here.
pkgs/development/ocaml-modules/comparelib/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/containers/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/cstruct/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/expat/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/extlib/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/gapi-ocaml/default.nix+6−7
This diff is too big to show here.
pkgs/development/ocaml-modules/herelib/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/default.nix+107−116
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/janePackage.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/old.nixnew file+615
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/default.nix+26−47
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/legacy.nixnew file+57
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/ppx.nixnew file+19
This diff is too big to show here.
pkgs/development/ocaml-modules/ocaml-libvirt/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/ocamlnet/default.nix+8−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ocp-ocamlres/default.nix+8−4
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-deriving/default.nix+20−5
This diff is too big to show here.
pkgs/development/ocaml-modules/optcomp/METAnew file+12
This diff is too big to show here.
pkgs/development/ocaml-modules/optcomp/default.nix+23−1
This diff is too big to show here.
pkgs/development/ocaml-modules/pa_bench/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/pa_ounit/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/pipebang/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_derivers/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/sawja/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/ssl/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/stdint/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/type_conv/112.01.01.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/uchar/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/yojson/default.nix+2−2
This diff is too big to show here.
pkgs/development/perl-modules/MNI/default.nixnew file+21
This diff is too big to show here.
pkgs/development/perl-modules/MNI/no-stdin.patchnew file+13
This diff is too big to show here.
pkgs/development/perl-modules/Socket6-sv_undef.patchnew file+18
This diff is too big to show here.
pkgs/development/perl-modules/generic/builder.sh+1−1
This diff is too big to show here.
pkgs/development/perl-modules/generic/default.nix+3−2
This diff is too big to show here.
pkgs/development/perl-modules/perl-POE-1.367-pod_linkcheck.patchnew file+40
This diff is too big to show here.
pkgs/development/perl-modules/perl-POE-1.367-pod_no404s.patchnew file+46
This diff is too big to show here.
pkgs/development/python-modules/Babel/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/Cython/default.nix+4−17
This diff is too big to show here.
pkgs/development/python-modules/GeoIP/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/IPy/default.nixnew file+24
This diff is too big to show here.
pkgs/development/python-modules/JPype1/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/MechanicalSoup/default.nix+2−4
This diff is too big to show here.
pkgs/development/python-modules/Nikola/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/Rtree/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/WSME/default.nixnew file+49
This diff is too big to show here.
pkgs/development/python-modules/absl-py/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/acme/default.nix+16−4
This diff is too big to show here.
pkgs/development/python-modules/adal/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/affinity/default.nix+6−2
This diff is too big to show here.
pkgs/development/python-modules/agate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aiohttp-jinja2/default.nixnew file+26
This diff is too big to show here.
pkgs/development/python-modules/aiohttp/cors.nix+9−5
This diff is too big to show here.
pkgs/development/python-modules/aiohttp/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/ajpy/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/alembic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/allpairspy/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/alot/default.nixnew file+60
This diff is too big to show here.
pkgs/development/python-modules/altair/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/amqp/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/aniso8601/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/antlr4-python3-runtime/default.nixnew file+18
This diff is too big to show here.
pkgs/development/python-modules/anyjson/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/application/default.nixnew file+15
This diff is too big to show here.
pkgs/development/python-modules/apsw/default.nix+9−10
This diff is too big to show here.
pkgs/development/python-modules/asana/default.nix+13−15
This diff is too big to show here.
pkgs/development/python-modules/asgi_ipc/default.nixdeleted−21
This diff is too big to show here.
pkgs/development/python-modules/asgi_redis/default.nixdeleted−24
This diff is too big to show here.
pkgs/development/python-modules/asgiref/default.nix+15−7
This diff is too big to show here.
pkgs/development/python-modules/astral/default.nix+7−5
This diff is too big to show here.
pkgs/development/python-modules/astroid/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/astropy/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/async_generator/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/async_timeout/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/asyncio/default.nixnew file+18
This diff is too big to show here.
pkgs/development/python-modules/asynctest/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/atomiclong/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/atomicwrites/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/attrdict/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/autobahn/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/autopep8/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/avro/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/avro3k/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/aws-xray-sdk/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/babelfish/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/backcall/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/batinfo/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/bayespy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bcdoc/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/office/beancount/default.nix → pkgs/development/python-modules/beancount/default.nixrenamed+15−11
This diff is too big to show here.
pkgs/development/python-modules/behave/default.nix+8−9
This diff is too big to show here.
pkgs/development/python-modules/betamax/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/bibtexparser/default.nix+16−8
This diff is too big to show here.
pkgs/development/python-modules/billiard/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/binaryornot/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/biopython/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bitbucket-api/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/bitbucket-cli/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/bitmath/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/black/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/blaze/default.nix+6−4
This diff is too big to show here.
pkgs/development/python-modules/bleach/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/blinker/default.nixnew file+18
This diff is too big to show here.
pkgs/development/python-modules/blinkstick/default.nixnew file+31
This diff is too big to show here.
pkgs/development/python-modules/bokeh/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bootstrapped-pip/default.nix+6−6
This diff is too big to show here.
pkgs/development/python-modules/boto3/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/botocore/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bottle/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/bugwarrior/default.nixnew file+31
This diff is too big to show here.
pkgs/development/python-modules/bugzilla/default.nixnew file+30
This diff is too big to show here.
pkgs/development/python-modules/buildout-nix/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/buildout/default.nixnew file+18
This diff is too big to show here.
pkgs/development/python-modules/bumps/default.nixnew file+24
This diff is too big to show here.
pkgs/development/python-modules/bunch/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/buttersink/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/cached-property/default.nix+15−7
This diff is too big to show here.
pkgs/development/python-modules/cachetools/1.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cairosvg/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/can/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/canonicaljson/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/carrot/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/case/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/celery/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/cerberus/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/cffi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/chainer/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/check-manifest/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/cheroot/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cherrypy/default.nix+4−5
This diff is too big to show here.
pkgs/development/python-modules/circus/default.nixnew file+16
This diff is too big to show here.
pkgs/development/python-modules/cjson/default.nixnew file+18
This diff is too big to show here.
pkgs/development/python-modules/clf/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/click-log/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/click/default.nixnew file+30
This diff is too big to show here.
pkgs/development/python-modules/cloudpickle/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/cmarkgfm/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/cmdline/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/codecov/default.nix+6−4
This diff is too big to show here.
pkgs/development/python-modules/cogapp/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/coilmq/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/colander/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/colorclass/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/colour/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/commonmark/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/configobj/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/configparser/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/construct/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/consul/default.nixnew file+24
This diff is too big to show here.
pkgs/development/python-modules/contexter/default.nixnew file+14
This diff is too big to show here.
pkgs/development/python-modules/cookiecutter/default.nixnew file+34
This diff is too big to show here.
pkgs/development/python-modules/cookies/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/cov-core/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/coveralls/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cram/default.nix+4−12
This diff is too big to show here.
pkgs/development/python-modules/crcmod/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/credstash/default.nix+8−3
This diff is too big to show here.
pkgs/development/python-modules/cryptacular/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/cryptography/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cryptography_vectors/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cssselect/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/cssselect2/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/cssutils/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/csvkit/default.nix+31−21
This diff is too big to show here.
pkgs/development/python-modules/cupy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/curtsies/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/cvxopt/default.nixnew file+69
This diff is too big to show here.
pkgs/development/python-modules/cx_oracle/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/cypari2/default.nixnew file+55
This diff is too big to show here.
pkgs/development/python-modules/cysignals/default.nixnew file+41
This diff is too big to show here.
pkgs/development/python-modules/cytoolz/default.nix+3−10
This diff is too big to show here.
pkgs/development/python-modules/daphne/default.nix+20−8
This diff is too big to show here.
pkgs/development/python-modules/darcsver/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/dask/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dataclasses/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/datadog/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/datashape/default.nix+3−1
This diff is too big to show here.
pkgs/development/python-modules/dateutil/1_5.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/datrie/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/dbf/default.nix+8−5
This diff is too big to show here.
pkgs/development/python-modules/debian/default.nixnew file+14
This diff is too big to show here.
pkgs/development/python-modules/deform/default.nixnew file+41
This diff is too big to show here.
pkgs/development/python-modules/defusedxml/default.nixnew file+11
This diff is too big to show here.
pkgs/development/python-modules/deluge-client/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/derpconf/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/detox/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/diff_cover/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/digitalocean/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/discid/default.nix+7−5
This diff is too big to show here.
pkgs/development/python-modules/distro/default.nix−1
This diff is too big to show here.
pkgs/development/python-modules/dj-database-url/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/django-pipeline/default.nixnew file+36
This diff is too big to show here.
pkgs/development/python-modules/django-polymorphic/default.nix+12−6
This diff is too big to show here.
pkgs/development/python-modules/django/1_11.nix+3−4
This diff is too big to show here.
pkgs/development/python-modules/django/2_0.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django_redis/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/djangorestframework/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/docker-pycreds/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/docker-registry-core/default.nixnew file+26
This diff is too big to show here.
pkgs/development/python-modules/docker/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/docker_compose/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dockerpty/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/docopt/default.nixnew file+17
This diff is too big to show here.
pkgs/development/python-modules/doctest-ignore-unicode/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/dogpile.cache/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dogpile.core/default.nixnew file+19
This diff is too big to show here.
pkgs/development/python-modules/dropbox/default.nixnew file+24
This diff is too big to show here.
pkgs/development/python-modules/dugong/default.nixnew file+13
This diff is too big to show here.
pkgs/development/python-modules/dulwich/default.nix+9−7
This diff is too big to show here.
pkgs/development/python-modules/easyprocess/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/ecpy/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/elasticsearch-curator/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/elasticsearch/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/emoji/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/entrypoints/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/envs/default.nixnew file+24
This diff is too big to show here.
pkgs/development/python-modules/evdev/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ewmh/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/face_recognition/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/face_recognition_models/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/faker/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/faulthandler/default.nix+2−13
This diff is too big to show here.
pkgs/development/python-modules/flake8-debugger/default.nix+15−6
This diff is too big to show here.
pkgs/development/python-modules/flake8-import-order/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-assets/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/flask-autoindex/default.nixnew file+44
This diff is too big to show here.
pkgs/development/python-modules/flask-babel/default.nixnew file+44
This diff is too big to show here.
pkgs/development/python-modules/flask-script/default.nix+8−5
This diff is too big to show here.
pkgs/development/python-modules/flask-silk/default.nixnew file+26
This diff is too big to show here.
pkgs/development/python-modules/flit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fonttools/default.nix+8−3
This diff is too big to show here.
pkgs/development/python-modules/fpylll/default.nixnew file+55
This diff is too big to show here.
pkgs/development/python-modules/frozendict/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/ftfy/default.nix+12−10
This diff is too big to show here.
pkgs/development/python-modules/ftputil/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/futures/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/gensim/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/git-annex-adapter/default.nix+4−5
This diff is too big to show here.
pkgs/development/python-modules/google-api-python-client/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/google_api_core/default.nix+10−7
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_core/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_speech/default.nix+4−5
This diff is too big to show here.
pkgs/development/python-modules/google_gax/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/gpapi/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/gplaycli/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/gpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/graph-tool/2.x.x.nix+11−6
This diff is too big to show here.
pkgs/development/python-modules/green/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/gst-python/default.nix+11−8
This diff is too big to show here.
pkgs/development/python-modules/guessit/2.0.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ha-ffmpeg/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/hbmqtt/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/heapdict/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/howdoi/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/html5-parser/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/htmltreediff/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/hupper/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hvac/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/hyperlink/default.nix+7−6
This diff is too big to show here.
pkgs/development/python-modules/idna-ssl/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/idna/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/imbalanced-learn/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/interruptingcow/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/iowait/default.nix+16
This diff is too big to show here.
pkgs/development/python-modules/ipykernel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ipython/5.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/ipython/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/ipywidgets/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jdatetime/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/jieba/default.nix+33
This diff is too big to show here.
pkgs/development/python-modules/josepy/default.nix+35
This diff is too big to show here.
pkgs/development/python-modules/jsonpatch/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jsonref/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/jsonrpc-async/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/jsonrpc-websocket/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jug/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jupyter_client/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jupyterlab/default.nix+31
This diff is too big to show here.
pkgs/development/python-modules/jupyterlab_launcher/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/kafka-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/keras/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/keyring/default.nix+11−13
This diff is too big to show here.
pkgs/development/python-modules/kiwisolver/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/klein/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/konfig/default.nix+48
This diff is too big to show here.
pkgs/development/python-modules/langcodes/default.nix+34
This diff is too big to show here.
pkgs/development/python-modules/latexcodec/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/ldap/default.nix+11−30
This diff is too big to show here.
pkgs/development/python-modules/ldappool/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/ledgerblue/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/libais/default.nix+6−7
This diff is too big to show here.
pkgs/development/python-modules/libgpuarray/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/libtmux/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/libvirt/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/linode-api/default.nix+12−8
This diff is too big to show here.
pkgs/development/python-modules/llfuse/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/llvmlite/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/locket/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/locustio/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/logilab/constraint.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/logster/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/lxml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/m2r/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozdevice.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozlog.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozprocess.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozprofile.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozrunner.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozversion.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marisa-trie/default.nix+34
This diff is too big to show here.
pkgs/development/python-modules/marisa/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/matplotlib/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/mecab-python3/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/meliae/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/milksnake/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/miniupnpc/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/misaka/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/mock-open/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/moinmoin/default.nix+8−5
This diff is too big to show here.
pkgs/development/python-modules/more-itertools/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/moto/default.nix+11−2
This diff is too big to show here.
pkgs/development/python-modules/mozterm/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/mrbob/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/msgpack-numpy/default.nix+38
This diff is too big to show here.
pkgs/development/python-modules/msgpack/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mt-940/default.nix+35
This diff is too big to show here.
pkgs/development/python-modules/mt-940/no-coverage.patch+26
This diff is too big to show here.
pkgs/development/python-modules/multipledispatch/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/murmurhash/default.nix+11−12
This diff is too big to show here.
pkgs/development/python-modules/mutagen/default.nix+31
This diff is too big to show here.
pkgs/development/python-modules/mysql-connector/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/mysqlclient/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/nbxmpp/default.nix+18−5
This diff is too big to show here.
pkgs/development/python-modules/neovim/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/netdisco/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/networkx/default.nix+4−12
This diff is too big to show here.
pkgs/development/python-modules/neurotools/default.nix+35
This diff is too big to show here.
pkgs/development/python-modules/nevow/default.nix+41
This diff is too big to show here.
pkgs/development/python-modules/nilearn/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nipype/default.nix+20−5
This diff is too big to show here.
pkgs/development/python-modules/nipype/prov-version.patch+21
This diff is too big to show here.
pkgs/development/python-modules/node-semver/default.nix−1
This diff is too big to show here.
pkgs/development/python-modules/noise/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/notebook/default.nix+11−6
This diff is too big to show here.
pkgs/development/python-modules/numba/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/numpy-stl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/numpy/default.nix+15−4
This diff is too big to show here.
pkgs/development/python-modules/numpydoc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/oauth2client/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/odo/default.nix+17−9
This diff is too big to show here.
pkgs/development/python-modules/ofxhome/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/openidc-client/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/openpyxl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/opentimestamps/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/oset/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/packaging/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pandas/0.17.1.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/paramz/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/parse-type/default.nix+2−10
This diff is too big to show here.
pkgs/development/python-modules/parse/default.nix+2−10
This diff is too big to show here.
pkgs/development/python-modules/patator/default.nix+40
This diff is too big to show here.
pkgs/development/python-modules/path.py/default.nix+4−2
This diff is too big to show here.
pkgs/development/python-modules/pathspec/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/paypalrestsdk/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/pbkdf2/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/pbr/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pecan/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/pendulum/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/periodictable/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/phonenumbers/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pillow/default.nix+12−3
This diff is too big to show here.
pkgs/development/python-modules/pip/default.nix+34
This diff is too big to show here.
pkgs/development/python-modules/pkginfo/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/plaster-pastedeploy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plotly/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/polib/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/pomegranate/default.nix+4−1
This diff is too big to show here.
pkgs/development/python-modules/poppler-qt5/default.nix+42
This diff is too big to show here.
pkgs/development/python-modules/poppler-qt5/poppler-include-dir.patch+12
This diff is too big to show here.
pkgs/development/python-modules/portend/default.nix+11−6
This diff is too big to show here.
pkgs/development/python-modules/praw/default.nix+7−2
This diff is too big to show here.
pkgs/development/python-modules/prawcore/default.nix+6−2
This diff is too big to show here.
pkgs/development/python-modules/pretend/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/proboscis/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/progressbar/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/progressbar231/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/progressbar33/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/prov/default.nix+15−1
This diff is too big to show here.
pkgs/development/python-modules/publicsuffix/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/pushbullet/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/pushover/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/py/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/py3status/default.nix+48
This diff is too big to show here.
pkgs/development/python-modules/py4j/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/pyamf/default.nix+4−2
This diff is too big to show here.
pkgs/development/python-modules/pyarrow/default.nix+65
This diff is too big to show here.
pkgs/development/python-modules/pyatspi/default.nix+19−13
This diff is too big to show here.
pkgs/development/python-modules/pyaxmlparser/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/pybase64/default.nix+5−5
This diff is too big to show here.
pkgs/development/python-modules/pybfd/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/pybindgen/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/pyblake2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybtex-docutils/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/pybtex/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/pychart/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/pychromecast/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycontracts/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/pycparser/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/pycryptodome/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycryptodomex/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycups/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/pycurl/default.nix+45
This diff is too big to show here.
pkgs/development/python-modules/pydub/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyechonest/default.nix+17
This diff is too big to show here.
pkgs/development/python-modules/pyfakefs/default.nix+24−8
This diff is too big to show here.
pkgs/development/python-modules/pygame_sdl2/default.nix+21−9
This diff is too big to show here.
pkgs/development/python-modules/pygccxml/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/pygraphviz/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/pygtail/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/pyhomematic/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/pyjade/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/pylint/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pymongo/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyobjc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyocr/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/pyodbc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyopencl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyperclip/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/pyqt/5.x.nix+8−5
This diff is too big to show here.
pkgs/development/python-modules/pyroute2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pysha3/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/pyslurm/default.nix+3−4
This diff is too big to show here.
pkgs/development/python-modules/pyspark/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/pytest-catchlog/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/pytest-cov/default.nix+30
This diff is too big to show here.
pkgs/development/python-modules/pytest-fixture-config/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/pytest-flake8/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/pytest-flakes/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/pytest-isort/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/pytest-mock/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/pytest-pep8/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/pytest-raisesregexp/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/pytest-server-fixtures/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/pytest-shutil/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/pytest-subtesthack/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/pytest-sugar/default.nix+4
This diff is too big to show here.
pkgs/development/python-modules/pytest-virtualenv/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/pytest-xdist/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/pytestcache/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/pytestrunner/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-ctags3/default.nix+17
This diff is too big to show here.
pkgs/development/python-modules/python-daemon/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/python-docx/default.nix+33
This diff is too big to show here.
pkgs/development/python-modules/python-gnupg/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-jose/default.nix+16−11
This diff is too big to show here.
pkgs/development/python-modules/python-jose/pycryptodome.patch−37
This diff is too big to show here.
pkgs/development/python-modules/python-ly/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/python-oauth2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-slugify/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python_openzwave/default.nix+40
This diff is too big to show here.
pkgs/development/python-modules/pytools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyzmq/default.nix+34
This diff is too big to show here.
pkgs/development/python-modules/qtpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/raven/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/readme_renderer/default.nix+8−6
This diff is too big to show here.
pkgs/development/python-modules/rednose/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/regex/default.nix+8−3
This diff is too big to show here.
pkgs/development/python-modules/requests-cache/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/requests-mock/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/requests-toolbelt/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/requests-unixsocket/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/responses/default.nix+16
This diff is too big to show here.
pkgs/development/python-modules/restructuredtext_lint/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rlp/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/robomachine/default.nix+5−6
This diff is too big to show here.
pkgs/development/python-modules/robotframework/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/root_numpy/default.nix+6−1
This diff is too big to show here.
pkgs/development/python-modules/rootpy/default.nix+9−1
This diff is too big to show here.
pkgs/development/python-modules/rpy2/default.nix+54
This diff is too big to show here.
pkgs/development/python-modules/s3fs/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/sasmodels/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/scapy/default.nix+14−9
This diff is too big to show here.
pkgs/development/python-modules/scapy/fix-version-1.patch+2−2
This diff is too big to show here.
pkgs/development/python-modules/scapy/fix-version-2.patch+12−8
This diff is too big to show here.
pkgs/development/python-modules/scikitlearn/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/scipy/default.nix+5−6
This diff is too big to show here.
pkgs/development/python-modules/selenium/default.nix+16−13
This diff is too big to show here.
pkgs/development/python-modules/send2trash/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/serversyncstorage/default.nix+4
This diff is too big to show here.
pkgs/development/python-modules/service_identity/default.nix+1−3
This diff is too big to show here.
pkgs/development/python-modules/setuptools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/setuptools_scm/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/shapely/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/slimit/default.nix+36
This diff is too big to show here.
pkgs/development/python-modules/smart_open/default.nix+17−3
This diff is too big to show here.
pkgs/development/python-modules/spacy/default.nix+33−21
This diff is too big to show here.
pkgs/development/python-modules/sphinx-navtree/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/sphinx/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/sqlalchemy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sqlmap/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sseclient/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/stem/default.nix+30
This diff is too big to show here.
pkgs/development/python-modules/stripe/default.nix+7−8
This diff is too big to show here.
pkgs/development/python-modules/svg-path/default.nix+17
This diff is too big to show here.
pkgs/development/python-modules/sybil/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tablib/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/tblib/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/bin.nix+51
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/termstyle/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/testfixtures/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/text-unidecode/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/textacy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/thinc/default.nix+38−32
This diff is too big to show here.
pkgs/development/python-modules/thumbor/default.nix+56
This diff is too big to show here.
pkgs/development/python-modules/tifffile/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tinycss2/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/tiros/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tmdb3/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/toml/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/tornado/default.nix+12−4
This diff is too big to show here.
pkgs/development/python-modules/tox/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tqdm/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/transaction/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/trezor/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/tunigo/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/txaio/default.nix+4−11
This diff is too big to show here.
pkgs/development/python-modules/txtorcon/default.nix+2−10
This diff is too big to show here.
pkgs/development/python-modules/u-msgpack-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/unittest-xml-reporting/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/uritemplate/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/virtual-display/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/virtualenv/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vobject/default.nix+24
This diff is too big to show here.
pkgs/development/python-modules/vowpalwabbit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vxi11/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/wakeonlan/default.nix+16−3
This diff is too big to show here.
pkgs/development/python-modules/warrant/default.nix+36
This diff is too big to show here.
pkgs/development/python-modules/weboob/default.nix+1
This diff is too big to show here.
pkgs/development/python-modules/wheel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/whichcraft/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/widgetsnbextension/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/wordfreq/default.nix+48
This diff is too big to show here.
pkgs/development/python-modules/wrapt/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/ws4py/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xarray/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xcffib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xdot/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/xgboost/default.nix+35
This diff is too big to show here.
pkgs/development/python-modules/yahooweather/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/yapf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/yolk/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/zeroconf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zict/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/zipfile36/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zodb/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zope_copy/default.nix+8−5
This diff is too big to show here.
pkgs/development/python-modules/zxcvbn-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/r-modules/README.md+1−120
This diff is too big to show here.
pkgs/development/r-modules/bioc-annotation-packages.nix+1
This diff is too big to show here.
pkgs/development/r-modules/bioc-experiment-packages.nix+3−3
This diff is too big to show here.
pkgs/development/r-modules/bioc-packages.nix+93−93
This diff is too big to show here.
pkgs/development/r-modules/cran-packages.nix+1738−1405
This diff is too big to show here.
pkgs/development/r-modules/default.nix+7−5
This diff is too big to show here.
pkgs/development/r-modules/generic-builder.nix+2−2
This diff is too big to show here.
pkgs/development/ruby-modules/bundled-common/default.nix+1−1
This diff is too big to show here.
pkgs/development/ruby-modules/bundler-app/default.nix+2−1
This diff is too big to show here.
pkgs/development/ruby-modules/gem-config/default.nix+13−8
This diff is too big to show here.
pkgs/development/tools/ammonite/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/autoflake/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/checkstyle/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/cppcheck/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/flow/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/analysis/include-what-you-use/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/analysis/panopticon/default.nix+52
This diff is too big to show here.
pkgs/development/tools/analysis/pmd/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/qcachegrind/default.nix−8
This diff is too big to show here.
pkgs/development/tools/analysis/radare2-cutter/default.nix+2−20
This diff is too big to show here.
pkgs/development/tools/analysis/radare2/default.nix+18−14
This diff is too big to show here.
pkgs/development/tools/analysis/retdec/default.nix+1
This diff is too big to show here.
pkgs/development/tools/analysis/spin/default.nix+6−3
This diff is too big to show here.
pkgs/development/tools/ansible-lint/default.nix+32
This diff is too big to show here.
pkgs/development/tools/apktool/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/apache-ant/1.9.nix+111
This diff is too big to show here.
pkgs/development/tools/build-managers/apache-ant/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/0.4.nix+1−1
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/pkg.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/plugins.nix+1−1
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/worker.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/2.8.nix+8−4
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/setup-hook.sh+14
This diff is too big to show here.
pkgs/development/tools/build-managers/conan/default.nix+46−14
This diff is too big to show here.
pkgs/development/tools/build-managers/doit/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/gn/default.nix+111−53
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/3.82/default.nix+3
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/4.2/default.nix+2
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/4.2/glibc-2.27-glob.patch+32
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/4.2/glibc-2.27.patch−24
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/4.2/head.nix−69
This diff is too big to show here.
pkgs/development/tools/build-managers/gnumake/4.2/impure-dirs-head.patch−31
This diff is too big to show here.
pkgs/development/tools/build-managers/gradle/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/gup/build.nix−16
This diff is too big to show here.
pkgs/development/tools/build-managers/gup/default.nix+34−17
This diff is too big to show here.
pkgs/development/tools/build-managers/icmake/default.nix+7−3
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/allow-dirs-outside-of-prefix.patch+25
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/default.nix+50−7
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/fix-rpath.patch+32
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/overly-strict-size-check.patch+12
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/setup-hook.sh+16−3
This diff is too big to show here.
pkgs/development/tools/build-managers/pants/default.nix+6−6
This diff is too big to show here.
pkgs/development/tools/build-managers/redo-sh/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/remake/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/build-managers/sbt/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/waf/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/castxml/default.nix+49
This diff is too big to show here.
pkgs/development/tools/cbor-diag/Gemfile+2
This diff is too big to show here.
pkgs/development/tools/cbor-diag/Gemfile.lock+19
This diff is too big to show here.
pkgs/development/tools/cbor-diag/default.nix+30
This diff is too big to show here.
pkgs/development/tools/cbor-diag/gemset.nix+36
This diff is too big to show here.
pkgs/development/tools/cddl/Gemfile+2
This diff is too big to show here.
pkgs/development/tools/cddl/Gemfile.lock+28
This diff is too big to show here.
pkgs/development/tools/cddl/default.nix+17
This diff is too big to show here.
pkgs/development/tools/cddl/gemset.nix+69
This diff is too big to show here.
pkgs/development/tools/cloudfoundry-cli/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/container-linux-config-transpiler/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/continuous-integration/buildkite-agent/2.x.nix+12
This diff is too big to show here.
pkgs/development/tools/continuous-integration/buildkite-agent/3.x.nix+12
This diff is too big to show here.
pkgs/development/tools/continuous-integration/buildkite-agent/generic.nix+9−13
This diff is too big to show here.
pkgs/development/tools/continuous-integration/gitlab-runner/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/database/liquibase/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/database/pyrseas/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/database/sqldeveloper/default.nix+22−4
This diff is too big to show here.
pkgs/development/tools/database/sqlitebrowser/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/doctl/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/documentation/gtk-doc/default.nix+7−3
This diff is too big to show here.
pkgs/development/tools/documentation/mkdocs/default.nix+7−3
This diff is too big to show here.
pkgs/development/tools/flyway/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/fmbt/default.nix+53
This diff is too big to show here.
pkgs/development/tools/gauge/default.nix+3−2
This diff is too big to show here.
pkgs/development/tools/gllvm/default.nix+22
This diff is too big to show here.
pkgs/development/tools/glslviewer/default.nix+21−11
This diff is too big to show here.
pkgs/development/tools/gnulib/default.nix+9−6
This diff is too big to show here.
pkgs/development/tools/go-langserver/default.nix+25
This diff is too big to show here.
pkgs/development/tools/godot/default.nix+39−13
This diff is too big to show here.
pkgs/development/tools/godot/dont_clobber_environment.patch+16
This diff is too big to show here.
pkgs/development/tools/godot/pkg_config_additions.patch+8−7
This diff is too big to show here.
pkgs/development/tools/gron/default.nix+32
This diff is too big to show here.
pkgs/development/tools/gron/deps.nix+35
This diff is too big to show here.
pkgs/development/tools/guile/guile-lint/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/haskell/hyper-haskell/default.nix+50
This diff is too big to show here.
pkgs/development/tools/haskell/hyper-haskell/server.nix+21
This diff is too big to show here.
pkgs/development/tools/haskell/multi-ghc-travis/default.nix+8−8
This diff is too big to show here.
pkgs/development/tools/hcloud/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/iaca/2.1.nix+34
This diff is too big to show here.
pkgs/development/tools/iaca/3.0.nix+25
This diff is too big to show here.
pkgs/development/tools/icestorm/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/imatix_gsl/default.nix+3
This diff is too big to show here.
pkgs/development/tools/java/cfr/default.nix+8−16
This diff is too big to show here.
pkgs/development/tools/java/jhiccup/default.nix+36
This diff is too big to show here.
pkgs/development/tools/java/visualvm/default.nix+16−16
This diff is too big to show here.
pkgs/development/tools/jbake/default.nix+7−7
This diff is too big to show here.
pkgs/development/tools/jl/default.nix+28
This diff is too big to show here.
pkgs/development/tools/jsduck/Gemfile.lock+1−1
This diff is too big to show here.
pkgs/development/tools/jsduck/gemset.nix+3−3
This diff is too big to show here.
pkgs/development/tools/json2hcl/default.nix+25
This diff is too big to show here.
pkgs/development/tools/json2hcl/deps.nix+20
This diff is too big to show here.
pkgs/development/tools/libsigrok/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/libsigrokdecode/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix−50
This diff is too big to show here.
pkgs/development/tools/misc/autoconf-archive/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/autogen/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/automake/automake-1.16.x.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/avarice/default.nix+1
This diff is too big to show here.
pkgs/development/tools/misc/avrdude/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/babeltrace/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/binutils/2.30.nix−131
This diff is too big to show here.
pkgs/development/tools/misc/binutils/default.nix+15−8
This diff is too big to show here.
pkgs/development/tools/misc/binutils/gold-symbol-visibility.patch+79
This diff is too big to show here.
pkgs/development/tools/misc/binutils/support-ios.patch+112
This diff is too big to show here.
pkgs/development/tools/misc/checkbashisms/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/cl-launch/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/cquery/default.nix+61
This diff is too big to show here.
pkgs/development/tools/misc/cquery/wrapper+12
This diff is too big to show here.
pkgs/development/tools/misc/creduce/default.nix−2
This diff is too big to show here.
pkgs/development/tools/misc/csmith/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/d-feet/default.nix+13−5
This diff is too big to show here.
pkgs/development/tools/misc/fsatrace/default.nix+31
This diff is too big to show here.
pkgs/development/tools/misc/gdb/darwin-target-match.patch+11
This diff is too big to show here.
pkgs/development/tools/misc/gdb/default.nix+2−1
This diff is too big to show here.
pkgs/development/tools/misc/gede/default.nix+7−9
This diff is too big to show here.
pkgs/development/tools/misc/global/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/help2man/default.nix+18−10
This diff is too big to show here.
pkgs/development/tools/misc/hydra/default.nix+8−6
This diff is too big to show here.
pkgs/development/tools/misc/intel-gpu-tools/default.nix+4−2
This diff is too big to show here.
pkgs/development/tools/misc/kibana/5.x.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/kibana/6.x.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/lsof/darwin-dfile.patch+12
This diff is too big to show here.
pkgs/development/tools/misc/lsof/default.nix+8−7
This diff is too big to show here.
pkgs/development/tools/misc/lsof/dfile.patch−18
This diff is too big to show here.
pkgs/development/tools/misc/lttng-tools/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/lttng-ust/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/lttv/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/luarocks/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/misc/opengrok/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/pwndbg/default.nix+48
This diff is too big to show here.
pkgs/development/tools/misc/strace/default.nix+6−5
This diff is too big to show here.
pkgs/development/tools/misc/sysbench/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/travis/Gemfile+1−1
This diff is too big to show here.
pkgs/development/tools/misc/travis/Gemfile.lock+2−2
This diff is too big to show here.
pkgs/development/tools/misc/travis/default.nix+5
This diff is too big to show here.
pkgs/development/tools/misc/travis/gemset.nix+8
This diff is too big to show here.
pkgs/development/tools/misc/travis/shell.nix+11
This diff is too big to show here.
pkgs/development/tools/misc/uhd/default.nix+15−10
This diff is too big to show here.
pkgs/development/tools/misc/uhd/neon.patch+19
This diff is too big to show here.
pkgs/development/tools/misc/usb-modeswitch/data.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/yodl/default.nix+5−2
This diff is too big to show here.
pkgs/development/tools/mypy/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/node-webkit/nw11.nix−59
This diff is too big to show here.
pkgs/development/tools/node-webkit/nw9.nix−57
This diff is too big to show here.
pkgs/development/tools/nwjs/default.nix+87
This diff is too big to show here.
pkgs/development/tools/ocaml/findlib/default.nix+23−4
This diff is too big to show here.
pkgs/development/tools/ocaml/js_of_ocaml/camlp4.nix+2−2
This diff is too big to show here.
pkgs/development/tools/ocaml/js_of_ocaml/compiler.nix+2−2
This diff is too big to show here.
pkgs/development/tools/ocaml/js_of_ocaml/lwt.nix+16
This diff is too big to show here.
pkgs/development/tools/ocaml/js_of_ocaml/ppx_deriving_json.nix+15
This diff is too big to show here.
pkgs/development/tools/ocaml/js_of_ocaml/tyxml.nix+16
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlbuild/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlify/default.nix+10−3
This diff is too big to show here.
pkgs/development/tools/parsing/antlr/2.7.7.nix+1−1
This diff is too big to show here.
pkgs/development/tools/parsing/antlr/4.7.nix+2−2
This diff is too big to show here.
pkgs/development/tools/parsing/jshon/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/parsing/peg/default.nix+2−7
This diff is too big to show here.
pkgs/development/tools/parsing/ragel/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/parsing/re2c/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/pew/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/pipenv/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/qtcreator/default.nix
This diff is too big to show here.
pkgs/development/tools/react-native-debugger/default.nix+83
This diff is too big to show here.
pkgs/development/tools/remarshal/default.nix+5−7
This diff is too big to show here.
pkgs/development/tools/rust/bindgen/default.nix+7−7
This diff is too big to show here.
pkgs/development/tools/sassc/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/sauce-connect/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/selenium/chromedriver/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/setupcfg2nix/default.nix+19
This diff is too big to show here.
pkgs/development/tools/setupcfg2nix/info.nix+7
This diff is too big to show here.
pkgs/development/tools/sigrok-cli/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/skopeo/default.nix+18−7
This diff is too big to show here.
pkgs/development/tools/spirv-tools/default.nix+6−7
This diff is too big to show here.
pkgs/development/tools/textql/default.nix+13−5
This diff is too big to show here.
pkgs/development/tools/toxiproxy/default.nix+26
This diff is too big to show here.
pkgs/development/tools/tradcpp/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/valadoc/default.nix+12−7
This diff is too big to show here.
pkgs/development/tools/vcstool/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/wllvm/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/xcbuild/platform.nix+21
This diff is too big to show here.
pkgs/development/tools/xcbuild/setup-hook.sh+1−1
This diff is too big to show here.
pkgs/development/tools/xcbuild/wrapper.nix+3
This diff is too big to show here.
pkgs/development/tools/yarn/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/yarn2nix/bin/yarn2nix.js+144
This diff is too big to show here.
pkgs/development/tools/yarn2nix/default.nix+199
This diff is too big to show here.
pkgs/development/tools/yarn2nix/fixup_bin.js+45
This diff is too big to show here.
pkgs/development/tools/yarn2nix/package.json+19
This diff is too big to show here.
pkgs/development/tools/yarn2nix/yarn.lock+11
This diff is too big to show here.
pkgs/development/tools/yarn2nix/yarn.nix+23
This diff is too big to show here.
pkgs/development/tools/yq/default.nix+5−7
This diff is too big to show here.
pkgs/development/web/grails/default.nix+2−2
This diff is too big to show here.
pkgs/development/web/insomnia/default.nix+2−2
This diff is too big to show here.
pkgs/development/web/kore/default.nix+4
This diff is too big to show here.
pkgs/development/web/nodejs/no-xcodebuild.patch+13
This diff is too big to show here.
pkgs/development/web/nodejs/nodejs-release-keys.asc+776
This diff is too big to show here.
pkgs/development/web/nodejs/nodejs.nix+12−1
This diff is too big to show here.
pkgs/development/web/nodejs/update-keyring+18
This diff is too big to show here.
pkgs/development/web/nodejs/update.nix+27
This diff is too big to show here.
pkgs/development/web/nodejs/v6.nix+3−3
This diff is too big to show here.
pkgs/development/web/nodejs/v8.nix+3−3
This diff is too big to show here.
pkgs/development/web/nodejs/v9.nix+2−2
This diff is too big to show here.