platinum9

This commit is contained in:
alex 2023-06-18 18:42:14 -04:00
parent 45076f00f9
commit b8db8ac342
2 changed files with 30 additions and 65 deletions

View File

@ -8,42 +8,45 @@
overlay = final: prev: {
theme-platinum9 = with final; stdenv.mkDerivation {
pname = "theme-platinum9";
name = "theme-platinum9";
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
src = fetchFromGitea {
domain = "git.atauno.com";
owner = "atau";
repo = "Platinum9";
rev = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
sha256 = "0c9mhrs95ahz37djrv176vn41ywvj26ilwmnr1h9171giv6hid77";
src = fetchGit {
url = "https://git.atauno.com/atau/Platinum9.git";
rev = theme-platinum9.version;
};
# nativeBuildInputs = [ autoreconfHook pkg-config ];
installPhase = ''
runHook preInstall
# propagatedUserEnvPkgs = [ gtk-engine-murrine ];
# Install themes
mkdir -p "$out/share/themes"
mv ClassicPlatinumStreamlined "$out/share/themes"
mv PlatiPlus "$out/share/themes"
mv PlatiPlus26 "$out/share/themes"
# configureFlags = [ "--disable-unity" ];
# Install icons
mkdir -p "$out/share/icons"
mv NineIcons/ "$out/share/icons"
postInstall = ''
mkdir -p $out
echo "heeeey" > $out/test.txt
ls -la > $out/test.txt
cp -r * $out
# mkdir -p $out/share/plank/themes
# cp -r extra/*-Plank $out/share/plank/themes
# mkdir -p $out/share/doc/$pname/Chrome
# cp -r extra/Chrome/*.crx $out/share/doc/$pname/Chrome
# cp -r extra/Firefox $out/share/doc/$pname
# cp AUTHORS README.md $out/share/doc/$pname/
# 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; {
# inherit (src.meta) homepage;
# description = "Theme for GTK 3, GTK 2, Gnome-Shell, and Cinnamon";
# license = licenses.gpl3;
# platforms = platforms.unix;
# maintainers = with maintainers; [ romildo ];
# };
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 ];
};
};
};

View File

@ -1,38 +0,0 @@
{ stdenv, fetchFromGitea }: #, autoreconfHook, pkg-config, gtk-engine-murrine }:
stdenv.mkDerivation rec {
pname = "theme-platinum9";
version = "d3d2080c1a2d5772714d089d1dc1daeeb41db008";
src = fetchFromGitea {
domain = "git.atauno.com";
owner = "atau";
repo = "Platinum9";
rev = version;
sha256 = "0c9mhrs95ahz37djrv176vn41ywvj26ilwmnr1h9171giv6hid98";
};
# nativeBuildInputs = [ autoreconfHook pkg-config ];
# propagatedUserEnvPkgs = [ gtk-engine-murrine ];
# configureFlags = [ "--disable-unity" ];
postInstall = ''
ls -la
# mkdir -p $out/share/plank/themes
# cp -r extra/*-Plank $out/share/plank/themes
# mkdir -p $out/share/doc/$pname/Chrome
# cp -r extra/Chrome/*.crx $out/share/doc/$pname/Chrome
# cp -r extra/Firefox $out/share/doc/$pname
# cp AUTHORS README.md $out/share/doc/$pname/
'';
# meta = with lib; {
# inherit (src.meta) homepage;
# description = "Theme for GTK 3, GTK 2, Gnome-Shell, and Cinnamon";
# license = licenses.gpl3;
# platforms = platforms.unix;
# maintainers = with maintainers; [ romildo ];
# };
}