diff options
author | Robin Gloster <mail@glob.in> | 2016-03-15 01:44:24 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-03-15 01:44:24 +0000 |
commit | 3f45f0948d6fe158bed063adb66850ded0ba4861 (patch) | |
tree | ac717689d391d3f5333132fc34e4b2aed829414c /pkgs/servers | |
parent | a9b942c0617b1cd5f0732d05eadad0114a178f37 (diff) | |
parent | d227d9a70e41d65e4e6f4ac75a9d243c5a19fa85 (diff) | |
download | nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.gz nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.bz2 nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.lz nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.xz nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.tar.zst nixpkgs-3f45f0948d6fe158bed063adb66850ded0ba4861.zip |
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/foswiki/default.nix | 42 | ||||
-rw-r--r-- | pkgs/servers/freeradius/default.nix | 39 | ||||
-rw-r--r-- | pkgs/servers/http/apache-httpd/2.4.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/http/apt-cacher-ng/default.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/http/nginx/modules.nix | 10 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/2.11.nix | 65 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/3.0.nix | 92 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/db-linux3.patch | 39 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/default.nix | 102 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/postfix-2.11.0.patch | 76 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/postfix-2.2.9-db.patch | 40 | ||||
-rw-r--r-- | pkgs/servers/mail/postfix/postfix-2.2.9-lib.patch | 12 | ||||
-rw-r--r-- | pkgs/servers/nosql/eventstore/default.nix | 29 | ||||
-rw-r--r-- | pkgs/servers/owncloud/default.nix | 5 | ||||
-rw-r--r-- | pkgs/servers/plex/default.nix | 6 | ||||
-rw-r--r-- | pkgs/servers/samba/4.x.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/sql/mysql/jdbc/default.nix | 6 |
17 files changed, 182 insertions, 393 deletions
diff --git a/pkgs/servers/foswiki/default.nix b/pkgs/servers/foswiki/default.nix new file mode 100644 index 00000000000..c5831325958 --- /dev/null +++ b/pkgs/servers/foswiki/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, perlPackages }: + +perlPackages.buildPerlPackage rec { + name = "foswiki-${version}"; + version = "2.1.0"; + + src = fetchurl { + url = "mirror://sourceforge/foswiki/${version}/Foswiki-${version}.tgz"; + sha256 = "03286pb966h99zgickm2f20rgnqwp9wga5wfkdvirv084kjdh8vp"; + }; + + buildInputs = with perlPackages; [ + # minimum requirements from INSTALL.html#System_Requirements + AlgorithmDiff ArchiveTar AuthenSASL CGI CGISession CryptPasswdMD5 + DigestSHA EmailMIME Encode Error FileCopyRecursive HTMLParser HTMLTree + IOSocketIP IOSocketSSL JSON + LocaleMaketext LocaleMaketextLexicon LocaleMsgfmt + LWP URI perlPackages.version + /*# optional dependencies + libapreq2 DBI DBDmysql DBDPg DBDSQLite FCGI FCGIProcManager + CryptSMIME CryptX509 ConvertPEM + */ + ]; + + preConfigure = '' + touch Makefile.PL + patchShebangs . + ''; + configureScript = "bin/configure"; + + # there's even no makefile + doCheck = false; + installPhase = ''cp -r . "$out" ''; # TODO: some fixups will be needed for running it + + meta = with stdenv.lib; { + description = "An open, programmable collaboration platform"; + homepage = http://foswiki.org; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/servers/freeradius/default.nix b/pkgs/servers/freeradius/default.nix new file mode 100644 index 00000000000..818cc30b054 --- /dev/null +++ b/pkgs/servers/freeradius/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, autoreconfHook, talloc, openssl ? null }: + +## TODO: include ldap optionally +## TODO: include sqlite optionally +## TODO: include mysql optionally + +stdenv.mkDerivation rec { + name = "freeradius-${version}"; + version = "3.0.11"; + + buildInputs = [ + autoreconfHook + talloc + openssl + ]; + + configureFlags = [ + "--sysconfdir=/etc" + "--localstatedir=/var" + ]; + + installFlags = [ + "sysconfdir=\${out}/etc" + "localstatedir=\${TMPDIR}" + ]; + + src = fetchurl { + url = "ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-${version}.tar.gz"; + sha256 = "0naxw9b060rbp4409904j6nr2zwl6wbjrbq1839xrwhmaf8p4yxr"; + }; + + meta = with stdenv.lib; { + homepage = http://freeradius.org/; + description = "A modular, high performance free RADIUS suite"; + license = stdenv.lib.licenses.gpl2; + }; + +} + diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index ddb1ec443a0..a2e039bd399 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -1,6 +1,7 @@ { stdenv, fetchurl, perl, zlib, apr, aprutil, pcre, libiconv , proxySupport ? true , sslSupport ? true, openssl +, http2Support ? true, libnghttp2 , ldapSupport ? true, openldap , libxml2Support ? true, libxml2 , luaSupport ? false, lua5 @@ -12,6 +13,7 @@ in assert sslSupport -> aprutil.sslSupport && openssl != null; assert ldapSupport -> aprutil.ldapSupport && openldap != null; +assert http2Support -> libnghttp2 != null; stdenv.mkDerivation rec { version = "2.4.18"; @@ -25,6 +27,7 @@ stdenv.mkDerivation rec { buildInputs = [perl] ++ optional ldapSupport openldap ++ # there is no --with-ldap flag optional libxml2Support libxml2 ++ + optional http2Support libnghttp2 ++ optional stdenv.isDarwin libiconv; # Required for ‘pthread_cancel’. @@ -44,6 +47,7 @@ stdenv.mkDerivation rec { --enable-cgi ${optionalString proxySupport "--enable-proxy"} ${optionalString sslSupport "--enable-ssl --with-ssl=${openssl}"} + ${optionalString http2Support "--enable-http2 --with-nghttp2=${libnghttp2}"} ${optionalString luaSupport "--enable-lua --with-lua=${lua5}"} ${optionalString libxml2Support "--with-libxml2=${libxml2}/include/libxml2"} ''; diff --git a/pkgs/servers/http/apt-cacher-ng/default.nix b/pkgs/servers/http/apt-cacher-ng/default.nix index f253cdba08e..625d9406641 100644 --- a/pkgs/servers/http/apt-cacher-ng/default.nix +++ b/pkgs/servers/http/apt-cacher-ng/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { name = "apt-cacher-ng-${version}"; - version = "0.8.6"; + version = "0.8.9"; src = fetchurl { url = "http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${version}.orig.tar.xz"; - sha256 = "0044dfks8djl11fs28jj8894i4rq424xix3d3fkvzz2i6lnp8nr5"; + sha256 = "15zkacy8n6fiklqpdk139pa7qssynrr9akv5h54ky1l53n0k70m6"; }; NIX_LDFLAGS = "-lpthread"; diff --git a/pkgs/servers/http/nginx/modules.nix b/pkgs/servers/http/nginx/modules.nix index efa84f0fa67..f58479e4478 100644 --- a/pkgs/servers/http/nginx/modules.nix +++ b/pkgs/servers/http/nginx/modules.nix @@ -1,6 +1,16 @@ { fetchFromGitHub, pkgs }: { + brotli = { + src = fetchFromGitHub { + owner = "google"; + repo = "ngx_brotli"; + rev = "788615eab7c5e0a984278113c55248305620df14"; + sha256 = "02514bbjdhm9m38vljdh626d3c1783jxsxawv5c6bzblwmb8xgvf"; + }; + inputs = [ pkgs.libbrotli ]; + }; + rtmp = { src = fetchFromGitHub { owner = "arut"; diff --git a/pkgs/servers/mail/postfix/2.11.nix b/pkgs/servers/mail/postfix/2.11.nix deleted file mode 100644 index f2f155cbf3f..00000000000 --- a/pkgs/servers/mail/postfix/2.11.nix +++ /dev/null @@ -1,65 +0,0 @@ -{ stdenv, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl, coreutils -, findutils, gnugrep, gawk -}: - -stdenv.mkDerivation rec { - - name = "postfix-${version}"; - - version = "2.11.5"; - - src = fetchurl { - url = "ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/${name}.tar.gz"; - sha256 = "11riz8ggaa09pi8d6xv2807qp7yjn918mrylfvkfwmvcdlgwck0a"; - }; - - patches = [ - ./postfix-2.11.0.patch - ./postfix-script-shell.patch - ]; - - buildInputs = [ makeWrapper gnused db openssl cyrus_sasl ]; - - preBuild = '' - sed -e '/^PATH=/d' -i postfix-install - - export command_directory=$out/sbin - export config_directory=$out/etc/postfix - export daemon_directory=$out/libexec/postfix - export data_directory=/var/lib/postfix - export html_directory=$out/share/postfix/doc/html - export mailq_path=$out/bin/mailq - export manpage_directory=$out/share/man - export newaliases_path=$out/bin/newaliases - export queue_directory=/var/spool/postfix - export readme_directory=$out/share/postfix/doc - export sendmail_path=$out/bin/sendmail - - make makefiles \ - CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${cyrus_sasl}/include/sasl' \ - AUXLIBS='-ldb -lnsl -lresolv -lsasl2 -lcrypto -lssl' - ''; - - installTargets = [ "non-interactive-package" ]; - - installFlags = [ " install_root=$out " ]; - - postInstall = '' - mkdir -p $out - mv -v ut/$out/* $out/ - sed -e '/^PATH=/d' -i $out/libexec/postfix/post-install - wrapProgram $out/libexec/postfix/post-install \ - --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin - wrapProgram $out/libexec/postfix/postfix-script \ - --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin:${gawk}/bin:${gnused}/bin - ''; - - meta = { - homepage = "http://www.postfix.org/"; - description = "A fast, easy to administer, and secure mail server"; - license = stdenv.lib.licenses.bsdOriginal; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.rickynils ]; - }; - -} diff --git a/pkgs/servers/mail/postfix/3.0.nix b/pkgs/servers/mail/postfix/3.0.nix deleted file mode 100644 index 9d208e8af4d..00000000000 --- a/pkgs/servers/mail/postfix/3.0.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl -, coreutils, findutils, gnugrep, gawk, icu, pcre -, withPgSQL ? false, postgresql -, withMySQL ? false, libmysql -, withSQLite ? false, sqlite -}: - -let - ccargs = lib.concatStringsSep " " ([ - "-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl}/include/sasl" - "-DHAS_DB_BYPASS_MAKEDEFS_CHECK" - ] ++ lib.optional withPgSQL "-DHAS_PGSQL" - ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${libmysql}/include/mysql" ] - ++ lib.optional withSQLite "-DHAS_SQLITE"); - auxlibs = lib.concatStringsSep " " ([ - "-ldb" "-lnsl" "-lresolv" "-lsasl2" "-lcrypto" "-lssl" - ] ++ lib.optional withPgSQL "-lpq" - ++ lib.optional withMySQL "-lmysqlclient" - ++ lib.optional withSQLite "-lsqlite3"); - -in stdenv.mkDerivation rec { - - name = "postfix-${version}"; - - version = "3.0.3"; - - src = fetchurl { - url = "ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/${name}.tar.gz"; - sha256 = "00mc12k5p1zlrlqcf33vh5zizaqr5ai8q78dwv69smjh6kn4c7j0"; - }; - - buildInputs = [ makeWrapper gnused db openssl cyrus_sasl icu pcre ] - ++ lib.optional withPgSQL postgresql - ++ lib.optional withMySQL libmysql - ++ lib.optional withSQLite sqlite; - - patches = [ - ./postfix-script-shell.patch - ./postfix-3.0-no-warnings.patch - ./post-install-script.patch - ./relative-symlinks.patch - ]; - - hardeningEnable = [ "pie" ]; - - preBuild = '' - sed -e '/^PATH=/d' -i postfix-install - sed -e "s|@PACKAGE@|$out|" -i conf/post-install - - # post-install need skip permissions check/set on all symlinks following to /nix/store - sed -e "s|@NIX_STORE@|$NIX_STORE|" -i conf/post-install - - export command_directory=$out/sbin - export config_directory=/etc/postfix - export meta_directory=$out/etc/postfix - export daemon_directory=$out/libexec/postfix - export data_directory=/var/lib/postfix/data - export html_directory=$out/share/postfix/doc/html - export mailq_path=$out/bin/mailq - export manpage_directory=$out/share/man - export newaliases_path=$out/bin/newaliases - export queue_directory=/var/lib/postfix/queue - export readme_directory=$out/share/postfix/doc - export sendmail_path=$out/bin/sendmail - - make makefiles CCARGS='${ccargs}' AUXLIBS='${auxlibs}' - ''; - - installTargets = [ "non-interactive-package" ]; - - installFlags = [ "install_root=installdir" ]; - - postInstall = '' - mkdir -p $out - mv -v installdir/$out/* $out/ - cp -rv installdir/etc $out - sed -e '/^PATH=/d' -i $out/libexec/postfix/post-install - wrapProgram $out/libexec/postfix/post-install \ - --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin - wrapProgram $out/libexec/postfix/postfix-script \ - --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin:${gawk}/bin:${gnused}/bin - ''; - - meta = { - homepage = "http://www.postfix.org/"; - description = "A fast, easy to administer, and secure mail server"; - license = lib.licenses.bsdOriginal; - platforms = lib.platforms.linux; - maintainers = [ lib.maintainers.rickynils ]; - }; - -} diff --git a/pkgs/servers/mail/postfix/db-linux3.patch b/pkgs/servers/mail/postfix/db-linux3.patch deleted file mode 100644 index c9dd4646798..00000000000 --- a/pkgs/servers/mail/postfix/db-linux3.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff --git a/makedefs b/makedefs -index b8b98c8..94443c0 100644 ---- a/makedefs -+++ b/makedefs -@@ -341,20 +341,20 @@ EOF - esac - ;; - Linux.3*) SYSTYPE=LINUX3 -- if [ -f /usr/include/db.h ] -- then -- : we are all set -- elif [ -f /usr/include/db/db.h ] -- then -- CCARGS="$CCARGS -I/usr/include/db" -- else -- # On a properly installed system, Postfix builds -- # by including <db.h> and by linking with -ldb -- echo "No <db.h> include file found." 1>&2 -- echo "Install the appropriate db*-devel package first." 1>&2 -- echo "See the RELEASE_NOTES file for more information." 1>&2 -- exit 1 -- fi -+ #if [ -f /usr/include/db.h ] -+ #then -+ #: we are all set -+ #elif [ -f /usr/include/db/db.h ] -+ #then -+ #CCARGS="$CCARGS -I/usr/include/db" -+ #else -+ ## On a properly installed system, Postfix builds -+ ## by including <db.h> and by linking with -ldb -+ #echo "No <db.h> include file found." 1>&2 -+ #echo "Install the appropriate db*-devel package first." 1>&2 -+ #echo "See the RELEASE_NOTES file for more information." 1>&2 -+ #exit 1 -+ #fi - SYSLIBS="-ldb" - for name in nsl resolv - do diff --git a/pkgs/servers/mail/postfix/default.nix b/pkgs/servers/mail/postfix/default.nix index 886412b24cd..a92ffa4402f 100644 --- a/pkgs/servers/mail/postfix/default.nix +++ b/pkgs/servers/mail/postfix/default.nix @@ -1,73 +1,93 @@ -{ stdenv, fetchurl, db, glibc, openssl, cyrus_sasl -, coreutils, findutils, gnused, gnugrep, bison, perl +{ stdenv, lib, fetchurl, makeWrapper, gnused, db, openssl, cyrus_sasl +, coreutils, findutils, gnugrep, gawk, icu, pcre +, withPgSQL ? false, postgresql +, withMySQL ? false, libmysql +, withSQLite ? false, sqlite }: -assert stdenv.isLinux; +let + ccargs = lib.concatStringsSep " " ([ + "-DUSE_TLS" "-DUSE_SASL_AUTH" "-DUSE_CYRUS_SASL" "-I${cyrus_sasl}/include/sasl" + "-DHAS_DB_BYPASS_MAKEDEFS_CHECK" + ] ++ lib.optional withPgSQL "-DHAS_PGSQL" + ++ lib.optionals withMySQL [ "-DHAS_MYSQL" "-I${libmysql}/include/mysql" ] + ++ lib.optional withSQLite "-DHAS_SQLITE"); + auxlibs = lib.concatStringsSep " " ([ + "-ldb" "-lnsl" "-lresolv" "-lsasl2" "-lcrypto" "-lssl" + ] ++ lib.optional withPgSQL "-lpq" + ++ lib.optional withMySQL "-lmysqlclient" + ++ lib.optional withSQLite "-lsqlite3"); -stdenv.mkDerivation rec { - name = "postfix-2.8.12"; +in stdenv.mkDerivation rec { + + name = "postfix-${version}"; + + version = "3.0.3"; src = fetchurl { url = "ftp://ftp.cs.uu.nl/mirror/postfix/postfix-release/official/${name}.tar.gz"; - sha256 = "11z07mjy53l1fnl7k4101yk4ilibgqr1164628mqcbmmr8bh2szl"; + sha256 = "00mc12k5p1zlrlqcf33vh5zizaqr5ai8q78dwv69smjh6kn4c7j0"; }; - buildInputs = [db openssl cyrus_sasl bison perl]; + buildInputs = [ makeWrapper gnused db openssl cyrus_sasl icu pcre ] + ++ lib.optional withPgSQL postgresql + ++ lib.optional withMySQL libmysql + ++ lib.optional withSQLite sqlite; hardeningDisable = [ "format" ]; hardeningEnable = [ "pie" ]; patches = [ - ./postfix-2.2.9-db.patch - ./postfix-2.2.9-lib.patch - ./db-linux3.patch ./postfix-script-shell.patch + ./postfix-3.0-no-warnings.patch + ./post-install-script.patch + ./relative-symlinks.patch ]; - postPatch = '' - sed -i -e s,/usr/bin,/var/run/current-system/sw/bin, \ - -e s,/usr/sbin,/var/run/current-system/sw/bin, \ - -e s,:/sbin,, src/util/sys_defs.h - ''; - preBuild = '' - export daemon_directory=$out/libexec/postfix + sed -e '/^PATH=/d' -i postfix-install + sed -e "s|@PACKAGE@|$out|" -i conf/post-install + + # post-install need skip permissions check/set on all symlinks following to /nix/store + sed -e "s|@NIX_STORE@|$NIX_STORE|" -i conf/post-install + export command_directory=$out/sbin - export queue_directory=/var/spool/postfix - export sendmail_path=$out/bin/sendmail - export mailq_path=$out/bin/mailq - export newaliases_path=$out/bin/newaliases + export config_directory=/etc/postfix + export meta_directory=$out/etc/postfix + export daemon_directory=$out/libexec/postfix + export data_directory=/var/lib/postfix/data export html_directory=$out/share/postfix/doc/html + export mailq_path=$out/bin/mailq export manpage_directory=$out/share/man - export sample_directory=$out/share/postfix/doc/samples + export newaliases_path=$out/bin/newaliases + export queue_directory=/var/lib/postfix/queue export readme_directory=$out/share/postfix/doc + export sendmail_path=$out/bin/sendmail - make makefiles CCARGS='-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${cyrus_sasl}/include/sasl' AUXLIBS='-lssl -lcrypto -lsasl2 -ldb -lnsl' + make makefiles CCARGS='${ccargs}' AUXLIBS='${auxlibs}' ''; - installPhase = '' - sed -e '/^PATH=/d' -i postfix-install - $SHELL postfix-install install_root=out -non-interactive -package - - mkdir -p $out - mv -v "out$out/"* $out/ + installTargets = [ "non-interactive-package" ]; - mkdir -p $out/share/postfix - mv conf $out/share/postfix/ - mv LICENSE TLS_LICENSE $out/share/postfix/ + installFlags = [ "install_root=installdir" ]; - sed -e 's@^PATH=.*@PATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:'$out'/sbin@' -i $out/share/postfix/conf/post-install $out/libexec/postfix/post-install - sed -e '2aPATH=${coreutils}/bin:${findutils}/bin:${gnused}/bin:${gnugrep}/bin:'$out'/sbin' -i $out/share/postfix/conf/postfix-script $out/libexec/postfix/postfix-script - chmod a+x $out/share/postfix/conf/{postfix-script,post-install} + postInstall = '' + mkdir -p $out + mv -v installdir/$out/* $out/ + cp -rv installdir/etc $out + sed -e '/^PATH=/d' -i $out/libexec/postfix/post-install + wrapProgram $out/libexec/postfix/post-install \ + --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin + wrapProgram $out/libexec/postfix/postfix-script \ + --prefix PATH ":" ${coreutils}/bin:${findutils}/bin:${gnugrep}/bin:${gawk}/bin:${gnused}/bin ''; - inherit glibc; - meta = { homepage = "http://www.postfix.org/"; - description = "a fast, easy to administer, and secure mail server"; - license = stdenv.lib.licenses.bsdOriginal; - platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.simons ]; + description = "A fast, easy to administer, and secure mail server"; + license = lib.licenses.bsdOriginal; + platforms = lib.platforms.linux; + maintainers = [ lib.maintainers.rickynils ]; }; + } diff --git a/pkgs/servers/mail/postfix/postfix-2.11.0.patch b/pkgs/servers/mail/postfix/postfix-2.11.0.patch deleted file mode 100644 index cdc4521c428..00000000000 --- a/pkgs/servers/mail/postfix/postfix-2.11.0.patch +++ /dev/null @@ -1,76 +0,0 @@ -diff -ruN postfix-2.11.0-orig/makedefs postfix-2.11.0/makedefs ---- postfix-2.11.0-orig/makedefs 2014-01-05 18:18:56.000000000 +0100 -+++ postfix-2.11.0/makedefs 2014-04-24 09:27:58.193869491 +0200 -@@ -290,36 +290,6 @@ - esac - ;; - Linux.2*) SYSTYPE=LINUX2 -- case "$CCARGS" in -- *-DNO_DB*) ;; -- *-DHAS_DB*) ;; -- *) if [ -f /usr/include/db.h ] -- then -- : we are all set -- elif [ -f /usr/include/db/db.h ] -- then -- CCARGS="$CCARGS -I/usr/include/db" -- else -- # No, we're not going to try db1 db2 db3 etc. -- # On a properly installed system, Postfix builds -- # by including <db.h> and by linking with -ldb -- echo "No <db.h> include file found." 1>&2 -- echo "Install the appropriate db*-devel package first." 1>&2 -- exit 1 -- fi -- SYSLIBS="-ldb" -- ;; -- esac -- for name in nsl resolv $GDBM_LIBS -- do -- for lib in /usr/lib64 /lib64 /usr/lib /lib -- do -- test -e $lib/lib$name.a -o -e $lib/lib$name.so && { -- SYSLIBS="$SYSLIBS -l$name" -- break -- } -- done -- done - # Kernel 2.4 added IPv6 - case "$RELEASE" in - 2.[0-3].*) CCARGS="$CCARGS -DNO_IPV6";; -@@ -363,35 +333,6 @@ - esac - ;; - Linux.3*) SYSTYPE=LINUX3 -- case "$CCARGS" in -- *-DNO_DB*) ;; -- *-DHAS_DB*) ;; -- *) if [ -f /usr/include/db.h ] -- then -- : we are all set -- elif [ -f /usr/include/db/db.h ] -- then -- CCARGS="$CCARGS -I/usr/include/db" -- else -- # On a properly installed system, Postfix builds -- # by including <db.h> and by linking with -ldb -- echo "No <db.h> include file found." 1>&2 -- echo "Install the appropriate db*-devel package first." 1>&2 -- exit 1 -- fi -- SYSLIBS="-ldb" -- ;; -- esac -- for name in nsl resolv -- do -- for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/* -- do -- test -e $lib/lib$name.a -o -e $lib/lib$name.so && { -- SYSLIBS="$SYSLIBS -l$name" -- break -- } -- done -- done - ;; - GNU.0*|GNU/kFreeBSD.[567]*) - SYSTYPE=GNU0 diff --git a/pkgs/servers/mail/postfix/postfix-2.2.9-db.patch b/pkgs/servers/mail/postfix/postfix-2.2.9-db.patch deleted file mode 100644 index 65f55ffd8f0..00000000000 --- a/pkgs/servers/mail/postfix/postfix-2.2.9-db.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -ruN postfix-2.2.9/makedefs postfix-2.2.9.new/makedefs ---- postfix-2.2.9/makedefs 2006-01-03 21:50:25.000000000 +0000 -+++ postfix-2.2.9.new/makedefs 2006-03-11 00:38:30.000000000 +0000 -@@ -219,21 +219,21 @@ - ;; - Linux.2*) SYSTYPE=LINUX2 - # Postfix no longer needs DB 1.85 compatibility -- if [ -f /usr/include/db.h ] -- then -- : we are all set -- elif [ -f /usr/include/db/db.h ] -- then -- CCARGS="$CCARGS -I/usr/include/db" -- else -- # No, we're not going to try db1 db2 db3 etc. -- # On a properly installed system, Postfix builds -- # by including <db.h> and by linking with -ldb -- echo "No <db.h> include file found." 1>&2 -- echo "Install the appropriate db*-devel package first." 1>&2 -- echo "See the RELEASE_NOTES file for more information." 1>&2 -- exit 1 -- fi -+ #if [ -f /usr/include/db.h ] -+ #then -+ #: we are all set -+ #elif [ -f /usr/include/db/db.h ] -+ #then -+ #CCARGS="$CCARGS -I/usr/include/db" -+ #else -+ ## No, we're not going to try db1 db2 db3 etc. -+ ## On a properly installed system, Postfix builds -+ ## by including <db.h> and by linking with -ldb -+ #echo "No <db.h> include file found." 1>&2 -+ #echo "Install the appropriate db*-devel package first." 1>&2 -+ #echo "See the RELEASE_NOTES file for more information." 1>&2 -+ #exit 1 -+ #fi - # GDBM locks the DBM .pag file after open. This breaks postmap. - # if [ -f /usr/include/gdbm-ndbm.h ] - # then diff --git a/pkgs/servers/mail/postfix/postfix-2.2.9-lib.patch b/pkgs/servers/mail/postfix/postfix-2.2.9-lib.patch deleted file mode 100644 index 03dcaa87f23..00000000000 --- a/pkgs/servers/mail/postfix/postfix-2.2.9-lib.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ruN postfix-2.2.9/makedefs postfix-2.2.9.new/makedefs ---- postfix-2.2.9/makedefs 2006-01-03 21:50:25.000000000 +0000 -+++ postfix-2.2.9.new/makedefs 2006-03-11 01:40:30.000000000 +0000 -@@ -247,7 +247,7 @@ - SYSLIBS="-ldb" - for name in nsl resolv $GDBM_LIBS - do -- for lib in /usr/lib64 /lib64 /usr/lib /lib -+ for lib in $glibc/usr/lib64 $glibc/lib64 $glibc/usr/lib $glibc/lib - do - test -e $lib/lib$name.a -o -e $lib/lib$name.so && { - SYSLIBS="$SYSLIBS -l$name" diff --git a/pkgs/servers/nosql/eventstore/default.nix b/pkgs/servers/nosql/eventstore/default.nix index a42212ade08..d58005f7be2 100644 --- a/pkgs/servers/nosql/eventstore/default.nix +++ b/pkgs/servers/nosql/eventstore/default.nix @@ -1,34 +1,26 @@ -{ stdenv, fetchFromGitHub, fetchpatch, git, mono, v8, icu }: +{ stdenv, fetchFromGitHub, fetchpatch, mono, v8 }: # There are some similarities with the pinta derivation. We should # have a helper to make it easy to package these Mono apps. stdenv.mkDerivation rec { name = "EventStore-${version}"; - version = "3.0.3"; + version = "3.5.0"; src = fetchFromGitHub { owner = "EventStore"; repo = "EventStore"; rev = "oss-v${version}"; - sha256 = "1xz1dpnbkqqd3ph9g3z5cghr8zp14sr9y31lrdjrdydr3gm4sll2"; + sha256 = "0dp5914hxwdzw62q49wavqfqkw3jy0dvml09y7gh8frnbiajcxq9"; }; - patches = [ - # see: https://github.com/EventStore/EventStore/issues/461 - (fetchpatch { - url = https://github.com/EventStore/EventStore/commit/9a0987f19935178df143a3cf876becaa1b11ffae.patch; - sha256 = "04qw0rb1pypa8dqvj94j2mwkc1y6b40zrpkn1d3zfci3k8cam79y"; - }) - ]; - buildPhase = '' - ln -s ${v8}/lib/libv8.so src/libs/libv8.so - ln -s ${icu}/lib/libicui18n.so src/libs/libicui18n.so - ln -s ${icu}/lib/libicuuc.so src/libs/libicuuc.so + mkdir -p src/libs/x64/nixos + pushd src/EventStore.Projections.v8Integration + cc -o ../libs/x64/nixos/libjs1.so -fPIC -lv8 -shared -std=c++0x *.cpp + popd patchShebangs build.sh - ./build.sh js1 - ./build.sh quick ${version} + ./build.sh ${version} release nixos ''; installPhase = '' @@ -41,8 +33,9 @@ stdenv.mkDerivation rec { chmod +x $out/bin/clusternode ''; - buildInputs = [ git v8 mono ]; + buildInputs = [ v8 mono ]; + phases = [ "unpackPhase" "buildPhase" "installPhase" ]; dontStrip = true; meta = { @@ -50,6 +43,6 @@ stdenv.mkDerivation rec { description = "Event sourcing database with processing logic in JavaScript"; license = stdenv.lib.licenses.bsd3; maintainers = with stdenv.lib.maintainers; [ puffnfresh ]; - platforms = with stdenv.lib.platforms; linux; + platforms = [ "x86_64-linux" ]; }; } diff --git a/pkgs/servers/owncloud/default.nix b/pkgs/servers/owncloud/default.nix index 092e9c3ff3e..4e4424c5b00 100644 --- a/pkgs/servers/owncloud/default.nix +++ b/pkgs/servers/owncloud/default.nix @@ -56,4 +56,9 @@ in { sha256 = "d5b935f904744b8b40b310f19679702387c852498d0dc7aaeda4555a3db9ad5b"; }; + owncloud90 = common { + versiona = "9.0.0"; + sha256 = "0z57lc6z1h7yn1sa26q8qnhjxyjn0ydy3mf4yy4i9a3p198kfryi"; + }; + } diff --git a/pkgs/servers/plex/default.nix b/pkgs/servers/plex/default.nix index 799fea0fe50..672e441875a 100644 --- a/pkgs/servers/plex/default.nix +++ b/pkgs/servers/plex/default.nix @@ -5,9 +5,9 @@ let plexpkg = if enablePlexPass then { - version = "0.9.15.6.1714"; - vsnHash = "7be11e1"; - sha256 = "1kyk41qnbm8w5bvnisp3d99cf0r72wvlggfi9h4np7sq4p8ksa0g"; + version = "0.9.16.0.1754"; + vsnHash = "23623fb"; + sha256 = "0yn5bqpgz28ig6y3qw3zxzm8gfvwaw7nh5krmav8h1ryws98cc6g"; } else { version = "0.9.15.6.1714"; vsnHash = "7be11e1"; diff --git a/pkgs/servers/samba/4.x.nix b/pkgs/servers/samba/4.x.nix index 4ef47122c28..0f3b9bb7a65 100644 --- a/pkgs/servers/samba/4.x.nix +++ b/pkgs/servers/samba/4.x.nix @@ -18,11 +18,11 @@ with lib; stdenv.mkDerivation rec { - name = "samba-4.3.1"; + name = "samba-4.3.6"; src = fetchurl { url = "mirror://samba/pub/samba/stable/${name}.tar.gz"; - sha256 = "10ic9pxsk3ml5ycmi0bql8wraxhbr2l4fhzd0qwmiqmrjl6sh24r"; + sha256 = "0929fpk2pq4v389naai519xvsm9bzpar4jlgjxwlx1cnn6jyql9j"; }; patches = diff --git a/pkgs/servers/sql/mysql/jdbc/default.nix b/pkgs/servers/sql/mysql/jdbc/default.nix index 59643fa3e00..e6c66707c4e 100644 --- a/pkgs/servers/sql/mysql/jdbc/default.nix +++ b/pkgs/servers/sql/mysql/jdbc/default.nix @@ -1,12 +1,12 @@ {stdenv, fetchurl, ant, unzip}: stdenv.mkDerivation { - name = "mysql-connector-java-5.1.32"; + name = "mysql-connector-java-5.1.38"; builder = ./builder.sh; src = fetchurl { - url = http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.32.zip; - sha256 = "11vjwws1pa8fdwn86rrmqdwsq3ld3sh2r0pp4lpr2gxw0w18ykc7"; + url = http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.38.zip; + sha256 = "0b1j2dylnpk6b17gn3168qdrrwq8kdil57nxrd08n1lnkirdsx33"; }; buildInputs = [ unzip ant ]; |