diff --git a/pkgs/by-name/ru/rustfinity/package.nix b/pkgs/by-name/ru/rustfinity/package.nix new file mode 100644 index 000000000000..c3db2c136a21 --- /dev/null +++ b/pkgs/by-name/ru/rustfinity/package.nix @@ -0,0 +1,41 @@ +{ + 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"; + }; +}