nixpkgs/pkgs/tools/text/reckon/default.nix
Arnout Engelen c53ae071ba
reckon: 0.6.0 -> 0.7.1
Particularly nice improvements:
* [fail on unknown account](https://github.com/cantino/reckon/pull/102)
  in interactive mode
* [use - to read from stdin](https://github.com/cantino/reckon/pull/98)
2021-02-07 14:18:06 +01:00

32 lines
773 B
Nix

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
stdenv.mkDerivation rec {
pname = "reckon";
version = (import ./gemset.nix).reckon.version;
phases = [ "installPhase" ];
buildInputs = [ makeWrapper ];
installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
gemdir = ./.;
};
in ''
runHook preInstall
mkdir -p $out/bin
makeWrapper ${env}/bin/reckon $out/bin/reckon
runHook postInstall
'';
passthru.updateScript = bundlerUpdateScript "reckon";
meta = with lib; {
description = "Flexibly import bank account CSV files into Ledger for command line accounting";
license = licenses.mit;
maintainers = with maintainers; [ nicknovitski ];
platforms = platforms.unix;
};
}