-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathflake.nix
More file actions
65 lines (60 loc) · 1.74 KB
/
Copy pathflake.nix
File metadata and controls
65 lines (60 loc) · 1.74 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
56
57
58
59
60
61
62
63
64
65
{
description = "Claude Desktop Cowork (Local Agent Mode) on Linux, packaged for NixOS";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
outputs =
{ self, nixpkgs }:
let
systems = [ "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = system: nixpkgs.legacyPackages.${system};
in
{
packages = forAllSystems (
system:
let
pkgs = pkgsFor system;
claude-cowork-linux = pkgs.callPackage ./nix/package.nix { };
in
{
inherit claude-cowork-linux;
default = claude-cowork-linux;
}
);
apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.claude-cowork-linux}/bin/claude-desktop";
};
});
# `nix develop` then `bash ./install.sh` — runs the upstream installer with
# all of its dependencies provided declaratively, instead of its imperative
# `nix-env -iA` / `npm install -g electron` path (the npm electron binary is
# a prebuilt ELF that does not run on NixOS).
devShells = forAllSystems (
system:
let
pkgs = pkgsFor system;
in
{
default = pkgs.mkShell {
packages = [
pkgs.electron_41
pkgs.asar
pkgs.nodejs
pkgs.python3
pkgs.unzip
pkgs.p7zip
pkgs._7zz
pkgs.bubblewrap
pkgs.curl
pkgs.zstd
pkgs.file
pkgs.dbus
pkgs.xdg-utils
];
};
}
);
formatter = forAllSystems (system: (pkgsFor system).nixfmt-rfc-style);
};
}