Skip to content

Commit

Permalink
feat: add js and nix package to cli-kontrol-api (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean authored Jul 4, 2024
1 parent 2e96ff8 commit d007773
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
inherit pkgs;
};

packages.cli-kontrol-api = pkgs.callPackage ./libs/cli-kontrol-api/default.nix {
inherit pkgs;
};

containers = let
os = "linux";
all =
Expand Down
14 changes: 14 additions & 0 deletions libs/cli-kontrol-api/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{pkgs}:
with pkgs;
stdenv.mkDerivation {
name = "cli-kontrol-api";
src = ./.;
installPhase = ''
mkdir -p $out
cp -R ./api $out/
cp package.json $out/
cp go.mod $out/
cp go.sum $out/
cp README.md $out/
'';
}
19 changes: 19 additions & 0 deletions libs/cli-kontrol-api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "cli-kontrol-api",
"version": "0.0.1",
"description": "Client API for Kardinal",
"main": "api/typescript/client/types.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kurtosis-tech/kardinal.git"
},
"author": "kurtosis-tech",
"license": "MIT",
"bugs": {
"url": "https://github.com/kurtosis-tech/kardinal/issues"
},
"homepage": "https://github.com/kurtosis-tech/kardinal#readme"
}

0 comments on commit d007773

Please sign in to comment.