mago: 0.26.1 -> 1.0.0-beta.14 (#443102)
This commit is contained in:
@@ -4,22 +4,21 @@
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
openssl,
|
||||
testers,
|
||||
mago,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "mago";
|
||||
version = "0.26.1";
|
||||
version = "1.0.0-beta.14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "carthage-software";
|
||||
repo = "mago";
|
||||
tag = version;
|
||||
hash = "sha256-9WrSHjs1EdDqTXuB0HbIzQCQWp4okkdy3jTVl4J2wUg=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-UKoq4RkFcLS47DZHPY/MhrRuLQoWYLoOzO2BeeJZoQw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-7/kbuWcy1IwAL7m87WPgyhwPidLL9K65u6ybpj0Ryl0=";
|
||||
cargoHash = "sha256-/THZFU3lJbgJGA4lxWt6fyiHqIgQ539vj57iKoQfXZo=";
|
||||
|
||||
env = {
|
||||
# Get openssl-sys to use pkg-config
|
||||
@@ -30,20 +29,16 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
passthru = {
|
||||
tests.version = testers.testVersion {
|
||||
package = mago;
|
||||
command = "mago --version";
|
||||
version = "mago ${version}";
|
||||
};
|
||||
};
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/carthage-software/mago/releases/tag/${version}";
|
||||
changelog = "https://github.com/carthage-software/mago/releases/tag/${finalAttrs.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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user