2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, breeze-icons
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, pantheon
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "luna-icons";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "0.9.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darkomarko42";
|
|
|
|
repo = pname;
|
2020-10-19 00:13:06 +00:00
|
|
|
rev = version;
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "0ajx7yjkgj5ynbjmd6k3cldjn0qr51h6k80hjgr7vqd0ybyylh5p";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gtk3
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
breeze-icons
|
|
|
|
hicolor-icon-theme
|
|
|
|
pantheon.elementary-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
cp -a Luna* $out/share/icons
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
# remove files with spaces in the name, otherwise
|
|
|
|
# gtk-update-icon-cache fails with the message "The generated cache
|
|
|
|
# was invalid"
|
|
|
|
# https://github.com/darkomarko42/Luna-Icons/issues/2
|
|
|
|
rm "$out/share/icons/Luna/scalable/apps/yast-checkmedia (copia).svg"
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
for theme in $out/share/icons/*; do
|
2020-10-19 00:13:06 +00:00
|
|
|
gtk-update-icon-cache "$theme"
|
2020-08-20 17:08:02 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Icon pack based on marwaita and papirus icons";
|
|
|
|
homepage = "https://github.com/darkomarko42/Luna-Icons";
|
|
|
|
license = [ licenses.gpl3Only ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|