diff options
author | Joris | 2025-04-19 12:36:38 +0200 |
---|---|---|
committer | Joris | 2025-04-19 12:38:24 +0200 |
commit | 632eef6424d8dc8d40c2906177892697679e7b85 (patch) | |
tree | 48d9cd60e9e96eab810b5f7bb3c7b1fa79e0438f /flake.nix | |
parent | 063d8ef9eaf874a941f4459e831057dd0a1b7ddd (diff) |
Add ZIG server
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 63 |
1 files changed, 45 insertions, 18 deletions
@@ -1,21 +1,48 @@ { - inputs = { - nixpkgs.url = "github:nixos/nixpkgs"; - flake-utils.url = "github:numtide/flake-utils"; - }; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + zig = { + url = "github:mitchellh/zig-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-utils.follows = "flake-utils"; + }; + }; - outputs = { self, nixpkgs, flake-utils }: - flake-utils.lib.eachDefaultSystem - (system: - let pkgs = nixpkgs.legacyPackages.${system}; - in { devShell = pkgs.mkShell { - buildInputs = with pkgs; [ - nodePackages.typescript - python3 - psmisc # fuser - esbuild - watchexec - ]; - }; } - ); + outputs = { self, nixpkgs, flake-utils, zig, ... }: + flake-utils.lib.eachDefaultSystem (system: + let + overlays = [ + (final: prev: { + zigpkgs = zig.packages.${prev.system}; + }) + ]; + pkgs = import nixpkgs { + inherit system overlays; + }; + in + with pkgs; + { + devShell = mkShell { + buildInputs = [ + # Common + watchexec + + # Frontend + esbuild + nodePackages.typescript + dart-sass + + # Backend + psmisc # fuser + sqlite + zigpkgs.master + + # Tooling + tmux + tmuxinator + ]; + }; + } + ); } |