-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
58 lines (51 loc) · 2.2 KB
/
flake.nix
File metadata and controls
58 lines (51 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
description = "Springtale — local-first, privacy-preserving automation platform";
inputs = {
konductor.url = "github:braincraftio/konductor";
nixpkgs.follows = "konductor/nixpkgs";
};
outputs = { self, nixpkgs, konductor, ... }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
rustShell = konductor.devShells.${system}.rust;
in
{
default = rustShell.overrideAttrs (old: {
buildInputs = (old.buildInputs or []) ++ [
# ── Build tools ──────────────────────────────────────
pkgs.pkg-config
pkgs.openssl # needed for some build scripts even though we use rustls at runtime
# ── Database ─────────────────────────────────────────
pkgs.sqlite
# ── Node.js (TypeScript connector SDK) ──────────────
pkgs.nodejs_22
pkgs.pnpm
# ── WASM tools ───────────────────────────────────────
pkgs.wabt # wasm-validate, wasm2wat
# ── Security tooling ─────────────────────────────────
pkgs.cargo-deny
pkgs.cargo-audit
pkgs.cargo-nextest
pkgs.gitleaks
pkgs.trivy
pkgs.hadolint
pkgs.cosign
pkgs.syft
];
shellHook = (old.shellHook or "") + ''
echo "🌱 Springtale dev shell loaded"
echo " cargo build --workspace # build"
echo " cargo nextest run # test"
echo " cargo deny check # audit"
'';
});
}
);
};
}