diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-14 10:24:18 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-02-14 10:24:18 +0000 |
commit | 8df800d92cd2243e037da8fdc01ab2e211aa294e (patch) | |
tree | 918467147ea239f8b4c5e5a5a73ac17196c35dc8 /pkgs/tools/networking/nbd | |
parent | 5f85d4c19c7e2e944b3c4f67235f8ad5fdb98982 (diff) |
* nbd: fix build.
svn path=/nixpkgs/branches/x-updates/; revision=25952
Diffstat (limited to 'pkgs/tools/networking/nbd')
-rw-r--r-- | pkgs/tools/networking/nbd/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/networking/nbd/default.nix b/pkgs/tools/networking/nbd/default.nix index 5a9ba7a575357..bf309c3cdbf23 100644 --- a/pkgs/tools/networking/nbd/default.nix +++ b/pkgs/tools/networking/nbd/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, pkgconfig, glib}: +{ stdenv, fetchurl, pkgconfig, glib }: stdenv.mkDerivation rec { name = "nbd-2.9.20"; @@ -10,6 +10,10 @@ stdenv.mkDerivation rec { buildInputs = [pkgconfig glib]; postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"''; + + # 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"; |