mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
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)
26 lines
423 B
Nix
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}
|
|
'';
|
|
|
|
}
|