diff --git a/flake.nix b/flake.nix index ba4ddd25..5928c2ef 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = diff --git a/libs/cli-kontrol-api/default.nix b/libs/cli-kontrol-api/default.nix new file mode 100644 index 00000000..55c87cb1 --- /dev/null +++ b/libs/cli-kontrol-api/default.nix @@ -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/ + ''; + } diff --git a/libs/cli-kontrol-api/package.json b/libs/cli-kontrol-api/package.json new file mode 100644 index 00000000..ba1517bc --- /dev/null +++ b/libs/cli-kontrol-api/package.json @@ -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" +}