mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 05:18:46 +02:00
「🔨」 fix: fixed port issue and main loop issue for reasons only gods or kanel knows
This commit is contained in:
83
flake.nix
83
flake.nix
@ -1,39 +1,50 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
pogit = {
|
||||
url = "github:y-syo/pogit";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
pogit = {
|
||||
url = "github:y-syo/pogit";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ nixpkgs, ... }:
|
||||
let
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in {
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default = pkgs.mkShell.override
|
||||
{}
|
||||
{
|
||||
buildInputs = with pkgs;[
|
||||
|
||||
];
|
||||
hardeningDisable = [ "all" ];
|
||||
packages = with pkgs; [
|
||||
gcc11
|
||||
clang_12
|
||||
norminette
|
||||
valgrind
|
||||
git
|
||||
gdb
|
||||
inputs.pogit.packages.${pkgs.system}.default
|
||||
compiledb
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
outputs =
|
||||
inputs@{ nixpkgs, ... }:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
forEachSupportedSystem =
|
||||
f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (
|
||||
system:
|
||||
f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
devShells = forEachSupportedSystem (
|
||||
{ pkgs }:
|
||||
{
|
||||
default = pkgs.mkShell.override { } {
|
||||
buildInputs = with pkgs; [
|
||||
];
|
||||
hardeningDisable = [ "all" ];
|
||||
packages = with pkgs; [
|
||||
gcc11
|
||||
clang_12
|
||||
norminette
|
||||
valgrind
|
||||
git
|
||||
gdb
|
||||
inputs.pogit.packages.${pkgs.system}.default
|
||||
compiledb
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user