2009-09-25 03:09:43 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, glib}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-08-03 10:32:05 +01:00
|
|
|
name = "nbd-2.9.16";
|
2010-07-28 22:28:23 +01:00
|
|
|
|
2009-09-25 03:09:43 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
|
2010-08-03 10:32:05 +01:00
|
|
|
sha256 = "1dcd5c5bc478497f0aa6f21f6f04d6cadc3f2e39d45d0e2705a9a1c1c8e91dc9";
|
2009-09-25 03:09:43 +01:00
|
|
|
};
|
2010-07-28 22:28:23 +01:00
|
|
|
|
2009-09-25 03:09:43 +01:00
|
|
|
buildInputs = [pkgconfig glib];
|
|
|
|
|
2009-09-28 16:10:55 +01:00
|
|
|
# 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";
|
2010-07-28 22:28:23 +01:00
|
|
|
|
2010-08-02 14:37:36 +01:00
|
|
|
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
|
|
|
|
|
2010-07-28 22:28:23 +01:00
|
|
|
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.gnu;
|
|
|
|
};
|
2009-09-25 03:09:43 +01:00
|
|
|
}
|