chore: import upstream snapshot with attribution
CI / Check / macos-latest (push) Waiting to run
CI / Check / ubuntu-latest (push) Waiting to run
CI / Check / windows-latest (push) Waiting to run
CI / Test / macos-latest (push) Waiting to run
CI / Test / ubuntu-latest (push) Waiting to run
CI / Test / windows-latest (push) Waiting to run
CI / Clippy (push) Waiting to run
CI / Format (push) Waiting to run
CI / Security Audit (push) Waiting to run
CI / Secrets Scan (push) Waiting to run
CI / Install Script Smoke Test (push) Waiting to run
CI / Check / macos-latest (push) Waiting to run
CI / Check / ubuntu-latest (push) Waiting to run
CI / Check / windows-latest (push) Waiting to run
CI / Test / macos-latest (push) Waiting to run
CI / Test / ubuntu-latest (push) Waiting to run
CI / Test / windows-latest (push) Waiting to run
CI / Clippy (push) Waiting to run
CI / Format (push) Waiting to run
CI / Security Audit (push) Waiting to run
CI / Secrets Scan (push) Waiting to run
CI / Install Script Smoke Test (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
{
|
||||
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.nativeBuildInputs = with pkgs; [
|
||||
clang
|
||||
perl
|
||||
pkg-config
|
||||
];
|
||||
rust-project.defaults.perCrate.crane.args.buildInputs = with pkgs; [
|
||||
clang
|
||||
openssl
|
||||
perl
|
||||
pkg-config
|
||||
];
|
||||
rust-project.crates.openfang-desktop.crane.args.nativeBuildInputs = with pkgs; [
|
||||
pkg-config
|
||||
wrapGAppsHook3
|
||||
];
|
||||
rust-project.crates.openfang-desktop.crane.args.buildInputs = with pkgs; [
|
||||
atk
|
||||
glib
|
||||
gtk3
|
||||
libayatana-appindicator
|
||||
openssl
|
||||
pkg-config
|
||||
webkitgtk_4_1
|
||||
];
|
||||
rust-project.crates.openfang-desktop.crane.args.preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix LD_LIBRARY_PATH : "${pkgs.libayatana-appindicator}/lib"
|
||||
)
|
||||
'';
|
||||
|
||||
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 = {
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user