Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
845 B
Nix
Raw Permalink Normal View History

2024-12-07 16:54:10 +01:00
{
lib,
rustPlatform,
fetchCrate,
2025-01-26 20:01:33 +01:00
versionCheckHook,
2024-12-07 16:54:10 +01:00
nix-update-script,
}:
2025-02-22 11:25:42 +01:00
rustPlatform.buildRustPackage (finalAttrs: {
2024-12-07 16:54:10 +01:00
pname = "cargo-aoc";
version = "0.3.8";
src = fetchCrate {
2025-02-22 11:25:42 +01:00
inherit (finalAttrs) pname version;
2024-12-07 16:54:10 +01:00
hash = "sha256-5CjY91515GeLzmLJiGjfbBfIMPr32EA65X/rriKPWRY=";
};
cargoHash = "sha256-q0kpo6DNR+8129+vJSLoOC/bUYjlfaB77YTht6+kT00=";
2024-12-07 16:54:10 +01:00
2025-01-26 20:01:33 +01:00
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
2024-12-07 16:54:10 +01:00
meta = {
description = "Simple CLI tool that aims to be a helper for Advent of Code";
homepage = "https://github.com/gobanos/cargo-aoc";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ defelo ];
mainProgram = "cargo-aoc";
};
2025-02-22 11:25:42 +01:00
})