2023-05-18 16:11:26 +05:30
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gtk3,
|
|
|
|
gnome,
|
|
|
|
gnome-icon-theme,
|
|
|
|
hicolor-icon-theme,
|
|
|
|
panel ? "dark",
|
|
|
|
folder ? "default",
|
2023-03-25 22:10:09 +05:30
|
|
|
}:
|
2023-03-15 22:11:59 +05:30
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "newaita-icon-theme";
|
|
|
|
version = "latest";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cbrnix";
|
|
|
|
repo = "Newaita";
|
|
|
|
rev = "c2b596b097a83be23833dc7bc40b5d07a63315e3";
|
|
|
|
hash = "sha256-tqtjUy8RjvOu0NaK+iE0R1g7/eqCpmhbdxuNGd/YfSI=";
|
|
|
|
};
|
|
|
|
|
2023-05-18 16:11:26 +05:30
|
|
|
nativeBuildInputs = [gtk3];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
gnome-icon-theme
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
PANEL_DIR=".DP"
|
|
|
|
if [ "${panel}" != "dark" ]; then
|
|
|
|
PANEL_DIR=".LP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
FOLDER_DIR=".places-${folder}"
|
|
|
|
|
|
|
|
mkdir -p $out/share/icons/Newaita{,-dark}
|
|
|
|
cp -ra Newaita/{actions,apps,categories,devices,emblems,mimetypes,status,icon-theme.cache,index.theme} $out/share/icons/Newaita/
|
|
|
|
cp -ra Newaita-dark/{actions,apps,categories,devices,emblems,mimetypes,status,icon-theme.cache,index.theme} $out/share/icons/Newaita-dark/
|
|
|
|
|
|
|
|
cp -ra Newaita/''$PANEL_DIR $out/share/icons/Newaita/panel
|
|
|
|
cp -ra Newaita-dark/''$PANEL_DIR $out/share/icons/Newaita-dark/panel
|
|
|
|
|
|
|
|
cp -ra Newaita/''$FOLDER_DIR $out/share/icons/Newaita/places
|
|
|
|
cp -ra Newaita-dark/''$FOLDER_DIR $out/share/icons/Newaita-dark/places
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = "gtk-update-icon-cache $out/share/icons/Newaita{,-dark}";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Newaita icon theme";
|
|
|
|
homepage = "https://github.com/cbrnix/Newaita";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|