Merge pull request #72428 from mmahut/flexibee
flexibee: 2019.3.0.3 -> 2019.3.0.7 and adding the server binary
This commit is contained in:
commit
c9dbfad745
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, jre }:
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "2019.3.0.3";
|
version = "2019.3.0.7";
|
||||||
majorVersion = builtins.substring 0 6 version;
|
majorVersion = builtins.substring 0 6 version;
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -11,16 +11,25 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://download.flexibee.eu/download/${majorVersion}/${version}/${pname}-${version}.tar.gz";
|
url = "http://download.flexibee.eu/download/${majorVersion}/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "1ivhqh1rl4ll0af9nfgfm7f647vc9zk61aplinvz73xb3grb4j6f";
|
sha256 = "01n2pkh17s2iab7n9xgq9vqcf1fnzmb382zmmd1lwyw3x57f5rq2";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace usr/sbin/flexibee-server \
|
||||||
|
--replace "/usr/share/flexibee" $out \
|
||||||
|
--replace "/var/run" "/run"
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
cp -R usr/share/flexibee/ $out/
|
cp -R usr/share/flexibee/ $out/
|
||||||
install -Dm755 usr/bin/flexibee $out/bin/flexibee
|
install -Dm755 usr/bin/flexibee $out/bin/flexibee
|
||||||
wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
|
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
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user