mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-14 11:06:22 +05:00
* add Nix formatter * nix fmt * check that Nix and Go code is formatted correctly * refactor flake.nix * add formatter to devShell
23 lines
384 B
Nix
23 lines
384 B
Nix
{
|
|
imports = [
|
|
./generate-schemas.nix
|
|
./formatting.nix
|
|
];
|
|
|
|
perSystem =
|
|
{ config, pkgs, ... }:
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.go
|
|
config.formatter
|
|
];
|
|
|
|
shellHook = ''
|
|
export GOPATH="$PWD/.data/go";
|
|
${config.apps.dev-generate-schemas.program}
|
|
'';
|
|
};
|
|
};
|
|
}
|