From ebf2798150b150b07787416d380b881ee501c107 Mon Sep 17 00:00:00 2001 From: Alistair Grant Date: Thu, 12 Sep 2024 08:32:08 +0200 Subject: [PATCH] glamoroustoolkit: 1.0.11 -> 1.1.0 --- .../tools/glamoroustoolkit/default.nix | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/glamoroustoolkit/default.nix b/pkgs/development/tools/glamoroustoolkit/default.nix index 05b74f6339be..e2f5ed297fc2 100644 --- a/pkgs/development/tools/glamoroustoolkit/default.nix +++ b/pkgs/development/tools/glamoroustoolkit/default.nix @@ -1,6 +1,8 @@ { lib , stdenv , fetchzip +, fetchurl +, patchelf , wrapGAppsHook3 , cairo , dbus @@ -18,25 +20,39 @@ , libglvnd , libuuid , libxcb +, harfbuzz +, libsoup_3 +, webkitgtk_4_1 +, zenity }: stdenv.mkDerivation (finalAttrs: { pname = "glamoroustoolkit"; - version = "1.0.11"; + version = "1.1.0"; src = fetchzip { url = "https://github.com/feenkcom/gtoolkit-vm/releases/download/v${finalAttrs.version}/GlamorousToolkit-x86_64-unknown-linux-gnu.zip"; stripRoot = false; - hash = "sha256-GQeYR232zoHLIt1AzznD7rp6u4zMiAdj1+0OfXfT6AQ="; + hash = "sha256-863xmWC9AuNFTmmBTZVDSchgbqXuk14t1r6B6MeLU74="; }; - nativeBuildInputs = [ wrapGAppsHook3 ]; + nativeBuildInputs = [ + wrapGAppsHook3 + (patchelf.overrideAttrs (old: { + version = "0.11"; + src = fetchurl { + url = "https://nixos.org/releases/patchelf/patchelf-0.11/patchelf-0.11.tar.bz2"; + sha256 = "16ms3ijcihb88j3x6cl8cbvhia72afmfcphczb9cfwr0gbc22chx"; + }; + })) + ]; sourceRoot = "."; dontConfigure = true; dontBuild = true; dontPatchELF = true; + dontStrip = true; installPhase = '' runHook preInstall @@ -48,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; -preFixup = let + preFixup = let libPath = lib.makeLibraryPath [ cairo dbus @@ -65,8 +81,14 @@ preFixup = let libglvnd libuuid libxcb + harfbuzz # libWebView.so + libsoup_3 # libWebView.so + webkitgtk_4_1 # libWebView.so stdenv.cc.cc.lib ]; + binPath = lib.makeBinPath [ + zenity # File selection dialog + ]; in '' chmod +x $out/lib/*.so patchelf \ @@ -94,6 +116,10 @@ preFixup = let ln -s $out/lib/libcairo.so $out/lib/libcairo.so.2 rm $out/lib/libgit2.so ln -s "${libgit2}/lib/libgit2.so" $out/lib/libgit2.so.1.1 + + gappsWrapperArgs+=( + --prefix PATH : ${binPath} + ) ''; meta = {