git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10849 from lolwat97/imgur-screenshot
75259cbNikolay Amiantov
lib/maintainers.nix+1
@@ -172,6 +172,7 @@
172 lsix = "Lancelot SIX <lsix@lancelotsix.com>";
172 lsix = "Lancelot SIX <lsix@lancelotsix.com>";
173 ludo = "Ludovic Courtès <ludo@gnu.org>";
173 ludo = "Ludovic Courtès <ludo@gnu.org>";
174 lukego = "Luke Gorrie <luke@snabb.co>";
174 lukego = "Luke Gorrie <luke@snabb.co>";
175+ lw = "Sergey Sofeychuk <lw@fmap.me>";
175 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
176 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
176 magnetophon = "Bart Brouns <bart@magnetophon.nl>";
177 magnetophon = "Bart Brouns <bart@magnetophon.nl>";
177 mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
178 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
1881
1881
1882 imapsync = callPackage ../tools/networking/imapsync { };
1882 imapsync = callPackage ../tools/networking/imapsync { };
1883
1883
1884+ imgur-screenshot = callPackage ../tools/graphics/imgur-screenshot { };
1885+
1884 imgurbash = callPackage ../tools/graphics/imgurbash { };
1886 imgurbash = callPackage ../tools/graphics/imgurbash { };
1885
1887
1886 inadyn = callPackage ../tools/networking/inadyn { };
1888 inadyn = callPackage ../tools/networking/inadyn { };