nix-cache-dataset / shell.nix
brianmcgee's picture
feat: wrap duckdb in devshell with init script
1fead68 unverified
raw
history blame contribute delete
530 Bytes
{
pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/5912c1772a44e31bf1c63c0390b90501e5026886.tar.gz";
sha256 = "1kk6dr0d9hpc0pfsb24dpvn7cnvwnyc9fnj1pbkd55phyzfdsg9j";
}) { }
}:
pkgs.mkShell {
packages = [
pkgs.git-lfs
pkgs.git-xet
(pkgs.writeShellScriptBin "duckdb" ''
exec ${pkgs.duckdb}/bin/duckdb \
-init "${./duckdb/init.sql}" \
"$@"
'')
(pkgs.python313.withPackages (ps: [
ps.duckdb
ps.matplotlib
ps.pandas
]))
];
}