2019-08-07 10:33:22 +02:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jre }:
|
|
|
|
|
|
|
|
let
|
2020-08-01 09:04:17 +02:00
|
|
|
version = "2020.2.3.1";
|
2019-08-07 10:33:22 +02:00
|
|
|
majorVersion = builtins.substring 0 6 version;
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flexibee";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.flexibee.eu/download/${majorVersion}/${version}/${pname}-${version}.tar.gz";
|
2020-08-01 09:04:17 +02:00
|
|
|
sha256 = "05wzg7f6mzz7r6azzb8k2g5fakkqh6762y4q9qkmrzbixvxh4lz9";
|
2019-08-07 10:33:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2019-11-01 15:48:10 +01:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace usr/sbin/flexibee-server \
|
|
|
|
--replace "/usr/share/flexibee" $out \
|
|
|
|
--replace "/var/run" "/run"
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
2019-08-07 10:33:22 +02:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
cp -R usr/share/flexibee/ $out/
|
|
|
|
install -Dm755 usr/bin/flexibee $out/bin/flexibee
|
2019-11-01 15:48:10 +01:00
|
|
|
install -Dm755 usr/sbin/flexibee-server $out/bin/flexibee-server
|
2019-11-01 15:50:02 +01:00
|
|
|
wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
|
2019-11-01 15:48:10 +01:00
|
|
|
wrapProgram $out/bin/flexibee-server --set JAVA_HOME "${jre}"
|
2019-08-07 10:33:22 +02:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Client for an accouting economic system";
|
|
|
|
homepage = "https://www.flexibee.eu/";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|