nixpkgs/pkgs/applications/misc/expenses/default.nix

36 lines
744 B
Nix
Raw Normal View History

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