summary refs log tree commit diff
path: root/pkgs/tools/misc/gpick/default.nix
blob: 8edb12684cee984590888e0fe5fa21b7a19ec809 (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
36
{ stdenv
, fetchFromGitHub
, cmake
, glib
, wrapGAppsHook
, boost
, pkg-config
, gtk3
, ragel
, lua
, lib
}:

stdenv.mkDerivation rec {
  pname = "gpick";
  version = "0.2.6";

  src = fetchFromGitHub {
    owner = "thezbyg";
    repo = pname;
    rev = "${pname}-${version}";
    sha256 = "sha256-Z67EJRtKJZLoTUtdMttVTLkzTV2F5rKZ96vaothLiFo=";
  };

  nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
  NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
  buildInputs = [ boost gtk3 ragel lua ];

  meta = with lib; {
    description = "Advanced color picker written in C++ using GTK+ toolkit";
    homepage = "http://www.gpick.org/";
    license = licenses.bsd3;
    maintainers = [ maintainers.vanilla ];
    platforms = platforms.linux;
  };
}