https://github.com/rupurt/flytectl-nix
Nix flake for flytectl
https://github.com/rupurt/flytectl-nix
ai flyte ml mlops nix nix-flake
Last synced: about 1 year ago
JSON representation
Nix flake for flytectl
- Host: GitHub
- URL: https://github.com/rupurt/flytectl-nix
- Owner: rupurt
- License: mit
- Created: 2023-06-01T00:03:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T22:26:21.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T02:22:02.826Z (about 1 year ago)
- Topics: ai, flyte, ml, mlops, nix, nix-flake
- Language: Nix
- Homepage:
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flytectlnix
Nix [flake](https://nixos.wiki/wiki/Flakes) for [flytectl](https://github.com/flyteorg/flytectl)
## Usage
This `flytectl` `nix` flake assumes you have already [installed nix](https://determinate.systems/posts/determinate-nix-installer)
### Option 1. Use the `flytectl` CLI within your own flake
```nix
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flytectl.url = "github:rupurt/flytectl";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {
self,
nixpkgs,
flake-utils,
flytectl,
...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
flytectl.overlay
];
};
in rec
{
packages = {
flytectl = pkgs.flytectl {};
};
devShells.default = pkgs.mkShell {
packages = [
packages.flytectl
];
};
}
);
}
```
The above config will add `flytectl` to your dev shell and also allow you to execute it
through the `nix` CLI utilities.
```sh
# run from devshell
nix develop -c $SHELL
flytectl
```
```sh
# run as application
nix run .#flytectl
```
### Option 2. Run the `flytectl` CLI directly with `nix run`
```nix
nix run github:rupurt/flytectlnix
```
## Authors
- Alex Kwiatkowski - alex+git@fremantle.io
## License
`flytectlnix` is released under the MIT license