mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
26 lines
652 B
Nix
26 lines
652 B
Nix
{ lib, bundlerEnv, ruby
|
|
, withPostgresql ? true, postgresql
|
|
, withSqlite ? false, sqlite
|
|
}:
|
|
|
|
bundlerEnv rec {
|
|
name = "ledger-web-${version}";
|
|
|
|
version = (import gemset).ledger_web.version;
|
|
inherit ruby;
|
|
gemfile = ./Gemfile;
|
|
lockfile = ./Gemfile.lock;
|
|
gemset = ./gemset.nix;
|
|
|
|
buildInputs = lib.optional withPostgresql postgresql
|
|
++ lib.optional withSqlite sqlite;
|
|
|
|
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;
|
|
};
|
|
}
|