retag-nix-docker-image/flake.nix
Lucien Cartier-Tilet bad7aa8d3d
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 1m0s
Continuous Integration / TypeScript Tests (push) Successful in 1m1s
Continuous Integration / GitHub Actions Test (push) Successful in 17s
Lint Codebase / Lint Codebase (push) Failing after 1m7s
Initial commit
2025-01-19 18:45:07 +01:00

30 lines
687 B
Nix

{
description = "A Nix-flake-based Node.js development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};
outputs = { self , nixpkgs ,... }: let
# system should match the system you are running on
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
in pkgs.mkShell {
# create an environment with nodejs_18, pnpm, and yarn
packages = with pkgs; [
nodejs_20
typescript-language-server
yaml-language-server
];
shellHook = ''
echo "node `${pkgs.nodejs}/bin/node --version`"
'';
};
};
}