add nix environment for developpement

This commit is contained in:
ALEZ-DEV 2024-07-08 20:33:07 +02:00
parent 6ff7766ab1
commit c7c613c261

22
shell.nix Normal file
View File

@ -0,0 +1,22 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rustup
rustfmt
clippy
gcc
pkg-config
];
buildInputs = with pkgs; [
openssl
cabextract
];
shellHook = ''
export OPENSSL_DIR="${pkgs.openssl.dev}"
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
export OPENSSL_NO_VENDOR=1
export OPENSSL_LIB_DIR="${pkgs.lib.getLib pkgs.openssl}/lib"
'';
}