2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "miniflux";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "2.0.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "0yhzmfs35jfc7vq26r9c14v4lnv8sxj3pv23r2cx2rfx47b1zmk7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "miniflux.app";
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
2020-05-29 06:06:01 +00:00
|
|
|
-ldflags=-s -w -X miniflux.app/version.Version=${version}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
mv $out/bin/miniflux.app $out/bin/miniflux
|
2020-05-29 06:06:01 +00:00
|
|
|
installManPage go/src/${goPackagePath}/miniflux.1
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Minimalist and opinionated feed reader";
|
|
|
|
homepage = "https://miniflux.app/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs benpye ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|