From b8db8ac34275a625ac6f6f51ad435227526d54f0 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 18 Jun 2023 18:42:14 -0400 Subject: [PATCH] platinum9 --- flake.nix | 57 +++++++++++++++++++++++-------------------- platinum9/default.nix | 38 ----------------------------- 2 files changed, 30 insertions(+), 65 deletions(-) delete mode 100644 platinum9/default.nix diff --git a/flake.nix b/flake.nix index 5677929..6196e17 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; + }; }; }; diff --git a/platinum9/default.nix b/platinum9/default.nix deleted file mode 100644 index 1aa0a57..0000000 --- a/platinum9/default.nix +++ /dev/null @@ -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 ]; - # }; -}