Loading pkgs/by-name/dp/dprint/package.nix +7 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "dprint"; version = "0.50.0"; version = "0.50.1"; # Prefer repository rather than crate here # - They have Cargo.lock in the repository Loading @@ -20,16 +20,20 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "dprint"; repo = "dprint"; tag = finalAttrs.version; hash = "sha256-6AgbKH5f7N/yYqq7KBVHOqYbyuZkjFSaYwZwIXsgd9o="; hash = "sha256-Lt6CzSzppu5ULhzYN5FTCWtWK3AA4/8jRzXgQkU4Tco="; }; useFetchCargoVendor = true; cargoHash = "sha256-OnrsuVK1gEDweldq+P8lDkkrHjklsG8MRpM0wqWsdlM="; cargoHash = "sha256-1opQaR3vbm/DpDY5oQ1VgA4nf0nCBknxfgOSPZQbtV4="; nativeBuildInputs = lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ installShellFiles ]; # Avoiding "Undefined symbols" such as "___unw_remove_find_dynamic_unwind_sections" since dprint 0.50.1 # Adding "libunwind" in buildInputs did not resolve it. env.RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-args=-Wl,-undefined,dynamic_lookup"; cargoBuildFlags = [ "--package=dprint" # Required only for dprint package tests; the binary is removed in postInstall. Loading Loading
pkgs/by-name/dp/dprint/package.nix +7 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "dprint"; version = "0.50.0"; version = "0.50.1"; # Prefer repository rather than crate here # - They have Cargo.lock in the repository Loading @@ -20,16 +20,20 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "dprint"; repo = "dprint"; tag = finalAttrs.version; hash = "sha256-6AgbKH5f7N/yYqq7KBVHOqYbyuZkjFSaYwZwIXsgd9o="; hash = "sha256-Lt6CzSzppu5ULhzYN5FTCWtWK3AA4/8jRzXgQkU4Tco="; }; useFetchCargoVendor = true; cargoHash = "sha256-OnrsuVK1gEDweldq+P8lDkkrHjklsG8MRpM0wqWsdlM="; cargoHash = "sha256-1opQaR3vbm/DpDY5oQ1VgA4nf0nCBknxfgOSPZQbtV4="; nativeBuildInputs = lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ installShellFiles ]; # Avoiding "Undefined symbols" such as "___unw_remove_find_dynamic_unwind_sections" since dprint 0.50.1 # Adding "libunwind" in buildInputs did not resolve it. env.RUSTFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-C link-args=-Wl,-undefined,dynamic_lookup"; cargoBuildFlags = [ "--package=dprint" # Required only for dprint package tests; the binary is removed in postInstall. Loading