mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
31 lines
708 B
Nix
31 lines
708 B
Nix
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "reckon-${version}";
|
|
version = (import ./gemset.nix).reckon.version;
|
|
|
|
env = bundlerEnv {
|
|
name = "${name}-gems";
|
|
|
|
gemdir = ./.;
|
|
};
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
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;
|
|
};
|
|
}
|