Add servers for languages

This commit is contained in:
Lillian Violet 2024-04-27 15:02:27 +02:00
parent 69b4904bb6
commit 371809eea9
3 changed files with 50 additions and 41 deletions

View file

@ -3,26 +3,29 @@
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
cachix
lorri
niv
nixfmt-classic
statix
vulnix
haskellPackages.dhall-nix
];
};
});
};
outputs = {
self,
nixpkgs,
}: let
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs {inherit system;};
});
in {
devShells = forEachSupportedSystem ({pkgs}: {
default = pkgs.mkShell {
packages = with pkgs; [
cachix
lorri
niv
alejandra
statix
vulnix
haskellPackages.dhall-nix
];
};
});
};
}