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: { e11sync-backend: {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
options.e11sync = with lib.types; { options.e11sync = with lib.types; {
@ -9,6 +10,10 @@ e11sync-backend: {
}; };
config = lib.mkIf config.e11sync.enable { 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, stdenv,
runCommand, runCommand,
makeWrapper, makeWrapper,
python3,
python3Packages, python3Packages,
libmaxminddb, libmaxminddb,
dart-sass, dart-sass,
@ -13,10 +14,16 @@
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "e11sync"; name = "e11sync";
propagatedBuildInputs = [ propagatedBuildInputs = let
python3Packages.django_5 python = python3.withPackages (ps:
python3Packages.django-compressor with ps; [
python3Packages.geoip2 django_5
django-compressor.override
{django = django_5;}
geoip2
]);
in [
python
libmaxminddb libmaxminddb
]; ];
nativeBuildInputs = [makeWrapper]; nativeBuildInputs = [makeWrapper];