systemd: add withDocumentation flag
This commit is contained in:
parent
f142493a6a
commit
e77326208e
@ -59,6 +59,7 @@
|
|||||||
, withCoredump ? true
|
, withCoredump ? true
|
||||||
, withCompression ? true # adds bzip2, lz4 and xz
|
, withCompression ? true # adds bzip2, lz4 and xz
|
||||||
, withCryptsetup ? true
|
, withCryptsetup ? true
|
||||||
|
, withDocumentation ? true
|
||||||
, withEfi ? stdenv.hostPlatform.isEfi
|
, withEfi ? stdenv.hostPlatform.isEfi
|
||||||
, withHostnamed ? true
|
, withHostnamed ? true
|
||||||
, withHwdb ? true
|
, withHwdb ? true
|
||||||
@ -390,7 +391,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
# "kernel-install" shouldn't be used on NixOS.
|
# "kernel-install" shouldn't be used on NixOS.
|
||||||
find $out -name "*kernel-install*" -exec rm {} \;
|
find $out -name "*kernel-install*" -exec rm {} \;
|
||||||
''; # */
|
'' + lib.optionalString (!withDocumentation) ''
|
||||||
|
rm -rf $out/share/doc
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -18666,6 +18666,7 @@ in
|
|||||||
withCompression = false;
|
withCompression = false;
|
||||||
withCoredump = false;
|
withCoredump = false;
|
||||||
withCryptsetup = false;
|
withCryptsetup = false;
|
||||||
|
withDocumentation = false;
|
||||||
withEfi = false;
|
withEfi = false;
|
||||||
withHostnamed = false;
|
withHostnamed = false;
|
||||||
withHwdb = false;
|
withHwdb = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user