Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ stdenv, fetchFromGitHub, pkg-config, gtk2 }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "colorpicker"; | ||
version = "git-2018-01-14"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "Ancurio"; | ||
repo = "colorpicker"; | ||
rev = "287676947e6e3b5b0cee784aeb1638cf22f0ce17"; | ||
sha256 = "1kj1dpb79llrfpszraaz6r7ci114zqi5rmqxwsvq2dnnpjxyi29r"; | ||
}; | ||
|
||
nativeBuildInputs = [ pkg-config ]; | ||
buildInputs = [ gtk2 ]; | ||
|
||
installPhase = '' | ||
install -Dt $out/bin colorpicker | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters