nixpkgs/pkgs/servers/gemini/stargazer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-15 05:06:40 +00:00
{ lib
, fetchFromSourcehut
, rustPlatform
, installShellFiles
, scdoc
, nixosTests
2024-08-17 00:43:14 +00:00
, nix-update-script
2023-04-15 05:06:40 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "stargazer";
2024-09-01 18:50:16 +00:00
version = "1.3.1";
2023-04-15 05:06:40 +00:00
src = fetchFromSourcehut {
owner = "~zethra";
repo = "stargazer";
rev = version;
2024-09-01 18:50:16 +00:00
hash = "sha256-0vbQDHuLrgrsWiOb2hb6lYylJm5o/wOzoDIw85H8Eh0=";
2023-04-15 05:06:40 +00:00
};
2024-09-01 18:50:16 +00:00
cargoHash = "sha256-EtRJsm6jo0fSEN9s0cS4IBWV/NnuUeDTa/x1utbh85k=";
2023-04-15 05:06:40 +00:00
2024-08-17 00:43:14 +00:00
passthru = {
tests.basic-functionality = nixosTests.stargazer;
updateScript = nix-update-script { };
};
2023-04-15 05:06:40 +00:00
nativeBuildInputs = [ installShellFiles scdoc ];
postInstall = ''
scdoc < doc/stargazer.scd > stargazer.1
scdoc < doc/stargazer-ini.scd > stargazer.ini.5
installManPage stargazer.1
installManPage stargazer.ini.5
installShellCompletion completions/stargazer.{bash,zsh,fish}
'';
meta = with lib; {
description = "Fast and easy to use Gemini server";
mainProgram = "stargazer";
2023-04-15 05:06:40 +00:00
homepage = "https://sr.ht/~zethra/stargazer/";
license = licenses.agpl3Plus;
changelog = "https://git.sr.ht/~zethra/stargazer/refs/${version}";
maintainers = with maintainers; [ gaykitty ];
};
}