flatery-icon-theme: Add on 20.12.29

This commit is contained in:
madmaurice 2020-12-29 23:22:18 +01:00
parent b59a5fac8e
commit 36750e12b0
2 changed files with 38 additions and 0 deletions

View file

@ -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 {};
}

View file

@ -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;
};
}