2016-09-07 03:06:50 +00:00
|
|
|
{ lib, bundlerEnv, ruby
|
2016-08-31 03:26:23 +00:00
|
|
|
, withPostgresql ? true, postgresql
|
|
|
|
, withSqlite ? false, sqlite
|
|
|
|
}:
|
|
|
|
|
2016-09-07 03:06:50 +00:00
|
|
|
bundlerEnv rec {
|
|
|
|
name = "ledger-web-${version}";
|
2016-08-31 03:26:23 +00:00
|
|
|
|
2017-01-17 23:29:36 +00:00
|
|
|
version = (import ./gemset.nix).ledger_web.version;
|
2016-09-07 03:06:50 +00:00
|
|
|
inherit ruby;
|
2017-01-17 23:29:36 +00:00
|
|
|
gemdir = ./.;
|
2016-08-31 03:26:23 +00:00
|
|
|
|
2016-09-07 03:06:50 +00:00
|
|
|
buildInputs = lib.optional withPostgresql postgresql
|
|
|
|
++ lib.optional withSqlite sqlite;
|
2016-08-31 03:26:23 +00:00
|
|
|
|
2016-09-07 03:06:50 +00:00
|
|
|
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 ];
|
|
|
|
platforms = platforms.linux;
|
2016-08-31 03:26:23 +00:00
|
|
|
};
|
|
|
|
}
|