soldat-unstable: run hooks for build and install phase
This commit is contained in:
parent
c41d97c324
commit
5f783493a9
@ -64,6 +64,8 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
mkdir -p client/build server/build
|
mkdir -p client/build server/build
|
||||||
|
|
||||||
# build .so from stb headers
|
# build .so from stb headers
|
||||||
@ -80,9 +82,13 @@ stdenv.mkDerivation rec {
|
|||||||
pushd server
|
pushd server
|
||||||
make mode=release
|
make mode=release
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm644 client/libs/stb/libstb.so -t $out/lib
|
install -Dm644 client/libs/stb/libstb.so -t $out/lib
|
||||||
install -Dm755 client/build/soldat_* $out/bin/soldat
|
install -Dm755 client/build/soldat_* $out/bin/soldat
|
||||||
install -Dm755 server/build/soldatserver_* $out/bin/soldatserver
|
install -Dm755 server/build/soldatserver_* $out/bin/soldatserver
|
||||||
@ -100,6 +106,8 @@ stdenv.mkDerivation rec {
|
|||||||
--add-flags "-fs_userpath \"$configDir\"" \
|
--add-flags "-fs_userpath \"$configDir\"" \
|
||||||
--add-flags "-fs_basepath \"${base}/share/soldat\""
|
--add-flags "-fs_basepath \"${base}/share/soldat\""
|
||||||
done
|
done
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user