virtiofsd: fix static
This commit is contained in:
parent
4b28e6bcbc
commit
3ab458c39a
1 changed files with 5 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue