mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
netbox: Inherit gunicorn from the package
I was using a 23.11 package on a NixOS 23.05 system and this caused the python that was used in gunicorn to differ from the python the postgres lib was linked against.
This commit is contained in:
parent
0d44b5b773
commit
018175ecab
2 changed files with 2 additions and 2 deletions
|
@ -317,7 +317,7 @@ in {
|
||||||
|
|
||||||
serviceConfig = defaultServiceConfig // {
|
serviceConfig = defaultServiceConfig // {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.python3Packages.gunicorn}/bin/gunicorn netbox.wsgi \
|
${pkg.gunicorn}/bin/gunicorn netbox.wsgi \
|
||||||
--bind ${cfg.listenAddress}:${toString cfg.port} \
|
--bind ${cfg.listenAddress}:${toString cfg.port} \
|
||||||
--pythonpath ${pkg}/opt/netbox/netbox
|
--pythonpath ${pkg}/opt/netbox/netbox
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, python3
|
, python3
|
||||||
, version
|
, version
|
||||||
, hash
|
, hash
|
||||||
|
@ -94,6 +93,7 @@
|
||||||
passthru = {
|
passthru = {
|
||||||
# PYTHONPATH of all dependencies used by the package
|
# PYTHONPATH of all dependencies used by the package
|
||||||
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
|
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
|
||||||
|
gunicorn = python3.pkgs.gunicorn;
|
||||||
inherit tests;
|
inherit tests;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue