2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, appimageTools
|
2024-04-21 15:54:59 +00:00
|
|
|
, callPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, fetchurl
|
2024-04-21 15:54:59 +00:00
|
|
|
, stdenv
|
2023-10-19 13:55:26 +00:00
|
|
|
}:
|
2024-04-21 15:54:59 +00:00
|
|
|
let
|
2024-10-11 05:15:48 +00:00
|
|
|
pname = "immersed";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "10.5.0";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sources = rec {
|
|
|
|
x86_64-linux = {
|
2024-10-04 16:56:33 +00:00
|
|
|
url = "https://web.archive.org/web/20240909144905if_/https://static.immersed.com/dl/Immersed-x86_64.AppImage";
|
|
|
|
hash = "sha256-/fc/URYJZftZPyVicmZjyvcGPLaHrnlsrERlQFN5E98=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
x86_64-darwin = {
|
2024-10-04 16:56:33 +00:00
|
|
|
url = "https://web.archive.org/web/20240910022037if_/https://static.immersed.com/dl/Immersed.dmg";
|
|
|
|
hash = "sha256-UkfB151bX0D5k0IBZczh36TWOOYJbBe5e6LIErON214=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
aarch64-darwin = x86_64-darwin;
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchurl (sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"));
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "VR coworking platform";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://immersed.com";
|
|
|
|
license = licenses.unfree;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ haruki7049 pandapip1 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = builtins.attrNames sources;
|
2023-10-19 13:55:26 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
in if stdenv.hostPlatform.isDarwin
|
2024-04-21 15:54:59 +00:00
|
|
|
then callPackage ./darwin.nix { inherit pname version src meta; }
|
|
|
|
else callPackage ./linux.nix { inherit pname version src meta; }
|