Airtame 3.1.1 -> 3.3.0 (#48505)
This commit is contained in:
parent
782c820ad9
commit
81047fa458
@ -6,51 +6,20 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let libPath = lib.makeLibraryPath [
|
let libPath = lib.makeLibraryPath [
|
||||||
alsaLib
|
alsaLib atk cairo cups curl dbus expat ffmpeg fontconfig freetype gdk_pixbuf
|
||||||
atk
|
glib glibc gnome2.GConf gtk2 libopus nspr nss pango stdenv.cc.cc udev x264
|
||||||
cairo
|
libX11 libXScrnSaver libXcomposite libXcursor libXdamage libXext libXfixes
|
||||||
cups
|
libXi libXrandr libXrender libXtst libpulseaudio libxcb
|
||||||
curl
|
|
||||||
dbus
|
|
||||||
expat
|
|
||||||
ffmpeg
|
|
||||||
fontconfig
|
|
||||||
freetype
|
|
||||||
gdk_pixbuf
|
|
||||||
glib
|
|
||||||
glibc
|
|
||||||
gnome2.GConf
|
|
||||||
gtk2
|
|
||||||
libopus
|
|
||||||
nspr
|
|
||||||
nss
|
|
||||||
pango
|
|
||||||
stdenv.cc.cc
|
|
||||||
udev
|
|
||||||
x264
|
|
||||||
libX11
|
|
||||||
libXScrnSaver
|
|
||||||
libXcomposite
|
|
||||||
libXcursor
|
|
||||||
libXdamage
|
|
||||||
libXext
|
|
||||||
libXfixes
|
|
||||||
libXi
|
|
||||||
libXrandr
|
|
||||||
libXrender
|
|
||||||
libXtst
|
|
||||||
libpulseaudio
|
|
||||||
libxcb
|
|
||||||
];
|
];
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "airtame";
|
pname = "airtame";
|
||||||
version = "3.1.1";
|
version = "3.3.0";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
longName = "${pname}-application";
|
longName = "${pname}-application";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://downloads.airtame.com/application/ga/lin_x64/releases/${longName}-${version}.tar.gz";
|
url = "https://downloads.airtame.com/application/ga/lin_x64/releases/${longName}-${version}.tar.gz";
|
||||||
sha256 = "1am1qz280r5g9i0vwwx5lr24fpdl5lazhpr2bhb34nlr5d8rsmzr";
|
sha256 = "16ca1vcxpka26jcrfbxpq74kcizgrm138j94bby6kzqp2swhrl76";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
@ -77,15 +46,26 @@ in stdenv.mkDerivation rec {
|
|||||||
ln -s "$opt/icon.png" "$out/share/icons/airtame.png"
|
ln -s "$opt/icon.png" "$out/share/icons/airtame.png"
|
||||||
|
|
||||||
# Flags and rpath are copied from launch-airtame.sh.
|
# Flags and rpath are copied from launch-airtame.sh.
|
||||||
interp="$(< $NIX_CC/nix-support/dynamic-linker)"
|
vendorlib="\
|
||||||
vendorlib="$opt/resources/app.asar.unpacked/streamer/vendor/airtame-core/lib"
|
$opt/resources/app.asar.unpacked/modules/streamer/dist/deps/airtame-modules:\
|
||||||
rpath="${libPath}:$opt:$vendorlib:$opt/resources/app.asar.unpacked/encryption/out/lib"
|
$opt/resources/app.asar.unpacked/encryption/out/lib:\
|
||||||
rm $vendorlib/libcurl.so*
|
$opt/resources/deps/airtame-core/lib:\
|
||||||
|
$opt/resources/deps/airtame-encryption/lib"
|
||||||
|
|
||||||
|
echo $vendorlib
|
||||||
|
|
||||||
|
rpath="${libPath}:$opt:$vendorlib"
|
||||||
|
|
||||||
find "$opt" \( -type f -executable -o -name "*.so" -o -name "*.so.*" \) \
|
find "$opt" \( -type f -executable -o -name "*.so" -o -name "*.so.*" \) \
|
||||||
-exec patchelf --set-rpath "$rpath" {} \;
|
-exec patchelf --set-rpath "$rpath" {} \;
|
||||||
|
|
||||||
# The main binary also needs libudev which was removed by --shrink-rpath.
|
# The main binary also needs libudev which was removed by --shrink-rpath.
|
||||||
|
interp="$(< $NIX_CC/nix-support/dynamic-linker)"
|
||||||
patchelf --set-interpreter "$interp" $opt/${longName}
|
patchelf --set-interpreter "$interp" $opt/${longName}
|
||||||
wrapProgram $opt/${longName} --add-flags "--disable-gpu --enable-transparent-visuals"
|
|
||||||
|
wrapProgram $opt/${longName} \
|
||||||
|
--prefix LD_LIBRARY_PATH=$rpath \
|
||||||
|
--add-flags "--disable-gpu --enable-transparent-visuals"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user