--- /dev/null
+{ buildApp, nextcloudVersion }:
+let
+ notes_4_2_0 = buildApp rec {
+ appName = "notes";
+ version = "4.2.0";
+ url = "https://github.com/nextcloud/${appName}/releases/download/v${version}/${appName}.tar.gz";
+ sha256 = "0f5p65rb86g38qq6ybf7gakzp1a81h09szg7hypby8nm5vic3ly0";
+ };
+ versions = {
+ "20" = notes_4_2_0;
+ "21" = notes_4_2_0;
+ "22" = notes_4_2_0;
+ "23" = notes_4_2_0;
+ };
+in
+ versions."${builtins.toString nextcloudVersion}" or (throw "Unsupported version for nextcloud app notes")