corrosion: 0.4.7 -> 0.4.8

Diff: https://github.com/corrosion-rs/corrosion/compare/v0.4.7...v0.4.8

Changelog: https://github.com/corrosion-rs/corrosion/blob/v0.4.8/RELEASES.md

+22 -13
+22 -13
pkgs/development/tools/build-managers/corrosion/default.nix
··· 3 3 , fetchFromGitHub 4 4 , cargo 5 5 , cmake 6 - , rustPlatform 7 6 , rustc 8 7 , libiconv 9 8 }: 10 9 11 10 stdenv.mkDerivation rec { 12 11 pname = "corrosion"; 13 - version = "0.4.7"; 12 + version = "0.4.8"; 14 13 15 14 src = fetchFromGitHub { 16 15 owner = "corrosion-rs"; 17 16 repo = "corrosion"; 18 17 rev = "v${version}"; 19 - hash = "sha256-6jjcBBc1gtMG2sYppOIRa/tYjmUgW4kFxAuoGj7Tpgw="; 20 - }; 21 - 22 - cargoRoot = "generator"; 23 - 24 - cargoDeps = rustPlatform.fetchCargoTarball { 25 - inherit src; 26 - sourceRoot = "${src.name}/${cargoRoot}"; 27 - name = "${pname}-${version}"; 28 - hash = "sha256-M5Wnx+SfVvdhC5bHVZa0Di2up3Qt5z1jog8yxIKvG/Y="; 18 + hash = "sha256-ChoeN7qQRR1YmYYvPdJVJ2SVGTDGlM7PsN9jzFjQEyU="; 29 19 }; 30 20 31 21 buildInputs = lib.optional stdenv.isDarwin libiconv; 32 22 33 23 nativeBuildInputs = [ 34 24 cmake 35 - rustPlatform.cargoSetupHook 36 25 cargo 37 26 rustc 38 27 ]; 28 + 29 + doCheck = true; 30 + 31 + checkPhase = let 32 + excludedTests = [ 33 + "cbindgen_rust2cpp_build" 34 + "cbindgen_rust2cpp_run_cpp-exe" 35 + "hostbuild_build" 36 + "hostbuild_run_rust-host-program" 37 + "parse_target_triple_build" 38 + "rustup_proxy_build" 39 + ]; 40 + excludedTestsRegex = lib.concatStringsSep "|" excludedTests; 41 + in '' 42 + runHook preCheck 43 + 44 + ctest -E "${excludedTestsRegex}" 45 + 46 + runHook postCheck 47 + ''; 39 48 40 49 meta = with lib; { 41 50 description = "Tool for integrating Rust into an existing CMake project";