Example of how to setup environment variables for a split package:
with import <nixpkgs> { };
stdenv.mkDerivation {
name = "eands";
buildInputs = [
rustup
openssl_1_0_2
];
OPENSSL_INCLUDE_DIR="${openssl_1_0_2.dev}/include/openssl";
OPENSSL_LIB_DIR="${openssl_1_0_2.out}/lib";
OPENSSL_ROOT_DIR="${openssl_1_0_2.out}";
}