2022-04-03 18:54:34 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, wrapGAppsHook, intltool, libgpod, libxml2, curl, flac
|
|
|
|
, gnome, gtk3, gettext, perlPackages, flex, libid3tag, gdl
|
|
|
|
, libvorbis, gdk-pixbuf
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.1.5";
|
|
|
|
pname = "gtkpod";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/gtkpod/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0xisrpx069f7bjkyc8vqxb4k0480jmx1wscqxr6cpq1qj6pchzd5";
|
|
|
|
};
|
2022-05-18 14:49:53 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's/which/type -P/' scripts/*.sh
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
curl gettext
|
2022-04-03 18:54:34 +00:00
|
|
|
flex libgpod libid3tag flac libvorbis libxml2 gtk3 gdk-pixbuf
|
2021-05-20 23:08:51 +00:00
|
|
|
gdl gnome.adwaita-icon-theme gnome.anjuta
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
|
|
|
|
2022-05-18 14:49:53 +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-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GTK Manager for an Apple ipod";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/gtkpod/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|