nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit fee361ef5318540b04184c37009cf1af2740dc88
parent f0a4eddb3d039c5d302fffd3a5cb9b4ee3792c38
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 29 Jun 2021 23:24:06 +0300

Add astronaut

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/astronaut/default.nix | 37+++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -163,6 +163,7 @@ lib.makeScope newScope ( ### GEMINI + astronaut = callPackage ./gemini/astronaut { }; comitium = callPackage ./gemini/comitium { }; geminid = callPackage ./gemini/geminid { }; gemreader = callPackage ./gemini/gemreader { }; diff --git a/pkgs/gemini/astronaut/default.nix b/pkgs/gemini/astronaut/default.nix @@ -0,0 +1,37 @@ +{ lib, buildGoModule, fetchFromSourcehut, scdoc }: + +buildGoModule rec { + pname = "astronaut"; + version = "2021-06-28"; + + src = fetchFromSourcehut { + owner = "~adnano"; + repo = pname; + rev = "d257518c8b7280256ccd062f78ffb2638098b978"; + hash = "sha256-Hq8jJzLdM0h/0X7WIiLnSlQn996F0X2rGBFI167D+IY="; + }; + + nativeBuildInputs = [ scdoc ]; + + vendorSha256 = "sha256-o5BxL2azzfKhwG1lOxHe6HZUci96+jddPwq+jIJELls="; + + buildPhase = '' + runHook preBuild + # we use make instead of go build + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + make PREFIX=$out install + runHook postInstall + ''; + + meta = with lib; { + description = "A Gemini browser for the terminal"; + inherit (src.meta) homepage; + license = licenses.gpl3Only; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}