virtiofsd: fix static

This commit is contained in:
Alyssa Ross 2022-05-12 16:04:30 +00:00
parent 4b28e6bcbc
commit 3ab458c39a

View file

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitLab, libcap_ng, libseccomp }:
{ lib, stdenv, rustPlatform, fetchFromGitLab, libcap_ng, libseccomp }:
rustPlatform.buildRustPackage rec {
pname = "virtiofsd";
@ -13,6 +13,10 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "0ma3kaaa4bl11015gxijwzyxhixz947k8byaypmmw0dj9m1vhv77";
LIBCAPNG_LIB_PATH = "${lib.getLib libcap_ng}/lib";
LIBCAPNG_LINK_TYPE =
if stdenv.hostPlatform.isStatic then "static" else "dylib";
buildInputs = [ libcap_ng libseccomp ];
meta = with lib; {