nixpkgs/pkgs/applications/misc/wtf/default.nix

36 lines
866 B
Nix
Raw Normal View History

2019-08-16 00:45:22 +00:00
{ buildGoModule
2018-11-20 22:13:22 +00:00
, fetchFromGitHub
, lib
}:
2019-08-16 00:45:22 +00:00
buildGoModule rec {
2019-05-26 16:23:10 +00:00
pname = "wtf";
2019-08-16 00:45:22 +00:00
version = "0.19.1";
2018-11-20 22:13:22 +00:00
src = fetchFromGitHub {
2019-05-26 16:23:10 +00:00
owner = "wtfutil";
repo = pname;
rev = "v${version}";
2019-08-16 00:45:22 +00:00
sha256 = "19qzg5blqm5p7rrnaqh4f9aj53i743mawjnd1h9lfahbgmil1d24";
2018-11-20 22:13:22 +00:00
};
2019-08-16 00:45:22 +00:00
modSha256 = "1q21pc4yyiq4dihsb9n7261ssj52nnik8dq6fg4gvlnnpgcjp570";
# As per https://github.com/wtfutil/wtf/issues/501, one of the
# dependencies can't be fetched, so vendored dependencies should
# be used instead
modBuildPhase = ''
runHook preBuild
make build -mod=vendor
runHook postBuild
'';
2018-11-20 22:13:22 +00:00
meta = with lib; {
description = "The personal information dashboard for your terminal";
2019-07-16 02:49:38 +00:00
homepage = "https://wtfutil.com/";
2018-11-20 22:13:22 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}