Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82353 from Ma27/nextcloud-upgrade-path
nixos/nextcloud: fix upgrade path from 19.09 to 20.03
- Loading branch information
Showing
5 changed files
with
165 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,37 @@ | ||
{ stdenv, fetchurl }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "nextcloud"; | ||
version = "18.0.2"; | ||
let | ||
generic = { version, sha256, insecure ? false }: stdenv.mkDerivation rec { | ||
pname = "nextcloud"; | ||
inherit version; | ||
|
||
src = fetchurl { | ||
url = "https://download.nextcloud.com/server/releases/${pname}-${version}.tar.bz2"; | ||
sha256 = "10fbdq0366iai2kpw6v6p78mnn9gz8x0xzsbqrp109yx4c4nccyh"; | ||
}; | ||
src = fetchurl { | ||
url = "https://download.nextcloud.com/server/releases/${pname}-${version}.tar.bz2"; | ||
inherit sha256; | ||
}; | ||
|
||
installPhase = '' | ||
mkdir -p $out/ | ||
cp -R . $out/ | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/ | ||
cp -R . $out/ | ||
''; | ||
meta = with stdenv.lib; { | ||
description = "Sharing solution for files, calendars, contacts and more"; | ||
homepage = https://nextcloud.com; | ||
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"; | ||
}; | ||
|
||
meta = { | ||
description = "Sharing solution for files, calendars, contacts and more"; | ||
homepage = https://nextcloud.com; | ||
maintainers = with stdenv.lib.maintainers; [ schneefux bachp globin fpletz ]; | ||
license = stdenv.lib.licenses.agpl3Plus; | ||
platforms = with stdenv.lib.platforms; unix; | ||
nextcloud18 = generic { | ||
version = "18.0.2"; | ||
sha256 = "10fbdq0366iai2kpw6v6p78mnn9gz8x0xzsbqrp109yx4c4nccyh"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters