Add Nix Flake with nodejs and just
This commit is contained in:
commit
b280d54f77
3 changed files with 47 additions and 0 deletions
19
flake.nix
Normal file
19
flake.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
description = "An example application that uses Stimulus with esbuild.";
|
||||
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
in {
|
||||
devShells.${system}.default = mkShell {
|
||||
buildInputs = with pkgs; [ just nodejs simple-http-server ];
|
||||
};
|
||||
|
||||
formatter.${system} = pkgs.nixfmt;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue