summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/sunrise-commander/default.nix
blob: 8e29fd48c833c94feba3ca50f29c680ca6908f51 (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
33
34
35
36
37
38
39
40
41
42
{ lib
, stdenv
, fetchFromGitHub
, emacs
}:

stdenv.mkDerivation rec {
  pname = "sunrise-commander";
  version = "0.0.0-unstable=2021-04-23";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "db880fbea03d2db00db1398c91918c3c6f0392e3";
    hash = "sha256-IGHCKYQaGUapaA9vxq0xO58KCpBPOiQpHqrEaHK0usE=";
  };

  buildInputs = [
    emacs
  ];

  buildPhase = ''
    runHook preBuild
    emacs -q --no-splash --directory=. --batch --file=batch-byte-compile *.el
    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/emacs/site-lisp
    install *.el* $out/share/emacs/site-lisp
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/sunrise-commander/sunrise-commander/";
    description = "Orthodox (two-pane) file manager for Emacs";
    license = licenses.gpl3Plus;
    maintainers = [ maintainers.AndersonTorres ];
    platforms = platforms.all;
  };
}