-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
26 lines (24 loc) · 754 Bytes
/
flake.nix
File metadata and controls
26 lines (24 loc) · 754 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
25
26
{
description = "Codex Desktop for Linux - Nix flake for OpenAI Codex on Linux";
inputs = {
# Pinned to nixos-unstable via flake.lock. Run `nix flake update` carefully —
# bumping the lock may require testing if electron_40 or other attrs change.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
}: let
forAllSystems = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
in {
packages = forAllSystems (system: {
default = nixpkgs.legacyPackages.${system}.callPackage ./package.nix {};
});
apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/codex-desktop";
};
});
};
}