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

bundlerApp rec {
  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;
  };
}