Skip to content

Commit 1ebe012

Browse files
authored
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
1 parent 2655e6c commit 1ebe012

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

flake.nix

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,9 @@
4040
});
4141

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

5647
# Tests on static postgresql are failing with:
5748
#

0 commit comments

Comments
 (0)