at 18.03-beta 39 lines 1.2 kB view raw
1{ stdenv, fetchurl, lvm2, libaio, gzip, readline, systemd, liburcu }: 2 3stdenv.mkDerivation rec { 4 name = "multipath-tools-0.6.2"; 5 6 src = fetchurl { 7 name = "${name}.tar.gz"; 8 url = "http://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=e165b73a16fc9027aa3306df40052038c175be1b;sf=tgz"; 9 sha256 = "159hxvbk9kh1qay9x04w0gsqzg0hkl5yghfc1wi9kv2n5pcwbkpm"; 10 }; 11 12 postPatch = '' 13 sed -i -re ' 14 s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'", 15 ' libmultipath/defaults.h 16 sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \ 17 kpartx/Makefile libmpathpersist/Makefile 18 sed -i -e "s,GZIP = .*, GZIP = gzip -9n -c," \ 19 Makefile.inc 20 ''; 21 22 nativeBuildInputs = [ gzip ]; 23 buildInputs = [ systemd lvm2 libaio readline liburcu ]; 24 25 makeFlags = [ 26 "LIB=lib" 27 "prefix=$(out)" 28 "mandir=$(out)/share/man/man8" 29 "man5dir=$(out)/share/man/man5" 30 "man3dir=$(out)/share/man/man3" 31 "unitdir=$(out)/lib/systemd/system" 32 ]; 33 34 meta = { 35 description = "Tools for the Linux multipathing driver"; 36 homepage = http://christophe.varoqui.free.fr/; 37 platforms = stdenv.lib.platforms.linux; 38 }; 39}