2015-12-19 15:31:41 +01:00
|
|
|
{fetchurl, stdenv, gupnp, gssdp, pkgconfig, gtk3, libuuid, intltool, gupnp_av, gnome3, gnome2, makeWrapper}:
|
2008-06-19 00:34:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-14 21:33:11 +01:00
|
|
|
name = "gupnp-tools-${version}";
|
|
|
|
majorVersion = "0.8";
|
|
|
|
version = "${majorVersion}.8";
|
2008-06-19 00:34:49 +02:00
|
|
|
src = fetchurl {
|
2014-01-14 21:33:11 +01:00
|
|
|
url = "mirror://gnome/sources/gupnp-tools/${majorVersion}/gupnp-tools-${version}.tar.xz";
|
2014-01-11 13:28:12 +01:00
|
|
|
sha256 = "160dgh9pmlb85qfavwqz46lqawpshs8514bx2b57f9rbiny8kbij";
|
2008-06-19 00:34:49 +02:00
|
|
|
};
|
|
|
|
|
2015-12-19 15:31:41 +01:00
|
|
|
buildInputs = [gupnp libuuid gssdp pkgconfig gtk3 intltool gupnp_av
|
|
|
|
gnome2.gnome_icon_theme makeWrapper];
|
2014-01-11 13:28:12 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2015-12-19 15:31:41 +01:00
|
|
|
for program in gupnp-av-cp gupnp-universal-cp; do
|
|
|
|
wrapProgram "$out/bin/$program" \
|
2016-01-19 09:55:31 +01:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3.out}/share:${gnome3.gnome_themes_standard}/share:${gnome2.gnome_icon_theme}/share:$out/share"
|
2015-12-19 15:31:41 +01:00
|
|
|
done
|
2014-01-11 13:28:12 +01:00
|
|
|
'';
|
2015-12-19 15:31:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2008-06-19 00:34:49 +02:00
|
|
|
}
|