diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-01 15:21:31 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-01 15:21:31 +0000 |
commit | aa98c7dc02493cd0051eebf364e5ff3f7e0ab535 (patch) | |
tree | fa9b578cce42c411f4f42224612b12caa5e6593b /pkgs/os-specific/linux/drbd/default.nix | |
parent | a5a5dcde905f7ae72228795e83c4a16ea21b317a (diff) |
* Added drbd.
svn path=/nixpkgs/trunk/; revision=30163
Diffstat (limited to 'pkgs/os-specific/linux/drbd/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/drbd/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/drbd/default.nix b/pkgs/os-specific/linux/drbd/default.nix new file mode 100644 index 0000000000000..a3c8c5606d660 --- /dev/null +++ b/pkgs/os-specific/linux/drbd/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, flex, udev }: + +assert stdenv.isLinux; + +stdenv.mkDerivation rec { + name = "drbd-8.4.0"; + + src = fetchurl { + url = "http://oss.linbit.com/drbd/8.4/${name}.tar.gz"; + sha256 = "096njwxjpwvnl259gxq6cr6n0r6ba0h5aryvgk05hqi95jx927vg"; + }; + + buildInputs = [ flex ]; + + configureFlags = "--without-distro --without-legacy_utils --without-pacemaker --localstatedir=/var --sysconfdir=/etc"; + + preConfigure = + '' + export PATH=${udev}/sbin:$PATH + substituteInPlace user/Makefile.in --replace /sbin/ $out/sbin/ + substituteInPlace scripts/drbd.rules --replace /sbin/drbdadm $out/sbin/drbdadm + ''; + + makeFlags = "SHELL=${stdenv.shell}"; + + installFlags = "localstatedir=$(TMPDIR)/var sysconfdir=$(out)/etc INITDIR=$(out)/etc/init.d"; + + meta = { + homepage = http://www.drbd.org/; + description = "Distributed Replicated Block Device, a distributed storage system for Linux"; + platforms = stdenv.lib.platforms.linux; + }; +} |