nix/templates/deno/flake.nix

28 lines
580 B
Nix
Raw Normal View History

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2024-02-19 11:10:35 -06:00
outputs = {
self,
nixpkgs,
}: let
inherit (self) outputs;
supportedSystems = ["x86_64-linux"];
forEachSupportedSystem = nixpkgs.lib.genAttrs supportedSystems;
in {
devShells = forEachSupportedSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
deno-dev = pkgs.mkShell {
buildInputs = with pkgs; [
deno
2024-02-19 11:10:35 -06:00
curl
xh
sqlite
];
};
default = outputs.devShells.${system}.deno-dev;
});
};
}