git.iko.soy/typeable/nixpkgs
on master help sign in
shutter: init at 0.93.1

Screenshot and annotation tool. The application may complain about missing GConf dbus service[1], but it still works (and remembers its settings, AFAICT). [1]: The error message is (line wrapped): GConf Error: Failed to contact configuration server; the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: GetIOR failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.GConf was not provided by any .service files)

commit0b3b45c5a7ca319ea27337ab7c0f272102e07ff6 authorBjørn Forsman <bjorn.forsman@gmail.com> dateWed 25 May 2016, 00:43 (11 years ago) parent444afc4
2 files changed+43
pkgs/applications/graphics/shutter/default.nix+41 pkgs/top-level/all-packages.nix+2
pkgs/applications/graphics/shutter/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{ stdenv, fetchurl, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg }:
2+
3+let
4+ perlModules = with perlPackages;
5+ [ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
6+ Gtk2Unique FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
7+ XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
8+ ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWPUserAgent JSON
9+ PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONXS
10+ CommonSense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
11+ ];
12+in
13+stdenv.mkDerivation rec {
14+ name = "shutter-0.93.1";
15+
16+ src = fetchurl {
17+ url = "http://shutter-project.org/wp-content/uploads/releases/tars/${name}.tar.gz";
18+ sha256 = "09cn3scwy98wqxkrjhnmxhpfnnynlbb41856yn5m3zwzqrxiyvak";
19+ };
20+
21+ buildInputs = [ perl makeWrapper gdk_pixbuf librsvg ] ++ perlModules;
22+
23+ installPhase = ''
24+ mkdir -p "$out"
25+ cp -a . "$out"
26+ (cd "$out" && mv CHANGES README COPYING "$out/share/doc/shutter")
27+
28+ wrapProgram $out/bin/shutter \
29+ --set PERL5LIB "${stdenv.lib.makePerlPath perlModules}" \
30+ --prefix PATH : "${imagemagick}/bin" \
31+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
32+ '';
33+
34+ meta = with stdenv.lib; {
35+ description = "Screenshot and annotation tool";
36+ homepage = http://shutter-project.org/;
37+ license = licenses.gpl3Plus;
38+ platforms = platforms.all;
39+ maintainers = [ maintainers.bjornfor ];
40+ };
41+}
pkgs/top-level/all-packages.nix+2
@@ -14013,6 +14013,8 @@ in
1401314013 gtk = gtk3;
1401414014 };
1401514015
14016+ shutter = callPackage ../applications/graphics/shutter { };
14017+
1401614018 simple-scan = callPackage ../applications/graphics/simple-scan { };
1401714019
1401814020 siproxd = callPackage ../applications/networking/siproxd { };