nixpkgs/pkgs/by-name/at/atac/package.nix
2024-12-07 16:00:45 +00:00

37 lines
773 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
oniguruma,
}:
rustPlatform.buildRustPackage rec {
pname = "atac";
version = "0.18.1";
src = fetchFromGitHub {
owner = "Julien-cpsn";
repo = "ATAC";
rev = "v${version}";
hash = "sha256-RrtRflMTsbR/A2kb2kdwsE7zN43TzzvFkUPcmL4YGqs=";
};
cargoHash = "sha256-JlS+95/C2vMvFiCE4/hHWfkH1WL1hNSgUtyOeGDV8pY=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ oniguruma ];
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};
meta = with lib; {
description = "Simple API client (postman like) in your terminal";
homepage = "https://github.com/Julien-cpsn/ATAC";
license = licenses.mit;
maintainers = with maintainers; [ vinnymeller ];
mainProgram = "atac";
};
}