2020-04-15 20:14:04 +00:00
|
|
|
{ stdenv, fetchurl, nixosTests }:
|
2016-09-21 15:55:38 +00: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 15:55:38 +00: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 20:14:04 +00:00
|
|
|
passthru.tests = nixosTests.nextcloud;
|
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
|
|
|
'';
|
2016-09-21 15:55:38 +00: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 01:11:51 +00: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 {
|
|
|
|
nextcloud17 = generic {
|
2020-05-18 18:00:43 +00:00
|
|
|
version = "17.0.6";
|
|
|
|
sha256 = "0qq7lkgzsn1zakfym5bjqzpcisxmgfcdd927ddqlhddy3zvgxrxx";
|
2020-03-14 03:07:30 +00:00
|
|
|
};
|
2016-09-21 15:55:38 +00:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
nextcloud18 = generic {
|
2020-05-18 18:06:01 +00:00
|
|
|
version = "18.0.4";
|
|
|
|
sha256 = "0aa3f4xbkzacfw0h9aic0ywk5mqlwka83qaszizj8lmk68kf3n7s";
|
2016-09-21 15:55:38 +00:00
|
|
|
};
|
|
|
|
}
|