2020-04-15 22:14:04 +02:00
|
|
|
{ stdenv, fetchurl, nixosTests }:
|
2016-09-21 17:55:38 +02:00
|
|
|
|
2020-03-14 04:07:30 +01:00
|
|
|
let
|
|
|
|
generic = { version, sha256, insecure ? false }: stdenv.mkDerivation rec {
|
|
|
|
pname = "nextcloud";
|
|
|
|
inherit version;
|
2016-09-21 17:55:38 +02:00
|
|
|
|
2020-03-14 04:07:30 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.nextcloud.com/server/releases/${pname}-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
2020-04-15 22:14:04 +02:00
|
|
|
passthru.tests = nixosTests.nextcloud;
|
|
|
|
|
2020-03-14 04:07:30 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
|
|
|
'';
|
2016-09-21 17:55:38 +02:00
|
|
|
|
2020-03-14 04:07:30 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sharing solution for files, calendars, contacts and more";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://nextcloud.com";
|
2020-03-14 04:07:30 +01: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 {
|
|
|
|
nextcloud17 = generic {
|
2020-05-18 20:00:43 +02:00
|
|
|
version = "17.0.6";
|
|
|
|
sha256 = "0qq7lkgzsn1zakfym5bjqzpcisxmgfcdd927ddqlhddy3zvgxrxx";
|
2020-03-14 04:07:30 +01:00
|
|
|
};
|
2016-09-21 17:55:38 +02:00
|
|
|
|
2020-03-14 04:07:30 +01:00
|
|
|
nextcloud18 = generic {
|
2020-06-14 01:54:03 +02:00
|
|
|
version = "18.0.6";
|
|
|
|
sha256 = "1chmkg31jc1nr53y8r886mmd2jzb78094mrx7ggcfpjfkkv8b89s";
|
2016-09-21 17:55:38 +02:00
|
|
|
};
|
2020-06-03 17:17:04 +02:00
|
|
|
|
|
|
|
nextcloud19 = generic {
|
|
|
|
version = "19.0.0";
|
|
|
|
sha256 = "1bhazqj5f02sclh5pmifzqfahhhfqypixbvkgrnlgqy5ayb44gfj";
|
|
|
|
};
|
2016-09-21 17:55:38 +02:00
|
|
|
}
|