Merge pull request #256832 from trofi/nut-strip-cgi-bin

nut: strip debug symbols from cgi-bin/
This commit is contained in:
Artturi 2023-09-23 10:47:23 +03:00 committed by GitHub
commit 0303313979
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Add `cgi-bin` to the default list to avoid pulling in whole
# of `gcc` into build closure.
stripDebugList = [ "cgi-bin" "lib" "lib32" "lib64" "libexec" "bin" "sbin" ];
postInstall = ''
substituteInPlace $out/lib/systemd/system-shutdown/nutshutdown \
--replace /bin/sleep "${coreutils}/bin/sleep" \