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