at 23.11-beta 734 B view raw
1{ lib 2, stdenv 3, rustPlatform 4, fetchFromGitHub 5, pkg-config 6, openssl 7, Security 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "aoc-cli"; 12 version = "0.12.0"; 13 14 src = fetchFromGitHub { 15 owner = "scarvalhojr"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-UdeCKhEWr1BjQ6OMLP19OLWPlvvP7FGAO+mi+bQUPQA="; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 23 buildInputs = [ openssl ] 24 ++ lib.optional stdenv.isDarwin Security; 25 26 cargoHash = "sha256-EluP4N3UBQeEKVdHTs4O0THXji+nAyE52nGKsxA3AA4="; 27 28 meta = with lib; { 29 description = "Advent of code command line tool"; 30 homepage = "https://github.com/scarvalhojr/aoc-cli/"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ jordanisaacs ]; 33 }; 34}