16 , rust-jemalloc-sys-unprefixed
21 rustPlatform.buildRustPackage rec {
25 src = fetchFromGitHub {
26 owner = "fables-tales";
29 hash = "sha256-IIHPU6iwFwQ5cOAtOULpMSjexFtTelSd/LGLuazdmUo=";
30 fetchSubmodules = true;
44 rust-jemalloc-sys-unprefixed
45 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
55 pushd librubyfmt/ruby_checkout
56 autoreconf --install --force --verbose
62 # Avoid checking whether ruby gitsubmodule is up-to-date.
63 ./0002-remove-dependency-on-git.patch
64 # Avoid failing on unused variable warnings.
65 ./0003-ignore-warnings.patch
68 cargoHash = "sha256-QZ26GmsKyENkzdCGg2peie/aJhEt7KQAF/lwsibonDk=";
70 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-fdeclspec";
73 mv $out/bin/rubyfmt{-main,}
77 description = "Ruby autoformatter";
78 homepage = "https://github.com/fables-tales/rubyfmt";
79 license = lib.licenses.mit;
80 maintainers = with lib.maintainers; [ bobvanderlinden ];
81 broken = stdenv.hostPlatform.isDarwin;
82 mainProgram = "rubyfmt";