miwafu/flake.nix

37 lines
968 B
Nix
Raw Normal View History

{
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 {
packages = [
pkgs.nodejs_20
pkgs.python3
2024-12-08 05:30:38 +00:00
pkgs.deno
]
++ config.packages;
shellHook = config.shellHook;
};
});
};
}