-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathflake.nix
33 lines (27 loc) · 800 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "SQLite/LuaJIT binding for lua and neovim";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system}.pkgs;
in {
devShells = {
default = pkgs.mkShell {
# you will also need a neovim with plenary-nvim installed to run the
# tests
buildInputs = with pkgs; [
luarocks
lua51Packages.luacheck
stylua
];
shellHook = ''
export LIBSQLITE=${pkgs.sqlite.out}/lib/libsqlite3.so
'';
};
};
});
}