nixpkgs/pkgs/tools/text/reckon/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

30 lines
710 B
Nix

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }:
stdenv.mkDerivation rec {
pname = "reckon";
version = (import ./gemset.nix).reckon.version;
env = bundlerEnv {
name = "${pname}-${version}-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;
};
}