3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/reckon/default.nix

31 lines
726 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
2016-08-02 15:51:24 +01:00
stdenv.mkDerivation rec {
pname = "reckon";
version = (import ./gemset.nix).reckon.version;
2016-08-02 15:51:24 +01:00
phases = [ "installPhase" ];
buildInputs = [ makeWrapper ];
installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
gemdir = ./.;
};
in ''
2016-08-02 15:51:24 +01:00
mkdir -p $out/bin
makeWrapper ${env}/bin/reckon $out/bin/reckon
'';
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;
maintainers = with maintainers; [ nicknovitski ];
2016-08-02 15:51:24 +01:00
platforms = platforms.unix;
};
}