milahu / nixpkgs

Nix Packages collection
MIT License
1 stars 0 forks source link

sqlite: 3.44.2 -> 3.45.1, add branch reuse-schema #37

Open milahu opened 9 months ago

milahu commented 9 months ago

commits

related

ping maintainers: @edolstra @np


simplify sqlite.src and mkTool maybe the complexity was intentional? maybe a "source build" requires more buildInputs? tcl?

  version = "3.45.1";

  # nixpkgs-update: no auto update
  # NB! Make sure to update ./tools.nix src (in the same directory).
  src = fetchurl {
    url = "https://sqlite.org/2024/sqlite-autoconf-${archiveVersion version}.tar.gz";
    hash = "sha256-zZwnhBt6WTLJiXZR4guGxwHddAVWmJsByllvz6PUmgo=";
  };

versus

  inherit (versionAttrs) version;

  src = fetchSqliteTarball {
    inherit (versionAttrs) rev hash;
  };

add the reuse-schema branch this looks useful to split a large sqlite database across many files

for my case it does not work

sqlite> .shared-schema check "9600xxx.db" "9601xxx.db"
9600xxx.db is NOT compatible (objects)
9601xxx.db is NOT compatible (objects)

related