2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, gtk2 }:
|
2020-04-15 01:47:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "colorpicker";
|
2021-11-10 21:21:47 +00:00
|
|
|
version = "unstable-2018-01-14";
|
2020-04-15 01:47:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ancurio";
|
2021-11-10 21:21:47 +00:00
|
|
|
repo = "colorpicker";
|
|
|
|
rev = "287676947e6e3b5b0cee784aeb1638cf22f0ce17";
|
2020-04-15 01:47:41 +00:00
|
|
|
sha256 = "1kj1dpb79llrfpszraaz6r7ci114zqi5rmqxwsvq2dnnpjxyi29r";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gtk2 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin colorpicker
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-15 01:47:41 +00:00
|
|
|
description = "Click on a pixel on your screen and print its color value in RGB";
|
|
|
|
homepage = "https://github.com/Ancurio/colorpicker";
|
|
|
|
maintainers = with maintainers; [ jb55 ];
|
|
|
|
license = licenses.mit;
|
2021-10-08 19:29:08 +00:00
|
|
|
mainProgram = "colorpicker";
|
2020-04-15 01:47:41 +00:00
|
|
|
};
|
|
|
|
}
|