about summary refs log tree commit diff
path: root/pkgs/applications/office/ledger-web/default.nix
blob: e19d4492ac918deb9f7d3ce1e18fd5af9182b247 (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
{ lib, bundlerApp, bundlerUpdateScript
, withPostgresql ? true, postgresql
, withSqlite ? false, sqlite
}:

bundlerApp {
  pname = "ledger_web";
  gemdir = ./.;
  exes = [ "ledger_web" ];

  buildInputs =    lib.optional withPostgresql postgresql
                ++ lib.optional withSqlite sqlite;

  passthru.updateScript = bundlerUpdateScript "ledger-web";

  meta = with lib; {
    description = "A web frontend to the Ledger CLI tool";
    homepage = "https://github.com/peterkeen/ledger-web";
    license = licenses.mit;
    maintainers = with maintainers; [ peterhoeg manveru nicknovitski ];
    platforms = platforms.linux;
    mainProgram = "ledger_web";
  };
}