diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-06-21 02:39:55 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-06-22 04:57:57 +0300 |
commit | 389981f34bee767011e7859cd553ef90533b3c04 (patch) | |
tree | 534f1504f833b1d39e8574907b141da8a2fd205c /pkgs/servers | |
parent | 84e83fe055676e87c276ee710db1d5370de890bb (diff) | |
download | nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar.gz nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar.bz2 nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar.lz nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar.xz nixlib-389981f34bee767011e7859cd553ef90533b3c04.tar.zst nixlib-389981f34bee767011e7859cd553ef90533b3c04.zip |
uwsgi: add rack support
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/uwsgi/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index de3689a80074..3bec62ebe039 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -4,6 +4,7 @@ , pam, withPAM ? false , systemd, withSystemd ? false , python2, python3, ncurses +, ruby }: let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else "3"}" { @@ -20,6 +21,10 @@ let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else available = lib.listToAttrs [ (pythonPlugin python2) (pythonPlugin python3) + (lib.nameValuePair "rack" { + path = "plugins/rack"; + inputs = [ ruby ]; + }) ]; getPlugin = name: @@ -65,12 +70,12 @@ stdenv.mkDerivation rec { buildPhase = '' mkdir -p $pluginDir python3 uwsgiconfig.py --build nixos - ${lib.concatMapStringsSep ";" (x: "${x.interpreter} uwsgiconfig.py --plugin ${x.path} nixos ${x.name}") needed} + ${lib.concatMapStringsSep ";" (x: "${x.interpreter or "python3"} uwsgiconfig.py --plugin ${x.path} nixos ${x.name}") needed} ''; installPhase = '' install -Dm755 uwsgi $out/bin/uwsgi - ${lib.concatMapStringsSep "\n" (x: x.install) needed} + ${lib.concatMapStringsSep "\n" (x: x.install or "") needed} ''; NIX_CFLAGS_LINK = [ "-lsystemd" ]; |