2009-09-25 04:09:43 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, glib}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-07-28 23:28:23 +02:00
|
|
|
name = "nbd-2.9.15";
|
|
|
|
|
2009-09-25 04:09:43 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
|
2010-07-28 23:28:23 +02:00
|
|
|
sha256 = "26e2ef18cc2f214d666eef1cfb31df1ba8ee6eaa78390afd6d18f2cce9c0c704";
|
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
|
|
|
|
|
|
|
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 04:09:43 +02:00
|
|
|
}
|