update module
This commit is contained in:
parent
65b556d858
commit
5fc5c123ff
4 changed files with 15 additions and 10 deletions
|
|
@ -23,12 +23,7 @@
|
||||||
|
|
||||||
src = self;
|
src = self;
|
||||||
|
|
||||||
dependencies = with python3Packages; [
|
dependencies = with python3Packages; [ falcon requests jinja2 ];
|
||||||
python
|
|
||||||
falcon
|
|
||||||
requests
|
|
||||||
jinja2
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dm755 ${./fragify.py} $out/bin/fragify
|
install -Dm755 ${./fragify.py} $out/bin/fragify
|
||||||
|
|
@ -42,6 +37,8 @@
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.pythonPath = python3Packages.makePythonPath dependencies;
|
||||||
|
|
||||||
meta.mainProgram = "fragify";
|
meta.mainProgram = "fragify";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,13 @@ gulp.task('copy-select2-theme', function () {
|
||||||
.pipe(gulp.dest('./assets/css'));
|
.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'));
|
gulp.task('default', gulp.series('copy-assets'));
|
||||||
|
|
@ -44,11 +44,11 @@ in
|
||||||
"no-orphans" = true;
|
"no-orphans" = true;
|
||||||
# Pass environment to the app
|
# Pass environment to the app
|
||||||
env = {
|
env = {
|
||||||
|
PYTHONPATH = "${pkgs.fragify.pythonPath}";
|
||||||
FRAGIFY_TEMPLATES_DIR = "${pkgs.fragify}/share/fragify/templates";
|
FRAGIFY_TEMPLATES_DIR = "${pkgs.fragify}/share/fragify/templates";
|
||||||
FRAGIFY_STATIC_DIR = "${pkgs.fragify}/share/fragify/assets";
|
FRAGIFY_STATIC_DIR = "${pkgs.fragify}/share/fragify/assets";
|
||||||
};
|
};
|
||||||
# Python deps for the embedded interpreter
|
# Python deps for the embedded interpreter moved to PYTHONPATH in env
|
||||||
pythonPackages = p: with p; [ falcon requests jinja2 ];
|
|
||||||
# Extra raw uWSGI settings not covered by module options
|
# Extra raw uWSGI settings not covered by module options
|
||||||
settings = {
|
settings = {
|
||||||
"static-map" = "/static=${pkgs.fragify}/share/fragify/assets";
|
"static-map" = "/static=${pkgs.fragify}/share/fragify/assets";
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@
|
||||||
|
|
||||||
{% if noindex %}<meta name="robots" content="noindex,follow">{% endif %}
|
{% if noindex %}<meta name="robots" content="noindex,follow">{% endif %}
|
||||||
<meta name="theme-color" content="#667eea">
|
<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 %}
|
{% block meta_extra %}{% endblock %}
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue