17 rust-jemalloc-sys-unprefixed,
22 rustPlatform.buildRustPackage rec {
26 src = fetchFromGitHub {
27 owner = "fables-tales";
30 hash = "sha256-IIHPU6iwFwQ5cOAtOULpMSjexFtTelSd/LGLuazdmUo=";
31 fetchSubmodules = true;
46 rust-jemalloc-sys-unprefixed
48 ++ lib.optionals stdenv.hostPlatform.isDarwin [
58 pushd librubyfmt/ruby_checkout
59 autoreconf --install --force --verbose
65 # Avoid checking whether ruby gitsubmodule is up-to-date.
66 ./0002-remove-dependency-on-git.patch
67 # Avoid failing on unused variable warnings.
68 ./0003-ignore-warnings.patch
71 cargoHash = "sha256-QZ26GmsKyENkzdCGg2peie/aJhEt7KQAF/lwsibonDk=";
73 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-fdeclspec";
76 mv $out/bin/rubyfmt{-main,}
80 description = "Ruby autoformatter";
81 homepage = "https://github.com/fables-tales/rubyfmt";
82 license = lib.licenses.mit;
83 maintainers = with lib.maintainers; [ bobvanderlinden ];
84 broken = stdenv.hostPlatform.isDarwin;
85 mainProgram = "rubyfmt";