retag-nix-docker-image/flake.nix
Lucien Cartier-Tilet 0801525ceb
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 1m9s
Continuous Integration / GitHub Actions Test (push) Successful in 9s
Continuous Integration / TypeScript Tests (push) Successful in 1m40s
Lint Codebase / Lint Codebase (push) Failing after 1m12s
Initial commit
2025-01-19 18:38:34 +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`"
'';
};
};
}