util-linux: create -Minimal and utillinux (full)
Close #12952. Now the full version is used by default, supporting systemd and curses.
This commit is contained in:
parent
30b7bd8d01
commit
eead3bc536
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, openssl, libjpeg, zlib, freetype, fontconfig, fribidi, SDL2, SDL, mesa, giflib, libpng, libtiff, glib, gst_all_1, libpulseaudio, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinuxCurses, dbus, bullet, luajit, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg, dbus_libs, alsaLib, poppler, libraw, libspectre, xineLib, libwebp, curl, libinput }:
|
{ stdenv, fetchurl, pkgconfig, openssl, libjpeg, zlib, freetype, fontconfig, fribidi, SDL2, SDL, mesa, giflib, libpng, libtiff, glib, gst_all_1, libpulseaudio, libsndfile, xorg, libdrm, libxkbcommon, udev, utillinux, dbus, bullet, luajit, python27Packages, openjpeg, doxygen, expat, harfbuzz, jbig2dec, librsvg, dbus_libs, alsaLib, poppler, libraw, libspectre, xineLib, libwebp, curl, libinput }:
|
||||||
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ pkgconfig openssl zlib freetype fontconfig fribidi SDL2 SDL mesa
|
buildInputs = [ pkgconfig openssl zlib freetype fontconfig fribidi SDL2 SDL mesa
|
||||||
giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
giflib libpng libtiff glib gst_all_1.gstreamer gst_all_1.gst-plugins-base
|
||||||
gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.printproto
|
gst_all_1.gst-libav libpulseaudio libsndfile xorg.libXcursor xorg.printproto
|
||||||
xorg.libX11 udev utillinuxCurses ];
|
xorg.libX11 udev utillinux ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ libxkbcommon python27Packages.dbus dbus libjpeg xorg.libXcomposite
|
propagatedBuildInputs = [ libxkbcommon python27Packages.dbus dbus libjpeg xorg.libXcomposite
|
||||||
xorg.libXdamage xorg.libXinerama xorg.libXp xorg.libXtst xorg.libXi xorg.libXext
|
xorg.libXdamage xorg.libXinerama xorg.libXp xorg.libXtst xorg.libXi xorg.libXext
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
{ stdenv, fetchFromGitHub, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
||||||
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
, xz, pam, acl, cryptsetup, libuuid, m4, utillinuxMinimal
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libapparmor, audit, lz4
|
, glib, kbd, libxslt, coreutils, libgcrypt, libgpgerror, libapparmor, audit, lz4
|
||||||
, kexectools, libmicrohttpd, linuxHeaders, libseccomp
|
, kexectools, libmicrohttpd, linuxHeaders, libseccomp
|
||||||
, autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45
|
, autoreconfHook, gettext, docbook_xsl, docbook_xml_dtd_42, docbook_xml_dtd_45
|
||||||
@ -75,13 +75,13 @@ stdenv.mkDerivation rec {
|
|||||||
test -e $i
|
test -e $i
|
||||||
substituteInPlace $i \
|
substituteInPlace $i \
|
||||||
--replace /usr/bin/getent ${stdenv.glibc}/bin/getent \
|
--replace /usr/bin/getent ${stdenv.glibc}/bin/getent \
|
||||||
--replace /bin/mount ${utillinux}/bin/mount \
|
--replace /bin/mount ${utillinuxMinimal}/bin/mount \
|
||||||
--replace /bin/umount ${utillinux}/bin/umount \
|
--replace /bin/umount ${utillinuxMinimal}/bin/umount \
|
||||||
--replace /sbin/swapon ${utillinux}/sbin/swapon \
|
--replace /sbin/swapon ${utillinuxMinimal}/sbin/swapon \
|
||||||
--replace /sbin/swapoff ${utillinux}/sbin/swapoff \
|
--replace /sbin/swapoff ${utillinuxMinimal}/sbin/swapoff \
|
||||||
--replace /bin/echo ${coreutils}/bin/echo \
|
--replace /bin/echo ${coreutils}/bin/echo \
|
||||||
--replace /bin/cat ${coreutils}/bin/cat \
|
--replace /bin/cat ${coreutils}/bin/cat \
|
||||||
--replace /sbin/sulogin ${utillinux}/sbin/sulogin \
|
--replace /sbin/sulogin ${utillinuxMinimal}/sbin/sulogin \
|
||||||
--replace /usr/lib/systemd/systemd-fsck $out/lib/systemd/systemd-fsck
|
--replace /usr/lib/systemd/systemd-fsck $out/lib/systemd/systemd-fsck
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null, pam }:
|
{ stdenv, fetchurl, zlib, ncurses ? null, perl ? null, pam, systemd ? null
|
||||||
|
, pkgconfig
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "util-linux-2.27.1";
|
name = "util-linux-2.27.1";
|
||||||
@ -38,11 +40,16 @@ stdenv.mkDerivation rec {
|
|||||||
--disable-use-tty-group
|
--disable-use-tty-group
|
||||||
--enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/bin:/sbin
|
--enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/bin:/sbin
|
||||||
${if ncurses == null then "--without-ncurses" else ""}
|
${if ncurses == null then "--without-ncurses" else ""}
|
||||||
|
${if systemd == null then "" else ''
|
||||||
|
--with-systemd
|
||||||
|
--with-systemdsystemunitdir=$out/lib/systemd/system/
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ zlib pam ]
|
[ zlib pam ]
|
||||||
++ stdenv.lib.optional (ncurses != null) ncurses
|
++ stdenv.lib.optional (ncurses != null) ncurses
|
||||||
|
++ stdenv.lib.optional (systemd != null) [ systemd pkgconfig ]
|
||||||
++ stdenv.lib.optional (perl != null) perl;
|
++ stdenv.lib.optional (perl != null) perl;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -10021,8 +10021,8 @@ let
|
|||||||
|
|
||||||
libuuid =
|
libuuid =
|
||||||
if crossSystem != null && crossSystem.config == "i586-pc-gnu"
|
if crossSystem != null && crossSystem.config == "i586-pc-gnu"
|
||||||
then (utillinux // {
|
then (utillinuxMinimal // {
|
||||||
crossDrv = lib.overrideDerivation utillinux.crossDrv (args: {
|
crossDrv = lib.overrideDerivation utillinuxMinimal.crossDrv (args: {
|
||||||
# `libblkid' fails to build on GNU/Hurd.
|
# `libblkid' fails to build on GNU/Hurd.
|
||||||
configureFlags = args.configureFlags
|
configureFlags = args.configureFlags
|
||||||
+ " --disable-libblkid --disable-mount --disable-libmount"
|
+ " --disable-libblkid --disable-mount --disable-libmount"
|
||||||
@ -10035,7 +10035,7 @@ let
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
else if stdenv.isLinux
|
else if stdenv.isLinux
|
||||||
then utillinux
|
then utillinuxMinimal
|
||||||
else null;
|
else null;
|
||||||
|
|
||||||
light = callPackage ../os-specific/linux/light { };
|
light = callPackage ../os-specific/linux/light { };
|
||||||
@ -10809,13 +10809,12 @@ let
|
|||||||
|
|
||||||
usermount = callPackage ../os-specific/linux/usermount { };
|
usermount = callPackage ../os-specific/linux/usermount { };
|
||||||
|
|
||||||
utillinux = callPackage ../os-specific/linux/util-linux {
|
utillinux = callPackage ../os-specific/linux/util-linux { };
|
||||||
|
|
||||||
|
utillinuxMinimal = appendToName "minimal" (utillinux.override {
|
||||||
ncurses = null;
|
ncurses = null;
|
||||||
perl = null;
|
perl = null;
|
||||||
};
|
systemd = null;
|
||||||
|
|
||||||
utillinuxCurses = appendToName "curses" (utillinux.override {
|
|
||||||
inherit ncurses perl;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
v4l_utils = callPackage ../os-specific/linux/v4l-utils {
|
v4l_utils = callPackage ../os-specific/linux/v4l-utils {
|
||||||
|
@ -169,7 +169,7 @@ with import ./release-lib.nix { inherit supportedSystems; };
|
|||||||
upstart = linux;
|
upstart = linux;
|
||||||
usbutils = linux;
|
usbutils = linux;
|
||||||
utillinux = linux;
|
utillinux = linux;
|
||||||
utillinuxCurses = linux;
|
utillinuxMinimal = linux;
|
||||||
w3m = all;
|
w3m = all;
|
||||||
webkit = linux;
|
webkit = linux;
|
||||||
wget = all;
|
wget = all;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user