about summary refs log tree commit diff
path: root/overrides/writeElispBin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-12-01T12·16+0100
committertazjin <mail@tazj.in>2020-12-01T12·55+0000
commit87f1e15baa5491dcfd1b66102909d1ba1b75c175 (patch)
tree4a89e3736c25811236c4acf1221d5d86b64d348e /overrides/writeElispBin
parent6c08bcc84d51fd5a1a5152b3c611df44c93a3f00 (diff)
chore(writeElispBin): Move from //overrides to //nix r/1971
... some legacy cleanup ...

Change-Id: I9e73451256f842e75ddbf1382badaf06c775c755
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2212
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'overrides/writeElispBin')
-rw-r--r--overrides/writeElispBin/default.nix18
1 files changed, 0 insertions, 18 deletions
diff --git a/overrides/writeElispBin/default.nix b/overrides/writeElispBin/default.nix
deleted file mode 100644
index 1b3ba054430b..000000000000
--- a/overrides/writeElispBin/default.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{ depot, pkgs, ... }:
-
-{ name, src, deps ? (_: []), emacs ? pkgs.emacs26-nox }:
-
-let
-  inherit (pkgs) emacsPackages emacsPackagesGen;
-  inherit (builtins) isString toFile;
-
-  finalEmacs = (emacsPackagesGen 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} $@
-''