From c7c613c2617ee261b00d3014a7be769f8040f713 Mon Sep 17 00:00:00 2001 From: ALEZ-DEV Date: Mon, 8 Jul 2024 20:33:07 +0200 Subject: [PATCH] add nix environment for developpement --- shell.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..52608d7 --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +{ pkgs ? import {} }: +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" + ''; +}