Fix flake

This commit is contained in:
Greg Shuflin 2025-02-03 18:00:32 -08:00
parent fa18662b36
commit d0a8ac3bfe

View File

@ -50,19 +50,9 @@
# Copy static files to the output # Copy static files to the output
postInstall = '' postInstall = ''
mkdir -p $out/share/rss-reader mkdir -p $out
cp -r static $out/share/rss-reader/ cp -r static $out
cp -r templates $out/share/rss-reader/ cp -r templates $out
# Create a wrapper script that sets the correct paths
mv $out/bin/rss-reader $out/bin/.rss-reader-unwrapped
cat > $out/bin/rss-reader << EOF
#!/bin/sh
export ROCKET_STATIC_DIR="$out/share/rss-reader/static"
export ROCKET_TEMPLATE_DIR="$out/share/rss-reader/templates"
exec $out/bin/.rss-reader-unwrapped "\$@"
EOF
chmod +x $out/bin/rss-reader
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {