Commit f80cb37
committed
Expose optional DB drivers in the Nix flake
Currently the flake installs only core deps, so `nix run` gives a
working TUI but every DB driver except SQLite (stdlib) is missing —
users can't connect to Postgres/MySQL/etc. On a Nix install there's
no pipx-style inject, so the driver has to come from the derivation.
Add a small `makeSqlit` helper with an `extras` list that mirrors the
names in pyproject.toml's `project.optional-dependencies`, limited to
drivers packaged in nixpkgs. The default `sqlit` is unchanged; a new
`sqlit-full` variant pulls in every extra we can satisfy from nixpkgs.
Custom builds go through `lib.makeSqlit { extras = [ ... ]; }`.
Addresses the goal of #126 without the 22-flag / 500-line expansion.1 parent fa8e98c commit f80cb37
2 files changed
Lines changed: 67 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
37 | 55 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
43 | 63 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 64 | + | |
47 | 65 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
51 | 71 | | |
52 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
53 | 75 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
62 | 81 | | |
63 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
64 | 90 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
70 | 99 | | |
71 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
72 | 103 | | |
73 | 104 | | |
74 | | - | |
| 105 | + | |
75 | 106 | | |
76 | 107 | | |
77 | 108 | | |
| 109 | + | |
| 110 | + | |
78 | 111 | | |
79 | 112 | | |
80 | 113 | | |
| |||
0 commit comments