From b34c7101bf475836cc68c6417c8295ba9e1aac02 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Thu, 28 Mar 2024 22:49:52 +0100 Subject: [PATCH] pkgs: Add NGI metadata --- pkgs/by-name/flarum/package.nix | 11 ++--------- pkgs/by-name/kbin/package.nix | 10 ++++++++++ pkgs/by-name/rosenpass/package.nix | 4 ++++ pkgs/pretalx/default.nix | 4 ++-- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/flarum/package.nix b/pkgs/by-name/flarum/package.nix index 0b5635258..2dda5a6ae 100644 --- a/pkgs/by-name/flarum/package.nix +++ b/pkgs/by-name/flarum/package.nix @@ -1,15 +1,8 @@ { fetchFromGitHub, - fetchurl, lib, php, -}: let - inherit - (lib) - licenses - ; -in - php.buildComposerProject (finalAttrs: { +}: php.buildComposerProject (finalAttrs: { pname = "flarum"; version = "1.8.0"; @@ -31,7 +24,7 @@ in license = lib.licenses.mit; ngi = { project = "Flarum"; - options = [["services" finalAttrs.pname]]; + options = [["services" "flarum"]]; }; }; }) diff --git a/pkgs/by-name/kbin/package.nix b/pkgs/by-name/kbin/package.nix index 1067c08dd..de6e4935a 100644 --- a/pkgs/by-name/kbin/package.nix +++ b/pkgs/by-name/kbin/package.nix @@ -1,4 +1,5 @@ { + lib, runCommand, kbin-frontend, kbin-backend, @@ -13,6 +14,15 @@ runCommand "kbin" { inherit (nixosTests) kbin; }; }; + meta = { + license = lib.licenses.agpl3Only; + homepage = "https://kbin.pub/"; + description = "/kbin is a modular, decentralized content aggregator and microblogging platform running on the Fediverse network."; + ngi = { + project = "Kbin"; + options = [["services" "kbin"]]; + }; + }; } '' # As of 2023-10-09, there is no way to just symlink # backend and frontend (using `lndir`): diff --git a/pkgs/by-name/rosenpass/package.nix b/pkgs/by-name/rosenpass/package.nix index c4945b2af..3989395c4 100644 --- a/pkgs/by-name/rosenpass/package.nix +++ b/pkgs/by-name/rosenpass/package.nix @@ -63,5 +63,9 @@ in maintainers = with maintainers; [wucke13]; platforms = ["aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux"]; mainProgram = "rosenpass"; + ngi = { + project = "Rosenpass"; + options = [["services" "rosenpass"]]; + }; }; } diff --git a/pkgs/pretalx/default.nix b/pkgs/pretalx/default.nix index f92415c59..f92c7d30b 100644 --- a/pkgs/pretalx/default.nix +++ b/pkgs/pretalx/default.nix @@ -186,8 +186,8 @@ in ] ++ (with (import ../../maintainers/maintainers-list.nix); [augustebaum kubaneko]); ngi = { - project = "Rosenpass"; - options = [["services" pname]]; + project = "Pretalx"; + options = [["services" "pretalx"]]; }; }; }