feat: add nix flake (#593)

Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>
This commit is contained in:
doprz
2025-06-08 23:16:43 -05:00
committed by GitHub
parent 2d92dd47f0
commit 7b401add15
5 changed files with 99 additions and 0 deletions

32
flake.nix Normal file
View File

@@ -0,0 +1,32 @@
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = (import (inputs.nixpkgs) { inherit system; });
in
{
formatter = pkgs.nixfmt-rfc-style;
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20 # v20.19.0
pnpm_10 # v10.8.1
just
];
shellHook = ''
echo "UTRP Nix Flake Environment Loaded"
echo "Node: $(node --version)"
echo "pnpm: $(pnpm --version)"
'';
};
}
);
}