@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, makeWrapper, curl, gnugrep, libnotify, scrot, which, xclip }:
2+
3+let deps = stdenv.lib.makeSearchPath "bin" [ curl gnugrep libnotify scrot which xclip ];
4+in stdenv.mkDerivation rec {
5+ version = "1.5.4";
6+ name = "imgur-screenshot-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "jomo";
10+ repo = "imgur-screenshot";
11+ rev = "v${version}";
12+ sha256 = "1ff88mvrd0b7nmrkjljs3rnprk5ih0iif92dn39s3vnag3fp9f10";
13+ };
14+
15+ nativeBuildInputs = [ makeWrapper ];
16+
17+ installPhase = ''
18+ install -Dm755 imgur-screenshot.sh $out/bin/imgur-screenshot
19+ wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
20+ '';
21+
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 ];
28+ };
29+}