nixpkgs/pkgs/tools/networking/nbd/default.nix
Peter Simons 47452c351b nbd: updated to version 2.9.22
svn path=/nixpkgs/trunk/; revision=27316
2011-05-30 20:08:18 +00:00

33 lines
926 B
Nix

{ stdenv, fetchurl, pkgconfig, glib }:
let
name = "nbd-2.9.22";
in
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
sha256 = "f9e1a9db1663393fd1f2de2dd70cf15cc4fa17616853b717db7ca6c539f8787d";
};
buildInputs = [pkgconfig glib];
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
# The test suite doesn't succeed on Hydra (NixOS), because it assumes
# that certain global configuration files available.
doCheck = false;
# Glib calls `clock_gettime', which is in librt. Since we're using
# a static Glib, we need to pass it explicitly.
NIX_LDFLAGS = "-lrt";
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.all;
};
}