2019-07-22 14:02:47 +02:00
|
|
|
{ lib, bundlerApp, bundlerUpdateScript
|
2016-08-31 05:26:23 +02:00
|
|
|
, withPostgresql ? true, postgresql
|
|
|
|
, withSqlite ? false, sqlite
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
bundlerApp {
|
2019-04-30 17:31:21 +02:00
|
|
|
pname = "ledger_web";
|
2017-01-18 00:29:36 +01:00
|
|
|
gemdir = ./.;
|
2019-04-30 17:31:21 +02:00
|
|
|
exes = [ "ledger_web" ];
|
2016-08-31 05:26:23 +02:00
|
|
|
|
2016-09-07 05:06:50 +02:00
|
|
|
buildInputs = lib.optional withPostgresql postgresql
|
|
|
|
++ lib.optional withSqlite sqlite;
|
2016-08-31 05:26:23 +02:00
|
|
|
|
2019-07-22 14:02:47 +02:00
|
|
|
passthru.updateScript = bundlerUpdateScript "ledger-web";
|
|
|
|
|
2016-09-07 05:06:50 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A web frontend to the Ledger CLI tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/peterkeen/ledger-web";
|
2016-09-07 05:06:50 +02:00
|
|
|
license = licenses.mit;
|
2019-07-22 14:02:47 +02:00
|
|
|
maintainers = with maintainers; [ peterhoeg manveru nicknovitski ];
|
2016-09-07 05:06:50 +02:00
|
|
|
platforms = platforms.linux;
|
2016-08-31 05:26:23 +02:00
|
|
|
};
|
|
|
|
}
|