15 waylandSupport ? true,
19 stdenvNoCC.mkDerivation (finalAttrs: {
23 src = fetchFromGitHub {
26 rev = "2ff6669e2350644d4f0b1bd84526efe5eae3c302";
27 hash = "sha256-vCMuFMGcI4D4EzbSsXeNGKNS6nBFkfTcAmSzb9UMArc=";
30 nativeBuildInputs = [ makeBinaryWrapper ];
32 # Ensure the following programs are found within $PATH
33 wrapperPath = lib.makeBinPath (
37 libnotify # notify-send
38 # Needed to fix font rendering issue in imagemagick
39 (imagemagick.override { ghostscriptSupport = true; })
41 ++ lib.optionals waylandSupport [
46 ++ lib.optional x11Support xcolor
51 install -Dm755 farge $out/bin/farge
52 wrapProgram $out/bin/farge \
53 --prefix PATH : "${finalAttrs.wrapperPath}"
58 description = "View the color value of a specific pixel on your screen";
59 homepage = "https://github.com/sdushantha/farge";
60 license = licenses.mit;
61 platforms = platforms.unix;
62 maintainers = with maintainers; [
66 mainProgram = "farge";