summary refs log tree commit diff
path: root/pkgs/tools/text/reckon/default.nix
blob: b6340fd2df46b667bf211c83a9be8eb4769d1030 (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
28
29
30
{ stdenv, lib, bundlerEnv, makeWrapper }:

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

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

    gemfile = ./Gemfile;
    lockfile = ./Gemfile.lock;
    gemset = ./gemset.nix;
  };

  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;
    maintainers = [ "mckean.kylej@gmail.com" ];
    platforms = platforms.unix;
  };
}