# nix-custom-sqlite This repository contains a collection of nix expressions that make it easy to compile a custom version of SQLite. Customizations include things such as: - Toggling compile-time features. - Adding external plugins, either baking them in statically or using dynamic linking. - Cross-compiling for various architectures. ### Example usage ```nix { inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.nix-sqlite = "git+https://git.pvv.ntnu.no/mugiten/nix-custom-sqlite.git?ref=main"; inputs.nix-sqlite.inputs.nixpkgs.follows = "nixpkgs"; outputs = { self, nixpkgs, nix-sqlite }: { devshells.x86_64-linux.default = let pkgs = nixpkgs.legacyPackages.x86_64-linux; customSqlite = nix-sqlite.mkSqlite { # This lets you specify which `pkgs` instance to build from pkgs = pkgs; # This is particularly useful if you want to build a cross-compiled sqlite: # pkgs = import nixpkgs { # allowUnfree = true; # localSystem = "x86_64-linux"; # crossSystem = lib.systems.examples.aarch64-android-prebuilt; # }; # By default, we toggle on a bunch of `ENABLE_