mirror of
https://github.com/RightNow-AI/openfang.git
synced 2026-04-25 17:25:11 +02:00
Since v0.5.4, native-tls uses features = ["vendored"], which compiles OpenSSL from source via openssl-sys. This requires perl for the OpenSSL Configure script, but perl was missing from the flake's buildInputs. Mirrors the Dockerfile fix in #952. Fixes #894.
57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{
|
|
description = "The OpenFang Agent OS";
|
|
inputs = {
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
rust-flake.url = "github:juspay/rust-flake";
|
|
};
|
|
outputs = inputs @ {flake-parts, ...}:
|
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
|
imports = [
|
|
inputs.rust-flake.flakeModules.default
|
|
inputs.rust-flake.flakeModules.nixpkgs
|
|
];
|
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
|
perSystem = {
|
|
config,
|
|
self',
|
|
inputs',
|
|
pkgs,
|
|
system,
|
|
lib,
|
|
...
|
|
}: {
|
|
rust-project.src = lib.sources.cleanSource ./.;
|
|
rust-project.defaults.perCrate.crane.args.buildInputs = with pkgs; [
|
|
clang
|
|
openssl
|
|
perl
|
|
pkg-config
|
|
];
|
|
rust-project.crates.openfang-desktop.crane.args.buildInputs = with pkgs; [
|
|
atk
|
|
glib
|
|
gtk3
|
|
openssl
|
|
pkg-config
|
|
webkitgtk_4_1
|
|
];
|
|
|
|
packages.default = self'.packages.openfang-cli;
|
|
apps = {
|
|
openfang-cli = {
|
|
program = "${self'.packages.openfang-cli}/bin/openfang";
|
|
meta.description = "CLI tool for the OpenFang Agent OS";
|
|
};
|
|
openfang-desktop = {
|
|
program = "${self'.packages.openfang-desktop}/bin/openfang-desktop";
|
|
meta.description = "Native desktop application for the OpenFang Agent OS (Tauri 2.0)";
|
|
};
|
|
default = self'.apps.openfang-cli;
|
|
};
|
|
};
|
|
flake = {
|
|
};
|
|
};
|
|
}
|