summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-07-31 16:44:29 -0700
committerMitchell Hashimoto <mitchell.hashimoto@gmail.com>2022-07-31 16:44:29 -0700
commit8267f10cc1a117bf194c3e17578f387b94a12efe (patch)
tree83d17a59fc2a9d70041e5c665094200ab1cf5c4e /Makefile
parentd614da2435f8b003e502faf6c9eba9804db79541 (diff)
Update makefile to only patchelf on NixOS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 52dfca242..2557f92a4 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ init:
# Slightly cursed way that we setup a dev version of this locally on NixOS.
dev/install:
zig build -Dcpu=baseline
- patchelf --set-rpath "${LD_LIBRARY_PATH}" zig-out/bin/ghostty
+ if [ -f "/etc/NIXOS" ]; then patchelf --set-rpath "${LD_LIBRARY_PATH}" zig-out/bin/ghostty; fi
mkdir -p ${HOME}/bin
cp zig-out/bin/ghostty ${HOME}/bin/devtty
.PHONY: dev/install