2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, sqlite
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "expenses";
|
2021-07-03 03:11:41 +00:00
|
|
|
version = "0.2.2";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "manojkarthick";
|
|
|
|
repo = "expenses";
|
|
|
|
rev = "v${version}";
|
2021-07-03 03:11:41 +00:00
|
|
|
sha256 = "sha256-CaIbLtP7ziv9UBQE+QsNnqX65OV+6GIvkLwKm1G++iY=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
vendorSha256 = "sha256-NWTFxF4QCH1q1xx+hmVmpvDeOlqH5Ai2+0ParE5px9M=";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
# package does not contain any tests as of v0.2.2
|
2021-01-15 22:18:51 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
buildInputs = [ sqlite ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X github.com/manojkarthick/expenses/cmd.Version=${version}"
|
2021-01-15 22:18:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An interactive command line expense logger";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.manojkarthick ];
|
|
|
|
};
|
|
|
|
}
|