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