2019-08-05 19:02:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-08-05 19:02:06 +01:00
|
|
|
, pantheon
|
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, gtk3
|
2020-01-19 02:22:26 +00:00
|
|
|
, xorg
|
2020-06-07 18:46:44 +01:00
|
|
|
, librsvg
|
2019-08-05 19:02:06 +01:00
|
|
|
}:
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-05 23:41:32 +01:00
|
|
|
pname = "elementary-icon-theme";
|
2020-06-07 18:46:44 +01:00
|
|
|
version = "5.3.1";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
2019-08-05 23:41:32 +01:00
|
|
|
repoName = "icons";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2019-08-05 23:41:32 +01:00
|
|
|
repo = repoName;
|
2018-08-20 21:31:18 +01:00
|
|
|
rev = version;
|
2020-09-04 00:43:09 +01:00
|
|
|
sha256 = "sha256-6XFzjpuHpGIZ+azkPuFcSF7p66sDonwLwjvlNBZDRmc=";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 06:44:42 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 21:31:18 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-08-05 18:24:24 +01:00
|
|
|
gtk3
|
2020-06-07 18:46:44 +01:00
|
|
|
librsvg
|
2018-08-20 21:31:18 +01:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
2020-01-19 02:22:26 +00:00
|
|
|
xorg.xcursorgen
|
2018-08-20 21:31:18 +01:00
|
|
|
];
|
|
|
|
|
2019-08-05 18:24:24 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2018-08-20 21:31:18 +01:00
|
|
|
|
2019-09-12 15:47:48 +01:00
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dvolume_icons=false" # Tries to install some icons to /
|
|
|
|
"-Dpalettes=false" # Don't install gimp and inkscape palette files
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/symlink.py
|
|
|
|
patchShebangs meson/symlink.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = "gtk-update-icon-cache $out/share/icons/elementary";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Named, vector icons for elementary OS";
|
|
|
|
longDescription = ''
|
|
|
|
An original set of vector icons designed specifically for elementary OS and its desktop environment: Pantheon.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elementary/icons";
|
2018-08-20 21:31:18 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|