1 { lib, stdenv, fetchFromGitHub, makeWrapper, curl, jq, gnugrep, libnotify, scrot, which, xclip }:
3 let deps = lib.makeBinPath [ curl jq gnugrep libnotify scrot which xclip ];
4 in stdenv.mkDerivation rec {
6 pname = "imgur-screenshot";
8 src = fetchFromGitHub {
10 repo = "imgur-screenshot";
12 sha256 = "0fkhvfraijbrw806pgij41bn1hc3r7l7l3snkicmshxj83lmsd5k";
15 nativeBuildInputs = [ makeWrapper ];
18 install -Dm755 imgur-screenshot $out/bin/imgur-screenshot
19 wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
23 description = "Tool for easy screencapping and uploading to imgur";
24 homepage = "https://github.com/jomo/imgur-screenshot/";
25 platforms = platforms.linux;
26 license = licenses.mit;
27 maintainers = with maintainers; [ lw ];
28 mainProgram = "imgur-screenshot";