kodi.packages.buildKodiAddon, kodi.packages.buildKodiBinaryAddon: include runHook preInstall and postInstall
This commit is contained in:
parent
74ade33ccc
commit
6fe6c35a96
|
@ -11,11 +11,15 @@ toKodiAddon (stdenv.mkDerivation ({
|
|||
extraRuntimeDependencies = [ ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cd $src/$sourceDir
|
||||
d=$out${addonDir}/${namespace}
|
||||
mkdir -p $d
|
||||
sauce="."
|
||||
[ -d ${namespace} ] && sauce=${namespace}
|
||||
cp -R "$sauce/"* $d
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
} // attrs))
|
||||
|
|
|
@ -24,8 +24,12 @@ toKodiAddon (stdenv.mkDerivation ({
|
|||
# and the non-wrapped kodi lib/... folder before even trying to dlopen
|
||||
# them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use
|
||||
installPhase = let n = namespace; in ''
|
||||
runHook preInstall
|
||||
|
||||
make install
|
||||
ln -s $out/lib/addons/${n}/${n}.so.${version} $out${addonDir}/${n}/${n}.so.${version}
|
||||
${extraInstallPhase}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
} // attrs))
|
||||
|
|
Loading…
Reference in a new issue