forked from DGNum/gestiojeux
55 lines
1 KiB
Nix
55 lines
1 KiB
Nix
{
|
|
sources ? import ./npins,
|
|
pkgs ? import sources.nixpkgs { },
|
|
}:
|
|
|
|
let
|
|
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
|
|
python3 = pkgs.python3.override {
|
|
packageOverrides = final: _: {
|
|
inherit (nix-pkgs)
|
|
django-autoslug
|
|
loadcredential
|
|
markdown-icons
|
|
python-cas
|
|
;
|
|
authens = final.callPackage ./nix/authens {};
|
|
};
|
|
};
|
|
in
|
|
|
|
{
|
|
devShell = pkgs.mkShell {
|
|
name = "gestiojeux.dev";
|
|
|
|
packages = [
|
|
(python3.withPackages (ps: [
|
|
ps.django
|
|
ps.django-types
|
|
ps.django-autoslug
|
|
ps.loadcredential
|
|
ps.django-cleanup
|
|
ps.django-haystack
|
|
ps.django-markdownx
|
|
ps.django-tables2
|
|
ps.pillow
|
|
ps.whoosh
|
|
ps.markdown-icons
|
|
ps.authens
|
|
|
|
# Django haystack is drunk
|
|
ps.setuptools
|
|
]))
|
|
];
|
|
|
|
env = {
|
|
DJANGO_SETTINGS_MODULE = "gestiojeux.settings";
|
|
|
|
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
|
|
|
|
GESTIOJEUX_DEBUG = builtins.toJSON true;
|
|
};
|
|
};
|
|
}
|