about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/hhpc/default.nix
blob: 4b1b0d0c7623d0fcbf0016a642124dd58a69921f (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
{stdenv, fetchFromGitHub, xorg, pkgconfig}:

stdenv.mkDerivation rec {
  pname = "hhpc";
  version = "0.3.1";

  src = fetchFromGitHub {
    owner = "aktau";
    repo = "hhpc";
    rev = "v${version}";
    sha256 = "1djsw1r38mh6zx0rbyn2cfa931hyddib4fl3i27c4z7xinl709ss";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ xorg.libX11 ];

  installPhase = ''
      mkdir -p $out/bin
      cp hhpc $out/bin/
  '';

  meta = with stdenv.lib; {
    description = "Hides the mouse pointer in X11";
    maintainers = with maintainers; [ nico202 ];
    platforms = platforms.unix;
    license = stdenv.lib.licenses.bsd3;
  };
}