78178d5854
This moves libsystemd.so and libudev.so into systemd.lib, and gets rid of libudev (which just contained a copy of libudev.so and the udev headers). It thus reduces the closure size of all packages that (indirectly) depend on libsystemd, of which there are quite a few (for instance, PulseAudio and dbus). For example, it reduces the closure of Blender from 430.8 to 400.8 MiB.
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{ stdenv, fetchurl, lvm2, libaio, gzip, readline, systemd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "multipath-tools-0.5.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://christophe.varoqui.free.fr/multipath-tools/${name}.tar.bz2";
|
|
sha256 = "1yd6l1l1c62xjr1xnij2x49kr416anbgfs4y06r86kp9hkmz2g7i";
|
|
};
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
postPatch = ''
|
|
sed -i -re '
|
|
s,^( *#define +DEFAULT_MULTIPATHDIR\>).*,\1 "'"$out/lib/multipath"'",
|
|
' libmultipath/defaults.h
|
|
sed -i -e 's,\$(DESTDIR)/\(usr/\)\?,$(prefix)/,g' \
|
|
kpartx/Makefile libmpathpersist/Makefile
|
|
'';
|
|
|
|
nativeBuildInputs = [ gzip ];
|
|
buildInputs = [ systemd lvm2 libaio readline ];
|
|
|
|
makeFlags = [
|
|
"LIB=lib"
|
|
"prefix=$(out)"
|
|
"mandir=$(out)/share/man/man8"
|
|
"man5dir=$(out)/share/man/man5"
|
|
"man3dir=$(out)/share/man/man3"
|
|
"unitdir=$(out)/lib/systemd/system"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tools for the Linux multipathing driver";
|
|
homepage = http://christophe.varoqui.free.fr/;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|