2016-11-16 18:57:45 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg }:
|
2016-05-24 22:43:53 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
perlModules = with perlPackages;
|
|
|
|
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
|
|
|
|
Gtk2Unique FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
|
|
|
|
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
|
|
|
|
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWPUserAgent JSON
|
|
|
|
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONXS
|
|
|
|
CommonSense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "shutter-0.93.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://shutter-project.org/wp-content/uploads/releases/tars/${name}.tar.gz";
|
|
|
|
sha256 = "09cn3scwy98wqxkrjhnmxhpfnnynlbb41856yn5m3zwzqrxiyvak";
|
|
|
|
};
|
|
|
|
|
2016-11-16 18:57:45 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "http://svnweb.mageia.org/packages/cauldron/shutter/current/SOURCES/CVE-2015-0854.patch?revision=880308&view=co";
|
|
|
|
name = "CVE-2015-0854.patch";
|
|
|
|
sha256 = "14r18sxz3ylf39cn9b85snjhjxdk6ngq4vnpljwghw2q5430nb12";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-05-24 22:43:53 +00:00
|
|
|
buildInputs = [ perl makeWrapper gdk_pixbuf librsvg ] ++ perlModules;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
cp -a . "$out"
|
|
|
|
(cd "$out" && mv CHANGES README COPYING "$out/share/doc/shutter")
|
|
|
|
|
|
|
|
wrapProgram $out/bin/shutter \
|
|
|
|
--set PERL5LIB "${stdenv.lib.makePerlPath perlModules}" \
|
2016-06-02 19:07:10 +00:00
|
|
|
--prefix PATH : "${imagemagick.out}/bin" \
|
2016-05-24 22:43:53 +00:00
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Screenshot and annotation tool";
|
|
|
|
homepage = http://shutter-project.org/;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|