2015-11-06 21:42:11 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, curl, gnugrep, libnotify, scrot, which, xclip }:
|
|
|
|
|
2016-04-05 22:52:41 +02:00
|
|
|
let deps = stdenv.lib.makeBinPath [ curl gnugrep libnotify scrot which xclip ];
|
2015-11-06 21:42:11 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2016-04-05 22:52:41 +02:00
|
|
|
version = "1.7.1";
|
2015-11-06 21:42:11 +01:00
|
|
|
name = "imgur-screenshot-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jomo";
|
|
|
|
repo = "imgur-screenshot";
|
|
|
|
rev = "v${version}";
|
2016-04-05 22:52:41 +02:00
|
|
|
sha256 = "01wiqrc7xxvk7kzgw756jahwa0szb200l8030iwfcgxb679k3v0j";
|
2015-11-06 21:42:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 imgur-screenshot.sh $out/bin/imgur-screenshot
|
|
|
|
wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "A tool for easy screencapping and uploading to imgur";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://https://github.com/jomo/imgur-screenshot/;
|
2015-11-06 21:42:11 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lw ];
|
|
|
|
};
|
2016-04-05 22:52:41 +02:00
|
|
|
}
|