depot/third_party/nixpkgs/pkgs/servers/miniflux/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

42 lines
1,018 B
Nix

{ lib, buildGoModule, fetchFromGitHub, installShellFiles, nixosTests }:
let
pname = "miniflux";
version = "2.0.31";
in buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-01v5gwUv0SfX/9AJgo4HiBcmoCfQbnKIGcS26IebU2Q=";
};
vendorSha256 = "sha256-69iTdrjgBmJHeVa8Tq47clQR5Xhy4rWcp2OwS4nIw/c=";
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 ];
};
}