3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/imgur-screenshot/default.nix

30 lines
918 B
Nix
Raw Normal View History

2015-11-06 20:42:11 +00:00
{ stdenv, fetchFromGitHub, makeWrapper, curl, gnugrep, libnotify, scrot, which, xclip }:
let deps = stdenv.lib.makeBinPath [ curl gnugrep libnotify scrot which xclip ];
2015-11-06 20:42:11 +00:00
in stdenv.mkDerivation rec {
imgur-screenshot: 1.7.1 -> 1.7.4 Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -h` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --help` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -v` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --version` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -h` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --help` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -h` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --help` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -v` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --version` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -h` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --help` and found version 1.7.4 - found 1.7.4 with grep in /nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4 - found 1.7.4 in filename of file in /nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4 cc "@lw"
2018-02-27 03:13:46 +00:00
version = "1.7.4";
2015-11-06 20:42:11 +00:00
name = "imgur-screenshot-${version}";
src = fetchFromGitHub {
owner = "jomo";
repo = "imgur-screenshot";
rev = "v${version}";
imgur-screenshot: 1.7.1 -> 1.7.4 Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -h` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --help` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -v` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --version` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot -h` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/imgur-screenshot --help` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -h` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --help` got 0 exit code - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -v` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --version` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped -h` and found version 1.7.4 - ran `/nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4/bin/.imgur-screenshot-wrapped --help` and found version 1.7.4 - found 1.7.4 with grep in /nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4 - found 1.7.4 in filename of file in /nix/store/qa21knqdq5iapkli5dhvmnj10wqrwpsi-imgur-screenshot-1.7.4 cc "@lw"
2018-02-27 03:13:46 +00:00
sha256 = "1bhi9sk8v7szh2fj13qwvdwzy5dw2w4kml86sy1ns1rn0xin0cgr";
2015-11-06 20:42:11 +00:00
};
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/;
2015-11-06 20:42:11 +00:00
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [ lw ];
};
}