2021-11-24 02:57:56 +01:00
|
|
|
{ lib
|
2022-04-26 04:25:19 +02:00
|
|
|
, stdenvNoCC
|
2019-08-05 20:02:06 +02:00
|
|
|
, fetchFromGitHub
|
2020-07-29 18:33:39 +02:00
|
|
|
, nix-update-script
|
2019-08-05 20:02:06 +02:00
|
|
|
, meson
|
|
|
|
, python3
|
|
|
|
, ninja
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, gtk3
|
2022-04-26 04:25:19 +02:00
|
|
|
, xcursorgen
|
2020-06-07 19:46:44 +02:00
|
|
|
, librsvg
|
2019-08-05 20:02:06 +02:00
|
|
|
}:
|
2018-08-20 22:31:18 +02:00
|
|
|
|
2022-04-26 04:25:19 +02:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2019-08-06 00:41:32 +02:00
|
|
|
pname = "elementary-icon-theme";
|
2022-04-26 04:25:19 +02:00
|
|
|
version = "7.0.0";
|
2018-08-20 22:31:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
2022-01-19 15:50:20 +01:00
|
|
|
repo = "icons";
|
2018-08-20 22:31:18 +02:00
|
|
|
rev = version;
|
2022-04-26 04:25:19 +02:00
|
|
|
sha256 = "sha256-tyhKhZPoZ8xVy1KVUWd8BK2meTT3Z6qM787spjE+NL8=";
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2019-08-05 19:24:24 +02:00
|
|
|
gtk3
|
2020-06-07 19:46:44 +02:00
|
|
|
librsvg
|
2018-08-20 22:31:18 +02:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
python3
|
2022-04-26 04:25:19 +02:00
|
|
|
xcursorgen
|
2018-08-20 22:31:18 +02:00
|
|
|
];
|
|
|
|
|
2019-08-05 19:24:24 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2018-08-20 22:31:18 +02:00
|
|
|
|
2019-09-12 16:47:48 +02:00
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
2018-08-20 22:31:18 +02: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";
|
|
|
|
|
2021-11-24 02:57:56 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "pantheon.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-20 22:31:18 +02:00
|
|
|
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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/elementary/icons";
|
2022-01-30 03:46:17 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2018-08-20 22:31:18 +02:00
|
|
|
platforms = platforms.linux;
|
2021-09-18 17:00:51 +02:00
|
|
|
maintainers = teams.pantheon.members;
|
2018-08-20 22:31:18 +02:00
|
|
|
};
|
|
|
|
}
|