mago: 0.26.1 -> 1.0.0-beta.14 (#443102)

authored by

Pol Dellaiera and committed by
GitHub
698b333a 6b934338

+11 -16
+11 -16
pkgs/by-name/ma/mago/package.nix
··· 4 4 fetchFromGitHub, 5 5 pkg-config, 6 6 openssl, 7 - testers, 8 - mago, 7 + versionCheckHook, 9 8 }: 10 9 11 - rustPlatform.buildRustPackage rec { 10 + rustPlatform.buildRustPackage (finalAttrs: { 12 11 pname = "mago"; 13 - version = "0.26.1"; 12 + version = "1.0.0-beta.14"; 14 13 15 14 src = fetchFromGitHub { 16 15 owner = "carthage-software"; 17 16 repo = "mago"; 18 - tag = version; 19 - hash = "sha256-9WrSHjs1EdDqTXuB0HbIzQCQWp4okkdy3jTVl4J2wUg="; 17 + tag = finalAttrs.version; 18 + hash = "sha256-UKoq4RkFcLS47DZHPY/MhrRuLQoWYLoOzO2BeeJZoQw="; 20 19 }; 21 20 22 - cargoHash = "sha256-7/kbuWcy1IwAL7m87WPgyhwPidLL9K65u6ybpj0Ryl0="; 21 + cargoHash = "sha256-/THZFU3lJbgJGA4lxWt6fyiHqIgQ539vj57iKoQfXZo="; 23 22 24 23 env = { 25 24 # Get openssl-sys to use pkg-config ··· 30 29 31 30 buildInputs = [ openssl ]; 32 31 33 - passthru = { 34 - tests.version = testers.testVersion { 35 - package = mago; 36 - command = "mago --version"; 37 - version = "mago ${version}"; 38 - }; 39 - }; 32 + doInstallCheck = true; 33 + nativeInstallCheckInputs = [ versionCheckHook ]; 34 + versionCheckProgramArg = "--version"; 40 35 41 36 meta = { 42 - changelog = "https://github.com/carthage-software/mago/releases/tag/${version}"; 37 + changelog = "https://github.com/carthage-software/mago/releases/tag/${finalAttrs.version}"; 43 38 description = "Toolchain for PHP that aims to provide a set of tools to help developers write better code"; 44 39 homepage = "https://github.com/carthage-software/mago"; 45 40 license = lib.licenses.mit; 46 41 maintainers = with lib.maintainers; [ gaelreyrol ]; 47 42 mainProgram = "mago"; 48 43 }; 49 - } 44 + })