-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
51 lines (44 loc) · 1.36 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
description = "neocode flake";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, flake-parts }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.flake-parts.flakeModules.easyOverlay
];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }:
let
package = (with pkgs; (makeOverridable callPackage self { }));
in
{
overlayAttrs = {
inherit (config.packages) neocode;
};
packages.default = package;
packages.neocode = package;
devShells.default = with pkgs; mkShell {
buildInputs = [
gh
lua51Packages.luacheck
nil
nixpkgs-fmt
nodejs_20
nodePackages.markdownlint-cli
nodePackages.prettier
stylua
sumneko-lua-language-server
];
shellHook = ''
# format and check -> fac :)
alias fac="prettier --write README.md \
&& stylua init.lua lua/ \
&& luacheck init.lua lua/"
'';
};
};
};
}