2011-02-14 02:24:18 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib }:
|
2009-09-24 19:09:43 -07:00
|
|
|
|
2011-05-10 00:15:58 -07:00
|
|
|
let
|
|
|
|
name = "nbd-2.9.21";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2010-07-28 14:28:23 -07:00
|
|
|
|
2009-09-24 19:09:43 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
|
2011-05-10 00:15:58 -07:00
|
|
|
sha256 = "10265581da904a7dd75923035ee983ba801c5cdc5e581bc83dc7d70174b1d5b8";
|
2009-09-24 19:09:43 -07:00
|
|
|
};
|
2010-07-28 14:28:23 -07:00
|
|
|
|
2009-09-24 19:09:43 -07:00
|
|
|
buildInputs = [pkgconfig glib];
|
2010-08-02 06:37:36 -07:00
|
|
|
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
|
2011-05-10 00:15:58 -07:00
|
|
|
|
2011-02-14 02:24:18 -08: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 06:37:36 -07:00
|
|
|
|
2010-07-28 14:28:23 -07: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 12:08:11 -07:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-07-28 14:28:23 -07:00
|
|
|
};
|
2009-09-24 19:09:43 -07:00
|
|
|
}
|