From 3b24b11021e7d7741ce7e70926e26478d489e31e Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Wed, 24 May 2017 03:37:48 +0000 Subject: [PATCH 01/59] cyrus_sasl: fix version --- pkgs/development/libraries/cyrus-sasl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/cyrus-sasl/default.nix b/pkgs/development/libraries/cyrus-sasl/default.nix index 05eb575547d..07f323699b1 100644 --- a/pkgs/development/libraries/cyrus-sasl/default.nix +++ b/pkgs/development/libraries/cyrus-sasl/default.nix @@ -3,7 +3,7 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "cyrus-sasl-${version}${optionalString (kerberos == null) "-without-kerberos"}"; - version = "2.5.10"; + version = "2.1.26"; src = fetchurl { url = "ftp://ftp.cyrusimap.org/cyrus-sasl/${name}.tar.gz"; From 8f4619bb3d5229cc4fd0734d9a6aac19e923571a Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Mon, 5 Jun 2017 18:36:12 +0200 Subject: [PATCH 02/59] kdevelop: 5.0.4 -> 5.1.1 Including also a patch for bug https://bugs.kde.org/show_bug.cgi?id=379433 which is a quite annoying regression from 5.0.4. The patch is the same as the change committed upstream. --- .../applications/editors/kdevelop5/kdevelop.nix | 7 +++---- .../editors/kdevelop5/kdevplatform.nix | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/editors/kdevelop5/kdevelop.nix b/pkgs/applications/editors/kdevelop5/kdevelop.nix index 9191d7a6653..c599666f4d5 100644 --- a/pkgs/applications/editors/kdevelop5/kdevelop.nix +++ b/pkgs/applications/editors/kdevelop5/kdevelop.nix @@ -9,16 +9,15 @@ let pname = "kdevelop"; - version = "5.0.4"; - dirVersion = "5.0.4"; + version = "5.1.1"; in stdenv.mkDerivation rec { name = "${pname}-${version}"; src = fetchurl { - url = "mirror://kde/stable/${pname}/${dirVersion}/src/${name}.tar.xz"; - sha256 = "191142b2bdb14837c82721fdfeb15e852329f2c4c0d48fd479c57514c3235d55"; + url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz"; + sha256 = "0a01a4ffb2f01802cf4945521a3149a8f82c21fa8a97935991f1854b7db5d754"; }; nativeBuildInputs = [ diff --git a/pkgs/applications/editors/kdevelop5/kdevplatform.nix b/pkgs/applications/editors/kdevelop5/kdevplatform.nix index f2b4fc32fe4..d3680aff3d8 100644 --- a/pkgs/applications/editors/kdevelop5/kdevplatform.nix +++ b/pkgs/applications/editors/kdevelop5/kdevplatform.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, cmake, gettext, pkgconfig, extra-cmake-modules, makeQtWrapper +{ stdenv, fetchurl, fetchpatch, cmake, gettext, pkgconfig, extra-cmake-modules, makeQtWrapper , boost, subversion, apr, aprutil , qtscript, qtwebkit, grantlee, karchive, kconfig, kcoreaddons, kguiaddons, kiconthemes, ki18n , kitemmodels, kitemviews, kio, kparts, sonnet, kcmutils, knewstuff, knotifications @@ -6,18 +6,25 @@ let pname = "kdevplatform"; - version = "5.0.4"; - dirVersion = "5.0.4"; + version = "5.1.1"; in stdenv.mkDerivation rec { name = "${pname}-${version}"; src = fetchurl { - url = "mirror://kde/stable/kdevelop/${dirVersion}/src/${name}.tar.xz"; - sha256 = "01abfcd71383048d017fe989ccce0e7590010a3975bbe6e161f55ababe2ad471"; + url = "mirror://kde/stable/kdevelop/${version}/src/${name}.tar.xz"; + sha256 = "3159440512b1373c1a4b35f401ba1f81217de9578372b45137af141eeda6e726"; }; + patches = [ + (fetchpatch { + name = "kdevplatform-project-selection.patch"; + url = "https://cgit.kde.org/kdevplatform.git/patch/?id=da4c0fdfcf21dc2a8f48a2b1402213a32effd47a"; + sha256 = "16ws8l6dciy2civjnsaj03ml2bzvg4a9g7gd4iyx4hprw65zrcxm"; + }) + ]; + nativeBuildInputs = [ cmake gettext pkgconfig extra-cmake-modules makeQtWrapper ]; propagatedBuildInputs = [ ]; From acf4f0ce69e179de8ef617a13c708bfc8598100c Mon Sep 17 00:00:00 2001 From: Vaibhav Sagar Date: Wed, 7 Jun 2017 10:20:20 +0800 Subject: [PATCH 03/59] libthumbor: 1.2.0 -> 1.3.2 --- pkgs/top-level/python-packages.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d2fa2c38ca3..7e54f32b430 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7662,13 +7662,15 @@ in { libthumbor = buildPythonPackage rec { name = "libthumbor-${version}"; - version = "1.2.0"; + version = "1.3.2"; src = pkgs.fetchurl { url = "mirror://pypi/l/libthumbor/${name}.tar.gz"; - sha256 = "09bbaf08124ee33ea4ef99881625bd20450b0b43ab90fd678479beba8c03f86e"; + sha256 = "1vjhszsf8wl9k16wyg2rfjycjnawzl7z8j39bhiysbz5x4lqg91b"; }; + buildInputs = with self; [ django ]; + propagatedBuildInputs = with self; [ six pycrypto ]; meta = { From 48c910611f8a592426cbf6dee1cb3c212aa3299b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20J=C3=A4ger?= Date: Tue, 6 Jun 2017 20:35:29 -0700 Subject: [PATCH 04/59] buck: init at v2017.05.31.01 --- .../tools/build-managers/buck/default.nix | 46 +++++++++++++++++++ .../tools/build-managers/buck/pex-mtime.patch | 21 +++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 69 insertions(+) create mode 100644 pkgs/development/tools/build-managers/buck/default.nix create mode 100644 pkgs/development/tools/build-managers/buck/pex-mtime.patch diff --git a/pkgs/development/tools/build-managers/buck/default.nix b/pkgs/development/tools/build-managers/buck/default.nix new file mode 100644 index 00000000000..020750393cd --- /dev/null +++ b/pkgs/development/tools/build-managers/buck/default.nix @@ -0,0 +1,46 @@ + { stdenv, pkgs, fetchFromGitHub, fetchgit, jdk, ant, python2, watchman, unzip, bash }: + +stdenv.mkDerivation rec { + name = "buck-${version}"; + version = "v2017.05.31.01"; + + src = fetchFromGitHub { + owner = "facebook"; + repo = "buck"; + rev = "0b8b3828a11afa79dc128832cb55b106f07e48aa"; + sha256 = "1g3yg8qq91cdhsq7zmir7wxw3767l120f5zhq969gppdw9apqy0s"; + }; + + patches = [ ./pex-mtime.patch ]; + + postPatch = '' + for f in $(grep -l -r '/bin/bash'); do + substituteInPlace "$f" --replace '/bin/bash' '${bash}/bin/bash' + done + ''; + + buildInputs = [ jdk ant ]; + + propagatedBuildInputs = [ python2 watchman pkgs.python27Packages.pywatchman ]; + + buildPhase = + '' + ant + ./bin/buck --version + ./bin/buck build buck + ''; + + installPhase = + '' + mkdir -p $out/bin + cp buck-out/gen/programs/buck.pex $out/bin/buck + ''; + + meta = with stdenv.lib; { + homepage = https://buckbuild.com/; + description = "A high-performance build tool"; + maintainers = [ maintainers.jgertm ]; + license = licenses.asl20; + platforms = platforms.all; + }; +} diff --git a/pkgs/development/tools/build-managers/buck/pex-mtime.patch b/pkgs/development/tools/build-managers/buck/pex-mtime.patch new file mode 100644 index 00000000000..01640f342ae --- /dev/null +++ b/pkgs/development/tools/build-managers/buck/pex-mtime.patch @@ -0,0 +1,21 @@ +diff --git a/third-party/py/pex/pex/common.py b/third-party/py/pex/pex/common.py +index 76459ce23..491dcfc0b 100644 +--- a/third-party/py/pex/pex/common.py ++++ b/third-party/py/pex/pex/common.py +@@ -12,6 +12,7 @@ import stat + import sys + import tempfile + import threading ++import time + import zipfile + from collections import defaultdict + from uuid import uuid4 +@@ -328,4 +329,7 @@ class Chroot(object): + def zip(self, filename, mode='wb'): + with contextlib.closing(zipfile.ZipFile(filename, mode)) as zf: + for f in sorted(self.files()): +- zf.write(os.path.join(self.chroot, f), arcname=f, compress_type=zipfile.ZIP_DEFLATED) ++ file = os.path.join(self.chroot, f) ++ instant = 315532800 ++ os.utime(file, (instant, instant)) ++ zf.write(file, arcname=f, compress_type=zipfile.ZIP_DEFLATED) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8bca3cee890..7f84f3ac9e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6552,6 +6552,8 @@ with pkgs; wxGTK = wxGTK30; }; + buck = callPackage ../development/tools/build-managers/buck { }; + buildbot = callPackage ../development/tools/build-managers/buildbot { pythonPackages = python2Packages; }; From 69cfc7f26586d2bcf278937ba051fc11aa3c7d8c Mon Sep 17 00:00:00 2001 From: Vaibhav Sagar Date: Wed, 7 Jun 2017 11:12:24 +0800 Subject: [PATCH 05/59] thumbor: 5.2.1 -> 6.3.2 --- pkgs/top-level/python-packages.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7e54f32b430..462f619ce2a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -28080,7 +28080,7 @@ EOF thumbor = buildPythonPackage rec { name = "thumbor-${version}"; - version = "5.2.1"; + version = "6.3.2"; disabled = ! isPy27; @@ -28090,6 +28090,7 @@ EOF tornado pycrypto pycurl + pytz pillow derpconf python_magic @@ -28101,14 +28102,18 @@ EOF src = pkgs.fetchurl { url = "mirror://pypi/t/thumbor/${name}.tar.gz"; - sha256 = "57b0d7e261e792b2e2c53a79c3d8c722964003d1828331995dc3491dc67db7d8"; + sha256 = "0787245x4yci34cdfc9xaxhds0lv60476qgp132pwa78hrpc9m31"; }; + prePatch = '' + substituteInPlace setup.py \ + --replace '"argparse",' "" + ''; + meta = { description = "A smart imaging service"; homepage = https://github.com/globocom/thumbor/wiki; license = licenses.mit; - broken = true; }; }; From 6d2e0b5a26a369b9882dd5a7fd0160862b35039a Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Wed, 7 Jun 2017 11:49:24 +0100 Subject: [PATCH 06/59] openscenegraph: 3.2.3 -> 3.4.0 --- pkgs/development/libraries/openscenegraph/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openscenegraph/default.nix b/pkgs/development/libraries/openscenegraph/default.nix index ec85542c920..8d083904189 100644 --- a/pkgs/development/libraries/openscenegraph/default.nix +++ b/pkgs/development/libraries/openscenegraph/default.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation rec { name = "openscenegraph-${version}"; - version = "3.2.3"; + version = "3.4.0"; src = fetchurl { url = "http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-${version}.zip"; - sha256 = "0gic1hy7fhs27ipbsa5862q120a9y4bx176nfaw2brcjp522zvb9"; + sha256 = "03h4wfqqk7rf3mpz0sa99gy715cwpala7964z2npd8jxfn27swjw"; }; nativeBuildInputs = [ pkgconfig cmake doxygen unzip ]; From b509cd4a16aa35e7d3aafc37550c2b4232453bfb Mon Sep 17 00:00:00 2001 From: Duarte David Date: Wed, 7 Jun 2017 15:29:22 +0200 Subject: [PATCH 07/59] teamspeak_client: 3.0.19.4 -> 3.1.4 --- .../instant-messengers/teamspeak/client.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/teamspeak/client.nix b/pkgs/applications/networking/instant-messengers/teamspeak/client.nix index 36a91716f5e..efafbd9050c 100644 --- a/pkgs/applications/networking/instant-messengers/teamspeak/client.nix +++ b/pkgs/applications/networking/instant-messengers/teamspeak/client.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, makeWrapper, makeDesktopItem, zlib, glib, libpng, freetype -, xorg, fontconfig, qtbase, xkeyboard_config, alsaLib, libpulseaudio ? null +{ stdenv, fetchurl, makeWrapper, makeDesktopItem, zlib, glib, libpng, freetype, openssl +, xorg, fontconfig, qtbase, qtwebengine, qtwebchannel, xkeyboard_config, alsaLib, libpulseaudio ? null , libredirect, quazip, less, which, unzip, llvmPackages }: @@ -10,10 +10,10 @@ let libDir = if stdenv.is64bit then "lib64" else "lib"; deps = - [ zlib glib libpng freetype xorg.libSM xorg.libICE xorg.libXrender + [ zlib glib libpng freetype xorg.libSM xorg.libICE xorg.libXrender openssl xorg.libXrandr xorg.libXfixes xorg.libXcursor xorg.libXinerama - xorg.libxcb fontconfig xorg.libXext xorg.libX11 alsaLib qtbase libpulseaudio - llvmPackages.libcxx llvmPackages.libcxxabi + xorg.libxcb fontconfig xorg.libXext xorg.libX11 alsaLib qtbase qtwebengine qtwebchannel libpulseaudio + quazip llvmPackages.libcxx llvmPackages.libcxxabi ]; desktopItem = makeDesktopItem { @@ -31,7 +31,7 @@ in stdenv.mkDerivation rec { name = "teamspeak-client-${version}"; - version = "3.0.19.4"; + version = "3.1.4"; src = fetchurl { urls = [ @@ -39,8 +39,8 @@ stdenv.mkDerivation rec { "http://teamspeak.gameserver.gamed.de/ts3/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run" ]; sha256 = if stdenv.is64bit - then "f74617d2a2f5cb78e0ead345e6ee66c93e4a251355779018fd060828e212294a" - else "e11467dc1732ddc21ec0d86c2853c322af7a6b8307e3e8dfebc6b4b4d7404841"; + then "337aec99070366aa3bb82b1bedd8215372b9c74014b198d45d5d6375d1f1c3a8" + else "4e126e005b1180655b0847cbdbfc9c47c59c639b7f93f0d988b54a8c4c6ec80f"; }; # grab the plugin sdk for the desktop icon @@ -72,6 +72,7 @@ stdenv.mkDerivation rec { '' # Delete unecessary libraries - these are provided by nixos. rm *.so.* *.so + rm QtWebEngineProcess rm qt.conf # Install files. @@ -89,7 +90,6 @@ stdenv.mkDerivation rec { ln -s $out/lib/teamspeak/ts3client $out/bin/ts3client wrapProgram $out/bin/ts3client \ - --set LD_LIBRARY_PATH "${quazip}/lib" \ --set LD_PRELOAD "${libredirect}/lib/libredirect.so" \ --set QT_PLUGIN_PATH "$out/lib/teamspeak/platforms" \ --set NIX_REDIRECTS /usr/share/X11/xkb=${xkeyboard_config}/share/X11/xkb From 0f3ca3f1f66fe66f0b6a5afccb1f77bf5497f990 Mon Sep 17 00:00:00 2001 From: Duarte David Date: Wed, 7 Jun 2017 15:30:08 +0200 Subject: [PATCH 08/59] teamspeak_server: 3.0.13.5 -> 3.0.13.6 --- .../networking/instant-messengers/teamspeak/server.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/teamspeak/server.nix b/pkgs/applications/networking/instant-messengers/teamspeak/server.nix index 73e8ab83f72..c86de07bc84 100644 --- a/pkgs/applications/networking/instant-messengers/teamspeak/server.nix +++ b/pkgs/applications/networking/instant-messengers/teamspeak/server.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, makeWrapper }: let - version = "3.0.13.5"; + version = "3.0.13.6"; arch = if stdenv.is64bit then "amd64" else "x86"; libDir = if stdenv.is64bit then "lib64" else "lib"; in @@ -15,8 +15,8 @@ stdenv.mkDerivation { "http://teamspeak.gameserver.gamed.de/ts3/releases/${version}/teamspeak3-server_linux_${arch}-${version}.tar.bz2" ]; sha256 = if stdenv.is64bit - then "bd5933dd17d17f93d56f69332927cd1ce6f34439ec464a0ce2ca73102d85080c" - else "848e1a44af3c2b00840a280ba558a13407f4844432ddfd262ee8a7800365386b"; + then "19ccd8db5427758d972a864b70d4a1263ebb9628fcc42c3de75ba87de105d179" + else "2f70b3e70a3d9bf86106fab67a938922c8d27fec24e66e229913f78a0791b967"; }; buildInputs = [ makeWrapper ]; From a997f4d2ba51e749257a193d82c2c88593f1b5ae Mon Sep 17 00:00:00 2001 From: romildo Date: Wed, 7 Jun 2017 18:47:39 -0300 Subject: [PATCH 09/59] flat-plat: 20170515 -> 20170605 --- pkgs/misc/themes/flat-plat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/misc/themes/flat-plat/default.nix b/pkgs/misc/themes/flat-plat/default.nix index b858dfc2c5f..3c7882e8f94 100644 --- a/pkgs/misc/themes/flat-plat/default.nix +++ b/pkgs/misc/themes/flat-plat/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "flat-plat-gtk-theme-${version}"; - version = "20170515"; + version = "20170605"; src = fetchFromGitHub { owner = "nana-4"; repo = "Flat-Plat"; rev = "v${version}"; - sha256 = "0z0l9ch6symcjhbfkj1q5i46ajbn7l7slhjgrcjm0ppqh05xc4y7"; + sha256 = "1vcd6mkkfk9a1n5hwpdigvsdsfd8df83kc94w53rs7gw9pqfygya"; }; nativeBuildInputs = [ gnome3.glib libxml2 ]; From dffbe98dd696fe3579c9ce430524cce689d85508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 8 Jun 2017 08:36:59 +0100 Subject: [PATCH 10/59] buck: make propagatedBuildInputs runtime deps --- .../tools/build-managers/buck/default.nix | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/pkgs/development/tools/build-managers/buck/default.nix b/pkgs/development/tools/build-managers/buck/default.nix index 020750393cd..dadea794466 100644 --- a/pkgs/development/tools/build-managers/buck/default.nix +++ b/pkgs/development/tools/build-managers/buck/default.nix @@ -1,6 +1,8 @@ - { stdenv, pkgs, fetchFromGitHub, fetchgit, jdk, ant, python2, watchman, unzip, bash }: +{ stdenv, fetchFromGitHub, jdk, ant, python2, python2Packages, watchman, unzip, bash, jre, makeWrapper }: -stdenv.mkDerivation rec { + +let +in stdenv.mkDerivation rec { name = "buck-${version}"; version = "v2017.05.31.01"; @@ -14,27 +16,23 @@ stdenv.mkDerivation rec { patches = [ ./pex-mtime.patch ]; postPatch = '' - for f in $(grep -l -r '/bin/bash'); do - substituteInPlace "$f" --replace '/bin/bash' '${bash}/bin/bash' - done + grep -l -r '/bin/bash' --null | xargs -0 sed -i -e "s!/bin/bash!${bash}/bin/bash!g" ''; - buildInputs = [ jdk ant ]; + buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ]; + nativeBuildInputs = [ makeWrapper ]; - propagatedBuildInputs = [ python2 watchman pkgs.python27Packages.pywatchman ]; + buildPhase = '' + ant + ./bin/buck build buck + ''; - buildPhase = - '' - ant - ./bin/buck --version - ./bin/buck build buck - ''; - - installPhase = - '' - mkdir -p $out/bin - cp buck-out/gen/programs/buck.pex $out/bin/buck - ''; + installPhase = '' + install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck + wrapProgram $out/bin/buck \ + --prefix PYTHONPATH : $PYTHONPATH \ + --prefix PATH : "${stdenv.lib.makeBinPath [jre watchman]}" + ''; meta = with stdenv.lib; { homepage = https://buckbuild.com/; From b5fc15610aba2d6313de513bf9ecab5de236c811 Mon Sep 17 00:00:00 2001 From: romildo Date: Thu, 8 Jun 2017 14:57:22 -0300 Subject: [PATCH 11/59] colordiff: 1.0.16 -> 1.0.18 --- pkgs/tools/text/colordiff/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/text/colordiff/default.nix b/pkgs/tools/text/colordiff/default.nix index b22a1da2264..7661db22cc1 100644 --- a/pkgs/tools/text/colordiff/default.nix +++ b/pkgs/tools/text/colordiff/default.nix @@ -1,14 +1,14 @@ { stdenv, fetchurl, perl /*, xmlto */}: stdenv.mkDerivation rec { - name = "colordiff-1.0.16"; + name = "colordiff-1.0.18"; src = fetchurl { urls = [ "http://www.colordiff.org/${name}.tar.gz" "http://www.colordiff.org/archive/${name}.tar.gz" ]; - sha256 = "12qkkw13261dra8pg7mzx4r8p9pb0ajb090bib9j1s6hgphwzwga"; + sha256 = "1q6n60n4b9fnzccxyxv04mxjsql4ddq17vl2c74ijvjdhpcfrkr9"; }; buildInputs = [ perl /* xmlto */ ]; From 7a134572532323900a6661e5f1fea09b6dea3479 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 8 Jun 2017 12:12:48 -0400 Subject: [PATCH 12/59] gcc 7: Remove `cross` arguments and don't use stdenv.is* These changes were already done for the older GCCs, but 7 slipped through the cracks. --- pkgs/development/compilers/gcc/7/default.nix | 71 ++++++++++---------- pkgs/top-level/all-packages.nix | 4 -- 2 files changed, 35 insertions(+), 40 deletions(-) diff --git a/pkgs/development/compilers/gcc/7/default.nix b/pkgs/development/compilers/gcc/7/default.nix index a14fc0ce246..5d3126ea0e9 100644 --- a/pkgs/development/compilers/gcc/7/default.nix +++ b/pkgs/development/compilers/gcc/7/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, noSysDirs , langC ? true, langCC ? true, langFortran ? false -, langObjC ? stdenv.isDarwin -, langObjCpp ? stdenv.isDarwin +, langObjC ? targetPlatform.isDarwin +, langObjCpp ? targetPlatform.isDarwin , langJava ? false , langAda ? false , langVhdl ? false @@ -25,7 +25,6 @@ , enableMultilib ? false , enablePlugin ? true # whether to support user-supplied plug-ins , name ? "gcc" -, cross ? null , libcCross ? null , crossStageStatic ? true , gnat ? null @@ -49,10 +48,10 @@ assert langVhdl -> gnat != null; assert libelf != null -> zlib != null; # Make sure we get GNU sed. -assert stdenv.isDarwin -> gnused != null; +assert hostPlatform.isDarwin -> gnused != null; # Need c++filt on darwin -assert stdenv.isDarwin -> binutils != null; +assert hostPlatform.isDarwin -> binutils != null; # The go frontend is written in c++ assert langGo -> langCC; @@ -63,13 +62,13 @@ with builtins; let version = "7.1.0"; # Whether building a cross-compiler for GNU/Hurd. - crossGNU = cross != null && cross.config == "i586-pc-gnu"; + crossGNU = targetPlatform != hostPlatform && targetPlatform.config == "i586-pc-gnu"; enableParallelBuilding = true; patches = [ ] - ++ optional (cross != null) ../libstdc++-target.patch + ++ optional (targetPlatform != hostPlatform) ../libstdc++-target.patch ++ optional noSysDirs ../no-sys-dirs.patch # The GNAT Makefiles did not pay attention to CFLAGS_FOR_TARGET for its # target libraries and tools. @@ -122,8 +121,8 @@ let version = "7.1.0"; withMode; /* Cross-gcc settings */ - crossMingw = cross != null && cross.libc == "msvcrt"; - crossDarwin = cross != null && cross.libc == "libSystem"; + crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; + crossDarwin = targetPlatform != hostPlatform && targetPlatform.libc == "libSystem"; crossConfigureFlags = let gccArch = targetPlatform.gcc.arch or null; gccCpu = targetPlatform.gcc.cpu or null; @@ -138,7 +137,7 @@ let version = "7.1.0"; withFloat = if gccFloat != null then " --with-float=${gccFloat}" else ""; withMode = if gccMode != null then " --with-mode=${gccMode}" else ""; in - "--target=${cross.config}" + + "--target=${targetPlatform.config}" + withArch + withCpu + withAbi + @@ -146,8 +145,8 @@ let version = "7.1.0"; withFloat + withMode + # Ensure that -print-prog-name is able to find the correct programs. - " --with-as=${binutils}/bin/${cross.config}-as" + - " --with-ld=${binutils}/bin/${cross.config}-ld" + + " --with-as=${binutils}/bin/${targetPlatform.config}-as" + + " --with-ld=${binutils}/bin/${targetPlatform.config}-ld" + (if crossMingw && crossStageStatic then " --with-headers=${libcCross}/include" + " --with-gcc" + @@ -188,7 +187,7 @@ let version = "7.1.0"; " --disable-shared" + # To keep ABI compatibility with upstream mingw-w64 " --enable-fully-dynamic-string" - else (if cross.libc == "uclibc" then + else (if targetPlatform.libc == "uclibc" then # libsanitizer requires netrom/netrom.h which is not # available in uclibc. " --disable-libsanitizer" + @@ -200,9 +199,9 @@ let version = "7.1.0"; " --disable-decimal-float") # No final libdecnumber (it may work only in 386) ); stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final"; - crossNameAddon = if cross != null then "-${cross.config}" + stageNameAddon else ""; + crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else ""; - bootstrap = cross == null; + bootstrap = targetPlatform == hostPlatform; in @@ -230,7 +229,7 @@ stdenv.mkDerivation ({ hardeningDisable = [ "format" ]; postPatch = - if (stdenv.isHurd + if (hostPlatform.isHurd || (libcCross != null # e.g., building `gcc.crossDrv' && libcCross ? crossConfig && libcCross.crossConfig == "i586-pc-gnu") @@ -266,7 +265,7 @@ stdenv.mkDerivation ({ sed -i "${gnu_h}" \ -es'|#define STANDARD_INCLUDE_DIR.*$|#define STANDARD_INCLUDE_DIR "${libc.dev}/include"|g' '' - else if cross != null || stdenv.cc.libc != null then + else if targetPlatform != hostPlatform || stdenv.cc.libc != null then # On NixOS, use the right path to the dynamic linker instead of # `/lib/ld*.so'. let @@ -295,19 +294,19 @@ stdenv.mkDerivation ({ ++ (optional (zlib != null) zlib) ++ (optionals langJava [ boehmgc zip unzip ]) ++ (optionals javaAwtGtk ([ gtk2 libart_lgpl ] ++ xlibs)) - ++ (optionals (cross != null) [binutils]) + ++ (optionals (targetPlatform != hostPlatform) [binutils]) ++ (optionals langAda [gnatboot]) ++ (optionals langVhdl [gnat]) # The builder relies on GNU sed (for instance, Darwin's `sed' fails with # "-i may not be used with stdin"), and `stdenvNative' doesn't provide it. - ++ (optional stdenv.isDarwin gnused) - ++ (optional stdenv.isDarwin binutils) + ++ (optional hostPlatform.isDarwin gnused) + ++ (optional hostPlatform.isDarwin binutils) ; - NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-lm -ldl"; + NIX_LDFLAGS = stdenv.lib.optionalString hostPlatform.isSunOS "-lm -ldl"; - preConfigure = stdenv.lib.optionalString (stdenv.isSunOS && stdenv.is64bit) '' + preConfigure = stdenv.lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) '' export NIX_LDFLAGS=`echo $NIX_LDFLAGS | sed -e s~$prefix/lib~$prefix/lib/amd64~g` export LDFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $LDFLAGS_FOR_TARGET" export CXXFLAGS_FOR_TARGET="-Wl,-rpath,$prefix/lib/amd64 $CXXFLAGS_FOR_TARGET" @@ -317,7 +316,7 @@ stdenv.mkDerivation ({ dontDisableStatic = true; configureFlags = " - ${if stdenv.isSunOS then + ${if hostPlatform.isSunOS then " --enable-long-long --enable-libssp --enable-threads=posix --disable-nls --enable-__cxa_atexit " + # On Illumos/Solaris GNU as is preferred " --with-gnu-as --without-gnu-ld " @@ -361,19 +360,19 @@ stdenv.mkDerivation ({ ) ) } - ${if cross == null - then if stdenv.isDarwin + ${if targetPlatform == hostPlatform + then if hostPlatform.isDarwin then " --with-native-system-header-dir=${darwin.usr-include}" else " --with-native-system-header-dir=${getDev stdenv.cc.libc}/include" else ""} ${if langAda then " --enable-libada" else ""} - ${if cross == null && stdenv.isi686 then "--with-arch=i686" else ""} - ${if cross != null then crossConfigureFlags else ""} + ${if targetPlatform == hostPlatform && targetPlatform.isi686 then "--with-arch=i686" else ""} + ${if targetPlatform != hostPlatform then crossConfigureFlags else ""} ${if !bootstrap then "--disable-bootstrap" else ""} - ${if cross == null then platformFlags else ""} + ${if targetPlatform == hostPlatform then platformFlags else ""} "; - targetConfig = if cross != null then cross.config else null; + targetConfig = if targetPlatform != hostPlatform then targetPlatform.config else null; buildFlags = if bootstrap then (if profiledCompiler then "profiledbootstrap" else "bootstrap") @@ -405,8 +404,8 @@ stdenv.mkDerivation ({ CC_FOR_TARGET = "${targetPlatform.config}-gcc"; NM_FOR_TARGET = "${targetPlatform.config}-nm"; CXX_FOR_TARGET = "${targetPlatform.config}-g++"; - # If we are making a cross compiler, cross != null - NIX_CC_CROSS = if cross == null then "${stdenv.ccCross}" else ""; + # If we are making a cross compiler, targetPlatform != hostPlatform + NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else ""; dontStrip = true; configureFlags = '' ${if enableMultilib then "" else "--disable-multilib"} @@ -482,7 +481,7 @@ stdenv.mkDerivation ({ ++ optional (libpthread != null) libpthread); EXTRA_TARGET_CFLAGS = - if cross != null && libcCross != null then [ + if targetPlatform != hostPlatform && libcCross != null then [ "-idirafter ${getDev libcCross}/include" ] ++ optionals (! crossStageStatic) [ @@ -491,7 +490,7 @@ stdenv.mkDerivation ({ else null; EXTRA_TARGET_LDFLAGS = - if cross != null && libcCross != null then [ + if targetPlatform != hostPlatform && libcCross != null then [ "-Wl,-L${libcCross.out}/lib" ] ++ (if crossStageStatic then [ @@ -539,13 +538,13 @@ stdenv.mkDerivation ({ }; } -// optionalAttrs (cross != null && cross.libc == "msvcrt" && crossStageStatic) { +// optionalAttrs (targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt" && crossStageStatic) { makeFlags = [ "all-gcc" "all-target-libgcc" ]; installTargets = "install-gcc install-target-libgcc"; } -# Strip kills static libs of other archs (hence cross != null) -// optionalAttrs (!stripped || cross != null) { dontStrip = true; NIX_STRIP_DEBUG = 0; } +# Strip kills static libs of other archs (hence targetPlatform != hostPlatform) +// optionalAttrs (!stripped || targetPlatform != hostPlatform) { dontStrip = true; NIX_STRIP_DEBUG = 0; } // optionalAttrs (enableMultilib) { dontMoveLib64 = true; } ) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f8d0d2cc7f9..4abafcac452 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5245,10 +5245,6 @@ with pkgs; # PGO seems to speed up compilation by gcc by ~10%, see #445 discussion profiledCompiler = with stdenv; (!isDarwin && (isi686 || isx86_64)); - # When building `gcc.crossDrv' (a "Canadian cross", with host == target - # and host != build), `cross' must be null but the cross-libc must still - # be passed. - cross = null; libcCross = if targetPlatform != buildPlatform then libcCross else null; isl = if !stdenv.isDarwin then isl_0_17 else null; From 926f3eada8f2a45345781a7074f33fe5f25f2402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20J=C3=A4ger?= Date: Thu, 8 Jun 2017 11:26:42 -0700 Subject: [PATCH 13/59] buck: cleanup --- .../tools/build-managers/buck/default.nix | 8 +++----- .../tools/build-managers/buck/pex-mtime.patch | 20 ++++++------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/pkgs/development/tools/build-managers/buck/default.nix b/pkgs/development/tools/build-managers/buck/default.nix index dadea794466..bb21d34c957 100644 --- a/pkgs/development/tools/build-managers/buck/default.nix +++ b/pkgs/development/tools/build-managers/buck/default.nix @@ -1,8 +1,6 @@ -{ stdenv, fetchFromGitHub, jdk, ant, python2, python2Packages, watchman, unzip, bash, jre, makeWrapper }: +{ stdenv, fetchFromGitHub, jdk, ant, python2, python2Packages, watchman, unzip, bash, makeWrapper }: - -let -in stdenv.mkDerivation rec { +stdenv.mkDerivation rec { name = "buck-${version}"; version = "v2017.05.31.01"; @@ -31,7 +29,7 @@ in stdenv.mkDerivation rec { install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck wrapProgram $out/bin/buck \ --prefix PYTHONPATH : $PYTHONPATH \ - --prefix PATH : "${stdenv.lib.makeBinPath [jre watchman]}" + --prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" ''; meta = with stdenv.lib; { diff --git a/pkgs/development/tools/build-managers/buck/pex-mtime.patch b/pkgs/development/tools/build-managers/buck/pex-mtime.patch index 01640f342ae..b8726e64a60 100644 --- a/pkgs/development/tools/build-managers/buck/pex-mtime.patch +++ b/pkgs/development/tools/build-managers/buck/pex-mtime.patch @@ -1,21 +1,13 @@ diff --git a/third-party/py/pex/pex/common.py b/third-party/py/pex/pex/common.py -index 76459ce23..491dcfc0b 100644 +index 76459ce23..eff411b20 100644 --- a/third-party/py/pex/pex/common.py +++ b/third-party/py/pex/pex/common.py -@@ -12,6 +12,7 @@ import stat - import sys - import tempfile - import threading -+import time - import zipfile - from collections import defaultdict - from uuid import uuid4 -@@ -328,4 +329,7 @@ class Chroot(object): +@@ -328,4 +328,7 @@ class Chroot(object): def zip(self, filename, mode='wb'): with contextlib.closing(zipfile.ZipFile(filename, mode)) as zf: for f in sorted(self.files()): - zf.write(os.path.join(self.chroot, f), arcname=f, compress_type=zipfile.ZIP_DEFLATED) -+ file = os.path.join(self.chroot, f) -+ instant = 315532800 -+ os.utime(file, (instant, instant)) -+ zf.write(file, arcname=f, compress_type=zipfile.ZIP_DEFLATED) ++ path = os.path.join(self.chroot, f) ++ instant = 615532801 ++ os.utime(path, (instant, instant)) ++ zf.write(path, arcname=f, compress_type=zipfile.ZIP_DEFLATED) From e2197465c16a3c04935eb892d6485b7551dd65f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 8 Jun 2017 19:00:40 +0100 Subject: [PATCH 14/59] cc-wrapper: externalize default_cxx_stdlib_compile This value is require to get c++ std include path for libclang based tools (vim plugins in my case). I currently extract it this with this rather command: ``` eval echo $(nix-instantiate --eval --expr 'with (import ) {}; clang.default_cxx_stdlib_compile') ``` it did not trigger any recompilation on my system. --- pkgs/build-support/cc-wrapper/default.nix | 12 ++++++------ pkgs/misc/vim-plugins/default.nix | 7 +++++++ .../vim2nix/additional-nix-code/clang_complete | 7 +++++++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 95c6bee3cc7..e56f1f9a7d4 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -34,6 +34,9 @@ let binutils_bin = if nativeTools then "" else getBin binutils; # The wrapper scripts use 'cat' and 'grep', so we may need coreutils. coreutils_bin = if nativeTools then "" else getBin coreutils; + + default_cxx_stdlib_compile=optionalString (stdenv.isLinux && !(cc.isGNU or false)) + "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)"; in stdenv.mkDerivation { @@ -46,8 +49,9 @@ stdenv.mkDerivation { inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin; gnugrep_bin = if nativeTools then "" else gnugrep; + passthru = { - inherit libc nativeTools nativeLibc nativePrefix isGNU isClang; + inherit libc nativeTools nativeLibc nativePrefix isGNU isClang default_cxx_stdlib_compile; emacsBufferSetup = pkgs: '' ; We should handle propagation here too @@ -189,11 +193,7 @@ stdenv.mkDerivation { export real_cc=cc export real_cxx=c++ - export default_cxx_stdlib_compile="${ - if stdenv.isLinux && !(cc.isGNU or false) - then "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)" - else "" - }" + export default_cxx_stdlib_compile="${default_cxx_stdlib_compile}" if [ -e $ccPath/gcc ]; then wrap gcc ${./cc-wrapper.sh} $ccPath/gcc diff --git a/pkgs/misc/vim-plugins/default.nix b/pkgs/misc/vim-plugins/default.nix index 09e4d365f17..416262f9e1e 100644 --- a/pkgs/misc/vim-plugins/default.nix +++ b/pkgs/misc/vim-plugins/default.nix @@ -293,6 +293,13 @@ rec { sha256 = "19zs03giv8h5xmv18y9zn85sxr8akphvbscclrqhs4cf88285cgl"; }; dependencies = []; + # In addition to the arguments you pass to your compiler, you also need to + # specify the path of the C++ std header (if you are using C++). + # These usually implicitly set by cc-wrapper around clang (pkgs/build-support/cc-wrapper). + # The linked ruby code shows generates the required '.clang_complete' for cmake based projects + # https://gist.github.com/Mic92/135e83803ed29162817fce4098dec144 + # as an alternative you can execute the following command: + # $ eval echo $(nix-instantiate --eval --expr 'with (import ) {}; clang.default_cxx_stdlib_compile') preFixup = '' substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/clang_complete.vim \ --replace "let g:clang_library_path = '' + "''" + ''" "let g:clang_library_path='${llvmPackages.clang.cc}/lib/libclang.so'" diff --git a/pkgs/misc/vim-plugins/vim2nix/additional-nix-code/clang_complete b/pkgs/misc/vim-plugins/vim2nix/additional-nix-code/clang_complete index 64e064e2a46..ed88e08742e 100644 --- a/pkgs/misc/vim-plugins/vim2nix/additional-nix-code/clang_complete +++ b/pkgs/misc/vim-plugins/vim2nix/additional-nix-code/clang_complete @@ -1,3 +1,10 @@ + # In addition to the arguments you pass to your compiler, you also need to + # specify the path of the C++ std header (if you are using C++). + # These usually implicitly set by cc-wrapper around clang (pkgs/build-support/cc-wrapper). + # The linked ruby code shows generates the required '.clang_complete' for cmake based projects + # https://gist.github.com/Mic92/135e83803ed29162817fce4098dec144 + # as an alternative you can execute the following command: + # $ eval echo $(nix-instantiate --eval --expr 'with (import ) {}; clang.default_cxx_stdlib_compile') preFixup = '' substituteInPlace "$out"/share/vim-plugins/clang_complete/plugin/clang_complete.vim \ --replace "let g:clang_library_path = '' + "''" + ''" "let g:clang_library_path='${llvmPackages.clang.cc}/lib/libclang.so'" From b57a14810b7a5540879782ccafa705d49268f065 Mon Sep 17 00:00:00 2001 From: romildo Date: Thu, 8 Jun 2017 15:54:51 -0300 Subject: [PATCH 15/59] jetbrains.clion: 2017.1.1 -> 2017.1.3 --- pkgs/applications/editors/jetbrains/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index 284100cc2c3..d71ecc99a69 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -185,12 +185,12 @@ in clion = buildClion rec { name = "clion-${version}"; - version = "2017.1.1"; + version = "2017.1.3"; description = "C/C++ IDE. New. Intelligent. Cross-platform"; license = stdenv.lib.licenses.unfree; src = fetchurl { url = "https://download.jetbrains.com/cpp/CLion-${version}.tar.gz"; - sha256 = "1bh92gakxqrg65rfhg8984ca338ff0y17kdjkpr6rbh1i39npgcs"; + sha256 = "045pkbbf4ypk9qkhldz08i7hbc6vaq68a8v9axnpndnvcrf0vf7g"; }; wmClass = "jetbrains-clion"; }; From bc1f59fb4f46e94a8d3ff9bc6d49fe76c0c99f4d Mon Sep 17 00:00:00 2001 From: romildo Date: Thu, 8 Jun 2017 16:45:14 -0300 Subject: [PATCH 16/59] jetbrains.idea-ultimate: 2017.1.3 -> 2017.1.4 --- pkgs/applications/editors/jetbrains/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index d71ecc99a69..5e98fd8021c 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -269,12 +269,12 @@ in idea-ultimate = buildIdea rec { name = "idea-ultimate-${version}"; - version = "2017.1.3"; + version = "2017.1.4"; description = "Integrated Development Environment (IDE) by Jetbrains, requires paid license"; license = stdenv.lib.licenses.unfree; src = fetchurl { url = "https://download.jetbrains.com/idea/ideaIU-${version}-no-jdk.tar.gz"; - sha256 = "1gl62zrs3yxakgwbm29bv9z68jgy5ixc28zcagydx2h4j2b1fb19"; + sha256 = "0byrsbsscpzb0syamzpavny879src5dlclnissa7173rh8hgkna4"; }; wmClass = "jetbrains-idea"; }; From 277b562324395cc786fc6a2f13431f48c82a388a Mon Sep 17 00:00:00 2001 From: romildo Date: Thu, 8 Jun 2017 16:57:50 -0300 Subject: [PATCH 17/59] jetbrains.idea-community: 2017.1.3 -> 2017.1.4 --- pkgs/applications/editors/jetbrains/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/default.nix b/pkgs/applications/editors/jetbrains/default.nix index 5e98fd8021c..7eb34b47c76 100644 --- a/pkgs/applications/editors/jetbrains/default.nix +++ b/pkgs/applications/editors/jetbrains/default.nix @@ -233,12 +233,12 @@ in idea-community = buildIdea rec { name = "idea-community-${version}"; - version = "2017.1.3"; + version = "2017.1.4"; description = "Integrated Development Environment (IDE) by Jetbrains, community edition"; license = stdenv.lib.licenses.asl20; src = fetchurl { url = "https://download.jetbrains.com/idea/ideaIC-${version}.tar.gz"; - sha256 = "0ag70z4cark69hzhvx5j75qa8dglwzfaqrzi8pim3asd161fwxrx"; + sha256 = "1w1knq969dl8rxlkhr9mw8cr2vszn384acwhspimrd3zs9825r45"; }; wmClass = "jetbrains-idea-ce"; }; From 399afc13e4c69ef03432c5d76e5a53a65b7bcb67 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:40:02 +0300 Subject: [PATCH 18/59] afl: 2.41b -> 2.42b --- pkgs/tools/security/afl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/afl/default.nix b/pkgs/tools/security/afl/default.nix index 252be087675..4fa200e5bbd 100644 --- a/pkgs/tools/security/afl/default.nix +++ b/pkgs/tools/security/afl/default.nix @@ -9,11 +9,11 @@ let in stdenv.mkDerivation rec { name = "afl-${version}"; - version = "2.41b"; + version = "2.42b"; src = fetchurl { url = "http://lcamtuf.coredump.cx/afl/releases/${name}.tgz"; - sha256 = "13wnjk0rklcjglj7dmpahv67vig9azifxgnggj56hki66lrb2w06"; + sha256 = "16ckgi4rh48rdmqcyxgabzcsmkfq77jjaghbxw9smkkm4sbx3yhk"; }; # Note: libcgroup isn't needed for building, just for the afl-cgroup From 9e41ba6e96c08f6b4af8597149694c92fc30e7df Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:40:12 +0300 Subject: [PATCH 19/59] bastet: 0.43.1 -> 0.43.2 --- pkgs/games/bastet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/bastet/default.nix b/pkgs/games/bastet/default.nix index 682756c7787..4c55d571bd5 100644 --- a/pkgs/games/bastet/default.nix +++ b/pkgs/games/bastet/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { name = "bastet-${version}"; - version = "0.43.1"; + version = "0.43.2"; buildInputs = [ ncurses boost ]; src = fetchFromGitHub { owner = "fph"; repo = "bastet"; rev = version; - sha256 = "14ymdarx30zqxyixvb17h4hs57y6zfx0lrdvc200crllz8zzdx5z"; + sha256 = "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"; }; installPhase = '' From cd46df3a1e992c28104b83efdcc3520cc525cb6e Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:41:00 +0300 Subject: [PATCH 20/59] fio: 2.19 -> 2.20 --- pkgs/tools/system/fio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/fio/default.nix b/pkgs/tools/system/fio/default.nix index 50c8862bc34..c4e0724dddc 100644 --- a/pkgs/tools/system/fio/default.nix +++ b/pkgs/tools/system/fio/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchFromGitHub, libaio, python, zlib }: let - version = "2.19"; - sha256 = "1rfnisb8hqwx76rjmgaagvs3k0808z27ll9i3w5ifzysi1c1l6r9"; + version = "2.20"; + sha256 = "06sn9ll75xbr2rr7zn8xzdy1v705kqfxv6q1zx6ysvxwri0sxrfx"; in stdenv.mkDerivation rec { From 97d29ffbfd821adba0e80e1b1ff70e73a28df25f Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:41:29 +0300 Subject: [PATCH 21/59] nano: 2.8.3 -> 2.8.4 --- pkgs/applications/editors/nano/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/nano/default.nix b/pkgs/applications/editors/nano/default.nix index 78d3953a96b..29e76f7d23a 100644 --- a/pkgs/applications/editors/nano/default.nix +++ b/pkgs/applications/editors/nano/default.nix @@ -20,11 +20,11 @@ let in stdenv.mkDerivation rec { name = "nano-${version}"; - version = "2.8.3"; + version = "2.8.4"; src = fetchurl { url = "mirror://gnu/nano/${name}.tar.xz"; - sha256 = "0m8g1f1c09kjmy7w6dxq30yw373nsv1ylj7986xyv4a0jddybf32"; + sha256 = "04bvmimrw40cbcnm3xm5l5lir0qy7cncfkmwrlzg8jiy1x7jdky7"; }; nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; From 211c55b247f8c5721d8eb6641b82c11ffd86c731 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:41:55 +0300 Subject: [PATCH 22/59] strace: 4.16 -> 4.17 --- pkgs/development/tools/misc/strace/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/strace/default.nix b/pkgs/development/tools/misc/strace/default.nix index ab5934ed58c..549872646cb 100644 --- a/pkgs/development/tools/misc/strace/default.nix +++ b/pkgs/development/tools/misc/strace/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "strace-${version}"; - version = "4.16"; + version = "4.17"; src = fetchurl { url = "mirror://sourceforge/strace/${name}.tar.xz"; - sha256 = "1vzhmpcy989i4k12q4cc438yal2ghhm6x7ychscjbhcf2yspqj4q"; + sha256 = "06bl4dld5fk4a3iiq4pyrkm6sh63599ah8dmds0glg5vbw45pww1"; }; nativeBuildInputs = [ perl ]; From 69901f16c906c79e69939607631944ff5643152b Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Thu, 8 Jun 2017 20:42:06 +0300 Subject: [PATCH 23/59] yle-dl: 2.15 -> 2.16 --- pkgs/tools/misc/yle-dl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/yle-dl/default.nix b/pkgs/tools/misc/yle-dl/default.nix index 600b2c49758..1de8f8c9a10 100644 --- a/pkgs/tools/misc/yle-dl/default.nix +++ b/pkgs/tools/misc/yle-dl/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "yle-dl-${version}"; - version = "2.15"; + version = "2.16"; src = fetchFromGitHub { owner = "aajanki"; repo = "yle-dl"; rev = version; - sha256 = "1mvgw8ppv33j04mjsyb5rxg358v3i2zfgazwm7nc3ysc5yl091j5"; + sha256 = "1ahv7b3r52mvi2b5ji77l62hy543b6pdmq8hnd9xxvnxai463k35"; }; patchPhase = '' From cfe23e19ab550b981db32ccf1f2fa876fdcc9611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20J=C3=A4ger?= Date: Thu, 8 Jun 2017 15:36:30 -0700 Subject: [PATCH 24/59] buck: build buckd as well buck tries to launch buckd to run in the background. While not neccessary, it does speed up builds. --- .../tools/build-managers/buck/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/build-managers/buck/default.nix b/pkgs/development/tools/build-managers/buck/default.nix index bb21d34c957..cddb1a90765 100644 --- a/pkgs/development/tools/build-managers/buck/default.nix +++ b/pkgs/development/tools/build-managers/buck/default.nix @@ -20,16 +20,23 @@ stdenv.mkDerivation rec { buildInputs = [ jdk ant python2 watchman python2Packages.pywatchman ]; nativeBuildInputs = [ makeWrapper ]; + targets = [ "buck" "buckd" ]; + buildPhase = '' ant - ./bin/buck build buck + + for exe in ${toString targets}; do + ./bin/buck build //programs:$exe + done ''; installPhase = '' - install -D -m755 buck-out/gen/programs/buck.pex $out/bin/buck - wrapProgram $out/bin/buck \ - --prefix PYTHONPATH : $PYTHONPATH \ - --prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" + for exe in ${toString targets}; do + install -D -m755 buck-out/gen/programs/$exe.pex $out/bin/$exe + wrapProgram $out/bin/$exe \ + --prefix PYTHONPATH : $PYTHONPATH \ + --prefix PATH : "${stdenv.lib.makeBinPath [jdk watchman]}" + done ''; meta = with stdenv.lib; { From 8e706b051e7bcdb149eca52075046116dcdbb256 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 9 Jun 2017 00:36:53 +0200 Subject: [PATCH 25/59] tor: 0.3.0.7 -> 0.3.0.8 Of particular note are fixes for hidden service crashing bugs (TROVE-2017-004 and TROVE-2017-005). See https://blog.torproject.org/blog/tor-0308-released-fix-hidden-services-also-are-02429-02514-02612-0278-02814-and-02911 --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index 6eea70797ab..05dbe6b7d84 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -3,11 +3,11 @@ }: stdenv.mkDerivation rec { - name = "tor-0.3.0.7"; + name = "tor-0.3.0.8"; src = fetchurl { url = "https://dist.torproject.org/${name}.tar.gz"; - sha256 = "00kxa83bn0axh7479fynp6r8znq5wy26kvb8ghixgjpkir2c8h4n"; + sha256 = "0j0dhq1zp6w6zy7y4kiw7zg1imbgv8nsl7imlzwc0951p2kknfk6"; }; outputs = [ "out" "geoip" ]; From 2bfc977b6eafb0be0af131e05a878bceee141324 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Fri, 9 Jun 2017 01:56:50 +0300 Subject: [PATCH 26/59] ethtool: 4.10 -> 4.11 --- pkgs/tools/misc/ethtool/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/ethtool/default.nix b/pkgs/tools/misc/ethtool/default.nix index eba2e82911b..ae6ea6e3f53 100644 --- a/pkgs/tools/misc/ethtool/default.nix +++ b/pkgs/tools/misc/ethtool/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "ethtool-${version}"; - version = "4.10"; + version = "4.11"; src = fetchurl { url = "mirror://kernel/software/network/ethtool/${name}.tar.xz"; - sha256 = "1fklbjwr41cvd5b7d1qvpl3bqzc4aak732r3m2wjhhgkxhk9f07h"; + sha256 = "1cp132kk2xd2cwn1ysjv0cl8i9lnq3n4zi4wy676p5k4h2mfvn0j"; }; meta = with stdenv.lib; { From 292f121fb239e9fe89b79988a23b0adf0f0d2ccc Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 9 Jun 2017 12:03:56 +0800 Subject: [PATCH 27/59] mpc: 0.27 -> 0.28 Upstream has also moved to github --- pkgs/applications/audio/mpc/default.nix | 27 +++++++++++++++---------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/audio/mpc/default.nix b/pkgs/applications/audio/mpc/default.nix index f37585d3dec..59adb7cde49 100644 --- a/pkgs/applications/audio/mpc/default.nix +++ b/pkgs/applications/audio/mpc/default.nix @@ -1,27 +1,32 @@ -{ stdenv, fetchurl, mpd_clientlib }: +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }: stdenv.mkDerivation rec { - version = "0.27"; name = "mpc-${version}"; + version = "0.28"; - src = fetchurl { - url = "http://www.musicpd.org/download/mpc/0/${name}.tar.xz"; - sha256 = "0r10wsqxsi07gns6mfnicvpci0sbwwj4qa9iyr1ysrgadl5bx8j5"; + src = fetchFromGitHub { + owner = "MusicPlayerDaemon"; + repo = "mpc"; + rev = "v${version}"; + sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9"; }; buildInputs = [ mpd_clientlib ]; - preConfigure = - '' - export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion} - export LIBMPDCLIENT_CFLAGS=${mpd_clientlib} - ''; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + + enableParallelBuilding = true; + + preConfigure = '' + export LIBMPDCLIENT_LIBS=${mpd_clientlib}/lib/libmpdclient.${if stdenv.isDarwin then mpd_clientlib.majorVersion + ".dylib" else "so." + mpd_clientlib.majorVersion + ".0." + mpd_clientlib.minorVersion} + export LIBMPDCLIENT_CFLAGS=${mpd_clientlib} + ''; meta = with stdenv.lib; { description = "A minimalist command line interface to MPD"; homepage = http://www.musicpd.org/clients/mpc/; license = licenses.gpl2; - maintainers = [ maintainers.algorith ]; + maintainers = with maintainers; [ algorith ]; platforms = with platforms; linux ++ darwin; }; } From c87f03497730b04c870d39c08e4ae4462709a443 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 9 Jun 2017 12:04:23 +0800 Subject: [PATCH 28/59] mpd: 0.20.6 -> 0.20.9 Upstream has also moved to github. --- pkgs/servers/mpd/default.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/mpd/default.nix b/pkgs/servers/mpd/default.nix index 1883764e24f..b7eb0b5397d 100644 --- a/pkgs/servers/mpd/default.nix +++ b/pkgs/servers/mpd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch, pkgconfig, glib, systemd, boost, darwin +{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkgconfig, glib, systemd, boost, darwin , alsaSupport ? true, alsaLib , avahiSupport ? true, avahi, dbus , flacSupport ? true, flac @@ -33,18 +33,22 @@ let opt = stdenv.lib.optional; mkFlag = c: f: if c then "--enable-${f}" else "--disable-${f}"; major = "0.20"; - minor = "6"; + minor = "9"; in stdenv.mkDerivation rec { - name = "mpd-${major}${if minor == "" then "" else "." + minor}"; - src = fetchurl { - url = "http://www.musicpd.org/download/mpd/${major}/${name}.tar.xz"; - sha256 = "0isbpa79m7zf09w3s1ry638cw96rxasy1ch66zl01k75i48mw1gl"; + name = "mpd-${version}"; + version = "${major}${if minor == "" then "" else "." + minor}"; + + src = fetchFromGitHub { + owner = "MusicPlayerDaemon"; + repo = "MPD"; + rev = "v${version}"; + sha256 = "17ly30syrlw5274washifr0nddll3g1zb4rr4f9sfnlxz9wz73p1"; }; patches = [ ./x86.patch ]; - buildInputs = [ pkgconfig glib boost ] + buildInputs = [ glib boost ] ++ opt stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudioKit ++ opt stdenv.isLinux systemd ++ opt (stdenv.isLinux && alsaSupport) alsaLib @@ -77,6 +81,10 @@ in stdenv.mkDerivation rec { ++ opt opusSupport libopus ++ opt soundcloudSupport yajl; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + + enableParallelBuilding = true; + configureFlags = [ (mkFlag (!stdenv.isDarwin && alsaSupport) "alsa") (mkFlag flacSupport "flac") From 207ac3c7b8186d2b20066baa837a1ebf4845be33 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 9 Jun 2017 12:54:29 +0800 Subject: [PATCH 29/59] mpd_clientlib: 2.10 -> 2.11 Upstream has moved to github as well. --- pkgs/servers/mpd/clientlib.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/mpd/clientlib.nix b/pkgs/servers/mpd/clientlib.nix index 82d18091050..5c72ac97bc0 100644 --- a/pkgs/servers/mpd/clientlib.nix +++ b/pkgs/servers/mpd/clientlib.nix @@ -1,19 +1,23 @@ -{ stdenv, fetchurl, doxygen }: +{ stdenv, fetchFromGitHub, autoreconfHook, doxygen }: stdenv.mkDerivation rec { version = "${passthru.majorVersion}.${passthru.minorVersion}"; name = "libmpdclient-${version}"; - src = fetchurl { - url = "http://www.musicpd.org/download/libmpdclient/2/${name}.tar.xz"; - sha256 = "10pzs9z815a8hgbbbiliapyiw82bnplsccj5irgqjw5f5plcs22g"; + src = fetchFromGitHub { + owner = "MusicPlayerDaemon"; + repo = "libmpdclient"; + rev = "v${version}"; + sha256 = "06rv2j8rw9v9l4nwpvbh28nad8bbg368hzd8s58znbr5pgb8dihd"; }; - buildInputs = [ doxygen ]; + nativeBuildInputs = [ autoreconfHook doxygen ]; + + enableParallelBuilding = true; passthru = { majorVersion = "2"; - minorVersion = "10"; + minorVersion = "11"; }; meta = with stdenv.lib; { From bcf9af560a86caf88d36257d349099a0786f1fb4 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Fri, 9 Jun 2017 12:54:56 +0800 Subject: [PATCH 30/59] ncmpc: 0.24 -> 0.27 Upstream has moved to github as well. --- pkgs/applications/audio/ncmpc/default.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/audio/ncmpc/default.nix b/pkgs/applications/audio/ncmpc/default.nix index 31185c0d0c2..e43120a715d 100644 --- a/pkgs/applications/audio/ncmpc/default.nix +++ b/pkgs/applications/audio/ncmpc/default.nix @@ -1,19 +1,27 @@ -{ stdenv, fetchurl, pkgconfig, glib, ncurses, mpd_clientlib, libintlOrEmpty }: +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, ncurses, mpd_clientlib, libintlOrEmpty }: stdenv.mkDerivation rec { - version = "0.24"; name = "ncmpc-${version}"; + version = "0.27"; - src = fetchurl { - url = "http://www.musicpd.org/download/ncmpc/0/ncmpc-${version}.tar.xz"; - sha256 = "1sf3nirs3mcx0r5i7acm9bsvzqzlh730m0yjg6jcyj8ln6r7cvqf"; + src = fetchFromGitHub { + owner = "MusicPlayerDaemon"; + repo = "ncmpc"; + rev = "v${version}"; + sha256 = "0sfal3wadqvy6yas4xzhw35awdylikci8kbdcmgm4l2afpmc1lrr"; }; - buildInputs = [ pkgconfig glib ncurses mpd_clientlib ] - ++ libintlOrEmpty; + buildInputs = [ glib ncurses mpd_clientlib ]; + # ++ libintlOrEmpty; + nativeBuildInputs = [ autoreconfHook pkgconfig ]; NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; + # without this, po/Makefile.in.in is not being created + preAutoreconf = '' + ./autogen.sh + ''; + configureFlags = [ "--enable-colors" "--enable-lyrics-screen" From 965668903adb00fcc7f39531e977ad1048853d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pa=C5=82ka?= Date: Fri, 9 Jun 2017 06:17:51 +0000 Subject: [PATCH 31/59] xen: fix pygrub by making sure it is wrapped Recent commit #c10af9e744c91dff1ccc07a52a0b57d1e4d339f3 changed the behaviour of wrapPythonPrograms, which caused pygrub to no longer being wrapped. This commit fixes this. --- pkgs/applications/virtualization/xen/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/virtualization/xen/generic.nix b/pkgs/applications/virtualization/xen/generic.nix index bfce2cd6ae4..b0b353c5fa2 100644 --- a/pkgs/applications/virtualization/xen/generic.nix +++ b/pkgs/applications/virtualization/xen/generic.nix @@ -204,6 +204,8 @@ stdenv.mkDerivation (rec { --replace SBINDIR=\"$out/sbin\" SBINDIR=\"$out/bin\" wrapPythonPrograms + # We also need to wrap pygrub, which lies in lib + wrapPythonProgramsIn "$out/lib" "$out $pythonPath" shopt -s extglob for i in $out/etc/xen/scripts/!(*.sh); do From d6138238e3e9b1563db8cab7d9b10ac32c903f02 Mon Sep 17 00:00:00 2001 From: Simon Lackerbauer Date: Fri, 9 Jun 2017 09:21:17 +0200 Subject: [PATCH 32/59] add package for lbreakout2, a breakout clone from the popular lgames series --- lib/maintainers.nix | 1 + pkgs/games/lbreakout2/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 pkgs/games/lbreakout2/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index b9508d529a2..f83b887ba97 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -99,6 +99,7 @@ chris-martin = "Chris Martin "; chrisjefferson = "Christopher Jefferson "; christopherpoole = "Christopher Mark Poole "; + ciil = "Simon Lackerbauer "; ckampka = "Christian Kampka "; cko = "Christine Koppelt "; cleverca22 = "Michael Bishop "; diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix new file mode 100644 index 00000000000..68af5bf5857 --- /dev/null +++ b/pkgs/games/lbreakout2/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, gcc }: + +stdenv.mkDerivation rec { + name = "lbreakout2-${version}"; + version = "2.6.5"; + buildInputs = [ SDL SDL_mixer zlib libpng gcc ]; + + src = fetchurl { + url = "http://downloads.sourceforge.net/lgames/${name}.tar.gz"; + sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; + }; + + meta = with stdenv.lib; { + description = "Breakout clone from the LGames series"; + homepage = http://lgames.sourceforge.net/LBreakout2/; + license = licenses.gpl; + maintainers = [ maintainers.ciil ]; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 100f9f9c36f..e2af723792f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2644,6 +2644,8 @@ with pkgs; kytea = callPackage ../tools/text/kytea { }; + lbreakout2 = callPackage ../games/lbreakout2 { }; + leocad = callPackage ../applications/graphics/leocad { }; less = callPackage ../tools/misc/less { }; From fbb5b2ef016a2dfc35f5d81664e78d84ac08d1f7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 9 Jun 2017 09:23:04 +0200 Subject: [PATCH 33/59] multi-ghc-travis: update to latest git version --- .../tools/haskell/multi-ghc-travis/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/haskell/multi-ghc-travis/default.nix b/pkgs/development/tools/haskell/multi-ghc-travis/default.nix index 90b61ec4124..81707a6bfc3 100644 --- a/pkgs/development/tools/haskell/multi-ghc-travis/default.nix +++ b/pkgs/development/tools/haskell/multi-ghc-travis/default.nix @@ -2,15 +2,15 @@ stdenv.mkDerivation rec { name = "multi-ghc-travis-${version}"; - version = "git-2017-05-18"; + version = "git-2017-05-24"; buildInputs = [ ghc ]; src = fetchFromGitHub { owner = "hvr"; repo = "multi-ghc-travis"; - rev = "3e1b3847583020f0e83c97fcf4bcfb7c90b78259"; - sha256 = "0hnwp9gsv2rnkxqiw4cg1vdi7wccajx0i9ryhw4lfr8nhkizbsww"; + rev = "c1dcbcbcd3eadcc63adeac65d63497885b422a44"; + sha256 = "12xss8wgsqs2fghrfl4h6g5wli6wn274zmdsq5zdcib2m7da5yw2"; }; installPhase = '' @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { description = "Generate .travis.yml for multiple ghc versions"; homepage = "https://github.com/hvr/multi-ghc-travis"; license = licenses.bsd3; - platforms = platforms.all; + platforms = ghc.meta.platforms; maintainers = with maintainers; [ jb55 ]; }; } From 63e967a33a65ab1b207707f135c79741134ceefb Mon Sep 17 00:00:00 2001 From: Simon Lackerbauer Date: Fri, 9 Jun 2017 09:21:17 +0200 Subject: [PATCH 34/59] lbreakout2: init at 2.6.5 --- lib/maintainers.nix | 1 + pkgs/games/lbreakout2/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 pkgs/games/lbreakout2/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index b9508d529a2..f83b887ba97 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -99,6 +99,7 @@ chris-martin = "Chris Martin "; chrisjefferson = "Christopher Jefferson "; christopherpoole = "Christopher Mark Poole "; + ciil = "Simon Lackerbauer "; ckampka = "Christian Kampka "; cko = "Christine Koppelt "; cleverca22 = "Michael Bishop "; diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix new file mode 100644 index 00000000000..68af5bf5857 --- /dev/null +++ b/pkgs/games/lbreakout2/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, gcc }: + +stdenv.mkDerivation rec { + name = "lbreakout2-${version}"; + version = "2.6.5"; + buildInputs = [ SDL SDL_mixer zlib libpng gcc ]; + + src = fetchurl { + url = "http://downloads.sourceforge.net/lgames/${name}.tar.gz"; + sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; + }; + + meta = with stdenv.lib; { + description = "Breakout clone from the LGames series"; + homepage = http://lgames.sourceforge.net/LBreakout2/; + license = licenses.gpl; + maintainers = [ maintainers.ciil ]; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 100f9f9c36f..e2af723792f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2644,6 +2644,8 @@ with pkgs; kytea = callPackage ../tools/text/kytea { }; + lbreakout2 = callPackage ../games/lbreakout2 { }; + leocad = callPackage ../applications/graphics/leocad { }; less = callPackage ../tools/misc/less { }; From f2e075a241bbf24a2d03c11c6516bac8d52cadf3 Mon Sep 17 00:00:00 2001 From: romildo Date: Thu, 8 Jun 2017 21:12:22 -0300 Subject: [PATCH 35/59] mkvtoolnix: 11.0.0 -> 12.0.0 --- pkgs/applications/video/mkvtoolnix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/mkvtoolnix/default.nix b/pkgs/applications/video/mkvtoolnix/default.nix index c3f54fcaf46..8650142f8b4 100644 --- a/pkgs/applications/video/mkvtoolnix/default.nix +++ b/pkgs/applications/video/mkvtoolnix/default.nix @@ -10,13 +10,13 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "mkvtoolnix-${version}"; - version = "11.0.0"; + version = "12.0.0"; src = fetchFromGitHub { owner = "mbunkus"; repo = "mkvtoolnix"; rev = "release-${version}"; - sha256 = "1qqa8ss2mfjzj984l9vc1fnk7czbvhbmmq53m87gnrc65351gkir"; + sha256 = "1xn24f9046q2lr1xbl02cpmqa4fhhxqjc14j14c9r6qfc4ix4n9w"; }; nativeBuildInputs = [ pkgconfig autoconf automake gettext drake ruby docbook_xsl libxslt ]; From b1f0af7ef67260724c914a823e87ea2b4516b7e9 Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 9 Jun 2017 12:14:54 +0200 Subject: [PATCH 36/59] linuxPackages.evdi: specify minimum kernel version, per upstream Upstream says 3.16 is the oldest supported kernel. No versions prior to 3.18 build on Hydra. See e.g., https://hydra.nixos.org/build/53599831. --- pkgs/os-specific/linux/evdi/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/evdi/default.nix b/pkgs/os-specific/linux/evdi/default.nix index d1e8a466953..150534c9b95 100644 --- a/pkgs/os-specific/linux/evdi/default.nix +++ b/pkgs/os-specific/linux/evdi/default.nix @@ -27,5 +27,6 @@ stdenv.mkDerivation rec { platforms = platforms.linux; license = licenses.gpl2; homepage = "http://www.displaylink.com/"; + broken = !versionAtLeast kernel.version "3.16"; }; } From 39f7530e4715d1bf84b1ed8cabf6c196efe5e7ec Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Fri, 9 Jun 2017 12:51:42 +0200 Subject: [PATCH 37/59] tinycc: 0.9.27pre-20170527 -> 0.9.27pre-20170605 Contains further fix to x86_64 codegen (and some less relevant Windows stuff). --- pkgs/development/compilers/tinycc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/tinycc/default.nix b/pkgs/development/compilers/tinycc/default.nix index fcad6045dbf..c7e3c4b3c67 100644 --- a/pkgs/development/compilers/tinycc/default.nix +++ b/pkgs/development/compilers/tinycc/default.nix @@ -2,10 +2,10 @@ with stdenv.lib; let - date = "20170527"; + date = "20170605"; version = "0.9.27pre-${date}"; - rev = "53c5fc2246270e0242903de0152a9a5d40f3d679"; - sha256 = "0z5ayz0kdn5xqm84k730hmd7r9cq0zxxf45g5phgqppdfajrmswz"; + rev = "3e4b7693bfd5b76570b35558c83a935326513eff"; + sha256 = "0m5k1df73kakvg9xz06y3nlac4mwfccni6hdijaf4w8fyy3zz4bg"; in stdenv.mkDerivation rec { From cc9a72a286e83124abfbfc427bbdcb539341e138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 9 Jun 2017 13:09:21 +0200 Subject: [PATCH 38/59] virtualboxGuestAdditions: don't install setuid/setgid --- .../virtualization/virtualbox/guest-additions/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix index df59f3e0e2e..38f452efe6c 100644 --- a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix +++ b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix @@ -97,7 +97,7 @@ stdenv.mkDerivation { sed -i -e "s|/usr/bin|$out/bin|" bin/VBoxClient-all # Install binaries - install -D -m 4755 lib/VBoxGuestAdditions/mount.vboxsf $out/bin/mount.vboxsf + install -D -m 755 lib/VBoxGuestAdditions/mount.vboxsf $out/bin/mount.vboxsf install -D -m 755 sbin/VBoxService $out/bin/VBoxService mkdir -p $out/bin From 44681c53d68f212e7da33e0d27b6352a0103a863 Mon Sep 17 00:00:00 2001 From: romildo Date: Fri, 9 Jun 2017 09:30:20 -0300 Subject: [PATCH 39/59] jwm: 1582 -> 1594 --- pkgs/applications/window-managers/jwm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/window-managers/jwm/default.nix b/pkgs/applications/window-managers/jwm/default.nix index 2082f48d257..40050a69025 100644 --- a/pkgs/applications/window-managers/jwm/default.nix +++ b/pkgs/applications/window-managers/jwm/default.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { name = "jwm-${version}"; - version = "1582"; + version = "1594"; src = fetchFromGitHub { owner = "joewing"; repo = "jwm"; rev = "s${version}"; - sha256 = "1z6cxf18n69sjd20bbyxrnd19hhy955ddvakgpfyhiprpfjkkv70"; + sha256 = "1608ws3867xipcbdl2gw6ybcxzk14vq24sr62m9l65m4g4m3wbd2"; }; nativeBuildInputs = [ pkgconfig automake autoconf libtool gettext which ]; From dd3dcceb239915f6929e09fcaf27e0b119f021c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pa=C5=82ka?= Date: Fri, 9 Jun 2017 13:08:07 +0000 Subject: [PATCH 40/59] xen: patch for XSAs: 206, 211, 212, 213, 214 and 215 XSA-206 Issue Description: > xenstored supports transactions, such that if writes which would > invalidate assumptions of a transaction occur, the entire transaction > fails. Typical response on a failed transaction is to simply retry > the transaction until it succeeds. > > Unprivileged domains may issue writes to xenstore which conflict with > transactions either of the toolstack or of backends such as the driver > domain. Depending on the exact timing, repeated writes may cause > transactions made by these entities to fail indefinitely. More: https://xenbits.xen.org/xsa/advisory-206.html XSA-211 Issue Description: > When a graphics update command gets passed to the VGA emulator, there > are 3 possible modes that can be used to update the display: > > * blank - Clears the display > * text - Treats the display as showing text > * graph - Treats the display as showing graphics > > After the display geometry gets changed (i.e., after the CIRRUS VGA > emulation has resized the display), the VGA emulator will resize the > console during the next update command. However, when a blank mode is > also selected during an update, this resize doesn't happen. The resize > will be properly handled during the next time a non-blank mode is > selected during an update. > > However, other console components - such as the VNC emulation - will > operate as though this resize had happened. When the display is > resized to be larger than before, this can result in a heap overflow > as console components will expect the display buffer to be larger than > it is currently allocated. More: https://xenbits.xen.org/xsa/advisory-211.html XSA-212 Issue Description: > The XSA-29 fix introduced an insufficient check on XENMEM_exchange > input, allowing the caller to drive hypervisor memory accesses outside > of the guest provided input/output arrays. More: https://xenbits.xen.org/xsa/advisory-212.html XSA-213 Issue Description: > 64-bit PV guests typically use separate (root) page tables for their > kernel and user modes. Hypercalls are accessible to guest kernel > context only, which certain hypercall handlers make assumptions on. > The IRET hypercall (replacing the identically name CPU instruction) > is used by guest kernels to transfer control from kernel mode to user > mode. If such an IRET hypercall is placed in the middle of a multicall > batch, subsequent operations invoked by the same multicall batch may > wrongly assume the guest to still be in kernel mode. If one or more of > these subsequent operations involve operations on page tables, they may > be using the wrong root page table, confusing internal accounting. As > a result the guest may gain writable access to some of its page tables. More: https://xenbits.xen.org/xsa/advisory-213.html XSA-214 Issue Description: > The GNTTABOP_transfer operation allows one guest to transfer a page to > another guest. The internal processing of this, however, does not > include zapping the previous type of the page being transferred. This > makes it possible for a PV guest to transfer a page previously used as > part of a segment descriptor table to another guest while retaining the > "contains segment descriptors" property. > > If the destination guest is a PV one of different bitness, it may gain > access to segment descriptors it is not normally allowed to have, like > 64-bit code segments in a 32-bit PV guest. > > If the destination guest is a HVM one, that guest may freely alter the > page contents and then hand the page back to the same or another PV > guest. > > In either case, if the destination PV guest then inserts that page into > one of its own descriptor tables, the page still having the designated > type results in validation of its contents being skipped. More: https://xenbits.xen.org/xsa/advisory-214.html XSA-215 Issue Description: > Under certain special conditions Xen reports an exception resulting > from returning to guest mode not via ordinary exception entry points, > but via a so call failsafe callback. This callback, unlike exception > handlers, takes 4 extra arguments on the stack (the saved data > selectors DS, ES, FS, and GS). Prior to placing exception or failsafe > callback frames on the guest kernel stack, Xen checks the linear > address range to not overlap with hypervisor space. The range spanned > by that check was mistakenly not covering these extra 4 slots. More: https://xenbits.xen.org/xsa/advisory-215.html --- pkgs/applications/virtualization/xen/4.5.nix | 120 +++++++++++++++++++ 1 file changed, 120 insertions(+) diff --git a/pkgs/applications/virtualization/xen/4.5.nix b/pkgs/applications/virtualization/xen/4.5.nix index 3fbdee981c4..c6aa1522160 100644 --- a/pkgs/applications/virtualization/xen/4.5.nix +++ b/pkgs/applications/virtualization/xen/4.5.nix @@ -67,6 +67,10 @@ callPackage (import ./generic.nix (rec { name = "209-qemuu/0002-cirrus-add-blit_is_unsafe-call-to-cirrus_bitblt_cput"; sha256 = "0avxqs9922qjfsxxlk7bh10432a526j2yyykhags8dk1bzxkpxwv"; }) + (xsaPatch { + name = "211-qemuu-4.6"; + sha256 = "1g090xs8ca8676vyi78b99z5yjdliw6mxkr521b8kimhf8crx4yg"; + }) ]; meta.description = "Xen's fork of upstream Qemu"; }; @@ -95,6 +99,10 @@ callPackage (import ./generic.nix (rec { name = "209-qemut"; sha256 = "1hq8ghfzw6c47pb5vf9ngxwgs8slhbbw6cq7gk0nam44rwvz743r"; }) + (xsaPatch { + name = "211-qemut-4.5"; + sha256 = "1z3phabvqmxv4b5923fx63hwdg4v1fnl15zbl88873ybqn0hp50f"; + }) ]; postPatch = '' substituteInPlace xen-hooks.mak \ @@ -218,10 +226,122 @@ callPackage (import ./generic.nix (rec { name = "204-4.5"; sha256 = "083z9pbdz3f532fnzg7n2d5wzv6rmqc0f4mvc3mnmkd0rzqw8vcp"; }) + (xsaPatch { + name = "206-4.5/0001-xenstored-apply-a-write-transaction-rate-limit"; + sha256 = "07vsm8mlbxh2s01ny2xywnm1bqhhxas1az31fzwb6f1g14vkzwm4"; + }) + (xsaPatch { + name = "206-4.5/0002-xenstored-Log-when-the-write-transaction-rate-limit-"; + sha256 = "17pnvxjmhny22abwwivacfig4vfsy5bqlki07z236whc2y7yzbsx"; + }) + (xsaPatch { + name = "206-4.5/0003-oxenstored-refactor-putting-response-on-wire"; + sha256 = "0xf566yicnisliy82cydb2s9k27l3bxc43qgmv6yr2ir3ixxlw5s"; + }) + (xsaPatch { + name = "206-4.5/0004-oxenstored-remove-some-unused-parameters"; + sha256 = "16cqx9i0w4w3x06qqdk9rbw4z96yhm0kbc32j40spfgxl82d1zlk"; + }) + (xsaPatch { + name = "206-4.5/0005-oxenstored-refactor-request-processing"; + sha256 = "1g2hzlv7w03sqnifbzda85mwlz3bw37rk80l248180sv3k7k6bgv"; + }) + (xsaPatch { + name = "206-4.5/0006-oxenstored-keep-track-of-each-transaction-s-operatio"; + sha256 = "0n65yfxvpfd4cz95dpbwqj3nablyzq5g7a0klvi2y9zybhch9cmg"; + }) + (xsaPatch { + name = "206-4.5/0007-oxenstored-move-functions-that-process-simple-operat"; + sha256 = "0qllvbc9rnj7jhhlslxxs35gvphvih0ywz52jszj4irm23ka5vnz"; + }) + (xsaPatch { + name = "206-4.5/0008-oxenstored-replay-transaction-upon-conflict"; + sha256 = "0lixkxjfzciy9l0f980cmkr8mcsx14c289kg0mn5w1cscg0hb46g"; + }) + (xsaPatch { + name = "206-4.5/0009-oxenstored-log-request-and-response-during-transacti"; + sha256 = "09ph8ddcx0k7rndd6hx6kszxh3fhxnvdjsq13p97n996xrpl1x7b"; + }) + (xsaPatch { + name = "206-4.5/0010-oxenstored-allow-compilation-prior-to-OCaml-3.12.0"; + sha256 = "1y0m7sqdz89z2vs4dfr45cyvxxas323rxar0xdvvvivgkgxawvxj"; + }) + (xsaPatch { + name = "206-4.5/0011-oxenstored-comments-explaining-some-variables"; + sha256 = "1d3n0y9syya4kaavrvqn01d3wsn85gmw7qrbylkclznqgkwdsr2p"; + }) + (xsaPatch { + name = "206-4.5/0012-oxenstored-handling-of-domain-conflict-credit"; + sha256 = "12zgid5y9vrhhpk2syxp0x01lzzr6447fa76n6rjmzi1xgdzpaf8"; + }) + (xsaPatch { + name = "206-4.5/0013-oxenstored-ignore-domains-with-no-conflict-credit"; + sha256 = "0v3g9pm60w6qi360hdqjcw838s0qcyywz9qpl8gzmhrg7a35avxl"; + }) + (xsaPatch { + name = "206-4.5/0014-oxenstored-add-transaction-info-relevant-to-history-"; + sha256 = "0vv3w0h5xh554i9v2vbc8gzm8wabjf2vzya3dyv5yzvly6ygv0sb"; + }) + (xsaPatch { + name = "206-4.5/0015-oxenstored-support-commit-history-tracking"; + sha256 = "1iv2vy29g437vj73x9p33rdcr5ln2q0kx1b3pgxq202ghbc1x1zj"; + }) + (xsaPatch { + name = "206-4.5/0016-oxenstored-only-record-operations-with-side-effects-"; + sha256 = "1cjkw5ganbg6lq78qsg0igjqvbgph3j349faxgk1p5d6nr492zzy"; + }) + (xsaPatch { + name = "206-4.5/0017-oxenstored-discard-old-commit-history-on-txn-end"; + sha256 = "0lm15lq77403qqwpwcqvxlzgirp6ffh301any9g401hs98f9y4ps"; + }) + (xsaPatch { + name = "206-4.5/0018-oxenstored-track-commit-history"; + sha256 = "1jh92p6vjhkm3bn5vz260npvsjji63g2imsxflxs4f3r69sz1nkd"; + }) + (xsaPatch { + name = "206-4.5/0019-oxenstored-blame-the-connection-that-caused-a-transa"; + sha256 = "17k264pk0fvsamj85578msgpx97mw63nmj0j9v5hbj4bgfazvj4h"; + }) + (xsaPatch { + name = "206-4.5/0020-oxenstored-allow-self-conflicts"; + sha256 = "15z3rd49q0pa72si0s8wjsy2zvbm613d0hjswp4ikc6nzsnsh4qy"; + }) + (xsaPatch { + name = "206-4.5/0021-oxenstored-do-not-commit-read-only-transactions"; + sha256 = "04wpzazhv90lg3228z5i6vnh1z4lzd08z0d0fvc4br6pkd0w4va8"; + }) + (xsaPatch { + name = "206-4.5/0022-oxenstored-don-t-wake-to-issue-no-conflict-credit"; + sha256 = "1shbrn0w68rlywcc633zcgykfccck1a77igmg8ydzwjsbwxsmsjy"; + }) + (xsaPatch { + name = "206-4.5/0023-oxenstored-transaction-conflicts-improve-logging"; + sha256 = "1086y268yh8047k1vxnxs2nhp6izp7lfmq01f1gq5n7jiy1sxcq7"; + }) + (xsaPatch { + name = "206-4.5/0024-oxenstored-trim-history-in-the-frequent_ops-function"; + sha256 = "014zs6i4gzrimn814k5i7gz66vbb0adkzr2qyai7i4fxc9h9r7w8"; + }) (xsaPatch { name = "207"; sha256 = "0wdlhijmw9mdj6a82pyw1rwwiz605dwzjc392zr3fpb2jklrvibc"; }) + (xsaPatch { + name = "212"; + sha256 = "1ggjbbym5irq534a3zc86md9jg8imlpc9wx8xsadb9akgjrr1r8d"; + }) + (xsaPatch { + name = "213-4.5"; + sha256 = "1vnqf89ydacr5bq3d6z2r33xb2sn5vsd934rncyc28ybc9rvj6wm"; + }) + (xsaPatch { + name = "214"; + sha256 = "0qapzx63z0yl84phnpnglpkxp6b9sy1y7cilhwjhxyigpfnm2rrk"; + }) + (xsaPatch { + name = "215"; + sha256 = "0sv8ccc5xp09f1w1gj5a9n3mlsdsh96sdb1n560vh31f4kkd61xs"; + }) ]; # Fix build on Glibc 2.24. From 97f3009bf86c4db9188e7e6f6443e9ce7bf165b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 9 Jun 2017 15:20:41 +0200 Subject: [PATCH 41/59] pycairo: fix #26475 - a dead patch download --- pkgs/development/python-modules/pycairo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycairo/default.nix b/pkgs/development/python-modules/pycairo/default.nix index c1ca9d4c02c..dc6d55ea1de 100644 --- a/pkgs/development/python-modules/pycairo/default.nix +++ b/pkgs/development/python-modules/pycairo/default.nix @@ -3,7 +3,7 @@ if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else let patch_waf = fetchpatch { - url = http://www.linuxfromscratch.org/patches/blfs/svn/pycairo-1.10.0-waf_python_3_4-1.patch; + url = http://www.linuxfromscratch.org/patches/blfs/8.0/pycairo-1.10.0-waf_python_3_4-1.patch; sha256 = "0xfl1i9dips2nykyg91f5h5r3xpk2hp1js1gq5z0hwjr0in55id4"; }; patch_waf-py3_5 = ./waf-py3_5.patch; From 762aa2b819a856b2c99f7319a75726a8aef11d98 Mon Sep 17 00:00:00 2001 From: Simon Lackerbauer Date: Fri, 9 Jun 2017 16:31:36 +0200 Subject: [PATCH 42/59] lbreakout2: init at 2.6.5 --- pkgs/games/lbreakout2/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix index 68af5bf5857..e2994d89e35 100644 --- a/pkgs/games/lbreakout2/default.nix +++ b/pkgs/games/lbreakout2/default.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, gcc }: +{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }: stdenv.mkDerivation rec { name = "lbreakout2-${version}"; version = "2.6.5"; - buildInputs = [ SDL SDL_mixer zlib libpng gcc ]; + buildInputs = [ SDL SDL_mixer zlib libpng ]; src = fetchurl { - url = "http://downloads.sourceforge.net/lgames/${name}.tar.gz"; + url = "mirror://sourceforge/lgames/${name}.tar.gz"; sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; }; From 55ca2cf495174dc490d702ded2b48187e32091d4 Mon Sep 17 00:00:00 2001 From: ikervagyok Date: Fri, 9 Jun 2017 18:07:31 +0200 Subject: [PATCH 43/59] minecraft-server: 1.11.2 -> 1.12 (#26458) --- pkgs/games/minecraft-server/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/minecraft-server/default.nix b/pkgs/games/minecraft-server/default.nix index fd944bb7611..1e8ec2b8a6a 100644 --- a/pkgs/games/minecraft-server/default.nix +++ b/pkgs/games/minecraft-server/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "minecraft-server-${version}"; - version = "1.11.2"; + version = "1.12"; src = fetchurl { url = "http://s3.amazonaws.com/Minecraft.Download/versions/${version}/minecraft_server.${version}.jar"; - sha256 = "12nqcj6skwjfcywm3ah4jb1qn4r558ng9cchdc3hbz99nhv7vi6y"; + sha256 = "02fwlg4c9kqckmdi9wxi64jdqynj5myp0995aabc07746hwgzszy"; }; preferLocalBuild = true; From b615c2e9929e840e95408b511db7f03dbdd71143 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 9 Jun 2017 18:38:20 +0200 Subject: [PATCH 44/59] android-studio: 2.3.2.0 -> 2.3.3.0 --- pkgs/applications/editors/android-studio/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index d54c0168704..0ba89099eb3 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -33,8 +33,8 @@ let - version = "2.3.2.0"; - build = "162.3934792"; + version = "2.3.3.0"; + build = "162.4069837"; androidStudio = stdenv.mkDerivation { name = "android-studio"; @@ -98,13 +98,14 @@ let ''; src = fetchurl { url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip"; - sha256 = "19wmbvmiqa9znvnslmp0xmkq4avpmgpzmyaai1fa28388qra4cvf"; + sha256 = "0zzis9m2xp44xwkj0zvcqw5rh3iyd3finyi5nqhgira1fkacz0qk"; }; - meta = { + meta = with stdenv.lib; { description = "The Official IDE for Android"; homepage = https://developer.android.com/studio/index.html; - license = stdenv.lib.licenses.asl20; + license = licenses.asl20; platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ primeos ]; }; }; From 7d87d234d390ef2c90027f01fe89a77ce66cf02f Mon Sep 17 00:00:00 2001 From: Simon Lackerbauer Date: Fri, 9 Jun 2017 19:23:40 +0200 Subject: [PATCH 45/59] lbreakout2: init at 2.6.5 --- pkgs/games/lbreakout2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix index e2994d89e35..363b133243b 100644 --- a/pkgs/games/lbreakout2/default.nix +++ b/pkgs/games/lbreakout2/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "Breakout clone from the LGames series"; homepage = http://lgames.sourceforge.net/LBreakout2/; - license = licenses.gpl; + license = licenses.gpl2; maintainers = [ maintainers.ciil ]; platforms = platforms.linux; }; From 7a0e958b972f61b23f93a8e39fee5590aec47348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 7 Jun 2017 21:38:01 +0200 Subject: [PATCH 46/59] nixos/acme: support "full.pem" (for lighttpd) * Create "full.pem" from selfsigned certificate * Tell simp_le to create "full.pem" * Inject service dependency between lighttpd and the generation of certificates Side note: According to the internet these servers also use the "full.pem" format: pound, ejabberd, pure-ftpd. --- nixos/modules/security/acme.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix index 321b9f7f375..dba858c00e0 100644 --- a/nixos/modules/security/acme.nix +++ b/nixos/modules/security/acme.nix @@ -65,11 +65,12 @@ let "cert.der" "cert.pem" "chain.pem" "external.sh" "fullchain.pem" "full.pem" "key.der" "key.pem" "account_key.json" ]); - default = [ "fullchain.pem" "key.pem" "account_key.json" ]; + default = [ "fullchain.pem" "full.pem" "key.pem" "account_key.json" ]; description = '' Plugins to enable. With default settings simp_le will - store public certificate bundle in fullchain.pem - and private key in key.pem in its state directory. + store public certificate bundle in fullchain.pem, + private key in key.pem and those two previous + files combined in full.pem in its state directory. ''; }; @@ -238,6 +239,9 @@ in mv $workdir/server.key ${cpath}/key.pem mv $workdir/server.crt ${cpath}/fullchain.pem + # Create full.pem for e.g. lighttpd (same format as "simp_le ... -f full.pem" creates) + cat "${cpath}/key.pem" "${cpath}/fullchain.pem" > "${cpath}/full.pem" + # Clean up working directory rm $workdir/server.csr rm $workdir/server.pass.key @@ -247,6 +251,8 @@ in chown '${data.user}:${data.group}' '${cpath}/key.pem' chmod ${rights} '${cpath}/fullchain.pem' chown '${data.user}:${data.group}' '${cpath}/fullchain.pem' + chmod ${rights} '${cpath}/full.pem' + chown '${data.user}:${data.group}' '${cpath}/full.pem' ''; serviceConfig = { Type = "oneshot"; @@ -275,15 +281,14 @@ in ) ); servicesAttr = listToAttrs services; - nginxAttr = { - nginx = { - after = [ "acme-selfsigned-certificates.target" ]; - wants = [ "acme-selfsigned-certificates.target" "acme-certificates.target" ]; - }; + injectServiceDep = { + after = [ "acme-selfsigned-certificates.target" ]; + wants = [ "acme-selfsigned-certificates.target" "acme-certificates.target" ]; }; in servicesAttr // - (if config.services.nginx.enable then nginxAttr else {}); + (if config.services.nginx.enable then { nginx = injectServiceDep; } else {}) // + (if config.services.lighttpd.enable then { lighttpd = injectServiceDep; } else {}); systemd.timers = flip mapAttrs' cfg.certs (cert: data: nameValuePair ("acme-${cert}") From 6a55fda61e899092a7c73b6b004783bbf1a73773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Thu, 8 Jun 2017 08:46:40 +0200 Subject: [PATCH 47/59] nixos/acme: improve documentation * Use literalExample for better readability * Clarify a bit wrt. 'webroot' and 'allowKeysForGroup' --- nixos/modules/security/acme.nix | 41 +++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix index dba858c00e0..a40c5ef9ebe 100644 --- a/nixos/modules/security/acme.nix +++ b/nixos/modules/security/acme.nix @@ -13,7 +13,7 @@ let description = '' Where the webroot of the HTTP vhost is located. .well-known/acme-challenge/ directory - will be created automatically if it doesn't exist. + will be created below the webroot if it doesn't exist. http://example.org/.well-known/acme-challenge/ must also be available (notice unencrypted HTTP). ''; @@ -46,7 +46,10 @@ let allowKeysForGroup = mkOption { type = types.bool; default = false; - description = "Give read permissions to the specified group to read SSL private certificates."; + description = '' + Give read permissions to the specified group + () to read SSL private certificates. + ''; }; postRun = mkOption { @@ -77,10 +80,12 @@ let extraDomains = mkOption { type = types.attrsOf (types.nullOr types.str); default = {}; - example = { - "example.org" = "/srv/http/nginx"; - "mydomain.org" = null; - }; + example = literalExample '' + { + "example.org" = "/srv/http/nginx"; + "mydomain.org" = null; + } + ''; description = '' Extra domain names for which certificates are to be issued, with their own server roots if needed. @@ -140,17 +145,19 @@ in description = '' Attribute set of certificates to get signed and renewed. ''; - example = { - "example.com" = { - webroot = "/var/www/challenges/"; - email = "foo@example.com"; - extraDomains = { "www.example.com" = null; "foo.example.com" = "/var/www/foo/"; }; - }; - "bar.example.com" = { - webroot = "/var/www/challenges/"; - email = "bar@example.com"; - }; - }; + example = literalExample '' + { + "example.com" = { + webroot = "/var/www/challenges/"; + email = "foo@example.com"; + extraDomains = { "www.example.com" = null; "foo.example.com" = "/var/www/foo/"; }; + }; + "bar.example.com" = { + webroot = "/var/www/challenges/"; + email = "bar@example.com"; + }; + } + ''; }; }; }; From a6dc11e81e2cf26c0c309d90a6d2d4ee2baf0b34 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Fri, 9 Jun 2017 19:54:39 +0200 Subject: [PATCH 48/59] tmux: fix hash, looks like the upstream tag was moved --- a/configure.ac 1970-01-01 01:00:01.000000000 +0100 +++ b/configure.ac 1970-01-01 01:00:01.000000000 +0100 @@ -1,6 +1,6 @@ # configure.ac -AC_INIT(tmux, 2.5-rc) +AC_INIT(tmux, 2.5) AC_PREREQ([2.60]) AC_CONFIG_AUX_DIR(etc) --- pkgs/tools/misc/tmux/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/tmux/default.nix b/pkgs/tools/misc/tmux/default.nix index ac564de0ea6..a749f250c11 100644 --- a/pkgs/tools/misc/tmux/default.nix +++ b/pkgs/tools/misc/tmux/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { owner = "tmux"; repo = "tmux"; rev = version; - sha256 = "0h0c6rwp4bjifqx9wpx7y0bmayvrvvgh9211rdk4nsf81j17n6vx"; + sha256 = "0zwjngfaqrlwwbzicc5pq5pyws8f1qghcajvj0hwkipj51hqyswf"; }; nativeBuildInputs = [ pkgconfig autoreconfHook ]; From a66a9ae8e8ef037265cbc7a20ee6df15e8fc5409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Fri, 9 Jun 2017 20:40:12 +0200 Subject: [PATCH 49/59] kodi-retroarch-advanced-launchers: ensure sound has been released --- .../misc/emulators/retroarch/kodi-advanced-launchers.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix b/pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix index 38b8e27db7d..6b708cccc8f 100644 --- a/pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix +++ b/pkgs/misc/emulators/retroarch/kodi-advanced-launchers.nix @@ -8,8 +8,9 @@ let script = exec: '' #!${stdenv.shell} - nohup sh -c "sleep 1 && pkill -SIGSTOP kodi" & - nohup sh -c "${exec} '$@' -f;pkill -SIGCONT kodi" + nohup sh -c "pkill -SIGTSTP kodi" & + # https://forum.kodi.tv/showthread.php?tid=185074&pid=1622750#pid1622750 + nohup sh -c "sleep 10 && ${exec} '$@' -f;pkill -SIGCONT kodi" ''; scriptSh = exec: pkgs.writeScript ("kodi-"+exec.name) (script exec.path); execs = map (core: rec { name = core.core; path = core+"/bin/retroarch-"+name;}) cores; @@ -31,8 +32,8 @@ stdenv.mkDerivation rec { description = "Kodi retroarch advanced launchers"; longDescription = '' These retroarch launchers are intended to be used with - anglescry advanced launcher for Kodi since device input is - caught by both Kodi and the retroarch process. + advanced (emulation) launcher for Kodi since device input is + otherwise caught by both Kodi and the retroarch process. ''; license = stdenv.lib.licenses.gpl3; }; From d12497a23bf6d97c09631f50bc4712dffd37269f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 9 Jun 2017 21:57:35 +0200 Subject: [PATCH 50/59] pycairo: fix #26475 - another dead patch download --- pkgs/development/python-modules/pycairo/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycairo/default.nix b/pkgs/development/python-modules/pycairo/default.nix index dc6d55ea1de..284736fd475 100644 --- a/pkgs/development/python-modules/pycairo/default.nix +++ b/pkgs/development/python-modules/pycairo/default.nix @@ -26,7 +26,7 @@ in buildPythonPackage rec { patches = [ (fetchpatch { - url = http://www.linuxfromscratch.org/patches/blfs/svn/pycairo-1.10.0-waf_unpack-1.patch; + url = http://www.linuxfromscratch.org/patches/blfs/8.0/pycairo-1.10.0-waf_unpack-1.patch; sha256 = "1bmrhq2nmhx4l5glvyi59r0hc7w5m56kz41frx7v3dcp8f91p7xd"; }) ]; From c0e14c084dd6205304c78cf9a081fdbf15565d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 9 Jun 2017 21:44:34 +0100 Subject: [PATCH 51/59] metasploit: add missing update deps to shell.nix --- pkgs/tools/security/metasploit/shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/metasploit/shell.nix b/pkgs/tools/security/metasploit/shell.nix index 7d1b66ba419..cd7a01214c6 100644 --- a/pkgs/tools/security/metasploit/shell.nix +++ b/pkgs/tools/security/metasploit/shell.nix @@ -3,6 +3,8 @@ with import {}; stdenv.mkDerivation { name = "env"; buildInputs = [ + ruby.devEnv + git sqlite libpcap postgresql From c1135333d14642c85deffeb7c4d49775c7e6d8d7 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 9 Jun 2017 23:09:22 +0200 Subject: [PATCH 52/59] metasploit: 4.14.17 -> 4.14.25 --- pkgs/tools/security/metasploit/Gemfile | 2 +- pkgs/tools/security/metasploit/Gemfile.lock | 35 +++++++------ pkgs/tools/security/metasploit/default.nix | 6 +-- pkgs/tools/security/metasploit/gemset.nix | 56 ++++++++++++--------- 4 files changed, 55 insertions(+), 44 deletions(-) diff --git a/pkgs/tools/security/metasploit/Gemfile b/pkgs/tools/security/metasploit/Gemfile index 52987d4bf8c..de44760bde7 100644 --- a/pkgs/tools/security/metasploit/Gemfile +++ b/pkgs/tools/security/metasploit/Gemfile @@ -1,4 +1,4 @@ # frozen_string_literal: true source "https://rubygems.org" -gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/4.14.17" +gem "metasploit-framework", git: "https://github.com/rapid7/metasploit-framework", ref: "refs/tags/4.14.25" diff --git a/pkgs/tools/security/metasploit/Gemfile.lock b/pkgs/tools/security/metasploit/Gemfile.lock index f19dc8b068e..d3a88a50aec 100644 --- a/pkgs/tools/security/metasploit/Gemfile.lock +++ b/pkgs/tools/security/metasploit/Gemfile.lock @@ -1,12 +1,13 @@ GIT remote: https://github.com/rapid7/metasploit-framework - revision: fd3da8f3350d6cf7f0449bf0ead4d51747525c0a - ref: refs/tags/4.14.17 + revision: 8a194207f07c2b8c91c1a72e57c25683d4e9f744 + ref: refs/tags/4.14.25 specs: - metasploit-framework (4.14.17) + metasploit-framework (4.14.25) actionpack (~> 4.2.6) activerecord (~> 4.2.6) activesupport (~> 4.2.6) + backports bcrypt bit-struct filesize @@ -16,7 +17,7 @@ GIT metasploit-concern metasploit-credential metasploit-model - metasploit-payloads (= 1.2.29) + metasploit-payloads (= 1.2.32) metasploit_data_models metasploit_payloads-mettle (= 0.1.9) msgpack @@ -36,7 +37,7 @@ GIT rb-readline recog redcarpet - rex-arch (= 0.1.4) + rex-arch rex-bin_tools rex-core rex-encoder @@ -96,8 +97,9 @@ GEM addressable (2.5.1) public_suffix (~> 2.0, >= 2.0.2) arel (6.0.4) - arel-helpers (2.3.0) + arel-helpers (2.4.0) activerecord (>= 3.1.0, < 6) + backports (3.8.0) bcrypt (3.1.11) bindata (2.4.0) bit-struct (0.16) @@ -106,7 +108,7 @@ GEM faraday (0.12.1) multipart-post (>= 1.2, < 3) filesize (0.1.1) - i18n (0.8.1) + i18n (0.8.4) jsobfu (0.4.2) rkelly-remix json (2.1.0) @@ -117,19 +119,20 @@ GEM activemodel (~> 4.2.6) activesupport (~> 4.2.6) railties (~> 4.2.6) - metasploit-credential (2.0.9) + metasploit-credential (2.0.10) metasploit-concern metasploit-model metasploit_data_models pg railties + rex-socket rubyntlm rubyzip metasploit-model (2.0.4) activemodel (~> 4.2.6) activesupport (~> 4.2.6) railties (~> 4.2.6) - metasploit-payloads (1.2.29) + metasploit-payloads (1.2.32) metasploit_data_models (2.0.14) activerecord (~> 4.2.6) activesupport (~> 4.2.6) @@ -141,7 +144,7 @@ GEM railties (~> 4.2.6) recog (~> 2.0) metasploit_payloads-mettle (0.1.9) - mini_portile2 (2.1.0) + mini_portile2 (2.2.0) minitest (5.10.2) msgpack (1.1.0) multipart-post (2.0.0) @@ -149,8 +152,8 @@ GEM net-ssh (4.1.0) network_interface (0.0.1) nexpose (6.0.0) - nokogiri (1.7.2) - mini_portile2 (~> 2.1.0) + nokogiri (1.8.0) + mini_portile2 (~> 2.2.0) octokit (4.7.0) sawyer (~> 0.8.0, >= 0.5.3) openssl-ccm (1.2.1) @@ -166,7 +169,7 @@ GEM arel (>= 4.0.1) pg_array_parser (~> 0.0.9) public_suffix (2.0.5) - rack (1.6.6) + rack (1.6.8) rack-test (0.6.3) rack (>= 1.0) rails-deprecated_sanitizer (1.0.3) @@ -184,10 +187,10 @@ GEM thor (>= 0.18.1, < 2.0) rake (12.0.0) rb-readline (0.5.4) - recog (2.1.6) + recog (2.1.8) nokogiri redcarpet (3.4.0) - rex-arch (0.1.4) + rex-arch (0.1.8) rex-text rex-bin_tools (0.1.3) metasm @@ -234,7 +237,7 @@ GEM rex-text rkelly-remix (0.0.7) robots (0.10.1) - ruby_smb (0.0.12) + ruby_smb (0.0.18) bindata rubyntlm windows_error diff --git a/pkgs/tools/security/metasploit/default.nix b/pkgs/tools/security/metasploit/default.nix index 5e21996caac..4cc287c40f2 100644 --- a/pkgs/tools/security/metasploit/default.nix +++ b/pkgs/tools/security/metasploit/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, makeWrapper, ruby, bundlerEnv, ncurses }: +{ stdenv, fetchFromGitHub, makeWrapper, ruby, bundlerEnv }: # Maintainer notes for updating: # 1. increment version number in expression and in Gemfile @@ -13,13 +13,13 @@ let }; in stdenv.mkDerivation rec { name = "metasploit-framework-${version}"; - version = "4.14.17"; + version = "4.14.25"; src = fetchFromGitHub { owner = "rapid7"; repo = "metasploit-framework"; rev = version; - sha256 = "0g666lxin9f0v9vhfh3s913ym8fnh32rpfl1rpj8d8n1azch5fn0"; + sha256 = "0cp1ybq29a0r7kabg4p2yj0qm90hjvr4xxp0pynb2g406sbyycjm"; }; buildInputs = [ makeWrapper ]; diff --git a/pkgs/tools/security/metasploit/gemset.nix b/pkgs/tools/security/metasploit/gemset.nix index f4e4b91fcd9..ff3e4d5d832 100644 --- a/pkgs/tools/security/metasploit/gemset.nix +++ b/pkgs/tools/security/metasploit/gemset.nix @@ -58,10 +58,18 @@ arel-helpers = { source = { remotes = ["https://rubygems.org"]; - sha256 = "0k8hqa2505b2s3w6gajh2lvi2mn832yqldiy2z4c55phzkmr08sr"; + sha256 = "1sx4qbzhld3a99175p2krz3hv1npc42rv3sd8x4awzkgplg3zy9c"; type = "gem"; }; - version = "2.3.0"; + version = "2.4.0"; + }; + backports = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "17pcz0z6jms5jydr1r95kf1bpk3ms618hgr26c62h34icy9i1dpm"; + type = "gem"; + }; + version = "3.8.0"; }; bcrypt = { source = { @@ -122,10 +130,10 @@ i18n = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1s6971zmjxszdrp59vybns9gzxpdxzdklakc5lp8nl4fx5kpxkbp"; + sha256 = "1j491wrfzham4nk8q4bifah3lx7nr8wp9ahfb7vd3hxn71v7kic7"; type = "gem"; }; - version = "0.8.1"; + version = "0.8.4"; }; jsobfu = { source = { @@ -170,20 +178,20 @@ metasploit-credential = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1y36f1f4nw0imhfbckl213ah7qgfldrkv2fpv2acslb6iqiaa3gk"; + sha256 = "1zblyy2yv31zap6dzf3lpkhvnafkwbzdvr6nsqmyh95ci8yy1q6r"; type = "gem"; }; - version = "2.0.9"; + version = "2.0.10"; }; metasploit-framework = { source = { fetchSubmodules = false; - rev = "fd3da8f3350d6cf7f0449bf0ead4d51747525c0a"; - sha256 = "1r04drq34qfbhmhp0mqnm13vrycr7dcq670zk8xqiif5rhbij6qv"; + rev = "8a194207f07c2b8c91c1a72e57c25683d4e9f744"; + sha256 = "0q7iv9wd65ji1cay6am4dskrlibvp3wyn66gvld8p1nfnnvn5vmq"; type = "git"; url = "https://github.com/rapid7/metasploit-framework"; }; - version = "4.14.17"; + version = "4.14.25"; }; metasploit-model = { source = { @@ -196,10 +204,10 @@ metasploit-payloads = { source = { remotes = ["https://rubygems.org"]; - sha256 = "0c6wvnxgwdiryz5skzrp2wcfbxp57icaclckjcaxlw63v09wgjii"; + sha256 = "1dqnyzp60da6f8kgnbpjmv5xsg1hvyyd2jkkzbh69sgwp4nw3i9g"; type = "gem"; }; - version = "1.2.29"; + version = "1.2.32"; }; metasploit_data_models = { source = { @@ -220,10 +228,10 @@ mini_portile2 = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1y25adxb1hgg1wb2rn20g3vl07qziq6fz364jc5694611zz863hb"; + sha256 = "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"; type = "gem"; }; - version = "2.1.0"; + version = "2.2.0"; }; minitest = { source = { @@ -284,10 +292,10 @@ nokogiri = { source = { remotes = ["https://rubygems.org"]; - sha256 = "0jd8q3pr5rkrxx1vklvhcqcgl8kmfv5c8ny36ni3z5mirw6cm70c"; + sha256 = "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"; type = "gem"; }; - version = "1.7.2"; + version = "1.8.0"; }; octokit = { source = { @@ -372,10 +380,10 @@ rack = { source = { remotes = ["https://rubygems.org"]; - sha256 = "073d6rjgqfb4xjhbshyrflqgbdvxqvx4b907j2d4mi5qgbv8y2ax"; + sha256 = "19m7aixb2ri7p1n0iqaqx8ldi97xdhvbxijbyrrcdcl6fv5prqza"; type = "gem"; }; - version = "1.6.6"; + version = "1.6.8"; }; rack-test = { source = { @@ -436,10 +444,10 @@ recog = { source = { remotes = ["https://rubygems.org"]; - sha256 = "08ypzrn40jbjbzwdbbjkcqdm74zlsc0yr2iqs0yn479fa5k8ajw4"; + sha256 = "0d12889rx9ylm0jybg9n5sqx0v413hy9zjqs9rd9qjd1kjva7y87"; type = "gem"; }; - version = "2.1.6"; + version = "2.1.8"; }; redcarpet = { source = { @@ -452,10 +460,10 @@ rex-arch = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1y2mzv6wkqgclxl1x65mdq4d0lcgbbny4r1v24c16gi4jg9nsnc1"; + sha256 = "13dyic499iblhddmy7w01ajr5l5rm6szagy6vz7sx138y21d1y6f"; type = "gem"; }; - version = "0.1.4"; + version = "0.1.8"; }; rex-bin_tools = { source = { @@ -612,10 +620,10 @@ ruby_smb = { source = { remotes = ["https://rubygems.org"]; - sha256 = "1v2acyx6csndb08sidb1pbixn2dlx9s75cpnjv4riwj0qlp8blli"; + sha256 = "1jby5wlppxhc2jlqldic05aqd5l57171lsxqv86702grk665n612"; type = "gem"; }; - version = "0.0.12"; + version = "0.0.18"; }; rubyntlm = { source = { @@ -705,4 +713,4 @@ }; version = "0.3.0"; }; -} +} \ No newline at end of file From 0cab4cac1271e74dae32cf8ae34e98ee2d9b80c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 9 Jun 2017 21:44:34 +0100 Subject: [PATCH 53/59] metasploit: add missing update deps to shell.nix --- pkgs/tools/security/metasploit/shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/security/metasploit/shell.nix b/pkgs/tools/security/metasploit/shell.nix index 7d1b66ba419..cd7a01214c6 100644 --- a/pkgs/tools/security/metasploit/shell.nix +++ b/pkgs/tools/security/metasploit/shell.nix @@ -3,6 +3,8 @@ with import {}; stdenv.mkDerivation { name = "env"; buildInputs = [ + ruby.devEnv + git sqlite libpcap postgresql From 95f733e0aac09aae00f0c9f87acf511c0d02b46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 9 Jun 2017 22:37:36 +0100 Subject: [PATCH 54/59] bundix: 2.1.0 -> 2.2.0 --- pkgs/development/ruby-modules/bundix/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ruby-modules/bundix/default.nix b/pkgs/development/ruby-modules/bundix/default.nix index 42d6ee04b59..919b4b00319 100644 --- a/pkgs/development/ruby-modules/bundix/default.nix +++ b/pkgs/development/ruby-modules/bundix/default.nix @@ -1,13 +1,18 @@ -{ buildRubyGem, lib, bundler, ruby, nix, nix-prefetch-git }: +{ buildRubyGem, fetchFromGitHub, lib, bundler, ruby, nix, nix-prefetch-git }: buildRubyGem rec { inherit ruby; name = "${gemName}-${version}"; gemName = "bundix"; - version = "2.1.0"; + version = "2.2.0"; - sha256 = "5a073c59dfc7e2367c47e6513fc8914d27e11c08f82bc1103c4793dfb2837bef"; + src = fetchFromGitHub { + owner = "manveru"; + repo = "bundix"; + rev = version; + sha256 = "0lnzkwxprdz73axk54y5p5xkw56n3lra9v2dsvqjfw0ab66ld0iy"; + }; buildInputs = [bundler]; From c2c775d047fdbeefd9db7bfcd519636498c6679d Mon Sep 17 00:00:00 2001 From: Masayuki Takeda Date: Sat, 10 Jun 2017 08:29:36 +0900 Subject: [PATCH 55/59] rictydiminished-with-firacode: init at 0.0.1 (#26485) --- .../rictydiminished-with-firacode/default.nix | 39 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/data/fonts/rictydiminished-with-firacode/default.nix diff --git a/pkgs/data/fonts/rictydiminished-with-firacode/default.nix b/pkgs/data/fonts/rictydiminished-with-firacode/default.nix new file mode 100644 index 00000000000..074fceeac94 --- /dev/null +++ b/pkgs/data/fonts/rictydiminished-with-firacode/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchgit, fontforge, pythonFull }: + +stdenv.mkDerivation rec { + name = "rictydiminished-with-firacode-${version}"; + version = "0.0.1"; + src = fetchgit { + url = "https://github.com/hakatashi/RictyDiminished-with-FiraCode.git"; + rev = "refs/tags/${version}"; + sha256 = "12lhb0k4d8p4lzw9k6hlsxpfpc15zfshz1h5cbaa88sb8n5jh360"; + fetchSubmodules = true; + }; + + buildPhase = '' + make + ''; + + installPhase = '' + mkdir -p $out/share/fonts/rictydiminished-with-firacode + cp *.ttf $out/share/fonts/rictydiminished-with-firacode + ''; + + nativeBuildInputs = [ + fontforge + (pythonFull.withPackages (ps: [ + ps.jinja2 + ps."3to2" + ps.fonttools + ])) + ]; + + meta = with stdenv.lib; { + homepage = https://github.com/hakatashi/RictyDiminished-with-FiraCode; + description = "The best Japanese programming font meets the awesone ligatures of Firacode"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ mt-caret ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e2af723792f..c8cd658e88f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12947,6 +12947,8 @@ with pkgs; raleway = callPackage ../data/fonts/raleway { }; + rictydiminished-with-firacode = callPackage ../data/fonts/rictydiminished-with-firacode { }; + roboto = callPackage ../data/fonts/roboto { }; roboto-mono = callPackage ../data/fonts/roboto-mono { }; From fb26e5c8b68b46d978dc70dc5c86a16bbe40a2ff Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 10 Jun 2017 02:25:55 +0200 Subject: [PATCH 56/59] androidenv: Update all packages using fetch.sh Platforms: - Update platform_25 (r02 -> r03) - Add platform_26 Sources: - Add source_25 --- pkgs/development/mobile/androidenv/addon.xml | 118 ++++--- .../mobile/androidenv/generate-platforms.xsl | 2 +- .../mobile/androidenv/platforms-linux.nix | 16 +- .../mobile/androidenv/platforms-macosx.nix | 16 +- .../mobile/androidenv/repository-11.xml | 314 ++++++++++++++---- .../development/mobile/androidenv/sources.nix | 11 + .../development/mobile/androidenv/sys-img.xml | 38 +-- 7 files changed, 373 insertions(+), 142 deletions(-) diff --git a/pkgs/development/mobile/androidenv/addon.xml b/pkgs/development/mobile/androidenv/addon.xml index 538b7622df7..d9b47826648 100644 --- a/pkgs/development/mobile/androidenv/addon.xml +++ b/pkgs/development/mobile/androidenv/addon.xml @@ -1,6 +1,6 @@ - + Terms and Conditions This is the Android Software Development Kit License Agreement @@ -1118,6 +1118,39 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS& + + + 1 + + + + 154871 + 550e83eea9513ab11c44919ac6da54b36084a9f3 + google_apis-25_r1.zip + + + + google + Google Inc. + google_apis + Google APIs + 23 + Android + Google APIs + + + com.google.android.maps + API for Google Maps + + + com.android.future.usb.accessory + API for USB Accessories + + + com.google.android.media.effects + Collection of video effects + + + 1 @@ -1262,18 +1295,18 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS& - + - 40 + 47 0 0 - - 305545706 - 782e7233f18c890463e8602571d304e680ce354c - android_m2repository_r40.zip + + 355529608 + a0d22beacc106a6977321f2b07d692ce4979e96a + android_m2repository_r47.zip @@ -1284,40 +1317,16 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS& m2repository - - + - 23 - 2 - 1 + 53 - - 10850402 - 41121bbc412c2fce0be170d589d20cfa3e78e857 - support_r23.2.1.zip - - - - android - Android - - Android Support Library - support - compatibility - - - - - 40 - - - - - 152633821 - 0f599f7f35fba49b9277ef9e1394c5c82d8bd369 - google_m2repository_gms_v8_rc42_wear_2a3.zip + + 194148491 + 9008082eb1e6ff5a78d32a1fed6915f266fc5013 + google_m2repository_gms_v11_1_rc16_wear_2_0_3_rc1.zip @@ -1392,16 +1401,16 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS& google_play_services_froyo - + - 38 + 41 - - 12351978 - 7a50dec81ba9c9b51d7778c19ca05002498209e8 - google_play_services_v8_rc41.zip + + 13165315 + 55be81c50041f6a8f62947418f74f683369c971f + google_play_services_v11_rc16.zip @@ -1601,4 +1610,27 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS& Android Auto Desktop Head Unit emulator auto + + + + 1 + 0 + 0 + + + + + 450468876 + 50074a0f0312ee1d0d81d2cddc3d84a8a9e97a53 + aiasdk-1.0.0.zip + + + + google + Google Inc. + Android Instant Apps Development SDK + https://developer.android.com/topic/instant-apps/index.html + Instant Apps Development SDK + instantapps + diff --git a/pkgs/development/mobile/androidenv/generate-platforms.xsl b/pkgs/development/mobile/androidenv/generate-platforms.xsl index d195511cdb3..54a165d21e4 100644 --- a/pkgs/development/mobile/androidenv/generate-platforms.xsl +++ b/pkgs/development/mobile/androidenv/generate-platforms.xsl @@ -45,7 +45,7 @@ in }; meta = { description = ""; - url = ; + homepage = ; }; }; diff --git a/pkgs/development/mobile/androidenv/platforms-linux.nix b/pkgs/development/mobile/androidenv/platforms-linux.nix index bdf3f545480..1caa6cebb14 100644 --- a/pkgs/development/mobile/androidenv/platforms-linux.nix +++ b/pkgs/development/mobile/androidenv/platforms-linux.nix @@ -295,8 +295,8 @@ in platform_25 = buildPlatform { name = "android-platform-7.1.1"; src = fetchurl { - url = https://dl.google.com/android/repository/platform-25_r02.zip; - sha1 = "6057e54a04f1d141f36a2c8d20f2962b41a3183f"; + url = https://dl.google.com/android/repository/platform-25_r03.zip; + sha1 = "00c2c5765e8988504be10a1eb66ed71fcdbd7fe8"; }; meta = { description = "Android SDK Platform 25"; @@ -304,4 +304,16 @@ in }; }; + platform_26 = buildPlatform { + name = "android-platform-8.0.0"; + src = fetchurl { + url = https://dl.google.com/android/repository/platform-26_r01.zip; + sha1 = "33a4f9788bfd7123e712906b2d7e5d54a729e14a"; + }; + meta = { + description = "Android SDK Platform 26"; + homepage = http://developer.android.com/sdk/; + }; + }; + } diff --git a/pkgs/development/mobile/androidenv/platforms-macosx.nix b/pkgs/development/mobile/androidenv/platforms-macosx.nix index 7bcc5f40769..a4903cd0d40 100644 --- a/pkgs/development/mobile/androidenv/platforms-macosx.nix +++ b/pkgs/development/mobile/androidenv/platforms-macosx.nix @@ -295,8 +295,8 @@ in platform_25 = buildPlatform { name = "android-platform-7.1.1"; src = fetchurl { - url = https://dl.google.com/android/repository/platform-25_r02.zip; - sha1 = "6057e54a04f1d141f36a2c8d20f2962b41a3183f"; + url = https://dl.google.com/android/repository/platform-25_r03.zip; + sha1 = "00c2c5765e8988504be10a1eb66ed71fcdbd7fe8"; }; meta = { description = "Android SDK Platform 25"; @@ -304,4 +304,16 @@ in }; }; + platform_26 = buildPlatform { + name = "android-platform-8.0.0"; + src = fetchurl { + url = https://dl.google.com/android/repository/platform-26_r01.zip; + sha1 = "33a4f9788bfd7123e712906b2d7e5d54a729e14a"; + }; + meta = { + description = "Android SDK Platform 26"; + homepage = http://developer.android.com/sdk/; + }; + }; + } diff --git a/pkgs/development/mobile/androidenv/repository-11.xml b/pkgs/development/mobile/androidenv/repository-11.xml index e115f674790..9f46af93a88 100644 --- a/pkgs/development/mobile/androidenv/repository-11.xml +++ b/pkgs/development/mobile/androidenv/repository-11.xml @@ -15,7 +15,7 @@ * limitations under the License. --> - + Terms and Conditions This is the Android Software Development Kit License Agreement @@ -296,39 +296,39 @@ This is the Android SDK Preview License Agreement (the "License Agreement&q June 2014. - + NDK - 13 + 15 - - 665967997 - 71fe653a7bf5db08c3af154735b6ccbc12f0add5 - android-ndk-r13b-darwin-x86_64.zip + + 959176682 + 9dd0ff18d177ec75797b021a3ebd294362e8a41e + android-ndk-r15-darwin-x86_64.zip macosx 64 - - 687311866 - 0600157c4ddf50ec15b8a037cfc474143f718fd0 - android-ndk-r13b-linux-x86_64.zip + + 973898016 + 32b3115357ed798a8a48d7d589ffcb901693c745 + android-ndk-r15-linux-x86_64.zip linux 64 - - 620461544 - 4eb1288b1d4134a9d6474eb247f0448808d52408 - android-ndk-r13b-windows-x86.zip + + 783705009 + bf869b624f6d4778065d5d4703815b0c689069e1 + android-ndk-r15-windows-x86.zip windows 32 - - 681320123 - 649d306559435c244cec5881b880318bb3dee53a - android-ndk-r13b-windows-x86_64.zip + + 848657615 + 45d310443ceb5ff19a0dde139ee9b3404908c178 + android-ndk-r15-windows-x86_64.zip windows 64 @@ -336,17 +336,41 @@ June 2014. - + + 8.0.0 + 26 + Android SDK Platform 26 + 1 + + + + 63467872 + 33a4f9788bfd7123e712906b2d7e5d54a729e14a + platform-26_r01.zip + + + + + 22 + + http://developer.android.com/sdk/ + + 15 + 1 + + + + 7.1.1 25 Android SDK Platform 25 - 2 + 3 - - 85434042 - 6057e54a04f1d141f36a2c8d20f2962b41a3183f - platform-25_r02.zip + + 85424763 + 00c2c5765e8988504be10a1eb66ed71fcdbd7fe8 + platform-25_r03.zip @@ -976,6 +1000,20 @@ June 2014. 4 + + + 25 + 1 + + + + 30822685 + bbc72efd1a9bad87cc507e308f0d29aad438c52c + sources-25_r01.zip + + + + 24 @@ -1131,6 +1169,168 @@ June 2014. + + + + 26 + 0 + 0 + + + + + 53854197 + 1cbe72929876f8a872ab1f1b1040a9f720261f59 + build-tools_r26-linux.zip + linux + + + + 53010814 + d01a1aeca03747245f1f5936b3cb01759c66d086 + build-tools_r26-macosx.zip + macosx + + + + 54681641 + 896ebd31117c09db220f7a3116cc0e5121c78b9d + build-tools_r26-windows.zip + windows + + + + + + + + 26 + 0 + 0 + 2 + + + + + 53847560 + 629bbd8d2e415bf64871fb0b4c0540fd6d0347a0 + build-tools_r26-rc2-linux.zip + linux + + + + 53003874 + cb1eb738a1f7003025af267a9b8cc2d259533c70 + build-tools_r26-rc2-macosx.zip + macosx + + + + 54678375 + ddaba77db0557a98f6330fbd579ad0bd12cbb152 + build-tools_r26-rc2-windows.zip + windows + + + + + + + + 26 + 0 + 0 + 1 + + + + + 53648603 + 8cd6388dc96db2d7a49d06159cf990d3bbc78d04 + build-tools_r26-rc1-linux.zip + linux + + + + 52821129 + 5c5a1de7d5f4f000d36ae349229fe0be846d6137 + build-tools_r26-rc1-macosx.zip + macosx + + + + 54379108 + 43c2ddad3b67a5c33712ae14331a60673e69be91 + build-tools_r26-rc1-windows.zip + windows + + + + + + + + 25 + 0 + 3 + + + + + 50757258 + db95f3a0ae376534d4d69f4cdb6fad20649f3509 + build-tools_r25.0.3-linux.zip + linux + + + + 50545085 + 160d2fefb5ce68e443427fc30a793a703b63e26e + build-tools_r25.0.3-macosx.zip + macosx + + + + 51337442 + 1edcb109ae5133aebfed573cf0bc84e0c353c28d + build-tools_r25.0.3-windows.zip + windows + + + + + + + + 25 + 0 + 2 + + + + + 49880329 + ff953c0177e317618fda40516f3e9d95fd43c7ae + build-tools_r25.0.2-linux.zip + linux + + + + 49667185 + 12a5204bb3b6e39437535469fde7ddf42da46b16 + build-tools_r25.0.2-macosx.zip + macosx + + + + 50458908 + 2fee3c0704d6ecc480570450d8b8069b2c4a2dd4 + build-tools_r25.0.2-windows.zip + windows + + + + @@ -2043,64 +2243,64 @@ June 2014. - + - 25 + 26 0 - 1 + 0 - - 3916151 - 8e461a2c76717824d1d8e91af68216c9f230a373 - platform-tools_r25.0.1-linux.zip - linux - - - - 3732924 - 96abc8638bf9f65435bc0ab641cc4a3ff753eed5 - platform-tools_r25.0.1-macosx.zip + + 7771750 + e75b6137dc444f777eb02f44a6d9819b3aabff82 + platform-tools_r26.0.0-darwin.zip macosx - - 3573485 - 75249224c12528329a151dfbc591509168ef6efd - platform-tools_r25.0.1-windows.zip + + 7859155 + 00de8a6631405b617c10f68cd11ff2e1cd528e23 + platform-tools_r26.0.0-linux.zip + linux + + + + 7511554 + a4128ebc3d1b6372d981810920e3fa01637f891a + platform-tools_r26.0.0-windows.zip windows - + 25 2 - 3 + 5 - - 277861433 - aafe7f28ac51549784efc2f3bdfc620be8a08213 - tools_r25.2.3-linux.zip + + 277894900 + 72df3aa1988c0a9003ccdfd7a13a7b8bd0f47fc1 + tools_r25.2.5-linux.zip linux - - 200496727 - 0e88c0bdb8f8ee85cce248580173e033a1bbc9cb - tools_r25.2.3-macosx.zip + + 200529982 + d2168d963ac5b616e3d3ddaf21511d084baf3659 + tools_r25.2.5-macosx.zip macosx - - 306745639 - b965decb234ed793eb9574bad8791c50ca574173 - tools_r25.2.3-windows.zip + + 306785944 + a7f7ebeae1c8d8f62d3a8466e9c81baee7cc31ca + tools_r25.2.5-windows.zip windows diff --git a/pkgs/development/mobile/androidenv/sources.nix b/pkgs/development/mobile/androidenv/sources.nix index 5bb7409c2c4..e4fe3cf0ff5 100644 --- a/pkgs/development/mobile/androidenv/sources.nix +++ b/pkgs/development/mobile/androidenv/sources.nix @@ -137,4 +137,15 @@ in }; }; + source_25 = buildSource { + name = "android-source-25"; + src = fetchurl { + url = https://dl.google.com/android/repository/sources-25_r01.zip; + sha1 = "bbc72efd1a9bad87cc507e308f0d29aad438c52c"; + }; + meta = { + description = "Source code for Android API 25"; + }; + }; + } diff --git a/pkgs/development/mobile/androidenv/sys-img.xml b/pkgs/development/mobile/androidenv/sys-img.xml index 807d4976296..8ea0cfb5b80 100644 --- a/pkgs/development/mobile/androidenv/sys-img.xml +++ b/pkgs/development/mobile/androidenv/sys-img.xml @@ -1,6 +1,6 @@ - + Terms and Conditions This is the Android Software Development Kit License Agreement @@ -830,24 +830,6 @@ ANY PRE-RELEASE MATERIALS ARE NON-QUALIFIED AND, AS SUCH, ARE PROVIDED “AS IS x86 default - - - 25 - Google APIs Intel x86 Atom System Image - 3 - - - - 703131759 - 7dd19cfee4e43a1f60e0f5f058404d92d9544b33 - x86-25_r03.zip - - - - x86 - google_apis - Google APIs - 21 @@ -916,22 +898,4 @@ ANY PRE-RELEASE MATERIALS ARE NON-QUALIFIED AND, AS SUCH, ARE PROVIDED “AS IS x86_64 default - - - 25 - Google APIs Intel x86 Atom_64 System Image - 3 - - - - 912938750 - 4593ee04811df21c339f3374fc5917843db06f8d - x86_64-25_r03.zip - - - - x86_64 - google_apis - Google APIs - From d17bcfc5f088d487da65d4ec9a2dc1990c912319 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sat, 10 Jun 2017 03:32:25 +0200 Subject: [PATCH 57/59] androidenv: Manually update missing packages Improvement: Use nix-shell for fetch.sh androidsdk{,_extras}: - Update to 7.1.1 google_apis_25 is missing after fetch.sh due to an error in addon.xml (upsteam bug). Addons: - Add google_apis_25 - Update google_play_services (v8_rc41 -> v11_rc16) --- pkgs/development/mobile/androidenv/addons.nix | 17 +++++++++++++++-- pkgs/development/mobile/androidenv/default.nix | 14 ++++++++++++++ pkgs/development/mobile/androidenv/fetch.sh | 3 ++- pkgs/top-level/all-packages.nix | 18 +++++++++--------- 4 files changed, 40 insertions(+), 12 deletions(-) diff --git a/pkgs/development/mobile/androidenv/addons.nix b/pkgs/development/mobile/androidenv/addons.nix index 7ddd203d4bf..06be6515ee5 100644 --- a/pkgs/development/mobile/androidenv/addons.nix +++ b/pkgs/development/mobile/androidenv/addons.nix @@ -268,6 +268,18 @@ in }; }; + google_apis_25 = buildGoogleApis { + name = "google_apis-25"; + src = fetchurl { + url = https://dl.google.com/android/repository/google_apis-25_r1.zip; + sha1 = "550e83eea9513ab11c44919ac6da54b36084a9f3"; + }; + meta = { + description = "Android + Google APIs"; + + }; + }; + android_support_extra = buildGoogleApis { name = "android_support_extra"; src = fetchurl { @@ -280,11 +292,12 @@ in }; }; + google_play_services = buildGoogleApis { name = "google_play_services"; src = fetchurl { - url = https://dl.google.com/android/repository/google_play_services_v8_rc41.zip; - sha1 = "7a50dec81ba9c9b51d7778c19ca05002498209e8"; + url = https://dl.google.com/android/repository/google_play_services_v11_rc16.zip; + sha1 = "55be81c50041f6a8f62947418f74f683369c971f"; }; meta = { description = "Google Play services client library and sample code"; diff --git a/pkgs/development/mobile/androidenv/default.nix b/pkgs/development/mobile/androidenv/default.nix index 7ecb82ce406..a233333986a 100644 --- a/pkgs/development/mobile/androidenv/default.nix +++ b/pkgs/development/mobile/androidenv/default.nix @@ -181,6 +181,20 @@ rec { useGooglePlayServices = true; }; + androidsdk_7_1_1 = androidsdk { + platformVersions = [ "25" ]; + abiVersions = [ "x86" "x86_64"]; + useGoogleAPIs = true; + }; + + androidsdk_7_1_1_extras = androidsdk { + platformVersions = [ "25" ]; + abiVersions = [ "x86" "x86_64"]; + useGoogleAPIs = true; + useExtraSupportLibs = true; + useGooglePlayServices = true; + }; + androidndk = import ./androidndk.nix { inherit (pkgs) stdenv fetchurl zlib ncurses p7zip lib makeWrapper; inherit (pkgs) coreutils file findutils gawk gnugrep gnused jdk which; diff --git a/pkgs/development/mobile/androidenv/fetch.sh b/pkgs/development/mobile/androidenv/fetch.sh index cd9f29a4c24..2edbe6bf489 100755 --- a/pkgs/development/mobile/androidenv/fetch.sh +++ b/pkgs/development/mobile/androidenv/fetch.sh @@ -1,4 +1,5 @@ -#!/bin/sh +#! /usr/bin/env nix-shell +#! nix-shell -i bash --pure -p androidsdk curl libxslt # this shows a list of available xmls android list sdk | grep 'Parse XML:' | cut -f8- -d\ # | xargs -n 1 curl -O diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c8cd658e88f..6a545ae65df 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -525,12 +525,6 @@ with pkgs; client = true; }); - androidenv = callPackage ../development/mobile/androidenv { - pkgs_i686 = pkgsi686Linux; - }; - - adb-sync = callPackage ../development/mobile/adb-sync { }; - apg = callPackage ../tools/security/apg { }; autorevision = callPackage ../tools/misc/autorevision { }; @@ -589,11 +583,17 @@ with pkgs; pkgs_i686 = pkgsi686Linux; }; - inherit (androidenv) androidsdk_4_4 androidndk; + adb-sync = callPackage ../development/mobile/adb-sync { }; - androidsdk = androidenv.androidsdk_7_0; + androidenv = callPackage ../development/mobile/androidenv { + pkgs_i686 = pkgsi686Linux; + }; - androidsdk_extras = self.androidenv.androidsdk_7_0_extras; + inherit (androidenv) androidndk; + + androidsdk = androidenv.androidsdk_7_1_1; + + androidsdk_extras = self.androidenv.androidsdk_7_1_1_extras; arc-theme = callPackage ../misc/themes/arc { }; From 507c2079580d51c5a48c6267c3ad2ca6febd2fe9 Mon Sep 17 00:00:00 2001 From: Joachim Schiele Date: Sat, 10 Jun 2017 09:35:35 +0200 Subject: [PATCH 58/59] spamassassin: major service fixes -> added more perl packages to spamassassin and abstracted service to not use /etc/spamassassin, also running sa-update as spamd user periodically (#26470) thanks @grahamc for IRC comments --- nixos/modules/services/mail/spamassassin.nix | 164 ++++++++++++++++-- pkgs/servers/mail/spamassassin/default.nix | 23 +-- .../sa-update_add--siteconfigpath.patch | 59 +++++++ pkgs/top-level/perl-packages.nix | 107 +++++++++++- 4 files changed, 324 insertions(+), 29 deletions(-) create mode 100644 pkgs/servers/mail/spamassassin/sa-update_add--siteconfigpath.patch diff --git a/nixos/modules/services/mail/spamassassin.nix b/nixos/modules/services/mail/spamassassin.nix index 08953134b3b..fc8396cd85e 100644 --- a/nixos/modules/services/mail/spamassassin.nix +++ b/nixos/modules/services/mail/spamassassin.nix @@ -3,43 +3,129 @@ with lib; let - cfg = config.services.spamassassin; + spamassassin-local-cf = pkgs.writeText "local.cf" cfg.config; + spamassassin-init-pre = pkgs.writeText "init.pre" cfg.initPreConf; + + spamdEnv = pkgs.buildEnv { + name = "spamd-env"; + paths = []; + postBuild = '' + ln -sf ${spamassassin-init-pre} $out/init.pre + ln -sf ${spamassassin-local-cf} $out/local.cf + ''; + }; in { - - ###### interface - options = { services.spamassassin = { - enable = mkOption { default = false; - description = "Whether to run the SpamAssassin daemon."; + description = "Whether to run the SpamAssassin daemon"; }; debug = mkOption { default = false; - description = "Whether to run the SpamAssassin daemon in debug mode."; + description = "Whether to run the SpamAssassin daemon in debug mode"; }; + config = mkOption { + type = types.lines; + description = '' + The SpamAssassin local.cf config + + If you are using this configuration: + add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ + + Then you can Use this sieve filter: + require ["fileinto", "reject", "envelope"]; + + if header :contains "X-Spam-Flag" "YES" { + fileinto "spam"; + } + + Or this procmail filter: + :0: + * ^X-Spam-Flag: YES + /var/vpopmail/domains/lastlog.de/js/.maildir/.spam/new + + To filter your messages based on the additional mail headers added by spamassassin. + ''; + example = '' + #rewrite_header Subject [***** SPAM _SCORE_ *****] + required_score 5.0 + use_bayes 1 + bayes_auto_learn 1 + add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ + ''; + default = ""; + }; + + initPreConf = mkOption { + type = types.str; + description = "The SpamAssassin init.pre config."; + default = + '' + # + # to update this list, run this command in the rules directory: + # grep 'loadplugin.*Mail::SpamAssassin::Plugin::.*' -o -h * | sort | uniq + # + + #loadplugin Mail::SpamAssassin::Plugin::AccessDB + #loadplugin Mail::SpamAssassin::Plugin::AntiVirus + loadplugin Mail::SpamAssassin::Plugin::AskDNS + # loadplugin Mail::SpamAssassin::Plugin::ASN + loadplugin Mail::SpamAssassin::Plugin::AutoLearnThreshold + #loadplugin Mail::SpamAssassin::Plugin::AWL + loadplugin Mail::SpamAssassin::Plugin::Bayes + loadplugin Mail::SpamAssassin::Plugin::BodyEval + loadplugin Mail::SpamAssassin::Plugin::Check + #loadplugin Mail::SpamAssassin::Plugin::DCC + loadplugin Mail::SpamAssassin::Plugin::DKIM + loadplugin Mail::SpamAssassin::Plugin::DNSEval + loadplugin Mail::SpamAssassin::Plugin::FreeMail + loadplugin Mail::SpamAssassin::Plugin::Hashcash + loadplugin Mail::SpamAssassin::Plugin::HeaderEval + loadplugin Mail::SpamAssassin::Plugin::HTMLEval + loadplugin Mail::SpamAssassin::Plugin::HTTPSMismatch + loadplugin Mail::SpamAssassin::Plugin::ImageInfo + loadplugin Mail::SpamAssassin::Plugin::MIMEEval + loadplugin Mail::SpamAssassin::Plugin::MIMEHeader + # loadplugin Mail::SpamAssassin::Plugin::PDFInfo + #loadplugin Mail::SpamAssassin::Plugin::PhishTag + loadplugin Mail::SpamAssassin::Plugin::Pyzor + loadplugin Mail::SpamAssassin::Plugin::Razor2 + # loadplugin Mail::SpamAssassin::Plugin::RelayCountry + loadplugin Mail::SpamAssassin::Plugin::RelayEval + loadplugin Mail::SpamAssassin::Plugin::ReplaceTags + # loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody + # loadplugin Mail::SpamAssassin::Plugin::Shortcircuit + loadplugin Mail::SpamAssassin::Plugin::SpamCop + loadplugin Mail::SpamAssassin::Plugin::SPF + #loadplugin Mail::SpamAssassin::Plugin::TextCat + # loadplugin Mail::SpamAssassin::Plugin::TxRep + loadplugin Mail::SpamAssassin::Plugin::URIDetail + loadplugin Mail::SpamAssassin::Plugin::URIDNSBL + loadplugin Mail::SpamAssassin::Plugin::URIEval + # loadplugin Mail::SpamAssassin::Plugin::URILocalBL + loadplugin Mail::SpamAssassin::Plugin::VBounce + loadplugin Mail::SpamAssassin::Plugin::WhiteListSubject + loadplugin Mail::SpamAssassin::Plugin::WLBLEval + ''; + }; }; - }; - - ###### implementation - config = mkIf cfg.enable { # Allow users to run 'spamc'. environment.systemPackages = [ pkgs.spamassassin ]; users.extraUsers = singleton { - name = "spamd"; + name = "spamd"; description = "Spam Assassin Daemon"; uid = config.ids.uids.spamd; group = "spamd"; @@ -50,13 +136,65 @@ in gid = config.ids.gids.spamd; }; + systemd.services.sa-update = { + script = '' + set +e + ${pkgs.su}/bin/su -s "${pkgs.bash}/bin/bash" -c "${pkgs.spamassassin}/bin/sa-update --gpghomedir=/var/lib/spamassassin/sa-update-keys/ --siteconfigpath=${spamdEnv}/" spamd + + v=$? + set -e + if [ $v -gt 1 ]; then + echo "sa-update execution error" + exit $v + fi + if [ $v -eq 0 ]; then + systemctl reload spamd.service + fi + ''; + }; + + systemd.timers.sa-update = { + description = "sa-update-service"; + partOf = [ "sa-update.service" ]; + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "1:*"; + Persistent = true; + }; + }; + systemd.services.spamd = { description = "Spam Assassin Server"; wantedBy = [ "multi-user.target" ]; after = [ "network.target" ]; - script = "${pkgs.spamassassin}/bin/spamd ${optionalString cfg.debug "-D"} --username=spamd --groupname=spamd --nouser-config --virtual-config-dir=/var/lib/spamassassin/user-%u --allow-tell --pidfile=/var/run/spamd.pid"; + serviceConfig = { + ExecStart = "${pkgs.spamassassin}/bin/spamd ${optionalString cfg.debug "-D"} --username=spamd --groupname=spamd --siteconfigpath=${spamdEnv} --virtual-config-dir=/var/lib/spamassassin/user-%u --allow-tell --pidfile=/var/run/spamd.pid"; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + }; + + # 0 and 1 no error, exitcode > 1 means error: + # https://spamassassin.apache.org/full/3.1.x/doc/sa-update.html#exit_codes + preStart = '' + # this abstraction requires no centralized config at all + if [ -d /etc/spamassassin ]; then + echo "This spamassassin does not support global '/etc/spamassassin' folder for configuration as this would be impure. Merge your configs into 'services.spamassassin' and remove the '/etc/spamassassin' folder to make this service work. Also see 'https://github.com/NixOS/nixpkgs/pull/26470'."; + exit 1 + fi + echo "Recreating '/var/lib/spamasassin' with creating '3.004001' (or similar) and 'sa-update-keys'" + mkdir -p /var/lib/spamassassin + chown spamd:spamd /var/lib/spamassassin -R + set +e + ${pkgs.su}/bin/su -s "${pkgs.bash}/bin/bash" -c "${pkgs.spamassassin}/bin/sa-update --gpghomedir=/var/lib/spamassassin/sa-update-keys/ --siteconfigpath=${spamdEnv}/" spamd + v=$? + set -e + if [ $v -gt 1 ]; then + echo "sa-update execution error" + exit $v + fi + chown spamd:spamd /var/lib/spamassassin -R + ''; }; }; } diff --git a/pkgs/servers/mail/spamassassin/default.nix b/pkgs/servers/mail/spamassassin/default.nix index 14149713ee8..f4ab6a02995 100644 --- a/pkgs/servers/mail/spamassassin/default.nix +++ b/pkgs/servers/mail/spamassassin/default.nix @@ -1,17 +1,7 @@ -{ stdenv, fetchurl, buildPerlPackage, perl, HTMLParser, NetDNS, NetAddrIP, DBFile +{ stdenv, fetchurl, buildPerlPackage, perl, perlPackages, HTMLParser, NetDNS, NetAddrIP, DBFile , HTTPDate, MailDKIM, LWP, IOSocketSSL, makeWrapper, gnupg1 }: -# TODO: Add the Perl modules ... -# -# DBI -# Encode::Detect -# IP::Country::Fast -# Mail::SPF -# Net::Ident -# Razor2::Client::Agent -# - buildPerlPackage rec { name = "SpamAssassin-3.4.1"; @@ -20,14 +10,17 @@ buildPerlPackage rec { sha256 = "0la6s5ilamf9129kyjckcma8cr6fpb6b5f2fb64v7106iy0ckhd0"; }; - buildInputs = [ makeWrapper HTMLParser NetDNS NetAddrIP DBFile HTTPDate MailDKIM - LWP IOSocketSSL ]; + # https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7434 + patches = [ ./sa-update_add--siteconfigpath.patch ]; + + buildInputs = with perlPackages; [ makeWrapper HTMLParser NetDNS NetAddrIP DBFile HTTPDate MailDKIM + LWP IOSocketSSL DBI EncodeDetect IPCountry NetIdent Razor2ClientAgent MailSPF NetDNSResolverProgrammable ]; # Enabling 'taint' mode is desirable, but that flag disables support # for the PERL5LIB environment variable. Needs further investigation. makeFlags = "PERL_BIN=${perl}/bin/perl PERL_TAINT=no"; - makeMakerFlags = "CONFDIR=/etc/spamassassin LOCALSTATEDIR=/var/lib/spamassassin"; + makeMakerFlags = "CONFDIR=/homeless/shelter LOCALSTATEDIR=/var/lib/spamassassin"; doCheck = false; @@ -45,6 +38,6 @@ buildPerlPackage rec { description = "Open-Source Spam Filter"; license = stdenv.lib.licenses.asl20; platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.peti ]; + maintainers = with stdenv.lib.maintainers; [ peti qknight ]; }; } diff --git a/pkgs/servers/mail/spamassassin/sa-update_add--siteconfigpath.patch b/pkgs/servers/mail/spamassassin/sa-update_add--siteconfigpath.patch new file mode 100644 index 00000000000..3264aefc072 --- /dev/null +++ b/pkgs/servers/mail/spamassassin/sa-update_add--siteconfigpath.patch @@ -0,0 +1,59 @@ +From 60abf3ee8864980a95b32e2d6cf60e26b49654c0 Mon Sep 17 00:00:00 2001 +From: joachim schiele +Date: Wed, 7 Jun 2017 22:15:39 +0200 +Subject: [PATCH 2/2] Adding --siteconfigpath to not be forced to use global /etc/spamasassin configuration directory but to provide an alternative location. + +--- + sa-update.raw | 5 +++++ + lib/Mail/SpamAssassin/PerMsgStatus.pm | 2 + + 2 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/sa-update.raw b/sa-update.raw +index bb7396d..39f681f 100755 +--- a/sa-update.raw ++++ b/sa-update.raw +@@ -196,6 +196,7 @@ GetOptions( + 'gpgkeyfile=s' => \$opt{'gpgkeyfile'}, + 'channelfile=s' => \$opt{'channelfile'}, + 'updatedir=s' => \$opt{'updatedir'}, ++ 'siteconfigpath=s' => \$opt{'siteconfigpath'}, + 'gpg!' => \$GPG_ENABLED, + + '4' => sub { $opt{'force_pf'} = 'inet' }, +@@ -267,6 +268,9 @@ else { + $opt{'updatedir'} = $SA->sed_path('__local_state_dir__/__version__'); + } + ++if (defined $opt{'siteconfigpath'}) { ++ $LOCAL_RULES_DIR = untaint_file_path($opt{'siteconfigpath'}); ++} + + # check only disabled gpg + # https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5854 +@@ -1808,6 +1812,7 @@ Options: + --updatedir path Directory to place updates, defaults to the + SpamAssassin site rules directory + (default: @@LOCAL_STATE_DIR@@/@@VERSION@@) ++ --siteconfigpath=path Path for site configs + --refreshmirrors Force the MIRRORED.BY file to be updated + -D, --debug [area=n,...] Print debugging messages + -v, --verbose Be verbose, like print updated channel names; +-- +diff --git a/lib/Mail/SpamAssassin/PerMsgStatus.pm b/lib/Mail/SpamAssassin/PerMsgStatus.pm +index 6d8beaa..6ad87dc 100644 +--- a/lib/Mail/SpamAssassin/PerMsgStatus.pm ++++ b/lib/Mail/SpamAssassin/PerMsgStatus.pm +@@ -389,7 +389,8 @@ sub check_timed { + if (!$self->{main}->have_plugin("check_main")) { + die "check: no loaded plugin implements 'check_main': cannot scan!\n". + "Check that the necessary '.pre' files are in the config directory.\n". +- "At a minimum, v320.pre loads the Check plugin which is required.\n"; ++ "At a minimum, v320.pre loads the Check plugin which is required.\n". ++ "NixOS: Since there is no '/etc/spamassassin' simply restart 'spamd.service' which on its behalf will run 'sa-learn --siteconfigpath=/nix/store/l4hr4yxk8mb4wbkha6vm6rh92pj19rj6-spamd-env ...' to update the /var/lib/spamassassin configs.\n"; + } + } + +-- + +2.12.2 + diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 14d47410857..8b2d0cdb373 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -4650,6 +4650,20 @@ let self = _self // overrides; _self = with self; { }; }; + EncodeDetect = buildPerlPackage rec { + name = "Encode-Detect-1.01"; + src = fetchurl { + url = "mirror://cpan/authors/id/J/JG/JGMYERS/${name}.tar.gz"; + sha256 = "834d893aa7db6ce3f158afbd0e432d6ed15a276e0940db0a74be13fd9c4bbbf1"; + }; + propagatedBuildInputs = [ ModuleBuild ]; + meta = { + description = "An Encode::Encoding subclass that detects the encoding of data"; + license = stdenv.lib.licenses.free; + }; + }; + + EncodeEUCJPASCII = buildPerlPackage { name = "Encode-EUCJPASCII-0.03"; src = fetchurl { @@ -4747,7 +4761,7 @@ let self = _self // overrides; _self = with self; { sha256 = "1vzpz6syb82ir8svp2wjh95x6lpf01lgkxn2xy60ixrszc24zdya"; }; }; - + EV = buildPerlPackage rec { name = "EV-4.22"; src = fetchurl { @@ -7039,6 +7053,32 @@ let self = _self // overrides; _self = with self; { }; }; + IPCountry = buildPerlPackage rec { + name = "IP-Country-2.28"; + src = fetchurl { + url = "mirror://cpan/authors/id/N/NW/NWETTERS/${name}.tar.gz"; + sha256 = "88db833a5ab22ed06cb53d6f205725e3b5371b254596053738885e91fa105f75"; + }; + propagatedBuildInputs = [ GeographyCountries ]; + meta = { + description = "Fast lookup of country codes from IP addresses"; + license = stdenv.lib.licenses.mit; + }; + }; + + GeographyCountries = buildPerlPackage rec { + name = "Geography-Countries-2009041301"; + src = fetchurl { + url = "mirror://cpan/authors/id/A/AB/ABIGAIL/${name}.tar.gz"; + sha256 = "48c42e40e8281ba7c981743a854c48e6def2d51eb0925ea6c96e25c74497f20f"; + }; + meta = { + description = "2-letter, 3-letter, and numerical codes for countries"; + license = stdenv.lib.licenses.mit; + }; + }; + + IPCRun = buildPerlPackage { name = "IPC-Run-0.92"; src = fetchurl { @@ -8061,6 +8101,28 @@ let self = _self // overrides; _self = with self; { }; }; + MailSPF = buildPerlPackage rec { + name = "Mail-SPF-v2.9.0"; + #src = /root/nixops/Mail-SPF-v2.9.0; + src = fetchurl { + url = "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/${name}.tar.gz"; + sha256 = "61cb5915f1c7acc7a931ffc1bfc1291bdfac555e2a46eb2391b995ea9ecb6162"; + }; + # remove this patch patches = [ ../development/perl-modules/Mail-SPF.patch ]; + + buildInputs = [ ModuleBuild NetDNSResolverProgrammable ]; + propagatedBuildInputs = [ Error NetAddrIP NetDNS URI ]; + + buildPhase = "perl Build.PL --install_base=$out --install_path=\"sbin=$out/bin\"; ./Build build "; + + doCheck = false; # The main test performs network access + meta = { + description = "An object-oriented implementation of Sender Policy Framework"; + license = stdenv.lib.licenses.bsd3; + }; + }; + + MailTools = buildPerlPackage rec { name = "MailTools-2.14"; src = fetchurl { @@ -9727,6 +9789,19 @@ let self = _self // overrides; _self = with self; { # Deprecated. NamespaceClean = self.namespaceclean; + NetIdent = buildPerlPackage rec { + name = "Net-Ident-1.24"; + src = fetchurl { + url = "mirror://cpan/authors/id/T/TO/TODDR/${name}.tar.gz"; + sha256 = "5f5f1142185a67b87406a3fb31f221564f61838a70ef4c07284a66c55e82ad05"; + }; + meta = { + homepage = http://wiki.github.com/toddr/Net-Ident/; + description = "Lookup the username on the remote end of a TCP/IP connection"; + license = stdenv.lib.licenses.mit; + }; + }; + NetAddrIP = buildPerlPackage rec { name = "NetAddr-IP-4.079"; src = fetchurl { @@ -10017,6 +10092,21 @@ let self = _self // overrides; _self = with self; { }; }; + NetDNSResolverProgrammable = buildPerlPackage rec { + name = "Net-DNS-Resolver-Programmable-v0.003"; + src = fetchurl { + url = "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/${name}.tar.gz"; + sha256 = "8d402260941f259c83bf1b2564408e75288df028f604136c29da11a9a6a076ec"; + }; + buildInputs = [ ModuleBuild ]; + propagatedBuildInputs = [ NetDNS ]; + meta = { + description = "Programmable DNS resolver class for offline emulation of DNS"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + + NetServer = buildPerlPackage { name = "Net-Server-2.007"; src = fetchurl { @@ -11286,6 +11376,21 @@ let self = _self // overrides; _self = with self; { }; }; + Razor2ClientAgent = buildPerlPackage rec { + name = "Razor2-Client-Agent-2.84"; + src = fetchurl { + url = "mirror://cpan/authors/id/T/TO/TODDR/${name}.tar.gz"; + sha256 = "d7c2ed7f347a673b1425e4da7656073d6c52847bc7403bf57e3a404b52f7e501"; + }; + propagatedBuildInputs = [ DigestSHA1 URI ]; + meta = { + homepage = http://razor.sourceforge.net/; + description = "Collaborative, content-based spam filtering network agent"; + license = stdenv.lib.licenses.mit; + }; + }; + + Readonly = buildPerlModule rec { name = "Readonly-2.05"; src = fetchurl { From 2d64e1b7d05dc31fb6a899092c99c693b169dd55 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 10 Jun 2017 07:43:45 +0000 Subject: [PATCH 59/59] lbreakout2: fix build on Darwin --- pkgs/games/lbreakout2/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/games/lbreakout2/default.nix b/pkgs/games/lbreakout2/default.nix index 363b133243b..eb9bed9e1d9 100644 --- a/pkgs/games/lbreakout2/default.nix +++ b/pkgs/games/lbreakout2/default.nix @@ -1,21 +1,22 @@ -{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng }: +{ stdenv, fetchurl, SDL, SDL_mixer, zlib, libpng, libintlOrEmpty }: stdenv.mkDerivation rec { name = "lbreakout2-${version}"; version = "2.6.5"; - buildInputs = [ SDL SDL_mixer zlib libpng ]; + buildInputs = [ SDL SDL_mixer zlib libpng ] ++ libintlOrEmpty; src = fetchurl { url = "mirror://sourceforge/lgames/${name}.tar.gz"; sha256 = "0vwdlyvh7c4y80q5vp7fyfpzbqk9lq3w8pvavi139njkalbxc14i"; }; + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl"; + meta = with stdenv.lib; { description = "Breakout clone from the LGames series"; homepage = http://lgames.sourceforge.net/LBreakout2/; license = licenses.gpl2; maintainers = [ maintainers.ciil ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } -