Skip to content

Commit

Permalink
mago: init at 0.0.9 (NixOS#363602)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelreyrol authored Dec 19, 2024
1 parent c5225af commit 8d08b3a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/by-name/ma/mago/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 8d08b3a

Please sign in to comment.