about summary refs log tree commit diff
path: root/pkgs/data/icons
diff options
context:
space:
mode:
authorIan McFarlane <70479099+the-argus@users.noreply.github.com>2023-01-22 21:12:09 +0000
committerIan McFarlane <i.mcfarlane2002@gmail.com>2023-01-22 16:17:37 -0500
commitfc0c3f538258b2973f46b50098a99bcc14779843 (patch)
treee50288648002925f6a8374175abe6d0dd3553ce8 /pkgs/data/icons
parentb92f2042a008218f614b4910dbaa9d700bd45da8 (diff)
rose-pine-gtk: use nixpkgs-fmt, NoCC, and update icon cache
Diffstat (limited to 'pkgs/data/icons')
-rw-r--r--pkgs/data/icons/rose-pine/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/data/icons/rose-pine/default.nix b/pkgs/data/icons/rose-pine/default.nix
index 6ce6f1d59a338..051294c5d3a89 100644
--- a/pkgs/data/icons/rose-pine/default.nix
+++ b/pkgs/data/icons/rose-pine/default.nix
@@ -1,9 +1,10 @@
-{
-  stdenv,
-  lib,
-  fetchFromGitHub,
+{ stdenvNoCC
+, lib
+, fetchFromGitHub
+, gtk3
 }:
-stdenv.mkDerivation rec {
+
+stdenvNoCC.mkDerivation rec {
   pname = "rose-pine-icon-theme";
   version = "unstable-2022-09-01";
 
@@ -14,6 +15,10 @@ stdenv.mkDerivation rec {
     sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67";
   };
 
+  nativeBuildInputs = [
+    gtk3
+  ];
+
   # avoid the makefile which is only for the theme maintainers
   dontBuild = true;
 
@@ -25,6 +30,10 @@ stdenv.mkDerivation rec {
     mv icons/rose-pine-dawn-icons $out/share/icons/rose-pine-dawn
     mv icons/rose-pine-moon-icons $out/share/icons/rose-pine-moon
 
+    for theme in $out/share/icons/*; do
+      gtk-update-icon-cache $theme
+    done
+
     runHook postInstall
   '';