mistral-rs: 0.3.1 -> 0.3.2 (#352064)

This commit is contained in:
Gaétan Lepage 2024-10-29 21:19:56 +01:00 committed by GitHub
commit 347cbac985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 412 additions and 310 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,8 @@
# env
fetchurl,
versionCheckHook,
testers,
mistral-rs,
nix-update-script,
@ -81,20 +83,20 @@ in
rustPlatform.buildRustPackage rec {
pname = "mistral-rs";
version = "0.3.1";
version = "0.3.2";
src = fetchFromGitHub {
owner = "EricLBuehler";
repo = "mistral.rs";
rev = "refs/tags/v${version}";
hash = "sha256-ljGr8V6WkpXPV90SiHJ0t7wzBPx0J0FOB52YdLLIeoM=";
hash = "sha256-aflzpJZ48AFBqNTssZl2KxkspQb662nGkEU6COIluxk=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bindgen_cuda-0.1.6" = "sha256-OWGcQxT+x5HyIFskNVWpPr6Qfkh6Mv/g4PVSm5oA27g=";
"candle-core-0.6.1" = "sha256-AtKjMTtbMBI2DbZXoWimhqcHmsz2DnRXJorqA0QYNHw=";
"candle-core-0.7.2" = "sha256-OovBzD1gEYToa3HT8oQtbY6sDy0heRwAH2cK7gz5Jm0=";
};
};
@ -179,6 +181,13 @@ rustPlatform.buildRustPackage rec {
"--skip=util::tests::test_parse_image_url"
];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgram = "${placeholder "out"}/bin/mistralrs-server";
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
tests = {
version = testers.testVersion { package = mistral-rs; };