1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/servers/miniflux/default.nix
2019-01-23 01:52:12 +02:00

36 lines
746 B
Nix

{ stdenv , buildGoPackage , fetchFromGitHub }:
buildGoPackage rec {
pname = "miniflux";
version = "2.0.14";
goPackagePath = "miniflux.app";
src = fetchFromGitHub {
owner = "miniflux";
repo = "miniflux";
rev = version;
sha256 = "1wd52zk7i07k0b5rlwqd4qszq42shdb4ss8871jqlf9zlbq85a0v";
};
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; {
description = "Minimalist and opinionated feed reader";
homepage = https://miniflux.app/;
license = licenses.asl20;
maintainers = with maintainers; [ rvolosatovs benpye ];
};
}