innernet: migrate to bindgenHook

This commit is contained in:
Weijia Wang 2023-05-26 22:37:52 +03:00
parent c9bcecf0ab
commit 86cd1b3f6f

View file

@ -2,7 +2,6 @@
, stdenv
, rustPlatform
, fetchFromGitHub
, llvmPackages
, sqlite
, installShellFiles
, Security
@ -23,15 +22,12 @@ rustPlatform.buildRustPackage rec {
};
cargoSha256 = "sha256-qQ6yRI0rNxV/TRZHCR69h6kx6L2Wp75ziw+B2P8LZmE=";
nativeBuildInputs = with llvmPackages; [
llvm
clang
nativeBuildInputs = [
rustPlatform.bindgenHook
installShellFiles
];
buildInputs = [ sqlite ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ];
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
postInstall = ''
installManPage doc/innernet-server.8.gz
installManPage doc/innernet.8.gz