tmc-cli: init at 1.1.2 (#422351)

This commit is contained in:
Paul Meyer
2025-07-10 10:10:21 +02:00
committed by GitHub
2 changed files with 47 additions and 0 deletions
+6
View File
@@ -9988,6 +9988,12 @@
githubId = 44377258;
name = "Heitor Augusto";
};
hekazu = {
name = "Henri Peurasaari";
email = "henri.peurasaari@helsinki.fi";
github = "hekazu";
githubId = 16819092;
};
helium = {
email = "helium.dev@tuta.io";
github = "helium18";
+41
View File
@@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
rustPlatform,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tmc-cli";
version = "1.1.2";
src = fetchFromGitHub {
owner = "rage";
repo = "tmc-cli-rust";
tag = "v${finalAttrs.version}";
hash = "sha256-C7X+XTOqquqf/W29+A4wUUl6aDZYLlc5XokkIOrCbp0=";
};
cargoHash = "sha256-2KoHKTN1Jvyvk9ravi0a9D+RIFYa1KmHLJQzKT2iP9A=";
nativeCheckInputs = [
writableTmpDirAsHomeHook
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
versionCheckProgramArg = "--version";
meta = {
description = "CLI for using the TestMyCode programming assignment evaluator";
homepage = "https://github.com/rage/tmc-cli-rust";
changelog = "https://github.com/rage/tmc-cli-rust/releases/tag/v${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hekazu ];
mainProgram = "tmc";
};
})