about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs-modes/xml-rpc/default.nix
blob: 661430516b700d6117de8251eb55e66fa6f90cac (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
{stdenv, fetchurl, emacs}:

stdenv.mkDerivation rec {
  name = "xml-rpc-1.6.8";

  src = fetchurl {
    url = https://launchpadlibrarian.net/40270196/xml-rpc.el;
    sha256 = "0i8hf90yhrjwqrv7q1f2g1cff6ld8apqkka42fh01wkdys1fbm7b";
  };

  phases = [ "buildPhase" "installPhase"];

  buildInputs = [ emacs ];

  buildPhase = ''
    cp $src xml-rpc.el
    emacs --batch -f batch-byte-compile xml-rpc.el
  '';

  installPhase = ''
    install -d $out/share/emacs/site-lisp
    install xml-rpc.el* $out/share/emacs/site-lisp
  '';

  meta = {
    description = "Elisp implementation of clientside XML-RPC";
    homepage = https://launchpad.net/xml-rpc-el;
    license = stdenv.lib.licenses.gpl3Plus;

    platforms = stdenv.lib.platforms.all;
  };
}