mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
nginx: fix nginx binary pathname
This commit is contained in:
parent
e9b7a38612
commit
00cb53de4f
|
@ -68,6 +68,7 @@ stdenv.mkDerivation {
|
|||
++ mapModules "inputs";
|
||||
|
||||
configureFlags = [
|
||||
"--sbin-path=bin/nginx"
|
||||
"--with-http_ssl_module"
|
||||
"--with-http_v2_module"
|
||||
"--with-http_realip_module"
|
||||
|
@ -184,7 +185,7 @@ stdenv.mkDerivation {
|
|||
|
||||
postInstall =
|
||||
let
|
||||
noSourceRefs = lib.concatMapStrings (m: "remove-references-to -t ${m.src} $out/sbin/nginx\n") modules;
|
||||
noSourceRefs = lib.concatMapStrings (m: "remove-references-to -t ${m.src} $out/bin/nginx\n") modules;
|
||||
in noSourceRefs + postInstall;
|
||||
|
||||
passthru = {
|
||||
|
|
|
@ -41,7 +41,7 @@ callPackage ../nginx/generic.nix args rec {
|
|||
|
||||
postInstall = ''
|
||||
ln -s $out/luajit/bin/luajit-2.1.0-beta3 $out/bin/luajit-openresty
|
||||
ln -s $out/nginx/sbin/nginx $out/bin/nginx
|
||||
ln -s $out/nginx/bin/nginx $out/bin/nginx
|
||||
ln -s $out/nginx/conf $out/conf
|
||||
ln -s $out/nginx/html $out/html
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue