2025-12-02 20:00:28 +03:00
|
|
|
{ stdenv, lib, config, colors, username, ... }:
|
2025-01-23 16:38:56 +03:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
name = "AGS theme";
|
|
|
|
|
|
|
|
|
|
src = ./ags;
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
2025-12-02 20:00:28 +03:00
|
|
|
patchPhase = let
|
|
|
|
|
accent = if username == "chest"
|
|
|
|
|
then colors.base0E
|
|
|
|
|
else colors.base0B;
|
|
|
|
|
in ''
|
2025-01-23 16:38:56 +03:00
|
|
|
echo \$bg: \#${colors.base00}\; > colors.scss
|
|
|
|
|
echo \$surface0: \#${colors.base02}\; >> colors.scss
|
|
|
|
|
echo \$fg: \#${colors.base05}\; >> colors.scss
|
2025-12-02 20:00:28 +03:00
|
|
|
echo \$accent: \#${accent}\; >> colors.scss
|
2025-03-26 22:11:26 +03:00
|
|
|
|
2025-12-02 20:00:28 +03:00
|
|
|
echo \#${accent} > accent.css
|
2025-01-23 16:38:56 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
ls
|
|
|
|
|
mkdir $out
|
|
|
|
|
cp $src/* $out -r
|
|
|
|
|
mv colors.scss $out
|
2025-03-26 22:11:26 +03:00
|
|
|
mv accent.css $out
|
2025-01-23 16:38:56 +03:00
|
|
|
'';
|
|
|
|
|
}
|