migrate dev shell to nix flake

This commit is contained in:
2025-05-15 12:56:37 +02:00
parent 734d22f4ee
commit 153483f54f
4 changed files with 52 additions and 8 deletions

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs =
{ nixpkgs, ... }:
{
devShells =
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
${system}.default = pkgs.mkShellNoCC {
packages = with pkgs; [
deno
pkgs.nil # Nix language server
pkgs.nixfmt-rfc-style
];
};
};
};
}