nixpkgs/pkgs/data/icons/elementary-icon-theme/default.nix

34 lines
829 B
Nix
Raw Normal View History

2018-10-18 10:47:47 +01:00
{ stdenv, fetchFromGitHub, meson, ninja, python3, gtk3 }:
2015-10-24 18:57:16 +01:00
stdenv.mkDerivation rec {
name = "elementary-icon-theme-${version}";
2018-10-18 10:47:47 +01:00
version = "5.0";
2015-10-24 18:57:16 +01:00
2018-10-18 10:47:47 +01:00
src = fetchFromGitHub {
owner = "elementary";
repo = "icons";
rev = version;
sha256 = "146s26q4bb5sag35iv42hrnbdciam2ajl7s5s5jayli5vp8bw08w";
2015-10-24 18:57:16 +01:00
};
2018-10-18 10:47:47 +01:00
nativeBuildInputs = [ meson ninja python3 gtk3 ];
2018-10-18 10:47:47 +01:00
postPatch = ''
chmod +x meson/symlink.py
patchShebangs .
sed -i volumeicon/meson.build -e "s,'/','$out',"
'';
2015-10-24 18:57:16 +01:00
2018-10-18 10:47:47 +01:00
postFixup = ''
gtk-update-icon-cache $out/share/icons/elementary
'';
2015-10-24 18:57:16 +01:00
meta = with stdenv.lib; {
2018-10-18 10:47:47 +01:00
description = "Icons from the Elementary Project";
homepage = https://github.com/elementary/icons;
2016-10-14 18:48:50 +01:00
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ simonvandel ];
2015-10-24 18:57:16 +01:00
};
}