1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 15:41:40 +00:00
nixpkgs/pkgs/tools/networking/nbd/default.nix
Peter Simons 045e10fe15 Link nbd package statically.
svn path=/nixpkgs/trunk/; revision=17470
2009-09-28 15:10:55 +00:00

21 lines
685 B
Nix

{stdenv, fetchurl, pkgconfig, glib}:
stdenv.mkDerivation rec {
name = "nbd-2.9.13";
meta = {
homepage = "http://nbd.sourceforge.net";
description = "map arbitrary files as block devices over the network";
license = "GPLv2";
};
src = fetchurl {
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
sha256 = "d83da56a97ae70c6c52c994a64e960eaae0664fcadf1fc30f4c9f68c00d19da1";
};
buildInputs = [pkgconfig glib];
# Link this package statically to generate an nbd-server binary that
# has no dynamic dependencies and that can be used on (non-Nix) remote
# machines that have a different setup than the local one.
configureFlags = "LDFLAGS=-static";
}