Browse Source

emacsPackagesNg.emacsql-sqlite: Build sqlite binary

othernimblestuff
Elis Hirwing 2 years ago
parent
commit
ce60bca7c2
No known key found for this signature in database GPG Key ID: D57EFA625C9A925F
  1. 17
      pkgs/applications/editors/emacs-modes/melpa-packages.nix

17
pkgs/applications/editors/emacs-modes/melpa-packages.nix

@ -73,6 +73,23 @@ env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../ -A emacsPac
propagatedUserEnvPkgs = old.propagatedUserEnvPkgs ++ [ external.elpy ];
});
emacsql-sqlite = super.emacsql-sqlite.overrideAttrs(old: {
buildInputs = old.buildInputs ++ [ pkgs.sqlite ];
postBuild = ''
cd source/sqlite
make
cd -
'';
postInstall = ''
install -m=755 -D source/sqlite/emacsql-sqlite \
$out/share/emacs/site-lisp/elpa/emacsql-sqlite-${old.version}/sqlite/emacsql-sqlite
'';
stripDebugList = [ "share" ];
});
evil-magit = super.evil-magit.overrideAttrs (attrs: {
# searches for Git at build time
nativeBuildInputs =

Loading…
Cancel
Save