2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, perlPackages, makeWrapper, imagemagick, gdk-pixbuf, librsvg
|
2018-11-03 16:00:30 +00:00
|
|
|
, hicolor-icon-theme, procps
|
2018-05-03 10:25:19 +01:00
|
|
|
}:
|
2016-05-24 23:43:53 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
perlModules = with perlPackages;
|
|
|
|
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
|
2018-11-03 16:00:30 +00:00
|
|
|
Gtk2Unique FileBaseDir FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
|
2016-05-24 23:43:53 +01:00
|
|
|
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
|
2018-07-22 03:03:24 +01:00
|
|
|
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWP JSON
|
2018-11-03 16:00:30 +00:00
|
|
|
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONMaybeXS
|
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
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-06-18 13:13:11 +01:00
|
|
|
name = "shutter-0.94.3";
|
2016-05-24 23:43:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-06-18 13:13:11 +01:00
|
|
|
url = "https://launchpad.net/shutter/0.9x/0.94.3/+download/shutter-0.94.3.tar.gz";
|
|
|
|
sha256 = "01wv5k6zqfqa2rss461lpdpjxpfk4awzfdc6j2qk6bh4g4zgmgl5";
|
2016-05-24 23:43:53 +01:00
|
|
|
};
|
|
|
|
|
2018-11-03 16:00:30 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-05-22 12:03:39 +01:00
|
|
|
buildInputs = [ perlPackages.perl procps gdk-pixbuf librsvg ] ++ perlModules;
|
2016-05-24 23:43:53 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out"
|
|
|
|
cp -a . "$out"
|
|
|
|
(cd "$out" && mv CHANGES README COPYING "$out/share/doc/shutter")
|
|
|
|
|
|
|
|
wrapProgram $out/bin/shutter \
|
2018-12-15 03:50:31 +00:00
|
|
|
--set PERL5LIB "${perlPackages.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"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-05-24 23:43:53 +01:00
|
|
|
description = "Screenshot and annotation tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://shutter-project.org/";
|
2016-05-24 23:43:53 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|