Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 885 B view raw
1{ lib 2, stdenv 3, darwin 4, rustPlatform 5, fetchFromGitHub 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "darklua"; 10 version = "0.11.0"; 11 12 src = fetchFromGitHub { 13 owner = "seaofvoices"; 14 repo = "darklua"; 15 rev = "v${version}"; 16 hash = "sha256-lBnEMQqAUkr377aYNRvpbIyZMmB6NIY/bmB1Oe8QPIM="; 17 }; 18 19 cargoHash = "sha256-YmtOVS58I8YdNpWBXBuwSFUVKQsVSuGlql70SPFkamM="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 darwin.apple_sdk.frameworks.CoreServices 23 ]; 24 25 26 # error: linker `aarch64-linux-gnu-gcc` not found 27 postPatch = '' 28 rm .cargo/config.toml 29 ''; 30 31 meta = with lib; { 32 description = "A command line tool that transforms Lua code"; 33 homepage = "https://darklua.com"; 34 changelog = "https://github.com/seaofvoices/darklua/blob/${src.rev}/CHANGELOG.md"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ tomodachi94 ]; 37 }; 38}