diff options
author | Thane Gill <me@thanegill.com> | 2017-12-14 17:28:39 -0800 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2017-12-17 00:56:40 +0000 |
commit | 51c0ddc9e1b0616144bb3768207eba3a9a2b4971 (patch) | |
tree | a3c6ce865c243f8ef1b5f60c74418b55c63fc0ca /pkgs/applications/misc/airtame | |
parent | ede2a5768f5c0288a9e32c3c4f6a28945692a97b (diff) | |
download | nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar.gz nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar.bz2 nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar.lz nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar.xz nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.tar.zst nixlib-51c0ddc9e1b0616144bb3768207eba3a9a2b4971.zip |
airtame: init at 3.0.1
Diffstat (limited to 'pkgs/applications/misc/airtame')
-rw-r--r-- | pkgs/applications/misc/airtame/default.nix | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/pkgs/applications/misc/airtame/default.nix b/pkgs/applications/misc/airtame/default.nix new file mode 100644 index 000000000000..90a752a02601 --- /dev/null +++ b/pkgs/applications/misc/airtame/default.nix @@ -0,0 +1,93 @@ +{ stdenv, lib, makeDesktopItem, makeWrapper +, alsaLib, atk, cairo, cups, dbus, expat, fetchurl, fontconfig, freetype +, gdk_pixbuf, glib, gnome2, libXScrnSaver, nspr, nss, udev, xlibs +}: + +stdenv.mkDerivation rec { + pname = "airtame"; + version = "3.0.1"; + name = "${pname}-${version}"; + longName = "${pname}-application"; + + src = fetchurl { + url = "https://downloads.airtame.com/application/ga/lin_x64/releases/${longName}-${version}.tar.gz"; + sha256 = "1z5v9dwcvcmz190acm89kr4mngirha1v2jpvfzvisi0vidl2ba60"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + desktopItem = makeDesktopItem rec { + name = "airtame"; + exec = longName; + comment = "Airtame Streaming Client"; + desktopName = "Airtame"; + icon = name; + genericName = comment; + categories = "Application;Network;"; + }; + + installPhase = '' + opt="$out/opt/airtame" + mkdir -p "$opt" + cp -R . "$opt" + mkdir -p "$out/bin" + ln -s "$opt/${longName}" "$out/bin/" + ln -s "${udev.lib}/lib/libudev.so.1" "$opt/libudev.so.1" + mkdir -p "$out/share" + cp -r "${desktopItem}/share/applications" "$out/share/" + mkdir -p "$out/share/icons" + ln -s "$opt/icon.png" "$out/share/icons/airtame.png" + ''; + + preFixup = let + libPath = lib.makeLibraryPath [ + alsaLib + atk + cairo + cups + dbus.lib + expat + fontconfig + freetype + gdk_pixbuf + glib + gnome2.GConf + gnome2.gtk + gnome2.pango + nspr + nss + udev.lib + stdenv.cc.cc.lib + xlibs.libX11 + xlibs.libXScrnSaver + xlibs.libXcomposite + xlibs.libXcursor + xlibs.libXdamage + xlibs.libXext + xlibs.libXfixes + xlibs.libXi + xlibs.libXrandr + xlibs.libXrender + xlibs.libXtst + xlibs.libxcb + ]; + in '' + patchelf $opt/${longName} \ + --set-interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" \ + --set-rpath "$opt:${libPath}" + ''; + + postFixup = '' + wrapProgram $opt/${longName} \ + --set LD_LIBRARY_PATH "$opt/resources/app.asar.unpacked/streamer/vendor/airtame-core/lib:$opt/resources/app.asar.unpacked/encryption/out/lib" \ + --add-flags "--disable-gpu --enable-transparent-visuals" + ''; + + meta = with stdenv.lib; { + homepage = https://airtame.com/download; + description = "Wireless streaming client for Airtame devices"; + license = licenses.unfree; + maintainers = with maintainers; [ thanegill ]; + platforms = platforms.linux; + }; +} |