custom-nixpkgs/pkgs/katbin/default.nix
Harsh Shandilya 2a98ef842b
pkgs: run all tests via cargo-nextest
Disable tests for packages that don't have any
2023-08-21 16:06:20 +05:30

36 lines
848 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "katbin-cli";
version = "1.3.15";
src = fetchFromGitHub {
owner = "SphericalKat";
repo = "katbin-cli";
rev = "v${version}";
hash = "sha256-MGYzh5OBNPy2e+RVSppA7a1+cixyaxMwXeOuRV9aFmg=";
};
cargoHash = "sha256-Wbcw2eMD2OtL7qp8XL2Ri60yuyisiQRatY77egtEKlg=";
doCheck = false;
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "A CLI for katbin";
homepage = "https://github.com/SphericalKat/katbin-cli";
changelog = "https://github.com/SphericalKat/katbin-cli/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [asl20 mit];
maintainers = with maintainers; [msfjarvis];
mainProgram = "katbin";
};
}