blob: 0d421212a3d444e29780cab1a60436a6f2b9e781 (
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
37
38
39
40
41
42
43
44
45
46
|
{ stdenv
, fetchFromGitHub
, cmake
, wrapGAppsHook
, boost
, pkg-config
, gtk3
, ragel
, lua
, fetchpatch
, lib
}:
stdenv.mkDerivation rec {
pname = "gpick";
version = "0.3";
src = fetchFromGitHub {
owner = "thezbyg";
repo = pname;
rev = "v${version}";
hash = "sha256-Z17YpdAAr2wvDFkrAosyCN6Y/wsFVkiB9IDvXuP9lYo=";
};
patches = [
# gpick/cmake/Version.cmake
./dot-version.patch
(fetchpatch {
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/1d53a9aace4bb60300e52458bb1577d248cb87cd/trunk/buildfix.diff";
hash = "sha256-DnRU90VPyFhLYTk4GPJoiVYadJgtYgjMS4MLgmpYLP0=";
})
];
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
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;
mainProgram = "gpick";
};
}
|