node-cli-template/flake.nix

34 lines
895 B
Nix
Raw Normal View History

2026-02-15 17:38:53 +07:00
{
description = "name-placeholder";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
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;
};
}
);
}