Files
hearth/test/package/affine/default.nix
T
yukkop f52861ffb8
runner nix smoke / nix label and flake smoke (push) Failing after 18s
affine from docker
2026-10-26 20:30:58 +00:00

19 lines
473 B
Nix

{ system, self, pkgs, ... }:
pkgs.lib.optionalAttrs (system == "x86_64-linux") {
affine-runtime = pkgs.runCommand "affine-runtime" {
nativeBuildInputs = [
pkgs.dash
pkgs.curl
pkgs.jq
pkgs.nodejs_22
(pkgs.postgresql_16.withPackages (ps: [ ps.pgvector ]))
pkgs.redis
];
AFFINE_PACKAGE = self.packages.${system}.affine;
AFFINE_CLIENT_TEST = ./test/client.cjs;
} ''
dash ${./test/runtime.sh}
touch "$out"
'';
}