depot/third_party/nixpkgs/pkgs/servers/gemini/stargazer/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

44 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromSourcehut
, rustPlatform
, installShellFiles
, scdoc
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "stargazer";
version = "1.0.5";
src = fetchFromSourcehut {
owner = "~zethra";
repo = "stargazer";
rev = version;
hash = "sha256-n88X3RJD7PqOcVRK/bp/gMNLVrbwnJ2iwi2rCpsfp+o=";
};
cargoHash = "sha256-Yqh3AQIOahKz2mLeVNm58Yr6vhjU4aQwN62y3Z5/EJc=";
doCheck = false; # Uses extenal testing framework that requires network
nativeBuildInputs = [ installShellFiles scdoc ];
buildInputs = lib.optional stdenv.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 = "A fast and easy to use Gemini server";
homepage = "https://sr.ht/~zethra/stargazer/";
license = licenses.agpl3Plus;
changelog = "https://git.sr.ht/~zethra/stargazer/refs/${version}";
maintainers = with maintainers; [ gaykitty ];
};
}