2011-02-14 10:24:18 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib }:
|
2009-09-25 03:09:43 +01:00
|
|
|
|
2011-05-10 08:15:58 +01:00
|
|
|
let
|
2011-07-08 17:01:59 +01:00
|
|
|
name = "nbd-2.9.23";
|
2011-05-10 08:15:58 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
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";
|
2011-07-08 17:01:59 +01:00
|
|
|
sha256 = "0ab44fe9e80c3f41bb1025ecda351a874affd46bf56ba4033ea03700c3b83803";
|
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];
|
2010-08-02 14:37:36 +01:00
|
|
|
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
|
2011-05-13 19:30:36 +01:00
|
|
|
|
|
|
|
# The test suite doesn't succeed on Hydra (NixOS), because it assumes
|
|
|
|
# that certain global configuration files available.
|
|
|
|
doCheck = false;
|
2011-05-10 08:15:58 +01:00
|
|
|
|
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 14:37:36 +01:00
|
|
|
|
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";
|
2011-05-30 21:08:18 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-08-03 20:08:11 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-07-28 22:28:23 +01:00
|
|
|
};
|
2009-09-25 03:09:43 +01:00
|
|
|
}
|