From c14fbcc4fcfbebc624a914ffbf57e5f4527a416c Mon Sep 17 00:00:00 2001 From: volth Date: Sun, 28 Jan 2018 13:57:48 +0000 Subject: [PATCH] xnbd: init at 0.3.0 --- pkgs/tools/networking/xnbd/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 pkgs/tools/networking/xnbd/default.nix diff --git a/pkgs/tools/networking/xnbd/default.nix b/pkgs/tools/networking/xnbd/default.nix new file mode 100644 index 000000000000..f70a5dc905c8 --- /dev/null +++ b/pkgs/tools/networking/xnbd/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, pkgconfig, glib }: + +stdenv.mkDerivation rec { + name = "xnbd-0.3.0"; + + src = fetchurl { + url = "https://bitbucket.org/hirofuchi/xnbd/downloads/${name}.tar.bz2"; + sha256 = "0jlv6cx85sjn8vjhgzmcs5mz2b6xf18mp0h61v1gl7xkbalw1flb"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ glib ]; + + meta = { + homepage = https://bitbucket.org/hirofuchi/xnbd; + description = "Yet another NBD (Network Block Device) server program"; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.volth ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89ea6807abdf..dbe7c8a07069 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3614,6 +3614,7 @@ with pkgs; nawk = callPackage ../tools/text/nawk { }; nbd = callPackage ../tools/networking/nbd { }; + xnbd = callPackage ../tools/networking/xnbd { }; nccl = callPackage ../development/libraries/science/math/nccl { cudatoolkit = cudatoolkit8;