From 202399f34e82573ac254e631c413377691b82c60 Mon Sep 17 00:00:00 2001 From: Marek Mahut Date: Wed, 7 Aug 2019 10:33:22 +0200 Subject: [PATCH] flexibee: init at 2019.2.5 --- pkgs/applications/office/flexibee/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/applications/office/flexibee/default.nix diff --git a/pkgs/applications/office/flexibee/default.nix b/pkgs/applications/office/flexibee/default.nix new file mode 100644 index 000000000000..284fdf7a124d --- /dev/null +++ b/pkgs/applications/office/flexibee/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, makeWrapper, jre }: + +let + version = "2019.2.5"; + 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"; + sha256 = "0k94y4x6lj1vcb89a95v9mzl95mkpwp9n4a2gwvq0g90zpbnn493"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + cp -R usr/share/flexibee/ $out/ + install -Dm755 usr/bin/flexibee $out/bin/flexibee + wrapProgram $out/bin/flexibee --set JAVA_HOME "${jre}" + 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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b1bbb5a7f70..34f261ecb87f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9418,6 +9418,8 @@ in flex_2_5_35 = callPackage ../development/tools/parsing/flex/2.5.35.nix { }; flex = callPackage ../development/tools/parsing/flex { }; + flexibee = callPackage ../applications/office/flexibee { }; + flexcpp = callPackage ../development/tools/parsing/flexc++ { }; geis = callPackage ../development/libraries/geis {