Update makefile to only patchelf on NixOS

pull/2/head
Mitchell Hashimoto 2022-07-31 16:44:29 -07:00
parent d614da2435
commit 8267f10cc1
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 1 additions and 1 deletions

View File

@ -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