From e07423c1c28c23561d88f03f7175fbb1b3dd0169 Mon Sep 17 00:00:00 2001 From: Defelo Date: Sat, 7 Dec 2024 16:54:10 +0100 Subject: [PATCH] cargo-aoc: init at 0.3.8 --- pkgs/by-name/ca/cargo-aoc/package.nix | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-aoc/package.nix diff --git a/pkgs/by-name/ca/cargo-aoc/package.nix b/pkgs/by-name/ca/cargo-aoc/package.nix new file mode 100644 index 0000000000000..d71415c26a684 --- /dev/null +++ b/pkgs/by-name/ca/cargo-aoc/package.nix @@ -0,0 +1,35 @@ +{ + lib, + rustPlatform, + fetchCrate, + testers, + nix-update-script, + cargo-aoc, +}: +rustPlatform.buildRustPackage rec { + pname = "cargo-aoc"; + version = "0.3.8"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-5CjY91515GeLzmLJiGjfbBfIMPr32EA65X/rriKPWRY="; + }; + + cargoHash = "sha256-LhPsiO0Fnx9Tf+itaaVaO1XgqM00m+UQMlUJYY8isXY="; + + passthru = { + tests.version = testers.testVersion { package = cargo-aoc; }; + updateScript = nix-update-script { }; + }; + + 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"; + }; +}