diff options
Diffstat (limited to 'nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix b/nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix new file mode 100644 index 000000000000..4c3beaaef2b0 --- /dev/null +++ b/nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, meson, ninja, python3, gtk3 }: + +stdenv.mkDerivation rec { + name = "elementary-icon-theme-${version}"; + version = "5.0.1"; + + src = fetchFromGitHub { + owner = "elementary"; + repo = "icons"; + rev = version; + sha256 = "1rw924b3ixfdff368dpv4vgsykwncmrvj9a6yfss0cf236xnvr9b"; + }; + + nativeBuildInputs = [ meson ninja python3 gtk3 ]; + + # Disable installing gimp and inkscape palette files + mesonFlags = [ + "-Dpalettes=false" + ]; + + postPatch = '' + chmod +x meson/symlink.py + patchShebangs . + sed -i volumeicon/meson.build -e "s,'/','$out'," + ''; + + postFixup = '' + gtk-update-icon-cache $out/share/icons/elementary + ''; + + meta = with stdenv.lib; { + description = "Icons from the Elementary Project"; + homepage = https://github.com/elementary/icons; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ simonvandel ]; + }; +} |