neonmodem: init at 1.0.6

Adds Neon Modem Overdrive: a BBS-style TUI client for Discourse, Lemmy,
Lobsters, and Hacker News.

Homepage: https://neonmodem.com/
git: https://github.com/mrusme/neonmodem.git

Co-authored-by: IogaMaster <iogamastercode@gmail.com>
Resolves: gh-290386
Closes: gh-290467
This commit is contained in:
Summer Tea
2025-06-11 12:46:18 -04:00
co-authored by IogaMaster
parent 4bfe605eec
commit e7b4e6e14d
+51
View File
@@ -0,0 +1,51 @@
{
stdenv,
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
installShellFiles,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "neonmodem";
version = "1.0.6";
src = fetchFromGitHub {
owner = "mrusme";
repo = "neonmodem";
tag = "v${finalAttrs.version}";
hash = "sha256-VLR6eicffA0IXVwEZMvgpm1kVmrLYVZOtq7MSy+vIw8=";
};
vendorHash = "sha256-pESNARoUgfg5/cTlTvKF3i7dTMIu0gRG/oV4Ov6h2cY=";
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [
installShellFiles
writableTmpDirAsHomeHook
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
# Will otherwise panic if it can't open $HOME/{Library/Caches,.cache}/neonmodem.log
# Upstream issue: https://github.com/mrusme/neonmodem/issues/53
mkdir -p "$HOME/${if stdenv.buildPlatform.isDarwin then "Library/Caches" else ".cache"}"
installShellCompletion --cmd neonmodem \
--bash <($out/bin/neonmodem completion bash) \
--fish <($out/bin/neonmodem completion fish) \
--zsh <($out/bin/neonmodem completion zsh)
'';
meta = {
description = "BBS-style TUI client for Discourse, Lemmy, Lobsters, and Hacker News";
homepage = "https://neonmodem.com";
downloadPage = "https://github.com/mrusme/neonmodem/releases";
changelog = "https://github.com/mrusme/neonmodem/releases/tag/v${finalAttrs.version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ acuteaangle ];
mainProgram = "neonmodem";
};
})