2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, lib, fetchurl, intltool, pkgconfig, gstreamer, gst-plugins-base
|
2017-02-26 20:37:41 +01:00
|
|
|
, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-ffmpeg, glib
|
2016-01-22 15:34:51 +01:00
|
|
|
, mono, mono-addins, dbus-sharp-1_0, dbus-sharp-glib-1_0, notify-sharp, gtk-sharp-2_0
|
|
|
|
, boo, gdata-sharp, taglib-sharp, sqlite, gnome-sharp, gconf, gtk-sharp-beans, gio-sharp
|
|
|
|
, libmtp, libgpod, mono-zeroconf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "banshee-${version}";
|
|
|
|
version = "2.6.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://ftp.gnome.org/pub/GNOME/sources/banshee/2.6/banshee-${version}.tar.xz";
|
2016-01-22 15:34:51 +01:00
|
|
|
sha256 = "1y30p8wxx5li39i5gpq2wib0ympy8llz0gyi6ri9bp730ndhhz7p";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
buildInputs = [
|
2017-02-26 21:25:29 +01:00
|
|
|
gtk-sharp-2_0.gtk gstreamer gst-plugins-base gst-plugins-good
|
2017-02-26 20:37:41 +01:00
|
|
|
gst-plugins-bad gst-plugins-ugly gst-ffmpeg
|
2016-01-22 15:34:51 +01:00
|
|
|
mono dbus-sharp-1_0 dbus-sharp-glib-1_0 mono-addins notify-sharp
|
|
|
|
gtk-sharp-2_0 boo gdata-sharp taglib-sharp sqlite gnome-sharp gconf gtk-sharp-beans
|
|
|
|
gio-sharp libmtp libgpod mono-zeroconf
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs data/desktop-files/update-desktop-file.sh
|
|
|
|
patchShebangs build/private-icon-theme-installer
|
|
|
|
sed -i "s,DOCDIR=.*,DOCDIR=$out/lib/monodoc," configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = let
|
|
|
|
ldLibraryPath = lib.makeLibraryPath [ gtk-sharp-2_0.gtk gtk-sharp-2_0 sqlite gconf glib gstreamer ];
|
|
|
|
|
|
|
|
monoGACPrefix = lib.concatStringsSep ":" [
|
|
|
|
mono dbus-sharp-1_0 dbus-sharp-glib-1_0 mono-addins notify-sharp gtk-sharp-2_0
|
|
|
|
boo gdata-sharp taglib-sharp sqlite gnome-sharp gconf gtk-sharp-beans
|
|
|
|
gio-sharp libmtp libgpod mono-zeroconf
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
sed -e '2a export MONO_GAC_PREFIX=${monoGACPrefix}' \
|
|
|
|
-e 's|LD_LIBRARY_PATH=|LD_LIBRARY_PATH=${ldLibraryPath}:|' \
|
|
|
|
-e "s|GST_PLUGIN_PATH=|GST_PLUGIN_PATH=$GST_PLUGIN_SYSTEM_PATH:|" \
|
|
|
|
-e 's| mono | ${mono}/bin/mono |' \
|
|
|
|
-i $out/bin/banshee
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
2018-07-22 17:36:19 +02:00
|
|
|
homepage = "http://banshee.fm/";
|
2016-01-22 15:34:51 +01:00
|
|
|
description = "A music player written in C# using GNOME technologies";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.zohl ];
|
|
|
|
};
|
|
|
|
}
|