Merge pull request #292325 from motiejus/gamja

gamja: init at 1.0.0-beta.9
This commit is contained in:
Adam C. Stephens 2024-03-10 08:57:35 -04:00 committed by GitHub
commit f0892debec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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];
};
}