Added nix

This commit is contained in:
2025-12-25 23:38:40 -07:00
parent 455c3dbd9a
commit 13821cbcd5
4 changed files with 83 additions and 3 deletions

38
flake.nix Normal file
View File

@@ -0,0 +1,38 @@
{
description = "Zamaan dev shell";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs }:
let
allSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
nodejs_24
nodePackages.pnpm
sqlite
];
shellHook = ''
echo "Zamaan dev shell"
echo "Node version: $(node --version)"
echo "pnpm version: $(pnpm --version)"
'';
};
});
};
}