2019-07-22 13:02:47 +01:00
|
|
|
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
|
2016-08-02 15:51:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "reckon-${version}";
|
2019-07-22 13:02:47 +01:00
|
|
|
version = (import ./gemset.nix).reckon.version;
|
2016-08-02 15:51:24 +01:00
|
|
|
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "${name}-gems";
|
|
|
|
|
2017-01-17 23:10:47 +00:00
|
|
|
gemdir = ./.;
|
2016-08-02 15:51:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
|
|
|
'';
|
|
|
|
|
2019-07-22 13:02:47 +01:00
|
|
|
passthru.updateScript = bundlerUpdateScript "reckon";
|
|
|
|
|
2016-08-02 15:51:24 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Flexibly import bank account CSV files into Ledger for command line accounting";
|
|
|
|
license = licenses.mit;
|
2019-07-22 13:02:47 +01:00
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
2016-08-02 15:51:24 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|