Skip to content

Commit

Permalink
pkgs: Add NGI metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Mar 28, 2024
1 parent bbadb38 commit b34c710
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
11 changes: 2 additions & 9 deletions pkgs/by-name/flarum/package.nix
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -31,7 +24,7 @@ in
license = lib.licenses.mit;
ngi = {
project = "Flarum";
options = [["services" finalAttrs.pname]];
options = [["services" "flarum"]];
};
};
})
10 changes: 10 additions & 0 deletions pkgs/by-name/kbin/package.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
lib,
runCommand,
kbin-frontend,
kbin-backend,
Expand All @@ -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`):
Expand Down
4 changes: 4 additions & 0 deletions pkgs/by-name/rosenpass/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"]];
};
};
}
4 changes: 2 additions & 2 deletions pkgs/pretalx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ in
]
++ (with (import ../../maintainers/maintainers-list.nix); [augustebaum kubaneko]);
ngi = {
project = "Rosenpass";
options = [["services" pname]];
project = "Pretalx";
options = [["services" "pretalx"]];
};
};
}

0 comments on commit b34c710

Please sign in to comment.