Merge pull request #226643 from DamienCassou/emacs-sqlite3

This commit is contained in:
Damien Cassou 2023-04-17 17:36:02 +02:00 committed by GitHub
commit d8e913532b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -341,6 +341,28 @@ let
};
});
sqlite3 = super.sqlite3.overrideAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.sqlite ];
postBuild = ''
pushd working/sqlite3
make
popd
'';
postInstall = (old.postInstall or "") + "\n" + ''
pushd source
outd=$out/share/emacs/site-lisp/elpa/sqlite3-*
install -m444 -t $outd sqlite3-api.so
rm $outd/*.c $outd/*.h
popd
'';
meta = old.meta // {
maintainers = [ lib.maintainers.DamienCassou ];
};
});
libgit = super.libgit.overrideAttrs(attrs: {
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ pkgs.cmake ];
buildInputs = attrs.buildInputs ++ [ pkgs.libgit2 ];