🏡 index : ~doyle/rgit.git

author Jordan Doyle <jordan@doyle.la> 2025-01-07 3:06:46.0 +07:00:00
committer Jordan Doyle <jordan@doyle.la> 2025-01-07 3:06:46.0 +07:00:00
commit
507eaf4f805b53c5f073f683d60a7bedac7daae0 [patch]
tree
c6621a6d513c9e19678b84bfd5a28e7ca9c9d55a
parent
6da532458d7d6c15435d5d79c9616fc57efb15a0
download
507eaf4f805b53c5f073f683d60a7bedac7daae0.tar.gz

Only set install_name on Darwin



Diff

 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
      '';