Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions pkgs/modules/databricks-cli/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ pkgs, lib, ... }:

let
version = "0.286.0";
databricks-cli = pkgs.stdenvNoCC.mkDerivation {
pname = "databricks-cli";
inherit version;

src = pkgs.fetchurl {
url = "https://github.com/databricks/cli/releases/download/v${version}/databricks_cli_${version}_linux_amd64.tar.gz";
hash = "sha256-lf6q0c9iZVNvIzLVrptTe0YudpFDVDdZXMWR8lOObw8=";
};

sourceRoot = ".";

dontConfigure = true;
dontBuild = true;

unpackPhase = ''
tar -xzf $src
'';

installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 databricks $out/bin/databricks
runHook postInstall
'';
};
in
{
id = "databricks-cli";
name = "Databricks CLI";
description = ''
The Databricks CLI is a command-line tool for interacting with
Databricks. It provides commands to manage Databricks resources
such as workspaces, jobs, clusters, libraries, and Databricks
apps from the command line.
'';
displayVersion = version;

replit.packages = [
databricks-cli
];
}
1 change: 1 addition & 0 deletions pkgs/modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ let
})
(import ./replit-rtld-loader)
(import ./graphite-cli)
(import ./databricks-cli)
];

activeModules = listToAttrs (
Expand Down
Loading