(config) flake.nix updated to fixing NixOS openssl issues

This commit is contained in:
Rorik Star Platinum 2025-11-04 19:16:43 +03:00
parent 1ef79843e6
commit 0a45d6e139
2 changed files with 70 additions and 0 deletions

View file

@ -13,7 +13,16 @@
rustup
cargo-watch
sqlx-cli
openssl
pkg-config # Помогает Cargo находить системные библиотеки
zlib # Часто требуется для компиляции OpenSSL
];
shellHook = ''
export OPENSSL_DIR="${pkgs.openssl.dev}"
export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib"
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig"
'';
};
}
);