From 1ebe012b091e5c59549ed2b4cf41bf43f679ce74 Mon Sep 17 00:00:00 2001 From: Sean Gillespie Date: Mon, 2 Dec 2024 16:43:19 -0500 Subject: [PATCH] fix: Use dynamic ruby even in static variants (#174) * fix: Use dynamic ruby even in static variants * doc: Explain why we're using dynamic ruby --- flake.nix | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index fef4206..3da2430 100644 --- a/flake.nix +++ b/flake.nix @@ -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: #