7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromSourcehut
|
|
, rustPlatform
|
|
, installShellFiles
|
|
, scdoc
|
|
, Security
|
|
, nixosTests
|
|
, nix-update-script
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "stargazer";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~zethra";
|
|
repo = "stargazer";
|
|
rev = version;
|
|
hash = "sha256-0vbQDHuLrgrsWiOb2hb6lYylJm5o/wOzoDIw85H8Eh0=";
|
|
};
|
|
|
|
cargoHash = "sha256-EtRJsm6jo0fSEN9s0cS4IBWV/NnuUeDTa/x1utbh85k=";
|
|
|
|
passthru = {
|
|
tests.basic-functionality = nixosTests.stargazer;
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles scdoc ];
|
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
|
|
|
|
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";
|
|
homepage = "https://sr.ht/~zethra/stargazer/";
|
|
license = licenses.agpl3Plus;
|
|
changelog = "https://git.sr.ht/~zethra/stargazer/refs/${version}";
|
|
maintainers = with maintainers; [ gaykitty ];
|
|
};
|
|
}
|