2019-07-22 12:02:47 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
|
2016-08-02 14:51:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "reckon";
|
2019-07-22 12:02:47 +00:00
|
|
|
version = (import ./gemset.nix).reckon.version;
|
2016-08-02 14:51:24 +00:00
|
|
|
|
2021-07-20 09:57:12 +00:00
|
|
|
dontUnpack = true;
|
2016-08-02 14:51:24 +00:00
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-08-02 14:51:24 +00:00
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
installPhase = let
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "${pname}-${version}-gems";
|
|
|
|
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in ''
|
2021-02-07 11:39:45 +00:00
|
|
|
runHook preInstall
|
2016-08-02 14:51:24 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/reckon $out/bin/reckon
|
2021-02-07 11:39:45 +00:00
|
|
|
runHook postInstall
|
2016-08-02 14:51:24 +00:00
|
|
|
'';
|
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "reckon";
|
|
|
|
|
2016-08-02 14:51:24 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Flexibly import bank account CSV files into Ledger for command line accounting";
|
|
|
|
license = licenses.mit;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
2016-08-02 14:51:24 +00:00
|
|
|
platforms = platforms.unix;
|
2021-09-05 20:24:43 +00:00
|
|
|
changelog = "https://github.com/cantino/reckon/blob/v${version}/CHANGELOG.md";
|
2016-08-02 14:51:24 +00:00
|
|
|
};
|
|
|
|
}
|