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