feat: add openshell package
All checks were successful
Update Nix Packages with nix-update / nix-update (push) Successful in 35m25s
All checks were successful
Update Nix Packages with nix-update / nix-update (push) Successful in 35m25s
This commit is contained in:
35
pkgs/openshell/default.nix
Normal file
35
pkgs/openshell/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}: let
|
||||
sources = lib.importJSON ./sources.json;
|
||||
source = sources.sources.${stdenv.hostPlatform.system};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "openshell";
|
||||
version = lib.removePrefix "v" sources.version;
|
||||
|
||||
src = fetchurl {
|
||||
inherit (source) url hash;
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
tar -xzf $src
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 openshell $out/bin/openshell
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Safe, private runtime for autonomous AI agents";
|
||||
homepage = "https://github.com/NVIDIA/OpenShell";
|
||||
license = licenses.asl20;
|
||||
platforms = attrNames sources.sources;
|
||||
mainProgram = "openshell";
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user