nixpkgs/pkgs/tools/networking/nbd/default.nix
Peter Simons 43017234d6 pkgs/tools/networking/nbd: enable build on all NixOS platforms
The nbd client needs kernel support and is available only on Linux, but
the server process ought to work in all POSIX'ish environments.

svn path=/nixpkgs/trunk/; revision=22936
2010-08-03 19:08:11 +00:00

28 lines
859 B
Nix

{stdenv, fetchurl, pkgconfig, glib}:
stdenv.mkDerivation rec {
name = "nbd-2.9.16";
src = fetchurl {
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
sha256 = "1dcd5c5bc478497f0aa6f21f6f04d6cadc3f2e39d45d0e2705a9a1c1c8e91dc9";
};
buildInputs = [pkgconfig glib];
# Link this package statically to generate an nbd-server binary that
# has no dynamic dependencies and that can be used on (non-Nix) remote
# machines that have a different setup than the local one.
configureFlags = "LDFLAGS=-static";
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
meta = {
homepage = "http://nbd.sourceforge.net";
description = "map arbitrary files as block devices over the network";
license = "GPLv2";
maintainers = [ stdenv.lib.maintainers.simons ];
platforms = stdenv.lib.platforms.all;
};
}