nur-packages

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

commit fdc3c682cab1a6b5624a184a1347dd506ef7250a
parent e442876daabcded3f0b8cc3ef0091e654674f6d5
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 15 Sep 2021 17:59:39 +0300

Add qute-gemini

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gemini/qute-gemini/default.nix | 28++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -189,6 +189,7 @@ lib.makeScope newScope ( gssg = callPackage ./gemini/gssg { }; gurl = callPackage ./gemini/gurl { }; kineto = callPackage ./gemini/kineto { }; + qute-gemini = callPackage ./gemini/qute-gemini { }; satellite = callPackage ./gemini/satellite { }; shavit = callPackage ./gemini/shavit { }; stargazer = callPackage ./gemini/stargazer { diff --git a/pkgs/gemini/qute-gemini/default.nix b/pkgs/gemini/qute-gemini/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromSourcehut, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "qute-gemini"; + version = "1.0.0"; + + src = fetchFromSourcehut { + owner = "~sotirisp"; + repo = pname; + rev = "v${version}"; + hash = "sha256-0e0DvnhPtdtA2ZSGTaWuMNgVlP6fA1P0cuze7AFG3bM="; + }; + + dontUseSetuptoolsBuild = true; + dontUseSetuptoolsCheck = true; + + installPhase = '' + install -Dm755 qute-gemini{,-tab} -t $out/share/qutebrowser/userscripts + ''; + + meta = with lib; { + description = "A qutebrowser userscripts that allows viewing Gemini pages"; + inherit (src.meta) homepage; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}