Remove EmacsClient app
This commit is contained in:
parent
ce715cd218
commit
daf9fb91a2
|
@ -1,17 +0,0 @@
|
||||||
PATH="/usr/bin:/bin"
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p "${out}/Applications"
|
|
||||||
appOut="${out}/Applications/${appName}.app"
|
|
||||||
|
|
||||||
osacompile -o "${appOut}" <<EOF
|
|
||||||
do shell script "env -i XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} ${emacs}/bin/emacsclient -n --create-frame -e '(x-focus-frame (selected-frame))' --alternate-editor=''"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cp "${icon}" "${appOut}/Contents/Resources/EmacsClient.icns"
|
|
||||||
chmod 644 "${appOut}/Contents/Resources/EmacsClient.icns"
|
|
||||||
|
|
||||||
plutil -replace CFBundleIconFile -json '"EmacsClient"' "${appOut}/Contents/Info.plist"
|
|
||||||
plutil -replace CFBundleDisplayName -json '"EmacsClient"' "${appOut}/Contents/Info.plist"
|
|
||||||
|
|
15
mac.nix
15
mac.nix
|
@ -1,18 +1,5 @@
|
||||||
{ pkgs, xdg-runtime-dir, emacs, ... }:
|
{ pkgs, xdg-runtime-dir, emacs, ... }:
|
||||||
let
|
{
|
||||||
appName = "EmacsClient";
|
|
||||||
icon = "${emacs}/Applications/Emacs.app/Contents/Resources/Emacs.icns";
|
|
||||||
|
|
||||||
emacsclient = pkgs.stdenv.mkDerivation {
|
|
||||||
name = appName;
|
|
||||||
src = ./. ;
|
|
||||||
installPhase = ./emacs_build.sh;
|
|
||||||
XDG_RUNTIME_DIR = xdg-runtime-dir;
|
|
||||||
inherit emacs appName icon;
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
home.packages = [ emacsclient ];
|
|
||||||
|
|
||||||
# Swap right keys (command, shift and alt) at login
|
# Swap right keys (command, shift and alt) at login
|
||||||
launchd.agents.swap-keys = {
|
launchd.agents.swap-keys = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user