From b936188ce8f3bb81b4c3329bfe1c5d2a92ad5170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 31 Mar 2008 12:22:39 +0000 Subject: [PATCH] Add Quack, an Emacs mode for Scheme. svn path=/nixpkgs/trunk/; revision=11388 --- .../editors/emacs-modes/quack/builder.sh | 7 ++++++ .../editors/emacs-modes/quack/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 33 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/quack/builder.sh create mode 100644 pkgs/applications/editors/emacs-modes/quack/default.nix diff --git a/pkgs/applications/editors/emacs-modes/quack/builder.sh b/pkgs/applications/editors/emacs-modes/quack/builder.sh new file mode 100644 index 000000000000..a3b1bcfd8052 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/quack/builder.sh @@ -0,0 +1,7 @@ +source "$stdenv/setup" || exit 1 + +emacsDir="$out/share/emacs/site-lisp" + +ensureDir "$emacsDir" && \ +cp "$src" "$emacsDir/quack.el" && \ +emacs --batch -f batch-byte-compile "$emacsDir/quack.el" diff --git a/pkgs/applications/editors/emacs-modes/quack/default.nix b/pkgs/applications/editors/emacs-modes/quack/default.nix new file mode 100644 index 000000000000..d95e11095399 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/quack/default.nix @@ -0,0 +1,22 @@ +{ fetchurl, stdenv, emacs }: + +stdenv.mkDerivation { + name = "quack-0.30"; + + src = fetchurl { + # XXX: Upstream URL is not versioned, which might eventually break this. + url = "http://www.neilvandyke.org/quack/quack.el"; + sha256 = "1j68azxbc54hdk3cw9q95qpz99wgj9xxgrzzwmydxh3zafy5faqs"; + }; + + buildInputs = [ emacs ]; + + builder = ./builder.sh; + + meta = { + description = ''Quack: Enhanced Emacs Support for Editing and + Running Scheme Code''; + homepage = http://www.neilvandyke.org/quack/; + license = "GPLv2+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6ae71cc2ec9e..337bf80bf2fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5427,6 +5427,10 @@ let pkgs = rec { qemuImage = qemuImageFun null; + quack = import ../applications/editors/emacs-modes/quack { + inherit fetchurl stdenv emacs; + }; + ratpoison = import ../applications/window-managers/ratpoison { inherit fetchurl stdenv fontconfig readline; inherit (xlibs) libX11 inputproto libXt libXpm libXft