2019-08-16 01:45:22 +01:00
|
|
|
{ buildGoModule
|
2018-11-20 22:13:22 +00:00
|
|
|
, fetchFromGitHub
|
2020-03-27 07:33:21 +00:00
|
|
|
, lib
|
2019-09-05 11:07:10 +01:00
|
|
|
, makeWrapper
|
|
|
|
, ncurses
|
2020-09-24 08:13:16 +01:00
|
|
|
, stdenv
|
2018-11-20 22:13:22 +00:00
|
|
|
}:
|
|
|
|
|
2019-08-16 01:45:22 +01:00
|
|
|
buildGoModule rec {
|
2019-05-26 17:23:10 +01:00
|
|
|
pname = "wtf";
|
2020-11-09 10:40:52 +00:00
|
|
|
version = "0.34.0";
|
2018-11-20 22:13:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-26 17:23:10 +01:00
|
|
|
owner = "wtfutil";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-09 10:40:52 +00:00
|
|
|
sha256 = "01zydr1w8byjhxf4xj6z001q4ynq0452cn332ap1l1w0dmx9mxyr";
|
2019-09-12 15:21:32 +01:00
|
|
|
};
|
2018-11-20 22:13:22 +00:00
|
|
|
|
2020-11-09 10:40:52 +00:00
|
|
|
vendorSha256 = "1xyai417l8q44b562ssp5qqw04klrhg5397ahr4pc3i30csz8a7a";
|
2019-08-28 06:00:00 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-08-28 06:00:00 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2019-08-16 01:45:22 +01:00
|
|
|
|
2019-11-11 07:51:55 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-09-05 11:07:10 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-09-12 15:21:08 +01:00
|
|
|
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
|
|
|
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
2019-09-05 11:07:10 +01:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2018-11-20 22:13:22 +00:00
|
|
|
description = "The personal information dashboard for your terminal";
|
2019-07-16 03:49:38 +01: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;
|
2020-09-24 08:13:16 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2018-11-20 22:13:22 +00:00
|
|
|
};
|
2020-05-29 15:01:29 +01:00
|
|
|
}
|