-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathflake.nix
More file actions
24 lines (20 loc) · 758 Bytes
/
Copy pathflake.nix
File metadata and controls
24 lines (20 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
description = "Terax - open-source lightweight cross-platform AI-native terminal (ADE)";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: let
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
in {
packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
terax = pkgs.callPackage ./nix/package.nix { };
default = self.packages.${system}.terax;
});
nixosModules.terax = { pkgs, ... }: {
environment.systemPackages = [ self.packages.${pkgs.system}.terax ];
};
darwinModules.terax = { pkgs, ... }: {
environment.systemPackages = [ self.packages.${pkgs.system}.terax ];
};
};
}