1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00

flexibee: adding flexibee-server

This commit is contained in:
Marek Mahut 2019-11-01 15:48:10 +01:00
parent 39e5592127
commit ee71de7240

View file

@ -16,11 +16,20 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
prePatch = ''
substituteInPlace usr/sbin/flexibee-server \
--replace "/usr/share/flexibee" $out \
--replace "/var/run" "/run"
'';
installPhase = ''
runHook preInstall
cp -R usr/share/flexibee/ $out/
install -Dm755 usr/bin/flexibee $out/bin/flexibee
install -Dm755 usr/sbin/flexibee-server $out/bin/flexibee-server
wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
wrapProgram $out/bin/flexibee-server --set JAVA_HOME "${jre}"
runHook postInstall
'';