Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-06T22:26:21.000Z (over 1 year ago)
- Last Synced: 2024-10-10T14:39:28.828Z (4 months ago)
- Topics: ai, flyte, ml, mlops, nix, nix-flake
- Language: Nix
- Homepage:
- Size: 2.93 KB
- Stars: 4
- 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 - [email protected]
## License
`flytectlnix` is released under the MIT license