mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
makeKDEWrapper: allow impure wrappers
This commit is contained in:
parent
fb375f1a2e
commit
300b5eb7ed
@ -1,15 +1,23 @@
|
||||
makeKDEWrapper() {
|
||||
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
|
||||
local old="$1"
|
||||
local new="$2"
|
||||
shift
|
||||
shift
|
||||
if [[ -z "$KDE_WRAPPER_IMPURE" ]]; then
|
||||
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
|
||||
makeQtWrapper "$old" "$new" ${KDESYCOCA:+--set KDESYCOCA "$KDESYCOCA"} "$@"
|
||||
else
|
||||
makeQtWrapper "$old" "$new" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
wrapKDEProgram() {
|
||||
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
|
||||
local prog="$1"
|
||||
shift
|
||||
if [[ -z "$KDE_WRAPPER_IMPURE" ]]; then
|
||||
KSERVICE_BUILD_KDESYCOCA=${KDESYCOCA:+1}
|
||||
wrapQtProgram "$prog" ${KDESYCOCA:+--set KDESYCOCA "$KDESYCOCA"} "$@"
|
||||
else
|
||||
wrapQtProgram "$prog" "$@"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user