2024-05-04 21:44:05 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
2023-05-21 00:32:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "darklua";
|
2024-05-19 00:47:37 +00:00
|
|
|
version = "0.13.1";
|
2023-05-21 00:32:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seaofvoices";
|
|
|
|
repo = "darklua";
|
|
|
|
rev = "v${version}";
|
2024-05-19 00:47:37 +00:00
|
|
|
hash = "sha256-cabYENU4U+KisfXbiXcWojQM/nwzcVvM3QpYWOX7NtQ=";
|
2023-05-21 00:32:00 +00:00
|
|
|
};
|
|
|
|
|
2024-05-19 00:47:37 +00:00
|
|
|
cargoHash = "sha256-fYx+SQdQMnNSygr0/Y4zEPtqfQPZYmQUq3ndi1HlXuE=";
|
2023-10-08 04:29:41 +00:00
|
|
|
|
2024-05-04 21:44:05 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];
|
2023-05-21 00:32:00 +00:00
|
|
|
|
|
|
|
# error: linker `aarch64-linux-gnu-gcc` not found
|
|
|
|
postPatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Command line tool that transforms Lua code";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "darklua";
|
2023-05-21 00:32:00 +00:00
|
|
|
homepage = "https://darklua.com";
|
|
|
|
changelog = "https://github.com/seaofvoices/darklua/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tomodachi94 ];
|
|
|
|
};
|
|
|
|
}
|