-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
42 lines (39 loc) · 1.09 KB
/
flake.nix
File metadata and controls
42 lines (39 loc) · 1.09 KB
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
34
35
36
37
38
39
40
41
42
{
inputs = {
nixpkgs.url = "nixpkgs";
flake-utils.url = github:numtide/flake-utils;
nur.url = github:nix-community/NUR;
};
outputs = { self, nixpkgs, flake-utils, nur, ... }: flake-utils.lib.eachDefaultSystem (system: let
inherit (nixpkgs.lib) singleton;
pkgs = import nixpkgs {
inherit overlays system;
};
overlays = [
# Setup access to the Nix User Repository
nur.overlay
# Pull in Lua overlays from my NUR
nur-no-packages.repos.shados.overlays.lua-overrides
nur-no-packages.repos.shados.overlays.lua-packages
];
nur-no-packages = import nur {
nurpkgs = nixpkgs.legacyPackages.${system};
pkgs = null;
};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
gnumake
inotifyTools
] ++ (with pkgs.lua52Packages; [
lua luarepl luarocks
yuescript inspect luacheck lunix
busted
]);
shellHook = ''
# lunix dep; useful to have for e.g. `luarocks make --local` testing
export RT_DIR=${pkgs.glibc}
'';
};
});
}