Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ lib, stdenv, rustPlatform, fetchFromGitHub, autoconf, automake, bison, ruby, zlib, readline, libiconv, libunwind, libxcrypt, libyaml, rust-jemalloc-sys-unprefixed,}:
rustPlatform.buildRustPackage rec { pname = "rubyfmt"; version = "0.10.0";
src = fetchFromGitHub { owner = "fables-tales"; repo = "rubyfmt"; rev = "v${version}"; hash = "sha256-IIHPU6iwFwQ5cOAtOULpMSjexFtTelSd/LGLuazdmUo="; fetchSubmodules = true; };
nativeBuildInputs = [ autoconf automake bison ruby ];
buildInputs = [ zlib libxcrypt libyaml rust-jemalloc-sys-unprefixed ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ readline libiconv libunwind ];
preConfigure = '' pushd librubyfmt/ruby_checkout autoreconf --install --force --verbose ./configure popd '';
cargoPatches = [ # Avoid checking whether ruby gitsubmodule is up-to-date. ./0002-remove-dependency-on-git.patch # Avoid failing on unused variable warnings. ./0003-ignore-warnings.patch ];
cargoHash = "sha256-8LgAHznxU30bbK8ivNamVD3Yi2pljgpqJg2WC0nxftk=";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-fdeclspec";
preFixup = '' mv $out/bin/rubyfmt{-main,} '';
meta = { description = "Ruby autoformatter"; homepage = "https://github.com/fables-tales/rubyfmt"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bobvanderlinden ]; broken = stdenv.hostPlatform.isDarwin; mainProgram = "rubyfmt"; };}