priduck-color-theme-cli-js/flake.nix

46 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-19 04:06:03 +00:00
{
inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";
mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git";
};
outputs = inputs @ { self, nixpkgs, mfgames-project-setup, ... }:
let
# Helpers for producing system-specific outputs
supportedSystems = [ "x86_64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
inherit system;
pkgs = import nixpkgs { inherit system; };
});
in
rec
{
# Set up the developer shell.
devShells = forEachSupportedSystem ({ system, pkgs }:
let
project-config = mfgames-project-setup.lib.mkConfig {
inherit system pkgs;
contributorCovenant.enable = true;
contributorCovenant.contact = "contact@mfgames.com";
developerCertificateOfOrigin.enable = true;
};
in
{
# Shell
default = pkgs.mkShell {
2024-02-21 02:09:05 +00:00
packages = [
pkgs.just
pkgs.nodejs_20
2024-02-24 18:01:13 +00:00
pkgs.nodePackages.prettier
2024-02-21 02:09:05 +00:00
]
++ project-config.packages;
2024-02-19 04:06:03 +00:00
shellHook = project-config.shellHook;
};
});
# Formatting for the Nix files
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt);
};
}