」 feat: changed a few things to be more production ready

This commit is contained in:
2025-05-08 12:03:42 +02:00
parent 8f6875dc83
commit b418e4c25a
7 changed files with 47 additions and 25 deletions

View File

@ -34,19 +34,20 @@
name = "webserv";
src = pkgs.fetchgit {
url = "https://github.com/keyzox71/webserv.git";
rev = "8ef2803"; # Specify the revision
sha256 = "kjHPL1LInRv+8RE2Cyqt2R9M8qxpvkmvNjLhQLm3AWs="; # Specify the SHA-256 hash
fetchSubmodules = true;
rev = "8f6875d"; # Specify the revision
sha256 = "XEy48IhXGLHw5+DI2oaV03P7rWzH+gSbOLYrbO2YTrE="; # Specify the SHA-256 hash
fetchSubmodules = true; # need it for tomlpp
};
buildInputs = with pkgs; [
clang
];
buildPhase = ''
PKGS=true make
PKGS=true make -j
'';
installPhase = ''
mkdir -p $out/bin
cp webserv $out/bin
mkdir -p /etc/webserv
mkdir -p $out/bin
cp webserv $out/bin
'';
};
}