Skip to content

rupurt/kcctl-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nix flake for kcctl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages