2020-03-22 10:27:27 +01:00
|
|
|
{ fetchFromGitHub
|
2021-11-29 17:34:50 +01:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2020-04-16 16:10:48 +02:00
|
|
|
, gnome-icon-theme
|
2020-03-22 10:27:27 +01:00
|
|
|
, hicolor-icon-theme
|
|
|
|
, gtk3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mint-y-icons";
|
2021-11-24 10:16:02 +01:00
|
|
|
version = "1.5.8";
|
2020-03-22 10:27:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
2021-11-24 10:16:02 +01:00
|
|
|
# they don't exactly do tags, it's just a named commit
|
|
|
|
rev = "9489bd161e9503d071227dd36057386a34cfc0a3";
|
|
|
|
hash = "sha256-53yTCWNSJjCpVvrxLfsiaCPNDEZWxJgGVAmVNMNql2M=";
|
2020-03-22 10:27:27 +01:00
|
|
|
};
|
|
|
|
|
2020-04-16 16:10:48 +02:00
|
|
|
propagatedBuildInputs = [
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-16 16:10:48 +02:00
|
|
|
gnome-icon-theme
|
2020-03-22 10:27:27 +01:00
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-04-16 16:10:48 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-03-22 10:27:27 +01:00
|
|
|
mkdir -p $out
|
|
|
|
mv usr/share $out
|
2020-04-16 16:10:48 +02:00
|
|
|
|
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache $theme
|
|
|
|
done
|
|
|
|
|
|
|
|
runHook postInstall
|
2020-03-22 10:27:27 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-22 10:27:27 +01:00
|
|
|
homepage = "https://github.com/linuxmint/mint-y-icons";
|
|
|
|
description = "The Mint-Y icon theme";
|
|
|
|
license = licenses.gpl3; # from debian/copyright
|
|
|
|
platforms = platforms.linux;
|
2020-09-06 00:40:47 +02:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-03-22 10:27:27 +01:00
|
|
|
};
|
|
|
|
}
|