depot/third_party/nixpkgs/pkgs/by-name/mc/mcumgr-client/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

41 lines
986 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
pkg-config,
udev,
stdenv,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "mcumgr-client";
version = "0.0.7";
src = fetchFromGitHub {
owner = "vouch-opensource";
repo = "mcumgr-client";
rev = "v${version}";
hash = "sha256-P5ykIVdWAxuCblMe7kzjswEca/+MsqpizCGUHIpR4qc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-+n+Z/o+DvP2ltos8DP8nTyKbn/Zr3ln6cLyKJ+yWm1M=";
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [ pkg-config ];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ udev ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.IOKit ];
meta = with lib; {
description = "Client for mcumgr commands";
homepage = "https://github.com/vouch-opensource/mcumgr-client";
license = licenses.asl20;
maintainers = with maintainers; [ otavio ];
mainProgram = "mcumgr-client";
};
}