From 3772d677267374c14a86631a229e420c6f904440 Mon Sep 17 00:00:00 2001 From: "Rph :3" <11350302+rphsoftware@users.noreply.github.com> Date: Thu, 27 Mar 2025 17:25:19 +0100 Subject: [PATCH] Add flake with Bun --- dev-server/.envrc | 1 + dev-server/.gitignore | 1 + dev-server/flake.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 dev-server/.envrc create mode 100644 dev-server/.gitignore create mode 100644 dev-server/flake.nix diff --git a/dev-server/.envrc b/dev-server/.envrc new file mode 100644 index 0000000..8392d15 --- /dev/null +++ b/dev-server/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/dev-server/.gitignore b/dev-server/.gitignore new file mode 100644 index 0000000..ff51edf --- /dev/null +++ b/dev-server/.gitignore @@ -0,0 +1 @@ +.direnv \ No newline at end of file diff --git a/dev-server/flake.nix b/dev-server/flake.nix new file mode 100644 index 0000000..623e335 --- /dev/null +++ b/dev-server/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, utils }: + utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in { + devShell = with pkgs; mkShell { + buildInputs = with pkgs; [ bun ]; + }; + } + ); +}