1

django: propagate better

This commit is contained in:
Motiejus Jakštys 2024-01-16 00:09:47 +02:00
parent 4475a47987
commit 0d31ec7969
2 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,7 @@
e11sync-backend: {
config,
lib,
pkgs,
...
}: {
options.e11sync = with lib.types; {
@ -9,6 +10,10 @@ e11sync-backend: {
};
config = lib.mkIf config.e11sync.enable {
environment.systemPackages = [e11sync-backend];
environment.systemPackages = [
pkgs.python3
pkgs.python3Packages.django_5
e11sync-backend
];
};
}

View File

@ -3,6 +3,7 @@
stdenv,
runCommand,
makeWrapper,
python3,
python3Packages,
libmaxminddb,
dart-sass,
@ -13,10 +14,16 @@
}:
stdenv.mkDerivation {
name = "e11sync";
propagatedBuildInputs = [
python3Packages.django_5
python3Packages.django-compressor
python3Packages.geoip2
propagatedBuildInputs = let
python = python3.withPackages (ps:
with ps; [
django_5
django-compressor.override
{django = django_5;}
geoip2
]);
in [
python
libmaxminddb
];
nativeBuildInputs = [makeWrapper];