18 lines
535 B
Nix
18 lines
535 B
Nix
{ pkgs ? import <nixpkgs> { }, additionalBuildInputs ? [ ] }:
|
|
|
|
with pkgs;
|
|
|
|
mkShell rec {
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
openssl
|
|
# TODO: Figure out a better way to include sqlx only in dev shells (release shell?)
|
|
sqlx-cli
|
|
] ++ lib.optionals pkgs.stdenv.isDarwin [
|
|
# Additional darwin specific inputs can be set here
|
|
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
buildInputs = additionalBuildInputs;
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
DATABASE_URL = "sqlite:testing.db";
|
|
}
|