Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 27 lines 531 B view raw
1{ 2 runCommand, 3 emacs, 4 git, 5}: 6 7runCommand "test-emacs-withPackages-wrapper" 8 { 9 nativeBuildInputs = [ 10 (emacs.pkgs.withPackages ( 11 epkgs: with epkgs; [ 12 magit 13 flx-ido 14 ] 15 )) 16 git # needed by magit 17 ]; 18 } 19 '' 20 emacs --batch --eval="(require 'magit)" 21 22 emacs --batch --eval="(require 'flx-ido)" 23 # transitive dependencies should be made available 24 # https://github.com/NixOS/nixpkgs/issues/388829 25 emacs --batch --eval="(require 'flx)" 26 touch $out 27 ''