2019-06-16 19:59:06 +00:00
|
|
|
{ stdenv, fetchurl }:
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
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 {
|
|
|
|
version = "17.0.4";
|
|
|
|
sha256 = "0cj5mng0nmj3hz30pyz3g19kj3mkm5ca8si3sw3arv61dmw6c5g6";
|
|
|
|
};
|
2016-09-21 15:55:38 +00:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
nextcloud18 = generic {
|
2020-03-29 21:53:28 +00:00
|
|
|
version = "18.0.3";
|
|
|
|
sha256 = "0wpxa35zj81i541j3cjq6klsjwwc5slryzvjjl7zjc32004yfrvv";
|
2016-09-21 15:55:38 +00:00
|
|
|
};
|
|
|
|
}
|