about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs-modes/quack/default.nix
blob: 95634a24ded4be99d33a6f7c79efb52a2ef52f2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ fetchurl, stdenv, emacs }:

stdenv.mkDerivation {
  name = "quack-0.39";

  src = fetchurl {
    # XXX: Upstream URL is not versioned, which might eventually break this.
    url = "http://www.neilvandyke.org/quack/quack.el";
    sha256 = "1q5bsllxkibiddwp32306flqm8s3caffnpbqz5ka260avllp4jj5";
  };

  buildInputs = [ emacs ];

  unpackPhase = "true";
  configurePhase = "true";
  installPhase = "true";

  buildPhase = ''
    emacsDir="$out/share/emacs/site-lisp"

    mkdir -p "$emacsDir"
    cp -v "$src" "$emacsDir/quack.el"
    emacs --batch -f batch-byte-compile "$emacsDir/quack.el"
  '';

  meta = {
    description = "Enhanced Emacs support for editing and running Scheme code";
    homepage = http://www.neilvandyke.org/quack/;
    license = stdenv.lib.licenses.gpl2Plus;
    maintainers = [ ];
  };
}