diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 9478752d229..a0b6031ae85 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 "; diff --git a/pkgs/tools/graphics/imgur-screenshot/default.nix b/pkgs/tools/graphics/imgur-screenshot/default.nix new file mode 100644 index 00000000000..d1badc73509 --- /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 e9a9ccf17f3..3e893d19431 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1881,6 +1881,8 @@ let imapsync = callPackage ../tools/networking/imapsync { }; + imgur-screenshot = callPackage ../tools/graphics/imgur-screenshot { }; + imgurbash = callPackage ../tools/graphics/imgurbash { }; inadyn = callPackage ../tools/networking/inadyn { };