{ lib, rustPlatform, fetchFromGitHub, nix-update-script, pkg-config, openssl, stdenv, darwin, }: rustPlatform.buildRustPackage rec { pname = "jikken"; version = "0.8.0"; src = fetchFromGitHub { owner = "jikkenio"; repo = "jikken"; rev = "v${version}"; hash = "sha256-e1n5Q1bF/n9ELA93ucdaIeXx3LPhd7cWkLxWRRdGlo4="; }; cargoHash = "sha256-DALY88q5xsjnoaGJxnVWx/5v4yE80+HNGT/vdFdzkXk="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk_11_0.frameworks.IOKit darwin.apple_sdk_11_0.frameworks.Security darwin.apple_sdk_11_0.frameworks.SystemConfiguration ]; passthru.updateScript = nix-update-script { }; meta = with lib; { description = "Powerful, source control friendly REST API testing toolkit"; homepage = "https://jikken.io/"; changelog = "https://github.com/jikkenio/jikken/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ vinnymeller ]; mainProgram = "jk"; }; }