This flytectl
nix
flake assumes you have already installed 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.
# run from devshell
nix develop -c $SHELL
flytectl
# run as application
nix run .#flytectl
nix run github:rupurt/flytectlnix
- Alex Kwiatkowski - [email protected]
flytectlnix
is released under the MIT license