mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
Changelog: https://nextcloud.com/changelog/#33-0-4
(cherry picked from commit b5ea2fd1b0)
78 lines
1.9 KiB
Nix
78 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
nixosTests,
|
|
nextcloud31Packages,
|
|
nextcloud32Packages,
|
|
nextcloud33Packages,
|
|
}:
|
|
|
|
let
|
|
generic =
|
|
{
|
|
version,
|
|
hash,
|
|
eol ? false,
|
|
extraVulnerabilities ? [ ],
|
|
packages,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "nextcloud";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2";
|
|
inherit hash;
|
|
};
|
|
|
|
passthru = {
|
|
tests = lib.filterAttrs (
|
|
key: _: (lib.hasSuffix (lib.versions.major version) key)
|
|
) nixosTests.nextcloud;
|
|
inherit packages;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/
|
|
cp -R . $out/
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://nextcloud.com/changelog/#${lib.replaceStrings [ "." ] [ "-" ] version}";
|
|
description = "Sharing solution for files, calendars, contacts and more";
|
|
homepage = "https://nextcloud.com";
|
|
teams = [ lib.teams.nextcloud ];
|
|
license = lib.licenses.agpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
knownVulnerabilities =
|
|
extraVulnerabilities ++ (lib.optional eol "Nextcloud version ${version} is EOL");
|
|
};
|
|
};
|
|
in
|
|
{
|
|
nextcloud31 = generic {
|
|
version = "31.0.14";
|
|
hash = "sha256-0JZessv2gQV0PLvm7vQEyJCSz5LEDa7iycuc9u32NhM=";
|
|
packages = nextcloud31Packages;
|
|
eol = true;
|
|
};
|
|
|
|
nextcloud32 = generic {
|
|
version = "32.0.10";
|
|
hash = "sha256-D/zIqDOIJezowzco7gzaTvjquI6Pu80Z9IsE4t0KNXo=";
|
|
packages = nextcloud32Packages;
|
|
};
|
|
|
|
nextcloud33 = generic {
|
|
version = "33.0.4";
|
|
hash = "sha256-9LHNbdBSXGuoiPLMHw8fU3mdbRfLDXz2YFQuxMvNenI=";
|
|
packages = nextcloud33Packages;
|
|
};
|
|
|
|
# tip: get the sha with:
|
|
# curl 'https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2.sha256'
|
|
}
|