7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
35 lines
772 B
Nix
35 lines
772 B
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, openssl
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "aoc-cli";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scarvalhojr";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-UdeCKhEWr1BjQ6OMLP19OLWPlvvP7FGAO+mi+bQUPQA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin Security;
|
|
|
|
cargoHash = "sha256-EluP4N3UBQeEKVdHTs4O0THXji+nAyE52nGKsxA3AA4=";
|
|
|
|
meta = with lib; {
|
|
description = "Advent of code command line tool";
|
|
homepage = "https://github.com/scarvalhojr/aoc-cli/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jordanisaacs ];
|
|
mainProgram = "aoc";
|
|
};
|
|
}
|