git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10849 from lolwat97/imgur-screenshot

Add imgur-screenshot package

commit75259cbf87253184ba437c874e9ed18d5f72b06e authorNikolay Amiantov <ab@fmap.me> dateFri 6 Nov 2015, 23:58 (11 years ago) parent7df851576e33c3
3 files changed+32
lib/maintainers.nix+1 pkgs/tools/graphics/imgur-screenshot/default.nix+29 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -172,6 +172,7 @@
172172 lsix = "Lancelot SIX <lsix@lancelotsix.com>";
173173 ludo = "Ludovic Courtès <ludo@gnu.org>";
174174 lukego = "Luke Gorrie <luke@snabb.co>";
175+ lw = "Sergey Sofeychuk <lw@fmap.me>";
175176 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
176177 magnetophon = "Bart Brouns <bart@magnetophon.nl>";
177178 mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
pkgs/tools/graphics/imgur-screenshot/default.nixnew file+29
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -1881,6 +1881,8 @@ let
18811881
18821882 imapsync = callPackage ../tools/networking/imapsync { };
18831883
1884+ imgur-screenshot = callPackage ../tools/graphics/imgur-screenshot { };
1885+
18841886 imgurbash = callPackage ../tools/graphics/imgurbash { };
18851887
18861888 inadyn = callPackage ../tools/networking/inadyn { };