1 { lib, stdenv, fetchFromGitHub, pkg-config, gtk2 }:
3 stdenv.mkDerivation rec {
5 version = "git-2018-01-14";
7 src = fetchFromGitHub {
10 rev = "287676947e6e3b5b0cee784aeb1638cf22f0ce17";
11 sha256 = "1kj1dpb79llrfpszraaz6r7ci114zqi5rmqxwsvq2dnnpjxyi29r";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ gtk2 ];
18 install -Dt $out/bin colorpicker
22 description = "Click on a pixel on your screen and print its color value in RGB";
23 homepage = "https://github.com/Ancurio/colorpicker";
24 maintainers = with maintainers; [ jb55 ];
25 license = licenses.mit;