mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-06-14 21:11:06 +02:00
chore: make project helix ready
This commit is contained in:
parent
77d44e51fa
commit
81e4b0e70f
4 changed files with 83 additions and 33 deletions
76
flake.nix
76
flake.nix
|
@ -1,27 +1,53 @@
|
|||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
systems,
|
||||
}:
|
||||
flake-utils.lib.eachSystem (import systems)
|
||||
(system: let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
glibc.static
|
||||
go
|
||||
gofumpt
|
||||
golangci-lint
|
||||
gopls
|
||||
gotools
|
||||
go-tools
|
||||
sqlite-interactive
|
||||
];
|
||||
};
|
||||
});
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
systems,
|
||||
}:
|
||||
flake-utils.lib.eachSystem (import systems) (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in
|
||||
{
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
glibc.static
|
||||
go
|
||||
gofumpt
|
||||
golangci-lint
|
||||
gopls
|
||||
gotools
|
||||
go-tools
|
||||
sqlite-interactive
|
||||
];
|
||||
};
|
||||
|
||||
helix = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
marksman # markdown
|
||||
nodePackages.prettier # formatting for markdown and yaml
|
||||
taplo # toml
|
||||
bash-language-server
|
||||
shellcheck # dependency for bash-ls
|
||||
shfmt # dependency for bash-ls
|
||||
yaml-language-server
|
||||
treefmt # formatter multiplexer
|
||||
nil # nix ls
|
||||
nixfmt-rfc-style # formatter for nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue