summary refs log tree commit diff
path: root/pkgs/tools/text/reckon/default.nix
blob: b97ffc7c58a8171c14f0d33fce5bf0045e8d4875 (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
24
25
26
27
{ stdenv, lib, bundlerEnv, makeWrapper }:

stdenv.mkDerivation rec {
  name = "reckon-${version}";
  version = "0.4.4";

  env = bundlerEnv {
    name = "${name}-gems";

    gemdir = ./.;
  };

  phases = [ "installPhase" ];

  buildInputs = [ makeWrapper ];

  installPhase = ''
    mkdir -p $out/bin
    makeWrapper ${env}/bin/reckon $out/bin/reckon
  '';

  meta = with lib; {
    description = "Flexibly import bank account CSV files into Ledger for command line accounting";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}