2022-03-27 13:19:42 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, wrapGAppsHook, intltool, libgpod, libxml2, curl, flac
|
|
|
|
, gnome, gtk3, gettext, perlPackages, flex, libid3tag, gdl
|
|
|
|
, libvorbis, gdk-pixbuf
|
|
|
|
}:
|
2009-04-13 15:41:10 +00:00
|
|
|
|
2014-09-08 14:02:22 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-11 14:09:13 +00:00
|
|
|
version = "2.1.5";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gtkpod";
|
2009-04-13 15:41:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/gtkpod/${pname}-${version}.tar.gz";
|
2015-08-11 14:09:13 +00:00
|
|
|
sha256 = "0xisrpx069f7bjkyc8vqxb4k0480jmx1wscqxr6cpq1qj6pchzd5";
|
2009-04-13 15:41:10 +00:00
|
|
|
};
|
2022-05-14 17:15:05 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/which/type -P/' scripts/*.sh
|
|
|
|
'';
|
2009-10-19 22:05:34 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
|
2018-03-22 23:35:25 +00:00
|
|
|
buildInputs = [
|
2018-10-12 22:56:15 +00:00
|
|
|
curl gettext
|
2022-03-27 13:19:42 +00:00
|
|
|
flex libgpod libid3tag flac libvorbis libxml2 gtk3 gdk-pixbuf
|
2021-05-07 21:18:14 +00:00
|
|
|
gdl gnome.adwaita-icon-theme gnome.anjuta
|
2018-10-12 22:56:15 +00:00
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
2009-10-19 22:05:34 +00:00
|
|
|
|
2022-05-14 17:15:05 +00:00
|
|
|
# Workaround build failure on -fno-common toolchains like upstream
|
|
|
|
# gcc-10. Otherwise build fails as:
|
|
|
|
# ld: .libs/autodetection.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: multiple definition of
|
|
|
|
# `gtkpod_app'; .libs/gtkpod_app_iface.o:/build/gtkpod-2.1.5/libgtkpod/gtkpod_app_iface.h:248: first defined here
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2009-04-13 15:41:10 +00:00
|
|
|
|
2014-07-30 22:27:48 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2009-04-13 15:41:10 +00:00
|
|
|
description = "GTK Manager for an Apple ipod";
|
2022-05-14 17:15:05 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/gtkpod/";
|
2014-07-30 22:40:05 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.skeidel ];
|
2009-04-13 15:41:10 +00:00
|
|
|
};
|
|
|
|
}
|