2023-06-18 21:17:40 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: {
|
2023-06-18 22:09:09 +00:00
|
|
|
|
|
|
|
overlay = final: prev: {
|
|
|
|
theme-platinum9 = with final; stdenv.mkDerivation {
|
|
|
|
pname = "theme-platinum9";
|
2023-06-18 22:42:14 +00:00
|
|
|
name = "theme-platinum9";
|
2023-06-18 22:09:09 +00:00
|
|
|
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
|
|
|
|
|
2023-06-18 22:42:14 +00:00
|
|
|
src = fetchGit {
|
|
|
|
url = "https://git.atauno.com/atau/Platinum9.git";
|
|
|
|
rev = theme-platinum9.version;
|
2023-06-18 22:09:09 +00:00
|
|
|
};
|
|
|
|
|
2023-06-18 22:42:14 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2023-06-18 22:09:09 +00:00
|
|
|
|
2023-06-18 22:42:14 +00:00
|
|
|
# Install themes
|
|
|
|
mkdir -p "$out/share/themes"
|
|
|
|
mv ClassicPlatinumStreamlined "$out/share/themes"
|
|
|
|
mv PlatiPlus "$out/share/themes"
|
|
|
|
mv PlatiPlus26 "$out/share/themes"
|
2023-06-18 22:09:09 +00:00
|
|
|
|
2023-06-18 22:42:14 +00:00
|
|
|
# Install icons
|
|
|
|
mkdir -p "$out/share/icons"
|
|
|
|
mv NineIcons/ "$out/share/icons"
|
2023-06-18 22:09:09 +00:00
|
|
|
|
2023-06-18 22:42:14 +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
|
2023-06-18 22:09:09 +00:00
|
|
|
'';
|
|
|
|
|
2023-06-18 22:42:14 +00:00
|
|
|
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 ];
|
|
|
|
};
|
2023-06-18 22:09:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
packages.x86_64-linux.theme-platinum9 = (import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlays = [ self.overlay ];
|
|
|
|
}).theme-platinum9;
|
2023-06-18 21:17:40 +00:00
|
|
|
};
|
|
|
|
}
|