1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "darklua";
9 version = "0.16.0";
10
11 src = fetchFromGitHub {
12 owner = "seaofvoices";
13 repo = "darklua";
14 rev = "v${version}";
15 hash = "sha256-D83cLJ6voLvgZ51qLoCUzBG83VFB3Y7HxuaZHpaiOn4=";
16 };
17
18 cargoHash = "sha256-DQkj4t+l6FJnJQ+g96CXypssbRzHbS6X9AOG0LGDclg=";
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}