maia-icon-theme: use CMake (build from source)

Did not add GTK icon cache due to the following error:

  gtk-update-icon-cache: The generated cache was invalid.
This commit is contained in:
Yegor Timoshenko 2018-02-24 11:27:41 +00:00
parent 4593cc2317
commit 0765f0528d

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub, cmake, extra-cmake-modules, gtk3, kdeFrameworks }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "maia-icon-theme-${version}"; name = "maia-icon-theme-${version}";
@ -11,21 +11,19 @@ stdenv.mkDerivation rec {
sha256 = "0f9l3k9abgg8islzddrxgbxaw6vbai5bvz5qi1v2fzir7ykx7bgj"; sha256 = "0f9l3k9abgg8islzddrxgbxaw6vbai5bvz5qi1v2fzir7ykx7bgj";
}; };
dontBuild = true; nativeBuildInputs = [
cmake
installPhase = '' extra-cmake-modules
install -dm 755 $out/share/icons gtk3
for f in "" "-dark"; do kdeFrameworks.plasma-framework
rm icons$f/CMakeLists.txt kdeFrameworks.kwindowsystem
cp -dr --no-preserve='ownership' icons$f $out/share/icons/maia$f ];
done
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Icons based on Breeze and Super Flat Remix"; description = "Icons based on Breeze and Super Flat Remix";
homepage = https://github.com/manjaro/artwork-maia; homepage = https://github.com/manjaro/artwork-maia;
license = licenses.free; license = licenses.free; # https://github.com/manjaro/artwork-maia/issues/27
maintainers = [ maintainers.mounium ]; maintainers = with maintainers; [ mounium ];
platforms = platforms.all; platforms = platforms.all;
}; };
} }