2019-08-16 02:45:22 +02:00
|
|
|
{ buildGoModule
|
2018-11-20 23:13:22 +01:00
|
|
|
, fetchFromGitHub
|
2020-03-27 08:33:21 +01:00
|
|
|
, lib
|
2019-09-05 12:07:10 +02:00
|
|
|
, makeWrapper
|
|
|
|
, ncurses
|
2020-09-24 09:13:16 +02:00
|
|
|
, stdenv
|
2018-11-20 23:13:22 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-16 02:45:22 +02:00
|
|
|
buildGoModule rec {
|
2019-05-26 18:23:10 +02:00
|
|
|
pname = "wtf";
|
2021-11-27 05:20:00 +01:00
|
|
|
version = "0.40.0";
|
2018-11-20 23:13:22 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-05-26 18:23:10 +02:00
|
|
|
owner = "wtfutil";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-11-27 05:20:00 +01:00
|
|
|
sha256 = "0hd5gnydxfncsmm7c58lvhkpnyxknvicc8f58xfh74azf363wcvm";
|
|
|
|
};
|
2018-11-20 23:13:22 +01:00
|
|
|
|
2021-11-27 05:20:00 +01:00
|
|
|
vendorSha256 = "1pkdfg042kg3b6m5rf044gz5yg6vp3bbsay1mrrbaysnb3gs51dq";
|
2019-08-28 07:00:00 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2019-08-16 02:45:22 +02:00
|
|
|
|
2019-11-11 08:51:55 +01:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-09-05 12:07:10 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2019-09-12 16:21:08 +02:00
|
|
|
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
|
|
|
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
2019-09-05 12:07:10 +02:00
|
|
|
'';
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2018-11-20 23:13:22 +01:00
|
|
|
description = "The personal information dashboard for your terminal";
|
2019-07-16 04:49:38 +02:00
|
|
|
homepage = "https://wtfutil.com/";
|
2021-11-27 05:20:00 +01:00
|
|
|
changelog = "https://github.com/wtfutil/wtf/raw/v${version}/CHANGELOG.md";
|
2018-11-20 23:13:22 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-09-24 09:13:16 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2018-11-20 23:13:22 +01:00
|
|
|
};
|
2020-05-29 16:01:29 +02:00
|
|
|
}
|