1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ depot, pkgs, ... }:

let
  # Shared deps for the modernc.org/sqlite driver components
  sharedDeps = import ../go-deps.nix { inherit depot pkgs; };

in
rec {
  # modernc.org/sqlite — pure-Go SQLite driver (no cgo), used for the DM
  # thread index. Its transitive deps have to be listed explicitly.
  inherit (sharedDeps) modernc-sqlite modernc-libc modernc-mathutil modernc-memory;
  inherit (sharedDeps) dustin-go-humanize remyoudompheng-bigfft;

  # golang.org/x/image — image processing (JPEG decode/encode, resize)
  golang-x-image = depot.nix.buildGo.external {
    path = "golang.org/x/image";
    src = pkgs.fetchFromGitHub {
      owner = "golang";
      repo = "image";
      rev = "v0.37.0";
      sha256 = "sha256-EIs07Dfmnvtf2OQg6XmCNImySAFwZqLpfmJsm+N/McM=";
    };
  };
}