blazesym-c: init at 0.1.7 (#502387)
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
elfutils,
|
||||
zlib,
|
||||
nix-update-script,
|
||||
}:
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "blazesym-c";
|
||||
version = "0.1.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libbpf";
|
||||
repo = "blazesym";
|
||||
tag = "capi-v${finalAttrs.version}";
|
||||
hash = "sha256-+wpKDxZgFkezvKzL0xA7FFS/sIx++kwSf32Kl4u0rAg=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-J14dckx/t0BG+l6NOiBY/Kkq42C98dXIzP9e6LtpgVg=";
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--package"
|
||||
"blazesym-c"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pkg-config
|
||||
elfutils
|
||||
zlib
|
||||
];
|
||||
|
||||
cargoTestFlags = [
|
||||
"--no-run"
|
||||
"--package"
|
||||
"blazesym-c"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 capi/include/blazesym.h "$out/include/blazesym.h"
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"^capi-v([0-9.]+)$"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "C language bindings for the blazesym library";
|
||||
homepage = "https://github.com/libbpf/blazesym";
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ aaronjheng ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user