1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "darklua";
9 version = "0.17.1";
10
11 src = fetchFromGitHub {
12 owner = "seaofvoices";
13 repo = "darklua";
14 rev = "v${version}";
15 hash = "sha256-Jcq6zZ0KaDHXkIapPd38BR+ikVQAha3Bq5HuPEnKV0o=";
16 };
17
18 cargoHash = "sha256-yF+h7IiirvLw3WqqyCmcXbRa+fnsOpHrrmxkwl4lIG4=";
19
20 # error: linker `aarch64-linux-gnu-gcc` not found
21 postPatch = ''
22 rm .cargo/config.toml
23 '';
24
25 meta = with lib; {
26 description = "Command line tool that transforms Lua code";
27 mainProgram = "darklua";
28 homepage = "https://darklua.com";
29 changelog = "https://github.com/seaofvoices/darklua/blob/${src.rev}/CHANGELOG.md";
30 license = licenses.mit;
31 maintainers = with maintainers; [ tomodachi94 ];
32 };
33}