2022-10-11 05:32:54 -06:00
|
|
|
{ lib, buildGo119Module, fetchFromGitHub, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
buildGo119Module rec {
|
|
|
|
pname = "yarr";
|
|
|
|
version = "2.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nkanaev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-LW0crWdxS6zcY5rxR0F2FLDYy9Ph2ZKyB/5VFVss+tA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-dseEvPu7VapyPzGKjqlFfXeaJdRF19YxCfZVn+ePYBc=";
|
|
|
|
|
|
|
|
ldflags = [ "-X main.Version=${version}" ];
|
|
|
|
|
|
|
|
tags = [ "sqlite_foreign_keys" "release" ];
|
|
|
|
|
|
|
|
proxyVendor = true;
|
|
|
|
|
2022-10-12 13:53:58 -06:00
|
|
|
patches = [ ./yarr_manifest.diff ];
|
|
|
|
|
2022-10-11 05:32:54 -06:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|