31 lines
856 B
Nix
31 lines
856 B
Nix
|
{
|
||
|
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 = config.packages;
|
||
|
shellHook = config.shellHook;
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|