Files
pokdedex_overkill/flake.nix
2026-04-28 12:27:46 +02:00

49 lines
1.2 KiB
Nix

{
description = "A Nix-flake-based Node.js development environment";
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1"; # unstable Nixpkgs
inputs.vue-lsp.url = "github:nixos/nixpkgs?ref=05bbf675397d5366259409139039af8077d695ce";
outputs =
{ self, ... }@inputs:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
inputs.nixpkgs.lib.genAttrs supportedSystems (
system:
f {
inherit system;
pkgs = import inputs.nixpkgs {
inherit system;
};
vue-lsp = import inputs.vue-lsp {
inherit system;
};
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs, system, vue-lsp }:
{
default = pkgs.mkShellNoCC {
packages = with pkgs; [
deno
self.formatter.${system}
vue-lsp.vue-language-server
typescript-language-server
];
};
}
);
formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt);
};
}