From 965fbcc419f4ffa49f96481e8e15c849c1643472 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Thu, 12 Nov 2015 09:51:39 -0300 Subject: [PATCH] elisp-ffi: init at git 2014-11-03 --- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/emacs-packages.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ddf2f907ebca..ad16c59ab87f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11503,7 +11503,7 @@ let external = { inherit (haskellPackages) ghc-mod structured-haskell-mode Agda; inherit (pythonPackages) elpy; - inherit rtags; + inherit rtags libffi; }; }; diff --git a/pkgs/top-level/emacs-packages.nix b/pkgs/top-level/emacs-packages.nix index d36100ab5668..1a8812dde78f 100644 --- a/pkgs/top-level/emacs-packages.nix +++ b/pkgs/top-level/emacs-packages.nix @@ -99,6 +99,30 @@ let self = _self // overrides; }; }; + elisp-ffi = melpaBuild rec { + pname = "elisp-ffi-git"; + version = "20141103"; + src = fetchFromGitHub { + owner = "skeeto"; + repo = "elisp-ffi"; + rev = "eb3d826d68ace9f9a41515ab3820376c0d141634"; + sha256 = "0w7r56qf2h8wgfs81fc9k8w8949kf2djyhsh8p12dk365nm11n2s"; + }; + buildInputs = [ external.libffi ]; + preBuild = "make"; + files = [ "ffi-glue" "ffi.el" ]; + meta = { + description = "Emacs Lisp Foreign Function Interface"; + longDescription = '' + This library provides an FFI for Emacs Lisp so that Emacs + programs can invoke functions in native libraries. It works by + driving a subprocess to do the heavy lifting, passing result + values on to Emacs. + ''; + license = publicDomain; + }; + }; + agda2-mode = with external; trivialBuild { pname = "agda-mode"; version = Agda.version;