diff options
Diffstat (limited to 'pkgs/desktops/pantheon/apps/elementary-calculator/default.nix')
-rw-r--r-- | pkgs/desktops/pantheon/apps/elementary-calculator/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/desktops/pantheon/apps/elementary-calculator/default.nix b/pkgs/desktops/pantheon/apps/elementary-calculator/default.nix index b8c4c203509..c06448bdc41 100644 --- a/pkgs/desktops/pantheon/apps/elementary-calculator/default.nix +++ b/pkgs/desktops/pantheon/apps/elementary-calculator/default.nix @@ -8,6 +8,8 @@ , python3 , vala , wrapGAppsHook4 +, elementary-gtk-theme +, elementary-icon-theme , granite7 , gtk4 , libgee @@ -15,13 +17,13 @@ stdenv.mkDerivation rec { pname = "elementary-calculator"; - version = "2.0.1"; + version = "2.0.2"; src = fetchFromGitHub { owner = "elementary"; repo = "calculator"; rev = version; - sha256 = "sha256-7aKJDlpODIysrHtqtD5wfd+dULFpD+LfWsjzg3OAxkY="; + sha256 = "sha256-PLdPu43ns03vhBwaGw4BWCLNvcJbhUA+5Gr5b//TqfA="; }; nativeBuildInputs = [ @@ -34,6 +36,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ + elementary-icon-theme granite7 gtk4 libgee @@ -44,6 +47,15 @@ stdenv.mkDerivation rec { patchShebangs meson/post_install.py ''; + preFixup = '' + gappsWrapperArgs+=( + # The GTK theme is hardcoded. + --prefix XDG_DATA_DIRS : "${elementary-gtk-theme}/share" + # The icon theme is hardcoded. + --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS" + ) + ''; + passthru = { updateScript = nix-update-script { }; }; |