Merge commit 'b679e14' into HEAD

This commit is contained in:
Frederik Rietdijk 2017-08-07 13:19:09 +02:00
commit 2203908e5f
14 changed files with 378 additions and 336 deletions

View File

@ -1,28 +1,37 @@
# `-B@out@/bin' forces cc to use ld-wrapper.sh when calling ld. # `-B@out@/bin' forces cc to use ld-wrapper.sh when calling ld.
export NIX_CFLAGS_COMPILE="-B@out@/bin/ $NIX_CFLAGS_COMPILE" export NIX_CFLAGS_COMPILE="-B@out@/bin/ $NIX_CFLAGS_COMPILE"
# Export and assign separately in order that a failing $(..) will fail
# the script.
if [ -e @out@/nix-support/libc-cflags ]; then if [ -e @out@/nix-support/libc-cflags ]; then
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/libc-cflags) $NIX_CFLAGS_COMPILE" export NIX_CFLAGS_COMPILE
NIX_CFLAGS_COMPILE="$(< @out@/nix-support/libc-cflags) $NIX_CFLAGS_COMPILE"
fi fi
if [ -e @out@/nix-support/cc-cflags ]; then if [ -e @out@/nix-support/cc-cflags ]; then
export NIX_CFLAGS_COMPILE="$(cat @out@/nix-support/cc-cflags) $NIX_CFLAGS_COMPILE" export NIX_CFLAGS_COMPILE
NIX_CFLAGS_COMPILE="$(< @out@/nix-support/cc-cflags) $NIX_CFLAGS_COMPILE"
fi fi
if [ -e @out@/nix-support/gnat-cflags ]; then if [ -e @out@/nix-support/gnat-cflags ]; then
export NIX_GNATFLAGS_COMPILE="$(cat @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE" export NIX_GNATFLAGS_COMPILE
NIX_GNATFLAGS_COMPILE="$(< @out@/nix-support/gnat-cflags) $NIX_GNATFLAGS_COMPILE"
fi fi
if [ -e @out@/nix-support/libc-ldflags ]; then if [ -e @out@/nix-support/libc-ldflags ]; then
export NIX_LDFLAGS+=" $(cat @out@/nix-support/libc-ldflags)" export NIX_LDFLAGS
NIX_LDFLAGS+=" $(< @out@/nix-support/libc-ldflags)"
fi fi
if [ -e @out@/nix-support/cc-ldflags ]; then if [ -e @out@/nix-support/cc-ldflags ]; then
export NIX_LDFLAGS+=" $(cat @out@/nix-support/cc-ldflags)" export NIX_LDFLAGS
NIX_LDFLAGS+=" $(< @out@/nix-support/cc-ldflags)"
fi fi
if [ -e @out@/nix-support/libc-ldflags-before ]; then if [ -e @out@/nix-support/libc-ldflags-before ]; then
export NIX_LDFLAGS_BEFORE="$(cat @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE" export NIX_LDFLAGS_BEFORE
NIX_LDFLAGS_BEFORE="$(< @out@/nix-support/libc-ldflags-before) $NIX_LDFLAGS_BEFORE"
fi fi
export NIX_CC_WRAPPER_FLAGS_SET=1 export NIX_CC_WRAPPER_FLAGS_SET=1

View File

@ -1,18 +1,32 @@
hardeningFlags=(fortify stackprotector pic strictoverflow format relro bindnow) hardeningFlags=(fortify stackprotector pic strictoverflow format relro bindnow)
hardeningFlags+=("${hardeningEnable[@]}") # Intentionally word-split in case 'hardeningEnable' is defined in Nix.
hardeningFlags+=(${hardeningEnable[@]})
hardeningCFlags=() hardeningCFlags=()
hardeningLDFlags=() hardeningLDFlags=()
hardeningDisable=${hardeningDisable:-""}
hardeningDisable+=" @hardening_unsupported_flags@" declare -A hardeningDisableMap
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: Value of '$hardeningDisable': $hardeningDisable >&2; fi # Intentionally word-split in case 'hardeningDisable' is defined in Nix. The
# array expansion also prevents undefined variables from causing trouble with
# `set -u`.
for flag in ${hardeningDisable[@]} @hardening_unsupported_flags@
do
hardeningDisableMap[$flag]=1
done
if [[ ! $hardeningDisable =~ "all" ]]; then if [[ -n "$NIX_DEBUG" ]]; then
if [[ -n "$NIX_DEBUG" ]]; then echo 'HARDENING: Is active (not completely disabled with "all" flag)' >&2; fi printf 'HARDENING: disabled flags:' >&2
(( "${#hardeningDisableMap[@]}" )) && printf ' %q' "${!hardeningDisableMap[@]}" >&2
echo >&2
fi
if [[ -z "${hardeningDisableMap[all]}" ]]; then
if [[ -n "$NIX_DEBUG" ]]; then
echo 'HARDENING: Is active (not completely disabled with "all" flag)' >&2;
fi
for flag in "${hardeningFlags[@]}" for flag in "${hardeningFlags[@]}"
do do
if [[ ! "${hardeningDisable}" =~ "$flag" ]]; then if [[ -z "${hardeningDisableMap[$flag]}" ]]; then
case $flag in case $flag in
fortify) fortify)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling fortify >&2; fi if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling fortify >&2; fi
@ -20,7 +34,7 @@ if [[ ! $hardeningDisable =~ "all" ]]; then
;; ;;
stackprotector) stackprotector)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling stackprotector >&2; fi if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling stackprotector >&2; fi
hardeningCFlags+=('-fstack-protector-strong' '--param ssp-buffer-size=4') hardeningCFlags+=('-fstack-protector-strong' '--param' 'ssp-buffer-size=4')
;; ;;
pie) pie)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling CFlags -fPIE >&2; fi if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling CFlags -fPIE >&2; fi

View File

