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