nginx: fix nginx binary pathname

This commit is contained in:
Izorkin 2023-11-20 22:51:21 +03:00
parent e9b7a38612
commit 00cb53de4f
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
2 changed files with 3 additions and 2 deletions

View File

@ -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 = {

View File

@ -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
'';