try sodiboos suggestion

This commit is contained in:
twoneis 2025-03-01 18:46:05 +01:00
parent fbdce20e93
commit c9063ff778

View file

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