nixpkgs/pkgs/tools/networking/nbd/default.nix
Peter Simons b62f65d24e pkgs/tools/networking/nbd: removed hard-coded flags for static linking
A statically linked binary should rather be generated using the
appropriate stdenv adapter.

svn path=/nixpkgs/trunk/; revision=23107
2010-08-11 09:54:46 +00:00

22 lines
614 B
Nix

{stdenv, fetchurl, pkgconfig, glib}:
stdenv.mkDerivation rec {
name = "nbd-2.9.18";
src = fetchurl {
url = "mirror://sourceforge/nbd/${name}.tar.bz2";
sha256 = "afaaae330625b61ad67ba988721ddc4ad54bfc7e501daeb45f721c205bfb00f3";
};
buildInputs = [pkgconfig glib];
postInstall = ''install -D -m 444 README "$out/share/doc/nbd/README"'';
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;
};
}