From 8eb6ecb1ec98423bd859c4f794ae15badfcc1997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 9 Feb 2009 08:34:25 +0000 Subject: [PATCH] Add EIEIO, a CLOS clone for Emacs. svn path=/nixpkgs/trunk/; revision=14011 --- .../editors/emacs-modes/eieio/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/eieio/default.nix diff --git a/pkgs/applications/editors/emacs-modes/eieio/default.nix b/pkgs/applications/editors/emacs-modes/eieio/default.nix new file mode 100644 index 000000000000..bbe4c6085acb --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/eieio/default.nix @@ -0,0 +1,38 @@ +{ fetchurl, stdenv, emacs }: + +stdenv.mkDerivation rec { + name = "eieio-0.17"; + + src = fetchurl { + url = "mirror://sourceforge/cedet/${name}.tar.gz"; + sha256 = "0n31z9d47ar10g9xrnzz3nl4pmixw1nkk0kpxaillls7xvjd1zy2"; + }; + + buildInputs = [ emacs ]; + + doCheck = false; + checkPhase = "make test"; + + installPhase = '' + ensureDir "$out/share/emacs/site-lisp" + cp -v *.el *.elc "$out/share/emacs/site-lisp" + chmod a-x "$out/share/emacs/site-lisp/"* + + ensureDir "$out/share/info" + cp -v *.info* "$out/share/info" + ''; + + meta = { + description = "EIEIO: Enhanced Implementation of Emacs Interpreted Objects"; + + longDescription = '' + EIEIO is a package which implements a CLOS subset for Emacs. It + includes examples which can draw simple tree graphs, and bar + charts. + ''; + + license = "GPLv2+"; + + homepage = http://cedet.sourceforge.net/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4d43baef412a..fe3a51f8e2cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -691,6 +691,10 @@ let inherit fetchurl stdenv cdrkit m4; }; + eieio = import ../applications/editors/emacs-modes/eieio { + inherit fetchurl stdenv emacs; + }; + enscript = import ../tools/text/enscript { inherit fetchurl stdenv; };