2018-10-28 02:18:11 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildGoPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2018-12-20 00:27:14 +00:00
|
|
|
pname = "miniflux";
|
2018-12-19 07:10:12 +00:00
|
|
|
version = "2.0.13";
|
2018-10-28 02:18:11 +00:00
|
|
|
|
|
|
|
goPackagePath = "miniflux.app";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miniflux";
|
|
|
|
repo = "miniflux";
|
|
|
|
rev = "refs/tags/${version}";
|
2018-12-19 07:10:12 +00:00
|
|
|
sha256 = "16c9jszrz3153kr0xyj7na09hpqvnjsrmsbic7qkp5a9aa839b9s";
|
2018-10-28 02:18:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=-X ${goPackagePath}/version.Version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $bin/bin/miniflux.app $bin/bin/miniflux
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-20 00:27:14 +00:00
|
|
|
description = "Minimalist and opinionated feed reader";
|
2018-10-28 02:18:11 +00:00
|
|
|
homepage = https://miniflux.app/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benpye ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|