{ lib, cedar, testers, rustPlatform, fetchFromGitHub, nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "cedar"; version = "4.5.1"; src = fetchFromGitHub { owner = "cedar-policy"; repo = "cedar"; tag = "v${version}"; hash = "sha256-f8d7KL1DzEfJqEJ5uwwOJCgePE/frOXIFcXuoybIp2U="; }; cargoHash = "sha256-MK6Zcpf12mGzntEv632kQjH7YOx31QBCmSJHxjE3l1c="; passthru = { tests.version = testers.testVersion { package = cedar; }; updateScript = nix-update-script { }; }; meta = { description = "Implementation of the Cedar Policy Language"; homepage = "https://github.com/cedar-policy/cedar"; changelog = "https://github.com/cedar-policy/cedar/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ meain ]; mainProgram = "cedar"; }; }