Unverified Commit 9c2d23e5 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

_010editor: 15.0.2 -> 16.0 (#433455)

parents cdfc42d8 e2881bf5
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -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"