33 desktopItem = makeDesktopItem rec {
37 genericName = "VR App Store";
38 categories = [ "Settings" "PackageManager" ];
41 sidequest = stdenv.mkDerivation {
42 inherit pname version;
45 url = "https://github.com/SideQuestVR/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
46 sha256 = "8ac3d97400a8e3ce86902b5bea7b8d042a092acd888d20e5139490a38507f995";
50 nativeBuildInputs = [ makeWrapper ];
53 mkdir -p "$out/lib/SideQuest" "$out/bin"
54 tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
56 ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
60 libPath = lib.makeLibraryPath [
90 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
91 --set-rpath "${libPath}:$out/lib/SideQuest" \
92 "$out/lib/SideQuest/sidequest"
99 inherit pname version;
102 description = "Open app store and side-loading tool for Android-based VR devices such as the Oculus Go, Oculus Quest or Moverio BT 300";
103 homepage = "https://github.com/SideQuestVR/SideQuest";
104 downloadPage = "https://github.com/SideQuestVR/SideQuest/releases";
105 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
106 license = licenses.mit;
107 maintainers = with maintainers; [ joepie91 rvolosatovs ];
108 platforms = [ "x86_64-linux" ];
109 mainProgram = "SideQuest";
115 # Needed in the environment on runtime, to make QuestSaberPatch work
117 libxkbcommon libxshmfence
120 extraInstallCommands = ''
121 mkdir -p "$out/share/applications"
122 ln -s ${desktopItem}/share/applications/* "$out/share/applications"
125 runScript = "sidequest";