From 8d08b3a8432cfe6e5f76a70aac567d900a347ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Reyrol?= Date: Fri, 20 Dec 2024 00:34:14 +0100 Subject: [PATCH] mago: init at 0.0.9 (#363602) --- pkgs/by-name/ma/mago/package.nix | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/ma/mago/package.nix diff --git a/pkgs/by-name/ma/mago/package.nix b/pkgs/by-name/ma/mago/package.nix new file mode 100644 index 0000000000000..ffe3f06d68a08 --- /dev/null +++ b/pkgs/by-name/ma/mago/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + testers, + mago, +}: + +rustPlatform.buildRustPackage rec { + pname = "mago"; + version = "0.0.9"; + + src = fetchFromGitHub { + owner = "carthage-software"; + repo = "mago"; + tag = version; + hash = "sha256-MeI2pya0K1W7tbEJU8VrT6b0wYlr9Q7MTi27+wHfJjg="; + }; + + cargoHash = "sha256-LcY04XkTQHpixPPPs86OVO1ehPrcdynKmScgfWEU24Q="; + + passthru = { + tests.version = testers.testVersion { + package = mago; + command = "mago --version"; + version = "mago-cli ${version}"; + }; + }; + + meta = { + changelog = "https://github.com/carthage-software/mago/releases/tag/${version}"; + description = "Toolchain for PHP that aims to provide a set of tools to help developers write better code"; + homepage = "https://github.com/carthage-software/mago"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ gaelreyrol ]; + mainProgram = "mago"; + }; +}