Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 83 lines
Nix
at llvm-cleanup
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, stdenv, rustPlatform, fetchFromGitHub, autoconf, automake, bison, ruby, zlib, readline, libiconv, libobjc, libunwind, libxcrypt, libyaml, Foundation, Security}:
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 ] ++ lib.optionals stdenv.isDarwin [ readline libiconv libobjc libunwind Foundation Security ];
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 ];
cargoHash = "sha256-QZ26GmsKyENkzdCGg2peie/aJhEt7KQAF/lwsibonDk=";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-fdeclspec";
preFixup = '' mv $out/bin/rubyfmt{-main,} '';
meta = with lib; { description = "A Ruby autoformatter"; homepage = "https://github.com/fables-tales/rubyfmt"; license = licenses.mit; maintainers = with maintainers; [ bobvanderlinden ]; # = note: Undefined symbols for architecture x86_64: # "_utimensat", referenced from: # _utime_internal in librubyfmt-3c969812b3b27083.rlib(file.o) broken = stdenv.isDarwin && stdenv.isx86_64; mainProgram = "rubyfmt"; };}