box-cli: init at 0.1.112
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
installShellFiles,
|
||||
}:
|
||||
|
||||
let
|
||||
sources = import ./sources.nix;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "box-cli";
|
||||
version = "0.1.112";
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchurl sources.${stdenv.hostPlatform.system};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 $src $out/bin/box
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "CLI for Ascii Box cloud sandboxes";
|
||||
homepage = "https://ascii.dev";
|
||||
license = lib.licenses.unfree;
|
||||
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
||||
maintainers = with lib.maintainers; [ pwnwriter ];
|
||||
mainProgram = "box";
|
||||
platforms = lib.attrNames sources;
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,22 @@
|
||||
# NOTE:
|
||||
# To update: run `nix-prefetch-url` for each platform URL and convert to SRI hash.
|
||||
# URLs: https://ascii.dev/api/box/cli/download?platform={platform}&channel=ascii-prod
|
||||
# Last updated: 2026-06-26
|
||||
{
|
||||
x86_64-linux = {
|
||||
url = "https://ascii.dev/api/box/cli/download?platform=linux-x64&channel=ascii-prod";
|
||||
hash = "sha256-DWQNenz/pmFVH5QM554lBk6+RwgOCjCBe7p+ZkHADTI=";
|
||||
};
|
||||
aarch64-linux = {
|
||||
url = "https://ascii.dev/api/box/cli/download?platform=linux-arm64&channel=ascii-prod";
|
||||
hash = "sha256-V2Sk6C1ZTRWlYQ2bVQTvK6PU8BkBPkmJMjUAo2Ul6+Q=";
|
||||
};
|
||||
x86_64-darwin = {
|
||||
url = "https://ascii.dev/api/box/cli/download?platform=darwin-x64&channel=ascii-prod";
|
||||
hash = "sha256-QI+ecq0O4dkKqdIvkONcYdXsS+EQLFIU35ulKGNSCRE=";
|
||||
};
|
||||
aarch64-darwin = {
|
||||
url = "https://ascii.dev/api/box/cli/download?platform=darwin-arm64&channel=ascii-prod";
|
||||
hash = "sha256-cyjMUGkWfNOggvtBfVqCijmcAj0P2SuFQORwg9EWbn0=";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user