1 { lib, stdenv, fetchurl, makeWrapper, jre }:
5 majorVersion = builtins.substring 0 6 version;
8 stdenv.mkDerivation rec {
13 url = "http://download.flexibee.eu/download/${majorVersion}/${version}/${pname}-${version}.tar.gz";
14 sha256 = "sha256-WorRyfjWucV8UhAjvuW+22CRzPcz5tjXF7Has4wrLMI=";
17 nativeBuildInputs = [ makeWrapper ];
20 substituteInPlace usr/sbin/flexibee-server \
21 --replace "/usr/share/flexibee" $out \
22 --replace "/var/run" "/run"
28 cp -R usr/share/flexibee/ $out/
29 install -Dm755 usr/bin/flexibee $out/bin/flexibee
30 install -Dm755 usr/sbin/flexibee-server $out/bin/flexibee-server
31 wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
32 wrapProgram $out/bin/flexibee-server --set JAVA_HOME "${jre}"
37 description = "Client for an accouting economic system";
38 homepage = "https://www.flexibee.eu/";
39 license = licenses.unfree;
40 maintainers = [ maintainers.mmahut ];
41 platforms = [ "x86_64-linux" ];