From 54cbb5ae5d267a2a77b790d1044e7d219683e26d Mon Sep 17 00:00:00 2001 From: xenofem Date: Fri, 16 Sep 2022 21:31:57 -0400 Subject: [PATCH] backport in-review gemConfig for sqlite3 1.5.0 --- flake.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index 44d08fd..df6b046 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,16 @@ lockfile = ./Gemfile.lock; gemset = ./gemset.nix; ignoreCollisions = true; + gemConfig = pkgs.defaultGemConfig // { + sqlite3 = attrs: { + nativeBuildInputs = [ pkgs.pkg-config pkgs.sqlite.dev ]; + buildInputs = [ pkgs.sqlite.out ]; + buildFlags = [ + "--enable-system-libraries" + "--with-pkg-config=${pkgs.pkg-config}/bin/pkg-config" + ]; + }; + }; }; in rec { packages.x86_64-linux = rec {