2014-07-31 00:27:48 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, makeWrapper, intltool, libgpod, curl, flac,
|
2014-09-08 16:02:22 +02:00
|
|
|
gnome, gtk3, glib, gettext, perl, perlXMLParser, flex, libglade, libid3tag,
|
2018-02-25 03:23:58 +01:00
|
|
|
libvorbis, hicolor-icon-theme, gdk_pixbuf }:
|
2009-04-13 17:41:10 +02:00
|
|
|
|
2014-09-08 16:02:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-11 16:09:13 +02:00
|
|
|
version = "2.1.5";
|
2014-07-31 00:27:48 +02:00
|
|
|
name = "gtkpod-${version}";
|
2009-04-13 17:41:10 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-07-31 00:27:48 +02:00
|
|
|
url = "mirror://sourceforge/gtkpod/${name}.tar.gz";
|
2015-08-11 16:09:13 +02:00
|
|
|
sha256 = "0xisrpx069f7bjkyc8vqxb4k0480jmx1wscqxr6cpq1qj6pchzd5";
|
2009-04-13 17:41:10 +02:00
|
|
|
};
|
2009-10-20 00:05:34 +02:00
|
|
|
|
2018-02-25 03:23:58 +01:00
|
|
|
propagatedUserEnvPkgs = [ gnome.gnome-themes-standard ];
|
2014-07-31 00:27:48 +02:00
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ makeWrapper intltool curl gettext perl perlXMLParser
|
2014-07-31 00:27:48 +02:00
|
|
|
flex libgpod libid3tag flac libvorbis gtk3 gdk_pixbuf libglade gnome.anjuta
|
2015-05-20 20:09:15 +02:00
|
|
|
gnome.gdl gnome.defaultIconTheme
|
2018-02-25 03:23:58 +01:00
|
|
|
hicolor-icon-theme ];
|
2009-10-20 00:05:34 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/which/type -P/' scripts/*.sh
|
|
|
|
'';
|
2009-04-13 17:41:10 +02:00
|
|
|
|
2014-07-31 00:27:48 +02:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/bin/gtkpod" \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
2018-02-25 03:23:58 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gnome.gnome-themes-standard}/share:$out/share:$GSETTINGS_SCHEMAS_PATH"
|
2014-07-31 00:27:48 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-07-31 00:40:05 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-04-13 17:41:10 +02:00
|
|
|
description = "GTK Manager for an Apple ipod";
|
|
|
|
homepage = http://gtkpod.sourceforge.net;
|
2014-07-31 00:40:05 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.skeidel ];
|
2009-04-13 17:41:10 +02:00
|
|
|
};
|
|
|
|
}
|