summary refs log tree commit diff
path: root/pkgs/applications/misc/wtf/default.nix
blob: a01cef9227bf3c451b83f56d0dbf445cbcb7dd3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ buildGoPackage
, fetchFromGitHub
, lib
}:

buildGoPackage rec {
  name = "wtf-${version}";
  version = "0.4.0";

  goPackagePath = "github.com/senorprogrammer/wtf";

  src = fetchFromGitHub {
    owner = "senorprogrammer";
    repo = "wtf";
    rev = "${version}";
    sha256 = "1vgjqmw27baiq9brmnafic3w3hw11p5qc6ahbdxi5n5n4bx7j6vn";
  };

  buildFlagsArray = [ "-ldflags=" "-X main.version=${version}" ];

  meta = with lib; {
    description = "The personal information dashboard for your terminal";
    homepage = http://wtfutil.com/;
    license = licenses.mpl20;
    maintainers = with maintainers; [ kalbasit ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}