mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
41 lines
971 B
Nix
41 lines
971 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
|
|
|
|
let
|
|
pname = "miniflux";
|
|
version = "2.0.45";
|
|
|
|
in buildGoModule {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "v2";
|
|
rev = version;
|
|
sha256 = "sha256-/d5+Qc2kXZZkKe80+879YdxYt+zy/Y1sf2dwSjGw0EM=";
|
|
};
|
|
|
|
vendorHash = "sha256-nwKo4Sjg8HjuxeDUgwQYZ2LOHxkRSlyaBlQwSjOuJ7U=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
checkFlags = [ "-skip=TestClient" ]; # 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 ];
|
|
};
|
|
}
|