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

40 lines
916 B
Nix
Raw Normal View History

2019-08-16 02:45:22 +02:00
{ buildGoModule
2018-11-20 23:13:22 +01:00
, fetchFromGitHub
, lib
, makeWrapper
, ncurses
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";
2019-12-14 15:12:58 +01:00
version = "0.25.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}";
2019-12-14 15:12:58 +01:00
sha256 = "1g76hzlyi8s8dayd36cs4bhnwgrrr731ybflw3xk5pgkgcbs14sd";
2019-09-12 16:21:32 +02:00
};
2018-11-20 23:13:22 +01:00
2019-12-14 15:12:58 +01:00
modSha256 = "186m7s20r59dyh5lpby4sd4vw3rvnkfzslylwin0c3r6150yrx8h";
2019-08-28 07:00:00 +02:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-08-16 02:45:22 +02:00
subPackages = [ "." ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
mv "$out/bin/wtf" "$out/bin/wtfutil"
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
'';
2018-11-20 23:13:22 +01:00
meta = with lib; {
description = "The personal information dashboard for your terminal";
2019-07-16 04:49:38 +02:00
homepage = "https://wtfutil.com/";
2018-11-20 23:13:22 +01:00
license = licenses.mpl20;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}