mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Update makefile to only patchelf on NixOS
This commit is contained in:
2
Makefile
2
Makefile
@ -6,7 +6,7 @@ init:
|
|||||||
# Slightly cursed way that we setup a dev version of this locally on NixOS.
|
# Slightly cursed way that we setup a dev version of this locally on NixOS.
|
||||||
dev/install:
|
dev/install:
|
||||||
zig build -Dcpu=baseline
|
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
|
mkdir -p ${HOME}/bin
|
||||||
cp zig-out/bin/ghostty ${HOME}/bin/devtty
|
cp zig-out/bin/ghostty ${HOME}/bin/devtty
|
||||||
.PHONY: dev/install
|
.PHONY: dev/install
|
||||||
|
Reference in New Issue
Block a user