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