django: propagate better
This commit is contained in:
parent
4475a47987
commit
0d31ec7969
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue