2022-11-01 07:10:12 -06:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, ... }:
|
2022-10-11 05:32:54 -06:00
|
|
|
|
|
|
|
with lib;
|
2022-11-01 07:10:12 -06:00
|
|
|
buildGoModule rec {
|
2022-10-11 05:32:54 -06:00
|
|
|
pname = "yarr";
|
2023-03-18 15:25:02 -06:00
|
|
|
version = "2023-03-18";
|
2022-10-11 05:32:54 -06:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nkanaev";
|
|
|
|
repo = pname;
|
2023-01-30 17:27:22 -07:00
|
|
|
#rev = "v${version}";
|
2023-03-18 15:25:02 -06:00
|
|
|
rev = "d2678be96d37a71ec34ac23207393f78dcceafc5";
|
|
|
|
sha256 = "sha256-BCP2d4Fk5KkWz7tmx7kMybnRZEGHIRjtNiNIpNCXRYE=";
|
2022-10-11 05:32:54 -06:00
|
|
|
};
|
|
|
|
|
2023-03-18 15:25:02 -06:00
|
|
|
vendorHash = null;
|
2022-10-11 05:32:54 -06:00
|
|
|
|
|
|
|
ldflags = [ "-X main.Version=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "sqlite_foreign_keys" "release" ];
|
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
subPackages = [ "./src/main.go" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/main $out/bin/yarr
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Yet Another RSS Reader";
|
|
|
|
homepage = "https://github.com/nkanaev/yarr";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ qbit ];
|
|
|
|
};
|
|
|
|
}
|