{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, wrapGAppsHook3, fontconfig, atk, cairo, gdk-pixbuf, glib, gtk3, harfbuzz, libdbusmenu, libdbusmenu-gtk3, libepoxy, libgcrypt, libgpg-error, lz4, nspr, nss, pango, util-linux, xz, nix-update-script, }: stdenv.mkDerivation (finalAttrs: { pname = "reqable"; version = "3.2.23"; src = fetchurl { url = "https://github.com/reqable/reqable-app/releases/download/${finalAttrs.version}/reqable-app-linux-x86_64.deb"; hash = "sha256-qZx5TX+3yi42WbnSIwwHrv97LnkJKI3rry1J2838wxo="; }; nativeBuildInputs = [ dpkg autoPatchelfHook wrapGAppsHook3 ]; buildInputs = [ atk cairo fontconfig gdk-pixbuf glib gtk3 harfbuzz libdbusmenu libdbusmenu-gtk3 libepoxy libgcrypt libgpg-error lz4 nspr nss pango util-linux xz ]; installPhase = '' runHook preInstall cp -r usr $out substituteInPlace $out/share/applications/reqable.desktop \ --replace-fail "/usr/share/reqable/" "" runHook postInstall ''; dontWrapGApps = true; preFixup = '' makeWrapper $out/share/reqable/reqable $out/bin/reqable \ --prefix LD_LIBRARY_PATH : $out/share/reqable/lib \ ''${gappsWrapperArgs[@]} rm -r $out/share/pixmaps ''; passthru.updateScript = nix-update-script { }; meta = { description = "Generation API debugging and testing one-stop solution"; homepage = "https://reqable.com"; downloadPage = "https://github.com/reqable/reqable-app/releases"; changelog = "https://github.com/reqable/reqable-app/releases/tag/${finalAttrs.version}"; mainProgram = "reqable"; license = lib.licenses.unfree; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; maintainers = with lib.maintainers; [ chillcicada ]; platforms = [ "x86_64-linux" ]; }; })