nixpkgs/pkgs/tools/misc/aoc-cli/default.nix

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

35 lines
734 B
Nix
Raw Normal View History

2022-12-02 22:21:32 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "aoc-cli";
2023-01-16 07:29:20 +00:00
version = "0.12.0";
2022-12-02 22:21:32 +00:00
src = fetchFromGitHub {
owner = "scarvalhojr";
repo = pname;
rev = version;
2023-01-16 07:29:20 +00:00
hash = "sha256-UdeCKhEWr1BjQ6OMLP19OLWPlvvP7FGAO+mi+bQUPQA=";
2022-12-02 22:21:32 +00:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin Security;
2023-01-16 07:29:20 +00:00
cargoHash = "sha256-EluP4N3UBQeEKVdHTs4O0THXji+nAyE52nGKsxA3AA4=";
2022-12-02 22:21:32 +00:00
meta = with lib; {
description = "Advent of code command line tool";
homepage = "https://github.com/scarvalhojr/aoc-cli/";
license = licenses.mit;
maintainers = with maintainers; [ jordanisaacs ];
};
}