···
stdenv.mkDerivation (finalAttrs: {
src = finalAttrs.passthru.srcs.${stdenv.hostPlatform.system};
···
lib.optionals stdenv.hostPlatform.isLinux [
++ lib.optionals stdenv.hostPlatform.isDarwin [ undmg ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
39
+
xorg.xkeyboardconfig
···
mkdir -p $out/opt && cp -ar source/* $out/opt
50
-
# Use makeWrapper to clean environment and force xcb
52
+
# Wrap binary: clean env, fix XKB lookup
makeWrapper $out/opt/010editor $out/bin/010editor \
53
-
--set QT_QPA_PLATFORM xcb
55
+
--set XKB_CONFIG_ROOT ${xorg.xkeyboardconfig}/share/X11/xkb
55
-
# Copy the icon and generated desktop file
57
+
# Install icon + desktop entry
install -D $out/opt/010_icon_128x128.png $out/share/icons/hicolor/128x128/apps/010.png
install -D $desktopItem/share/applications/* -t $out/share/applications/
···
x86_64-linux = fetchzip {
url = "https://download.sweetscape.com/010EditorLinux64Installer${finalAttrs.version}.tar.gz";
92
-
hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M=";
94
+
hash = "sha256-fPQCVA9VrpNBTA7PiOsHwIiaZLKKoK817PtWNX8uHBQ=";
x86_64-darwin = fetchurl {
url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg";
97
-
hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4=";
99
+
hash = "sha256-q/lfe4IWYJbxoGVBQju+t/w13UI3XHaVNPdTjnIQFw8=";
aarch64-darwin = fetchurl {
url = "https://download.sweetscape.com/010EditorMacARM64Installer${finalAttrs.version}.dmg";
102
-
hash = "sha256-CtExBuu6EL8ilq3+gtwjNwnMxXkKgPdrk34tYvjN2ps=";
104
+
hash = "sha256-kBrYSxTNz01pPaRfKZWE6dDoACgs5tlfb+M6A7R0Vo4=";