mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-17 02:19:30 +03:00
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
This commit is contained in:
parent
8930706d7a
commit
6d02782ebf
@ -3,40 +3,49 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cargo
|
, cargo
|
||||||
, cmake
|
, cmake
|
||||||
, rustPlatform
|
|
||||||
, rustc
|
, rustc
|
||||||
, libiconv
|
, libiconv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "corrosion";
|
pname = "corrosion";
|
||||||
version = "0.4.7";
|
version = "0.4.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "corrosion-rs";
|
owner = "corrosion-rs";
|
||||||
repo = "corrosion";
|
repo = "corrosion";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-6jjcBBc1gtMG2sYppOIRa/tYjmUgW4kFxAuoGj7Tpgw=";
|
hash = "sha256-ChoeN7qQRR1YmYYvPdJVJ2SVGTDGlM7PsN9jzFjQEyU=";
|
||||||
};
|
|
||||||
|
|
||||||
cargoRoot = "generator";
|
|
||||||
|
|
||||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
||||||
inherit src;
|
|
||||||
sourceRoot = "${src.name}/${cargoRoot}";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
hash = "sha256-M5Wnx+SfVvdhC5bHVZa0Di2up3Qt5z1jog8yxIKvG/Y=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
rustPlatform.cargoSetupHook
|
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
checkPhase = let
|
||||||
|
excludedTests = [
|
||||||
|
"cbindgen_rust2cpp_build"
|
||||||
|
"cbindgen_rust2cpp_run_cpp-exe"
|
||||||
|
"hostbuild_build"
|
||||||
|
"hostbuild_run_rust-host-program"
|
||||||
|
"parse_target_triple_build"
|
||||||
|
"rustup_proxy_build"
|
||||||
|
];
|
||||||
|
excludedTestsRegex = lib.concatStringsSep "|" excludedTests;
|
||||||
|
in ''
|
||||||
|
runHook preCheck
|
||||||
|
|
||||||
|
ctest -E "${excludedTestsRegex}"
|
||||||
|
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool for integrating Rust into an existing CMake project";
|
description = "Tool for integrating Rust into an existing CMake project";
|
||||||
homepage = "https://github.com/corrosion-rs/corrosion";
|
homepage = "https://github.com/corrosion-rs/corrosion";
|
||||||
|
Loading…
Reference in New Issue
Block a user