trying this again

This commit is contained in:
twoneis 2025-03-01 03:34:29 +01:00
parent dd1418b55a
commit ff7a37a433
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{
runCommand,
akkoma-frontends,
jq,
xorg,
}:
runCommand "akkoma-fe" {
styles = builtins.readFile ./styles.json;
nativeBuildInputs = [jq xorg.lndir];
passAsFile = ["styles"];
} ''
mkdir $out
lndir ${akkoma-frontends.akkoma-fe} $out
rm $out/static/styles.json
cp $config $out/static/styles.json
''