@ -1,6 +1,13 @@
#! @shell@ -e #! @shell@
set -e -o pipefail
shopt -s nullglob
path_backup="$PATH" path_backup="$PATH"
if [ -n "@coreutils_bin@" ]; then
# That @-vars are substituted separately from bash evaluation makes
# shellcheck think this, and others like it, are useless conditionals.
# shellcheck disable=SC2157
if [[ -n "@coreutils_bin@" && -n "@gnugrep_bin@" ]]; then
PATH="@coreutils_bin@/bin:@gnugrep_bin@/bin" PATH="@coreutils_bin@/bin:@gnugrep_bin@/bin"
fi fi
@ -19,16 +26,17 @@ source @out@/nix-support/utils.sh
# For instance, figure out if linker flags should be passed. # For instance, figure out if linker flags should be passed.
# GCC prints annoying warnings when they are not needed. # GCC prints annoying warnings when they are not needed.
dontLink=0 dontLink=0
getVersion=0
nonFlagArgs=0 nonFlagArgs=0
# shellcheck disable=SC2193
[[ "@prog@" = *++ ]] && isCpp=1 || isCpp=0 [[ "@prog@" = *++ ]] && isCpp=1 || isCpp=0
cppInclude=1 cppInclude=1
expandResponseParams "$@" expandResponseParams "$@"
n=0 declare -i n=0
while [ $n -lt ${#params[*]} ]; do nParams=${#params[@]}
while [ "$n" -lt "$nParams" ]; do
p=${params[n]} p=${params[n]}
p2=${params[$((n+1))]} p2=${params[n+1]}
if [ "$p" = -c ]; then if [ "$p" = -c ]; then
dontLink=1 dontLink=1
elif [ "$p" = -S ]; then elif [ "$p" = -S ]; then
@ -55,10 +63,10 @@ while [ $n -lt ${#params[*]} ]; do
nonFlagArgs=1 nonFlagArgs=1
elif [ "$p" = -m32 ]; then elif [ "$p" = -m32 ]; then
if [ -e @out@/nix-support/dynamic-linker-m32 ]; then if [ -e @out@/nix-support/dynamic-linker-m32 ]; then
NIX_LDFLAGS+=" -dynamic-linker $(cat @out@/nix-support/dynamic-linker-m32)" NIX_LDFLAGS+=" -dynamic-linker $(< @out@/nix-support/dynamic-linker-m32)"
fi fi
fi fi
n=$((n + 1)) n+=1
done done
# If we pass a flag like -Wl, then gcc will call the linker unless it # If we pass a flag like -Wl, then gcc will call the linker unless it
@ -71,26 +79,27 @@ if [ "$nonFlagArgs" = 0 ]; then
fi fi
# Optionally filter out paths not refering to the store. # Optionally filter out paths not refering to the store.
if [ "$NIX_ENFORCE_PURITY" = 1 -a -n "$NIX_STORE" ]; then if [[ "$NIX_ENFORCE_PURITY" = 1 && -n "$NIX_STORE" ]]; then
rest=() rest=()
n=0 nParams=${#params[@]}
while [ $n -lt ${#params[*]} ]; do declare -i n=0
while [ "$n" -lt "$nParams" ]; do
p=${params[n]} p=${params[n]}
p2=${params[$((n+1))]} p2=${params[n+1]}
if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then
skip $p skip "${p:2}"
elif [ "$p" = -L ] && badPath "$p2"; then elif [ "$p" = -L ] && badPath "$p2"; then
n=$((n + 1)); skip $p2 n+=1; skip "$p2"
elif [ "${p:0:3}" = -I/ ] && badPath "${p:2}"; then elif [ "${p:0:3}" = -I/ ] && badPath "${p:2}"; then
skip $p skip "${p:2}"
elif [ "$p" = -I ] && badPath "$p2"; then elif [ "$p" = -I ] && badPath "$p2"; then
n=$((n + 1)); skip $p2 n+=1; skip "$p2"
elif [ "$p" = -isystem ] && badPath "$p2"; then elif [ "$p" = -isystem ] && badPath "$p2"; then
n=$((n + 1)); skip $p2 n+=1; skip "$p2"
else else
rest+=("$p") rest+=("$p")
fi fi
n=$((n + 1)) n+=1
done done
params=("${rest[@]}") params=("${rest[@]}")
fi fi
@ -99,11 +108,11 @@ fi
# Clear march/mtune=native -- they bring impurity. # Clear march/mtune=native -- they bring impurity.
if [ "$NIX_ENFORCE_NO_NATIVE" = 1 ]; then if [ "$NIX_ENFORCE_NO_NATIVE" = 1 ]; then
rest=() rest=()
for i in "${params[@]}"; do for p in "${params[@]}"; do
if [[ "$i" = -m*=native ]]; then if [[ "$p" = -m*=native ]]; then
skip $i skip "$p"
else else
rest+=("$i") rest+=("$p")
fi fi
done done
params=("${rest[@]}") params=("${rest[@]}")
@ -116,23 +125,22 @@ if [[ "$isCpp" = 1 ]]; then
NIX_CFLAGS_LINK+=" $NIX_CXXSTDLIB_LINK" NIX_CFLAGS_LINK+=" $NIX_CXXSTDLIB_LINK"
fi fi
LD=@ldPath@/ld
source @out@/nix-support/add-hardening.sh source @out@/nix-support/add-hardening.sh
# Add the flags for the C compiler proper. # Add the flags for the C compiler proper.
extraAfter=($NIX_CFLAGS_COMPILE ${hardeningCFlags[@]}) extraAfter=($NIX_CFLAGS_COMPILE "${hardeningCFlags[@]}")
extraBefore=() extraBefore=()
if [ "$dontLink" != 1 ]; then if [ "$dontLink" != 1 ]; then
# Add the flags that should only be passed to the compiler when # Add the flags that should only be passed to the compiler when
# linking. # linking.
extraAfter+=($NIX_CFLAGS_LINK ${hardeningLDFlags[@]}) extraAfter+=($NIX_CFLAGS_LINK "${hardeningLDFlags[@]}")
# Add the flags that should be passed to the linker (and prevent # Add the flags that should be passed to the linker (and prevent
# `ld-wrapper' from adding NIX_LDFLAGS again). # `ld-wrapper' from adding NIX_LDFLAGS again).
for i in $NIX_LDFLAGS_BEFORE; do for i in $NIX_LDFLAGS_BEFORE; do
extraBefore=(${extraBefore[@]} "-Wl,$i") extraBefore+=("-Wl,$i")
done done
for i in $NIX_LDFLAGS; do for i in $NIX_LDFLAGS; do
if [ "${i:0:3}" = -L/ ]; then if [ "${i:0:3}" = -L/ ]; then
@ -155,18 +163,12 @@ fi
# Optionally print debug info. # Optionally print debug info.
if [ -n "$NIX_DEBUG" ]; then if [ -n "$NIX_DEBUG" ]; then
echo "extra flags before to @prog@:" >&2
printf " %q\n" "${extraBefore[@]}" >&2
echo "original flags to @prog@:" >&2 echo "original flags to @prog@:" >&2
for i in "${params[@]}"; do printf " %q\n" "${params[@]}" >&2
echo " $i" >&2 echo "extra flags after to @prog@:" >&2
done printf " %q\n" "${extraAfter[@]}" >&2
echo "extraBefore flags to @prog@:" >&2
for i in ${extraBefore[@]}; do
echo " $i" >&2
done
echo "extraAfter flags to @prog@:" >&2
for i in ${extraAfter[@]}; do
echo " $i" >&2
done
fi fi
if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then
@ -174,4 +176,4 @@ if [ -n "$NIX_CC_WRAPPER_EXEC_HOOK" ]; then
fi fi
PATH="$path_backup" PATH="$path_backup"
exec @prog@ ${extraBefore[@]} "${params[@]}" "${extraAfter[@]}" exec @prog@ "${extraBefore[@]}" "${params[@]}" "${extraAfter[@]}"

View File

@ -1,5 +1,11 @@
#! @shell@ -e #! @shell@
set -e -o pipefail
shopt -s nullglob
path_backup="$PATH" path_backup="$PATH"
# phase separation makes this look useless
# shellcheck disable=SC2157
if [ -n "@coreutils_bin@" ]; then if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin" PATH="@coreutils_bin@/bin"
fi fi
@ -18,7 +24,6 @@ source @out@/nix-support/utils.sh
# Figure out if linker flags should be passed. GCC prints annoying # Figure out if linker flags should be passed. GCC prints annoying
# warnings when they are not needed. # warnings when they are not needed.
dontLink=0 dontLink=0
getVersion=0
nonFlagArgs=0 nonFlagArgs=0
for i in "$@"; do for i in "$@"; do
@ -30,7 +35,7 @@ for i in "$@"; do
nonFlagArgs=1 nonFlagArgs=1
elif [ "$i" = -m32 ]; then elif [ "$i" = -m32 ]; then
if [ -e @out@/nix-support/dynamic-linker-m32 ]; then if [ -e @out@/nix-support/dynamic-linker-m32 ]; then
NIX_LDFLAGS="$NIX_LDFLAGS -dynamic-linker $(cat @out@/nix-support/dynamic-linker-m32)" NIX_LDFLAGS+=" -dynamic-linker $(< @out@/nix-support/dynamic-linker-m32)"
fi fi
fi fi
done done
@ -47,24 +52,20 @@ fi
# Optionally filter out paths not refering to the store. # Optionally filter out paths not refering to the store.
params=("$@") params=("$@")
if [ "$NIX_ENFORCE_PURITY" = 1 -a -n "$NIX_STORE" ]; then if [[ "$NIX_ENFORCE_PURITY" = 1 && -n "$NIX_STORE" ]]; then
rest=() rest=()
n=0 for p in "${params[@]}"; do
while [ $n -lt ${#params[*]} ]; do
p=${params[n]}
p2=${params[$((n+1))]}
if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then
skip $p skip "${p:2}"
elif [ "${p:0:3}" = -I/ ] && badPath "${p:2}"; then elif [ "${p:0:3}" = -I/ ] && badPath "${p:2}"; then
skip $p skip "${p:2}"
elif [ "${p:0:4}" = -aI/ ] && badPath "${p:3}"; then elif [ "${p:0:4}" = -aI/ ] && badPath "${p:3}"; then
skip $p skip "${p:2}"
elif [ "${p:0:4}" = -aO/ ] && badPath "${p:3}"; then elif [ "${p:0:4}" = -aO/ ] && badPath "${p:3}"; then
skip $p skip "${p:2}"
else else
rest+=("$p") rest+=("$p")
fi fi
n=$((n + 1))
done done
params=("${rest[@]}") params=("${rest[@]}")
fi fi
@ -73,11 +74,11 @@ fi
# Clear march/mtune=native -- they bring impurity. # Clear march/mtune=native -- they bring impurity.
if [ "$NIX_ENFORCE_NO_NATIVE" = 1 ]; then if [ "$NIX_ENFORCE_NO_NATIVE" = 1 ]; then
rest=() rest=()
for i in "${params[@]}"; do for p in "${params[@]}"; do
if [[ "$i" = -m*=native ]]; then if [[ "$p" = -m*=native ]]; then
skip $i skip "$p"
else else
rest+=("$i") rest+=("$p")
fi fi
done done
params=("${rest[@]}") params=("${rest[@]}")
@ -88,30 +89,34 @@ fi
extraAfter=($NIX_GNATFLAGS_COMPILE) extraAfter=($NIX_GNATFLAGS_COMPILE)
extraBefore=() extraBefore=()
if [ "`basename $0`x" = "gnatmakex" ]; then if [ "$(basename "$0")x" = "gnatmakex" ]; then
extraBefore=("--GNATBIND=@out@/bin/gnatbind --GNATLINK=@out@/bin/gnatlink ") extraBefore=("--GNATBIND=@out@/bin/gnatbind" "--GNATLINK=@out@/bin/gnatlink ")
fi fi
# Add the flags that should be passed to the linker (and prevent #if [ "$dontLink" != 1 ]; then
# `ld-wrapper' from adding NIX_LDFLAGS again). # # Add the flags that should be passed to the linker (and prevent
#for i in $NIX_LDFLAGS_BEFORE; do # # `ld-wrapper' from adding NIX_LDFLAGS again).
# extraBefore=(${extraBefore[@]} "-largs $i") # for i in $NIX_LDFLAGS_BEFORE; do
#done # extraBefore+=("-largs" "$i")
# done
# for i in $NIX_LDFLAGS; do
# if [ "${i:0:3}" = -L/ ]; then
# extraAfter+=("$i")
# else
# extraAfter+=("-largs" "$i")
# fi
# done
# export NIX_LDFLAGS_SET=1
#fi
# Optionally print debug info. # Optionally print debug info.
if [ -n "$NIX_DEBUG" ]; then if [ -n "$NIX_DEBUG" ]; then
echo "extra flags before to @prog@:" >&2
printf " %q\n" "${extraBefore[@]}" >&2
echo "original flags to @prog@:" >&2 echo "original flags to @prog@:" >&2
for i in "${params[@]}"; do printf " %q\n" "${params[@]}" >&2
echo " $i" >&2 echo "extra flags after to @prog@:" >&2
done printf " %q\n" "${extraAfter[@]}" >&2
echo "extraBefore flags to @prog@:" >&2
for i in ${extraBefore[@]}; do
echo " $i" >&2
done
echo "extraAfter flags to @prog@:" >&2
for i in ${extraAfter[@]}; do
echo " $i" >&2
done
fi fi
if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then
@ -119,4 +124,4 @@ if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then
fi fi
PATH="$path_backup" PATH="$path_backup"
exec @prog@ ${extraBefore[@]} "${params[@]}" ${extraAfter[@]} exec @prog@ "${extraBefore[@]}" "${params[@]}" "${extraAfter[@]}"

View File

@ -1,33 +1,37 @@
#! @shell@ -e #! @shell@
set -e -o pipefail
shopt -s nullglob
# Add the flags for the GNAT compiler proper. # Add the flags for the GNAT compiler proper.
extraAfter="--GCC=@out@/bin/gcc" extraAfter=("--GCC=@out@/bin/gcc")
extraBefore=() extraBefore=()
# Add the flags that should be passed to the linker (and prevent ## Add the flags that should be passed to the linker (and prevent
# `ld-wrapper' from adding NIX_LDFLAGS again). ## `ld-wrapper' from adding NIX_LDFLAGS again).
#for i in $NIX_LDFLAGS_BEFORE; do #for i in $NIX_LDFLAGS_BEFORE; do
# extraBefore=(${extraBefore[@]} "-largs $i") # extraBefore+=("-largs" "$i")
#done #done
#for i in $NIX_LDFLAGS; do
# if [ "${i:0:3}" = -L/ ]; then
# extraAfter+=("$i")
# else
# extraAfter+=("-largs" "$i")
# fi
#done
#export NIX_LDFLAGS_SET=1
# Optionally print debug info. # Optionally print debug info.
if [ -n "$NIX_DEBUG" ]; then if [ -n "$NIX_DEBUG" ]; then
echo "extra flags before to @prog@:" >&2
printf " %q\n" "${extraBefore[@]}" >&2
echo "original flags to @prog@:" >&2 echo "original flags to @prog@:" >&2
for i in "$@"; do printf " %q\n" "$@" >&2
echo " $i" >&2 echo "extra flags after to @prog@:" >&2
done printf " %q\n" "${extraAfter[@]}" >&2
echo "extraBefore flags to @prog@:" >&2
for i in ${extraBefore[@]}; do
echo " $i" >&2
done
echo "extraAfter flags to @prog@:" >&2
for i in ${extraAfter[@]}; do
echo " $i" >&2
done
fi fi
if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then if [ -n "$NIX_GNAT_WRAPPER_EXEC_HOOK" ]; then
source "$NIX_GNAT_WRAPPER_EXEC_HOOK" source "$NIX_GNAT_WRAPPER_EXEC_HOOK"
fi fi
exec @prog@ ${extraBefore[@]} "$@" ${extraAfter[@]} exec @prog@ "${extraBefore[@]}" "$@" "${extraAfter[@]}"

View File

@ -1,40 +1,25 @@
#!@shell@ #!@shell@
set -eu -o pipefail
shopt -s nullglob
set -e declare -a args=("$@")
set -u
# I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'( # I've also tried adding -z direct and -z lazyload, but it gave too many problems with C++ exceptions :'(
# Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3 # Also made sure libgcc would not be lazy-loaded, as suggested here: https://www.illumos.org/issues/2534#note-3
# but still no success. # but still no success.
cmd="@ld@ -z ignore" declare -a argsBefore=(-z ignore) argsAfter=()
args=("$@");
# This loop makes sure all -L arguments are before -l arguments, or ld may complain it cannot find a library. # This loop makes sure all -L arguments are before -l arguments, or ld may complain it cannot find a library.
# GNU binutils does not have this problem: # GNU binutils does not have this problem:
# http://stackoverflow.com/questions/5817269/does-the-order-of-l-and-l-options-in-the-gnu-linker-matter # http://stackoverflow.com/questions/5817269/does-the-order-of-l-and-l-options-in-the-gnu-linker-matter
i=0; while (( $# )); do
while [[ $i -lt $# ]]; do
case "${args[$i]}" in case "${args[$i]}" in
-L) cmd="$cmd ${args[$i]} ${args[($i+1)]}"; i=($i+1); ;; -L) argsBefore+=("$1" "$2"); shift ;;
-L*) cmd="$cmd ${args[$i]}" ;; -L?*) argsBefore+=("$1") ;;
*) ;; *) argsAfter+=("$1") ;;
esac esac
i=($i+1); shift
done
i=0;
while [[ $i -lt $# ]]; do
case "${args[$i]}" in
-L) i=($i+1); ;;
-L*) ;;
*) cmd="$cmd ${args[$i]}" ;;
esac
i=($i+1);
done done
# Trace: # Trace:
set -x set -x
exec $cmd exec "@ld@" "${argsBefore[@]}" "${argsAfter[@]}"
exit 0

View File

@ -1,6 +1,11 @@
#! @shell@ -e #! @shell@
set -e -o pipefail
shopt -s nullglob shopt -s nullglob
path_backup="$PATH" path_backup="$PATH"
# phase separation makes this look useless
# shellcheck disable=SC2157
if [ -n "@coreutils_bin@" ]; then if [ -n "@coreutils_bin@" ]; then
PATH="@coreutils_bin@/bin" PATH="@coreutils_bin@/bin"
fi fi
@ -18,14 +23,14 @@ source @out@/nix-support/utils.sh
# Optionally filter out paths not refering to the store. # Optionally filter out paths not refering to the store.
expandResponseParams "$@" expandResponseParams "$@"
if [ "$NIX_ENFORCE_PURITY" = 1 -a -n "$NIX_STORE" \ if [[ "$NIX_ENFORCE_PURITY" = 1 && -n "$NIX_STORE"
-a \( -z "$NIX_IGNORE_LD_THROUGH_GCC" -o -z "$NIX_LDFLAGS_SET" \) ]; then && ( -z "$NIX_IGNORE_LD_THROUGH_GCC" || -z "$NIX_LDFLAGS_SET" ) ]]; then
rest=() rest=()
nParams=${#params[@]} nParams=${#params[@]}
declare -i n=0 declare -i n=0
while [ $n -lt $nParams ]; do while [ "$n" -lt "$nParams" ]; do
p=${params[n]} p=${params[n]}
p2=${params[$((n+1))]} p2=${params[n+1]}
if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then if [ "${p:0:3}" = -L/ ] && badPath "${p:2}"; then
skip "${p:2}" skip "${p:2}"
elif [ "$p" = -L ] && badPath "$p2"; then elif [ "$p" = -L ] && badPath "$p2"; then
@ -49,18 +54,17 @@ if [ "$NIX_ENFORCE_PURITY" = 1 -a -n "$NIX_STORE" \
params=("${rest[@]}") params=("${rest[@]}")
fi fi
LD=@prog@
source @out@/nix-support/add-hardening.sh source @out@/nix-support/add-hardening.sh
extra=("${hardeningLDFlags[@]}") extraAfter=("${hardeningLDFlags[@]}")
extraBefore=() extraBefore=()
if [ -z "$NIX_LDFLAGS_SET" ]; then if [ -z "$NIX_LDFLAGS_SET" ]; then
extra+=($NIX_LDFLAGS) extraAfter+=($NIX_LDFLAGS)
extraBefore+=($NIX_LDFLAGS_BEFORE) extraBefore+=($NIX_LDFLAGS_BEFORE)
fi fi
extra+=($NIX_LDFLAGS_AFTER $NIX_LDFLAGS_HARDEN) extraAfter+=($NIX_LDFLAGS_AFTER $NIX_LDFLAGS_HARDEN)
declare -a libDirs declare -a libDirs
declare -A libs declare -A libs
@ -69,7 +73,7 @@ relocatable=
# Find all -L... switches for rpath, and relocatable flags for build id. # Find all -L... switches for rpath, and relocatable flags for build id.
if [ "$NIX_DONT_SET_RPATH" != 1 ] || [ "$NIX_SET_BUILD_ID" = 1 ]; then if [ "$NIX_DONT_SET_RPATH" != 1 ] || [ "$NIX_SET_BUILD_ID" = 1 ]; then
prev= prev=
for p in "${params[@]}" "${extra[@]}"; do for p in "${extraBefore[@]}" "${params[@]}" "${extraAfter[@]}"; do
case "$prev" in case "$prev" in
-L) -L)
libDirs+=("$p") libDirs+=("$p")
@ -127,7 +131,7 @@ if [ "$NIX_DONT_SET_RPATH" != 1 ]; then
libs["$file"]= libs["$file"]=
if [ ! "${rpaths[$dir]}" ]; then if [ ! "${rpaths[$dir]}" ]; then
rpaths["$dir"]=1 rpaths["$dir"]=1
extra+=(-rpath "$dir") extraAfter+=(-rpath "$dir")
fi fi
fi fi
done done
@ -138,16 +142,18 @@ fi
# Only add --build-id if this is a final link. FIXME: should build gcc # Only add --build-id if this is a final link. FIXME: should build gcc
# with --enable-linker-build-id instead? # with --enable-linker-build-id instead?
if [ "$NIX_SET_BUILD_ID" = 1 ] && [ ! "$relocatable" ]; then if [ "$NIX_SET_BUILD_ID" = 1 ] && [ ! "$relocatable" ]; then
extra+=(--build-id) extraAfter+=(--build-id)
fi fi
# Optionally print debug info. # Optionally print debug info.
if [ -n "$NIX_DEBUG" ]; then if [ -n "$NIX_DEBUG" ]; then
echo "extra flags before to @prog@:" >&2
printf " %q\n" "${extraBefore[@]}" >&2
echo "original flags to @prog@:" >&2 echo "original flags to @prog@:" >&2
printf " %q\n" "${params[@]}" >&2 printf " %q\n" "${params[@]}" >&2
echo "extra flags to @prog@:" >&2 echo "extra flags after to @prog@:" >&2
printf " %q\n" "${extraBefore[@]}" "${extra[@]}" >&2 printf " %q\n" "${extraAfter[@]}" >&2
fi fi
if [ -n "$NIX_LD_WRAPPER_EXEC_HOOK" ]; then if [ -n "$NIX_LD_WRAPPER_EXEC_HOOK" ]; then
@ -155,4 +161,4 @@ if [ -n "$NIX_LD_WRAPPER_EXEC_HOOK" ]; then
fi fi
PATH="$path_backup" PATH="$path_backup"
exec @prog@ "${extraBefore[@]}" "${params[@]}" "${extra[@]}" exec @prog@ "${extraBefore[@]}" "${params[@]}" "${extraAfter[@]}"

View File

@ -1,42 +1,47 @@
addCVars () { addCVars () {
if [ -d $1/include ]; then if [[ -d "$1/include" ]]; then
export NIX_CFLAGS_COMPILE+=" ${ccIncludeFlag:--isystem} $1/include" export NIX_CFLAGS_COMPILE+=" ${ccIncludeFlag:--isystem} $1/include"
fi fi
if [ -d $1/lib64 -a ! -L $1/lib64 ]; then if [[ -d "$1/lib64" && ! -L "$1/lib64" ]]; then
export NIX_LDFLAGS+=" -L$1/lib64" export NIX_LDFLAGS+=" -L$1/lib64"
fi fi
if [ -d $1/lib ]; then if [[ -d "$1/lib" ]]; then
export NIX_LDFLAGS+=" -L$1/lib" export NIX_LDFLAGS+=" -L$1/lib"
fi fi
if test -d $1/Library/Frameworks; then if [[ -d "$1/Library/Frameworks" ]]; then
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -F$1/Library/Frameworks" export NIX_CFLAGS_COMPILE+=" -F$1/Library/Frameworks"
fi fi
} }
envHooks+=(addCVars) envHooks+=(addCVars)
# Note: these come *after* $out in the PATH (see setup.sh). # Note 1: these come *after* $out in the PATH (see setup.sh).
# Note 2: phase separation makes this look useless to shellcheck.
# shellcheck disable=SC2157
if [ -n "@cc@" ]; then if [ -n "@cc@" ]; then
addToSearchPath _PATH @cc@/bin addToSearchPath _PATH @cc@/bin
fi fi
# shellcheck disable=SC2157
if [ -n "@binutils_bin@" ]; then if [ -n "@binutils_bin@" ]; then
addToSearchPath _PATH @binutils_bin@/bin addToSearchPath _PATH @binutils_bin@/bin
fi fi
# shellcheck disable=SC2157
if [ -n "@libc_bin@" ]; then if [ -n "@libc_bin@" ]; then
addToSearchPath _PATH @libc_bin@/bin addToSearchPath _PATH @libc_bin@/bin
fi fi
# shellcheck disable=SC2157
if [ -n "@coreutils_bin@" ]; then if [ -n "@coreutils_bin@" ]; then
addToSearchPath _PATH @coreutils_bin@/bin addToSearchPath _PATH @coreutils_bin@/bin
fi fi
if [ -z "$crossConfig" ]; then if [ -z "${crossConfig:-}" ]; then
ENV_PREFIX="" ENV_PREFIX=""
else else
ENV_PREFIX="BUILD_" ENV_PREFIX="BUILD_"

View File

@ -24,11 +24,15 @@ badPath() {
} }
expandResponseParams() { expandResponseParams() {
params=("$@") declare -g params=("$@")
local arg local arg
for arg in "$@"; do for arg in "$@"; do
if [[ "$arg" == @* ]]; then if [[ "$arg" == @* ]]; then
# phase separation makes this look useless
# shellcheck disable=SC2157
if [ -n "@expandResponseParams@" ]; then if [ -n "@expandResponseParams@" ]; then
# params is used by caller
#shellcheck disable=SC2034
readarray -d '' params < <("@expandResponseParams@" "$@") readarray -d '' params < <("@expandResponseParams@" "$@")
return 0 return 0
else else

View File

@ -39,7 +39,7 @@ wrapGAppsHook() {
targetDirs=( "${prefix}/bin" "${prefix}/libexec" ) targetDirs=( "${prefix}/bin" "${prefix}/libexec" )
for targetDir in "${targetDirs[@]}"; do for targetDir in "${targetDirs[@]}"; do
if [[ -d "${targetDir}" ]]; then if [[ -d "${targetDir}" ]]; then
find "${targetDir}" -type f -executable -print0 \ find -L "${targetDir}" -type f -executable -print0 \
| while IFS= read -r -d '' file; do | while IFS= read -r -d '' file; do
echo "Wrapping program ${file}" echo "Wrapping program ${file}"
wrapProgram "${file}" "${gappsWrapperArgs[@]}" wrapProgram "${file}" "${gappsWrapperArgs[@]}"

View File

@ -1,15 +1,15 @@
{ stdenv, intltool, fetchurl, gdk_pixbuf, adwaita-icon-theme { stdenv, intltool, fetchurl, gdk_pixbuf, adwaita-icon-theme
, telepathy_glib, gjs, itstool, telepathy_idle, libxml2 , telepathy_glib, gjs, itstool, telepathy_idle, libxml2
, pkgconfig, gtk3, glib, librsvg, libsecret, libsoup , pkgconfig, gtk3, glib, librsvg, libsecret, libsoup
, gnome3, wrapGAppsHook }: , gnome3, wrapGAppsHook, telepathy_logger }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src; inherit (import ./src.nix fetchurl) name src;
propagatedUserEnvPkgs = [ telepathy_idle ]; propagatedUserEnvPkgs = [ telepathy_idle telepathy_logger ];
buildInputs = [ pkgconfig gtk3 glib intltool itstool adwaita-icon-theme wrapGAppsHook buildInputs = [ pkgconfig gtk3 glib intltool itstool adwaita-icon-theme wrapGAppsHook gnome3.gsettings_desktop_schemas
telepathy_glib gjs gdk_pixbuf librsvg libxml2 libsecret libsoup ]; telepathy_glib telepathy_logger gjs gdk_pixbuf librsvg libxml2 libsecret libsoup ];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -19,6 +19,5 @@ stdenv.mkDerivation rec {
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
license = licenses.gpl2; license = licenses.gpl2;
platforms = platforms.linux; platforms = platforms.linux;
broken = true;
}; };
} }

View File

@ -1,16 +1,26 @@
{ stdenv, fetchurl }: { stdenv, fetchpatch, fetchurl }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "expat-2.2.2"; name = "expat-2.2.3";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/expat/${name}.tar.bz2"; url = "mirror://sourceforge/expat/${name}.tar.bz2";
sha256 = "0ik0r39ala9c6hj4kxrk933klgwkzlkbrfhvhaykx8l1rwgr2xj3"; sha256 = "0pyfma0sv4vif17kfv7xh2l2hl6skgw266a9cwm00p7q0bxr065k";
}; };
outputs = [ "out" "dev" ]; # TODO: fix referrers outputs = [ "out" "dev" ]; # TODO: fix referrers
outputBin = "dev"; outputBin = "dev";
patches = [
(fetchpatch {
name = "fix-aarch-build.patch";
url = "https://github.com/libexpat/libexpat/commit/d98d4399174fd6f71d70e7bd89993a0e7346753d.patch";
sha256 = "0z89wb4mzyf7vvl6kbflk5w1z7yc39jwvs3mkznin5agj34x063w";
stripLen = 1;
excludes = [ "coverage.sh" ];
})
];
configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; configureFlags = stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
outputMan = "dev"; # tiny page for a dev tool outputMan = "dev"; # tiny page for a dev tool

View File

@ -1,3 +1,2 @@
WGET_ARGS=( http://download.qt.io/official_releases/qt/5.9/5.9.0/submodules/ \ WGET_ARGS=( http://download.qt.io/official_releases/qt/5.9/5.9.1/submodules/ \
http://download.qt.io/community_releases/5.9/5.9.0-final/ \
-A '*.tar.xz' ) -A '*.tar.xz' )

View File

@ -3,331 +3,331 @@
{ {
qt3d = { qt3d = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qt3d-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qt3d-opensource-src-5.9.1.tar.xz";
sha256 = "1a8v70svsqxissj0rmna71f9g2w56w0zgk5s41m5acgvi9byzywy"; sha256 = "15j9znfnxch1n6fwz9ngi30msdzh0wlpykl53cs8g2fp2awfa7sg";
name = "qt3d-opensource-src-5.9.0.tar.xz"; name = "qt3d-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtactiveqt = { qtactiveqt = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtactiveqt-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtactiveqt-opensource-src-5.9.1.tar.xz";
sha256 = "0d8n4q3r54kkb340ap802cc97jznhffzx1m7h2775q0h2nzvmiyp"; sha256 = "07zq60xg7nnlny7qgj6dk1ibg3fzhbdh78gpd0s6x1n822iyislg";
name = "qtactiveqt-opensource-src-5.9.0.tar.xz"; name = "qtactiveqt-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtandroidextras = { qtandroidextras = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtandroidextras-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtandroidextras-opensource-src-5.9.1.tar.xz";
sha256 = "0xq3nd8nlbmd617lq60nb2lxblc84lk8wh14n18b3q81nsvc2yln"; sha256 = "0nq879jsa2z1l5q3n0hhiv15mzfm5c6s7zfblcc10sgim90p5mjj";
name = "qtandroidextras-opensource-src-5.9.0.tar.xz"; name = "qtandroidextras-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtbase = { qtbase = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtbase-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtbase-opensource-src-5.9.1.tar.xz";
sha256 = "0v19spxa4sfq0a35nab9n8n2s3jd0443px0k45zhhg103apv4zi6"; sha256 = "1ikm896jzyfyjv2qv8n3fd81sxb4y24zkygx36865ygzyvlj36mw";
name = "qtbase-opensource-src-5.9.0.tar.xz"; name = "qtbase-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtcanvas3d = { qtcanvas3d = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtcanvas3d-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtcanvas3d-opensource-src-5.9.1.tar.xz";
sha256 = "1jrv79rhpqyp4ip5fnf40plqcq9byl1fy8287ghq4jfhpm9bq5yq"; sha256 = "10fy8wqfw2yhha6lyky5g1a72137aj8pji7mk0wjnggh629z12sb";
name = "qtcanvas3d-opensource-src-5.9.0.tar.xz"; name = "qtcanvas3d-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtcharts = { qtcharts = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtcharts-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtcharts-opensource-src-5.9.1.tar.xz";
sha256 = "17m86csjymvcnprk8m4y6hx1qhlk9811rhqwwkqdymyyswx6xs3l"; sha256 = "180df5v7i1ki8hc3lgi6jcfdyz7f19pb73dvfkw402wa2gfcna3k";
name = "qtcharts-opensource-src-5.9.0.tar.xz"; name = "qtcharts-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtconnectivity = { qtconnectivity = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtconnectivity-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtconnectivity-opensource-src-5.9.1.tar.xz";
sha256 = "0k52acsywr849nw86dfjqcv1lqgnq01akqrm0qjs7ysm1ayg8mcp"; sha256 = "1mbzmqix0388iq20a1ljd1pgdq259rm1xzp9kx8gigqpamqqnqs0";
name = "qtconnectivity-opensource-src-5.9.0.tar.xz"; name = "qtconnectivity-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtdatavis3d = { qtdatavis3d = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtdatavis3d-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtdatavis3d-opensource-src-5.9.1.tar.xz";
sha256 = "1wvilla48jlw6zv2hc32ra0bs8p13s68sqbgr91bzbn7h7qaysv9"; sha256 = "14d1q07winh6n1bkc616dapwfnsfkcjyg5zngdqjdj9mza8ang13";
name = "qtdatavis3d-opensource-src-5.9.0.tar.xz"; name = "qtdatavis3d-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtdeclarative = { qtdeclarative = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtdeclarative-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtdeclarative-opensource-src-5.9.1.tar.xz";
sha256 = "1g9yz7q2laqs80m4i6zngxrq3pd7z5khr2f48glma8cmiw4p56rw"; sha256 = "1zwlxrgraxhlsdkwsai3pjbz7f3a6rsnsg2mjrpay6cz3af6rznj";
name = "qtdeclarative-opensource-src-5.9.0.tar.xz"; name = "qtdeclarative-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtdoc = { qtdoc = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtdoc-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtdoc-opensource-src-5.9.1.tar.xz";
sha256 = "1k67i67npcjyr89hlnljjxw5jkh49ql8yzw9m9b4gld7nk9dr4kr"; sha256 = "1d2kk9wzm2261ap87nyf743a4662gll03gz5yh5qi7k620lk372x";
name = "qtdoc-opensource-src-5.9.0.tar.xz"; name = "qtdoc-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtgamepad = { qtgamepad = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtgamepad-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtgamepad-opensource-src-5.9.1.tar.xz";
sha256 = "0lpj2qspidx6s2568m5v40j2zdnrl8zwjdp40zg4y2q6hy2gg597"; sha256 = "055w4649zi93q1sl32ngqwgnl2vxw1idnm040s9gjgjb67gi81zi";
name = "qtgamepad-opensource-src-5.9.0.tar.xz"; name = "qtgamepad-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtgraphicaleffects = { qtgraphicaleffects = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtgraphicaleffects-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtgraphicaleffects-opensource-src-5.9.1.tar.xz";
sha256 = "1cz4ykwlm1c0hbv4d8y07bwyz87nkz5l9ss3f65vadm8zcabqw55"; sha256 = "1zsr3a5dsmpvrb5h4m4h42wqmkvkks3d8mmyrx4k0mfr6s7c71jz";
name = "qtgraphicaleffects-opensource-src-5.9.0.tar.xz"; name = "qtgraphicaleffects-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtimageformats = { qtimageformats = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtimageformats-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtimageformats-opensource-src-5.9.1.tar.xz";
sha256 = "10alm3kz3md835hf5hx7322bak9pp9igi2knvymxsjqr8x87jq94"; sha256 = "0iwa3dys5rv706cpxwhmgircv783pmlyl1yrsc5i0rha643y7zkr";
name = "qtimageformats-opensource-src-5.9.0.tar.xz"; name = "qtimageformats-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtlocation = { qtlocation = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtlocation-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtlocation-opensource-src-5.9.1.tar.xz";
sha256 = "1xia1y1pjill9m880rgmsl2zshcg1nvwkyfdb2lz8g8x9fj0pvp3"; sha256 = "058mgvlaml9rkfhkpr1n3avhi12zlva131sqhbwj4lwwyqfkri2b";
name = "qtlocation-opensource-src-5.9.0.tar.xz"; name = "qtlocation-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtmacextras = { qtmacextras = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtmacextras-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtmacextras-opensource-src-5.9.1.tar.xz";
sha256 = "1przk4dbyjdy18a5x1c4m04v40d70nkgwc569zjccpbqz0a0agbx"; sha256 = "0096g9l2hwsiwlzfjkw7rhkdnyvb5gzjzyjjg9kqfnsagbwscv11";
name = "qtmacextras-opensource-src-5.9.0.tar.xz"; name = "qtmacextras-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtmultimedia = { qtmultimedia = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtmultimedia-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtmultimedia-opensource-src-5.9.1.tar.xz";
sha256 = "1vk0vlp9wapj1pip5v0v0sxynlig38m3a1qbjhid3rm27f971cqb"; sha256 = "1r76zvbv6wwb7lgw9jwlx382iyw34i1amxaypb5bg3j1niqvx3z4";
name = "qtmultimedia-opensource-src-5.9.0.tar.xz"; name = "qtmultimedia-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtnetworkauth = { qtnetworkauth = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtnetworkauth-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtnetworkauth-opensource-src-5.9.1.tar.xz";
sha256 = "157byylzir8cr5y407qpjmz9ag0b0qaz99n99nl2xjxkyll8ph0g"; sha256 = "1fgax3p7lqcz29z2n1qxnfpkj3wxq1x9bfx61q6nss1fs74pxzra";
name = "qtnetworkauth-opensource-src-5.9.0.tar.xz"; name = "qtnetworkauth-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtpurchasing = { qtpurchasing = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtpurchasing-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtpurchasing-opensource-src-5.9.1.tar.xz";
sha256 = "0xcka24qjdydqhf7fhn2i2ycn3zsi4vzqv9s77wzmaksrazwb13q"; sha256 = "0b1hlaq6rb7d6b6h8kqd26klcpzf9vcdjrv610kdj0drb00jg3ss";
name = "qtpurchasing-opensource-src-5.9.0.tar.xz"; name = "qtpurchasing-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtquickcontrols = { qtquickcontrols = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtquickcontrols-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtquickcontrols-opensource-src-5.9.1.tar.xz";
sha256 = "1zjl2wp5407y8iabwi30j4jpxh2j4y0ijb5jvvpdq583nbzgyg8p"; sha256 = "0bpc465q822phw3dcbddn70wj1fjlc2hxskkp1z9gl7r23hx03jj";
name = "qtquickcontrols-opensource-src-5.9.0.tar.xz"; name = "qtquickcontrols-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtquickcontrols2 = { qtquickcontrols2 = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtquickcontrols2-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtquickcontrols2-opensource-src-5.9.1.tar.xz";
sha256 = "170xgk4jw1b1rpq8838dc5sb0dyv1jap3yfgg5hymrjzrk0nzaq9"; sha256 = "1zq86kqz85wm3n84jcxkxw5x1mrhkqzldkigf8xm3l8j24rf0fr0";
name = "qtquickcontrols2-opensource-src-5.9.0.tar.xz"; name = "qtquickcontrols2-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtremoteobjects = { qtremoteobjects = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtremoteobjects-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtremoteobjects-opensource-src-5.9.1.tar.xz";
sha256 = "0f8dv7sswzck0l2md1zl44cbvi54mm6iiz4qh2hh3vqwyj9k5xyr"; sha256 = "10kwq0fgmi6zsqhb6s1nkcydpyl8d8flzdpgmyj50c4h2xhg2km0";
name = "qtremoteobjects-opensource-src-5.9.0.tar.xz"; name = "qtremoteobjects-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtscript = { qtscript = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtscript-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtscript-opensource-src-5.9.1.tar.xz";
sha256 = "0r697ap324l8lnbqbhrrqzsl9k4nmk6lcijxlaqn3ksxgfzbcciw"; sha256 = "13qq2mjfhqdcvkmzrgxg1gr5kww1ygbwb7r71xxl6rjzbn30hshp";
name = "qtscript-opensource-src-5.9.0.tar.xz"; name = "qtscript-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtscxml = { qtscxml = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtscxml-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtscxml-opensource-src-5.9.1.tar.xz";
sha256 = "0f2jnhl30ij6y4wzlvgjsqgpaywq4g0wc4yjw8s888vcfl062nb4"; sha256 = "1m3b6wg5hqasdfc5igpj9bq3czql5kkvvn3rx1ig508kdlh5i5s0";
name = "qtscxml-opensource-src-5.9.0.tar.xz"; name = "qtscxml-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtsensors = { qtsensors = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtsensors-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtsensors-opensource-src-5.9.1.tar.xz";
sha256 = "0jdaw0i6rirs66x4cjh8l24fsyp020x1mv1psyf3ffbkdq1pngjx"; sha256 = "1772x7r6y9xv2sv0w2dfz2yhagsq5bpa9kdpzg0qikccmabr7was";
name = "qtsensors-opensource-src-5.9.0.tar.xz"; name = "qtsensors-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtserialbus = { qtserialbus = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtserialbus-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtserialbus-opensource-src-5.9.1.tar.xz";
sha256 = "1zw32ha5hz7zsdp8m2dk58kivxd66vkzijbnhi8jvzjp4nf0pm1f"; sha256 = "1hzk377c3zl4dm5hxwvpxg2w096m160448y9df6v6l8xpzpzxafa";
name = "qtserialbus-opensource-src-5.9.0.tar.xz"; name = "qtserialbus-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtserialport = { qtserialport = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtserialport-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtserialport-opensource-src-5.9.1.tar.xz";
sha256 = "0zwxfbyn5rg6vyrgpi5c3n852vd32m37ghzyj4l50ljndlz2w0l0"; sha256 = "0sbsc7n701kxl16r247a907zg2afmbx1xlml5jkc6a9956zqbzp1";
name = "qtserialport-opensource-src-5.9.0.tar.xz"; name = "qtserialport-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtspeech = { qtspeech = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtspeech-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtspeech-opensource-src-5.9.1.tar.xz";
sha256 = "0da7q3j49hn9j2wy0ny4ym4nxy33yi8p62v9vrq9r9lb4xqjipcl"; sha256 = "00daxkf8iwf6n9rhkkv3isv5qa8wijwzb0zy1f6zlm3vcc8fz75c";
name = "qtspeech-opensource-src-5.9.0.tar.xz"; name = "qtspeech-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtsvg = { qtsvg = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtsvg-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtsvg-opensource-src-5.9.1.tar.xz";
sha256 = "0zpy53vb0ckaj71ffl450qv9kipl8gwwcbbras8kbg6bpl8srl8g"; sha256 = "1rg2q4snh2g4n93zmk995swwkl0ab1jr9ka9xpj56ddifkw99wlr";
name = "qtsvg-opensource-src-5.9.0.tar.xz"; name = "qtsvg-opensource-src-5.9.1.tar.xz";
}; };
}; };
qttools = { qttools = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qttools-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qttools-opensource-src-5.9.1.tar.xz";
sha256 = "1vl5lapnbaam51pfw89pshh6rxqwfrbpj0j8gdhzdngr6n79dzk4"; sha256 = "1s50kh3sg5wc5gqhwwznnibh7jcnfginnmkv66w62mm74k7mdsy4";
name = "qttools-opensource-src-5.9.0.tar.xz"; name = "qttools-opensource-src-5.9.1.tar.xz";
}; };
}; };
qttranslations = { qttranslations = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qttranslations-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qttranslations-opensource-src-5.9.1.tar.xz";
sha256 = "0xsgvk8j7zl4infgmrkhdmjkizcihddqn9sc5g1dv2d94gc83jaw"; sha256 = "0sdjiqli15fmkbqvhhgjfavff906sg56jx5xf8bg6xzd2j5544ja";
name = "qttranslations-opensource-src-5.9.0.tar.xz"; name = "qttranslations-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtvirtualkeyboard = { qtvirtualkeyboard = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtvirtualkeyboard-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtvirtualkeyboard-opensource-src-5.9.1.tar.xz";
sha256 = "0xks7n70631p5ij7vbww5ihni6iscx9hkdw8c97nnzb1bvvaqx19"; sha256 = "0k79sqa8bg6gkbsk16320gnila1iiwpnl3vx03rysm5bqdnnlx3b";
name = "qtvirtualkeyboard-opensource-src-5.9.0.tar.xz"; name = "qtvirtualkeyboard-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwayland = { qtwayland = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwayland-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwayland-opensource-src-5.9.1.tar.xz";
sha256 = "0zlxlxrc15x69jwhcc6h0xi4mfchbb3pf27y3zy22yi3ynv2p04v"; sha256 = "1yizvbmh26mx1ffq0qaci02g2wihy68ld0y7r3z8nx3v5acb236g";
name = "qtwayland-opensource-src-5.9.0.tar.xz"; name = "qtwayland-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebchannel = { qtwebchannel = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwebchannel-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebchannel-opensource-src-5.9.1.tar.xz";
sha256 = "1fg1g2h9s9v6lg10ix59pzws35fyh3hh5x2005pyp84xdg47mvqj"; sha256 = "003h09mla82f2znb8jjigx13ivc68ikgv7w04594yy7qdmd5yhl0";
name = "qtwebchannel-opensource-src-5.9.0.tar.xz"; name = "qtwebchannel-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebengine = { qtwebengine = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwebengine-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebengine-opensource-src-5.9.1.tar.xz";
sha256 = "085qq852kwb8rqw12w96647vfvsgqvw33wc4xn3cb2gwn1wsbm1f"; sha256 = "00b4d18m54pbxa1hm6ijh2mrd4wmrs7lkplys8b4liw8j7mpx8zn";
name = "qtwebengine-opensource-src-5.9.0.tar.xz"; name = "qtwebengine-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebkit = { qtwebkit = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/community_releases/5.9/5.9.0-final/qtwebkit-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebkit-opensource-src-5.9.1.tar.xz";
sha256 = "012fd8khiasfn8wx5ci310y94ap3y90a011f66cajm80fhxikbcd"; sha256 = "1ksjn1vjbfhdm4y4rg08ag4krk87ahp7qcdcpwll42l0rnz61998";
name = "qtwebkit-opensource-src-5.9.0.tar.xz"; name = "qtwebkit-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebkit-examples = { qtwebkit-examples = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/community_releases/5.9/5.9.0-final/qtwebkit-examples-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebkit-examples-opensource-src-5.9.1.tar.xz";
sha256 = "0zj700z90k4sss1b5zg4rlg5pkq79q72pql1d6zglrgp505s9a7x"; sha256 = "1l2l7ycgqql6rf4gx6sjhsqjapdhvy6vxaxssax3l938nkk4vkp4";
name = "qtwebkit-examples-opensource-src-5.9.0.tar.xz"; name = "qtwebkit-examples-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebsockets = { qtwebsockets = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwebsockets-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebsockets-opensource-src-5.9.1.tar.xz";
sha256 = "1ml60p50hr3f68l0fiyqg2pf6n37flzxafzasis42jm4m757m5v2"; sha256 = "0r1lya2jj3wfci82zfn0vk6vr8sk9k7xiphnkb0panhb8di769q1";
name = "qtwebsockets-opensource-src-5.9.0.tar.xz"; name = "qtwebsockets-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwebview = { qtwebview = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwebview-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwebview-opensource-src-5.9.1.tar.xz";
sha256 = "0ayjsdyymg9hrryn2y0c796cbwdf4hdpjdwjqkib57rblh5g39qw"; sha256 = "0qmxrh4y3i9n8x6yhrlnahcn75cc2xwlc8mi4g8n2d83c3x7pxyn";
name = "qtwebview-opensource-src-5.9.0.tar.xz"; name = "qtwebview-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtwinextras = { qtwinextras = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtwinextras-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtwinextras-opensource-src-5.9.1.tar.xz";
sha256 = "12xh6wqjn1wmvy7rzay6a0wyc31lgv1zida87kr67dbwblmax03j"; sha256 = "1x7f944f3g2ml3mm594qv6jlvl5dzzsxq86yinp7av0lhnyrxk0s";
name = "qtwinextras-opensource-src-5.9.0.tar.xz"; name = "qtwinextras-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtx11extras = { qtx11extras = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtx11extras-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtx11extras-opensource-src-5.9.1.tar.xz";
sha256 = "0smzs29zqi77s1038ddkj3wzcchajqrjymwa5jgva7n2dn2x40wy"; sha256 = "00fn3bps48gjyw0pdqvvl9scknxdpmacby6hvdrdccc3jll0wgd6";
name = "qtx11extras-opensource-src-5.9.0.tar.xz"; name = "qtx11extras-opensource-src-5.9.1.tar.xz";
}; };
}; };
qtxmlpatterns = { qtxmlpatterns = {
version = "5.9.0"; version = "5.9.1";
src = fetchurl { src = fetchurl {
url = "${mirror}/official_releases/qt/5.9/5.9.0/submodules/qtxmlpatterns-opensource-src-5.9.0.tar.xz"; url = "${mirror}/official_releases/qt/5.9/5.9.1/submodules/qtxmlpatterns-opensource-src-5.9.1.tar.xz";
sha256 = "1f2mly7ddw4hpr3x0lpdahcikivwhiwa3238yrg4gz2c3lxj5y21"; sha256 = "094wwap2fsl23cys6rxh2ciw0gxbbiqbshnn4qs1n6xdjrj6i15m";
name = "qtxmlpatterns-opensource-src-5.9.0.tar.xz"; name = "qtxmlpatterns-opensource-src-5.9.1.tar.xz";
}; };
}; };
} }