nixpkgs/pkgs/by-name/da/darklua/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
912 B
Nix
Raw Normal View History

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; {
description = "Command line tool that transforms Lua code";
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 ];
};
}