diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..63196a0 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1707268954, + "narHash": "sha256-2en1kvde3cJVc3ZnTy8QeD2oKcseLFjYPLKhIGDanQ0=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "f8e2ebd66d097614d51a56a755450d4ae1632df1", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..218c8b3 --- /dev/null +++ b/flake.nix @@ -0,0 +1,35 @@ +{ + description = "Ephemeral Nix Environment"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs, ... }: + let + system = if builtins.currentSystem == "x86_64-darwin" then "x86_64-darwin" + else if builtins.currentSystem == "aarch64-darwin" then "aarch64-darwin" + else "x86_64-linux"; + in + { + devShells."${system}".default = + let + pkgs = import nixpkgs { + inherit system; + }; + in + pkgs.mkShell { + # create an environment with nodejs_20, and pnpm + packages = with pkgs; [ + nodejs_20 + nodePackages.pnpm + nushell # BECAUSE I WANT NUSHELL + ]; + + shellHook = '' + echo "node `${pkgs.nodejs}/bin/node --version`" + exec nu + ''; + }; + }; +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ad26eb4..bb8db9c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -119,9 +119,6 @@ dependencies: tsx: specifier: ^4.7.0 version: 4.7.0 - wisp-server-node: - specifier: ^1.0.1 - version: 1.0.1 devDependencies: '@catppuccin/tailwindcss': @@ -4740,10 +4737,6 @@ packages: dependencies: isexe: 2.0.0 - /wisp-server-node@1.0.1: - resolution: {integrity: sha512-RPid1o/q8NWE0zVFmMIUBIWS7WnUeHmfzrxaNeFsWKXYKD5RO74qYnDLbXSKFDCTSrPQ+uXtRI2I/EpunXfAvw==} - dev: false - /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'}