Loading pkgs/development/tools/rubyfmt/0003-ignore-warnings.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line diff --git i/librubyfmt/build.rs w/librubyfmt/build.rs index 296b749..941a4ca 100644 --- i/librubyfmt/build.rs +++ w/librubyfmt/build.rs @@ -166,6 +166,7 @@ fn run_configure(ruby_checkout_path: &Path) -> Output { command .arg("--target=aarch64-unknown-linux-gnu") .arg("--host=x86_64") + .arg("--disable-werror") .env("CC", "aarch64-linux-gnu-gcc") .env("AR", "aarch64-linux-gnu-ar") .env("RANLIB", "aarch64-linux-gnu-ranlib"); diff --git i/librubyfmt/src/lib.rs w/librubyfmt/src/lib.rs index 9b94b5f..b78e99f 100644 --- i/librubyfmt/src/lib.rs +++ w/librubyfmt/src/lib.rs @@ -1,4 +1,3 @@ -#![deny(warnings, missing_copy_implementations)] #![allow(clippy::upper_case_acronyms, clippy::enum_variant_names)] use serde::de::value; No newline at end of file pkgs/development/tools/rubyfmt/default.nix +3 −6 Original line number Diff line number Diff line Loading @@ -61,6 +61,8 @@ rustPlatform.buildRustPackage rec { 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-QZ26GmsKyENkzdCGg2peie/aJhEt7KQAF/lwsibonDk="; Loading @@ -76,12 +78,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/fables-tales/rubyfmt"; license = licenses.mit; maintainers = with maintainers; [ bobvanderlinden ]; # https://github.com/NixOS/nixpkgs/issues/320722 broken = true # = note: Undefined symbols for architecture x86_64: # "_utimensat", referenced from: # _utime_internal in librubyfmt-3c969812b3b27083.rlib(file.o) || stdenv.isDarwin && stdenv.isx86_64; broken = stdenv.isDarwin && stdenv.isx86_64; mainProgram = "rubyfmt"; }; } Loading
pkgs/development/tools/rubyfmt/0003-ignore-warnings.patch 0 → 100644 +21 −0 Original line number Diff line number Diff line diff --git i/librubyfmt/build.rs w/librubyfmt/build.rs index 296b749..941a4ca 100644 --- i/librubyfmt/build.rs +++ w/librubyfmt/build.rs @@ -166,6 +166,7 @@ fn run_configure(ruby_checkout_path: &Path) -> Output { command .arg("--target=aarch64-unknown-linux-gnu") .arg("--host=x86_64") + .arg("--disable-werror") .env("CC", "aarch64-linux-gnu-gcc") .env("AR", "aarch64-linux-gnu-ar") .env("RANLIB", "aarch64-linux-gnu-ranlib"); diff --git i/librubyfmt/src/lib.rs w/librubyfmt/src/lib.rs index 9b94b5f..b78e99f 100644 --- i/librubyfmt/src/lib.rs +++ w/librubyfmt/src/lib.rs @@ -1,4 +1,3 @@ -#![deny(warnings, missing_copy_implementations)] #![allow(clippy::upper_case_acronyms, clippy::enum_variant_names)] use serde::de::value; No newline at end of file
pkgs/development/tools/rubyfmt/default.nix +3 −6 Original line number Diff line number Diff line Loading @@ -61,6 +61,8 @@ rustPlatform.buildRustPackage rec { 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-QZ26GmsKyENkzdCGg2peie/aJhEt7KQAF/lwsibonDk="; Loading @@ -76,12 +78,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/fables-tales/rubyfmt"; license = licenses.mit; maintainers = with maintainers; [ bobvanderlinden ]; # https://github.com/NixOS/nixpkgs/issues/320722 broken = true # = note: Undefined symbols for architecture x86_64: # "_utimensat", referenced from: # _utime_internal in librubyfmt-3c969812b3b27083.rlib(file.o) || stdenv.isDarwin && stdenv.isx86_64; broken = stdenv.isDarwin && stdenv.isx86_64; mainProgram = "rubyfmt"; }; }