git.iko.soy/typeable/nixpkgs
on master help sign in
Merge remote-tracking branch 'upstream/master' into HEAD
commit0cd857bffd7c1346a04e79a8070ca860d3bc296d authorFrederik Rietdijk <fridh@fridh.nl> dateSat 25 Nov 2017, 11:38 (9 years ago) parentd08746388eea69
22 files changed+695−64
lib/maintainers.nix+1 nixos/modules/services/monitoring/munin.nix+31−37 nixos/modules/services/x11/hardware/libinput.nix+7 nixos/modules/services/x11/xserver.nix−1 pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2 pkgs/games/pysolfc/default.nix+39 pkgs/games/pysolfc/pysolfc-datadir.patch+19 pkgs/misc/cups/drivers/cnijfilter_4_00/default.nix+150 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-1-cups-1.6.patch+62 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-6-cups-1.6.patch+87 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-4-ppd.patch+10 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-5-abi_x86_32.patch+45 pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-6-headers.patch+11 pkgs/servers/monitoring/munin/adding_sconfdir_munin-node.patch+41 pkgs/servers/monitoring/munin/default.nix+5−2 pkgs/servers/monitoring/munin/preserve_environment.patch+41 pkgs/servers/traefik/default.nix+7−12 pkgs/tools/misc/hdf5/1_8.nix+76 pkgs/tools/misc/hdf5/default.nix+5−8 pkgs/tools/system/minijail/default.nix+39 pkgs/top-level/all-packages.nix+15 pkgs/top-level/lua-packages.nix+2−2
lib/maintainers.nix+1
@@ -488,6 +488,7 @@
488488 patternspandemic = "Brad Christensen <patternspandemic@live.com>";
489489 pawelpacana = "Paweł Pacana <pawel.pacana@gmail.com>";
490490 pbogdan = "Piotr Bogdan <ppbogdan@gmail.com>";
491+ pcarrier = "Pierre Carrier <pc@rrier.ca>";
491492 periklis = "theopompos@gmail.com";
492493 pesterhazy = "Paulus Esterhazy <pesterhazy@gmail.com>";
493494 peterhoeg = "Peter Hoeg <peter@hoeg.com>";
nixos/modules/services/monitoring/munin.nix+31−37
@@ -17,40 +17,6 @@ let
1717 nodeCfg = config.services.munin-node;
1818 cronCfg = config.services.munin-cron;
1919
20− muninPlugins = pkgs.stdenv.mkDerivation {
21− name = "munin-available-plugins";
22− buildCommand = ''
23− mkdir -p $out
24−
25− cp --preserve=mode ${pkgs.munin}/lib/plugins/* $out/
26−
27− for file in $out/*; do
28− case "$file" in
29− */plugin.sh|*/plugins.history)
30− chmod +x "$file"
31− continue;;
32− esac
33−
34− # read magic makers from the file
35− family=$(sed -nr 's/.*#%#\s+family\s*=\s*(\S+)\s*/\1/p' $file)
36− cap=$(sed -nr 's/.*#%#\s+capabilities\s*=\s*(.+)/\1/p' $file)
37−
38− wrapProgram $file \
39− --set PATH "/run/wrappers/bin:/run/current-system/sw/bin" \
40− --set MUNIN_LIBDIR "${pkgs.munin}/lib" \
41− --set MUNIN_PLUGSTATE "/var/run/munin"
42−
43− # munin uses markers to tell munin-node-configure what a plugin can do
44− echo "#%# family=$family" >> $file
45− echo "#%# capabilities=$cap" >> $file
46− done
47−
48− # NOTE: we disable disktstats because plugin seems to fail and it hangs html generation (100% CPU + memory leak)
49− rm -f $out/diskstats
50− '';
51− buildInputs = [ pkgs.makeWrapper ];
52− };
53−
5420 muninConf = pkgs.writeText "munin.conf"
5521 ''
5622 dbdir /var/lib/munin
@@ -83,6 +49,29 @@ let
8349
8450 ${nodeCfg.extraConfig}
8551 '';
52+
53+ pluginConf = pkgs.writeText "munin-plugin-conf"
54+ ''
55+ [hddtemp_smartctl]
56+ user root
57+ group root
58+
59+ [meminfo]
60+ user root
61+ group root
62+
63+ [ipmi*]
64+ user root
65+ group root
66+ '';
67+
68+ pluginConfDir = pkgs.stdenv.mkDerivation {
69+ name = "munin-plugin-conf.d";
70+ buildCommand = ''
71+ mkdir $out
72+ ln -s ${pluginConf} $out/nixos-config
73+ '';
74+ };
8675in
8776
8877{
@@ -179,17 +168,22 @@ in
179168 description = "Munin Node";
180169 after = [ "network.target" ];
181170 wantedBy = [ "multi-user.target" ];
182− path = [ pkgs.munin ];
171+ path = with pkgs; [ munin smartmontools "/run/current-system/sw" "/run/wrappers" ];
172+ environment.MUNIN_LIBDIR = "${pkgs.munin}/lib";
183173 environment.MUNIN_PLUGSTATE = "/var/run/munin";
174+ environment.MUNIN_LOGDIR = "/var/log/munin";
184175 preStart = ''
185176 echo "updating munin plugins..."
186177
187178 mkdir -p /etc/munin/plugins
188179 rm -rf /etc/munin/plugins/*
189− PATH="/run/wrappers/bin:/run/current-system/sw/bin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
180+ ${pkgs.munin}/bin/munin-node-configure --suggest --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${pkgs.munin}/lib/plugins --servicedir=/etc/munin/plugins --sconfdir=${pluginConfDir} 2>/dev/null | ${pkgs.bash}/bin/bash
181+
182+ # NOTE: we disable disktstats because plugin seems to fail and it hangs html generation (100% CPU + memory leak)
183+ rm /etc/munin/plugins/diskstats || true
190184 '';
191185 serviceConfig = {
192− ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/";
186+ ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/ --sconfdir=${pluginConfDir}";
193187 };
194188 };
195189
nixos/modules/services/x11/hardware/libinput.nix+7
@@ -198,6 +198,13 @@ in {
198198
199199 environment.systemPackages = [ pkgs.xorg.xf86inputlibinput ];
200200
201+ environment.etc = [
202+ (let cfgPath = "X11/xorg.conf.d/40-libinput.conf"; in {
203+ source = pkgs.xorg.xf86inputlibinput.out + "/share/" + cfgPath;
204+ target = cfgPath;
205+ })
206+ ];
207+
201208 services.udev.packages = [ pkgs.libinput ];
202209
203210 services.xserver.config =
nixos/modules/services/x11/xserver.nix−1
@@ -700,7 +700,6 @@ in
700700 Section "InputClass"
701701 Identifier "Keyboard catchall"
702702 MatchIsKeyboard "on"
703− Option "XkbRules" "base"
704703 Option "XkbModel" "${cfg.xkbModel}"
705704 Option "XkbLayout" "${cfg.layout}"
706705 Option "XkbOptions" "${cfg.xkbOptions}"
pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 name= "riot-web-${version}";
5− version = "0.12.6";
5+ version = "0.13.1";
66
77 src = fetchurl {
88 url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
9− sha256 = "00hxjhnsm4622hv46xm7lc81kbnzi2iz77qppwma14cbh63jbilv";
9+ sha256 = "19g0d3wqmz4vj9flf7pfgfvm2qf2w3jhxp9qdyfbiwd670h5wjlv";
1010 };
1111
1212 installPhase = ''
pkgs/games/pysolfc/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ fetchurl, python2, stdenv }:
2+
3+with python2.pkgs;
4+
5+buildPythonApplication rec {
6+ pname = "PySolFC";
7+ version = "2.0";
8+
9+ src = fetchurl {
10+ url = "mirror://sourceforge/pysolfc/${pname}-${version}.tar.bz2";
11+ sha256 = "0v0v8iflw55f5mghglkw80j8b7lv1hffjassfhqc4y84dmz8xjyv";
12+ };
13+
14+ patches = [
15+ ./pysolfc-datadir.patch
16+ ];
17+
18+ propagatedBuildInputs = [
19+ tkinter
20+ ];
21+
22+ # No tests in archive
23+ doCheck = false;
24+
25+ postInstall = ''
26+ # executables should not have an extension
27+ pushd $out/bin
28+ mv pysol.py pysol
29+ rm pysol.pyc
30+ popd
31+ '';
32+
33+ meta = with stdenv.lib; {
34+ description = "A collection of more than 1000 solitaire card games";
35+ homepage = http://pysolfc.sourceforge.net/;
36+ license = licenses.gpl3;
37+ maintainers = with maintainers; [ kierdavis ];
38+ };
39+}
pkgs/games/pysolfc/pysolfc-datadir.patchnew file+19
@@ -0,0 +1,19 @@
1+diff --git a/pysollib/util.py b/pysollib/util.py
2+index 8de3f00..26f4bc7 100644
3+--- a/pysollib/util.py
4++++ b/pysollib/util.py
5+@@ -110,13 +110,7 @@ class DataLoader:
6+ head, tail = os.path.split(argv0)
7+ if not head:
8+ head = os.curdir
9+- # dir where placed startup script
10+- path.append(head)
11+- path.append(os.path.join(head, "data"))
12+- path.append(os.path.join(head, os.pardir, "data"))
13+- # dir where placed pysol package
14+- path.append(os.path.join(sys.path[0], "data"))
15+- path.append(os.path.join(sys.path[0], "pysollib", "data"))
16++ path.append(os.path.join(head, "..", "share", "PySolFC"))
17+ # from settings.py
18+ path.extend(DATA_DIRS)
19+ # check path for valid directories
pkgs/misc/cups/drivers/cnijfilter_4_00/default.nixnew file+150
@@ -0,0 +1,150 @@
1+{ stdenv, lib, fetchzip,
2+ autoconf, automake, libtool,
3+ cups, popt, libtiff, libpng,
4+ ghostscript, glib, libusb, libxml2 }:
5+
6+/* this derivation is basically just a transcription of the rpm .spec
7+ file included in the tarball */
8+
9+let arch =
10+ if stdenv.system == "x86_64-linux" then "64"
11+ else if stdenv.system == "i686-linux" then "32"
12+ else abort "Unsupported architecture";
13+
14+in stdenv.mkDerivation rec {
15+ name = "cnijfilter-${version}";
16+
17+ /* important note about versions: cnijfilter packages seem to use
18+ versions in a non-standard way. the version indicates which
19+ printers are supported in the package. so this package should
20+ not be "upgraded" in the usual way.
21+
22+ instead, if you want to include another version supporting your
23+ printer, you should try to abstract out the common things (which
24+ should be pretty much everything except the version and the 'pr'
25+ and 'pr_id' values to loop over). */
26+ version = "4.00";
27+
28+ src = fetchzip {
29+ url = "http://gdlp01.c-wss.com/gds/5/0100005515/01/cnijfilter-source-4.00-1.tar.gz";
30+ sha256 = "1f6vpx1z3qa88590i5m0s49j9n90vpk81xmw6pvj0nfd3qbvzkya";
31+ };
32+
33+ buildInputs = [ autoconf libtool automake
34+ cups popt libtiff libpng
35+ ghostscript glib libusb libxml2 ];
36+
37+ # patches from https://github.com/tokiclover/bar-overlay/tree/master/net-print/cnijfilter
38+ patches = [
39+ ./patches/cnijfilter-3.80-1-cups-1.6.patch
40+ ./patches/cnijfilter-3.80-6-cups-1.6.patch
41+ ./patches/cnijfilter-4.00-4-ppd.patch
42+ ./patches/cnijfilter-4.00-5-abi_x86_32.patch
43+ ./patches/cnijfilter-4.00-6-headers.patch
44+ ];
45+
46+ postPatch = ''
47+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" backend/src/Makefile.am;
48+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" backendnet/backend/Makefile.am;
49+ sed -i "s|/usr/lib/cups/backend|$out/lib/cups/backend|" cnijbe/src/Makefile.am;
50+ sed -i "s|/usr|$out|" backend/src/cnij_backend_common.c;
51+ sed -i "s|/usr/bin|${ghostscript}/bin|" pstocanonij/filter/pstocanonij.c;
52+ '';
53+
54+ configurePhase = ''
55+ cd libs
56+ ./autogen.sh --prefix=$out
57+
58+ cd ../bscc2sts
59+ ./autogen.sh
60+
61+ cd ../cnijnpr
62+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib
63+
64+ cd ../cngpij
65+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
66+
67+ cd ../cngpijmnt
68+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
69+
70+ cd ../pstocanonij
71+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
72+
73+ cd ../backend
74+ ./autogen.sh --prefix=$out
75+
76+ cd ../backendnet
77+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
78+
79+ cd ../cmdtocanonij
80+ ./autogen.sh --prefix=$out --datadir=$out/share
81+
82+ cd ../cnijbe
83+ ./autogen.sh --prefix=$out --enable-progpath=$out/bin
84+
85+ cd ../lgmon2
86+ substituteInPlace src/Makefile.am \
87+ --replace /usr/include/libusb-1.0 \
88+ ${libusb.dev}/include/libusb-1.0
89+ ./autogen.sh --prefix=$out --enable-libpath=$out/lib/bjlib --enable-progpath=$out/bin
90+
91+ cd ..;
92+
93+ sed -e "s,cnijlgmon2_LDADD =,cnijlgmon2_LDADD = -L../../com/libs_bin${arch}," \
94+ -i lgmon2/src/Makefile.am || die
95+ '';
96+
97+ preInstall = ''
98+ mkdir -p $out/bin $out/lib/cups/filter $out/share/cups/model;
99+ '';
100+
101+ postInstall = ''
102+ set -o xtrace
103+ for pr in mg2400 mg2500 mg3500 mg5500 mg6400 mg6500 mg7100 p200; do
104+ cd ppd;
105+ ./autogen.sh --prefix=$out --program-suffix=$pr
106+ make clean;
107+ make;
108+ make install;
109+
110+ cd ../cnijfilter;
111+ ./autogen.sh --prefix=$out --program-suffix=$pr --enable-libpath=/var/lib/cups/path/lib/bjlib --enable-binpath=$out/bin;
112+ make clean;
113+ make;
114+ make install;
115+
116+ cd ..;
117+ done;
118+
119+ mkdir -p $out/lib/bjlib;
120+ for pr_id in 423 424 425 426 427 428 429 430; do
121+ install -c -m 755 $pr_id/database/* $out/lib/bjlib;
122+ install -c -s -m 755 $pr_id/libs_bin${arch}/*.so.* $out/lib;
123+ done;
124+
125+ pushd $out/lib;
126+ for so_file in *.so.*; do
127+ ln -s $so_file ''${so_file/.so.*/}.so;
128+ patchelf --set-rpath $out/lib $so_file;
129+ done;
130+ popd;
131+ '';
132+
133+ /* the tarball includes some pre-built shared libraries. we run
134+ 'patchelf --set-rpath' on them just a few lines above, so that
135+ they can find each other. but that's not quite enough. some of
136+ those libraries load each other in non-standard ways -- they
137+ don't list each other in the DT_NEEDED section. so, if the
138+ standard 'patchelf --shrink-rpath' (from
139+ pkgs/development/tools/misc/patchelf/setup-hook.sh) is run on
140+ them, it undoes the --set-rpath. this prevents that. */
141+ dontPatchELF = true;
142+
143+ meta = with lib; {
144+ description = "Canon InkJet printer drivers for the MG2400 MG2500 MG3500 MG5500 MG6400 MG6500 MG7100 and P200 series.";
145+ homepage = https://www.canon-europe.com/support/consumer_products/products/fax__multifunctionals/inkjet/pixma_mg_series/pixma_mg5550.aspx?type=drivers&driverdetailid=tcm:13-1094072;
146+ license = licenses.unfree;
147+ platforms = platforms.linux;
148+ maintainers = with maintainers; [ chpatrick ];
149+ };
150+}
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-1-cups-1.6.patchnew file+62
@@ -0,0 +1,62 @@
1+--- a/cngpij/cngpij/bjcups.c
2++++ a/cngpij/cngpij/bjcups.c
3+@@ -698,8 +719,8 @@
4+ else {
5+ pRequest = ippNew();
6+
7+- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
8+- pRequest->request.op.request_id = 1;
9++ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
10++ ippSetRequestId(pRequest, 1);
11+
12+ pLanguage = bjcupsLangDefault(); // cupsLangDefault() -> bjcupsLangDefault() for cups-1.1.19
13+
14+@@ -708,29 +729,29 @@
15+ ippAddString(pRequest, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, NULL);
16+
17+ if ((pResponse = cupsDoRequest(pHTTP, pRequest, "/")) != NULL) {
18+- if (pResponse->request.status.status_code > IPP_OK_CONFLICT) {
19++ if (ippGetStatusCode(pResponse) > IPP_OK_CONFLICT) {
20+ fputs("ERROR: IPP ERROR\n", stderr);
21+ goto onErr;
22+ }
23+ else {
24+- pAttribute = pResponse->attrs;
25++ pAttribute = ippFirstAttribute(pResponse);
26+
27+ while (pAttribute != NULL) {
28+- while (pAttribute != NULL && pAttribute->group_tag != IPP_TAG_PRINTER) {
29+- pAttribute = pAttribute->next;
30++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) != IPP_TAG_PRINTER) {
31++ pAttribute = ippNextAttribute(pResponse);
32+ }
33+ if (pAttribute == NULL) {
34+ break;
35+ }
36+
37+- while (pAttribute != NULL && pAttribute->group_tag == IPP_TAG_PRINTER) {
38+- if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {
39+- pPrinter = pAttribute->values[0].string.text;
40++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) == IPP_TAG_PRINTER) {
41++ if (strcmp(ippGetName(pAttribute), "printer-name") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_NAME) {
42++ pPrinter = ippGetString(pAttribute, 0, NULL);
43+ }
44+- if (strcmp(pAttribute->name, "device-uri") == 0 && pAttribute->value_tag == IPP_TAG_URI) {
45+- pDUri = pAttribute->values[0].string.text;
46++ if (strcmp(ippGetName(pAttribute), "device-uri") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_URI) {
47++ pDUri = ippGetString(pAttribute, 0, NULL);
48+ }
49+- pAttribute = pAttribute->next;
50++ pAttribute = ippNextAttribute(pResponse);
51+ }
52+
53+ if (strcasecmp(pDestName, pPrinter) == 0) {
54+@@ -739,7 +760,7 @@
55+ }
56+
57+ if (pAttribute != NULL)
58+- pAttribute = pAttribute->next;
59++ pAttribute = ippNextAttribute(pResponse);
60+ }
61+ }
62+
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-3.80-6-cups-1.6.patchnew file+87
@@ -0,0 +1,87 @@
1+diff --git a/cngpijmnt/src/getipc.c b/cngpijmnt/src/getipc.c
2+index 8688032..54c7933 100755
3+--- a/cngpijmnt/src/getipc.c
4++++ b/cngpijmnt/src/getipc.c
5+@@ -42,7 +42,7 @@ int GetIPCData(LPIPCU pipc, char *sname)
6+ int server_fd;
7+ int client_fd;
8+ char buf[128];
9+- size_t len;
10++ socklen_t len;
11+ short ret = RET_ERROR;
12+
13+ if( (server_fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0 )
14+
15+--- a/cngpijmnt/src/main.c 2016-11-12 23:39:03.534855723 +0100
16++++ b/cngpijmnt/src/main.c 2016-11-12 23:47:02.521847145 +0100
17+@@ -308,8 +308,8 @@
18+ *pResponse; // Pointer to CUPS IPP response.
19+ ipp_attribute_t *pAttribute; // Pointer to CUPS attributes.
20+ cups_lang_t *pLanguage; // Pointer to language.
21+- char *pPrinter = NULL; // Pointer to printer name.
22+- char *pDUri = NULL; // Pointer to Device uri.
23++ const char *pPrinter = NULL; // Pointer to printer name.
24++ const char *pDUri = NULL; // Pointer to Device uri.
25+ short retVal = -1; // Return value.
26+ /*** Parameters end ***/
27+
28+@@ -321,8 +321,8 @@
29+ else {
30+ pRequest = ippNew();
31+
32+- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
33+- pRequest->request.op.request_id = 1;
34++ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
35++ ippSetRequestId(pRequest, 1);
36+
37+ pLanguage = bjcupsLangDefault(); // cupsLangDefault() -> bjcupsLangDefault() for cups-1.1.19
38+
39+@@ -331,29 +331,29 @@
40+ ippAddString(pRequest, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, NULL);
41+
42+ if ((pResponse = cupsDoRequest(pHTTP, pRequest, "/")) != NULL) {
43+- if (pResponse->request.status.status_code > IPP_OK_CONFLICT) {
44++ if (ippGetStatusCode(pResponse) > IPP_OK_CONFLICT) {
45+ fputs("ERROR: IPP ERROR\n", stderr);
46+ goto onErr;
47+ }
48+ else {
49+- pAttribute = pResponse->attrs;
50++ pAttribute = ippFirstAttribute(pResponse);
51+
52+ while (pAttribute != NULL) {
53+- while (pAttribute != NULL && pAttribute->group_tag != IPP_TAG_PRINTER) {
54+- pAttribute = pAttribute->next;
55++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) != IPP_TAG_PRINTER) {
56++ pAttribute = ippNextAttribute(pResponse);
57+ }
58+ if (pAttribute == NULL) {
59+ break;
60+ }
61+
62+- while (pAttribute != NULL && pAttribute->group_tag == IPP_TAG_PRINTER) {
63+- if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {
64+- pPrinter = pAttribute->values[0].string.text;
65++ while (pAttribute != NULL && ippGetGroupTag(pAttribute) == IPP_TAG_PRINTER) {
66++ if (strcmp(ippGetName(pAttribute), "printer-name") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_NAME) {
67++ pPrinter = ippGetString(pAttribute, 0, NULL);
68+ }
69+- if (strcmp(pAttribute->name, "device-uri") == 0 && pAttribute->value_tag == IPP_TAG_URI) {
70+- pDUri = pAttribute->values[0].string.text;
71++ if (strcmp(ippGetName(pAttribute), "device-uri") == 0 && ippGetValueTag(pAttribute) == IPP_TAG_URI) {
72++ pDUri = ippGetString(pAttribute, 0, NULL);
73+ }
74+- pAttribute = pAttribute->next;
75++ pAttribute = ippNextAttribute(pResponse);
76+ }
77+
78+ if (strcasecmp(pDestName, pPrinter) == 0) {
79+@@ -362,7 +362,7 @@
80+ }
81+
82+ if (pAttribute != NULL)
83+- pAttribute = pAttribute->next;
84++ pAttribute = ippNextAttribute(pResponse);
85+ }
86+ }
87+
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-4-ppd.patchnew file+10
@@ -0,0 +1,10 @@
1+--- a/backend/src/cnij_backend_common.c 2016-11-13 00:08:34.600824006 +0100
2++++ a/backend/src/cnij_backend_common.c 2016-11-13 00:08:52.037823694 +0100
3+@@ -37,6 +37,7 @@
4+ // CUPS Header
5+ #include <cups/cups.h>
6+ #include <cups/ipp.h>
7++#include <cups/ppd.h>
8+
9+ // Header file for CANON
10+ #include "cnij_backend_common.h"
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-5-abi_x86_32.patchnew file+45
@@ -0,0 +1,45 @@
1+--- a/backendnet/configure.in 2014-08-11 08:38:46.034984462 +0200
2++++ a/backendnet/configure.in 2014-08-11 08:35:42.902985813 +0200
3+@@ -19,7 +19,11 @@
4+ AC_DEFINE_UNQUOTED(BJLIB_PATH, "$enable_libpath")
5+ AC_SUBST(BJLIB_PATH)
6+
7+-ARC=`getconf LONG_BIT`
8++case "$ABI" in
9++ x86) ARC=32;;
10++ amd64) ARC=64;;
11++ *) ARC=`getconf LONG_BIT`;;
12++esac
13+ AC_SUBST(ARC)
14+
15+ # Checks for programs.
16+--- a/cnijfilter/configure.in 2014-08-11 08:39:44.426984031 +0200
17++++ a/cnijfilter/configure.in 2014-08-11 08:35:19.788985984 +0200
18+@@ -43,7 +43,11 @@
19+ esac
20+ AC_SUBST(CNCL_LIB_ID)
21+
22+-ARC=`getconf LONG_BIT`
23++case "$ABI" in
24++ x86) ARC=32;;
25++ amd64) ARC=64;;
26++ *) ARC=`getconf LONG_BIT`;;
27++esac
28+ AC_SUBST(ARC)
29+
30+ AC_PROG_CC
31+--- a/cnijnpr/configure.in 2014-08-11 08:41:12.712983380 +0200
32++++ a/cnijnpr/configure.in 2014-08-11 08:40:44.354983589 +0200
33+@@ -37,7 +37,11 @@
34+
35+ CFLAGS="-O2"
36+
37+-ARC=`getconf LONG_BIT`
38++case "$ABI" in
39++ x86) ARC=32;;
40++ amd64) ARC=64;;
41++ *) ARC=`getconf LONG_BIT`;;
42++esac
43+ AC_SUBST(ARC)
44+
45+ AC_OUTPUT(Makefile
pkgs/misc/cups/drivers/cnijfilter_4_00/patches/cnijfilter-4.00-6-headers.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/cnijnpr/src/cnijnpr.c 2016-11-13 21:51:33.844977618 +0100
2++++ a/cnijnpr/src/cnijnpr.c 2016-11-13 21:52:03.129977094 +0100
3+@@ -34,6 +34,8 @@
4+ #include <sys/ioctl.h>
5+ #include <net/if.h>
6+ #include <sys/sysctl.h>
7++#include <sys/types.h>
8++#include <unistd.h>
9+ #include <config.h>
10+ #include <fcntl.h>
11+
pkgs/servers/monitoring/munin/adding_sconfdir_munin-node.patchnew file+41
@@ -0,0 +1,41 @@
1+commit af5fa3623bb9a73052f9154be4a0f38c60ea42a2
2+Author: Kjetil Orbekk <kjetil.orbekk@gmail.com>
3+Date: Thu Nov 23 21:21:36 2017 -0500
4+
5+ node: add --sconfdir to set plugin configuration dir
6+
7+diff --git a/node/sbin/munin-node b/node/sbin/munin-node
8+index 909c8c4e..0ccf3941 100755
9+--- a/node/sbin/munin-node
10++++ b/node/sbin/munin-node
11+@@ -100,9 +100,11 @@ sub parse_args
12+ my @ORIG_ARGV = @ARGV;
13+
14+ my $servicedir_cmdline;
15++ my $sconfdir_cmdline;
16+ print_usage_and_exit() unless GetOptions(
17+ "config=s" => \$conffile,
18+ "servicedir=s" => \$servicedir_cmdline,
19++ "sconfdir=s" => \$sconfdir_cmdline,
20+ "debug!" => \$DEBUG,
21+ "pidebug!" => \$PIDEBUG,
22+ "paranoia!" => \$paranoia,
23+@@ -112,6 +114,7 @@ sub parse_args
24+
25+ # We untaint the args brutally, since the sysadm should know what he does
26+ $servicedir = $1 if defined $servicedir_cmdline && $servicedir_cmdline =~ m/(.*)/;
27++ $sconfdir = $1 if defined $sconfdir_cmdline && $sconfdir_cmdline =~ m/(.*)/;
28+
29+ # Reset ARGV (for HUPing)
30+ @ARGV = @ORIG_ARGV;
31+@@ -175,6 +178,10 @@ Use E<lt>fileE<gt> as configuration file. [@@CONFDIR@@/munin-node.conf]
32+
33+ Override plugin directory [@@CONFDIR@@/plugins/]
34+
35++=item B<< --sconfdir <dir> >>
36++
37++Override plugin configuration directory [@@CONFDIR@@/plugin-conf.d/]
38++
39+ =item B< --[no]paranoia >
40+
41+ Only run plugins owned by root. Check permissions as well. [--noparanoia]
pkgs/servers/monitoring/munin/default.nix+5−2
@@ -3,14 +3,14 @@
33}:
44
55stdenv.mkDerivation rec {
6− version = "2.0.33";
6+ version = "2.0.34";
77 name = "munin-${version}";
88
99 src = fetchFromGitHub {
1010 owner = "munin-monitoring";
1111 repo = "munin";
1212 rev = version;
13− sha256 = "0rs05b7926mjd58sdry33i91m1h3v3svl0wg2gmhljl8wqidac5w";
13+ sha256 = "0mb5m0nc3nr9781d3s99sjdssmvkv37gxyplzr6d73i4hi31m7fr";
1414 };
1515
1616 buildInputs = [
@@ -67,6 +67,9 @@ stdenv.mkDerivation rec {
6767
6868 # https://github.com/munin-monitoring/munin/pull/134
6969 ./adding_servicedir_munin-node.patch
70+
71+ ./adding_sconfdir_munin-node.patch
72+ ./preserve_environment.patch
7073 ];
7174
7275 preBuild = ''
pkgs/servers/monitoring/munin/preserve_environment.patchnew file+41
@@ -0,0 +1,41 @@
1+commit d94c29b7397362857b81d8c877a989fdb28490d8
2+Author: Kjetil Orbekk <kjetil.orbekk@gmail.com>
3+Date: Tue Nov 21 15:37:42 2017 -0500
4+
5+ Keep environment variables instead of overwriting them.
6+
7+diff --git a/common/lib/Munin/Common/Defaults.pm b/common/lib/Munin/Common/Defaults.pm
8+index 131f52c0..bbf42697 100644
9+--- a/common/lib/Munin/Common/Defaults.pm
10++++ b/common/lib/Munin/Common/Defaults.pm
11+@@ -71,7 +71,7 @@ sub export_to_environment {
12+
13+ my %defaults = %{$class->get_defaults()};
14+ while (my ($k, $v) = each %defaults) {
15+- $ENV{$k} = $v;
16++ $ENV{$k} = $ENV{$k} || $v;
17+ }
18+
19+ return
20+diff --git a/node/lib/Munin/Node/Service.pm b/node/lib/Munin/Node/Service.pm
21+index 1b4f6114..be58bd77 100644
22+--- a/node/lib/Munin/Node/Service.pm
23++++ b/node/lib/Munin/Node/Service.pm
24+@@ -122,7 +122,7 @@ sub export_service_environment {
25+ # We append the USER to the MUNIN_PLUGSTATE, to avoid CVE-2012-3512
26+ my $uid = $self->_resolve_uid($service);
27+ my $user = getpwuid($uid);
28+- $ENV{MUNIN_PLUGSTATE} = "$Munin::Common::Defaults::MUNIN_PLUGSTATE/$user";
29++ $ENV{MUNIN_PLUGSTATE} = "$ENV{MUNIN_PLUGSTATE}/$user";
30+
31+ # Provide a consistent default state-file.
32+ $ENV{MUNIN_STATEFILE} = "$ENV{MUNIN_PLUGSTATE}/$service-$ENV{MUNIN_MASTER_IP}";
33+@@ -243,7 +243,7 @@ sub exec_service
34+
35+ # XXX - Create the statedir for the user
36+ my $uid = $self->_resolve_uid($service);
37+- Munin::Node::OS->mkdir_subdir("$Munin::Common::Defaults::MUNIN_PLUGSTATE", $uid);
38++ Munin::Node::OS->mkdir_subdir("$ENV{MUNIN_PLUGSTATE}", $uid);
39+
40+ $self->change_real_and_effective_user_and_group($service);
41+
pkgs/servers/traefik/default.nix+7−12
@@ -1,24 +1,19 @@
1−{ stdenv, buildGoPackage, fetchurl, bash, go-bindata}:
1+{ stdenv, buildGoPackage, fetchFromGitHub, bash, go-bindata}:
22
33buildGoPackage rec {
44 name = "traefik-${version}";
5− version = "1.3.8";
5+ version = "1.4.4";
66
77 goPackagePath = "github.com/containous/traefik";
88
9− src = fetchurl {
10− url = "https://github.com/containous/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz";
11− sha256 = "6fce36dd30bb5ae5f91e69f2950f22fe7a74b920e80c6b441a0721122f6a6174";
9+ src = fetchFromGitHub {
10+ owner = "containous";
11+ repo = "traefik";
12+ rev = "v${version}";
13+ sha256 = "114861v8kg77zwnf742n25h7c4fly3i52inqx1kcpqs074rqm1wn";
1214 };
1315
1416 buildInputs = [ go-bindata bash ];
15− unpackPhase = ''
16− runHook preUnpack
17− mkdir traefik
18− tar -C traefik -xvzf $src
19− export sourceRoot="traefik"
20− runHook postUnpack
21− '';
2217
2318 buildPhase = ''
2419 runHook preBuild
pkgs/tools/misc/hdf5/1_8.nixnew file+76
@@ -0,0 +1,76 @@
1+{ stdenv
2+, fetchurl
3+, gcc
4+, removeReferencesTo
5+, cpp ? false
6+, gfortran ? null
7+, fortran2003 ? false
8+, zlib ? null
9+, szip ? null
10+, mpi ? null
11+, enableShared ? true
12+}:
13+
14+# cpp and mpi options are mutually exclusive
15+# (--enable-unsupported could be used to force the build)
16+assert !cpp || mpi == null;
17+
18+# Need a Fortran compiler for Fortran2003 bindings
19+assert fortran2003 -> gfortran != null;
20+
21+# No point splitting version 1.8.18 into multiple outputs.
22+# The library /lib/libhdf5.so has a reference to gcc-wrapper
23+
24+let inherit (stdenv.lib) optional optionals; in
25+
26+stdenv.mkDerivation rec {
27+ version = "1.8.19";
28+ name = "hdf5-${version}";
29+ src = fetchurl {
30+ url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/${name}/src/${name}.tar.bz2";
31+ sha256 = "0f3jfbqpaaq21ighi40qzs52nb52kc2d2yjk541rjmsx20b3ih2r" ;
32+ };
33+
34+ passthru = {
35+ mpiSupport = (mpi != null);
36+ inherit mpi;
37+ };
38+
39+ nativeBuildInputs = [ removeReferencesTo ];
40+
41+ buildInputs = []
42+ ++ optional (gfortran != null) gfortran
43+ ++ optional (szip != null) szip;
44+
45+ propagatedBuildInputs = []
46+ ++ optional (zlib != null) zlib
47+ ++ optional (mpi != null) mpi;
48+
49+ configureFlags = []
50+ ++ optional cpp "--enable-cxx"
51+ ++ optional (gfortran != null) "--enable-fortran"
52+ ++ optional fortran2003 "--enable-fortran2003"
53+ ++ optional (szip != null) "--with-szlib=${szip}"
54+ ++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"]
55+ ++ optional enableShared "--enable-shared";
56+
57+ patches = [./bin-mv.patch];
58+
59+ postInstall = ''
60+ find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
61+ '';
62+
63+ meta = {
64+ description = "Data model, library, and file format for storing and managing data";
65+ longDescription = ''
66+ HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
67+ I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
68+ applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
69+ applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
70+ '';
71+ license = stdenv.lib.licenses.free; # BSD-like
72+ homepage = https://www.hdfgroup.org/HDF5/;
73+ platforms = stdenv.lib.platforms.unix;
74+ broken = (gfortran != null) && stdenv.isDarwin;
75+ };
76+}
pkgs/tools/misc/hdf5/default.nix+5−8
@@ -14,17 +14,14 @@
1414# (--enable-unsupported could be used to force the build)
1515assert !cpp || mpi == null;
1616
17−# No point splitting version 1.8.18 into multiple outputs.
18−# The library /lib/libhdf5.so has a reference to gcc-wrapper
19−
2017let inherit (stdenv.lib) optional optionals; in
2118
2219stdenv.mkDerivation rec {
23− version = "1.8.18";
20+ version = "1.10.1";
2421 name = "hdf5-${version}";
2522 src = fetchurl {
26− url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/${name}/src/${name}.tar.bz2";
27− sha256 = "13542vrnl1p35n8vbq0wzk40vddmm33q5nh04j98c7r1yjnxxih1";
23+ url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/${name}/src/${name}.tar.bz2";
24+ sha256 = "1wpbi15za7kbsvih88kfcxblw412pjndl16x88dgnqr47piy2p4w";
2825 };
2926
3027 passthru = {
@@ -59,8 +56,8 @@ stdenv.mkDerivation rec {
5956 description = "Data model, library, and file format for storing and managing data";
6057 longDescription = ''
6158 HDF5 supports an unlimited variety of datatypes, and is designed for flexible and efficient
62− I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
63− applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
59+ I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing
60+ applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and
6461 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
6562 '';
6663 license = stdenv.lib.licenses.free; # BSD-like
pkgs/tools/system/minijail/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchgit, libcap }:
2+
3+stdenv.mkDerivation rec {
4+ shortname = "minijail";
5+ name = "${shortname}-${version}";
6+ version = "android-8.0.0_r34";
7+
8+ src = fetchgit {
9+ url = "https://android.googlesource.com/platform/external/minijail";
10+ rev = version;
11+ sha256 = "1d0q08cgks6h6ffsw3zw8dz4rm9y2djj2pwwy3xi6flx7vwy0psf";
12+ };
13+
14+ buildInputs = [ libcap ];
15+
16+ makeFlags = [ "LIBDIR=$(out)/lib" ];
17+
18+ preConfigure = ''
19+ substituteInPlace common.mk --replace /bin/echo echo
20+ sed -i '/#include <asm\/siginfo.h>/ d' signal_handler.c
21+ '';
22+
23+ installPhase = ''
24+ mkdir -p $out/lib
25+ cp -v *.so $out/lib
26+ mkdir -p $out/include
27+ cp -v libminijail.h $out/include
28+ mkdir -p $out/bin
29+ cp minijail0 $out/bin
30+ '';
31+
32+ meta = {
33+ homepage = https://android.googlesource.com/platform/external/minijail/;
34+ description = "Sandboxing library and application using Linux namespaces and capabilities";
35+ license = stdenv.lib.licenses.bsd3;
36+ maintainers = with stdenv.lib.maintainers; [pcarrier];
37+ platforms = stdenv.lib.platforms.linux;
38+ };
39+}
pkgs/top-level/all-packages.nix+15
@@ -2590,6 +2590,12 @@ with pkgs;
25902590 mpi = null;
25912591 };
25922592
2593+ hdf5_1_8 = callPackage ../tools/misc/hdf5/1_8.nix {
2594+ gfortran = null;
2595+ szip = null;
2596+ mpi = null;
2597+ };
2598+
25932599 hdf5-mpi = appendToName "mpi" (hdf5.override {
25942600 szip = null;
25952601 mpi = pkgs.openmpi;
@@ -3376,6 +3382,8 @@ with pkgs;
33763382
33773383 miniball = callPackage ../development/libraries/miniball { };
33783384
3385+ minijail = callPackage ../tools/system/minijail { };
3386+
33793387 minixml = callPackage ../development/libraries/minixml { };
33803388
33813389 mir-qualia = callPackage ../tools/text/mir-qualia {
@@ -6595,6 +6603,7 @@ with pkgs;
65956603 octaveFull = (lowPrio (callPackage ../development/interpreters/octave {
65966604 qt = qt4;
65976605 overridePlatforms = ["x86_64-linux" "x86_64-darwin"];
6606+ openblas = if stdenv.isDarwin then openblasCompat else openblas;
65986607 }));
65996608
66006609 ocropus = callPackage ../applications/misc/ocropus { };
@@ -18079,6 +18088,8 @@ with pkgs;
1807918088
1808018089 privateer = callPackage ../games/privateer { };
1808118090
18091+ pysolfc = callPackage ../games/pysolfc { };
18092+
1808218093 qweechat = callPackage ../applications/networking/irc/qweechat { };
1808318094
1808418095 qqwing = callPackage ../games/qqwing { };
@@ -19233,6 +19244,10 @@ with pkgs;
1923319244 # this driver ships with pre-compiled 32-bit binary libraries
1923419245 cnijfilter_2_80 = callPackage_i686 ../misc/cups/drivers/cnijfilter_2_80 { };
1923519246
19247+ cnijfilter_4_00 = callPackage ../misc/cups/drivers/cnijfilter_4_00 {
19248+ libusb = libusb1;
19249+ };
19250+
1923619251 cnijfilter2 = callPackage ../misc/cups/drivers/cnijfilter2 {
1923719252 libusb = libusb1;
1923819253 };
pkgs/top-level/lua-packages.nix+2−2
@@ -655,13 +655,13 @@ let
655655
656656 vicious = stdenv.mkDerivation rec {
657657 name = "vicious-${version}";
658− version = "2.2.0";
658+ version = "2.3.0";
659659
660660 src = fetchFromGitHub {
661661 owner = "Mic92";
662662 repo = "vicious";
663663 rev = "v${version}";
664− sha256 = "0dhy0vklrhqrnmxb9pyqbfvkwwy86lwysk93pzg1j1zwprx366fj";
664+ sha256 = "1mrd8c46ljilag8dljvnagaxnjnab8bmg9mcbnwvrivgjzgf6a1k";
665665 };
666666
667667 buildInputs = [ lua ];