Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rupurt/duckdb-nix
Nix flake for development with multiple DuckDB versions
https://github.com/rupurt/duckdb-nix
duckdb nix
Last synced: 21 days ago
JSON representation
Nix flake for development with multiple DuckDB versions
- Host: GitHub
- URL: https://github.com/rupurt/duckdb-nix
- Owner: rupurt
- License: mit
- Created: 2023-08-01T20:55:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-17T20:40:19.000Z (7 months ago)
- Last Synced: 2024-10-10T14:38:57.793Z (about 1 month ago)
- Topics: duckdb, nix
- Language: Nix
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# duckdb-nix
Nix flake for development with multiple DuckDB versions
## Versions
- [main](https://github.com/duckdb/duckdb/commits/main)
- [v0.10.2](https://github.com/duckdb/duckdb/releases/tag/v0.10.2)
- [v0.10.1](https://github.com/duckdb/duckdb/releases/tag/v0.10.1)
- [v0.10.0](https://github.com/duckdb/duckdb/releases/tag/v0.10.0)
- [v0.9.2](https://github.com/duckdb/duckdb/releases/tag/v0.9.2)## Usage
This `duckdb-nix` flake assumes you have already [installed nix](https://determinate.systems/posts/determinate-nix-installer)
### Flake Template
```shell
> nix flake init -t github:rupurt/duckdb-nix#multi
```### Custom Flake with Overlay
```nix
# flake.nix
{
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.duckdb-nix.url = "github:rupurt/duckdb-nix";outputs = {
self,
nixpkgs,
flake-utils,
duckdb-nix,
...
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
outputs = flake-utils.lib.eachSystem systems (system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
duckdb-nix.overlay
];
};
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.duckdb-pkgs.v0_10_2
# pkgs.duckdb-pkgs.v0_10_1
# pkgs.duckdb-pkgs.v0_10_0
# pkgs.duckdb-pkgs.v0_9_2
# pkgs.duckdb-pkgs.main
];
};
};
);
}
```## License
`duckdb-nix` is released under the [MIT license](./LICENSE)