pkgs: move to overlay
This commit is contained in:
parent
4c38af874c
commit
10d634cdc0
|
@ -36,8 +36,9 @@
|
|||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import ./pkgs.nix {
|
||||
inherit nixpkgs system geoip2-tarball;
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = import ./overlays.nix geoip2-tarball;
|
||||
};
|
||||
in {
|
||||
packages = {
|
||||
|
|
|
@ -7,8 +7,10 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
pkgs1 = import ../../pkgs.nix {inherit nixpkgs system geoip2-tarball;};
|
||||
pkgs1 = import nixpkgs {
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
overlays = import ../../overlays.nix geoip2-tarball;
|
||||
};
|
||||
in {
|
||||
options.e11sync = with lib.types; {
|
||||
enable = lib.mkEnableOption "Enable e11sync";
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
# If you consider exposing this overlay to the users, remove
|
||||
# django overwrite from here.
|
||||
geoip2-tarball: [
|
||||
(_: super: {
|
||||
python3 = super.python3.override {
|
||||
packageOverrides = _: python-super: {
|
||||
django = python-super.django_5;
|
||||
};
|
||||
};
|
||||
geoip-mmdb = super.callPackage ./pkgs/geoip-mmdb.nix {
|
||||
inherit geoip2-tarball;
|
||||
};
|
||||
e11sync-static = super.callPackage ./pkgs/e11sync-static.nix {};
|
||||
e11sync-frontend = super.callPackage ./pkgs/e11sync-frontend.nix {};
|
||||
e11sync-backend = super.callPackage ./pkgs/e11sync-backend.nix {};
|
||||
})
|
||||
]
|
23
pkgs.nix
23
pkgs.nix
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
nixpkgs,
|
||||
system,
|
||||
geoip2-tarball,
|
||||
}:
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [
|
||||
(_: super: {
|
||||
python3 = super.python3.override {
|
||||
packageOverrides = _: python-super: {
|
||||
django = python-super.django_5;
|
||||
};
|
||||
};
|
||||
geoip-mmdb = super.callPackage ./pkgs/geoip-mmdb.nix {
|
||||
inherit geoip2-tarball;
|
||||
};
|
||||
e11sync-static = super.callPackage ./pkgs/e11sync-static.nix {};
|
||||
e11sync-frontend = super.callPackage ./pkgs/e11sync-frontend.nix {};
|
||||
e11sync-backend = super.callPackage ./pkgs/e11sync-backend.nix {};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue