Skip to content

Commit e592d72

Browse files
committed
fix: Static ruby
1 parent 59a6cd4 commit e592d72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

flake.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@
3838
cbor-diag = final.callPackage ./pkgs/cbor-diag { };
3939
cddl = final.callPackage ./pkgs/cddl { };
4040
});
41+
42+
tools = (final: prev: {
43+
ruby = prev.ruby.overrideAttrs (old: {
44+
# Fix the following error on musl64 Ruby:
45+
#
46+
# error: output '/nix/store/6hyyk9wnnxpd5rsr6ivc0s8l1lgvsjrb-ruby-x86_64-unknown-linux-musl-3.3.4'
47+
# is not allowed to refer to the following paths:
48+
# /nix/store/c77wdd4fb0llq37bpmfr73m7s7r1j068-ruby-3.3.4
49+
#
50+
# See https://github.com/NixOS/nixpkgs/issues/347758
51+
postInstall = old.postInstall + ''
52+
find $out/${old.passthru.gemPath} -name exts.mk -delete
53+
'';
54+
});
55+
});
4156
};
4257
supportedSystems = [
4358
"x86_64-linux"

0 commit comments

Comments
 (0)