nextcloud: Fetch apps using nvfetcher

This commit is contained in:
Tristan Daniël Maat 2022-10-17 11:00:02 +01:00
parent c4fa991b62
commit 61d3008bc3
Signed by: tlater
GPG key ID: 49670FD774E43268
9 changed files with 318 additions and 66 deletions

View file

@ -0,0 +1,107 @@
{
"apporder": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "apporder",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-2y2FHxli9mqlPvw9mABi09Z96OfB1AFD+XmuV5aOCxY=",
"type": "url",
"url": "https://github.com/juliushaertl/apporder/archive/v0.15.0.tar.gz"
},
"version": "v0.15.0"
},
"bookmarks": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "bookmarks",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-X6Mg0jQ8EYPctiZ3tDtG4LUPwXRnDj9CJrJZrUs3Z/8=",
"type": "url",
"url": "https://github.com/nextcloud/bookmarks/archive/v11.0.4.tar.gz"
},
"version": "v11.0.4"
},
"calendar": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "calendar",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-keeWi/o+mOV7z5QNATJKwrd0olbCNdrK7YpGHg9qolk=",
"type": "url",
"url": "https://github.com/nextcloud-releases/calendar/archive/v3.5.0.tar.gz"
},
"version": "v3.5.0"
},
"contacts": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "contacts",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-4dEEy8zSjZYsClO6u+oWfvIlPYJq9+m1+a/mHTQRlaY=",
"type": "url",
"url": "https://github.com/nextcloud-releases/contacts/archive/v4.2.2.tar.gz"
},
"version": "v4.2.2"
},
"cookbook": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "cookbook",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-TkUCCa7wP6leQbTsxKgD21Tf9CONVnbmvXCFhVBITZw=",
"type": "url",
"url": "https://github.com/nextcloud/cookbook/archive/v0.9.15.tar.gz"
},
"version": "v0.9.15"
},
"news": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "news",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-eS0cFwJmYfGGJmA02AOWO/OXfqfyI71u2GataDj18DE=",
"type": "url",
"url": "https://github.com/nextcloud/news/releases/download/18.2.0/news.tar.gz"
},
"version": "18.2.0"
},
"notes": {
"cargoLocks": null,
"date": null,
"extract": null,
"name": "notes",
"passthru": null,
"pinned": false,
"src": {
"name": null,
"sha256": "sha256-qhhaQyb9LgLza4CAcNZbl97xa271M7Wqmw8TtBEFpXk=",
"type": "url",
"url": "https://github.com/nextcloud/notes/archive/v4.5.1.tar.gz"
},
"version": "v4.5.1"
}
}

View file

@ -0,0 +1,60 @@
# This file was generated by nvfetcher, please do not modify it manually.
{ fetchgit, fetchurl, fetchFromGitHub }:
{
apporder = {
pname = "apporder";
version = "v0.15.0";
src = fetchurl {
url = "https://github.com/juliushaertl/apporder/archive/v0.15.0.tar.gz";
sha256 = "sha256-2y2FHxli9mqlPvw9mABi09Z96OfB1AFD+XmuV5aOCxY=";
};
};
bookmarks = {
pname = "bookmarks";
version = "v11.0.4";
src = fetchurl {
url = "https://github.com/nextcloud/bookmarks/archive/v11.0.4.tar.gz";
sha256 = "sha256-X6Mg0jQ8EYPctiZ3tDtG4LUPwXRnDj9CJrJZrUs3Z/8=";
};
};
calendar = {
pname = "calendar";
version = "v3.5.0";
src = fetchurl {
url = "https://github.com/nextcloud-releases/calendar/archive/v3.5.0.tar.gz";
sha256 = "sha256-keeWi/o+mOV7z5QNATJKwrd0olbCNdrK7YpGHg9qolk=";
};
};
contacts = {
pname = "contacts";
version = "v4.2.2";
src = fetchurl {
url = "https://github.com/nextcloud-releases/contacts/archive/v4.2.2.tar.gz";
sha256 = "sha256-4dEEy8zSjZYsClO6u+oWfvIlPYJq9+m1+a/mHTQRlaY=";
};
};
cookbook = {
pname = "cookbook";
version = "v0.9.15";
src = fetchurl {
url = "https://github.com/nextcloud/cookbook/archive/v0.9.15.tar.gz";
sha256 = "sha256-TkUCCa7wP6leQbTsxKgD21Tf9CONVnbmvXCFhVBITZw=";
};
};
news = {
pname = "news";
version = "18.2.0";
src = fetchurl {
url = "https://github.com/nextcloud/news/releases/download/18.2.0/news.tar.gz";
sha256 = "sha256-eS0cFwJmYfGGJmA02AOWO/OXfqfyI71u2GataDj18DE=";
};
};
notes = {
pname = "notes";
version = "v4.5.1";
src = fetchurl {
url = "https://github.com/nextcloud/notes/archive/v4.5.1.tar.gz";
sha256 = "sha256-qhhaQyb9LgLza4CAcNZbl97xa271M7Wqmw8TtBEFpXk=";
};
};
}

View file

@ -1,5 +1,18 @@
{pkgs, ...}: let
{
pkgs,
lib,
}: let
inherit (builtins) listToAttrs mapAttrs;
inherit (pkgs) callPackage;
in {
starbound = callPackage ./starbound {};
}
in
{
starbound = callPackage ./starbound {};
}
// (
# Add nextcloud apps
let
mkNextcloudApp = pkgs.callPackage ./mkNextcloudApp.nix {};
sources = pkgs.callPackage ./_sources_nextcloud/generated.nix {};
in
mapAttrs (_: source: mkNextcloudApp source) sources
)

13
pkgs/mkNextcloudApp.nix Normal file
View file

@ -0,0 +1,13 @@
{
fetchNextcloudApp,
lib,
}: let
inherit (lib) removePrefix;
in
source:
fetchNextcloudApp {
name = source.pname;
version = removePrefix "v" source.version;
url = source.src.url;
sha256 = source.src.outputHash;
}

32
pkgs/nextcloud-apps.toml Normal file
View file

@ -0,0 +1,32 @@
[apporder]
src.github = "juliushaertl/apporder"
fetch.url = "https://github.com/juliushaertl/apporder/archive/$ver.tar.gz"
[bookmarks]
src.github = "nextcloud/bookmarks"
fetch.url = "https://github.com/nextcloud/bookmarks/archive/$ver.tar.gz"
[calendar]
src.manual = "v3.5.0" # Pinned until we update to nextcloud 25
# src.github = "nextcloud-releases/calendar"
fetch.url = "https://github.com/nextcloud-releases/calendar/archive/$ver.tar.gz"
[contacts]
src.manual = "v4.2.2" # Pinned until we update to nextcloud 25
# src.github = "nextcloud-releases/contacts"
fetch.url = "https://github.com/nextcloud-releases/contacts/archive/$ver.tar.gz"
[cookbook]
src.github = "nextcloud/cookbook"
fetch.url = "https://github.com/nextcloud/cookbook/archive/$ver.tar.gz"
[news]
src.github = "nextcloud/news"
# Sadly, the news app vendors things, and those are only included in
# their tarball.
fetch.url = "https://github.com/nextcloud/news/releases/download/$ver/news.tar.gz"
[notes]
src.manual = "v4.5.1" # Pinned until we update to nextcloud 25
# src.github = "nextcloud/notes"
fetch.url = "https://github.com/nextcloud/notes/archive/$ver.tar.gz"