diff options
author | Motiejus Jakštys <motiejus@jakstys.lt> | 2024-02-29 14:28:12 +0200 |
---|---|---|
committer | Motiejus Jakštys <motiejus@jakstys.lt> | 2024-02-29 14:39:49 +0200 |
commit | 9b0827fe9cdc70a048c466ea093bae45679ca033 (patch) | |
tree | 04167cc315f5a2b05b5d11d5feea1c228ff916dd /pkgs/by-name/ga | |
parent | 1fc35bf4f48d6f18acc7b8c9d18b5de3c1e27668 (diff) |
gamja: init at 1.0.0-beta.9
gamja is an IRC web client. Project url: https://git.sr.ht/~emersion/gamja This is almost a direct copy of #243815 with an updated version. The original PR seems to have stalled, although it was quite complete. I have been using it for a couple of months, let's get this upstream. Closes #243815 Co-authored-by: apfelkuchen06 <apfelkuchen@hrnz.li>
Diffstat (limited to 'pkgs/by-name/ga')
-rw-r--r-- | pkgs/by-name/ga/gamja/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/ga/gamja/package.nix b/pkgs/by-name/ga/gamja/package.nix new file mode 100644 index 0000000000000..d72934038a8a8 --- /dev/null +++ b/pkgs/by-name/ga/gamja/package.nix @@ -0,0 +1,37 @@ +{ + lib, + fetchFromSourcehut, + buildNpmPackage, + writeText, + # https://git.sr.ht/~emersion/gamja/tree/master/doc/config-file.md + gamjaConfig ? null, +}: +buildNpmPackage rec { + pname = "gamja"; + version = "1.0.0-beta.9"; + + src = fetchFromSourcehut { + owner = "~emersion"; + repo = "gamja"; + rev = "v${version}"; + hash = "sha256-09rCj9oMzldRrxMGH4rUnQ6wugfhfmJP3rHET5b+NC8="; + }; + + npmDepsHash = "sha256-LxShwZacCctKAfMNCUMyrSaI1hIVN80Wseq/d8WITkc="; + + installPhase = '' + runHook preInstall + + cp -r dist $out + ${lib.optionalString (gamjaConfig != null) "cp ${writeText "gamja-config" (builtins.toJSON gamjaConfig)} $out/config.json"} + + runHook postInstall + ''; + + meta = with lib; { + description = "A simple IRC web client"; + homepage = "https://git.sr.ht/~emersion/gamja"; + license = licenses.agpl3Only; + maintainers = with maintainers; [motiejus apfelkuchen6]; + }; +} |