ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
at trunk 39 lines 835 B view raw
1{ 2 perSystem = 3 { 4 config, 5 lib, 6 craneLib, 7 pkgs, 8 ... 9 }: 10 let 11 cfg = config.pre-commit; 12 in 13 { 14 # Adapted from 15 # https://github.com/cachix/git-hooks.nix/blob/dcf5072734cb576d2b0c59b2ac44f5050b5eac82/flake-module.nix#L66-L78 16 devShells.default = craneLib.devShell { 17 packages = lib.flatten [ 18 cfg.settings.enabledPackages 19 cfg.settings.package 20 21 pkgs.pnpm 22 pkgs.nodejs 23 pkgs.sqlx-cli 24 pkgs.sqlite 25 pkgs.turso 26 pkgs.zstd 27 pkgs.uv 28 ]; 29 30 PROTOC = lib.getExe pkgs.protobuf; 31 shellHook = builtins.concatStringsSep "\n" [ 32 cfg.installationScript 33 '' 34 export WIRE_TEST_DIR=$(realpath ./tests/rust) 35 '' 36 ]; 37 }; 38 }; 39}