1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

kde5: avoid propagating dev outputs to reduce closure size

This commit is contained in:
Thomas Tuegel 2016-07-17 14:08:29 -05:00
parent d5bec1a145
commit e362442562

View file

@ -22,12 +22,13 @@ _ecmSharePaths=( \
"polkit-1" \
"sounds" \
"templates" \
"wallpapers" \
)
"wallpapers" )
_ecmPropagateNative() {
local target
for dir in ${_ecmSharePaths[@]}; do
if [ -d "$1/share/$dir" ]; then
target=$(readlink -m "$1/share/$dir")
if [ "$target" != "$1/share" ] && [ -d "$target" ]; then
propagateOnce propagatedNativeBuildInputs "$1"
if [ -z "$crossConfig" ]; then
propagateOnce propagatedUserEnvPkgs "$1"
@ -41,8 +42,10 @@ _ecmPropagateNative() {
envHooks+=(_ecmSetXdgDirs _ecmPropagate)
_ecmPropagate() {
local target
for dir in ${_ecmSharePaths[@]}; do
if [ -d "$1/share/$dir" ]; then
target=$(readlink -m "$1/share/$dir")
if [ "$target" != "$1/share" ] && [ -d "$target" ]; then
propagateOnce propagatedBuildInputs "$1"
propagateOnce propagatedUserEnvPkgs "$1"
addToSearchPathOnce RUNTIME_XDG_DATA_DIRS "$1/share"