about summary refs log tree commit diff
path: root/pkgs/applications/office/banana-accounting/default.nix
blob: 8afc96eaf88ca30080903ffa0a90c502dc12c5ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ autoPatchelfHook
, cairo
, e2fsprogs
, fetchurl
, gmp
, gtk3
, libGL
, libX11
, lib
, stdenv
, libgcrypt
, wrapGAppsHook3
}:

stdenv.mkDerivation {
  pname = "banana-accounting";
  version = "10.0.12";

  srcs = fetchurl {
    url = "https://web.archive.org/web/20220821013214/https://www.banana.ch/accounting/files/bananaplus/exe/bananaplus.tgz";
    hash = "sha256-Xs7K/Z6qM1fKKfYMkwAGznNR0Kt/gY7qTr8ZOriIdYw=";
  };

  sourceRoot = ".";

  dontConfigure = true;
  dontBuild = true;

  buildInputs = [
    cairo
    e2fsprogs
    gmp
    gtk3
    stdenv.cc.cc.lib
    libGL
    libX11
    libgcrypt
  ];

  nativeBuildInputs = [
    autoPatchelfHook
    wrapGAppsHook3
  ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    mv ./* $out
    ln -s $out/usr/bin/bananaplus $out/bin/
    runHook postInstall
  '';

  meta = with lib; {
    description = "Accounting Software for small companies, associations and individuals";
    homepage = "https://www.banana.ch/";
    license = licenses.unfree;
    platforms = [ "x86_64-linux" ];
    maintainers = with maintainers; [ jacg ];
  };
}