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