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

44 lines
976 B
Nix
Raw Normal View History

2019-08-15 17:45:22 -07:00
{ buildGoModule
2018-11-20 14:13:22 -08:00
, fetchFromGitHub
, lib
, makeWrapper
, ncurses
, stdenv
2018-11-20 14:13:22 -08:00
}:
2019-08-15 17:45:22 -07:00
buildGoModule rec {
2019-05-26 09:23:10 -07:00
pname = "wtf";
2021-03-24 16:03:48 -07:00
version = "0.36.0";
2018-11-20 14:13:22 -08:00
src = fetchFromGitHub {
2019-05-26 09:23:10 -07:00
owner = "wtfutil";
repo = pname;
rev = "v${version}";
2021-03-24 16:03:48 -07:00
sha256 = "sha256-JVHcunpS+2/0d7XaUZ95m9QpVHCG1Tq8LJ9KNURSRy8=";
2019-09-12 07:21:32 -07:00
};
2018-11-20 14:13:22 -08:00
2021-03-24 16:03:48 -07:00
vendorSha256 = "sha256-4uRhbRPfCRYwFlfucXOYhLruj7hkV4G9Sxjh9yQkDEQ=";
2019-08-27 22:00:00 -07:00
doCheck = false;
2019-08-27 22:00:00 -07:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-08-15 17:45:22 -07: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 14:13:22 -08:00
description = "The personal information dashboard for your terminal";
2019-07-15 19:49:38 -07:00
homepage = "https://wtfutil.com/";
2018-11-20 14:13:22 -08:00
license = licenses.mpl20;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
broken = stdenv.isDarwin;
2018-11-20 14:13:22 -08:00
};
2020-05-29 07:01:29 -07:00
}