about summary refs log tree commit diff
path: root/pkgs/tools/graphics
diff options
context:
space:
mode:
authorSergey Sofeychuk <lw@fmap.me>2015-11-06 23:42:11 +0300
committerSergey Sofeychuk <lw@fmap.me>2015-11-06 23:48:32 +0300
commit998934bf895066b02b827df91ef012d531068704 (patch)
tree3c540c35fcd86d619d6561c001dec60a39b4d845 /pkgs/tools/graphics
parent7ae05edcdd14f6ace83ead9bf0d114e97c89a83a (diff)
downloadnixlib-998934bf895066b02b827df91ef012d531068704.tar
nixlib-998934bf895066b02b827df91ef012d531068704.tar.gz
nixlib-998934bf895066b02b827df91ef012d531068704.tar.bz2
nixlib-998934bf895066b02b827df91ef012d531068704.tar.lz
nixlib-998934bf895066b02b827df91ef012d531068704.tar.xz
nixlib-998934bf895066b02b827df91ef012d531068704.tar.zst
nixlib-998934bf895066b02b827df91ef012d531068704.zip
imgur-screenshot: init at 1.5.4
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r--pkgs/tools/graphics/imgur-screenshot/default.nix29
1 files changed, 29 insertions, 0 deletions
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