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:
parent
39e5592127
commit
ee71de7240
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue