nur-packages

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

commit 634f671d866db02c5568adb18c67bc8f62b50648
parent 7d3f30545e5fdc647219c74da69acb2c7c1e6eb7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Wed, 20 Mar 2024 22:05:22 +0400

Add riffraff

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/riffraff/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -400,6 +400,7 @@ lib.makeScope newScope ( qasync = callPackage ./misc/qasync { }; qoiview = callPackage ./misc/qoiview { }; repolocli = callPackage ./misc/repolocli { }; + riffraff = callPackage ./misc/riffraff { }; rst2txt = callPackage ./misc/rst2txt { }; sdorfehs = callPackage ./misc/sdorfehs { }; serial-studio-bin = callPackage ./misc/serial-studio/bin.nix { }; diff --git a/pkgs/misc/riffraff/default.nix b/pkgs/misc/riffraff/default.nix @@ -0,0 +1,32 @@ +{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: + +buildGoModule rec { + pname = "riffraff"; + version = "0.5.0-unstable-2022-10-25"; + + src = fetchFromGitHub { + owner = "mre"; + repo = "riffraff"; + rev = "d4aa7ff38660cc2c5df30954789ee5d45d78836d"; + hash = "sha256-gWzbU2PX5AD0lKBQ/HKPHPmDDQByVv/IR4Xq0oTQJ2A="; + }; + + vendorHash = null; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd riffraff \ + --bash <($out/bin/riffraff completion bash) \ + --fish <($out/bin/riffraff completion fish) \ + --zsh <($out/bin/riffraff completion zsh) + ''; + + meta = with lib; { + description = "A commandline interface for Jenkins"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + mainProgram = "riffraff"; + }; +}