2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, curl, jq, gnugrep, libnotify, scrot, which, xclip }:
|
2015-11-06 12:42:11 -08:00
|
|
|
|
2021-01-15 01:19:50 -08:00
|
|
|
let deps = lib.makeBinPath [ curl jq gnugrep libnotify scrot which xclip ];
|
2015-11-06 12:42:11 -08:00
|
|
|
in stdenv.mkDerivation rec {
|
2020-10-13 05:36:37 -07:00
|
|
|
version = "2.0.0";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "imgur-screenshot";
|
2015-11-06 12:42:11 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jomo";
|
|
|
|
repo = "imgur-screenshot";
|
|
|
|
rev = "v${version}";
|
2020-10-13 05:36:37 -07:00
|
|
|
sha256 = "0fkhvfraijbrw806pgij41bn1hc3r7l7l3snkicmshxj83lmsd5k";
|
2015-11-06 12:42:11 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-10-13 05:36:37 -07:00
|
|
|
install -Dm755 imgur-screenshot $out/bin/imgur-screenshot
|
2015-11-06 12:42:11 -08:00
|
|
|
wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
|
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2016-02-27 09:24:00 -08:00
|
|
|
description = "A tool for easy screencapping and uploading to imgur";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/jomo/imgur-screenshot/";
|
2015-11-06 12:42:11 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lw ];
|
|
|
|
};
|
2016-04-05 13:52:41 -07:00
|
|
|
}
|