2024-08-28 22:05:40 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { }, additionalBuildInputs ? [ ] }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
mkShell rec {
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
openssl
|
2024-11-15 15:23:19 +00:00
|
|
|
# TODO: Figure out a better way to include sqlx only in dev shells (release shell?)
|
|
|
|
sqlx-cli
|
2024-11-16 01:25:21 +00:00
|
|
|
] ++ lib.optionals pkgs.stdenv.isDarwin [
|
|
|
|
# Additional darwin specific inputs can be set here
|
|
|
|
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
2024-08-28 22:05:40 +00:00
|
|
|
];
|
2024-11-16 06:05:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
|
|
|
] ++ additionalBuildInputs;
|
2024-08-28 22:05:40 +00:00
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
2024-11-15 15:14:36 +00:00
|
|
|
DATABASE_URL = "sqlite:testing.db";
|
2024-08-28 22:05:40 +00:00
|
|
|
}
|