ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
at rollback-hacking 39 lines 837 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.just 22 pkgs.pnpm 23 pkgs.nodejs 24 pkgs.sqlx-cli 25 pkgs.sqlite 26 pkgs.turso 27 pkgs.zstd 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}