custom-nixpkgs/pkgs/hcctl/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

37 lines
845 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "hcctl";
version = "2.0.8";
src = fetchFromGitHub {
owner = "msfjarvis";
repo = "healthchecks-rs";
rev = "hcctl-v${version}";
hash = "sha256-A83pzY+c4kz59tHEc6hRd0Zp8Uj96KdrenD9RDWwavQ=";
};
buildInputs =
lib.optionals stdenv.isDarwin
[darwin.apple_sdk.frameworks.Security];
buildAndTestSubdir = "hcctl";
cargoHash = "sha256-v8mpH1akao35P8ePFTFLBidkPW+vzsaMg4h51TudYMM=";
useNextest = true;
meta = with lib; {
description = "Simple CLI tool to keep a track of your https://healthchecks.io account";
homepage = "https://msfjarvis.dev/g/healthchecks-rs";
license = with licenses; [asl20 mit];
maintainers = with maintainers; [msfjarvis];
mainProgram = "hcctl";
};
}