happy-coder: init at 0.11.2 (#454499)
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
yarnConfigHook,
|
||||
yarnBuildHook,
|
||||
yarnInstallHook,
|
||||
nodejs,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "happy-coder";
|
||||
version = "0.11.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "slopus";
|
||||
repo = "happy-cli";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-WKzbpxHqE3Dxqy/PDj51tM9+Wl2Pallfrc5UU2MxNn8=";
|
||||
};
|
||||
|
||||
yarnOfflineCache = fetchYarnDeps {
|
||||
yarnLock = finalAttrs.src + "/yarn.lock";
|
||||
hash = "sha256-3/qcbCJ+Iwc+9zPCHKsCv05QZHPUp0it+QR3z7m+ssw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
nodejs
|
||||
yarnConfigHook
|
||||
yarnBuildHook
|
||||
yarnInstallHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
# Currently `happy` requires `node` to start its daemon
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/happy \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
nodejs
|
||||
]
|
||||
}
|
||||
wrapProgram $out/bin/happy-mcp \
|
||||
--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
nodejs
|
||||
]
|
||||
}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Mobile and web client wrapper for Claude Code and Codex with end-to-end encryption";
|
||||
homepage = "https://github.com/slopus/happy-cli";
|
||||
changelog = "https://github.com/slopus/happy-cli/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ onsails ];
|
||||
mainProgram = "happy";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user