From e2881bf54c92d3e20ff687cd1a90a765c04af7d7 Mon Sep 17 00:00:00 2001 From: Majitelll Date: Wed, 13 Aug 2025 20:57:48 +0200 Subject: [PATCH] _010editor: 15.0.2 -> 16.0 --- pkgs/by-name/_0/_010editor/package.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/_0/_010editor/package.nix b/pkgs/by-name/_0/_010editor/package.nix index 2535cda85495..feddc26b9a9f 100644 --- a/pkgs/by-name/_0/_010editor/package.nix +++ b/pkgs/by-name/_0/_010editor/package.nix @@ -13,18 +13,18 @@ stdenv.mkDerivation (finalAttrs: { pname = "010editor"; - version = "15.0.2"; + version = "16.0"; src = if stdenv.hostPlatform.isLinux then fetchzip { url = "https://download.sweetscape.com/010EditorLinux64Installer${finalAttrs.version}.tar.gz"; - hash = "sha256-oXwC4criDox8rac7mnJroqxMNKU7k+y7JQqc88XoRFc="; + hash = "sha256-DK+AIk90AC/KjZR0yBMHaRF7ajuX+UvT8rqDVdL678M="; } else fetchurl { url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg"; - hash = "sha256-RZtFV3AbE5KfzW18usW0FS/AnX8Uets/RkVayBAODQ4="; + hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4="; }; sourceRoot = "."; @@ -53,13 +53,14 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p $out/Applications cp -R *.app $out/Applications ''; + linuxInstall = '' mkdir -p $out/opt && cp -ar source/* $out/opt - # Unset wrapped QT plugins since they're already included in the package, - # else the program crashes because of the conflict + # Use makeWrapper to clean environment and force xcb makeWrapper $out/opt/010editor $out/bin/010editor \ - --unset QT_PLUGIN_PATH + --unset QT_PLUGIN_PATH \ + --set QT_QPA_PLATFORM xcb # Copy the icon and generated desktop file install -D $out/opt/010_icon_128x128.png $out/share/icons/hicolor/128x128/apps/010.png @@ -84,7 +85,7 @@ stdenv.mkDerivation (finalAttrs: { exec = "010editor %f"; icon = "010"; desktopName = "010 Editor"; - genericName = "Text and hex edtior"; + genericName = "Text and hex editor"; categories = [ "Development" ]; mimeTypes = [ "text/html"