git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #156470 from r-ryantm/auto-update/expenses
commit664706f6f2fc3d4ad54328ea3e15684d358be988 authorlegendofmiracles <30902201+legendofmiracles@users.noreply.github.com> dateMon 24 Jan 2022, 08:54 (5 years ago) parent628f5dd4a46547
1 file changed+14−5
pkgs/applications/misc/expenses/default.nix+14−5
pkgs/applications/misc/expenses/default.nix+14−5
@@ -1,32 +1,41 @@
11{ lib
2−
32, buildGoModule
43, fetchFromGitHub
54, sqlite
5+, installShellFiles
66}:
77
88buildGoModule rec {
99 pname = "expenses";
10− version = "0.2.2";
10+ version = "0.2.3";
1111
1212 src = fetchFromGitHub {
1313 owner = "manojkarthick";
1414 repo = "expenses";
1515 rev = "v${version}";
16− sha256 = "sha256-CaIbLtP7ziv9UBQE+QsNnqX65OV+6GIvkLwKm1G++iY=";
16+ sha256 = "sha256-sqsogF2swMvYZL7Kj+ealrB1AAgIe7ZXXDLRdHL6Q+0=";
1717 };
1818
19− vendorSha256 = "sha256-NWTFxF4QCH1q1xx+hmVmpvDeOlqH5Ai2+0ParE5px9M=";
19+ vendorSha256 = "sha256-Ac3f17Ws3Ne8Zo0vT+qlaMm/rhak9ua2jh5jlT6jF2Y=";
2020
21− # package does not contain any tests as of v0.2.2
21+ # package does not contain any tests as of v0.2.3
2222 doCheck = false;
2323
24+ nativeBuildInputs = [ installShellFiles ];
25+
2426 buildInputs = [ sqlite ];
2527
2628 ldflags = [
2729 "-s" "-w" "-X github.com/manojkarthick/expenses/cmd.Version=${version}"
2830 ];
2931
32+ postInstall = ''
33+ installShellCompletion --cmd expenses \
34+ --bash <($out/bin/expenses completion bash) \
35+ --zsh <($out/bin/expenses completion zsh) \
36+ --fish <($out/bin/expenses completion fish)
37+ '';
38+
3039 meta = with lib; {
3140 description = "An interactive command line expense logger";
3241 license = licenses.mit;