Skip to content

Commit e73632a

Browse files
authored
UDT support (#118)
* more commands and work * fix all udt tests * fix dependabot.yml
1 parent 1ff565d commit e73632a

File tree

26 files changed

+1590
-356
lines changed

26 files changed

+1590
-356
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
exclude-paths:
8+
- "examples/**"

shell.nix

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{ pkgs ? import <nixpkgs> {} }:
22

3-
let
4-
inherit (pkgs.stdenv.hostPlatform) system;
5-
6-
releases = {
7-
"x86_64-linux" = {
8-
name = "astra-cli-0.5-linux.zip";
9-
hash = "sha256-Gr+OIi2M/05DWV4XjZ8fDxeXyUyz/tUT/Qzl9BhvXog=";
10-
};
11-
"aarch64-linux" = {
12-
name = "astra-cli-0.5-linux.zip";
13-
hash = "sha256-Gr+OIi2M/05DWV4XjZ8fDxeXyUyz/tUT/Qzl9BhvXog=";
14-
};
15-
"x86_64-darwin" = {
16-
name = "astra-cli-0.5-mac.zip";
17-
hash = "sha256-g7wAyNSDns6y+XB+dbBeYILEm2jDFYNvZCm/U9N+fk8=";
18-
};
19-
"aarch64-darwin" = {
20-
name = "astra-cli-0.5-mac.zip";
21-
hash = "sha256-g7wAyNSDns6y+XB+dbBeYILEm2jDFYNvZCm/U9N+fk8=";
22-
};
23-
}.${system} or (throw "Unsupported system: ${system}");
24-
25-
astra = pkgs.stdenv.mkDerivation rec {
26-
pname = "astra";
27-
version = "0.5";
28-
29-
nativeBuildInputs = with pkgs; [ unzip ];
30-
31-
src = pkgs.fetchurl {
32-
url = "https://github.com/datastax/astra-cli/releases/download/${version}/${releases.name}";
33-
hash = releases.hash;
34-
};
35-
36-
unpackPhase = ''
37-
unzip $src
38-
'';
39-
40-
installPhase = ''
41-
install -m755 -D astra $out/bin/${pname}
42-
install -m755 -D astra-init.sh $out/bin/${pname}-init
43-
'';
44-
};
45-
in
3+
# let
4+
# inherit (pkgs.stdenv.hostPlatform) system;
5+
#
6+
# releases = {
7+
# "x86_64-linux" = {
8+
# name = "astra-cli-0.5-linux.zip";
9+
# hash = "sha256-Gr+OIi2M/05DWV4XjZ8fDxeXyUyz/tUT/Qzl9BhvXog=";
10+
# };
11+
# "aarch64-linux" = {
12+
# name = "astra-cli-0.5-linux.zip";
13+
# hash = "sha256-Gr+OIi2M/05DWV4XjZ8fDxeXyUyz/tUT/Qzl9BhvXog=";
14+
# };
15+
# "x86_64-darwin" = {
16+
# name = "astra-cli-0.5-mac.zip";
17+
# hash = "sha256-g7wAyNSDns6y+XB+dbBeYILEm2jDFYNvZCm/U9N+fk8=";
18+
# };
19+
# "aarch64-darwin" = {
20+
# name = "astra-cli-0.5-mac.zip";
21+
# hash = "sha256-g7wAyNSDns6y+XB+dbBeYILEm2jDFYNvZCm/U9N+fk8=";
22+
# };
23+
# }.${system} or (throw "Unsupported system: ${system}");
24+
#
25+
# astra = pkgs.stdenv.mkDerivation rec {
26+
# pname = "astra";
27+
# version = "0.5";
28+
#
29+
# nativeBuildInputs = with pkgs; [ unzip ];
30+
#
31+
# src = pkgs.fetchurl {
32+
# url = "https://github.com/datastax/astra-cli/releases/download/${version}/${releases.name}";
33+
# hash = releases.hash;
34+
# };
35+
#
36+
# unpackPhase = ''
37+
# unzip $src
38+
# '';
39+
#
40+
# installPhase = ''
41+
# install -m755 -D astra $out/bin/${pname}
42+
# install -m755 -D astra-init.sh $out/bin/${pname}-init
43+
# '';
44+
# };
45+
# in
4646

4747
pkgs.mkShell {
48-
packages = [ pkgs.nodejs_20 pkgs.jq astra pkgs.nodePackages.np ];
48+
packages = [ pkgs.nodejs_20 pkgs.jq pkgs.nodePackages.np ];
4949
}

0 commit comments

Comments
 (0)