2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2023-02-02 18:25:31 +00:00
|
|
|
, darwin
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
let
|
2024-01-25 14:12:00 +00:00
|
|
|
inherit (darwin.apple_sdk.frameworks) CoreServices SystemConfiguration;
|
2023-02-02 18:25:31 +00:00
|
|
|
in
|
2022-07-18 16:21:45 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rojo";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "7.4.4";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rojo-rbx";
|
|
|
|
repo = "rojo";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-5jiqR3gn3X+klcYr1zTEB9omxWwHKQNLKCVXhry1jjY=";
|
2022-07-18 16:21:45 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-J5297V6cHyWZYRyTTKM0V71QoHdHidtQCoAbQ2IoJrc=";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-02-02 18:25:31 +00:00
|
|
|
CoreServices
|
2024-01-25 14:12:00 +00:00
|
|
|
SystemConfiguration
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
# reqwest's native-tls-vendored feature flag uses vendored openssl. this disables that
|
|
|
|
OPENSSL_NO_VENDOR = "1";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# tests flaky on darwin on hydra
|
2024-09-26 11:04:55 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Project management tool for Roblox";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "rojo";
|
2022-07-18 16:21:45 +00:00
|
|
|
longDescription = ''
|
|
|
|
Rojo is a tool designed to enable Roblox developers to use professional-grade software engineering tools.
|
|
|
|
'';
|
|
|
|
homepage = "https://rojo.space";
|
|
|
|
downloadPage = "https://github.com/rojo-rbx/rojo/releases/tag/v${version}";
|
|
|
|
changelog = "https://github.com/rojo-rbx/rojo/raw/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ wackbyte ];
|
|
|
|
};
|
|
|
|
}
|