From 507eaf4f805b53c5f073f683d60a7bedac7daae0 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Tue, 07 Jan 2025 03:06:46 +0700 Subject: [PATCH] Only set install_name on Darwin --- grammars.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars.nix b/grammars.nix index 7436389..59223bc 100644 --- a/grammars.nix +++ a/grammars.nix @@ -90,7 +90,7 @@ fi $CC -c src/parser.c -o parser.o $FLAGS - $CXX -shared -install_name $out/$NAME.so -o $NAME.so *.o + $CXX -shared${lib.optionalString stdenv.isDarwin " -install_name $out/$NAME.so"} -o $NAME.so *.o runHook postBuild ''; -- rgit 0.1.4