openshell: 0.0.16 -> 0.0.22
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -60,16 +60,16 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774807340,
|
"lastModified": 1775004246,
|
||||||
"narHash": "sha256-OV76SWqiBguUupfbkJMBVrslJoTqSh4epNjEp/HE/cY=",
|
"narHash": "sha256-P6Md0WzHK2/oAZ6VbpYnabVJyVcqwuYizoOqbxaf+lU=",
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"rev": "e7f94f9b9a3bd8742330e4a7ba8573ac21042c01",
|
"rev": "6314f09c14fdd6a3ab8bedc4f7b7182647551d12",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"ref": "v1.3.6",
|
"ref": "v1.3.13",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,4 +30,5 @@ in {
|
|||||||
|
|
||||||
# Imported from flake inputs (with local modifications)
|
# Imported from flake inputs (with local modifications)
|
||||||
opencode-desktop = pkgs.callPackage ./opencode-desktop {inherit inputs;};
|
opencode-desktop = pkgs.callPackage ./opencode-desktop {inherit inputs;};
|
||||||
|
# opencode-desktop = inputs.opencode.packages.${pkgs.system}.desktop;
|
||||||
}
|
}
|
||||||
|
|||||||
48
pkgs/eigent/default.nix
Normal file
48
pkgs/eigent/default.nix
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
appimageTools,
|
||||||
|
fetchurl,
|
||||||
|
lib,
|
||||||
|
nodejs,
|
||||||
|
nodePackages,
|
||||||
|
uv,
|
||||||
|
python3,
|
||||||
|
makeWrapper,
|
||||||
|
}: let
|
||||||
|
pname = "eigent";
|
||||||
|
version = "0.0.89";
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/eigent-ai/eigent/releases/download/v${version}/Eigent-${version}.AppImage";
|
||||||
|
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||||
|
};
|
||||||
|
appimageContents = appimageTools.extractType2 {inherit pname version src;};
|
||||||
|
in
|
||||||
|
appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
|
nativeBuildInputs = [makeWrapper];
|
||||||
|
|
||||||
|
extraPkgs = pkgs: [
|
||||||
|
nodejs
|
||||||
|
nodePackages.npm
|
||||||
|
uv
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
|
extraInstallCommands = ''
|
||||||
|
install -m 444 -D ${appimageContents}/Eigent.desktop -t $out/share/applications
|
||||||
|
substituteInPlace $out/share/applications/Eigent.desktop \
|
||||||
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
||||||
|
install -m 444 -D ${appimageContents}/Eigent.png \
|
||||||
|
$out/share/icons/hicolor/256x256/apps/Eigent.png
|
||||||
|
wrapProgram $out/bin/${pname} \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [nodejs nodePackages.npm uv python3]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Open source AI cowork desktop app — local alternative to Claude Cowork";
|
||||||
|
homepage = "https://github.com/eigent-ai/eigent";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
mainProgram = "eigent";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -29,9 +29,17 @@
|
|||||||
|
|
||||||
# Workaround for https://github.com/anomalyco/opencode/issues/11755
|
# Workaround for https://github.com/anomalyco/opencode/issues/11755
|
||||||
# Upstream is missing outputHashes for git dependencies
|
# Upstream is missing outputHashes for git dependencies
|
||||||
|
# Also fix stale npm deps hash in upstream node_modules FOD
|
||||||
|
fixedNodeModules = opencode.node_modules.overrideAttrs {
|
||||||
|
outputHash = "sha256-C7y5FMI1pGEgMw/vcPoBhK9tw5uGg1bk0gPXPUUVhgU=";
|
||||||
|
};
|
||||||
|
|
||||||
opencode-desktop = rustPlatform.buildRustPackage (finalAttrs: {
|
opencode-desktop = rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "opencode-desktop";
|
pname = "opencode-desktop";
|
||||||
inherit (opencode) version src node_modules patches;
|
version = opencode.version;
|
||||||
|
src = opencode.src;
|
||||||
|
node_modules = fixedNodeModules;
|
||||||
|
patches = opencode.patches;
|
||||||
|
|
||||||
cargoRoot = "packages/desktop/src-tauri";
|
cargoRoot = "packages/desktop/src-tauri";
|
||||||
cargoLock = {
|
cargoLock = {
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"version": "v0.0.16",
|
"version": "v0.0.22",
|
||||||
"sources": {
|
"sources": {
|
||||||
"aarch64-linux": {
|
"aarch64-linux": {
|
||||||
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.16/openshell-aarch64-unknown-linux-musl.tar.gz",
|
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.22/openshell-aarch64-unknown-linux-musl.tar.gz",
|
||||||
"hash": "sha256-cwG0fjf0mOZTXA+jwfjbUF04VxnL6U3hD8Hcabg+N/s="
|
"hash": "sha256-yeogvG6sxUWijYTUl5QbHyb9z0f84dKwKGsmSlxyPqk="
|
||||||
},
|
},
|
||||||
"x86_64-linux": {
|
"x86_64-linux": {
|
||||||
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.16/openshell-x86_64-unknown-linux-musl.tar.gz",
|
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.22/openshell-x86_64-unknown-linux-musl.tar.gz",
|
||||||
"hash": "sha256-yV/9CHBfP85hmOXLmZL6Toxe6mO1gXWMdh21kluS/sU="
|
"hash": "sha256-5qJCwQJgI8XgQ64WetNZc9jS++buT1Z0PqfBC+dYu94="
|
||||||
},
|
},
|
||||||
"aarch64-darwin": {
|
"aarch64-darwin": {
|
||||||
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.16/openshell-aarch64-apple-darwin.tar.gz",
|
"url": "https://github.com/NVIDIA/OpenShell/releases/download/v0.0.22/openshell-aarch64-apple-darwin.tar.gz",
|
||||||
"hash": "sha256-vSybSSiA+r3IJSpOwCQxSqrxJVkhlfVAfyiSKJai44M="
|
"hash": "sha256-XZLhP/7jLnkt0qmxVtZumsAwQCss7alaeiWbUW4njwM="
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user