xin/pkgs/gqrss.nix

34 lines
724 B
Nix
Raw Normal View History

2022-08-27 07:36:58 -06:00
{ lib, buildGo119Module, fetchFromGitHub, isUnstable, ... }:
2022-08-25 12:21:35 -06:00
let
vendorHash = if isUnstable then
2022-08-27 07:29:17 -06:00
"sha256-1zBZREClt8jy0TUXJ1FuBEAJEPQoUcl4DZZ6U2LtRzg="
2022-08-25 12:21:35 -06:00
else
"sha256-NIAJKq7TiMessqaohkdHy+j/vBKvMsiPgmnaiNAsGeE=";
in with lib;
2022-08-27 07:36:58 -06:00
buildGo119Module rec {
2022-08-25 12:21:35 -06:00
pname = "gqrss";
version = "1.0.0";
src = fetchFromGitHub {
owner = "qbit";
repo = pname;
rev = "v${version}";
sha256 = "sha256-1ZGjifDgqA9yk9l0YB4rLpcvwaq9lWxDgItJ7lCVj2I=";
};
vendorSha256 = vendorHash;
proxyVendor = true;
doCheck = false;
meta = {
description = "Simple github query tool";
homepage = "https://github.com/qbit/gqrss";
license = licenses.isc;
maintainers = with maintainers; [ qbit ];
};
}