nixpkgs/pkgs/data/icons/elementary-xfce-icon-theme/default.nix
2018-07-29 20:29:24 +02:00

35 lines
905 B
Nix

{ stdenv, fetchFromGitHub, gtk3, hicolor-icon-theme }:
stdenv.mkDerivation rec {
name = "elementary-xfce-icon-theme-${version}";
version = "0.12";
src = fetchFromGitHub {
owner = "shimmerproject";
repo = "elementary-xfce";
rev = "elementary-xfce-${version}";
sha256 = "036676443sj4lxm7z211b0br87zdnbrb9z41czfq65r1wwwdf3rq";
};
nativeBuildInputs = [ gtk3 hicolor-icon-theme ];
installPhase = ''
mkdir -p $out/share/icons
mv elementary-xfce* $out/share/icons
'';
postFixup = ''
for theme in $out/share/icons/*; do
gtk-update-icon-cache $theme
done
'';
meta = with stdenv.lib; {
description = "Elementary icons for Xfce and other GTK+ desktops like GNOME";
homepage = https://github.com/shimmerproject/elementary-xfce;
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ davidak ];
};
}