nixpkgs-suyu/pkgs/tools/text/reckon/default.nix

33 lines
769 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
2016-08-02 16:51:24 +02:00
stdenv.mkDerivation rec {
pname = "reckon";
version = (import ./gemset.nix).reckon.version;
2016-08-02 16:51:24 +02:00
2021-07-20 11:57:12 +02:00
dontUnpack = true;
2016-08-02 16:51:24 +02:00
nativeBuildInputs = [ makeWrapper ];
2016-08-02 16:51:24 +02:00
installPhase = let
env = bundlerEnv {
name = "${pname}-${version}-gems";
gemdir = ./.;
};
in ''
runHook preInstall
2016-08-02 16:51:24 +02:00
mkdir -p $out/bin
makeWrapper ${env}/bin/reckon $out/bin/reckon
runHook postInstall
2016-08-02 16:51:24 +02:00
'';
passthru.updateScript = bundlerUpdateScript "reckon";
2016-08-02 16:51:24 +02: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 16:51:24 +02:00
platforms = platforms.unix;
};
}