13 stdenv.mkDerivation rec {
18 url = "https://download.libguestfs.org/libnbd/${lib.versions.majorMinor version}-stable/${pname}-${version}.tar.gz";
19 hash = "sha256-srJyd32eCIthoncvM9JQEKCWEOZxxc3YntaV4Ay8kZ8=";
35 installFlags = [ "bashcompdir=$(out)/share/bash-completion/completions" ];
38 homepage = "https://gitlab.com/nbdkit/libnbd";
39 description = "Network Block Device client library in userspace";
41 NBD — Network Block Device — is a protocol for accessing Block Devices
42 (hard disks and disk-like things) over a Network. This is the NBD client
43 library in userspace, a simple library for writing NBD clients.
46 - Synchronous API for ease of use.
47 - Asynchronous API for writing non-blocking, multithreaded clients. You
48 can mix both APIs freely.
50 - Minimal dependencies for the basic library.
51 - Well-documented, stable API.
52 - Bindings in several programming languages.
53 - Shell (nbdsh) for command line and scripting.
55 license = with licenses; lgpl21Plus;
56 maintainers = with maintainers; [ AndersonTorres humancalico ];
57 platforms = with platforms; linux;
60 # TODO: package the 1.6-stable version too
61 # TODO: git version needs ocaml
62 # TODO: bindings for go, ocaml and python