add nix infra

This commit is contained in:
Maxwell Brown 2024-10-26 12:15:57 -04:00
parent 4d7ea90dd9
commit b95d19325b
No known key found for this signature in database
4 changed files with 108 additions and 79 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake;

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/test/smoke/parcel/.cache/**
**/dist/
**/out/
.direnv/

27
flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs =
{ nixpkgs, ... }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system: function nixpkgs.legacyPackages.${system}
);
in
{
formatter = forAllSystems (pkgs: pkgs.alejandra);
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
deno
nodejs
python3
];
};
});
};
}

View file

@ -1,5 +1,5 @@
{
"name": "monaco-editor",
"name": "@effect/monaco-editor",
"version": "0.52.0",
"vscodeRef": "493330cdc6475247184ea459c66776c3da12cd2d",
"private": true,