Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ stdenv, lib, xorg, curl, gtk3, pango, gdk-pixbuf, glib, fontconfig, cairo, libGL, libva, libpng, intel-media-sdk, makeWrapper, fetchurl, dpkg, autoPatchelfHook }:
stdenv.mkDerivation rec {
name = "immersed-${version}";
version = "2.1-0";
src = fetchurl {
url = "http://206.189.168.203:8080/pool/main/i/immersed/Immersed_${version}_amd64.deb";
sha256 = "03909cb9fc151717af0d7a8265c780e2e9e2b878dee61023c2508339d9bf0fb4";
};
sourceRoot = ".";
nativeBuildInputs = [ dpkg autoPatchelfHook ];
unpackCmd = "dpkg-deb -x $curSrc .";
dontConfigure = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp -R usr/share usr/local/bin $out/
# fix the path in the desktop file
substituteInPlace \
$out/share/applications/immersed-handler.desktop \
--replace /usr/local/bin/ $out/bin/
# symlink the binary to bin/
'';
buildInputs = [
curl #libcurl-gnutls.so.4
gtk3 #libgdk-3 libgtk-3
pango #libpangocairo-1.0.so.0 libpango
gdk-pixbuf #libgdk-pixbuf
glib #libgio-2.0.so.0 libgobject-2.0.so.0 ibglib-2.0.so.0
fontconfig #libfontconfig.so.1
xorg.libXcomposite #libXcomposite.so.1
xorg.libXdamage #libXdamage.so.1
xorg.libXfixes #libXfixes.so.3
xorg.libX11 #libX11.so.6
xorg.libXinerama #libXinerama.so.1
xorg.libXext #libXext.so.6
cairo #libcairo.so.2
xorg.libSM #libSM.so.6
xorg.libXxf86vm
xorg.libXtst
libGL
libva
libpng
intel-media-sdk
stdenv.cc.cc.lib # libstdc++.so.6
];
meta = with stdenv.lib; {
homepage = https://immersedvr.com/;
description = "Immersed Agent";
license = licenses.unfree;
platforms = platforms.linux;
maintainers = [ "devzero" ];
};
}
./etc
./etc/apt
./etc/apt/sources.list.d
./etc/apt/sources.list.d/immersed.list
./usr
./usr/local
./usr/local/bin
./usr/local/bin/immersed-res
./usr/local/bin/immersed-res/va1
./usr/local/bin/immersed-res/va1/libavutil.so
./usr/local/bin/immersed-res/va1/libswscale.so
./usr/local/bin/immersed-res/va1/libswresample.so
./usr/local/bin/immersed-res/va1/libavfilter.so
./usr/local/bin/immersed-res/va1/libavcodec.so
./usr/local/bin/immersed-res/va1/libavformat.so
./usr/local/bin/immersed-res/va1/libavdevice.so
./usr/local/bin/immersed-res/icon.xpm
./usr/local/bin/immersed-res/immersed.pub
./usr/local/bin/immersed-res/va2
./usr/local/bin/immersed-res/va2/libavutil.so
./usr/local/bin/immersed-res/va2/libswscale.so
./usr/local/bin/immersed-res/va2/libswresample.so
./usr/local/bin/immersed-res/va2/libavfilter.so
./usr/local/bin/immersed-res/va2/libavcodec.so
./usr/local/bin/immersed-res/va2/libavformat.so
./usr/local/bin/immersed-res/va2/libavdevice.so
./usr/local/bin/Immersed
./usr/share
./usr/share/handlers
./usr/share/handlers/immersed-handler
./usr/share/applications
./usr/share/applications/immersed-handler.desktop
./copyright
./Immersed_2.1-0_amd64.deb
./control
./debian-binary
./postinst
./changelog
./data.tar.xz
./control.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.