···
···
···
-
desktopItem = makeDesktopItem rec {
-
genericName = "VR App Store";
sidequest = stdenv.mkDerivation {
url = "https://github.com/SideQuestVR/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
-
sha256 = "8ac3d97400a8e3ce86902b5bea7b8d042a092acd888d20e5139490a38507f995";
-
nativeBuildInputs = [ makeWrapper ];
-
mkdir -p "$out/lib/SideQuest" "$out/bin"
-
tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
-
ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
-
libPath = lib.makeLibraryPath [
-
(lib.getLib stdenv.cc.cc)
-
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
-
--set-rpath "${libPath}:$out/lib/SideQuest" \
-
"$out/lib/SideQuest/sidequest"
-
description = "Open app store and side-loading tool for Android-based VR devices such as the Oculus Go, Oculus Quest or Moverio BT 300";
-
homepage = "https://github.com/SideQuestVR/SideQuest";
-
downloadPage = "https://github.com/SideQuestVR/SideQuest/releases";
-
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
-
license = licenses.mit;
-
maintainers = with maintainers; [
-
platforms = [ "x86_64-linux" ];
-
mainProgram = "SideQuest";
···
extraInstallCommands = ''
-
mkdir -p "$out/share/applications"
-
ln -s ${desktopItem}/share/applications/* "$out/share/applications"
···
···
···
sidequest = stdenv.mkDerivation {
url = "https://github.com/SideQuestVR/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
+
hash = "sha256-YZp7OAjUOXepVv5dPhh9Q2HicUKjSOGfhrWyMKy2gME=";
+
desktopName = "SideQuest";
+
genericName = "VR App Store";
+
mkdir -p "$out/libexec" "$out/bin"
+
cp --recursive . "$out/libexec/sidequest"
+
ln -s "$out/libexec/sidequest/sidequest" "$out/bin/sidequest"
+
for size in 16 24 32 48 64 128 256 512 1024; do
+
install -D --mode=0644 resources/app.asar.unpacked/build/icons/''${size}x''${size}.png $out/share/icons/hicolor/''${size}x''${size}/apps/sidequest.png
+
--set-interpreter "${bintools.dynamicLinker}" \
+
(lib.getLib stdenv.cc.cc)
+
}:$out/libexec/sidequest" \
+
--add-needed libGL.so.1 \
+
"$out/libexec/sidequest/sidequest"
···
extraInstallCommands = ''
+
ln -s ${sidequest}/share "$out/share"
+
description = "Open app store and side-loading tool for Android-based VR devices such as the Oculus Go, Oculus Quest or Moverio BT 300";
+
homepage = "https://github.com/SideQuestVR/SideQuest";
+
downloadPage = "https://github.com/SideQuestVR/SideQuest/releases";
+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [
+
platforms = [ "x86_64-linux" ];
+
mainProgram = "SideQuest";