Files
atridotdad/flake.nix
Atridad Lahiji 4954fe855f
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m5s
Re-adding nix
2025-12-25 02:02:45 -07:00

38 lines
817 B
Nix

{
description = "atridotdad 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_20
nodePackages.pnpm
];
shellHook = ''
echo "<atridotdad dev shell>"
echo "Node version: $(node --version)"
echo "pnpm version: $(pnpm --version)"
'';
};
});
};
}