nixpkgs/pkgs/by-name/ji/jikken/package.nix
2024-09-27 11:54:43 +00:00

45 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
pkg-config,
openssl,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "jikken";
version = "0.8.0";
src = fetchFromGitHub {
owner = "jikkenio";
repo = "jikken";
rev = "v${version}";
hash = "sha256-e1n5Q1bF/n9ELA93ucdaIeXx3LPhd7cWkLxWRRdGlo4=";
};
cargoHash = "sha256-DALY88q5xsjnoaGJxnVWx/5v4yE80+HNGT/vdFdzkXk=";
nativeBuildInputs = [ pkg-config ];
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk_11_0.frameworks.IOKit
darwin.apple_sdk_11_0.frameworks.Security
darwin.apple_sdk_11_0.frameworks.SystemConfiguration
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Powerful, source control friendly REST API testing toolkit";
homepage = "https://jikken.io/";
changelog = "https://github.com/jikkenio/jikken/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ vinnymeller ];
mainProgram = "jk";
};
}