aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs/packages/emacs-batch-indent/package.nix
blob: 92042af07a85d381b38e92f8381a12c0d3db409b (plain)
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 }:

stdenv.mkDerivation rec {

  name = "emacs-batch-indent";
  version = "145e8771b9709a82e3df82cdc06c6d9505de905d";
  url = "https://github.com/cwfoo/emacs-batch-indent";

  src = fetchgit {
    inherit url;
    rev = version;
    sha256 = "sha256-Qqg/ZLbfTZnH2aO7ZW2XiiVBqEvK2+LMo2Kz6HSnOCE=";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    runHook preInstall
    mkdir --parents $out/bin
    cp emacs-batch-indent $out/bin
    runHook postInstall
  '';

  meta = with lib; {
    homepage = url;
    license = licenses.gpl3;
    platforms = platforms.linux;
    description = "Indent Common Lisp, Emacs Lisp, and Scheme from the command line using Emacs.";
  };
}