depot/third_party/nixpkgs/pkgs/servers/miniflux/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

42 lines
1,018 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
let
pname = "miniflux";
version = "2.0.28";
in buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-XvQhLqGP1TliSrIm55dP04yGoOMnHmcI2gH00SYVLVY=";
};
vendorSha256 = "sha256-NKpMLjro06gWN2Xu5M+xM4hVNvlOZ12F3Jv+bL5E0I8=";
nativeBuildInputs = [ installShellFiles ];
checkPhase = ''
go test $(go list ./... | grep -v client)
''; # skip client tests as they require network access
buildFlagsArray = ''
-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 ];
};
}