1 { pkgs, lib, stdenv, build-asdf-system, ... }:
5 # FIXME: automatically add nativeLibs based on conditions signalled
7 overrides = (self: super: {
8 cl_plus_ssl = super.cl_plus_ssl.overrideLispAttrs (o: {
9 nativeLibs = [ pkgs.openssl ];
11 cl-cffi-gtk-glib = super.cl-cffi-gtk-glib.overrideLispAttrs (o: {
12 nativeLibs = [ pkgs.glib ];
14 cl-cffi-gtk-cairo = super.cl-cffi-gtk-cairo.overrideLispAttrs (o: {
15 nativeLibs = [ pkgs.cairo ];
17 cl-cairo2 = super.cl-cairo2.overrideLispAttrs (o: {
18 nativeLibs = [ pkgs.cairo ];
20 cl-cairo2-xlib = super.cl-cairo2-xlib.overrideLispAttrs (o: {
21 nativeLibs = [ pkgs.gtk2-x11 ];
23 cl-freeimage = super.cl-freeimage.overrideLispAttrs (o: {
24 nativeLibs = [ pkgs.freeimage ];
26 cl-freetype2 = super.cl-freetype2.overrideLispAttrs (o: {
27 nativeLibs = [ pkgs.freetype ];
28 nativeBuildInputs = [ pkgs.freetype ];
29 patches = [ ./patches/cl-freetype2-fix-grovel-includes.patch ];
31 cl-pango = super.cl-pango.overrideLispAttrs (o: {
32 nativeLibs = [ pkgs.pango ];
34 cl-gtk2-gdk = super.cl-gtk2-gdk.overrideLispAttrs (o: {
35 nativeLibs = [ pkgs.gtk2-x11 ];
37 cl-gtk2-glib = super.cl-gtk2-glib.overrideLispAttrs (o: {
38 nativeLibs = [ pkgs.glib ];
40 cl-gtk2-pango = super.cl-gtk2-pango.overrideLispAttrs (o: {
41 nativeLibs = [ pkgs.pango ];
43 cl-rsvg2 = super.cl-rsvg2.overrideLispAttrs (o: {
44 nativeLibs = [ pkgs.librsvg ];
46 cl-cffi-gtk-gdk = super.cl-cffi-gtk-gdk.overrideLispAttrs (o: {
47 nativeLibs = [ pkgs.gtk3 ];
49 cl-cffi-gtk-gdk-pixbuf = super.cl-cffi-gtk-gdk-pixbuf.overrideLispAttrs (o: {
50 nativeLibs = [ pkgs.gdk-pixbuf ];
52 cl-cffi-gtk-pango = super.cl-cffi-gtk-pango.overrideLispAttrs (o: {
53 nativeLibs = [ pkgs.pango ];
55 cl-gobject-introspection = super.cl-gobject-introspection.overrideLispAttrs (o: {
56 nativeLibs = [ pkgs.glib pkgs.gobject-introspection ];
58 cl-mysql = super.cl-mysql.overrideLispAttrs (o: {
59 nativeLibs = [ pkgs.mariadb.client ];
61 clsql-postgresql = super.clsql-postgresql.overrideLispAttrs (o: {
62 nativeLibs = [ pkgs.postgresql.lib ];
64 clsql-sqlite3 = super.clsql-sqlite3.overrideLispAttrs (o: {
65 nativeLibs = [ pkgs.sqlite ];
67 cl-webkit2 = super.cl-webkit2.overrideLispAttrs (o: {
68 nativeLibs = [ pkgs.webkitgtk_4_0 ];
70 dbd-mysql = super.dbd-mysql.overrideLispAttrs (o: {
71 nativeLibs = [ pkgs.mariadb.client ];
73 lla = super.lla.overrideLispAttrs (o: {
74 nativeLibs = [ pkgs.openblas ];
76 cffi = super.cffi.overrideLispAttrs (o: {
78 (pkgs.fetchMavenArtifact {
79 groupId = "net.java.dev.jna";
82 sha256 = "0qbis8acv04fi902qzak1mbagqaxcsv2zyp7b8y4shs5nj0cgz7a";
86 cffi-libffi = super.cffi-libffi.overrideLispAttrs (o: {
87 nativeBuildInputs = [ pkgs.libffi ];
88 nativeLibs = [ pkgs.libffi ];
89 patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./patches/cffi-libffi-darwin-ffi-h.patch ];
91 cl-rabbit = super.cl-rabbit.overrideLispAttrs (o: {
92 nativeBuildInputs = [ pkgs.rabbitmq-c ];
93 nativeLibs = [ pkgs.rabbitmq-c ];
95 trivial-ssh-libssh2 = super.trivial-ssh-libssh2.overrideLispAttrs (o: {
96 nativeLibs = [ pkgs.libssh2 ];
98 sqlite = super.sqlite.overrideLispAttrs (o: {
99 nativeLibs = [ pkgs.sqlite ];
101 duckdb = super.duckdb.overrideLispAttrs (o: {
102 nativeLibs = [ pkgs.duckdb ];
104 cl-libuv = super.cl-libuv.overrideLispAttrs (o: {
105 nativeBuildInputs = [ pkgs.libuv ];
106 nativeLibs = [ pkgs.libuv ];
108 cl-liballegro = super.cl-liballegro.overrideLispAttrs (o: {
109 nativeLibs = [ pkgs.allegro5 ];
111 cl-ode = super.cl-ode.overrideLispAttrs (o: {
113 ode' = pkgs.ode.overrideAttrs (o: {
116 "--enable-double-precision"
121 classimp = super.classimp.overrideLispAttrs (o: {
122 nativeLibs = [ pkgs.assimp ];
124 sdl2 = super.sdl2.overrideLispAttrs (o: {
125 nativeLibs = [ pkgs.SDL2 ];
127 sdl2-image = super.sdl2-image.overrideLispAttrs (o: {
128 nativeLibs = [ pkgs.SDL2_image ];
130 sdl2-mixer = super.sdl2-mixer.overrideLispAttrs (o: {
131 nativeLibs = [ pkgs.SDL2_mixer ];
133 sdl2-ttf = super.sdl2-ttf.overrideLispAttrs (o: {
134 nativeLibs = [ pkgs.SDL2_ttf ];
136 lispbuilder-sdl-cffi = super.lispbuilder-sdl-cffi.overrideLispAttrs (o: {
137 nativeLibs = [ pkgs.SDL ];
139 cl-opengl = super.cl-opengl.overrideLispAttrs (o: {
140 nativeLibs = [ pkgs.libGL ];
142 cl-glu = super.cl-glu.overrideLispAttrs (o: {
143 nativeLibs = [ pkgs.libGLU ];
145 cl-glut = super.cl-glut.overrideLispAttrs (o: {
146 nativeLibs = [ pkgs.libglut ];
148 cl-glfw = super.cl-glfw.overrideLispAttrs (o: {
149 nativeLibs = [ pkgs.glfw ];
151 cl-glfw-opengl-core = super.cl-glfw-opengl-core.overrideLispAttrs (o: {
152 nativeLibs = [ pkgs.libGL ];
154 cl-glfw3 = super.cl-glfw3.overrideLispAttrs (o: {
155 nativeLibs = [ pkgs.glfw ];
157 lev = super.lev.overrideLispAttrs (o: {
158 nativeLibs = [ pkgs.libev ];
160 cl-rdkafka = super.cl-rdkafka.overrideLispAttrs (o: {
161 nativeBuildInputs = [ pkgs.rdkafka ];
162 nativeLibs = [ pkgs.rdkafka ];
164 cl-async-ssl = super.cl-async-ssl.overrideLispAttrs (o: {
165 nativeLibs = [ pkgs.openssl ];
167 iolib = super.iolib.overrideLispAttrs (o: {
168 nativeBuildInputs = [ pkgs.libfixposix ];
169 nativeLibs = [ pkgs.libfixposix ];
170 systems = [ "iolib" "iolib/os" "iolib/pathnames" ];
172 cl-ana_dot_hdf-cffi = super.cl-ana_dot_hdf-cffi.overrideLispAttrs (o: {
173 nativeBuildInputs = [ pkgs.hdf5 ];
174 nativeLibs = [ pkgs.hdf5 ];
175 NIX_LDFLAGS = [ "-lhdf5" ];
177 gsll = super.gsll.overrideLispAttrs (o: {
178 nativeBuildInputs = [ pkgs.gsl ];
179 nativeLibs = [ pkgs.gsl ];
181 cl-libyaml = super.cl-libyaml.overrideLispAttrs (o: {
182 nativeLibs = [ pkgs.libyaml ];
184 cl-libxml2 = super.cl-libxml2.overrideLispAttrs (o: {
185 nativeLibs = [ pkgs.libxml2 ];
187 cl-readline = super.cl-readline.overrideLispAttrs (o: {
188 nativeLibs = [ pkgs.readline ];
190 md5 = super.md5.overrideLispAttrs (o: {
191 lispLibs = [ super.flexi-streams ];
193 pzmq = super.pzmq.overrideLispAttrs (o: {
194 nativeBuildInputs = [ pkgs.zeromq ];
195 nativeLibs = [ pkgs.zeromq ];
197 pzmq-compat = super.pzmq-compat.overrideLispAttrs (o: {
198 nativeBuildInputs = [ pkgs.zeromq ];
199 nativeLibs = [ pkgs.zeromq ];
201 pzmq-examples = super.pzmq-examples.overrideLispAttrs (o: {
202 nativeBuildInputs = [ pkgs.zeromq ];
203 nativeLibs = [ pkgs.zeromq ];
205 pzmq-test = super.pzmq-test.overrideLispAttrs (o: {
206 nativeBuildInputs = [ pkgs.zeromq ];
207 nativeLibs = [ pkgs.zeromq ];
209 cl-git = super.cl-git.overrideLispAttrs (o: {
210 nativeLibs = [ pkgs.libgit2 ];
212 trivial-package-manager = super.trivial-package-manager.overrideLispAttrs (o: {
213 propagatedBuildInputs = [ pkgs.which ];
215 cl-sat_dot_glucose = super.cl-sat_dot_glucose.overrideLispAttrs (o: {
216 propagatedBuildInputs = [ pkgs.glucose ];
217 patches = [ ./patches/cl-sat-binary-from-path.patch ];
219 cl-sat_dot_minisat = super.cl-sat_dot_minisat.overrideLispAttrs (o: {
220 propagatedBuildInputs = [ pkgs.minisat ];
222 hu_dot_dwim_dot_graphviz = super.hu_dot_dwim_dot_graphviz.overrideLispAttrs (o: {
223 nativeLibs = [ pkgs.graphviz ];
225 math = super.math.overrideLispAttrs (o: {
226 patches = [ ./patches/math-no-compile-time-directory.patch ];
227 nativeLibs = [ pkgs.fontconfig ];
229 mcclim-fonts = super.mcclim-fonts.overrideLispAttrs (o: {
230 lispLibs = o.lispLibs ++ [
237 systems = [ "mcclim-fonts" "mcclim-fonts/truetype" ];
239 mcclim-render = super.mcclim-render.overrideLispAttrs (o: {
240 lispLibs = o.lispLibs ++ [
244 mcclim-layouts = super.mcclim-layouts.overrideLispAttrs (o: {
245 systems = [ "mcclim-layouts" "mcclim-layouts/tab" ];
246 lispLibs = o.lispLibs ++ [
250 cl-charms = super.cl-charms.overrideLispAttrs (o: {
251 nativeLibs = [ pkgs.ncurses ];
253 libusb-ffi = super.libusb-ffi.overrideLispAttrs (o: {
254 nativeLibs = [ pkgs.libusb-compat-0_1 ];
256 jpeg-turbo = super.jpeg-turbo.overrideLispAttrs (o: {
257 nativeLibs = [ pkgs.libjpeg_turbo ];
259 vorbisfile-ffi = super.vorbisfile-ffi.overrideLispAttrs (o: {
260 nativeLibs = [ pkgs.libvorbis ];
262 png = super.png.overrideLispAttrs (o: {
263 nativeLibs = [ pkgs.libpng ];
265 zmq = super.zmq.overrideLispAttrs (o: {
266 nativeLibs = [ pkgs.czmq ];
268 consfigurator = super.consfigurator.overrideLispAttrs (o: {
269 nativeLibs = [ pkgs.acl pkgs.libcap ];
271 cl-gss = super.cl-gss.overrideLispAttrs (o: {
272 nativeLibs = [ pkgs.libkrb5 ];
274 magicffi = super.magicffi.overrideLispAttrs (o: {
275 nativeLibs = [ pkgs.file ];
277 keystone = super.keystone.overrideLispAttrs (o: {
278 nativeLibs = [ pkgs.keystone ];
280 capstone = super.capstone.overrideLispAttrs (o: {
281 nativeLibs = [ pkgs.capstone ];
283 vk = super.vk.overrideLispAttrs (o: {
284 nativeLibs = [ pkgs.vulkan-loader ];
286 _3d-math = super._3d-math.overrideLispAttrs (o: {
287 flags = o.flags ++ (if o.program == "sbcl" then [ "--dynamic-space-size 4096" ] else [ ]);
292 lib.optionalAttrs (builtins.pathExists ./imported.nix)
293 (pkgs.callPackage ./imported.nix { inherit build-asdf-system; });
295 in qlpkgs.overrideScope overrides