https://github.com/rupurt/rill-nix
Nix flake for rill https://www.rilldata.com/
https://github.com/rupurt/rill-nix
Last synced: 9 months ago
JSON representation
Nix flake for rill https://www.rilldata.com/
- Host: GitHub
- URL: https://github.com/rupurt/rill-nix
- Owner: rupurt
- License: mit
- Created: 2024-12-17T23:08:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-17T23:37:42.000Z (over 1 year ago)
- Last Synced: 2025-06-09T10:45:24.557Z (about 1 year ago)
- Language: Nix
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rill-nix
Nix [flake](https://nixos.wiki/wiki/Flakes) for [Rill](https://www.rilldata.com). BI as code
## Usage
This `rill` flake assumes you have already [installed Nix](https://determinate.systems/posts/determinate-nix-installer)
### Option 1. Use the `rill` CLI within your own flake
```nix
{
inputs.nixpkgs.url = "github:nixos/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.rill.url = "github:rupurt/rill-nix";
outputs = {
self,
nixpkgs,
flake-utils,
rill,
...
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
rill.overlay
];
};
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.rill-pkgs.default
];
};
}
);
}
```
The above config will add `rill` to your dev shell and also allow you to execute it
through the Nix CLI utilities.
```sh
# run from devshell
nix develop -c $SHELL
rill
```
### Option 2. Run the `rill` CLI directly with `nix run`
```nix
nix run github:rupurt/rill-nix
```
## Authors
- Alex Kwiatkowski - alex+git@fremantle.io
## License
`rill-nix` is released under the MIT license