2023-10-09 16:43:06 +01:00
|
|
|
{ lib, stdenvNoCC, fetchurl, nixosTests
|
2023-12-13 00:07:10 +00:00
|
|
|
, nextcloud28Packages
|
2024-04-24 18:31:02 +01:00
|
|
|
, nextcloud29Packages
|
2023-06-16 15:46:29 +01:00
|
|
|
}:
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
let
|
2020-12-10 19:57:42 +00:00
|
|
|
generic = {
|
2023-09-18 17:11:36 +01:00
|
|
|
version, hash
|
2023-06-16 15:46:29 +01:00
|
|
|
, eol ? false, extraVulnerabilities ? []
|
|
|
|
, packages
|
2023-10-09 16:43:06 +01:00
|
|
|
}: stdenvNoCC.mkDerivation rec {
|
2020-03-14 03:07:30 +00:00
|
|
|
pname = "nextcloud";
|
|
|
|
inherit version;
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
src = fetchurl {
|
2023-01-28 21:01:42 +00:00
|
|
|
url = "https://download.nextcloud.com/server/releases/${pname}-${version}.tar.bz2";
|
2023-09-18 17:11:36 +01:00
|
|
|
inherit hash;
|
2020-03-14 03:07:30 +00:00
|
|
|
};
|
|
|
|
|
2023-06-16 15:46:29 +01:00
|
|
|
passthru = {
|
|
|
|
tests = nixosTests.nextcloud;
|
|
|
|
inherit packages;
|
|
|
|
};
|
2020-04-15 21:14:04 +01:00
|
|
|
|
2020-03-14 03:07:30 +00:00
|
|
|
installPhase = ''
|
2021-05-21 09:31:38 +01:00
|
|
|
runHook preInstall
|
2020-03-14 03:07:30 +00:00
|
|
|
mkdir -p $out/
|
|
|
|
cp -R . $out/
|
2021-05-21 09:31:38 +01:00
|
|
|
runHook postInstall
|
2020-03-14 03:07:30 +00:00
|
|
|
'';
|
2016-09-21 16:55:38 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-02-23 16:57:40 +00:00
|
|
|
changelog = "https://nextcloud.com/changelog/#${lib.replaceStrings [ "." ] [ "-" ] version}";
|
2020-03-14 03:07:30 +00:00
|
|
|
description = "Sharing solution for files, calendars, contacts and more";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://nextcloud.com";
|
2022-08-03 13:13:56 +01:00
|
|
|
maintainers = with maintainers; [ schneefux bachp globin ma27 ];
|
2020-03-14 03:07:30 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2024-01-26 10:44:30 +00:00
|
|
|
platforms = platforms.linux;
|
2020-12-10 19:57:42 +00:00
|
|
|
knownVulnerabilities = extraVulnerabilities
|
|
|
|
++ (optional eol "Nextcloud version ${version} is EOL");
|
2020-03-14 03:07:30 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in {
|
2023-12-13 00:07:10 +00:00
|
|
|
nextcloud28 = generic {
|
2024-09-12 22:55:57 +01:00
|
|
|
version = "28.0.10";
|
|
|
|
hash = "sha256-LoAVJtKJHBhf6sWYXL084pLOcKQl9Tb5GfkBuftMwhA=";
|
2023-12-13 00:07:10 +00:00
|
|
|
packages = nextcloud28Packages;
|
|
|
|
};
|
|
|
|
|
2024-04-24 18:31:13 +01:00
|
|
|
nextcloud29 = generic {
|
2024-09-03 11:41:26 +01:00
|
|
|
version = "29.0.6";
|
|
|
|
hash = "sha256-3GC+A/0X4wuv7ypNT+stCWqnekxrTyHJhXYOU3+EAeM=";
|
2024-04-24 18:31:13 +01:00
|
|
|
packages = nextcloud29Packages;
|
|
|
|
};
|
|
|
|
|
2023-01-28 21:01:42 +00:00
|
|
|
# tip: get the sha with:
|
|
|
|
# curl 'https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2.sha256'
|
2016-09-21 16:55:38 +01:00
|
|
|
}
|