Add nix flake (#6)

This commit was merged in pull request #6.
This commit is contained in:
6543
2024-08-21 12:06:49 +02:00
committed by GitHub
parent a9fc72b62b
commit 3d0faf554c
2 changed files with 84 additions and 0 deletions

23
flake.nix Normal file
View File

@@ -0,0 +1,23 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_22
yarn
];
};
}
);
}