depot/third_party/nixpkgs/pkgs/by-name/lu/lune/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

58 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
cmake,
}:
rustPlatform.buildRustPackage rec {
pname = "lune";
version = "0.8.9";
src = fetchFromGitHub {
owner = "filiptibell";
repo = "lune";
rev = "v${version}";
hash = "sha256-KZt3w+nhJjz3ZLtLzJz0zpFTwQ28OmFWnCsLbo36Ryc=";
fetchSubmodules = true;
};
useFetchCargoVendor = true;
cargoHash = "sha256-oOz7r/5NTzdNbVvO2erWlWR0f0fH7HWBo9LVkZN65pU=";
nativeBuildInputs = [
pkg-config
cmake # required for libz-ng-sys
];
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''
rm .cargo/config.toml
'';
checkFlags = [
# require internet access
"--skip=tests::net_socket_basic"
"--skip=tests::net_request_codes"
"--skip=tests::net_request_compression"
"--skip=tests::net_request_methods"
"--skip=tests::net_request_query"
"--skip=tests::net_request_redirect"
"--skip=tests::net_socket_wss"
"--skip=tests::net_socket_wss_rw"
"--skip=tests::roblox_instance_custom_async"
"--skip=tests::serde_json_decode"
# uses root as the CWD
"--skip=tests::process_spawn_cwd"
];
meta = with lib; {
description = "Standalone Luau script runtime";
mainProgram = "lune";
homepage = "https://github.com/lune-org/lune";
changelog = "https://github.com/lune-org/lune/blob/${src.rev}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [ lammermann ];
};
}