ox: 0.7.2 -> 0.7.6 and refactor (#367688)

This commit is contained in:
Donovan Glover
2024-12-30 11:30:15 +00:00
committed by GitHub
+16 -12
View File
@@ -1,31 +1,32 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
testers,
versionCheckHook,
nix-update-script,
ox,
}:
rustPlatform.buildRustPackage rec {
pname = "ox";
version = "0.7.2";
version = "0.7.6";
src = fetchFromGitHub {
owner = "curlpipe";
repo = pname;
rev = version;
hash = "sha256-yAToibHhvHAry7WVZ5uD84CbUTp06RyZ9J12/2deM1I=";
tag = version;
hash = "sha256-kTCdq3C0OUQS3tQRwEJ0+MTHZ8j2nnUARjdbmfH6ed4=";
};
cargoHash = "sha256-YAy5vCxcHUL0wM9+Y3GDqV/V1utL3V05heT92/zQ/X8=";
cargoHash = "sha256-GiKSkpXEngQtnGW8zjy2RWQOG1b/xQrYRSLHsndkooo=";
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
versionCheckProgramArg = [ "--version" ];
passthru = {
tests.version = testers.testVersion {
package = ox;
};
updateScript = nix-update-script { };
};
@@ -34,7 +35,10 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/curlpipe/ox";
changelog = "https://github.com/curlpipe/ox/releases/tag/${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ moni ];
maintainers = with maintainers; [
moni
kachick
];
mainProgram = "ox";
};
}