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