mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-10 18:28:45 +02:00
「🔨」 fix: fixed some things.
This commit is contained in:
@ -34,8 +34,8 @@
|
|||||||
name = "webserv";
|
name = "webserv";
|
||||||
src = pkgs.fetchgit {
|
src = pkgs.fetchgit {
|
||||||
url = "https://github.com/keyzox71/webserv.git";
|
url = "https://github.com/keyzox71/webserv.git";
|
||||||
rev = "8f6875d"; # Specify the revision
|
rev = "b418e4c"; # Specify the revision
|
||||||
sha256 = "XEy48IhXGLHw5+DI2oaV03P7rWzH+gSbOLYrbO2YTrE="; # Specify the SHA-256 hash
|
sha256 = "EtYxNbxtsmEVpx3HN31HUoUbUrLqI++6mXqBP8CAM2w="; # Specify the SHA-256 hash
|
||||||
fetchSubmodules = true; # need it for tomlpp
|
fetchSubmodules = true; # need it for tomlpp
|
||||||
};
|
};
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
@ -45,9 +45,8 @@
|
|||||||
PKGS=true make -j
|
PKGS=true make -j
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p /etc/webserv
|
mkdir -p $out/bin
|
||||||
mkdir -p $out/bin
|
cp webserv $out/bin
|
||||||
cp webserv $out/bin
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/04/10 13:43:54 by adjoly #+# #+# */
|
/* Created: 2025/04/10 13:43:54 by adjoly #+# #+# */
|
||||||
/* Updated: 2025/05/08 11:54:17 by adjoly ### ########.fr */
|
/* Updated: 2025/05/08 12:05:38 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef PKGS
|
#ifndef PKGS
|
||||||
#define SAMPLE_CONF_PATH "./sample.toml"
|
#define SAMPLE_CONF_PATH "./sample.toml"
|
||||||
#else
|
#else
|
||||||
#define SAMPLE_CONF_PATH "/etc/webserv/default.conf"
|
#define SAMPLE_CONF_PATH "/etc/webserv/default.conf"
|
||||||
|
Reference in New Issue
Block a user