commit
0decdf318d
3 changed files with 54 additions and 0 deletions
|
@ -8349,6 +8349,12 @@
|
||||||
name = "John Soo";
|
name = "John Soo";
|
||||||
githubId = 10039785;
|
githubId = 10039785;
|
||||||
};
|
};
|
||||||
|
jtbx = {
|
||||||
|
email = "jtbx@duck.com";
|
||||||
|
name = "Jeremy Baxter";
|
||||||
|
github = "jtbx";
|
||||||
|
githubId = 92071952;
|
||||||
|
};
|
||||||
jtcoolen = {
|
jtcoolen = {
|
||||||
email = "jtcoolen@pm.me";
|
email = "jtcoolen@pm.me";
|
||||||
name = "Julien Coolen";
|
name = "Julien Coolen";
|
||||||
|
|
46
pkgs/tools/misc/farge/default.nix
Normal file
46
pkgs/tools/misc/farge/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, bash
|
||||||
|
, bc
|
||||||
|
, feh
|
||||||
|
, grim
|
||||||
|
, imagemagick
|
||||||
|
, slurp
|
||||||
|
, wl-clipboard
|
||||||
|
, xcolor
|
||||||
|
, waylandSupport ? true
|
||||||
|
, x11Support ? true
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "farge";
|
||||||
|
version = "1.0.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sdushantha";
|
||||||
|
repo = "farge";
|
||||||
|
rev = "2ff6669e2350644d4f0b1bd84526efe5eae3c302";
|
||||||
|
hash = "sha256-vCMuFMGcI4D4EzbSsXeNGKNS6nBFkfTcAmSzb9UMArc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ bash bc feh imagemagick ]
|
||||||
|
++ lib.optionals waylandSupport [ grim slurp wl-clipboard ]
|
||||||
|
++ lib.optionals x11Support [ xcolor ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
mkdir -p $out/bin
|
||||||
|
install -m755 farge $out/bin
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A tool that shows the color value of a given pixel on your screen";
|
||||||
|
homepage = "https://github.com/sdushantha/farge";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ jtbx ];
|
||||||
|
mainProgram = "farge";
|
||||||
|
};
|
||||||
|
})
|
|
@ -7984,6 +7984,8 @@ with pkgs;
|
||||||
|
|
||||||
faraday-cli = callPackage ../tools/security/faraday-cli { };
|
faraday-cli = callPackage ../tools/security/faraday-cli { };
|
||||||
|
|
||||||
|
farge = callPackage ../tools/misc/farge { };
|
||||||
|
|
||||||
fastlane = callPackage ../tools/admin/fastlane { };
|
fastlane = callPackage ../tools/admin/fastlane { };
|
||||||
|
|
||||||
fatresize = callPackage ../tools/filesystems/fatresize { };
|
fatresize = callPackage ../tools/filesystems/fatresize { };
|
||||||
|
|
Loading…
Reference in a new issue