From a5663aee4d387f388916eb20cd5b5e72cdf5e6e3 Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Tue, 21 Aug 2012 10:33:20 +0200 Subject: [PATCH] emacs: add "sunrise commander" --- .../emacs-modes/sunrise-commander/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/editors/emacs-modes/sunrise-commander/default.nix diff --git a/pkgs/applications/editors/emacs-modes/sunrise-commander/default.nix b/pkgs/applications/editors/emacs-modes/sunrise-commander/default.nix new file mode 100644 index 00000000000..c15ff6afcb2 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/sunrise-commander/default.nix @@ -0,0 +1,32 @@ +{stdenv, fetchurl, emacs}: + +stdenv.mkDerivation rec { + name = "sunrise-commander-6"; + + src = fetchurl { + url = "http://www.emacswiki.org/emacs/download/sunrise-commander.el"; + sha256 = "1bbpm00nc7ry0f2k4zaqbvp6w9py31asfcr9hddggc138pnfajvq"; + }; + + phases = [ "buildPhase" "installPhase"]; + + buildInputs = [ emacs ]; + + buildPhase = '' + cp $src sunrise-commander.el + emacs --batch -f batch-byte-compile sunrise-commander.el + ''; + + installPhase = '' + install -d $out/share/emacs/site-lisp + install sunrise-commander.el* $out/share/emacs/site-lisp + ''; + + meta = { + description = "Two-pane file manager for Emacs based on Dired and inspired by MC."; + homepage = http://www.emacswiki.org/emacs/Sunrise_Commander; + license = "GPLv3+"; + + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e7ccf6fcd19..485f28f1d9c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6758,6 +6758,8 @@ let rudel = callPackage ../applications/editors/emacs-modes/rudel { }; scalaMode = callPackage ../applications/editors/emacs-modes/scala-mode { }; + + sunriseCommander = callPackage ../applications/editors/emacs-modes/sunrise-commander { }; }; emacs22Packages = emacsPackages emacs22 pkgs.emacs22Packages;