Skip to content

Commit

Permalink
fix: Use dynamic ruby even in static variants (#174)
Browse files Browse the repository at this point in the history
* fix: Use dynamic ruby even in static variants

* doc: Explain why we're using dynamic ruby
  • Loading branch information
sgillespie authored Dec 2, 2024
1 parent 2655e6c commit 1ebe012
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,9 @@
});

musl = (final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isMusl {
# Fix the following Ruby cross build error:
#
# error: output '/nix/store/6hyyk9wnnxpd5rsr6ivc0s8l1lgvsjrb-ruby-x86_64-unknown-linux-musl-3.3.4'
# is not allowed to refer to the following paths:
# /nix/store/c77wdd4fb0llq37bpmfr73m7s7r1j068-ruby-3.3.4
#
# See https://github.com/NixOS/nixpkgs/issues/347758
ruby = prev.ruby.overrideAttrs (old: {
postInstall = old.postInstall + ''
find $out/${old.passthru.gemPath} -name exts.mk -delete
'';
});
# We don't need a ruby static build. We're only interested in producing static
# outputs, not necessarily build tools.
ruby = prev.pkgsBuildBuild.ruby;

# Tests on static postgresql are failing with:
#
Expand Down

0 comments on commit 1ebe012

Please sign in to comment.