Unverified Commit 6aef7c6b authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

resp-app: drop (#471575)

parents b6bc4f61 ac985a0c
Loading
Loading
Loading
Loading
+0 −105
Original line number Diff line number Diff line
{
  mkDerivation,
  lib,
  fetchFromGitHub,
  fetchpatch,
  brotli,
  lz4,
  pyotherside,
  python3,
  python3Packages,
  qtbase,
  qtcharts,
  qmake,
  qttools,
  rdbtools,
  snappy,
  wrapQtAppsHook,
  zstd,
}:

let
  rdbtools-patched = rdbtools.overridePythonAttrs (oldAttrs: {
    # Add required additional flag for resp-app
    patches = oldAttrs.patches or [ ] ++ [
      (fetchpatch {
        name = "Add-flag-to-parse-only-key-names.patch";
        url = "https://github.com/uglide/redis-rdb-tools/commit/b74946e6fbca589947ef0186429d5ce45a074b87.patch";
        hash = "sha256-1gjqB/IDSsAbrwzWSezlAW/2SYr6BFm1QJ2HAHK2fFs=";
      })
    ];
  });
in
mkDerivation rec {
  pname = "RESP.app";
  version = "2022.5";

  src = fetchFromGitHub {
    owner = "RedisInsight";
    repo = "RedisDesktopManager";
    fetchSubmodules = true;
    rev = version;
    hash = "sha256-5eI3J2RsYE5Ejb1r8YkgzmGX2FyaCLFD0lc10J+fOT4=";
  };

  nativeBuildInputs = [
    python3Packages.wrapPython
    qmake
    wrapQtAppsHook
  ];

  buildInputs = [
    brotli
    lz4
    pyotherside
    python3
    qtbase
    qtcharts
    qttools
    snappy
    zstd
  ]
  ++ pythonPath;

  pythonPath = with python3Packages; [
    bitstring
    cbor
    msgpack
    phpserialize
    rdbtools-patched
    python-lzf
  ];

  postPatch = ''
    substituteInPlace src/resp.pro \
      --replace 'which ccache' "false" \
      --replace 'target.files = $$DESTDIR/resp' "${placeholder "src"}/bin/linux/release/resp" \
      --replace '/opt/resp_app' "${placeholder "out"}" \
      --replace 'target.path = $$LINUX_INSTALL_PATH' 'target.path = $$LINUX_INSTALL_PATH/bin' \
      --replace '/usr/' "$out/"
    rm -r 3rdparty/snappy
  '';

  qmakeFlags = [
    "SYSTEM_LZ4=1"
    "SYSTEM_ZSTD=1"
    "SYSTEM_SNAPPY=1"
    "SYSTEM_BROTLI=1"
    "VERSION=${version}"
    "src/resp.pro"
  ];

  preFixup = ''
    buildPythonPath "$pythonPath"
    qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
  '';

  meta = {
    description = "Cross-platform Developer GUI for Redis";
    mainProgram = "resp";
    homepage = "https://resp.app/";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.linux;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -1402,6 +1402,7 @@ mapAliases {
  redpanda = throw "'redpanda' has been renamed to/replaced by 'redpanda-client'"; # Converted to throw 2025-10-27
  redshift-plasma-applet = throw "'redshift-plasma-applet' has been removed as it is obsolete and lacks maintenance upstream."; # Added 2025-11-09
  remotebox = throw "remotebox has been removed because it was unmaintained and broken for a long time"; # Added 2025-09-11
  resp-app = throw "'resp-app' has been replaced by 'redisinsight'"; # Added 2025-12-17
  responsively-app = throw "'responsively-app' has been removed due to lack of maintenance upstream."; # Added 2025-06-25
  retroarchBare = throw "'retroarchBare' has been renamed to/replaced by 'retroarch-bare'"; # Converted to throw 2025-10-27
  retroarchFull = throw "'retroarchFull' has been renamed to/replaced by 'retroarch-full'"; # Converted to throw 2025-10-27
+0 −2
Original line number Diff line number Diff line
@@ -13871,8 +13871,6 @@ with pkgs;
    }
  );

  resp-app = libsForQt5.callPackage ../applications/misc/resp-app { };

  pgadmin4-desktopmode = pgadmin4.override { server-mode = false; };

  philipstv = with python3Packages; toPythonApplication philipstv;