Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rupurt/kcctl-nix
Nix flake for kcctl
https://github.com/rupurt/kcctl-nix
Last synced: 21 days ago
JSON representation
Nix flake for kcctl
- Host: GitHub
- URL: https://github.com/rupurt/kcctl-nix
- Owner: rupurt
- License: mit
- Created: 2023-09-01T18:02:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-02T18:26:05.000Z (about 1 year ago)
- Last Synced: 2024-10-10T14:39:32.160Z (about 1 month ago)
- Language: Nix
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kcctl-nix
Nix [flake](https://nixos.wiki/wiki/Flakes) for [kcctl](https://github.com/kcctl/kcctl)
## Usage
This `kcctl` `nix` flake assumes you have already [installed nix](https://determinate.systems/posts/determinate-nix-installer)
### Option 1. Use the `kcctl` CLI within your own flake
```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.```sh
# run from devshell
nix develop -c $SHELL
kcctl
``````sh
# run default package
nix run
```### Option 2. Run the `kcctl` CLI directly with `nix run`
```nix
nix run github:rupurt/kcctl-nix
```## Authors
- Alex Kwiatkowski - [email protected]
## License
`kcctl-nix` is released under the MIT license