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

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

46 lines
1.0 KiB
Nix
Raw Normal View History

2019-08-16 00:45:22 +00: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 00:45:22 +00:00
buildGoModule rec {
2019-05-26 16:23:10 +00:00
pname = "wtf";
2023-02-25 21:12:35 +00:00
version = "0.43.0";
2018-11-20 22:13:22 +00:00
src = fetchFromGitHub {
2019-05-26 16:23:10 +00:00
owner = "wtfutil";
repo = pname;
rev = "v${version}";
2023-02-25 21:12:35 +00:00
sha256 = "sha256-DFrA4bx+wSOxmt1CVA1oNiYVmcWeW6wpfR5F1tnhyDY=";
};
2018-11-20 22:13:22 +00:00
2023-05-20 04:42:21 +00:00
vendorHash = "sha256-9uuLidieBMoKz/FLcBnp9wenyveOIzB0IvRBRasulZk=";
proxyVendor = true;
2019-08-28 05:00:00 +00:00
doCheck = false;
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2019-08-16 00:45:22 +00: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 02:49:38 +00:00
homepage = "https://wtfutil.com/";
changelog = "https://github.com/wtfutil/wtf/raw/v${version}/CHANGELOG.md";
2018-11-20 22:13:22 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ kalbasit ];
mainProgram = "wtfutil";
2018-11-20 22:13:22 +00:00
platforms = platforms.linux ++ platforms.darwin;
};
2020-05-29 14:01:29 +00:00
}