lol

rubyfmt: add support for macos arm64/x86

authored by bobvanderlinden.tngl.sh and committed by

Anderson Torres c3784eb9 6f53567a

+25 -1
+21
pkgs/development/tools/rubyfmt/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , rustPlatform 3 4 , fetchFromGitHub 4 5 , autoconf ··· 6 7 , bison 7 8 , ruby 8 9 , zlib 10 + , readline 11 + , libiconv 12 + , libobjc 13 + , libunwind 9 14 , libxcrypt 15 + , Foundation 16 + , Security 10 17 }: 11 18 12 19 rustPlatform.buildRustPackage rec { ··· 31 38 buildInputs = [ 32 39 zlib 33 40 libxcrypt 41 + ] ++ lib.optionals stdenv.isDarwin [ 42 + readline 43 + libiconv 44 + libobjc 45 + libunwind 46 + Foundation 47 + Security 34 48 ]; 49 + 50 + preConfigure = '' 51 + pushd librubyfmt/ruby_checkout 52 + autoreconf --install --force --verbose 53 + ./configure 54 + popd 55 + ''; 35 56 36 57 cargoPatches = [ 37 58 # The 0.8.1 release did not have an up-to-date lock file. The rubyfmt
+4 -1
pkgs/top-level/all-packages.nix
··· 17863 17863 17864 17864 rbenv = callPackage ../development/ruby-modules/rbenv { }; 17865 17865 17866 - rubyfmt = callPackage ../development/tools/rubyfmt { }; 17866 + rubyfmt = callPackage ../development/tools/rubyfmt { 17867 + inherit (darwin.apple_sdk.frameworks) Foundation Security; 17868 + inherit (darwin) libobjc; 17869 + }; 17867 17870 17868 17871 inherit (callPackage ../development/interpreters/ruby { 17869 17872 inherit (darwin) libobjc libunwind;