spacedrive: 0.1.4 -> 0.2.4

New releases of Spacedrive were available since the last update of the
Nix package. Update to latest version.
This commit is contained in:
DataHearth 2024-02-09 11:43:18 +01:00
parent 924ed9959f
commit 94908e262b
No known key found for this signature in database
GPG Key ID: 946E2D0C410C7B3D

View File

@ -9,20 +9,20 @@
let
pname = "spacedrive";
version = "0.1.4";
version = "0.2.4";
src = fetchurl {
aarch64-darwin = {
url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-aarch64.dmg";
hash = "sha256-gKboB5W0vW6ssZHRRivqbVPE0d0FCUdiNCsP0rKKtNo=";
hash = "sha256-rVRmlhsvvFFRr3ghX0cvfcJO3WlbaNNBo+r4I556YEg=";
};
x86_64-darwin = {
url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-darwin-x86_64.dmg";
hash = "sha256-KD1hw6aDyqCsXLYM8WrOTI2AfFx7t++UWV7SaCmtypI=";
hash = "sha256-etRAcGC5S0GwVrBWICfB5ef83xcp/35K0/QndKmPUSE=";
};
x86_64-linux = {
url = "https://github.com/spacedriveapp/spacedrive/releases/download/${version}/Spacedrive-linux-x86_64.AppImage";
hash = "sha256-iBdW8iPuvztP0L5xLyVs7/K8yFe7kD7QwdTuKJLhB+c=";
hash = "sha256-D8etNXrDVLHa1wg+7Xu9yXUvhlAXxMVBM3GpOerFsu0=";
};
}.${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported.");
@ -33,7 +33,7 @@ let
platforms = [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ];
license = lib.licenses.agpl3Plus;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [ heisfer mikaelfangel stepbrobd ];
maintainers = with lib.maintainers; [ DataHearth heisfer mikaelfangel stepbrobd ];
mainProgram = "spacedrive";
};
@ -66,12 +66,12 @@ else appimageTools.wrapType2 {
in
''
# Remove version from entrypoint
mv $out/bin/spacedrive-"${version}" $out/bin/spacedrive
mv $out/bin/spacedrive-${version} $out/bin/spacedrive
# Install .desktop files
install -Dm444 ${appimageContents}/spacedrive.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/com.spacedrive.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/spacedrive.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/spacedrive.desktop \
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=spacedrive'
substituteInPlace $out/share/applications/com.spacedrive.desktop \
--replace 'Exec=usr/bin/spacedrive' 'Exec=spacedrive'
'';
}