2011-02-14 10:24:18 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib }:
|
2009-09-25 02:09:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-02-03 12:36:19 +00:00
|
|
|
name = "nbd-2.9.20";
|
2010-07-28 21:28:23 +00:00
|
|
|
|
2009-09-25 02:09:43 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
|
2011-02-03 12:36:19 +00:00
|
|
|
sha256 = "98f0de421f0b2f683d46dff3eb679a3409a41f08e6fad7c2f71f60c5d409939c";
|
2009-09-25 02:09:43 +00:00
|
|
|
};
|
2010-07-28 21:28:23 +00:00
|
|
|
|
2009-09-25 02:09:43 +00:00
|
|
|
buildInputs = [pkgconfig glib];
|
2010-08-02 13:37:36 +00:00
|
|
|
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
|
2011-02-14 10:24:18 +00:00
|
|
|
|
|
|
|
# Glib calls `clock_gettime', which is in librt. Since we're using
|
|
|
|
# a static Glib, we need to pass it explicitly.
|
|
|
|
NIX_LDFLAGS = "-lrt";
|
2010-08-02 13:37:36 +00:00
|
|
|
|
2010-07-28 21:28:23 +00: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 19:08:11 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-07-28 21:28:23 +00:00
|
|
|
};
|
2009-09-25 02:09:43 +00:00
|
|
|
}
|