nix/lib/templates/deno/flake.nix

42 lines
825 B
Nix
Raw Normal View History

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-02-19 11:10:35 -06:00
2025-02-14 13:31:18 -06:00
outputs =
{
self,
nixpkgs,
}:
let
inherit (self) outputs;
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
2024-03-19 10:25:29 -05:00
2025-02-14 13:31:18 -06:00
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forEachSupportedSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
deno-dev = pkgs.mkShell {
buildInputs = with pkgs; [
vscode-langservers-extracted
deno
curl
xh
sqlite
];
};
2025-02-14 13:31:18 -06:00
default = outputs.devShells.${system}.deno-dev;
}
);
};
}