Skip to content

Commit

Permalink
Merge pull request NixOS#226643 from DamienCassou/emacs-sqlite3
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienCassou authored Apr 17, 2023
2 parents 25345ef + 5bf1f8f commit d8e9135
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down

0 comments on commit d8e9135

Please sign in to comment.