gauntlet-cswimr-plugins/flake.nix

58 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-12-22 11:42:50 -05:00
{
inputs = {
2024-12-23 16:55:52 -05:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-12-22 11:42:50 -05:00
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
devenv.inputs.nixpkgs.follows = "nixpkgs";
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs =
{
self,
nixpkgs,
devenv,
systems,
...
}@inputs:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
packages = forEachSystem (system: {
devenv-up = self.devShells.${system}.default.config.procfileScript;
devenv-test = self.devShells.${system}.default.config.test;
});
devShells = forEachSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
# https://devenv.sh/reference/options/
languages.javascript = {
enable = true;
2024-12-23 17:08:44 -05:00
corepack.enable = true;
yarn = {
2024-12-22 11:42:50 -05:00
enable = true;
2024-12-23 16:55:52 -05:00
package = pkgs.yarn-berry;
2024-12-22 11:42:50 -05:00
install.enable = true;
};
};
}
];
};
}
);
};
}