Unverified Commit 3b72ee80 authored by Gavin John's avatar Gavin John
Browse files

immersed: add sources to passthru

Makes getting the hashes easier
parent 0144ce63
Loading
Loading
Loading
Loading
+29 −21
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ let
  pname = "immersed";
  version = "10.6.0";

  sources = rec {
  sources = lib.mapAttrs (_: fetchurl) (rec {
    x86_64-linux = {
      url = "https://web.archive.org/web/20241229041449/https://static.immersed.com/dl/Immersed-x86_64.AppImage";
      hash = "sha256-u07QpGXEXbp7ApZgerq36x+4Wxsz08YAruIVnZeS0ck=";
@@ -23,9 +23,9 @@ let
      hash = "sha256-Sgfm0giVR1dDIFIDpNmGmXLXLRgpMXrVxD/oyPc+Lq0=";
    };
    aarch64-darwin = x86_64-darwin;
  };
  });

  src = fetchurl (sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"));
  src = sources.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}");

  meta = with lib; {
    description = "VR coworking platform";
@@ -40,6 +40,8 @@ let
  };

in

(
  if stdenv.hostPlatform.isDarwin then
    callPackage ./darwin.nix {
      inherit
@@ -58,3 +60,9 @@ else
        meta
        ;
    }
)
// {
  passthru = {
    inherit sources;
  };
}