lol
1{
2 apple-sdk_15,
3 stdenv,
4 lib,
5 rustPlatform,
6 fetchFromGitHub,
7 nix-update-script,
8 pkg-config,
9 openssl,
10}:
11rustPlatform.buildRustPackage rec {
12 pname = "jikken";
13 version = "0.8.2";
14
15 src = fetchFromGitHub {
16 owner = "jikkenio";
17 repo = "jikken";
18 rev = "v${version}";
19 hash = "sha256-8A9b9Ms/unv+qQRd5jiTV/6SJa6ZYLsE0fK97ohacPI=";
20 };
21
22 cargoHash = "sha256-nwFTKol5phXFuDzAcnPoFq8UrrqMDE6NuitpXE5qJwU=";
23
24 nativeBuildInputs = [ pkg-config ];
25
26 buildInputs = [ openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_15 ];
27
28 passthru.updateScript = nix-update-script {
29 extraArgs = [
30 "--version-regex"
31 "^(v\\d+\\.\\d+\\.\\d+)$"
32 ];
33 };
34
35 meta = with lib; {
36 description = "Powerful, source control friendly REST API testing toolkit";
37 homepage = "https://jikken.io/";
38 changelog = "https://github.com/jikkenio/jikken/blob/${src.rev}/CHANGELOG.md";
39 license = licenses.mit;
40 maintainers = with maintainers; [ vinnymeller ];
41 mainProgram = "jk";
42 };
43}