emacs.pkgs.melpaStablepackages.emacsql: Add sqlite as dependency

This commit is contained in:
Sebastian Wild 2023-02-24 11:14:40 +01:00
parent 7d0ed7f2e5
commit fba2ff4c5a
No known key found for this signature in database

View file

@ -177,6 +177,23 @@ let
dune = dontConfigure super.dune; dune = dontConfigure super.dune;
emacsql = super.emacsql.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.sqlite ];
postBuild = ''
cd source/sqlite
make
cd -
'';
postInstall = (old.postInstall or "") + "\n" + ''
install -m=755 -D source/sqlite/emacsql-sqlite \
$out/share/emacs/site-lisp/elpa/emacsql-${old.version}/sqlite/emacsql-sqlite
'';
stripDebugList = [ "share" ];
});
emacsql-sqlite = super.emacsql-sqlite.overrideAttrs (old: { emacsql-sqlite = super.emacsql-sqlite.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.sqlite ]; buildInputs = old.buildInputs ++ [ pkgs.sqlite ];