From d89c0a9689b34a8e649e13b9a10b8ecf35028190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Myllym=C3=A4ki?= Date: Mon, 25 Mar 2024 19:13:47 +0200 Subject: [PATCH] gnomeExtensions.ddterm: fix gjs path The new version has #!@GJS_SHEBANG@ which ended up as #!/usr/bin/gjs -> #!/usr/bin//nix/store../bin/gjs. gnomeExtensions.ddterm: add libhandy as dependency libhandy was added as dependency on commit: https://github.com/ddterm/gnome-shell-extension-ddterm/commit/eade14f6f4994f501c5290c6e2318c1e7eaee2d3 --- pkgs/desktops/gnome/extensions/extensionOverrides.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/extensions/extensionOverrides.nix b/pkgs/desktops/gnome/extensions/extensionOverrides.nix index 373715d357ed..22eff684afc4 100644 --- a/pkgs/desktops/gnome/extensions/extensionOverrides.nix +++ b/pkgs/desktops/gnome/extensions/extensionOverrides.nix @@ -9,6 +9,7 @@ , hddtemp , libgda , libgtop +, libhandy , liquidctl , lm_sensors , netcat-gnu @@ -47,9 +48,9 @@ super: lib.trivial.pipe super [ (patchExtension "ddterm@amezin.github.com" (old: { nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ]; - buildInputs = [ vte ]; + buildInputs = [ vte libhandy gjs ]; postFixup = '' - substituteInPlace "$out/share/gnome-shell/extensions/ddterm@amezin.github.com/bin/com.github.amezin.ddterm" --replace "gjs" "${gjs}/bin/gjs" + patchShebangs "$out/share/gnome-shell/extensions/ddterm@amezin.github.com/bin/com.github.amezin.ddterm" wrapGApp "$out/share/gnome-shell/extensions/ddterm@amezin.github.com/bin/com.github.amezin.ddterm" ''; }))