feat(build): initial development nix flake (#18296)

feat(nix): initial development flake
This commit is contained in:
mbwk
2024-03-20 04:46:22 +00:00
committed by GitHub
parent 6f3baa95d6
commit f0bc8a63bd
2 changed files with 93 additions and 0 deletions

29
flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
description = "Complete Open Source and Modular solution for MMO";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems =
[ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells = {
default = pkgs.mkShell.override { stdenv = pkgs.clangStdenv; } {
nativeBuildInputs = with pkgs; [
boost
cmake
openssl
libmysqlclient
readline
bzip2
];
MYSQL_INCLUDE_DIR = pkgs.libmysqlclient.dev + "/include/mysql";
};
};
};
};
}