26 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-aarch64.dmg";
27 hash = "sha256-9E7h03zJtH8b6khDcbBsB46iVWwl48s+GJuBMOmEre4=";
30 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-x86_64.dmg";
31 hash = "sha256-h+B7tc6jXJUFNEMhG6ZNch+grtgUeAzfa37BDoZ6M8Q=";
34 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-linux-x86_64.deb";
35 hash = "sha256-E1mOODG4YzBc0TPZJmKgrt/c5hp5LwzLaYPl+J5dnkg=";
38 .${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported.");
41 description = "Open source file manager, powered by a virtual distributed filesystem";
42 homepage = "https://www.spacedrive.com";
43 changelog = "https://github.com/spacedriveapp/spacedrive/releases/tag/${version}";
49 license = lib.licenses.agpl3Plus;
50 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
51 maintainers = with lib.maintainers; [
57 mainProgram = "spacedrive";
60 passthru.updateScript = nix-update-script { };
62 if stdenv.isDarwin then
72 sourceRoot = "Spacedrive.app";
74 nativeBuildInputs = [ undmg ];
79 mkdir -p "$out/Applications/Spacedrive.app"
80 cp -r . "$out/Applications/Spacedrive.app"
82 ln -s "$out/Applications/Spacedrive.app/Contents/MacOS/Spacedrive" "$out/bin/spacedrive"
103 # Depends: libc6, libxdo3, libwebkit2gtk-4.1-0, libgtk-3-0
104 # Recommends: gstreamer1.0-plugins-ugly
105 # Suggests: gstreamer1.0-plugins-bad
112 gst_all_1.gst-plugins-ugly
113 gst_all_1.gst-plugins-bad
114 gst_all_1.gst-plugins-base
130 cp -r usr/share $out/