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