Unverified Commit 902c823a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

rustfinity: init at 0.2.13 (#360239)

parents 302d3d79 4b5fd880
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  rustPlatform,
  fetchCrate,
  pkg-config,
  openssl,
}:
rustPlatform.buildRustPackage rec {
  pname = "rustfinity";
  version = "0.2.13";

  src = fetchCrate {
    inherit pname version;
    hash = "sha256-yBWhY4Uta/K/Ka5DzhpZUiv0Y3Yfn4dI4ZARpJqTqY8=";
  };

  cargoHash = "sha256-jeV4R9UwKF5ZW2AZl/WZE2KTMGCzX4/dpP8uUIUD3CI=";

  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];

  OPENSSL_NO_VENDOR = 1;

  # Requires network and fs access
  checkFlags = [
    "--skip=challenge::tests::test_challenge_exists"
    "--skip=crates_io::tests::test_get_latest_version"
    "--skip=dir::tests::test_get_current_dir"
    "--skip=download::tests::download_file::test_downloads_file"
    "--skip=download::tests::download_file::test_renames_starter"
  ];

  meta = {
    description = "CLI for Rustfinity challenges solving";
    homepage = "https://github.com/dcodesdev/rustfinity.com/tree/main/crates/cli";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ nartsiss ];
    mainProgram = "rustfinity";
  };
}