diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-06-01 09:49:30 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-06-01 10:01:18 +0800 |
commit | 6912f855c63e070963481bce00e7c640384fae69 (patch) | |
tree | b416b4db70a0e2e2c5ded6cabdfe2535531d62fa /pkgs/desktops/pantheon | |
parent | cc12b195fc4aea9ece32519028eaef5418ad1437 (diff) | |
download | nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar.gz nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar.bz2 nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar.lz nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar.xz nixpkgs-6912f855c63e070963481bce00e7c640384fae69.tar.zst nixpkgs-6912f855c63e070963481bce00e7c640384fae69.zip |
pantheon.elementary-calculator: 2.0.1 -> 2.0.2
https://github.com/elementary/calculator/releases/tag/2.0.2
Diffstat (limited to 'pkgs/desktops/pantheon')
-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 { }; }; |