Merge pull request #10849 from lolwat97/imgur-screenshot
Add imgur-screenshot package
This commit is contained in:
commit
75259cbf87
@ -172,6 +172,7 @@
|
|||||||
lsix = "Lancelot SIX <lsix@lancelotsix.com>";
|
lsix = "Lancelot SIX <lsix@lancelotsix.com>";
|
||||||
ludo = "Ludovic Courtès <ludo@gnu.org>";
|
ludo = "Ludovic Courtès <ludo@gnu.org>";
|
||||||
lukego = "Luke Gorrie <luke@snabb.co>";
|
lukego = "Luke Gorrie <luke@snabb.co>";
|
||||||
|
lw = "Sergey Sofeychuk <lw@fmap.me>";
|
||||||
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
|
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
|
||||||
magnetophon = "Bart Brouns <bart@magnetophon.nl>";
|
magnetophon = "Bart Brouns <bart@magnetophon.nl>";
|
||||||
mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
|
mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
|
||||||
|
29
pkgs/tools/graphics/imgur-screenshot/default.nix
Normal file
29
pkgs/tools/graphics/imgur-screenshot/default.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, makeWrapper, curl, gnugrep, libnotify, scrot, which, xclip }:
|
||||||
|
|
||||||
|
let deps = stdenv.lib.makeSearchPath "bin" [ curl gnugrep libnotify scrot which xclip ];
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
version = "1.5.4";
|
||||||
|
name = "imgur-screenshot-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jomo";
|
||||||
|
repo = "imgur-screenshot";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1ff88mvrd0b7nmrkjljs3rnprk5ih0iif92dn39s3vnag3fp9f10";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm755 imgur-screenshot.sh $out/bin/imgur-screenshot
|
||||||
|
wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A tool for easy screencapping and uploading to imgur.";
|
||||||
|
homepage = "https://https://github.com/jomo/imgur-screenshot/";
|
||||||
|
platforms = platforms.linux;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ lw ];
|
||||||
|
};
|
||||||
|
}
|
@ -1881,6 +1881,8 @@ let
|
|||||||
|
|
||||||
imapsync = callPackage ../tools/networking/imapsync { };
|
imapsync = callPackage ../tools/networking/imapsync { };
|
||||||
|
|
||||||
|
imgur-screenshot = callPackage ../tools/graphics/imgur-screenshot { };
|
||||||
|
|
||||||
imgurbash = callPackage ../tools/graphics/imgurbash { };
|
imgurbash = callPackage ../tools/graphics/imgurbash { };
|
||||||
|
|
||||||
inadyn = callPackage ../tools/networking/inadyn { };
|
inadyn = callPackage ../tools/networking/inadyn { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user