mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
35 lines
880 B
Nix
35 lines
880 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";
|
|
mainProgram = "reckon";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
platforms = platforms.unix;
|
|
changelog = "https://github.com/cantino/reckon/blob/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|