2019-04-30 08:31:21 -07:00
|
|
|
{ lib, bundlerApp
|
2016-08-30 20:26:23 -07:00
|
|
|
, withPostgresql ? true, postgresql
|
|
|
|
, withSqlite ? false, sqlite
|
|
|
|
}:
|
|
|
|
|
2019-04-30 08:31:21 -07:00
|
|
|
bundlerApp rec {
|
|
|
|
pname = "ledger_web";
|
2017-01-17 15:29:36 -08:00
|
|
|
gemdir = ./.;
|
2019-04-30 08:31:21 -07:00
|
|
|
exes = [ "ledger_web" ];
|
2016-08-30 20:26:23 -07:00
|
|
|
|
2016-09-06 20:06:50 -07:00
|
|
|
buildInputs = lib.optional withPostgresql postgresql
|
|
|
|
++ lib.optional withSqlite sqlite;
|
2016-08-30 20:26:23 -07:00
|
|
|
|
2016-09-06 20:06:50 -07:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A web frontend to the Ledger CLI tool";
|
|
|
|
homepage = https://github.com/peterkeen/ledger-web;
|
|
|
|
license = licenses.mit;
|
2019-04-30 08:31:21 -07:00
|
|
|
maintainers = with maintainers; [ peterhoeg manveru ];
|
2016-09-06 20:06:50 -07:00
|
|
|
platforms = platforms.linux;
|
2016-08-30 20:26:23 -07:00
|
|
|
};
|
|
|
|
}
|