diff options
-rw-r--r-- | pkgs/applications/editors/emacs/modes/haskell/builder.sh | 6 | ||||
-rw-r--r-- | pkgs/applications/editors/emacs/modes/haskell/default.nix | 8 | ||||
-rw-r--r-- | pkgs/system/all-packages-generic.nix | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/modes/haskell/builder.sh b/pkgs/applications/editors/emacs/modes/haskell/builder.sh new file mode 100644 index 000000000000..fff90a5d69cd --- /dev/null +++ b/pkgs/applications/editors/emacs/modes/haskell/builder.sh @@ -0,0 +1,6 @@ +. $stdenv/setup + +mkdir -p $out/emacs/site-lisp +tar zxvf $src +cp haskell-mode*/*.el $out/emacs/site-lisp +cp haskell-mode*/*.hs $out/emacs/site-lisp diff --git a/pkgs/applications/editors/emacs/modes/haskell/default.nix b/pkgs/applications/editors/emacs/modes/haskell/default.nix new file mode 100644 index 000000000000..33a29ae7ddef --- /dev/null +++ b/pkgs/applications/editors/emacs/modes/haskell/default.nix @@ -0,0 +1,8 @@ +{stdenv, fetchurl}: stdenv.mkDerivation { + name = "haskell-mode-1.45"; + builder = ./builder.sh; + src = fetchurl { + url = http://www.haskell.org/haskell-mode/haskell-mode-1.45.tar.gz; + md5 = "c609998580cdb9ca8888c7d47d22ca3b"; + }; +} diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 984bd27aa34a..c4ec648e8b61 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -916,6 +916,10 @@ rec { inherit fetchurl stdenv; }; + haskellMode = (import ../applications/editors/emacs/modes/haskell) { + inherit fetchurl stdenv; + }; + nano = (import ../applications/editors/nano) { inherit fetchurl stdenv ncurses; }; |