5b567aa208
GitOrigin-RevId: 16105403bdd843540cbef9c63fc0f16c1c6eaa70
32 lines
769 B
Nix
32 lines
769 B
Nix
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "reckon";
|
|
version = (import ./gemset.nix).reckon.version;
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ 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;
|
|
};
|
|
}
|