-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathflake.nix
More file actions
50 lines (46 loc) · 1.18 KB
/
flake.nix
File metadata and controls
50 lines (46 loc) · 1.18 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
{
description = "Nix package for Claude Code - AI coding assistant in your terminal";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
let
overlay = final: prev: {
claude-code = final.callPackage ./package.nix { };
};
in
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ overlay ];
};
in
{
packages = {
default = pkgs.claude-code;
claude-code = pkgs.claude-code;
};
apps = {
default = {
type = "app";
program = "${pkgs.claude-code}/bin/claude";
};
claude-code = {
type = "app";
program = "${pkgs.claude-code}/bin/claude";
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nixpkgs-fmt
nix-prefetch-git
cachix
];
};
}) // {
overlays.default = overlay;
};
}