mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
3eb9b19d3b
Now that we keep only one version of Frameworks in Nixpkgs, it is not necessary to version the directory which stores the Nix expressions.
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
addServicePkg() {
|
|
local propagated
|
|
for dir in "share/kservices5" "share/kservicetypes5"; do
|
|
if [[ -d "$1/$dir" ]]; then
|
|
propagated=
|
|
for pkg in $propagatedBuildInputs; do
|
|
if [[ "z$pkg" == "z$1" ]]; then
|
|
propagated=1
|
|
break
|
|
fi
|
|
done
|
|
if [[ -z $propagated ]]; then
|
|
propagatedBuildInputs="$propagatedBuildInputs $1"
|
|
fi
|
|
|
|
propagated=
|
|
for pkg in $propagatedUserEnvPkgs; do
|
|
if [[ "z$pkg" == "z$1" ]]; then
|
|
propagated=1
|
|
break
|
|
fi
|
|
done
|
|
if [[ -z $propagated ]]; then
|
|
propagatedUserEnvPkgs="$propagatedUserEnvPkgs $1"
|
|
fi
|
|
|
|
break
|
|
fi
|
|
done
|
|
}
|
|
|
|
envHooks+=(addServicePkg)
|
|
|
|
local propagated
|
|
for pkg in $propagatedBuildInputs; do
|
|
if [[ "z$pkg" == "z@out@" ]]; then
|
|
propagated=1
|
|
break
|
|
fi
|
|
done
|
|
if [[ -z $propagated ]]; then
|
|
propagatedBuildInputs="$propagatedBuildInputs @out@"
|
|
fi
|