From 7864cfca4604515c1bd2708513d2bc0ae3180476 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 21 Sep 2016 17:55:38 +0200 Subject: [PATCH 1/2] nextcloud: init at 10.0.0 --- pkgs/servers/nextcloud/default.nix | 31 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/servers/nextcloud/default.nix diff --git a/pkgs/servers/nextcloud/default.nix b/pkgs/servers/nextcloud/default.nix new file mode 100644 index 000000000000..1d56c30fdf66 --- /dev/null +++ b/pkgs/servers/nextcloud/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, fetchpatch }: + +stdenv.mkDerivation rec { + name= "nextcloud-${version}"; + version = "10.0.0"; + + src = fetchurl { + url = "https://download.nextcloud.com/server/releases/${name}.tar.bz2"; + sha256 = "07vnhw3xrady7p7y2hc3sm9bcdj21gxyx9rwgawmy28019y1gahs"; + }; + + patches = [ + (fetchpatch { + name = "env-variable.patch"; + url = "https://github.com/nextcloud/server/commit/4277051442c2b6025da936493cb674dcf754d34c.patch"; + sha256 = "1r1xcka9j9n0mkvj2nnhlwvhzicv9jjnxcszxs5g5ji88i1y0md2"; + }) # exposes $NEXTCLOUD_CONFIG_DIR for Nextcloud 10 and below + ]; + + installPhase = '' + mkdir -p $out/ + cp -R ./* $out/ + ''; + + meta = { + description = "Sharing solution for files, calendars, contacts and more"; + homepage = https://nextcloud.com; + license = stdenv.lib.licenses.agpl3Plus; + platforms = with stdenv.lib.platforms; unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 592b52df4dee..22290d2d95c8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2805,6 +2805,8 @@ in newsbeuter-dev = callPackage ../applications/networking/feedreaders/newsbeuter/dev.nix { }; + nextcloud = callPackage ../servers/nextcloud { }; + ngrep = callPackage ../tools/networking/ngrep { }; ngrok = callPackage ../tools/networking/ngrok { }; From 9cab11980b3854a27deb3700b1988166f78a1735 Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 21 Sep 2016 18:03:14 +0200 Subject: [PATCH 2/2] maintainers: add schneefux --- lib/maintainers.nix | 1 + pkgs/servers/mail/postfix/pflogsumm.nix | 1 + pkgs/servers/nextcloud/default.nix | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 24b87a5f36a0..78dd79bb308e 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -367,6 +367,7 @@ samuelrivas = "Samuel Rivas "; sander = "Sander van der Burg "; schmitthenner = "Fabian Schmitthenner "; + schneefux = "schneefux "; schristo = "Scott Christopher "; scolobb = "Sergiu Ivanov "; sepi = "Raffael Mancini "; diff --git a/pkgs/servers/mail/postfix/pflogsumm.nix b/pkgs/servers/mail/postfix/pflogsumm.nix index f73a22e130ab..978ccec503d2 100644 --- a/pkgs/servers/mail/postfix/pflogsumm.nix +++ b/pkgs/servers/mail/postfix/pflogsumm.nix @@ -28,6 +28,7 @@ buildPerlPackage rec { meta = { homepage = "http://jimsun.linxnet.com/postfix_contrib.html"; + maintainers = with stdenv.lib.maintainers; [ schneefux ]; description = "Postfix activity overview"; license = stdenv.lib.licenses.gpl2Plus; }; diff --git a/pkgs/servers/nextcloud/default.nix b/pkgs/servers/nextcloud/default.nix index 1d56c30fdf66..bb2735461e00 100644 --- a/pkgs/servers/nextcloud/default.nix +++ b/pkgs/servers/nextcloud/default.nix @@ -25,6 +25,7 @@ stdenv.mkDerivation rec { meta = { description = "Sharing solution for files, calendars, contacts and more"; homepage = https://nextcloud.com; + maintainers = with stdenv.lib.maintainers; [ schneefux ]; license = stdenv.lib.licenses.agpl3Plus; platforms = with stdenv.lib.platforms; unix; };