atau-nixpkgs/theme-platinum9/default.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

2024-08-01 21:15:33 +00:00
{ lib, stdenv, gtk3, adwaita-icon-theme, ... }:
2023-06-21 22:53:21 +00:00
2023-06-21 23:16:00 +00:00
stdenv.mkDerivation rec {
2023-06-21 22:53:21 +00:00
name = "theme-platinum9";
2023-06-21 23:16:00 +00:00
pname = name;
2023-06-21 22:53:21 +00:00
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
src = fetchGit {
url = "https://git.atauno.com/atau/Platinum9.git";
2023-06-21 23:16:00 +00:00
rev = version;
2023-06-21 22:53:21 +00:00
};
2024-08-01 00:41:19 +00:00
nativeBuildInputs = [
gtk3
];
propagatedBuildInputs = [
adwaita-icon-theme
2024-08-01 21:15:33 +00:00
# hicolor-icon-theme
2024-08-01 00:41:19 +00:00
];
dontDropIconThemeCache = true;
2023-06-21 22:53:21 +00:00
installPhase = ''
runHook preInstall
# Install themes
mkdir -p "$out/share/themes"
mv ClassicPlatinumStreamlined "$out/share/themes"
mv PlatiPlus "$out/share/themes"
mv PlatiPlus26 "$out/share/themes"
# Install icons
2024-08-01 00:41:19 +00:00
mkdir -p "$out/share/icons"
mv NineIcons/ "$out/share/icons"
for theme in $out/share/icons/*; do
gtk-update-icon-cache "$theme"
done
2023-06-21 22:53:21 +00:00
# Install fonts
mkdir -p "$out/share/fonts/truetype"
mv Charcoal.ttf "$out/share/fonts/truetype"
mv MONACO.TTF "$out/share/fonts/truetype"
# Install wallpapers
mkdir -p "$out/share/backgrounds"
mv OS9-wallpaper/ "$out/share/backgrounds"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/grassmunk/Platinum9.git";
description = "This is a quick and dirty theme meant to approximate (but not really be too pixel accurate) the MacOS 9 (or System 7) theme.";
platforms = platforms.unix;
maintainers = with maintainers; [ atau ];
};
}