diff --git a/default.nix b/default.nix index 90587eb..1af312e 100644 --- a/default.nix +++ b/default.nix @@ -12,4 +12,6 @@ rec { hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {}; hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.nix {}; }; + + flatery-icon-theme = callPackage ./pkgs/icon-theme/flatery-icon-theme.nix {}; } diff --git a/pkgs/icon-theme/flatery-icon-theme.nix b/pkgs/icon-theme/flatery-icon-theme.nix new file mode 100644 index 0000000..ffc4b9b --- /dev/null +++ b/pkgs/icon-theme/flatery-icon-theme.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }: + +stdenv.mkDerivation rec { + pname = "flatery-icon-theme"; + version = "20.12.29"; + + src = fetchFromGitHub { + owner = "cbrnix"; + repo = "Flatery"; + rev = "8beb69e7c4b51970ffb8542cddb1c5603afdc7e3"; + sha256 = "1d5f6w3fzgpxl8h132xk69hjrd9i5a039184qa37ynp9awwp44l8"; + }; + + nativeBuildInputs = [ gtk3 ]; + + propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ]; + + dontDropIconThemeCache = true; + + installPhase = '' + mkdir -p $out/share/icons + cp -a Flatery{-Black,-Blue,-Gray,-Indigo,-Orange,-Pink,-Sky,-Teal,-Yellow,}{-Dark,} $out/share/icons + for theme in $out/share/icons/*; do + gtk-update-icon-cache $theme + done + + mkdir -p $out/share/wallpapers + cp -a Flatery-wallpapers $out/share/wallpapers + ''; + + meta = with stdenv.lib; { + description = "Flatery icon theme"; + homepage = "https://github.com/cbrnix/Flatery"; + license = licenses.cc-by-nc-sa-30; + }; +}