xin/pkgs/gqrss.nix

34 lines
718 B
Nix
Raw Normal View History

2022-11-01 07:10:12 -06:00
{ lib, buildGoModule, 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-11-01 07:10:12 -06:00
buildGoModule 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 ];
};
}