Merge master into closure-size
The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, ncurses ? null, perl ? null, pam }:
|
||||
{ stdenv, fetchurl, pkgconfig, zlib, ncurses ? null, perl ? null, pam, systemd }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "util-linux-2.27.1";
|
||||
@@ -41,6 +41,10 @@ stdenv.mkDerivation rec {
|
||||
--disable-use-tty-group
|
||||
--enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/bin:/sbin
|
||||
${if ncurses == null then "--without-ncurses" else ""}
|
||||
${if systemd == null then "" else ''
|
||||
--with-systemd
|
||||
--with-systemdsystemunitdir=$out/lib/systemd/system/
|
||||
''}
|
||||
'';
|
||||
|
||||
makeFlags = "usrbin_execdir=$(bin)/bin usrsbin_execdir=$(bin)/sbin";
|
||||
@@ -49,6 +53,7 @@ stdenv.mkDerivation rec {
|
||||
buildInputs =
|
||||
[ zlib pam ]
|
||||
++ stdenv.lib.optional (ncurses != null) ncurses
|
||||
++ stdenv.lib.optional (systemd != null) [ systemd pkgconfig ]
|
||||
++ stdenv.lib.optional (perl != null) perl;
|
||||
|
||||
postInstall = ''
|
||||
|
||||
Reference in New Issue
Block a user