2009-09-25 04:09:43 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, glib}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-08-06 14:43:18 +02:00
|
|
|
name = "nbd-2.9.17";
|
2010-07-28 23:28:23 +02:00
|
|
|
|
2009-09-25 04:09:43 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
|
2010-08-06 14:43:18 +02:00
|
|
|
sha256 = "07423fba4b1a6d394008505b86fe41d1978956035f49c1197de648fbaa7fb7ff";
|
2009-09-25 04:09:43 +02:00
|
|
|
};
|
2010-07-28 23:28:23 +02:00
|
|
|
|
2009-09-25 04:09:43 +02:00
|
|
|
buildInputs = [pkgconfig glib];
|
|
|
|
|
2009-09-28 17:10:55 +02: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 23:28:23 +02:00
|
|
|
|
2010-08-02 15:37:36 +02:00
|
|
|
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
|
|
|
|
|
2010-07-28 23:28:23 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://nbd.sourceforge.net";
|
|
|
|
description = "map arbitrary files as block devices over the network";
|
|
|
|
license = "GPLv2";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-08-03 21:08:11 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-07-28 23:28:23 +02:00
|
|
|
};
|
2009-09-25 04:09:43 +02:00
|
|
|
}
|