From 8267f10cc1a117bf194c3e17578f387b94a12efe Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 31 Jul 2022 16:44:29 -0700 Subject: [PATCH] Update makefile to only patchelf on NixOS --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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