8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
30 lines
726 B
Nix
30 lines
726 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 ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|