3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/wtf/default.nix

44 lines
963 B
Nix
Raw Normal View History

2019-08-16 01:45:22 +01:00
{ buildGoModule
2018-11-20 22:13:22 +00:00
, fetchFromGitHub
, lib
, makeWrapper
, ncurses
, 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";
2021-09-13 22:44:05 +01:00
version = "0.39.2";
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}";
2021-09-13 22:44:05 +01:00
sha256 = "sha256-nP56HzjtIg9EIOBda9TQl8soUqlGfRmixidWrmQ7+vs=";
2019-09-12 15:21:32 +01:00
};
2018-11-20 22:13:22 +00:00
2021-09-13 22:44:05 +01:00
vendorSha256 = "sha256-yD4BUauYvyGk/D0Gr5Z15xWPtI/ZR9xTbmeS6RAxw1o=";
2019-08-28 06:00:00 +01:00
doCheck = false;
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2019-08-16 01:45:22 +01:00
subPackages = [ "." ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
mv "$out/bin/wtf" "$out/bin/wtfutil"
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
'';
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;
broken = stdenv.isDarwin;
2018-11-20 22:13:22 +00:00
};
2020-05-29 15:01:29 +01:00
}