diff --git a/pkgs/applications/editors/emacs-modes/php/builder.sh b/pkgs/applications/editors/emacs-modes/php/builder.sh new file mode 100644 index 000000000000..85c448480571 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/php/builder.sh @@ -0,0 +1,7 @@ +source $stdenv/setup + +mkdir -p $out/share/emacs/site-lisp +cd $out/share/emacs/site-lisp +tar xvfz $src +mv php-mode-*/* . +rmdir php-mode-* diff --git a/pkgs/applications/editors/emacs-modes/php/default.nix b/pkgs/applications/editors/emacs-modes/php/default.nix new file mode 100644 index 000000000000..ec160dccd9fb --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/php/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation rec { + name = "php-mode-1.5.0"; + + src = fetchurl { + url = "http://downloads.sourceforge.net/php-mode/${name}.tar.gz"; + sha256 = "1bffgg4rpiggxqc1hvjcby24sfyzj5728zg7r6f4v6a126a7kcfq"; + }; + + builder = ./builder.sh; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51c2c99aeba1..330cb08659f6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5652,6 +5652,8 @@ let # we want it to have higher precedence. org = hiPrio (callPackage ../applications/editors/emacs-modes/org { }); + phpMode = callPackage ../applications/editors/emacs-modes/php { }; + prologMode = callPackage ../applications/editors/emacs-modes/prolog { }; proofgeneral = callPackage ../applications/editors/emacs-modes/proofgeneral { };