Skip to content

Commit 2bc8e5b

Browse files
jb55infinisil
authored andcommitted
colorpicker: init at git-2018-01-14
Click on a pixel on your screen and print its color value in RGB. Written for X11. Signed-off-by: William Casarin <jb55@jb55.com>
1 parent b89ac20 commit 2bc8e5b

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{ stdenv, fetchFromGitHub, pkg-config, gtk2 }:
2+
3+
stdenv.mkDerivation rec {
4+
pname = "colorpicker";
5+
version = "git-2018-01-14";
6+
7+
src = fetchFromGitHub {
8+
owner = "Ancurio";
9+
repo = "colorpicker";
10+
rev = "287676947e6e3b5b0cee784aeb1638cf22f0ce17";
11+
sha256 = "1kj1dpb79llrfpszraaz6r7ci114zqi5rmqxwsvq2dnnpjxyi29r";
12+
};
13+
14+
nativeBuildInputs = [ pkg-config ];
15+
buildInputs = [ gtk2 ];
16+
17+
installPhase = ''
18+
install -Dt $out/bin colorpicker
19+
'';
20+
21+
meta = with stdenv.lib; {
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;
26+
};
27+
}

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ in
180180

181181
colorz = callPackage ../tools/misc/colorz { };
182182

183+
colorpicker = callPackage ../tools/misc/colorpicker { };
184+
183185
comedilib = callPackage ../development/libraries/comedilib { };
184186

185187
cpu-x = callPackage ../applications/misc/cpu-x { };

0 commit comments

Comments
 (0)