Loading pkgs/by-name/_0/_010editor/package.nix +13 −11 Original line number Diff line number Diff line Loading @@ -7,13 +7,14 @@ makeWrapper, makeDesktopItem, cups, qt5, qt6, undmg, xorg, }: stdenv.mkDerivation (finalAttrs: { pname = "010editor"; version = "16.0"; version = "16.0.1"; src = finalAttrs.passthru.srcs.${stdenv.hostPlatform.system}; Loading @@ -27,14 +28,15 @@ stdenv.mkDerivation (finalAttrs: { lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook makeWrapper qt5.wrapQtAppsHook qt6.wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ undmg ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ cups qt5.qtbase qt5.qtwayland qt6.qtbase qt6.qtwayland xorg.xkeyboardconfig ]; installPhase = Loading @@ -47,12 +49,12 @@ stdenv.mkDerivation (finalAttrs: { linuxInstall = '' mkdir -p $out/opt && cp -ar source/* $out/opt # Use makeWrapper to clean environment and force xcb # Wrap binary: clean env, fix XKB lookup makeWrapper $out/opt/010editor $out/bin/010editor \ --unset QT_PLUGIN_PATH \ --set QT_QPA_PLATFORM xcb --set XKB_CONFIG_ROOT ${xorg.xkeyboardconfig}/share/X11/xkb # Copy the icon and generated desktop file # 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/ ''; Loading Loading @@ -89,17 +91,17 @@ 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="; hash = "sha256-fPQCVA9VrpNBTA7PiOsHwIiaZLKKoK817PtWNX8uHBQ="; }; x86_64-darwin = fetchurl { url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg"; hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4="; hash = "sha256-q/lfe4IWYJbxoGVBQju+t/w13UI3XHaVNPdTjnIQFw8="; }; aarch64-darwin = fetchurl { url = "https://download.sweetscape.com/010EditorMacARM64Installer${finalAttrs.version}.dmg"; hash = "sha256-CtExBuu6EL8ilq3+gtwjNwnMxXkKgPdrk34tYvjN2ps="; hash = "sha256-kBrYSxTNz01pPaRfKZWE6dDoACgs5tlfb+M6A7R0Vo4="; }; }; Loading Loading
pkgs/by-name/_0/_010editor/package.nix +13 −11 Original line number Diff line number Diff line Loading @@ -7,13 +7,14 @@ makeWrapper, makeDesktopItem, cups, qt5, qt6, undmg, xorg, }: stdenv.mkDerivation (finalAttrs: { pname = "010editor"; version = "16.0"; version = "16.0.1"; src = finalAttrs.passthru.srcs.${stdenv.hostPlatform.system}; Loading @@ -27,14 +28,15 @@ stdenv.mkDerivation (finalAttrs: { lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook makeWrapper qt5.wrapQtAppsHook qt6.wrapQtAppsHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ undmg ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ cups qt5.qtbase qt5.qtwayland qt6.qtbase qt6.qtwayland xorg.xkeyboardconfig ]; installPhase = Loading @@ -47,12 +49,12 @@ stdenv.mkDerivation (finalAttrs: { linuxInstall = '' mkdir -p $out/opt && cp -ar source/* $out/opt # Use makeWrapper to clean environment and force xcb # Wrap binary: clean env, fix XKB lookup makeWrapper $out/opt/010editor $out/bin/010editor \ --unset QT_PLUGIN_PATH \ --set QT_QPA_PLATFORM xcb --set XKB_CONFIG_ROOT ${xorg.xkeyboardconfig}/share/X11/xkb # Copy the icon and generated desktop file # 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/ ''; Loading Loading @@ -89,17 +91,17 @@ 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="; hash = "sha256-fPQCVA9VrpNBTA7PiOsHwIiaZLKKoK817PtWNX8uHBQ="; }; x86_64-darwin = fetchurl { url = "https://download.sweetscape.com/010EditorMac64Installer${finalAttrs.version}.dmg"; hash = "sha256-TWatSVqm9a+bVLXtJjiWAtkcB7qZqoeJ7Gmr62XUVz4="; hash = "sha256-q/lfe4IWYJbxoGVBQju+t/w13UI3XHaVNPdTjnIQFw8="; }; aarch64-darwin = fetchurl { url = "https://download.sweetscape.com/010EditorMacARM64Installer${finalAttrs.version}.dmg"; hash = "sha256-CtExBuu6EL8ilq3+gtwjNwnMxXkKgPdrk34tYvjN2ps="; hash = "sha256-kBrYSxTNz01pPaRfKZWE6dDoACgs5tlfb+M6A7R0Vo4="; }; }; Loading