Gaetan Lepage 2024-10-29 09:21:58 +01:00
parent a716850ef1
commit dd6b534eab
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; };