diff --git a/pkgs/tools/networking/nbd/default.nix b/pkgs/tools/networking/nbd/default.nix new file mode 100644 index 000000000000..9d25745158bd --- /dev/null +++ b/pkgs/tools/networking/nbd/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl, pkgconfig, glib}: + +stdenv.mkDerivation rec { + name = "nbd-2.9.13"; + meta = { + homepage = "http://nbd.sourceforge.net"; + description = "map arbitrary files as block devices over the network"; + license = "GPLv2"; + }; + src = fetchurl { + url = "mirror://sourceforge/nbd/${name}.tar.bz2"; + sha256 = "d83da56a97ae70c6c52c994a64e960eaae0664fcadf1fc30f4c9f68c00d19da1"; + }; + buildInputs = [pkgconfig glib]; + + # Desirable, but doesn't work because glib is compiled without static + # libraries by default: + # + # configureFlags = "LDFLAGS=-static"; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 512924915a92..0442a04436cf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1105,6 +1105,11 @@ let inherit fetchurl stdenv perl; }; + nbd = import ../tools/networking/nbd { + inherit fetchurl stdenv pkgconfig; + inherit (gtkLibs) glib; + }; + nc6 = composedArgsAndFun (selectVersion ../tools/networking/nc6 "1.0") { inherit builderDefs; };