about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/emacs2nix.nix
blob: c2ea756a06eae7f1a8aac6def7f5f720c218939d (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
let
  pkgs = import ../../../../.. { };

  src = pkgs.fetchgit {
    url = "https://github.com/nix-community/emacs2nix.git";
    fetchSubmodules = true;
    rev = "703b144eeb490e87133c777f82e198b4e515c312";
    sha256 = "sha256-YBbRh/Cb8u9+Pn6/Bc0atI6knKVjr8jiTGgFkD2FNGI=";
  };
in
pkgs.mkShell {

  packages = [
    pkgs.bash
  ];

  EMACS2NIX = src;

  shellHook = ''
    export PATH=$PATH:${src}
  '';

}