{ lib, rustPlatform, fetchFromGitHub, pkg-config, udev, zstd, stdenv, }: rustPlatform.buildRustPackage rec { pname = "argon"; version = "2.0.26"; src = fetchFromGitHub { owner = "argon-rbx"; repo = "argon"; tag = version; hash = "sha256-3IftPWrBETU7zJLaB9uTrc08c37XGmFPPArzrlIFG3Q="; }; cargoHash = "sha256-60BQ7PsKATq5jX5DqCGdOx3xvRzwm5TAM1RtKuPy49M="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ zstd ] ++ lib.optionals stdenv.hostPlatform.isLinux [ udev ]; env = { ZSTD_SYS_USE_PKG_CONFIG = true; }; meta = { description = "Full featured tool for Roblox development"; homepage = "https://github.com/argon-rbx/argon"; changelog = "https://github.com/argon-rbx/argon/blob/${src.rev}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ StayBlue ]; mainProgram = "argon"; }; }