-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
74 lines (63 loc) · 1.64 KB
/
Copy pathdefault.nix
File metadata and controls
74 lines (63 loc) · 1.64 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
66
67
68
69
70
71
72
73
74
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
makeWrapper,
openssl,
git,
apple-sdk_15 ? null,
}:
let
pname = "jcode";
version = "0.55.0";
srcHash = "sha256-2GiYs4tdfMATZJVwQRsD8n3KB5/srzljth8zLNaHPlI=";
buildCommit = "ece08710ea6ff2a80e1886b7f487d54f8f159667";
buildGitDate = "2026-07-22 13:21:33 -0700";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "1jehuang";
repo = "jcode";
rev = "v${version}";
hash = srcHash;
};
cargoHash = "sha256-sHyzFO9riRduQiYUfY+7PWQbkB0XQcv/ZutrTI6rAHw=";
cargoBuildFlags = [
"--bin"
"jcode"
];
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
apple-sdk_15
];
JCODE_RELEASE_BUILD = "1";
JCODE_BUILD_SEMVER = version;
JCODE_BUILD_GIT_HASH = builtins.substring 0 8 buildCommit;
JCODE_BUILD_GIT_DATE = buildGitDate;
JCODE_BUILD_GIT_DIRTY = "false";
JCODE_BUILD_GIT_TAG = "v${version}";
JCODE_BUILD_CHANGELOG_RAW = "";
CARGO_INCREMENTAL = "0";
# The upstream suite includes provider/OAuth and TUI integration tests that
# require local credentials or interactive/runtime state.
doCheck = false;
postInstall = ''
wrapProgram "$out/bin/jcode" \
--prefix PATH : ${lib.makeBinPath [ git ]}
'';
meta = with lib; {
description = "A coding agent harness with a TUI, multi-model support, and multi-session workflows";
homepage = "https://github.com/1jehuang/jcode";
license = licenses.mit;
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "jcode";
};
}