c05c4995ab
Changes: * updated keycloak configuration for new version * migrate to emacs28 outside of //users, re-add emacs27 but with a warning attached urging people to migrate Change-Id: I3e5765a63934541f72f6c4a8673d3b4671850c93 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5501 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: wpcarro <wpcarro@gmail.com>
20 lines
442 B
Nix
20 lines
442 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
{ name, src, deps ? (_: [ ]), emacs ? pkgs.emacs28-nox }:
|
|
|
|
let
|
|
inherit (pkgs) emacsPackages emacsPackagesFor;
|
|
inherit (builtins) isString toFile;
|
|
|
|
finalEmacs = (emacsPackagesFor emacs).emacsWithPackages deps;
|
|
|
|
srcFile =
|
|
if isString src
|
|
then toFile "${name}.el" src
|
|
else src;
|
|
|
|
in
|
|
depot.nix.writeScriptBin name ''
|
|
#!/bin/sh
|
|
${finalEmacs}/bin/emacs --batch --no-site-file --script ${srcFile} $@
|
|
''
|