Skip to content

Latest commit

 

History

History
74 lines (58 loc) · 1.35 KB

README.md

File metadata and controls

74 lines (58 loc) · 1.35 KB

kcctl-nix

Nix flake for kcctl

Usage

This kcctl nix flake assumes you have already installed nix

Option 1. Use the kcctl CLI within your own flake

{
  inputs.nixpkgs.url = "github:nixos/nixpkgs";
  inputs.kcctl.url = "github:rupurt/kcctl-nix";
  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = {
    self,
    nixpkgs,
    flake-utils,
    kcctl,
    ...
  }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
          overlays = [
            kcctl.overlay
          ];
        };
      in rec
      {
        packages = {
          kcctl = pkgs.kcctl {};
        };

        devShells.default = pkgs.mkShell {
          packages = [
            packages.kcctl
          ];
        };
      }
    );
}

The above config will add kcctl to your dev shell and also allow you to execute it through the nix CLI utilities.

# run from devshell
nix develop -c $SHELL
kcctl
# run default package
nix run

Option 2. Run the kcctl CLI directly with nix run

nix run github:rupurt/kcctl-nix

Authors

License

kcctl-nix is released under the MIT license