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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1 KiB
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
, 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";
2022-02-01 13:12:03 +01:00
version = "0.41.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}";
2022-02-01 13:12:03 +01:00
sha256 = "sha256-Y8Vdh6sMMX8pS4zIuOfcejfsOB5z5mXEpRskJXQgU1Y=";
};
2018-11-20 23:13:22 +01:00
2022-02-01 13:12:03 +01:00
vendorSha256 = "sha256-UE7BYal8ycU7mM1TLJMhoNxQKZjtsO9rJ+YXmLiOSk0=";
2019-08-28 07:00:00 +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
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 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/";
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;
broken = stdenv.isDarwin;
2018-11-20 23:13:22 +01:00
};
2020-05-29 16:01:29 +02:00
}