shutter: 0.94.3 -> 0.97
This commit is contained in:
parent
73a54fec42
commit
ac72256745
@ -1,39 +1,103 @@
|
|||||||
{ lib, stdenv, fetchurl, perlPackages, makeWrapper, imagemagick, gdk-pixbuf, librsvg
|
{ lib
|
||||||
, hicolor-icon-theme, procps
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, perlPackages
|
||||||
|
, wrapGAppsHook
|
||||||
|
, imagemagick
|
||||||
|
, gdk-pixbuf
|
||||||
|
, librsvg
|
||||||
|
, hicolor-icon-theme
|
||||||
|
, procps
|
||||||
|
, libwnck
|
||||||
|
, libappindicator-gtk3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
perlModules = with perlPackages;
|
perlModules = with perlPackages; [
|
||||||
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
|
# Not sure if these are needed
|
||||||
Gtk2Unique FileBaseDir FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
|
# Gnome2 Gnome2Canvas Gnome2VFS Gtk2AppIndicator Gtk2Unique
|
||||||
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
|
ImageMagick
|
||||||
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWP JSON
|
Cairo
|
||||||
ImageMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONMaybeXS
|
FileBaseDir
|
||||||
commonsense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
|
FileWhich
|
||||||
EncodeLocale TryTiny TypesSerialiser LWPMediaTypes
|
FileCopyRecursive
|
||||||
|
XMLSimple
|
||||||
|
XMLTwig
|
||||||
|
XMLParser
|
||||||
|
SortNaturally
|
||||||
|
LocaleGettext
|
||||||
|
ProcProcessTable
|
||||||
|
X11Protocol
|
||||||
|
ProcSimple
|
||||||
|
ImageExifTool
|
||||||
|
JSON
|
||||||
|
JSONMaybeXS
|
||||||
|
NetOAuth
|
||||||
|
PathClass
|
||||||
|
LWP
|
||||||
|
LWPProtocolHttps
|
||||||
|
NetDBus
|
||||||
|
TryTiny
|
||||||
|
WWWMechanize
|
||||||
|
HTTPMessage
|
||||||
|
HTTPDate
|
||||||
|
HTMLForm
|
||||||
|
HTMLParser
|
||||||
|
HTMLTagset
|
||||||
|
HTTPCookies
|
||||||
|
EncodeLocale
|
||||||
|
URI
|
||||||
|
CarpAlways
|
||||||
|
GlibObjectIntrospection
|
||||||
|
NumberBytesHuman
|
||||||
|
CairoGObject
|
||||||
|
Readonly
|
||||||
|
Gtk3ImageView
|
||||||
|
Gtk3
|
||||||
|
Glib
|
||||||
|
Pango
|
||||||
|
GooCanvas2
|
||||||
|
GooCanvas2CairoTypes
|
||||||
|
commonsense
|
||||||
|
TypesSerialiser
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "shutter-0.94.3";
|
pname = "shutter";
|
||||||
|
version = "0.97";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://launchpad.net/shutter/0.9x/0.94.3/+download/shutter-0.94.3.tar.gz";
|
owner = "shutter-project";
|
||||||
sha256 = "01wv5k6zqfqa2rss461lpdpjxpfk4awzfdc6j2qk6bh4g4zgmgl5";
|
repo = "shutter";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-/2eQLJJZP0ArQUrxcFdogv/4wy+O021hODkJYLQmLY8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
buildInputs = [ perlPackages.perl procps gdk-pixbuf librsvg ] ++ perlModules;
|
buildInputs = [
|
||||||
|
perlPackages.perl
|
||||||
|
procps
|
||||||
|
gdk-pixbuf
|
||||||
|
librsvg
|
||||||
|
libwnck
|
||||||
|
libappindicator-gtk3
|
||||||
|
] ++ perlModules;
|
||||||
|
|
||||||
installPhase = ''
|
makeFlags = [
|
||||||
mkdir -p "$out"
|
"prefix=${placeholder "out"}"
|
||||||
cp -a . "$out"
|
];
|
||||||
(cd "$out" && mv CHANGES README COPYING "$out/share/doc/shutter")
|
|
||||||
|
|
||||||
wrapProgram $out/bin/shutter \
|
postPatch = ''
|
||||||
--set PERL5LIB "${perlPackages.makePerlPath perlModules}" \
|
patchShebangs po2mo.sh
|
||||||
--prefix PATH : "${imagemagick.out}/bin" \
|
'';
|
||||||
--suffix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \
|
|
||||||
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--set PERL5LIB ${perlPackages.makePerlPath perlModules} \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ imagemagick ] } \
|
||||||
|
--suffix XDG_DATA_DIRS : ${hicolor-icon-theme}/share \
|
||||||
|
--set GDK_PIXBUF_MODULE_FILE $GDK_PIXBUF_MODULE_FILE
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user