nixpkgs/pkgs/servers/miniflux/default.nix

36 lines
746 B
Nix
Raw Normal View History

2019-01-21 22:07:38 +00:00
{ stdenv , buildGoPackage , fetchFromGitHub }:
2018-10-28 02:18:11 +00:00
buildGoPackage rec {
2018-12-20 00:27:14 +00:00
pname = "miniflux";
2019-01-21 22:07:38 +00:00
version = "2.0.14";
2018-10-28 02:18:11 +00:00
goPackagePath = "miniflux.app";
src = fetchFromGitHub {
owner = "miniflux";
repo = "miniflux";
2019-01-21 22:07:38 +00:00
rev = version;
sha256 = "1wd52zk7i07k0b5rlwqd4qszq42shdb4ss8871jqlf9zlbq85a0v";
2018-10-28 02:18:11 +00:00
};
2019-01-21 22:07:38 +00:00
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;
2019-01-21 22:07:38 +00:00
maintainers = with maintainers; [ rvolosatovs benpye ];
2018-10-28 02:18:11 +00:00
};
}