node-cli-template/flake.nix
2026-02-15 17:42:21 +07:00

34 lines
946 B
Nix

{
description = "name-placeholder";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
git-hooks.url = "github:cachix/git-hooks.nix";
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } (
{
systems = [ "x86_64-linux" ];
perSystem = { config, system, pkgs, ... }:
{
packages.default = pkgs.buildNpmPackage {
pname = "name-placeholder";
version = "0.1.0";
src = ./.;
npmDepsHash = "sha256-+30FObMk/z+ondarQzErirWkefJZR9dNGO6JPdbwSZI=";
npmBuildScript = "build";
};
devShells.default = pkgs.mkShell {
packages = with pkgs;
[ nodejs typescript-language-server biome ];
};
formatter = pkgs.nixpkgs-fmt;
};
}
);
}