nyazoom/shell.nix

15 lines
378 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
];
buildInputs = additionalBuildInputs;
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
DATABASE_URL = "sqlite:testing.db";
}