8 pname = "double-entry-generator";
10 src = fetchFromGitHub {
12 repo = "double-entry-generator";
13 hash = "sha256-2Y8Spj1LAVZsUgChDYDCZ63pTH+nqs2ff9xcmC+gr0c=";
17 vendorHash = "sha256-Xedva9oGteOnv3rP4Wo3sOHIPyuy2TYwkZV2BAuxY4M=";
19 excludedPackages = [ "hack" ];
24 "-X=github.com/deb-sig/double-entry-generator/pkg/version.VERSION=${version}"
25 "-X=github.com/deb-sig/double-entry-generator/pkg/version.REPOROOT=github.com/deb-sig/double-entry-generator"
26 "-X=github.com/deb-sig/double-entry-generator/pkg/version.COMMIT=${src.rev}"
29 doInstallCheck = true;
30 installCheckPhase = ''
31 runHook preInstallCheck
35 make SHELL=bash GIT_COMMIT= VERSION= DOCKER_LABELS= -o test-go test
37 runHook postInstallCheck
40 passthru.updateScript = nix-update-script { };
43 description = "Rule-based double-entry bookkeeping importer (from Alipay/WeChat/Huobi etc. to Beancount/Ledger)";
44 homepage = "https://github.com/deb-sig/double-entry-generator";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ rennsax ];
47 mainProgram = "double-entry-generator";