elementary-icon-theme: use CMake, build GTK icon cache

This commit is contained in:
Yegor Timoshenko 2018-02-24 11:10:41 +00:00
parent ed7259b781
commit 5a22c587eb

View File

@ -1,26 +1,19 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, cmake, gtk3 }:
stdenv.mkDerivation rec {
name = "elementary-icon-theme-${version}";
version = "4.3.1";
package-name = "elementary-icon-theme";
name = "${package-name}-${version}";
src = fetchurl {
url = "https://launchpad.net/elementaryicons/4.x/${version}/+download/${name}.tar.xz";
sha256 = "1rp22igvnx71l94j5a6px142329djhk2psm1wfgbhdxbj23hw9kb";
};
dontBuild = true;
nativeBuildInputs = [ cmake gtk3 ];
postPatch = "cat > volumeicon/CMakeLists.txt";
postFixup = "gtk-update-icon-cache $out/share/icons/elementary";
installPhase = ''
install -dm 755 $out/share/{icons,doc/$name}
cp -dr --no-preserve='ownership' . $out/share/icons/Elementary/
mv $out/share/icons/Elementary/{AUTHORS,CONTRIBUTORS,README.md} \
$out/share/doc/$name/
rm $out/share/icons/Elementary/{COPYING,pre-commit}
'';
meta = with stdenv.lib; {
description = "Elementary icon theme";