···
···
···
32
-
version = "0.10.33";
34
-
desktopItem = makeDesktopItem rec {
38
-
genericName = "VR App Store";
35
+
version = "0.10.42";
sidequest = stdenv.mkDerivation {
url = "https://github.com/SideQuestVR/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
50
-
sha256 = "8ac3d97400a8e3ce86902b5bea7b8d042a092acd888d20e5139490a38507f995";
42
+
hash = "sha256-YZp7OAjUOXepVv5dPhh9Q2HicUKjSOGfhrWyMKy2gME=";
45
+
nativeBuildInputs = [
54
-
nativeBuildInputs = [ makeWrapper ];
55
+
desktopName = "SideQuest";
56
+
genericName = "VR App Store";
57
-
mkdir -p "$out/lib/SideQuest" "$out/bin"
58
-
tar -xJf "$src" -C "$out/lib/SideQuest" --strip-components 1
67
+
mkdir -p "$out/libexec" "$out/bin"
68
+
cp --recursive . "$out/libexec/sidequest"
69
+
ln -s "$out/libexec/sidequest/sidequest" "$out/bin/sidequest"
70
+
for size in 16 24 32 48 64 128 256 512 1024; do
71
+
install -D --mode=0644 resources/app.asar.unpacked/build/icons/''${size}x''${size}.png $out/share/icons/hicolor/''${size}x''${size}/apps/sidequest.png
60
-
ln -s "$out/lib/SideQuest/sidequest" "$out/bin"
65
-
libPath = lib.makeLibraryPath [
90
-
(lib.getLib stdenv.cc.cc)
96
-
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
97
-
--set-rpath "${libPath}:$out/lib/SideQuest" \
98
-
"$out/lib/SideQuest/sidequest"
79
+
--set-interpreter "${bintools.dynamicLinker}" \
81
+
lib.makeLibraryPath [
107
+
(lib.getLib stdenv.cc.cc)
110
+
}:$out/libexec/sidequest" \
111
+
--add-needed libGL.so.1 \
112
+
"$out/libexec/sidequest/sidequest"
103
-
pname = "SideQuest";
107
-
inherit pname version;
110
-
description = "Open app store and side-loading tool for Android-based VR devices such as the Oculus Go, Oculus Quest or Moverio BT 300";
111
-
homepage = "https://github.com/SideQuestVR/SideQuest";
112
-
downloadPage = "https://github.com/SideQuestVR/SideQuest/releases";
113
-
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
114
-
license = licenses.mit;
115
-
maintainers = with maintainers; [
119
-
platforms = [ "x86_64-linux" ];
120
-
mainProgram = "SideQuest";
117
+
inherit pname version;
···
extraInstallCommands = ''
135
-
mkdir -p "$out/share/applications"
136
-
ln -s ${desktopItem}/share/applications/* "$out/share/applications"
130
+
ln -s ${sidequest}/share "$out/share"
136
+
description = "Open app store and side-loading tool for Android-based VR devices such as the Oculus Go, Oculus Quest or Moverio BT 300";
137
+
homepage = "https://github.com/SideQuestVR/SideQuest";
138
+
downloadPage = "https://github.com/SideQuestVR/SideQuest/releases";
139
+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
140
+
license = lib.licenses.mit;
141
+
maintainers = with lib.maintainers; [
145
+
platforms = [ "x86_64-linux" ];
146
+
mainProgram = "SideQuest";