3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/office/flexibee/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
2019-08-07 09:33:22 +01:00
let
2021-08-07 23:41:04 +01:00
version = "2021.2.1";
2019-08-07 09:33:22 +01: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";
2021-08-07 23:41:04 +01:00
sha256 = "sha256-WorRyfjWucV8UhAjvuW+22CRzPcz5tjXF7Has4wrLMI=";
2019-08-07 09:33:22 +01:00
};
nativeBuildInputs = [ makeWrapper ];
2019-11-01 14:48:10 +00:00
prePatch = ''
substituteInPlace usr/sbin/flexibee-server \
--replace "/usr/share/flexibee" $out \
--replace "/var/run" "/run"
'';
2019-08-07 09:33:22 +01:00
installPhase = ''
runHook preInstall
cp -R usr/share/flexibee/ $out/
install -Dm755 usr/bin/flexibee $out/bin/flexibee
2019-11-01 14:48:10 +00:00
install -Dm755 usr/sbin/flexibee-server $out/bin/flexibee-server
2019-11-01 14:50:02 +00:00
wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}"
2019-11-01 14:48:10 +00:00
wrapProgram $out/bin/flexibee-server --set JAVA_HOME "${jre}"
2019-08-07 09:33:22 +01:00
runHook postInstall
'';
meta = with lib; {
2019-08-07 09:33:22 +01:00
description = "Client for an accouting economic system";
homepage = "https://www.flexibee.eu/";
license = licenses.unfree;
maintainers = [ maintainers.mmahut ];
platforms = [ "x86_64-linux" ];
};
}