summary refs log tree commit diff
path: root/pkgs/tools/misc/clipnotify/default.nix
blob: 51a67f6983f81be1b93179eca7c184b0d2629ec3 (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
{ libX11, libXfixes, lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
  pname = "clipnotify";
  version = "unstable-2018-02-20";

  src = fetchFromGitHub {
    owner = "cdown";
    repo = "clipnotify";
    rev = "9cb223fbe494c5b71678a9eae704c21a97e3bddd";
    sha256 = "1x9avjq0fgw0svcbw6b6873qnsqxbacls9sipmcv86xia4bxh8dn";
  };

  buildInputs = [ libX11 libXfixes ];

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

  meta = with lib; {
    description = "Notify on new X clipboard events";
    inherit (src.meta) homepage;
    maintainers = with maintainers; [ jb55 ];
    license = licenses.publicDomain;
  };
}