nixpkgs/pkgs/servers/miniflux/default.nix

36 lines
746 B
Nix
Raw Normal View History

2019-01-21 23:07:38 +01:00
{ stdenv , buildGoPackage , fetchFromGitHub }:
2018-10-28 03:18:11 +01:00
buildGoPackage rec {
2018-12-20 01:27:14 +01:00
pname = "miniflux";
2019-01-21 23:07:38 +01:00
version = "2.0.14";
2018-10-28 03:18:11 +01:00
goPackagePath = "miniflux.app";
src = fetchFromGitHub {
owner = "miniflux";
repo = "miniflux";
2019-01-21 23:07:38 +01:00
rev = version;
sha256 = "1wd52zk7i07k0b5rlwqd4qszq42shdb4ss8871jqlf9zlbq85a0v";
2018-10-28 03:18:11 +01:00
};
2019-01-21 23:07:38 +01:00
2018-10-28 03:18:11 +01: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 01:27:14 +01:00
description = "Minimalist and opinionated feed reader";
2018-10-28 03:18:11 +01:00
homepage = https://miniflux.app/;
license = licenses.asl20;
2019-01-21 23:07:38 +01:00
maintainers = with maintainers; [ rvolosatovs benpye ];
2018-10-28 03:18:11 +01:00
};
}