From 02f1912055b58382cc5edd82ac77a88861870b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Thu, 11 Jan 2024 18:26:06 +0100 Subject: [PATCH] Fix missing icons --- fiv-master.nix | 4 ++++ logdiag-master.nix | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/fiv-master.nix b/fiv-master.nix index 37ab682..7c549a2 100644 --- a/fiv-master.nix +++ b/fiv-master.nix @@ -20,6 +20,7 @@ pkgs.stdenv.mkDerivation rec { ]; buildInputs = with pkgs; [ + gnome.adwaita-icon-theme gtk3 libwebp libraw @@ -74,8 +75,11 @@ pkgs.stdenv.mkDerivation rec { "-Dresvg=enabled" ]; + # See nixpkgs commit b1e73fa2e086f1033a33d93524ae2a1781d12b95 about icons. + # It used to work automatically. preFixup = '' gappsWrapperArgs+=( + --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" --prefix PATH : $out/bin:${pkgs.lib.makeBinPath [ pkgs.exiftool ]} ) ''; diff --git a/logdiag-master.nix b/logdiag-master.nix index 82bf3d2..6f06748 100644 --- a/logdiag-master.nix +++ b/logdiag-master.nix @@ -13,6 +13,7 @@ pkgs.stdenv.mkDerivation rec { ]; buildInputs = with pkgs; [ + gnome.adwaita-icon-theme gtk3 json-glib lua5_2 @@ -53,6 +54,14 @@ pkgs.stdenv.mkDerivation rec { "-DBUILD_TESTING=ON" ]; + # See nixpkgs commit b1e73fa2e086f1033a33d93524ae2a1781d12b95 about icons. + # It used to work automatically. + preFixup = '' + gappsWrapperArgs+=( + --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" + ) + ''; + doCheck = true; checkPhase = with pkgs; ''