2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg
|
2018-05-03 10:25:19 +01:00
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
2016-05-24 23:43:53 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
perlModules = with perlPackages;
|
|
|
|
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
|
|
|
|
Gtk2Unique FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
|
|
|
|
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
|
2018-07-22 03:03:24 +01:00
|
|
|
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWP JSON
|
2016-05-24 23:43:53 +01:00
|
|
|
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONXS
|
2018-07-22 03:03:24 +01:00
|
|
|
commonsense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
|
2018-04-19 17:57:17 +01:00
|
|
|
EncodeLocale TryTiny TypesSerialiser LWPMediaTypes
|
2016-05-24 23:43:53 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-10 13:01:49 +01:00
|
|
|
name = "shutter-0.94";
|
2016-05-24 23:43:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-10-10 13:01:49 +01:00
|
|
|
url = "https://launchpad.net/shutter/0.9x/0.94/+download/shutter-0.94.tar.gz";
|
|
|
|
sha256 = "943152cdf9e1b2096d38e3da9622d8bf97956a08eda747c3e7fcc564a3f0f40d";
|
2016-05-24 23:43:53 +01: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 20:07:10 +01:00
|
|
|
--prefix PATH : "${imagemagick.out}/bin" \
|
2018-05-03 10:25:19 +01:00
|
|
|
--suffix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \
|
2016-05-24 23:43:53 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|