about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs-modes/sunrise-commander/default.nix
blob: 412ed59f2ac74dbbff70b9cf96565feee4a1368f (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
{ lib, stdenv, fetchgit, emacs }:

stdenv.mkDerivation {
  name = "sunrise-commander-6r435";

  src = fetchgit {
    url = "https://github.com/escherdragon/sunrise-commander.git";
    rev = "7a44ca7abd9fe79f87934c78d00dc2a91419a4f1";
    sha256 = "2909beccc9daaa79e70876ac6547088c2459b624c364dda1886fe4d7adc7708b";
  };

  buildInputs = [ emacs ];

  buildPhase = ''
    emacs -L . --batch -f batch-byte-compile *.el
  '';

  installPhase = ''
    mkdir -p $out/share/emacs/site-lisp
    install *.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 = lib.licenses.gpl3Plus;

    platforms = lib.platforms.all;
  };
}