mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 09:28:53 +00:00
add nix environment for developpement
This commit is contained in:
parent
6ff7766ab1
commit
c7c613c261
22
shell.nix
Normal file
22
shell.nix
Normal 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"
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user