depot/third_party/nixpkgs/pkgs/servers/misc/virtiofsd/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

29 lines
868 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitLab, libcap_ng, libseccomp }:
rustPlatform.buildRustPackage rec {
pname = "virtiofsd";
version = "1.6.0";
src = fetchFromGitLab {
owner = "virtio-fs";
repo = "virtiofsd";
rev = "v${version}";
sha256 = "jxo6qQLIhwT6cqhYWx+5GEnuS9E7O2u82QrzxabjcOs=";
};
cargoHash = "sha256-1wDlYQXRJSkXyQU7H+mQWtsLSpX7i7SdmFYLjyRWfx8=";
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; {
homepage = "https://gitlab.com/virtio-fs/virtiofsd";
description = "vhost-user virtio-fs device backend written in Rust";
maintainers = with maintainers; [ qyliss ];
platforms = platforms.linux;
license = with licenses; [ asl20 /* and */ bsd3 ];
};
}