forked from RightNow-AI/openfang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
55 lines (54 loc) · 1.59 KB
/
flake.nix
File metadata and controls
55 lines (54 loc) · 1.59 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
{
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
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 = {
};
};
}