2024-12-08 01:31:31 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixos-24.11";
|
|
|
|
mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ { self, nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
supportedSystems = [ "x86_64-linux" ];
|
|
|
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
|
|
inherit system;
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
});
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells = forEachSupportedSystem ({ system, pkgs }:
|
|
|
|
let
|
|
|
|
config = inputs.mfgames-project-setup.lib.mkConfig {
|
|
|
|
inherit system pkgs;
|
|
|
|
conform.scopes = [ "grammar" "dict" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
2024-12-08 02:26:26 +00:00
|
|
|
packages = [
|
|
|
|
pkgs.nodejs_20
|
|
|
|
pkgs.python3
|
|
|
|
]
|
|
|
|
++ config.packages;
|
|
|
|
|
2024-12-08 01:31:31 +00:00
|
|
|
shellHook = config.shellHook;
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|