]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - flakes/mypackages/pkgs/webapps/nextcloud/apps/files_markdown.nix
Switch to colemna
[perso/Immae/Config/Nix.git] / flakes / mypackages / pkgs / webapps / nextcloud / apps / files_markdown.nix
1 { buildApp, nextcloudVersion }:
2 let
3 files_markdown_2_3_4 = buildApp rec {
4 appName = "files_markdown";
5 version = "2.3.4";
6 url = "https://github.com/icewind1991/${appName}/releases/download/v${version}/${appName}.tar.gz";
7 sha256 = "09chqlqcyyi9mb3cpjwa3b56sj6ah88119q6v7hvabfpdr41fljf";
8 };
9 files_markdown_2_3_5 = buildApp rec {
10 appName = "files_markdown";
11 version = "2.3.5";
12 url = "https://github.com/icewind1991/${appName}/releases/download/v${version}/${appName}.tar.gz";
13 sha256 = "1g6qlf3qbhfl3q0zwwd77y0fkw35fg2a4whhbfvhc5c2nik9zqnb";
14 };
15 versions = {
16 "20" = files_markdown_2_3_4;
17 "21" = files_markdown_2_3_5;
18 "22" = files_markdown_2_3_5;
19 "23" = files_markdown_2_3_5;
20 };
21 in
22 versions."${builtins.toString nextcloudVersion}" or (throw "Unsupported version for nextcloud app files_markdown")