mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
43 lines
1007 B
Nix
43 lines
1007 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
|
|
|
|
let
|
|
pname = "miniflux";
|
|
version = "2.0.33";
|
|
|
|
in buildGoModule {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0vcfpy71gdvd0z20v6d36l3yvmnm4nmfplivw9yjzv8kbnf9mabc";
|
|
};
|
|
|
|
vendorSha256 = "1j4jskcply9mxz9bggw1c6368k22rga6f3f6mgs1pklz5v7r7n2j";
|
|
|
|
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 ];
|
|
};
|
|
}
|