Files
wehub-resource-sync d68f003000
CI / Change detection (push) Has been cancelled
CI / Version drift (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Workflow RLM cache (push) Has been cancelled
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / npm wrapper smoke (push) Has been cancelled
CI / Mobile runtime smoke (push) Has been cancelled
CI / Workflow lint (push) Has been cancelled
CI / Documentation (push) Has been cancelled
Web Frontend / Lint & Type Check (push) Failing after 1s
Auto-close harvested PRs / close (push) Failing after 1s
cargo-deny / cargo-deny (bans licenses sources) (push) Failing after 1s
Security audit / cargo-audit (push) Failing after 1s
Sync to CNB / sync (push) Failing after 1s
cargo-deny / cargo-deny (advisories) (push) Failing after 3s
Web Frontend / Deploy to Cloudflare (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:08:23 +08:00

69 lines
1.1 KiB
Nix

{
lib,
stdenv,
rustPlatform,
pkg-config,
autoPatchelfHook ? null,
openssl,
dbus ? null,
# for cargo test
python3,
gitMinimal,
cacert,
rev ? "dirty",
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "codewhale";
version = "git-${rev}";
src = ../.;
cargoLock = {
lockFile = ../Cargo.lock;
};
nativeBuildInputs = [
pkg-config
] ++ lib.optionals stdenv.isLinux [
autoPatchelfHook
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isLinux [
dbus.dev
dbus.lib
stdenv.cc.cc.lib
];
nativeCheckInputs = [
python3
gitMinimal
cacert
];
cargoBuildFlags = [
"--package"
"codewhale-cli"
"--package"
"codewhale-tui"
];
cargoTestFlags = finalAttrs.cargoBuildFlags ++ [
"--lib"
"--bins"
];
preCheck = ''
export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
'';
meta = {
description = "Terminal coding agent for DeepSeek";
homepage = "https://github.com/Hmbown/CodeWhale";
license = lib.licenses.mit;
mainProgram = "codewhale";
};
})