-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This pull request introduces support for DuckDB in the Nix configuration, including adding a new module for DuckDB and updating relevant package lists. ### DuckDB Support: * Added DuckDB module configuration in `modules/duckdb.nix`, including platform-specific handling and fetch URL setup. * Included `duckdb.nix` in the common modules list in `modules/common.nix`. * Removed `pkgs.duckdb` from the `home.packages` list in `modules/misc.nix` to avoid redundancy.
- Loading branch information
Showing
4 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
./aws.nix | ||
./bat.nix | ||
./bottom.nix | ||
./duckdb.nix | ||
./delta.nix | ||
./difftastic.nix | ||
./eza.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ config, pkgs, ... }: | ||
|
||
let | ||
version = "1.1.1"; | ||
|
||
platform = | ||
if pkgs.stdenv.isDarwin then "osx-universal" | ||
else if pkgs.stdenv.system == "x86_64-linux" then "linux-amd64" | ||
else if pkgs.stdenv.system == "aarch64-linux" then "linux-aarch64" | ||
else throw "Unsupported platform"; | ||
|
||
hashs = { | ||
"linux-amd64" = "7f3f1a26e98b3f1fcc673ffb81d2daf43c07689ed60e88173d6a4fd307f118ae"; | ||
"linux-aarch64" = "9e1d2183453451050f6151bffb2425b78aa278f98acaca68a2671e36a9583be7"; | ||
"osx-universal" = "d6db79a6651ad6b0a35bb11fe9affdac9758ebef7b61b8e3f3f6a5a66fb4bf56"; | ||
}; | ||
|
||
duckdb = pkgs.stdenv.mkDerivation { | ||
name = "duckdb"; | ||
src = pkgs.fetchurl { | ||
url = "https://github.com/duckdb/duckdb/releases/download/v${version}/duckdb_cli-${platform}.zip"; | ||
sha256 = hashs.${platform}; | ||
}; | ||
buildInputs = [ pkgs.unzip ]; | ||
|
||
unpackPhase = '' | ||
mkdir -p $out/bin | ||
unzip $src -d $out/bin | ||
''; | ||
|
||
installPhase = '' | ||
chmod +x $out/bin/duckdb | ||
''; | ||
}; | ||
in | ||
{ | ||
home.packages = [ duckdb ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
home.packages = [ | ||
pkgs.curl | ||
pkgs.devbox | ||
pkgs.duckdb | ||
pkgs.glow | ||
pkgs.gnumake | ||
pkgs.grpcurl | ||
|