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