From 998934bf895066b02b827df91ef012d531068704 Mon Sep 17 00:00:00 2001 From: Sergey Sofeychuk Date: Fri, 6 Nov 2015 23:42:11 +0300 Subject: imgur-screenshot: init at 1.5.4 --- pkgs/tools/graphics/imgur-screenshot/default.nix | 29 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/tools/graphics/imgur-screenshot/default.nix diff --git a/pkgs/tools/graphics/imgur-screenshot/default.nix b/pkgs/tools/graphics/imgur-screenshot/default.nix new file mode 100644 index 000000000000..d1badc735095 --- /dev/null +++ b/pkgs/tools/graphics/imgur-screenshot/default.nix @@ -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 ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ddf2f907ebca..faad13085f5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1897,6 +1897,8 @@ let imapsync = callPackage ../tools/networking/imapsync { }; + imgur-screenshot = callPackage ../tools/graphics/imgur-screenshot { }; + imgurbash = callPackage ../tools/graphics/imgurbash { }; inadyn = callPackage ../tools/networking/inadyn { }; -- cgit 1.4.1 From 76e33c3602011e7594bbf27e0ed4e4c5806be4ca Mon Sep 17 00:00:00 2001 From: Sergey Sofeychuk Date: Fri, 6 Nov 2015 23:24:49 +0300 Subject: maintainers: add lw --- lib/maintainers.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 1c55d2e2de83..2146bfaa3089 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -172,6 +172,7 @@ lsix = "Lancelot SIX "; ludo = "Ludovic Courtès "; lukego = "Luke Gorrie "; + lw = "Sergey Sofeychuk "; madjar = "Georges Dubus "; magnetophon = "Bart Brouns "; mahe = "Matthias Herrmann "; -- cgit 1.4.1