1 { stdenv, lib, fetchzip, autoPatchelfHook }:
8 url = "https://github.com/osquery/osquery-toolchain/releases/download/${version}/osquery-toolchain-${version}-x86_64.tar.xz";
9 hash = "sha256-irekR8a0d+T64+ZObgblsLoc4kVBmb6Gv0Qf8dLDCMk=";
12 url = "https://github.com/osquery/osquery-toolchain/releases/download/${version}/osquery-toolchain-${version}-aarch64.tar.xz";
13 hash = "sha256-cQlx9AtO6ggIQqHowa+42wQ4YCMCN4Gb+0qqVl2JElw=";
21 name = "osquery-toolchain-bin";
25 src = fetchzip dist.${stdenv.hostPlatform.system};
27 nativeBuildInputs = [ autoPatchelfHook ];
35 description = "A LLVM-based toolchain for Linux designed to build a portable osquery";
36 homepage = "https://github.com/osquery/osquery-toolchain";
37 platforms = [ "x86_64-linux" "aarch64-linux" ];
38 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
39 license = with licenses; [ gpl2Only asl20 ];
40 maintainers = with maintainers; [ squalus ];