nixpkgs/pkgs/applications/editors/emacs/elisp-packages/emacs2nix.nix
Silvan Mosberger d1a4769b38 treewide: nixfmt-rfc-style -> nixfmt
Except:
- Instances in documentation, because people in older versions
  can't switch to nixfmt yet due to it having pointed to nixfmt-classic
  before
- In code that runs based on a CI Nixpkgs version, which is also a bit
  older still
- In update script shebangs, because many of them don't pin Nixpkgs, and run
  with whatever is in NIX_PATH (and it's not easy to fix this, see
  https://github.com/NixOS/nixpkgs/issues/425551)
2025-07-15 22:14:18 +02:00

26 lines
423 B
Nix

let
pkgs = import ../../../../.. { };
src = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "emacs2nix";
rev = "9458961fc433a6c4cd91e7763f0aa1ef15f7b4aa";
hash = "sha256-NJVKrYSF/22hrUJNJ3/znbcfHi/FtTePQ8Xzfp2eKAk=";
fetchSubmodules = true;
};
in
pkgs.mkShell {
packages = [
pkgs.bash
pkgs.nixfmt
];
EMACS2NIX = src;
shellHook = ''
export PATH=$PATH:${src}
'';
}