_010editor: add source for aarch64-darwin; refactor (#434515)

This commit is contained in:
Fernando Rodrigues 2025-08-18 00:12:24 +00:00 committed by GitHub
commit 777751dd17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,17 +15,7 @@ stdenv.mkDerivation (finalAttrs: {
pname = "010editor";
version = "16.0";
src =
if stdenv.hostPlatform.isLinux then
fetchzip {
url = "https://download.sweetscape.com/010EditorLinux64Installer${finalAttrs.version}.tar.gz";
hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M=";
}
else
fetchurl {
url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg";
hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4=";
};
src = finalAttrs.passthru.srcs.${stdenv.hostPlatform.system};
sourceRoot = ".";
@ -96,6 +86,23 @@ stdenv.mkDerivation (finalAttrs: {
];
};
passthru.srcs = {
x86_64-linux = fetchzip {
url = "https://download.sweetscape.com/010EditorLinux64Installer${finalAttrs.version}.tar.gz";
hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M=";
};
x86_64-darwin = fetchurl {
url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg";
hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4=";
};
aarch64-darwin = fetchurl {
url = "https://download.sweetscape.com/010EditorMacARM64Installer${finalAttrs.version}.dmg";
hash = "sha256-CtExBuu6EL8ilq3+gtwjNwnMxXkKgPdrk34tYvjN2ps=";
};
};
meta = {
description = "Text and hex editor";
homepage = "https://www.sweetscape.com/010editor/";