1
Fork 0

devShell: use django5

This commit is contained in:
Motiejus Jakštys 2024-01-28 18:36:29 +02:00
parent c38f096db8
commit 8fdea63c59
3 changed files with 9 additions and 8 deletions

7
django5.nix Normal file
View File

@ -0,0 +1,7 @@
_: prev: {
python3 = prev.python3.override {
packageOverrides = _: python-prev: {
django = python-prev.django_5;
};
};
}

View File

@ -40,7 +40,7 @@
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [overlay];
overlays = [overlay (import ./django5.nix)];
};
in {
packages = {

View File

@ -1,11 +1,5 @@
geoip2-tarball: let
django5 = _: prev: {
python3 = prev.python3.override {
packageOverrides = _: python-prev: {
django = python-prev.django_5;
};
};
};
django5 = import ./django5.nix;
in
_: prev: {
geoip-mmdb = (prev.extend django5).callPackage ./pkgs/geoip-mmdb.nix {