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