brianmcgee commited on
Commit
1fead68
·
unverified ·
1 Parent(s): 2b03a7a

feat: wrap duckdb in devshell with init script

Browse files
Files changed (1) hide show
  1. shell.nix +5 -1
shell.nix CHANGED
@@ -9,7 +9,11 @@ pkgs.mkShell {
9
  packages = [
10
  pkgs.git-lfs
11
  pkgs.git-xet
12
- pkgs.duckdb
 
 
 
 
13
  (pkgs.python313.withPackages (ps: [
14
  ps.duckdb
15
  ps.matplotlib
 
9
  packages = [
10
  pkgs.git-lfs
11
  pkgs.git-xet
12
+ (pkgs.writeShellScriptBin "duckdb" ''
13
+ exec ${pkgs.duckdb}/bin/duckdb \
14
+ -init "${./duckdb/init.sql}" \
15
+ "$@"
16
+ '')
17
  (pkgs.python313.withPackages (ps: [
18
  ps.duckdb
19
  ps.matplotlib