2020-04-15 21:14:04 +01:00
|
|
|
{ stdenv, fetchurl, nixosTests }:
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
let
|
|
|
|
generic = { version, sha256, insecure ? false }: stdenv.mkDerivation rec {
|
|
|
|
pname = "nextcloud";
|
|
|
|
inherit version;
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.nextcloud.com/server/releases/${pname}-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2020-04-15 21:14:04 +01:00
|
|
|
passthru.tests = nixosTests.nextcloud;
|
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
|
|
|
'';
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sharing solution for files, calendars, contacts and more";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nextcloud.com";
|
2020-03-14 03:07:30 +00:00
|
|
|
maintainers = with maintainers; [ schneefux bachp globin fpletz ma27 ];
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
knownVulnerabilities = optional insecure "Nextcloud version ${version} is EOL";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
2020-09-20 18:06:37 +01:00
|
|
|
nextcloud17 = throw ''
|
|
|
|
Nextcloud v17 has been removed from `nixpkgs` as the support for it will be dropped
|
|
|
|
by upstream within the lifetime of NixOS 20.09[1]. Please upgrade to Nextcloud v18 by
|
|
|
|
declaring
|
|
|
|
|
|
|
|
services.nextcloud.package = pkgs.nextcloud18;
|
|
|
|
|
|
|
|
in your NixOS config.
|
|
|
|
|
|
|
|
[1] https://docs.nextcloud.com/server/18/admin_manual/release_schedule.html
|
|
|
|
'';
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
nextcloud18 = generic {
|
2020-09-11 10:30:17 +01:00
|
|
|
version = "18.0.9";
|
|
|
|
sha256 = "0rigg5pv2vnxgmjznlvxfc41s00raxa8jhib5vsznhj55qn99jm1";
|
2020-09-20 18:06:37 +01:00
|
|
|
insecure = true;
|
2016-09-21 16:55:38 +01:00
|
|
|
};
|
2020-06-03 16:17:04 +01:00
|
|
|
|
|
|
|
nextcloud19 = generic {
|
2020-09-11 10:30:44 +01:00
|
|
|
version = "19.0.3";
|
|
|
|
sha256 = "0sc9cnsdh8kj60h7i3knh40ngdz1w1wmdqw2v2axfkmax22kjl7w";
|
2020-06-03 16:17:04 +01:00
|
|
|
};
|
2020-10-04 20:55:58 +01:00
|
|
|
|
|
|
|
nextcloud20 = generic {
|
|
|
|
version = "20.0.0";
|
|
|
|
sha256 = "1n2cv1i56g6qpzkbl5xaf420zzr4y7isg0lskmr7ymk83way0wx2";
|
|
|
|
};
|
2016-09-21 16:55:38 +01:00
|
|
|
}
|