depot/third_party/nixpkgs/pkgs/applications/misc/expenses/default.nix
Default email 634fe97655 Project import generated by Copybara.
GitOrigin-RevId: 09c38c29f2c719cd76ca17a596c2fdac9e186ceb
2021-07-03 00:11:41 -03:00

35 lines
744 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, sqlite
}:
buildGoModule rec {
pname = "expenses";
version = "0.2.2";
src = fetchFromGitHub {
owner = "manojkarthick";
repo = "expenses";
rev = "v${version}";
sha256 = "sha256-CaIbLtP7ziv9UBQE+QsNnqX65OV+6GIvkLwKm1G++iY=";
};
vendorSha256 = "sha256-NWTFxF4QCH1q1xx+hmVmpvDeOlqH5Ai2+0ParE5px9M=";
# 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}"
];
meta = with lib; {
description = "An interactive command line expense logger";
license = licenses.mit;
maintainers = [ maintainers.manojkarthick ];
};
}