nyazoom/shell.nix

19 lines
535 B
Nix
Raw Normal View History

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
];
buildInputs = additionalBuildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
DATABASE_URL = "sqlite:testing.db";
2024-08-28 22:05:40 +00:00
}