biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / gpick / default.nix
blobc21759b00fea269635c0deb55020e6c46717e5c2
1 { stdenv
2 , fetchFromGitHub
3 , cmake
4 , wrapGAppsHook3
5 , boost
6 , pkg-config
7 , gtk3
8 , ragel
9 , lua
10 , fetchpatch
11 , lib
14 stdenv.mkDerivation rec {
15   pname = "gpick";
16   version = "0.3";
18   src = fetchFromGitHub {
19     owner = "thezbyg";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-Z17YpdAAr2wvDFkrAosyCN6Y/wsFVkiB9IDvXuP9lYo=";
23   };
25   patches = [
26     # gpick/cmake/Version.cmake
27     ./dot-version.patch
29     (fetchpatch {
30       url = "https://raw.githubusercontent.com/archlinux/svntogit-community/1d53a9aace4bb60300e52458bb1577d248cb87cd/trunk/buildfix.diff";
31       hash = "sha256-DnRU90VPyFhLYTk4GPJoiVYadJgtYgjMS4MLgmpYLP0=";
32     })
33   ];
35   nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 ];
36   buildInputs = [ boost gtk3 ragel lua ];
38   meta = with lib; {
39     description = "Advanced color picker written in C++ using GTK+ toolkit";
40     homepage = "http://www.gpick.org/";
41     license = licenses.bsd3;
42     maintainers = [ maintainers.vanilla ];
43     platforms = platforms.linux;
44     mainProgram = "gpick";
45   };