Skip to content

rupurt/flytectl-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flytectlnix

Nix flake for flytectl

Usage

This flytectl nix flake assumes you have already installed nix

Option 1. Use the flytectl CLI within your own flake

{
  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

Option 2. Run the flytectl CLI directly with nix run

nix run github:rupurt/flytectlnix

Authors

License

flytectlnix is released under the MIT license

Releases

No releases published

Packages

No packages published

Languages