update module

This commit is contained in:
Jonas Heinrich 2025-08-19 10:23:17 +02:00
parent 65b556d858
commit 5fc5c123ff
4 changed files with 15 additions and 10 deletions

View file

@ -23,12 +23,7 @@
src = self;
dependencies = with python3Packages; [
python
falcon
requests
jinja2
];
dependencies = with python3Packages; [ falcon requests jinja2 ];
installPhase = ''
install -Dm755 ${./fragify.py} $out/bin/fragify
@ -42,6 +37,8 @@
fi
'';
passthru.pythonPath = python3Packages.makePythonPath dependencies;
meta.mainProgram = "fragify";
};
};

View file

@ -31,6 +31,13 @@ gulp.task('copy-select2-theme', function () {
.pipe(gulp.dest('./assets/css'));
});
gulp.task('copy-assets', gulp.series('copy-bulk', 'copy-jquery', 'copy-select2-theme'));
// Copy favicon(s)
gulp.task('copy-favicon', function () {
return gulp
.src(['./favicon.svg'], { allowEmpty: true })
.pipe(gulp.dest('./assets'));
});
gulp.task('copy-assets', gulp.series('copy-bulk', 'copy-jquery', 'copy-select2-theme', 'copy-favicon'));
gulp.task('default', gulp.series('copy-assets'));

View file

@ -44,11 +44,11 @@ in
"no-orphans" = true;
# Pass environment to the app
env = {
PYTHONPATH = "${pkgs.fragify.pythonPath}";
FRAGIFY_TEMPLATES_DIR = "${pkgs.fragify}/share/fragify/templates";
FRAGIFY_STATIC_DIR = "${pkgs.fragify}/share/fragify/assets";
};
# Python deps for the embedded interpreter
pythonPackages = p: with p; [ falcon requests jinja2 ];
# Python deps for the embedded interpreter moved to PYTHONPATH in env
# Extra raw uWSGI settings not covered by module options
settings = {
"static-map" = "/static=${pkgs.fragify}/share/fragify/assets";

View file

@ -25,7 +25,8 @@
{% if noindex %}<meta name="robots" content="noindex,follow">{% endif %}
<meta name="theme-color" content="#667eea">
<link rel="icon" href="/static/favicon.ico">
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
<link rel="alternate icon" href="/static/favicon.ico">
{% block meta_extra %}{% endblock %}
<style>