Skip to content

Commit

Permalink
Fix buildIdris on non-macos machines (#3195)
Browse files Browse the repository at this point in the history
* Fix `buildIdris` on non-macos machines

We build the support library as its own derivation for Nix builds so we do not want to copy it as part of the `buildIdris` install phase and we certainly don't want to wrap it as if it were an executable.

* Update nix/buildIdris.nix
  • Loading branch information
mattpolzin committed Jan 19, 2024
1 parent c4f99a8 commit d34cf62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nix/buildIdris.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ in rec {
chmod +x $out/bin/*
else
cd build/exec/*_app
rm -f ./libidris2_support.so
for file in *.so; do
bin_name="''${file%.so}"
mv -- "$file" "$out/bin/$bin_name"
Expand Down

0 comments on commit d34cf62

Please sign in to comment.