blob: af8bc1189280476e7ba4f3bab9bb4792476b5b97 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
testers,
mago,
}:
rustPlatform.buildRustPackage rec {
pname = "mago";
version = "0.22.1";
src = fetchFromGitHub {
owner = "carthage-software";
repo = "mago";
tag = version;
hash = "sha256-Zc6DTqIVU4shmZ9csg4nzwjn7ut/D6FrBXATQqwHI8o=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-wppfZNsAFzXMJzcIOHL8Lj2FCgPp/i/TZcHP4VYsGCk=";
env = {
# Get openssl-sys to use pkg-config
OPENSSL_NO_VENDOR = 1;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
passthru = {
tests.version = testers.testVersion {
package = mago;
command = "mago --version";
version = "mago ${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";
};
}
|