git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'master' into staging
commitfa824e6c58d60a49a426c31e3291b83a9be8266f authorFranz Pletz <fpletz@fnordicwalking.de> dateSun 19 Nov 2017, 19:39 (9 years ago) parent5a53a80c46d4da
29 files changed+300−361
nixos/modules/services/x11/display-managers/gdm.nix−3 nixos/release.nix+1 nixos/tests/couchdb.nix+56 pkgs/applications/editors/geany/default.nix+2−2 pkgs/applications/networking/cluster/minikube/default.nix+2−2 pkgs/applications/networking/corebird/default.nix+2−2 pkgs/applications/networking/gmailieer/default.nix+2−2 pkgs/applications/networking/mailreaders/notmuch/default.nix+2−2 pkgs/desktops/gnome-3/core/gdm/default.nix+1 pkgs/development/libraries/audiofile/default.nix+51−2 pkgs/development/libraries/libsndfile/default.nix+17−12 pkgs/development/libraries/openjpeg/2.1.nix+4−33 pkgs/development/libraries/openjpeg/CVE-2016-9580-and-CVE-2016-9581.patch−242 pkgs/development/python-modules/pyamf/default.nix+20 pkgs/development/tools/database/schemaspy/default.nix+41 pkgs/servers/http/couchdb/2.0.0.nix+4−3 pkgs/servers/http/couchdb/default.nix+5−17 pkgs/servers/monitoring/zabbix/2.0.nix+2−2 pkgs/servers/monitoring/zabbix/2.2.nix+2−2 pkgs/servers/owncloud/default.nix−5 pkgs/tools/misc/yle-dl/default.nix+7−3 pkgs/tools/text/bcat/Gemfile+2 pkgs/tools/text/bcat/Gemfile.lock+15 pkgs/tools/text/bcat/default.nix+15 pkgs/tools/text/bcat/gemset.nix+19 pkgs/tools/text/ruby-zoom/Gemfile.lock+9−10 pkgs/tools/text/ruby-zoom/gemset.nix+10−16 pkgs/top-level/all-packages.nix+7−1 pkgs/top-level/python-packages.nix+2
nixos/modules/services/x11/display-managers/gdm.nix−3
@@ -122,11 +122,8 @@ in
122122 "rc-local.service"
123123 "systemd-machined.service"
124124 "systemd-user-sessions.service"
125− "getty@tty1.service"
126125 ];
127126
128− systemd.services."getty@tty1".enable = false;
129− systemd.services.display-manager.conflicts = [ "getty@tty1.service" ];
130127 systemd.services.display-manager.serviceConfig = {
131128 # Restart = "always"; - already defined in xserver.nix
132129 KillMode = "mixed";
nixos/release.nix+1
@@ -235,6 +235,7 @@ in rec {
235235 tests.containers-tmpfs = callTest tests/containers-tmpfs.nix {};
236236 tests.containers-hosts = callTest tests/containers-hosts.nix {};
237237 tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
238+ tests.couchdb = callTest tests/couchdb.nix {};
238239 tests.docker = hydraJob (import tests/docker.nix { system = "x86_64-linux"; });
239240 tests.docker-edge = hydraJob (import tests/docker-edge.nix { system = "x86_64-linux"; });
240241 tests.dovecot = callTest tests/dovecot.nix {};
nixos/tests/couchdb.nixnew file+56
@@ -0,0 +1,56 @@
1+import ./make-test.nix ({ pkgs, lib, ...}:
2+
3+with lib;
4+
5+{
6+ name = "couchdb";
7+ meta = with pkgs.stdenv.lib.maintainers; {
8+ maintainers = [ fpletz ];
9+ };
10+
11+ nodes = {
12+ couchdb1 =
13+ { pkgs, config, ... }:
14+
15+ { environment.systemPackages = with pkgs; [ jq ];
16+ services.couchdb.enable = true;
17+ };
18+
19+ couchdb2 =
20+ { pkgs, config, ... }:
21+
22+ { environment.systemPackages = with pkgs; [ jq ];
23+ services.couchdb.enable = true;
24+ services.couchdb.package = pkgs.couchdb2;
25+ };
26+ };
27+
28+ testScript = let
29+ curlJqCheck = action: path: jqexpr: result:
30+ pkgs.writeScript "curl-jq-check-${action}-${path}.sh" ''
31+ RESULT=$(curl -X ${action} http://127.0.0.1:5984/${path} | jq -r '${jqexpr}')
32+ echo $RESULT >&2
33+ if [ "$RESULT" != "${result}" ]; then
34+ exit 1
35+ fi
36+ '';
37+ in ''
38+ startAll;
39+
40+ $couchdb1->waitForUnit("couchdb.service");
41+ $couchdb1->waitUntilSucceeds("${curlJqCheck "GET" "" ".couchdb" "Welcome"}");
42+ $couchdb1->waitUntilSucceeds("${curlJqCheck "GET" "_all_dbs" ". | length" "2"}");
43+ $couchdb1->succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}");
44+ $couchdb1->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "3"}");
45+ $couchdb1->succeed("${curlJqCheck "DELETE" "foo" ".ok" "true"}");
46+ $couchdb1->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "2"}");
47+
48+ $couchdb2->waitForUnit("couchdb.service");
49+ $couchdb2->waitUntilSucceeds("${curlJqCheck "GET" "" ".couchdb" "Welcome"}");
50+ $couchdb2->waitUntilSucceeds("${curlJqCheck "GET" "_all_dbs" ". | length" "0"}");
51+ $couchdb2->succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}");
52+ $couchdb2->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "1"}");
53+ $couchdb2->succeed("${curlJqCheck "DELETE" "foo" ".ok" "true"}");
54+ $couchdb2->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "0"}");
55+ '';
56+})
pkgs/applications/editors/geany/default.nix+2−2
@@ -3,7 +3,7 @@
33with stdenv.lib;
44
55let
6− version = "1.31";
6+ version = "1.32";
77in
88
99stdenv.mkDerivation rec {
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
1111
1212 src = fetchurl {
1313 url = "http://download.geany.org/${name}.tar.bz2";
14− sha256 = "30fdb906bb76c4251a8bcf83ee267db28c26ef6ab867668a782cec1164a3aba5";
14+ sha256 = "8b7be10b95d0614eb07f845ba2280f7c026eacd5739d8fac4d5d26606f8c3c2d";
1515 };
1616
1717 NIX_LDFLAGS = if stdenv.isDarwin then "-lintl" else null;
pkgs/applications/networking/cluster/minikube/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, buildGoPackage, fetchFromGitHub, fetchurl, go-bindata, kubernetes, libvirt, qemu, docker-machine-kvm,
2− gpgme, makeWrapper }:
2+ gpgme, makeWrapper, hostPlatform, vmnet }:
33
44let
55 binPath = [ kubernetes ]
@@ -36,7 +36,7 @@ in buildGoPackage rec {
3636
3737 # kubernetes is here only to shut up a loud warning when generating the completions below. minikube checks very eagerly
3838 # that kubectl is on the $PATH, even if it doesn't use it at all to generate the completions
39− buildInputs = [ go-bindata makeWrapper kubernetes gpgme ];
39+ buildInputs = [ go-bindata makeWrapper kubernetes gpgme ] ++ stdenv.lib.optional hostPlatform.isDarwin vmnet;
4040 subPackages = [ "cmd/minikube" ];
4141
4242 preBuild = ''
pkgs/applications/networking/corebird/default.nix+2−2
@@ -3,14 +3,14 @@
33, glib_networking }:
44
55stdenv.mkDerivation rec {
6− version = "1.7.1";
6+ version = "1.7.2";
77 name = "corebird-${version}";
88
99 src = fetchFromGitHub {
1010 owner = "baedert";
1111 repo = "corebird";
1212 rev = version;
13− sha256 = "1g6wkzrl6j0mmgafpv0jpqa906s1x7p5hmiqdgs9qwm7q2wlwrqd";
13+ sha256 = "0mydxxga4h1663xchb3543rk3k8frlmlyy5wz20zh38fpdlkhyf1";
1414 };
1515
1616 preConfigure = ''
pkgs/applications/networking/gmailieer/default.nix+2−2
@@ -2,13 +2,13 @@
22
33python3Packages.buildPythonApplication rec {
44 name = "gmailieer";
5− version = "0.3";
5+ version = "0.4";
66
77 src = fetchFromGitHub {
88 owner = "gauteh";
99 repo = "gmailieer";
1010 rev = "v${version}";
11− sha256 = "1app783gf0p9p196nqsgbyl6s1bp304dfav86fqiq86h1scld787";
11+ sha256 = "0vpc8nrh3cx91pcw45jjr2jllkqbx6w2khq7nyqv59gc4q5mz0p2";
1212 };
1313
1414 propagatedBuildInputs = with python3Packages; [
pkgs/applications/networking/mailreaders/notmuch/default.nix+2−2
@@ -12,7 +12,7 @@
1212with stdenv.lib;
1313
1414stdenv.mkDerivation rec {
15− version = "0.25";
15+ version = "0.25.2";
1616 name = "notmuch-${version}";
1717
1818 passthru = {
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222
2323 src = fetchurl {
2424 url = "http://notmuchmail.org/releases/${name}.tar.gz";
25− sha256 = "02z6d87ip1hkipz8d7w0sfklg8dd5fd5vlgp768640ixg0gqvlk5";
25+ sha256 = "0ai6vbs9wzwfz7jcphgqsqpcbq137l34xhmcli4h5c8n82fvmdp4";
2626 };
2727
2828 nativeBuildInputs = [ pkgconfig ];
pkgs/desktops/gnome-3/core/gdm/default.nix+1
@@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
1414 configureFlags = [ "--sysconfdir=/etc"
1515 "--localstatedir=/var"
1616 "--with-plymouth=yes"
17+ "--with-initial-vt=7"
1718 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" ];
1819
1920 nativeBuildInputs = [ autoreconfHook pkgconfig ];
pkgs/development/libraries/audiofile/default.nix+51−2
@@ -1,4 +1,14 @@
1−{ stdenv, fetchurl, alsaLib, AudioUnit, CoreServices }:
1+{ stdenv, fetchurl, fetchpatch, alsaLib, AudioUnit, CoreServices }:
2+
3+let
4+
5+ fetchDebianPatch = { name, debname, sha256 }:
6+ fetchpatch {
7+ inherit sha256 name;
8+ url = "https://anonscm.debian.org/cgit/pkg-multimedia/audiofile.git/plain/debian/patches/${debname}?h=debian/0.3.6-4";
9+ };
10+
11+in
212
313stdenv.mkDerivation rec {
414 name = "audiofile-0.3.6";
@@ -15,7 +25,46 @@ stdenv.mkDerivation rec {
1525 sha256 = "0rb927zknk9kmhprd8rdr4azql4gn2dp75a36iazx2xhkbqhvind";
1626 };
1727
18− patches = [ ./CVE-2015-7747.patch ./gcc-6.patch ];
28+ patches = [
29+ ./gcc-6.patch
30+ ./CVE-2015-7747.patch
31+
32+ (fetchDebianPatch {
33+ name = "CVE-2017-6829.patch";
34+ debname = "04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch";
35+ sha256 = "04qxl51i64c53v69q2kx61qdq474f4vapk8rq97cipj7yrar392m";
36+ })
37+ (fetchDebianPatch {
38+ name = "CVE-2017-6827+CVE-2017-6828+CVE-2017-6832+CVE-2017-6835+CVE-2017-6837.patch";
39+ debname = "05_Always-check-the-number-of-coefficients.patch";
40+ sha256 = "1ih03kfkabffi6ymp6832q470i28rsds78941vzqlshnqjb2nnxw";
41+ })
42+ (fetchDebianPatch {
43+ name = "CVE-2017-6839.patch";
44+ debname = "06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch";
45+ sha256 = "0a8s2z8rljlj03p7l1is9s4fml8vyzvyvfrh1m6xj5a8vbi635d0";
46+ })
47+ (fetchDebianPatch {
48+ name = "CVE-2017-6830+CVE-2017-6834+CVE-2017-6836+CVE-2017-6838.patch";
49+ debname = "07_Check-for-multiplication-overflow-in-sfconvert.patch";
50+ sha256 = "0rfba8rkasl5ycvc0kqlzinkl3rvyrrjvjhpc45h423wmjk2za2l";
51+ })
52+ (fetchDebianPatch {
53+ name = "audiofile-fix-multiplyCheckOverflow-signature.patch";
54+ debname = "08_Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch";
55+ sha256 = "032p5jqp7q7jgc5axdnazz00zm7hd26z6m5j55ifs0sykr5lwldb";
56+ })
57+ (fetchDebianPatch {
58+ name = "CVE-2017-6831.patch";
59+ debname = "09_Actually-fail-when-error-occurs-in-parseFormat.patch";
60+ sha256 = "0csikmj8cbiy6cigg0rmh67jrr0sgm56dfrnrxnac3m9635nxlac";
61+ })
62+ (fetchDebianPatch {
63+ name = "CVE-2017-6833.patch";
64+ debname = "10_Check-for-division-by-zero-in-BlockCodec-runPull.patch";
65+ sha256 = "1rlislkjawq98bbcf1dgl741zd508wwsg85r37ca7pfdf6wgl6z7";
66+ })
67+ ];
1968
2069 meta = with stdenv.lib; {
2170 description = "Library for reading and writing audio files in various formats";
pkgs/development/libraries/libsndfile/default.nix+17−12
@@ -11,25 +11,30 @@ stdenv.mkDerivation rec {
1111 };
1212
1313 patches = [
14− # CVE-2017-12562
1514 (fetchurl {
16− url = "https://github.com/erikd/libsndfile/commit/cf7a8182c2642c50f1cf90dddea9ce96a8bad2e8.patch";
17− sha256 = "1jg3wq30wdn9nv52mcyv6jyi4d80h4r1h9p96czcria7l91yh4sy";
15+ name = "CVE-2017-12562.patch";
16+ url = "https://github.com/erikd/libsndfile/commit/cf7a8182c2642c50f1cf90dddea9ce96a8bad2e8.patch";
17+ sha256 = "1jg3wq30wdn9nv52mcyv6jyi4d80h4r1h9p96czcria7l91yh4sy";
1818 })
19− # CVE-2017-6892
2019 (fetchurl {
21− url = "https://github.com/erikd/libsndfile/commit/f833c53cb596e9e1792949f762e0b33661822748.patch";
22− sha256 = "05xkmz2ihc1zcj73sbmj1ikrv9qlcym2bkp1v6ak7w53ky619mwq";
20+ name = "CVE-2017-6892.patch";
21+ url = "https://github.com/erikd/libsndfile/commit/f833c53cb596e9e1792949f762e0b33661822748.patch";
22+ sha256 = "05xkmz2ihc1zcj73sbmj1ikrv9qlcym2bkp1v6ak7w53ky619mwq";
2323 })
24− # CVE-2017-8361, CVE-2017-8363, CVE-2017-8363
2524 (fetchurl {
26− url = "https://github.com/erikd/libsndfile/commit/fd0484aba8e51d16af1e3a880f9b8b857b385eb3.patch";
27− sha256 = "0ccndnvjzx5fw18zvy03vnb29rr81h5vsh1m16msqbxk8ibndln2";
25+ name = "CVE-2017-8361+CVE-2017-8363+CVE-2017-8365.patch";
26+ url = "https://github.com/erikd/libsndfile/commit/fd0484aba8e51d16af1e3a880f9b8b857b385eb3.patch";
27+ sha256 = "0ccndnvjzx5fw18zvy03vnb29rr81h5vsh1m16msqbxk8ibndln2";
2828 })
29− # CVE-2017-8362
3029 (fetchurl {
31− url = "https://github.com/erikd/libsndfile/commit/ef1dbb2df1c0e741486646de40bd638a9c4cd808.patch";
32− sha256 = "1xyv30ga71cpy4wx5f76sc4dma91la2lcc6s9f3pk9rndyi7gj9x";
30+ name = "CVE-2017-8362.patch";
31+ url = "https://github.com/erikd/libsndfile/commit/ef1dbb2df1c0e741486646de40bd638a9c4cd808.patch";
32+ sha256 = "1xyv30ga71cpy4wx5f76sc4dma91la2lcc6s9f3pk9rndyi7gj9x";
33+ })
34+ (fetchurl {
35+ name = "CVE-2017-14634.patch";
36+ url = "https://github.com/erikd/libsndfile/commit/85c877d5072866aadbe8ed0c3e0590fbb5e16788.patch";
37+ sha256 = "0kc7vp22qsxidhvmlc6nfamw7k92n0hcfpmwhb3gaksjamwhb2df";
3338 })
3439 ];
3540
pkgs/development/libraries/openjpeg/2.1.nix+4−33
@@ -1,37 +1,8 @@
11{ callPackage, fetchpatch, ... } @ args:
22
33callPackage ./generic.nix (args // rec {
4− version = "2.1.2";
5− branch = "2.1";
6− revision = "v2.1.2";
7− sha256 = "0kdcl9sqjz0vagli4ad6bxq1r8ma086m0prpkm5x3dxp37hpjp8h";
8−
9− patches = [
10− # Fetched from https://github.com/szukw000/openjpeg/commit/cadff5fb6e73398de26a92e96d3d7cac893af255
11− # Referenced from https://bugzilla.redhat.com/show_bug.cgi?id=1405135
12− # Put in our source code to make sure we don't lose it, since that
13− # referenced commit is someone else's fork, and not actually up-stream.
14− ./CVE-2016-9580-and-CVE-2016-9581.patch
15−
16− (fetchpatch {
17− url = "https://bugzilla.suse.com/attachment.cgi?id=707359&action=diff&context=patch&collapsed=&headers=1&format=raw";
18− name = "CVE-2016-9112.patch";
19− sha256 = "18hqx73wdzfybr5n5k6pzhbhdlmawiqbjci8n82zykxiyfgp18pd";
20− })
21− (fetchpatch {
22− url = "https://bugzilla.suse.com/attachment.cgi?id=707354&action=diff&context=patch&collapsed=&headers=1&format=raw";
23− name = "CVE-2016-9114.patch";
24− sha256 = "0qam3arw9kdbh4501xim2pyldl708dnpyjwvjmwc9gc7hcq4gfi3";
25− })
26− (fetchpatch {
27− url = "https://bugzilla.suse.com/attachment.cgi?id=707356&action=diff&context=patch&collapsed=&headers=1&format=raw";
28− name = "CVE-2016-9116.patch";
29− sha256 = "0yyb3pxqi5sr44a48bacngzp206j4z49lzkg6hbkz1nra9na61a3";
30− })
31− (fetchpatch {
32− url = "https://bugzilla.suse.com/attachment.cgi?id=707358&action=diff&context=patch&collapsed=&headers=1&format=raw";
33− name = "CVE-2016-9118.patch";
34− sha256 = "125n8bmh07y7697s0y82ypb39rxgj0bdn8rcywbvamscagwg2wy9";
35− })
36− ];
4+ version = "2.3.0";
5+ branch = "2.3";
6+ revision = "v${version}";
7+ sha256 = "08plxrnfl33sn2vh5nwbsngyv6b1sfpplvx881crm1v1ai10m2lz";
378})
pkgs/development/libraries/openjpeg/CVE-2016-9580-and-CVE-2016-9581.patchdeleted−242
@@ -1,242 +0,0 @@
1−From cadff5fb6e73398de26a92e96d3d7cac893af255 Mon Sep 17 00:00:00 2001
2−From: szukw000 <szukw000@arcor.de>
3−Date: Fri, 9 Dec 2016 08:29:55 +0100
4−Subject: [PATCH] These changes repair bugs of #871 and #872
5−
6−---
7− src/bin/jp2/converttif.c | 107 +++++++++++++++++++++++++++++++----------------
8− 1 file changed, 70 insertions(+), 37 deletions(-)
9−
10−diff --git a/src/bin/jp2/converttif.c b/src/bin/jp2/converttif.c
11−index 143d3be..c690f8b 100644
12−--- a/src/bin/jp2/converttif.c
13−+++ b/src/bin/jp2/converttif.c
14−@@ -553,20 +553,18 @@ static void tif_32sto16u(const OPJ_INT32* pSrc, OPJ_UINT16* pDst, OPJ_SIZE_T len
15−
16− int imagetotif(opj_image_t * image, const char *outfile)
17− {
18−- int width, height;
19−- int bps,adjust, sgnd;
20−- int tiPhoto;
21−+ uint32 width, height, bps, tiPhoto;
22−+ int adjust, sgnd;
23− TIFF *tif;
24− tdata_t buf;
25−- tsize_t strip_size;
26−+ tmsize_t strip_size, rowStride;
27− OPJ_UINT32 i, numcomps;
28−- OPJ_SIZE_T rowStride;
29− OPJ_INT32* buffer32s = NULL;
30− OPJ_INT32 const* planes[4];
31− convert_32s_PXCX cvtPxToCx = NULL;
32− convert_32sXXx_C1R cvt32sToTif = NULL;
33−
34−- bps = (int)image->comps[0].prec;
35−+ bps = (uint32)image->comps[0].prec;
36− planes[0] = image->comps[0].data;
37−
38− numcomps = image->numcomps;
39−@@ -674,13 +672,13 @@ int imagetotif(opj_image_t * image, const char *outfile)
40− break;
41− }
42− sgnd = (int)image->comps[0].sgnd;
43−- adjust = sgnd ? 1 << (image->comps[0].prec - 1) : 0;
44−- width = (int)image->comps[0].w;
45−- height = (int)image->comps[0].h;
46−+ adjust = sgnd ? (int)(1 << (image->comps[0].prec - 1)) : 0;
47−+ width = (uint32)image->comps[0].w;
48−+ height = (uint32)image->comps[0].h;
49−
50− TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, width);
51− TIFFSetField(tif, TIFFTAG_IMAGELENGTH, height);
52−- TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, numcomps);
53−+ TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, (uint32)numcomps);
54− TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, bps);
55− TIFFSetField(tif, TIFFTAG_ORIENTATION, ORIENTATION_TOPLEFT);
56− TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
57−@@ -688,8 +686,8 @@ int imagetotif(opj_image_t * image, const char *outfile)
58− TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, 1);
59−
60− strip_size = TIFFStripSize(tif);
61−- rowStride = ((OPJ_SIZE_T)width * numcomps * (OPJ_SIZE_T)bps + 7U) / 8U;
62−- if (rowStride != (OPJ_SIZE_T)strip_size) {
63−+ rowStride = (width * numcomps * bps + 7U) / 8U;
64−+ if (rowStride != strip_size) {
65− fprintf(stderr, "Invalid TIFF strip size\n");
66− TIFFClose(tif);
67− return 1;
68−@@ -699,7 +697,7 @@ int imagetotif(opj_image_t * image, const char *outfile)
69− TIFFClose(tif);
70− return 1;
71− }
72−- buffer32s = (OPJ_INT32 *)malloc((OPJ_SIZE_T)width * numcomps * sizeof(OPJ_INT32));
73−+ buffer32s = (OPJ_INT32 *)malloc((OPJ_SIZE_T)(width * numcomps * sizeof(OPJ_INT32)));
74− if (buffer32s == NULL) {
75− _TIFFfree(buf);
76− TIFFClose(tif);
77−@@ -1211,20 +1209,19 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
78− TIFF *tif;
79− tdata_t buf;
80− tstrip_t strip;
81−- tsize_t strip_size;
82−+ tmsize_t strip_size;
83− int j, currentPlane, numcomps = 0, w, h;
84− OPJ_COLOR_SPACE color_space = OPJ_CLRSPC_UNKNOWN;
85− opj_image_cmptparm_t cmptparm[4]; /* RGBA */
86− opj_image_t *image = NULL;
87− int has_alpha = 0;
88−- unsigned short tiBps, tiPhoto, tiSf, tiSpp, tiPC;
89−- unsigned int tiWidth, tiHeight;
90−+ uint32 tiBps, tiPhoto, tiSf, tiSpp, tiPC, tiWidth, tiHeight;
91− OPJ_BOOL is_cinema = OPJ_IS_CINEMA(parameters->rsiz);
92− convert_XXx32s_C1R cvtTifTo32s = NULL;
93− convert_32s_CXPX cvtCxToPx = NULL;
94− OPJ_INT32* buffer32s = NULL;
95− OPJ_INT32* planes[4];
96−- OPJ_SIZE_T rowStride;
97−+ tmsize_t rowStride;
98−
99− tif = TIFFOpen(filename, "r");
100−
101−@@ -1243,22 +1240,35 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
102− TIFFGetField(tif, TIFFTAG_SAMPLESPERPIXEL, &tiSpp);
103− TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &tiPhoto);
104− TIFFGetField(tif, TIFFTAG_PLANARCONFIG, &tiPC);
105−- w= (int)tiWidth;
106−- h= (int)tiHeight;
107−-
108−- if(tiBps > 16U) {
109−- fprintf(stderr,"tiftoimage: Bits=%d, Only 1 to 16 bits implemented\n",tiBps);
110−- fprintf(stderr,"\tAborting\n");
111−+
112−+ if(tiSpp == 0 || tiSpp > 4) { /* should be 1 ... 4 */
113−+ fprintf(stderr,"tiftoimage: Bad value for samples per pixel == %hu.\n"
114−+ "\tAborting.\n", tiSpp);
115−+ TIFFClose(tif);
116−+ return NULL;
117−+ }
118−+ if(tiBps > 16U || tiBps == 0) {
119−+ fprintf(stderr,"tiftoimage: Bad values for Bits == %d.\n"
120−+ "\tMax. 16 Bits are allowed here.\n\tAborting.\n",tiBps);
121− TIFFClose(tif);
122− return NULL;
123− }
124− if(tiPhoto != PHOTOMETRIC_MINISBLACK && tiPhoto != PHOTOMETRIC_RGB) {
125−- fprintf(stderr,"tiftoimage: Bad color format %d.\n\tOnly RGB(A) and GRAY(A) has been implemented\n",(int) tiPhoto);
126−+ fprintf(stderr,"tiftoimage: Bad color format %d.\n"
127−+ "\tOnly RGB(A) and GRAY(A) has been implemented\n",(int) tiPhoto);
128− fprintf(stderr,"\tAborting\n");
129− TIFFClose(tif);
130− return NULL;
131− }
132−-
133−+ if(tiWidth == 0 || tiHeight == 0) {
134−+ fprintf(stderr,"tiftoimage: Bad values for width(%u) "
135−+ "and/or height(%u)\n\tAborting.\n",tiWidth,tiHeight);
136−+ TIFFClose(tif);
137−+ return NULL;
138−+ }
139−+ w= (int)tiWidth;
140−+ h= (int)tiHeight;
141−+
142− switch (tiBps) {
143− case 1:
144− case 2:
145−@@ -1312,7 +1322,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
146−
147− TIFFGetFieldDefaulted(tif, TIFFTAG_EXTRASAMPLES,
148− &extrasamples, &sampleinfo);
149−-
150−+
151− if(extrasamples >= 1)
152− {
153− switch(sampleinfo[0])
154−@@ -1333,7 +1343,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
155− else /* extrasamples == 0 */
156− if(tiSpp == 4 || tiSpp == 2) has_alpha = 1;
157− }
158−-
159−+
160− /* initialize image components */
161− memset(&cmptparm[0], 0, 4 * sizeof(opj_image_cmptparm_t));
162−
163−@@ -1346,7 +1356,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
164− } else {
165− is_cinema = 0U;
166− }
167−-
168−+
169− if(tiPhoto == PHOTOMETRIC_RGB) /* RGB(A) */
170− {
171− numcomps = 3 + has_alpha;
172−@@ -1384,10 +1394,24 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
173− image->x0 = (OPJ_UINT32)parameters->image_offset_x0;
174− image->y0 = (OPJ_UINT32)parameters->image_offset_y0;
175− image->x1 = !image->x0 ? (OPJ_UINT32)(w - 1) * (OPJ_UINT32)subsampling_dx + 1 :
176−- image->x0 + (OPJ_UINT32)(w - 1) * (OPJ_UINT32)subsampling_dx + 1;
177−+ image->x0 + (OPJ_UINT32)(w - 1) * (OPJ_UINT32)subsampling_dx + 1;
178−+ if(image->x1 <= image->x0) {
179−+ fprintf(stderr,"tiftoimage: Bad value for image->x1(%d) vs. "
180−+ "image->x0(%d)\n\tAborting.\n",image->x1,image->x0);
181−+ TIFFClose(tif);
182−+ opj_image_destroy(image);
183−+ return NULL;
184−+ }
185− image->y1 = !image->y0 ? (OPJ_UINT32)(h - 1) * (OPJ_UINT32)subsampling_dy + 1 :
186−- image->y0 + (OPJ_UINT32)(h - 1) * (OPJ_UINT32)subsampling_dy + 1;
187−-
188−+ image->y0 + (OPJ_UINT32)(h - 1) * (OPJ_UINT32)subsampling_dy + 1;
189−+ if(image->y1 <= image->y0) {
190−+ fprintf(stderr,"tiftoimage: Bad value for image->y1(%d) vs. "
191−+ "image->y0(%d)\n\tAborting.\n",image->y1,image->y0);
192−+ TIFFClose(tif);
193−+ opj_image_destroy(image);
194−+ return NULL;
195−+ }
196−+
197− for(j = 0; j < numcomps; j++)
198− {
199− planes[j] = image->comps[j].data;
200−@@ -1395,15 +1419,15 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
201− image->comps[numcomps - 1].alpha = (OPJ_UINT16)(1 - (numcomps & 1));
202−
203− strip_size = TIFFStripSize(tif);
204−-
205−+
206− buf = _TIFFmalloc(strip_size);
207− if (buf == NULL) {
208− TIFFClose(tif);
209− opj_image_destroy(image);
210− return NULL;
211− }
212−- rowStride = ((OPJ_SIZE_T)w * tiSpp * tiBps + 7U) / 8U;
213−- buffer32s = (OPJ_INT32 *)malloc((OPJ_SIZE_T)w * tiSpp * sizeof(OPJ_INT32));
214−+ rowStride = (w * tiSpp * tiBps + 7U) / 8U;
215−+ buffer32s = (OPJ_INT32 *)malloc((OPJ_SIZE_T)(w * tiSpp * sizeof(OPJ_INT32)));
216− if (buffer32s == NULL) {
217− _TIFFfree(buf);
218− TIFFClose(tif);
219−@@ -1421,11 +1445,20 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
220− for(; (h > 0) && (strip < TIFFNumberOfStrips(tif)); strip++)
221− {
222− const OPJ_UINT8 *dat8;
223−- OPJ_SIZE_T ssize;
224−+ tmsize_t ssize;
225−
226−- ssize = (OPJ_SIZE_T)TIFFReadEncodedStrip(tif, strip, buf, strip_size);
227−+ ssize = TIFFReadEncodedStrip(tif, strip, buf, strip_size);
228−+ if(ssize < 1 || ssize > strip_size) {
229−+ fprintf(stderr,"tiftoimage: Bad value for ssize(%ld) "
230−+ "vs. strip_size(%ld).\n\tAborting.\n",ssize,strip_size);
231−+ _TIFFfree(buf);
232−+ _TIFFfree(buffer32s);
233−+ TIFFClose(tif);
234−+ opj_image_destroy(image);
235−+ return NULL;
236−+ }
237− dat8 = (const OPJ_UINT8*)buf;
238−-
239−+
240− while (ssize >= rowStride) {
241− cvtTifTo32s(dat8, buffer32s, (OPJ_SIZE_T)w * tiSpp);
242− cvtCxToPx(buffer32s, planes, (OPJ_SIZE_T)w);
pkgs/development/python-modules/pyamf/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, fetchPypi, buildPythonPackage, defusedxml }:
2+
3+buildPythonPackage rec {
4+ name = "${pname}-${version}";
5+ pname = "PyAMF";
6+ version = "0.8.0";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "1r3lp9gkph48g9lijby5rs5daa3lhxs204r14zw4kvp3hf4xcm84";
11+ };
12+
13+ propagatedBuildInputs = [ defusedxml ];
14+
15+ meta = with stdenv.lib; {
16+ description = "AMF (Action Message Format) support for Python";
17+ homepage = https://pypi.python.org/pypi/PyAMF;
18+ license = licenses.mit;
19+ };
20+}
pkgs/development/tools/database/schemaspy/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ lib, stdenv, fetchurl, jre, makeWrapper, graphviz }:
2+
3+stdenv.mkDerivation rec {
4+ version = "6.0.0-rc2";
5+ name = "schemaspy-${version}";
6+
7+ src = fetchurl {
8+ url = "https://github.com/schemaspy/schemaspy/releases/download/v${version}/${name}.jar";
9+ sha256 = "0ph1l62hy163m2hgybhkccqbcj6brna1vdbr7536zc37lzjxq9rn";
10+ };
11+
12+ unpackPhase = "true";
13+
14+ buildInputs = [
15+ jre
16+ ];
17+
18+ nativeBuildInputs = [
19+ makeWrapper
20+ ];
21+
22+ wrappedPath = lib.makeBinPath [
23+ graphviz
24+ ];
25+
26+ installPhase = ''
27+ install -D ${src} "$out/share/java/${name}.jar"
28+
29+ makeWrapper ${jre}/bin/java $out/bin/schemaspy \
30+ --add-flags "-jar $out/share/java/${name}.jar" \
31+ --prefix PATH : "$wrappedPath"
32+ '';
33+
34+ meta = with lib; {
35+ homepage = "http://schemaspy.org";
36+ description = "Document your database simply and easily";
37+ license = licenses.mit;
38+ maintainers = with maintainers; [ jraygauthier ];
39+ };
40+}
41+
pkgs/servers/http/couchdb/2.0.0.nix+4−3
@@ -3,14 +3,15 @@
33
44stdenv.mkDerivation rec {
55 name = "couchdb-${version}";
6− version = "2.0.0";
6+ version = "2.1.1";
77
88 src = fetchurl {
99 url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz";
10− sha256 = "1jkfx6g9anrgmkhrkcn50axcamragranwsciw1rhmi86rglkrbyc";
10+ sha256 = "1k3v9v05417087b6fcj5yv03wl6i61xqrrhp0prl9b3ir2mmbwnm";
1111 };
1212
13− buildInputs = [ erlang icu openssl spidermonkey makeWrapper ];
13+ nativeBuildInputs = [ makeWrapper ];
14+ buildInputs = [ erlang icu openssl spidermonkey ];
1415
1516 patches = [ ./jsapi.patch ];
1617 postPatch = ''
pkgs/servers/http/couchdb/default.nix+5−17
@@ -3,30 +3,18 @@
33
44stdenv.mkDerivation rec {
55 name = "couchdb-${version}";
6− version = "1.6.1";
6+ version = "1.7.1";
77
88 src = fetchurl {
99 url = "mirror://apache/couchdb/source/${version}/apache-${name}.tar.gz";
10− sha256 = "09w6ijj9l5jzh81nvc3hrlqp345ajg3haj353g9kxkik6wbinq2s";
10+ sha256 = "1b9cbdrmh1i71mrwvhm17v4cf7lckpil1vvq7lpmxyn6zfk0l84i";
1111 };
1212
13− buildInputs = [ erlang icu openssl spidermonkey curl help2man sphinx which
14− file pkgconfig ];
15−
16− /* This patch removes the `-Werror` flag as there are warnings due to
17− * _BSD_SOURCE being deprecated in glibc >= 2.20
18− */
19− patchPhase = ''
20− patch src/couchdb/priv/Makefile.in <<EOF
21− 392c392
22− < couchjs_CFLAGS = -g -Wall -Werror -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
23− ---
24− > couchjs_CFLAGS = -g -Wall -D_BSD_SOURCE \$(CURL_CFLAGS) \$(JS_CFLAGS)
25− EOF
26− '';
13+ nativeBuildInputs = [ help2man which file pkgconfig sphinx ];
14+ buildInputs = [ erlang icu openssl spidermonkey curl ];
2715
2816 postInstall = ''
29− sed -i -e "s|\`getopt|\`${getopt}/bin/getopt|" $out/bin/couchdb
17+ substituteInPlace $out/bin/couchdb --replace getopt "${getopt}/bin/getopt"
3018 '';
3119
3220 /*
pkgs/servers/monitoring/zabbix/2.0.nix+2−2
@@ -5,12 +5,12 @@ assert enableJabber -> minmay != null;
55
66let
77
8− version = "2.0.11";
8+ version = "2.0.21";
99 branch = "2.0";
1010
1111 src = fetchurl {
1212 url = "mirror://sourceforge/zabbix/zabbix-${version}.tar.gz";
13− sha256 = "1vqxlqwhnz02wrca08vrqbq8k19qp84hbdplmqk7d9699njim46i";
13+ sha256 = "14g22x2zy5xqnh2xg23xy5gjd49d1i8pks7pkidwdwa9acwgfx71";
1414 };
1515
1616 preConfigure =
pkgs/servers/monitoring/zabbix/2.2.nix+2−2
@@ -10,12 +10,12 @@ assert enableJabber -> minmay != null;
1010
1111let
1212
13− version = "2.2.16";
13+ version = "2.2.20";
1414 branch = "2.2";
1515
1616 src = fetchurl {
1717 url = "mirror://sourceforge/zabbix/zabbix-${version}.tar.gz";
18− sha256 = "0hc0y3p8p6pxri7w3n311ry3m5hb440kgwwkiqlihbhsq73xiz1w";
18+ sha256 = "00pfpyj3vydwx9dn0bklh1p5j0bp2awi4hvv4kgliyav8l0416hk";
1919 };
2020
2121 preConfigure =
pkgs/servers/owncloud/default.nix−5
@@ -32,11 +32,6 @@ let
3232
3333in {
3434
35− owncloud705 = common {
36− versiona = "7.0.5";
37− sha256 = "1j21b7ljvbhni9l0b1cpzlhsjy36scyas1l1j222mqdg2srfsi9y";
38− };
39−
4035 owncloud70 = common {
4136 versiona = "7.0.15";
4237 sha256 = "1b2a0fccxlkqyyzsymx7qw8qbhsks3i6h1ybvxv8nn8hgw33nqv7";
pkgs/tools/misc/yle-dl/default.nix+7−3
@@ -2,16 +2,20 @@
22
33pythonPackages.buildPythonApplication rec {
44 name = "yle-dl-${version}";
5− version = "2.20";
5+ version = "2.27";
66
77 src = fetchFromGitHub {
88 owner = "aajanki";
99 repo = "yle-dl";
1010 rev = version;
11− sha256 = "06wzv230hfh3w9gs245kff8666bsfbax3ibr5zxj3h5z4qhhf9if";
11+ sha256 = "1wxl074vxy7dlnk3ykcgnk3ms7bwh0zs7b9pxwhx5hsd894c8fpg";
1212 };
1313
14− pythonPath = [ rtmpdump php ] ++ (with pythonPackages; [ pycrypto ]);
14+ propagatedBuildInputs = with pythonPackages; [ lxml pyamf pycrypto requests ];
15+ pythonPath = [ rtmpdump php ];
16+
17+ doCheck = false; # tests require network access
18+ checkInputs = with pythonPackages; [ pytest pytestrunner ];
1519
1620 meta = with stdenv.lib; {
1721 description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
pkgs/tools/text/bcat/Gemfilenew file+2
@@ -0,0 +1,2 @@
1+source 'http://rubygems.org'
2+gem 'bcat'
pkgs/tools/text/bcat/Gemfile.locknew file+15
@@ -0,0 +1,15 @@
1+GEM
2+ remote: http://rubygems.org/
3+ specs:
4+ bcat (0.6.2)
5+ rack (~> 1.0)
6+ rack (1.6.8)
7+
8+PLATFORMS
9+ ruby
10+
11+DEPENDENCIES
12+ bcat
13+
14+BUNDLED WITH
15+ 1.15.4
pkgs/tools/text/bcat/default.nixnew file+15
@@ -0,0 +1,15 @@
1+{ lib, bundlerApp }:
2+
3+bundlerApp {
4+ pname = "bcat";
5+ gemdir = ./.;
6+ exes = [ "bcat" "btee" "a2h" ];
7+
8+ meta = with lib; {
9+ description = "Pipe to browser utility";
10+ homepage = http://rtomayko.github.com/bcat/;
11+ license = licenses.mit;
12+ maintainers = [ maintainers.jraygauthier ];
13+ platforms = platforms.unix;
14+ };
15+}
pkgs/tools/text/bcat/gemset.nixnew file+19
@@ -0,0 +1,19 @@
1+{
2+ bcat = {
3+ dependencies = ["rack"];
4+ source = {
5+ remotes = ["http://rubygems.org"];
6+ sha256 = "0w2wwlngcs7f4lmvifixrb89bjkw2lx8z0nn72w360hz394ic651";
7+ type = "gem";
8+ };
9+ version = "0.6.2";
10+ };
11+ rack = {
12+ source = {
13+ remotes = ["http://rubygems.org"];
14+ sha256 = "19m7aixb2ri7p1n0iqaqx8ldi97xdhvbxijbyrrcdcl6fv5prqza";
15+ type = "gem";
16+ };
17+ version = "1.6.8";
18+ };
19+}
pkgs/tools/text/ruby-zoom/Gemfile.lock+9−10
@@ -1,16 +1,15 @@
11GEM
22 remote: https://rubygems.org/
33 specs:
4− djinni (2.0.1)
5− fagin (~> 0.1, >= 0.1.2)
6− ruby-terminfo (~> 0.1, >= 0.1.1)
7− fagin (0.1.2)
8− hilighter (0.1.7)
4+ djinni (2.1.1)
5+ fagin (~> 1.0, >= 1.0.0)
6+ fagin (1.0.0)
7+ hilighter (1.1.0)
98 json_config (0.1.2)
10− ruby-terminfo (0.1.1)
11− ruby-zoom (4.1.0)
12− djinni (~> 2.0, >= 2.0.1)
13− hilighter (~> 0.1, >= 0.1.3)
9+ ruby-zoom (5.0.1)
10+ djinni (~> 2.1, >= 2.1.1)
11+ fagin (~> 1.0, >= 1.0.0)
12+ hilighter (~> 1.1, >= 1.1.0)
1413 json_config (~> 0.1, >= 0.1.2)
1514 scoobydoo (~> 0.1, >= 0.1.4)
1615 scoobydoo (0.1.4)
@@ -22,4 +21,4 @@ DEPENDENCIES
2221 ruby-zoom
2322
2423BUNDLED WITH
25− 1.13.1
24+ 1.14.6
pkgs/tools/text/ruby-zoom/gemset.nix+10−16
@@ -1,27 +1,28 @@
11{
22 djinni = {
3+ dependencies = ["fagin"];
34 source = {
45 remotes = ["https://rubygems.org"];
5− sha256 = "0wl4q4qs1nyla5n2b2ys6n3i35gvli8xb8mxz2xv0ik306cikqm6";
6+ sha256 = "00zfgd7zx2p9xjc64xm4iwdxq2bb6n1z09nw815c2f4lvlaq269f";
67 type = "gem";
78 };
8− version = "2.0.1";
9+ version = "2.1.1";
910 };
1011 fagin = {
1112 source = {
1213 remotes = ["https://rubygems.org"];
13− sha256 = "17d419vkfr26gdbad97fg2ikskhn82vs3bnxlzd27w6lwyf13qxk";
14+ sha256 = "0jryqrgb5jvz0m7p91c2bhn6gdwxn9jfdaq3cfkirc3y7yfzv131";
1415 type = "gem";
1516 };
16− version = "0.1.2";
17+ version = "1.0.0";
1718 };
1819 hilighter = {
1920 source = {
2021 remotes = ["https://rubygems.org"];
21− sha256 = "1a9a9clgd6kx63a82msjzi6abznfqivsgmds7qaqwb1dsl1nznbh";
22+ sha256 = "0sy59nfcfk4p1fnrdkipi0mvsj9db17chrx7lb2jg3majbr1wz59";
2223 type = "gem";
2324 };
24− version = "0.1.7";
25+ version = "1.1.0";
2526 };
2627 json_config = {
2728 source = {
@@ -31,21 +32,14 @@
3132 };
3233 version = "0.1.2";
3334 };
34− ruby-terminfo = {
35− source = {
36− remotes = ["https://rubygems.org"];
37− sha256 = "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm";
38− type = "gem";
39− };
40− version = "0.1.1";
41− };
4235 ruby-zoom = {
36+ dependencies = ["djinni" "fagin" "hilighter" "json_config" "scoobydoo"];
4337 source = {
4438 remotes = ["https://rubygems.org"];
45− sha256 = "132pk0zp3rayvvbccfs5ksigg9zpflp9734b4r0jz5aimmv2qpvp";
39+ sha256 = "0115kbz6l8srzizs77k9l0585lg93x90kg49jjpan7ssm786q05j";
4640 type = "gem";
4741 };
48− version = "4.1.0";
42+ version = "5.0.1";
4943 };
5044 scoobydoo = {
5145 source = {
pkgs/top-level/all-packages.nix+7−1
@@ -713,6 +713,8 @@ with pkgs;
713713
714714 bdf2psf = callPackage ../tools/misc/bdf2psf { };
715715
716+ bcat = callPackage ../tools/text/bcat {};
717+
716718 bcache-tools = callPackage ../tools/filesystems/bcache-tools { };
717719
718720 bchunk = callPackage ../tools/cd-dvd/bchunk { };
@@ -7602,6 +7604,8 @@ with pkgs;
76027604
76037605 shellcheck = haskell.lib.justStaticExecutables haskellPackages.ShellCheck;
76047606
7607+ schemaspy = callPackage ../development/tools/database/schemaspy { };
7608+
76057609 shncpd = callPackage ../tools/networking/shncpd { };
76067610
76077611 sigrok-cli = callPackage ../development/tools/sigrok-cli { };
@@ -15667,7 +15671,9 @@ with pkgs;
1566715671
1566815672 minidjvu = callPackage ../applications/graphics/minidjvu { };
1566915673
15670− minikube = callPackage ../applications/networking/cluster/minikube { };
15674+ minikube = callPackage ../applications/networking/cluster/minikube {
15675+ inherit (darwin.apple_sdk.frameworks) vmnet;
15676+ };
1567115677
1567215678 minitube = callPackage ../applications/video/minitube { };
1567315679
pkgs/top-level/python-packages.nix+2
@@ -220,6 +220,8 @@ in {
220220
221221 pyaes = callPackage ../development/python-modules/pyaes { };
222222
223+ pyamf = callPackage ../development/python-modules/pyamf { };
224+
223225 pyatspi = if isPy3k then callPackage ../development/python-modules/pyatspi { } else throw "pyatspi not supported for interpreter ${python.executable}";
224226
225227 pycairo = callPackage ../development/python-modules/pycairo { };