2015-12-19 14:31:41 +00:00
|
|
|
{fetchurl, stdenv, gupnp, gssdp, pkgconfig, gtk3, libuuid, intltool, gupnp_av, gnome3, gnome2, makeWrapper}:
|
2008-06-18 22:34:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-14 20:33:11 +00:00
|
|
|
name = "gupnp-tools-${version}";
|
|
|
|
majorVersion = "0.8";
|
2017-03-13 01:55:07 +00:00
|
|
|
version = "${majorVersion}.13";
|
2008-06-18 22:34:49 +00:00
|
|
|
src = fetchurl {
|
2014-01-14 20:33:11 +00:00
|
|
|
url = "mirror://gnome/sources/gupnp-tools/${majorVersion}/gupnp-tools-${version}.tar.xz";
|
2017-03-13 01:55:07 +00:00
|
|
|
sha256 = "1vbr4iqi7nl7kq982agd3liw10gx67s95idd0pjy5h1jsnwyqgda";
|
2008-06-18 22:34:49 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [gupnp libuuid gssdp gtk3 intltool gupnp_av
|
2015-12-19 14:31:41 +00:00
|
|
|
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" \
|
2016-01-19 08:55:31 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3.out}/share:${gnome3.gnome_themes_standard}/share:${gnome2.gnome_icon_theme}/share:$out/share"
|
2015-12-19 14:31:41 +00:00
|
|
|
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 22:34:49 +00:00
|
|
|
}
|