This kcctl
nix
flake assumes you have already installed nix
{
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
nix run github:rupurt/kcctl-nix
- Alex Kwiatkowski - alex+git@fremantle.io
kcctl-nix
is released under the MIT license