1{
2 lib,
3 stdenvNoCC,
4 fetchFromGitHub,
5 gtk3,
6 breeze-icons,
7 pantheon,
8 gnome-icon-theme,
9 hicolor-icon-theme,
10}:
11
12stdenvNoCC.mkDerivation rec {
13 pname = "flat-remix-icon-theme";
14 version = "20240201";
15
16 src = fetchFromGitHub {
17 owner = "daniruiz";
18 repo = "flat-remix";
19 rev = version;
20 sha256 = "sha256-3TkBRgoT2AW0Sb0CrXdxh53/jYARAMFC/TIj/r/zruo=";
21 };
22
23 nativeBuildInputs = [
24 gtk3
25 ];
26
27 propagatedBuildInputs = [
28 breeze-icons
29 pantheon.elementary-icon-theme
30 gnome-icon-theme
31 hicolor-icon-theme
32 ];
33
34 dontFixup = true;
35 dontDropIconThemeCache = true;
36
37 installPhase = ''
38 mkdir -p $out/share/icons
39 mv Flat-Remix* $out/share/icons/
40
41 for theme in $out/share/icons/*; do
42 gtk-update-icon-cache $theme
43 done
44 symlinkParentIconThemes
45 recordPropagatedDependencies
46 '';
47
48 meta = with lib; {
49 description = "Flat remix is a pretty simple icon theme inspired on material design";
50 homepage = "https://drasite.com/flat-remix";
51 license = with licenses; [ gpl3Only ];
52 # breeze-icons and pantheon.elementary-icon-theme dependencies are restricted to linux
53 platforms = platforms.linux;
54 maintainers = [ ];
55 };
56}