{ lib , stdenv , htslib , libsass , openssl , SDL2 }: # The following is list of overrides that take three arguments each: # - lockAttrs: - an attrset from a Nim lockfile, use this for making constraints on the locked library # - finalAttrs: - final arguments to the depender package # - prevAttrs: - preceding arguments to the depender package { jester = lockAttrs: finalAttrs: { buildInputs ? [ ], ... }: { buildInputs = buildInputs ++ [ openssl ]; }; hts = lockAttrs: finalAttrs: { buildInputs ? [ ], ... }: { buildInputs = buildInputs ++ [ htslib ]; }; sass = lockAttrs: finalAttrs: { buildInputs ? [ ], ... }: { buildInputs = buildInputs ++ [ libsass ]; }; sdl2 = lockAttrs: finalAttrs: { buildInputs ? [ ], ... }: { buildInputs = buildInputs ++ [ SDL2 ]; }; zippy = lockAttrs: finalAttrs: { nimFlags ? [ ], ... }: { nimFlags = nimFlags ++ lib.optionals stdenv.hostPlatform.isx86_64 [ "--passC:-msse4.1" "--passC:-mpclmul" ]; }; }