nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 33 lines 852 B view raw
1{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper }: 2 3stdenv.mkDerivation rec { 4 pname = "reckon"; 5 version = (import ./gemset.nix).reckon.version; 6 7 dontUnpack = true; 8 9 nativeBuildInputs = [ makeWrapper ]; 10 11 installPhase = let 12 env = bundlerEnv { 13 name = "${pname}-${version}-gems"; 14 15 gemdir = ./.; 16 }; 17 in '' 18 runHook preInstall 19 mkdir -p $out/bin 20 makeWrapper ${env}/bin/reckon $out/bin/reckon 21 runHook postInstall 22 ''; 23 24 passthru.updateScript = bundlerUpdateScript "reckon"; 25 26 meta = with lib; { 27 description = "Flexibly import bank account CSV files into Ledger for command line accounting"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ nicknovitski ]; 30 platforms = platforms.unix; 31 changelog = "https://github.com/cantino/reckon/blob/v${version}/CHANGELOG.md"; 32 }; 33}