26 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-aarch64.dmg";
27 hash = "sha256-W0nFNmBgrypTj1Y6r6vstdL0UUaP9jTOH5RgAirwxsY=";
30 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-x86_64.dmg";
31 hash = "sha256-iX7aUs2k1fjOoDxkgXbePEYXYKFK3rGFlN9b0+gz378=";
34 url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-linux-x86_64.deb";
35 hash = "sha256-SbuL96xNEOPZ3Z5jd0gfJtNkUoEjO4W+P7K9mvyNmHA=";
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.hostPlatform.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
122 cp -r usr/share $out/