nyazoom/shell.nix

21 lines
555 B
Nix
Raw Normal View History

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