mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
40 lines
916 B
Nix
40 lines
916 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
, makeWrapper
|
|
, ncurses
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "wtf";
|
|
version = "0.25.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wtfutil";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1g76hzlyi8s8dayd36cs4bhnwgrrr731ybflw3xk5pgkgcbs14sd";
|
|
};
|
|
|
|
modSha256 = "186m7s20r59dyh5lpby4sd4vw3rvnkfzslylwin0c3r6150yrx8h";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
mv "$out/bin/wtf" "$out/bin/wtfutil"
|
|
wrapProgram "$out/bin/wtfutil" --prefix PATH : "${ncurses.dev}/bin"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The personal information dashboard for your terminal";
|
|
homepage = "https://wtfutil.com/";
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|