@@ -1,30 +1,42 @@
1−{ lib, stdenv, fetchgit, emacs }:
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, emacs
5+}:
26
3−stdenv.mkDerivation {
4− name = "sunrise-commander-6r435";
7+stdenv.mkDerivation rec {
8+ pname = "sunrise-commander";
9+ version = "0.0.0-unstable=2021-04-23";
510
6− src = fetchgit {
7− url = "https://github.com/escherdragon/sunrise-commander.git";
8− rev = "7a44ca7abd9fe79f87934c78d00dc2a91419a4f1";
9− sha256 = "2909beccc9daaa79e70876ac6547088c2459b624c364dda1886fe4d7adc7708b";
11+ src = fetchFromGitHub {
12+ owner = pname;
13+ repo = pname;
14+ rev = "db880fbea03d2db00db1398c91918c3c6f0392e3";
15+ hash = "sha256-IGHCKYQaGUapaA9vxq0xO58KCpBPOiQpHqrEaHK0usE=";
1016 };
1117
12− buildInputs = [ emacs ];
18+ buildInputs = [
19+ emacs
20+ ];
1321
1422 buildPhase = ''
15− emacs -L . --batch -f batch-byte-compile *.el
23+ runHook preBuild
24+ emacs -q --no-splash --directory=. --batch --file=batch-byte-compile *.el
25+ runHook postBuild
1626 '';
1727
1828 installPhase = ''
29+ runHook preInstall
1930 mkdir -p $out/share/emacs/site-lisp
2031 install *.el* $out/share/emacs/site-lisp
32+ runHook postInstall
2133 '';
2234
23− meta = {
35+ meta = with lib; {
36+ homepage = "https://github.com/sunrise-commander/sunrise-commander/";
2437 description = "Two-pane file manager for Emacs based on Dired and inspired by MC";
25− homepage = "http://www.emacswiki.org/emacs/Sunrise_Commander";
26− license = lib.licenses.gpl3Plus;
27−
28− platforms = lib.platforms.all;
38+ license = licenses.gpl3Plus;
39+ maintainers = [ maintainers.AndersonTorres ];
40+ platforms = platforms.all;
2941 };
3042}