about summary refs log tree commit diff
path: root/pkgs/applications/misc/clipit/default.nix
blob: fafcf3d544040ae15dd2e3a663d7d4a7b7842100 (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
29
30
31
32
33
34
35
{ fetchFromGitHub, lib, stdenv
, autoreconfHook, intltool, pkg-config
, gtk3, libayatana-appindicator, xdotool, which, wrapGAppsHook }:

stdenv.mkDerivation rec {
  pname = "clipit";
  version = "1.4.5";

  src = fetchFromGitHub {
    owner = "CristianHenzel";
    repo = "ClipIt";
    rev = "45e2ea386d04dbfc411ea370299502450d589d0c";
    sha256 = "0byqz9hanwmdc7i55xszdby2iqrk93lws7hmjda2kv17g34apwl7";
  };

  preConfigure = ''
    intltoolize --copy --force --automake
  '';

  nativeBuildInputs = [ pkg-config wrapGAppsHook autoreconfHook intltool ];
  configureFlags = [ "--with-gtk3" "--enable-appindicator=yes" ];
  buildInputs = [ gtk3 libayatana-appindicator ];

  gappsWrapperArgs = [
    "--prefix" "PATH" ":" "${lib.makeBinPath [ xdotool which ]}"
  ];

  meta = with lib; {
    description = "Lightweight GTK Clipboard Manager";
    inherit (src.meta) homepage;
    license     = licenses.gpl3;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ kamilchm ];
  };
}