Merge pull request #8394 from mbakke/maim

Add maim and slop
This commit is contained in:
Mateusz Kowalczyk 2015-06-19 15:22:20 +01:00
commit fc26e89159
4 changed files with 59 additions and 0 deletions

View File

@ -144,6 +144,7 @@
marcweber = "Marc Weber <marco-oweber@gmx.de>";
matejc = "Matej Cotman <cotman.matej@gmail.com>";
matthiasbeyer = "Matthias Beyer <mail@beyermatthias.de>";
mbakke = "Marius Bakke <ymse@tuta.io>";
meditans = "Carlo Nucera <meditans@gmail.com>";
meisternu = "Matt Miemiec <meister@krutt.org>";
michelk = "Michel Kuhlmann <michel@kuhlmanns.info>";

View File

@ -0,0 +1,30 @@
{ stdenv, fetchurl, cmake, gengetopt, imlib2, libXrandr, libXfixes
, cppcheck}:
stdenv.mkDerivation rec {
name = "maim-${version}";
version = "3.3.41";
src = fetchurl {
url = "https://github.com/naelstrof/maim/archive/v${version}.tar.gz";
sha256 = "12p9zd4skxds26hicy6hrxkxnhbqv1c5ys1h6jchaypvwdggcgnc";
};
buildInputs = [ cmake gengetopt imlib2 libXrandr libXfixes ]
++ stdenv.lib.optional doCheck cppcheck;
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/naelstrof/maim;
description = "A command-line screenshot utility";
longDescription = ''
maim (make image) takes screenshots of your desktop. It has options to
take only a region, and relies on slop to query for regions. maim is
supposed to be an improved scrot.
'';
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with maintainers; [ mbakke ];
};
}

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, cmake, gengetopt, libX11, libXext, cppcheck}:
stdenv.mkDerivation rec {
name = "slop-${version}";
version = "4.1.15";
src = fetchurl {
url = "https://github.com/naelstrof/slop/archive/v${version}.tar.gz";
sha256 = "e20fd47de898abcb537c8100faed859eef4955d7784dbc52470570dae403f02e";
};
buildInputs = [ cmake gengetopt libX11 libXext ]
++ stdenv.lib.optional doCheck cppcheck;
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/naelstrof/slop;
description = "Queries a selection from the user and prints to stdout";
platforms = stdenv.lib.platforms.all;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = with maintainers; [ mbakke ];
};
}

View File

@ -2074,6 +2074,8 @@ let
guile = guile_1_8;
};
maim = callPackage ../tools/graphics/maim {};
mairix = callPackage ../tools/text/mairix { };
makemkv = callPackage ../applications/video/makemkv { };
@ -12382,6 +12384,8 @@ let
slmenu = callPackage ../applications/misc/slmenu {};
slop = callPackage ../tools/misc/slop {};
slrn = callPackage ../applications/networking/newsreaders/slrn { };
sooperlooper = callPackage ../applications/audio/sooperlooper { };