Custom ODBC Driver in configuration.nix

I am new to nixos and trying to integrate this custom odbc driver into my configuration.nix but it doesn´t really work.

My current configuration is here: Custom ODBC Driver in configuration.nix · GitHub

Thanks for help :smiley:

I created a gist here: test · GitHub

The explainations are in comment, but basically shellHook only make sense in nix-shell so simply use environment.etc."odbcinst.ini".text to configure your database globally. Note that I have not tested this file (also because I never used odbc before and the source is not included) so you surely need to fix a few typos.

1 Like

Thank you very much, it worked :smiley: The comments really helped to understand the configuration.