-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathshell.nix
More file actions
32 lines (29 loc) · 830 Bytes
/
shell.nix
File metadata and controls
32 lines (29 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
let
pkgs = import <nixpkgs> { config.allowUnfree = true; };
oracleLib = pkgs.oracle-instantclient.lib;
in
pkgs.mkShell {
buildInputs = with pkgs; [
oracle-instantclient
postgresql_15
go
];
hardeningDisable = [ "fortify" ];
shellHook = ''
export LD_LIBRARY_PATH=${oracleLib}/lib:$LD_LIBRARY_PATH
export ORACLE_HOME=${oracleLib}
echo "========================================="
echo "Squix development environment ready!"
echo "========================================="
echo ""
echo "Available tools:"
echo " - Go compiler"
echo " - PostgreSQL client (psql)"
echo " - SQLite client (sqlite3)"
echo " - Oracle Instant Client"
echo ""
echo "To test Squix with real databases, use dbeesly:"
echo " https://github.com/dbeesly"
echo ""
'';
}