646c172193
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
42 lines
1,004 B
Nix
42 lines
1,004 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
|
|
|
|
let
|
|
pname = "miniflux";
|
|
version = "2.0.34";
|
|
|
|
in buildGoModule {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "v2";
|
|
rev = version;
|
|
sha256 = "sha256-6fXmi0q6J1XyxEtOuKO8efkwLrfkMiqeKTHZPuoKYAs=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-P8ukjBrkPZ0n8HtfyEf2pG3DAXl7D10Ib+dmtwI4KqI=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
checkPhase = ''
|
|
go test $(go list ./... | grep -v client)
|
|
''; # skip client tests as they require network access
|
|
|
|
ldflags = [
|
|
"-s" "-w" "-X miniflux.app/version.Version=${version}"
|
|
];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/miniflux.app $out/bin/miniflux
|
|
installManPage miniflux.1
|
|
'';
|
|
|
|
passthru.tests = nixosTests.miniflux;
|
|
|
|
meta = with lib; {
|
|
description = "Minimalist and opinionated feed reader";
|
|
homepage = "https://miniflux.app/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rvolosatovs benpye ];
|
|
};
|
|
}
|