{
  buildGoApplication,
  modules,
  sqlite-lib,
  src,
}:
buildGoApplication {
  pname = "spindle";
  version = "1.16.0-alpha";
  inherit src modules;

  doCheck = false;

  subPackages = ["cmd/spindle"];
  tags = ["libsqlite3"];

  env.CGO_CFLAGS = "-I ${sqlite-lib}/include ";
  env.CGO_LDFLAGS = "-L ${sqlite-lib}/lib";
  CGO_ENABLED = 1;
}
