47452c351b
svn path=/nixpkgs/trunk/; revision=27316
33 lines
926 B
Nix
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;
|
|
};
|
|
}
|